diff --git a/pyobjc-framework-LocalAuthentication/Lib/LocalAuthentication/_metadata.py b/pyobjc-framework-LocalAuthentication/Lib/LocalAuthentication/_metadata.py index 4add6363eb..0dee55e79b 100644 --- a/pyobjc-framework-LocalAuthentication/Lib/LocalAuthentication/_metadata.py +++ b/pyobjc-framework-LocalAuthentication/Lib/LocalAuthentication/_metadata.py @@ -20,9 +20,11 @@ def sel32or64(a, b): misc = {} constants = """$LAErrorDomain$LATouchIDAuthenticationMaximumAllowableReuseDuration@d$""" -enums = """$LAAccessControlOperationCreateItem@0$LAAccessControlOperationCreateKey@2$LAAccessControlOperationUseItem@1$LAAccessControlOperationUseKeyDecrypt@4$LAAccessControlOperationUseKeyKeyExchange@5$LAAccessControlOperationUseKeySign@3$LABiometryNone@0$LABiometryTypeFaceID@2$LABiometryTypeNone@0$LABiometryTypeTouchID@1$LACredentialTypeApplicationPassword@0$LACredentialTypeSmartCardPIN@-3$LAErrorAppCancel@-9$LAErrorAuthenticationFailed@-1$LAErrorBiometryLockout@-8$LAErrorBiometryNotAvailable@-6$LAErrorBiometryNotEnrolled@-7$LAErrorInvalidContext@-10$LAErrorNotInteractive@-1004$LAErrorPasscodeNotSet@-5$LAErrorSystemCancel@-4$LAErrorTouchIDLockout@-8$LAErrorTouchIDNotAvailable@-6$LAErrorTouchIDNotEnrolled@-7$LAErrorUserCancel@-2$LAErrorUserFallback@-3$LAErrorWatchNotAvailable@-11$LAPolicyDeviceOwnerAuthentication@2$LAPolicyDeviceOwnerAuthenticationWithBiometrics@1$LAPolicyDeviceOwnerAuthenticationWithBiometricsOrWatch@4$LAPolicyDeviceOwnerAuthenticationWithWatch@3$kLACredentialCTKPIN@-3$kLACredentialSmartCardPIN@-3$kLACredentialTypeApplicationPassword@0$kLACredentialTypePasscode@-1$kLACredentialTypePassphrase@-2$kLAErrorAppCancel@-9$kLAErrorAuthenticationFailed@-1$kLAErrorInvalidContext@-10$kLAErrorNotInteractive@-1004$kLAErrorPasscodeNotSet@-5$kLAErrorSystemCancel@-4$kLAErrorTouchIDLockout@-8$kLAErrorTouchIDNotAvailable@-6$kLAErrorTouchIDNotEnrolled@-7$kLAErrorUserCancel@-2$kLAErrorUserFallback@-3$kLAErrorWatchNotAvailable@-11$kLAOptionAuthenticationReason@2$kLAOptionUserFallback@1$kLAPolicyDeviceOwnerAuthentication@2$kLAPolicyDeviceOwnerAuthenticationWithBiometrics@1$kLAPolicyDeviceOwnerAuthenticationWithBiometricsOrWatch@4$kLAPolicyDeviceOwnerAuthenticationWithWatch@3$""" +enums = """$kLAErrorBiometryNotPaired@-12$kLAErrorBiometryDisconnected@-13$LAAccessControlOperationCreateItem@0$LAAccessControlOperationCreateKey@2$LAAccessControlOperationUseItem@1$LAAccessControlOperationUseKeyDecrypt@4$LAAccessControlOperationUseKeyKeyExchange@5$LAAccessControlOperationUseKeySign@3$LABiometryNone@0$LABiometryTypeFaceID@2$LABiometryTypeNone@0$LABiometryTypeTouchID@1$LACredentialTypeApplicationPassword@0$LACredentialTypeSmartCardPIN@-3$LAErrorAppCancel@-9$LAErrorAuthenticationFailed@-1$LAErrorBiometryLockout@-8$LAErrorBiometryNotAvailable@-6$LAErrorBiometryNotEnrolled@-7$LAErrorInvalidContext@-10$LAErrorNotInteractive@-1004$LAErrorPasscodeNotSet@-5$LAErrorSystemCancel@-4$LAErrorTouchIDLockout@-8$LAErrorTouchIDNotAvailable@-6$LAErrorTouchIDNotEnrolled@-7$LAErrorUserCancel@-2$LAErrorUserFallback@-3$LAErrorWatchNotAvailable@-11$LAPolicyDeviceOwnerAuthentication@2$LAPolicyDeviceOwnerAuthenticationWithBiometrics@1$LAPolicyDeviceOwnerAuthenticationWithBiometricsOrWatch@4$LAPolicyDeviceOwnerAuthenticationWithWatch@3$kLACredentialCTKPIN@-3$kLACredentialSmartCardPIN@-3$kLACredentialTypeApplicationPassword@0$kLACredentialTypePasscode@-1$kLACredentialTypePassphrase@-2$kLAErrorAppCancel@-9$kLAErrorAuthenticationFailed@-1$kLAErrorInvalidContext@-10$kLAErrorNotInteractive@-1004$kLAErrorPasscodeNotSet@-5$kLAErrorSystemCancel@-4$kLAErrorTouchIDLockout@-8$kLAErrorTouchIDNotAvailable@-6$kLAErrorTouchIDNotEnrolled@-7$kLAErrorUserCancel@-2$kLAErrorUserFallback@-3$kLAErrorWatchNotAvailable@-11$kLAOptionAuthenticationReason@2$kLAOptionUserFallback@1$kLAPolicyDeviceOwnerAuthentication@2$kLAPolicyDeviceOwnerAuthenticationWithBiometrics@1$kLAPolicyDeviceOwnerAuthenticationWithBiometricsOrWatch@4$kLAPolicyDeviceOwnerAuthenticationWithWatch@3$""" misc.update({"kLAErrorDomain": "com.apple.LocalAuthentication"}) aliases = { + "LAErrorBiometryNotPaired": "kLAErrorBiometryNotPaired", + "LAErrorBiometryDisconnected": "kLAErrorBiometryDisconnected", "LACredentialTypeSmartCardPIN": "kLACredentialSmartCardPIN", "LAErrorBiometryLockout": "kLAErrorBiometryLockout", "LAErrorBiometryNotEnrolled": "kLAErrorBiometryNotEnrolled", diff --git a/pyobjc-framework-LocalAuthentication/PyObjCTest/test_laerror.py b/pyobjc-framework-LocalAuthentication/PyObjCTest/test_laerror.py index 4e4514ceff..ca39217075 100644 --- a/pyobjc-framework-LocalAuthentication/PyObjCTest/test_laerror.py +++ b/pyobjc-framework-LocalAuthentication/PyObjCTest/test_laerror.py @@ -66,6 +66,14 @@ def testConstants(self): LocalAuthentication.LAErrorWatchNotAvailable, LocalAuthentication.kLAErrorWatchNotAvailable, ) + self.assertEqual( + LocalAuthentication.LAErrorBiometryNotPaired, + LocalAuthentication.kLAErrorBiometryNotPaired, + ) + self.assertEqual( + LocalAuthentication.LAErrorBiometryDisconnected, + LocalAuthentication.kLAErrorBiometryDisconnected, + ) @min_os_level("10.11") def testConstants10_11(self): diff --git a/pyobjc-framework-LocalAuthentication/PyObjCTest/test_lapublicdefines.py b/pyobjc-framework-LocalAuthentication/PyObjCTest/test_lapublicdefines.py index 03296e6d2e..8248535cf4 100644 --- a/pyobjc-framework-LocalAuthentication/PyObjCTest/test_lapublicdefines.py +++ b/pyobjc-framework-LocalAuthentication/PyObjCTest/test_lapublicdefines.py @@ -38,6 +38,8 @@ def testConstants(self): self.assertEqual(LocalAuthentication.kLAErrorAppCancel, -9) self.assertEqual(LocalAuthentication.kLAErrorInvalidContext, -10) self.assertEqual(LocalAuthentication.kLAErrorWatchNotAvailable, -11) + self.assertEqual(LocalAuthentication.kLAErrorBiometryNotPaired, -12) + self.assertEqual(LocalAuthentication.kLAErrorBiometryDisconnected, -13) self.assertEqual( LocalAuthentication.kLAErrorDomain, "com.apple.LocalAuthentication" ) diff --git a/pyobjc-framework-LocalAuthentication/metadata/LocalAuthentication.fwinfo b/pyobjc-framework-LocalAuthentication/metadata/LocalAuthentication.fwinfo index 43883cc851..c92cfcd393 100644 --- a/pyobjc-framework-LocalAuthentication/metadata/LocalAuthentication.fwinfo +++ b/pyobjc-framework-LocalAuthentication/metadata/LocalAuthentication.fwinfo @@ -20,6 +20,10 @@ "LATouchIDAuthenticationMaximumAllowableReuseDuration": { "typestr": "d" } }, "enum": { + "LAErrorBiometryNotPaired": { "value": -12 }, + "LAErrorBiometryDisconnected": { "value": -13 }, + "kLAErrorBiometryNotPaired": { "value": -12 }, + "kLAErrorBiometryDisconnected": { "value": -13 }, "kLACredentialSmartCardPIN": { "value": -3 }, "LABiometryTypeNone": { "value": 0 }, "LABiometryNone": { "value": 0 },