From f17357ef377a3464379e9bfd22fc44a70ee37c92 Mon Sep 17 00:00:00 2001 From: adelelimi Date: Fri, 12 Sep 2025 10:57:18 +0800 Subject: [PATCH] =?UTF-8?q?on=E3=80=81off=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: adelelimi --- ....app.ability.UserAuthExtensionAbility.d.ts | 4 +- api/@ohos.userIAM.faceAuth.d.ts | 17 +- api/@ohos.userIAM.userAccessCtrl.d.ts | 65 +- api/@ohos.userIAM.userAuth.d.ts | 646 ++++++++++-------- kits/@kit.UserAuthenticationKit.d.ts | 4 +- 5 files changed, 404 insertions(+), 332 deletions(-) diff --git a/api/@ohos.app.ability.UserAuthExtensionAbility.d.ts b/api/@ohos.app.ability.UserAuthExtensionAbility.d.ts index 9db28c4b99..971ef80a58 100644 --- a/api/@ohos.app.ability.UserAuthExtensionAbility.d.ts +++ b/api/@ohos.app.ability.UserAuthExtensionAbility.d.ts @@ -16,7 +16,6 @@ /** * @file * @kit UserAuthenticationKit - * @arkts 1.1&1.2 */ import UIExtensionAbility from './@ohos.app.ability.UIExtensionAbility'; @@ -28,7 +27,8 @@ import UIExtensionAbility from './@ohos.app.ability.UIExtensionAbility'; * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi Hide this for inner system use. * @StageModelOnly - * @since arkts {'1.1':'10','1.2':'22'} + * @since 10 dynamic + * @since 22 static */ export default class UserAuthExtensionAbility extends UIExtensionAbility { } \ No newline at end of file diff --git a/api/@ohos.userIAM.faceAuth.d.ts b/api/@ohos.userIAM.faceAuth.d.ts index 01ae3ddbe6..af1386e69c 100644 --- a/api/@ohos.userIAM.faceAuth.d.ts +++ b/api/@ohos.userIAM.faceAuth.d.ts @@ -16,7 +16,6 @@ /** * @file * @kit UserAuthenticationKit - * @arkts 1.1&1.2 */ /** @@ -24,8 +23,8 @@ * * @namespace faceAuth * @syscap SystemCapability.UserIAM.UserAuth.FaceAuth - * @since arkts {'1.1':'9','1.2':'22'} - * @arkts 1.1&1.2 + * @since 9 dynamic + * @since 22 static */ declare namespace faceAuth { /** @@ -33,8 +32,8 @@ declare namespace faceAuth { * * @syscap SystemCapability.UserIAM.UserAuth.FaceAuth * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'9','1.2':'22'} - * @arkts 1.1&1.2 + * @since 9 dynamic + * @since 22 static */ class FaceAuthManager { /** @@ -42,8 +41,8 @@ declare namespace faceAuth { * * @syscap SystemCapability.UserIAM.UserAuth.FaceAuth * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'9','1.2':'22'} - * @arkts 1.1&1.2 + * @since 9 dynamic + * @since 22 static */ constructor(); @@ -57,8 +56,8 @@ declare namespace faceAuth { * @throws { BusinessError } 12700001 - The service is unavailable. * @syscap SystemCapability.UserIAM.UserAuth.FaceAuth * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'9','1.2':'22'} - * @arkts 1.1&1.2 + * @since 9 dynamic + * @since 22 static */ setSurfaceId(surfaceId: string): void; } diff --git a/api/@ohos.userIAM.userAccessCtrl.d.ts b/api/@ohos.userIAM.userAccessCtrl.d.ts index 95868fd29b..45ff4d6b8a 100644 --- a/api/@ohos.userIAM.userAccessCtrl.d.ts +++ b/api/@ohos.userIAM.userAccessCtrl.d.ts @@ -16,7 +16,6 @@ /** * @file * @kit UserAuthenticationKit - * @arkts 1.1&1.2 */ import userAuth from '@ohos.userIAM.userAuth'; @@ -26,8 +25,8 @@ import userAuth from '@ohos.userIAM.userAuth'; * * @namespace userAccessCtrl * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ declare namespace userAccessCtrl { /** @@ -48,8 +47,8 @@ declare namespace userAccessCtrl { * @throws { BusinessError } 12500016 - AuthToken has expired. * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ function verifyAuthToken(authToken: Uint8Array, allowableDuration: int): Promise; @@ -59,8 +58,8 @@ declare namespace userAccessCtrl { * @typedef AuthToken * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ interface AuthToken { /** @@ -69,8 +68,8 @@ declare namespace userAccessCtrl { * @type { Uint8Array } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ challenge: Uint8Array; @@ -80,8 +79,8 @@ declare namespace userAccessCtrl { * @type { userAuth.AuthTrustLevel } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ authTrustLevel: userAuth.AuthTrustLevel; @@ -91,8 +90,8 @@ declare namespace userAccessCtrl { * @type { userAuth.UserAuthType } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ authType: userAuth.UserAuthType; @@ -102,8 +101,8 @@ declare namespace userAccessCtrl { * @type { AuthTokenType } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ tokenType: AuthTokenType; @@ -113,8 +112,8 @@ declare namespace userAccessCtrl { * @type { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ userId: int; @@ -124,8 +123,8 @@ declare namespace userAccessCtrl { * @type { bigint } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ timeInterval: bigint; @@ -135,8 +134,8 @@ declare namespace userAccessCtrl { * @type { ?bigint } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ secureUid?: bigint; @@ -146,8 +145,8 @@ declare namespace userAccessCtrl { * @type { ?bigint } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ enrolledId?: bigint; @@ -157,8 +156,8 @@ declare namespace userAccessCtrl { * @type { ?bigint } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ credentialId?: bigint; } @@ -169,8 +168,8 @@ declare namespace userAccessCtrl { * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ enum AuthTokenType { /** @@ -178,8 +177,8 @@ declare namespace userAccessCtrl { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ TOKEN_TYPE_LOCAL_AUTH = 0, @@ -188,8 +187,8 @@ declare namespace userAccessCtrl { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ TOKEN_TYPE_LOCAL_RESIGN = 1, @@ -198,8 +197,8 @@ declare namespace userAccessCtrl { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ TOKEN_TYPE_COAUTH = 2 } diff --git a/api/@ohos.userIAM.userAuth.d.ts b/api/@ohos.userIAM.userAuth.d.ts index 76be2628d1..1d5fc479cb 100644 --- a/api/@ohos.userIAM.userAuth.d.ts +++ b/api/@ohos.userIAM.userAuth.d.ts @@ -18,10 +18,10 @@ * @kit UserAuthenticationKit */ -/*** if arkts 1.1 */ +/*** if arkts dynamic */ import type { AsyncCallback } from './@ohos.base'; /*** endif */ -/*** if arkts 1.2 */ +/*** if arkts static */ import Context from './application/Context'; /*** endif */ @@ -39,8 +39,8 @@ import Context from './application/Context'; * @namespace userAuth * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ declare namespace userAuth { /** @@ -49,7 +49,7 @@ declare namespace userAuth { * @constant * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since 12 + * @since 12 dynamic */ const MAX_ALLOWABLE_REUSE_DURATION: 300000; /** @@ -57,8 +57,7 @@ declare namespace userAuth { * * @constant * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 22 - * @arkts 1.2 + * @since 22 static */ const MAX_ALLOWABLE_REUSE_DURATION: int = 300000; @@ -67,7 +66,7 @@ declare namespace userAuth { * * @enum { number } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamiconly * @deprecated since 8 * @useinstead ohos.userIAM.userAuth.ResultCode */ @@ -76,7 +75,7 @@ declare namespace userAuth { * Indicates that the device does not support authentication. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ NO_SUPPORT = -1, @@ -85,7 +84,7 @@ declare namespace userAuth { * Indicates that authentication is success. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ SUCCESS = 0, @@ -94,7 +93,7 @@ declare namespace userAuth { * Indicates the authenticator fails to identify user. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ COMPARE_FAILURE = 1, @@ -103,7 +102,7 @@ declare namespace userAuth { * Indicates that authentication has been canceled. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ CANCELED = 2, @@ -112,7 +111,7 @@ declare namespace userAuth { * Indicates that authentication has timed out. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ TIMEOUT = 3, @@ -121,7 +120,7 @@ declare namespace userAuth { * Indicates a failure to open the camera. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ CAMERA_FAIL = 4, @@ -130,7 +129,7 @@ declare namespace userAuth { * Indicates that the authentication task is busy. Wait for a few seconds and try again. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ BUSY = 5, @@ -139,7 +138,7 @@ declare namespace userAuth { * Indicates incorrect parameters. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ INVALID_PARAMETERS = 6, @@ -148,7 +147,7 @@ declare namespace userAuth { * Indicates that the authenticator is locked. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ LOCKED = 7, @@ -157,7 +156,7 @@ declare namespace userAuth { * Indicates that the user has not enrolled the authenticator. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ NOT_ENROLLED = 8, @@ -166,7 +165,7 @@ declare namespace userAuth { * Indicates other errors. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ GENERAL_ERROR = 100 @@ -177,7 +176,7 @@ declare namespace userAuth { * * @typedef { 'ALL' | 'FACE_ONLY' } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ type AuthType = 'ALL' | 'FACE_ONLY'; @@ -187,7 +186,7 @@ declare namespace userAuth { * * @typedef { 'S1' | 'S2' | 'S3' | 'S4' } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ type SecureLevel = 'S1' | 'S2' | 'S3' | 'S4'; @@ -197,7 +196,7 @@ declare namespace userAuth { * * @interface Authenticator * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ interface Authenticator { @@ -209,7 +208,7 @@ declare namespace userAuth { * @param { SecureLevel } level - Indicates the security level. * @param { AsyncCallback } callback - Async callback of execute. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ execute(type: AuthType, level: SecureLevel, callback: AsyncCallback): void; @@ -222,7 +221,7 @@ declare namespace userAuth { * @param { SecureLevel } level - Indicates the security level. * @returns { Promise } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ execute(type: AuthType, level: SecureLevel): Promise; @@ -233,7 +232,7 @@ declare namespace userAuth { * * @returns { Authenticator } Returns an Authenticator. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 6 + * @since 6 dynamic * @deprecated since 8 */ function getAuthenticator(): Authenticator; @@ -242,7 +241,7 @@ declare namespace userAuth { * User authentication. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamiconly * @deprecated since 9 * @useinstead ohos.userIAM.userAuth.AuthInstance */ @@ -251,7 +250,7 @@ declare namespace userAuth { * Constructor to get the UserAuth class instance. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamiconly * @deprecated since 9 * @useinstead ohos.userIAM.userAuth.getAuthInstance */ @@ -263,7 +262,7 @@ declare namespace userAuth { * @permission ohos.permission.ACCESS_BIOMETRIC * @returns { number } Returns version information. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamiconly * @deprecated since 9 * @useinstead ohos.userIAM.userAuth.getVersion */ @@ -278,7 +277,7 @@ declare namespace userAuth { * @returns { number } Returns a check result, which is specified by getAvailableStatus, the value of number is related to the ResultCode enum, **201** is * check permission failed. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamiconly * @deprecated since 9 * @useinstead ohos.userIAM.userAuth.getAvailableStatus */ @@ -295,7 +294,7 @@ declare namespace userAuth { * **201** is check permission failed. * @returns { Uint8Array } Returns ContextId for cancel. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamiconly * @deprecated since 9 * @useinstead ohos.userIAM.userAuth.AuthInstance.start */ @@ -314,7 +313,7 @@ declare namespace userAuth { * @returns { number } Returns a number value indicating whether Cancel authentication was successful, the value of number is related to the ResultCode * enum, **201** is check permission failed. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamiconly * @deprecated since 9 * @useinstead ohos.userIAM.userAuth.AuthInstance.cancel */ @@ -326,7 +325,7 @@ declare namespace userAuth { * * @interface IUserAuthCallback * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamiconly * @deprecated since 9 * @useinstead ohos.userIAM.userAuth.AuthEvent */ @@ -339,7 +338,7 @@ declare namespace userAuth { * * @type { function } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamiconly * @deprecated since 9 * @useinstead ohos.userIAM.userAuth.AuthEvent.callback */ @@ -350,7 +349,7 @@ declare namespace userAuth { * * @type { ?function } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamiconly * @deprecated since 9 * @useinstead ohos.userIAM.userAuth.AuthEvent.callback */ @@ -362,7 +361,7 @@ declare namespace userAuth { * * @typedef AuthResult * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamiconly * @deprecated since 9 * @useinstead ohos.userIAM.userAuth.AuthResultInfo */ @@ -372,7 +371,7 @@ declare namespace userAuth { * * @type { ?Uint8Array } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ token?: Uint8Array; @@ -382,7 +381,7 @@ declare namespace userAuth { * * @type { ?number } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ remainTimes?: number; @@ -392,7 +391,7 @@ declare namespace userAuth { * * @type { ?number } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ freezingTime?: number; @@ -403,7 +402,7 @@ declare namespace userAuth { * * @enum { number } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamiconly * @deprecated since 9 * @useinstead ohos.userIAM.userAuth.UserAuthResultCode */ @@ -412,7 +411,7 @@ declare namespace userAuth { * Indicates that the result is success or ability is supported. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ SUCCESS = 0, @@ -421,7 +420,7 @@ declare namespace userAuth { * Indicates that authentication failed. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ FAIL = 1, @@ -430,7 +429,7 @@ declare namespace userAuth { * Indicates other errors. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ GENERAL_ERROR = 2, @@ -439,7 +438,7 @@ declare namespace userAuth { * Indicates that this operation has been canceled. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ CANCELED = 3, @@ -448,7 +447,7 @@ declare namespace userAuth { * Indicates that this operation has timed out. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ TIMEOUT = 4, @@ -457,7 +456,7 @@ declare namespace userAuth { * Indicates that this authentication type is not supported. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ TYPE_NOT_SUPPORT = 5, @@ -466,7 +465,7 @@ declare namespace userAuth { * Indicates that the authentication trust level is not supported. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ TRUST_LEVEL_NOT_SUPPORT = 6, @@ -475,7 +474,7 @@ declare namespace userAuth { * Indicates that the authentication task is busy. Wait for a few seconds and try again. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ BUSY = 7, @@ -484,7 +483,7 @@ declare namespace userAuth { * Indicates incorrect parameters. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ INVALID_PARAMETERS = 8, @@ -493,7 +492,7 @@ declare namespace userAuth { * Indicates that the authenticator is locked. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ LOCKED = 9, @@ -502,7 +501,7 @@ declare namespace userAuth { * Indicates that the user has not enrolled the authenticator. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 9 */ NOT_ENROLLED = 10 @@ -513,7 +512,7 @@ declare namespace userAuth { * * @enum { number } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ enum FaceTips { @@ -521,7 +520,7 @@ declare namespace userAuth { * Indicates that the obtained facial image is too bright due to high illumination. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FACE_AUTH_TIP_TOO_BRIGHT = 1, @@ -530,7 +529,7 @@ declare namespace userAuth { * Indicates that the obtained facial image is too dark due to low illumination. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FACE_AUTH_TIP_TOO_DARK = 2, @@ -539,7 +538,7 @@ declare namespace userAuth { * Indicates that the face is too close to the device. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FACE_AUTH_TIP_TOO_CLOSE = 3, @@ -548,7 +547,7 @@ declare namespace userAuth { * Indicates that the face is too far away from the device. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FACE_AUTH_TIP_TOO_FAR = 4, @@ -557,7 +556,7 @@ declare namespace userAuth { * Indicates that the device is too high, and that only the upper part of the face is captured. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FACE_AUTH_TIP_TOO_HIGH = 5, @@ -566,7 +565,7 @@ declare namespace userAuth { * Indicates that the device is too low, and that only the lower part of the face is captured. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FACE_AUTH_TIP_TOO_LOW = 6, @@ -575,7 +574,7 @@ declare namespace userAuth { * Indicates that the device is deviated to the right, and that only the right part of the face is captured. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FACE_AUTH_TIP_TOO_RIGHT = 7, @@ -584,7 +583,7 @@ declare namespace userAuth { * Indicates that the device is deviated to the left, and that only the left part of the face is captured. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FACE_AUTH_TIP_TOO_LEFT = 8, @@ -593,7 +592,7 @@ declare namespace userAuth { * Indicates that the face moves too fast during facial information collection. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FACE_AUTH_TIP_TOO_MUCH_MOTION = 9, @@ -602,7 +601,7 @@ declare namespace userAuth { * Indicates that the face is not facing the device. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FACE_AUTH_TIP_POOR_GAZE = 10, @@ -611,7 +610,7 @@ declare namespace userAuth { * Indicates that no face is detected. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FACE_AUTH_TIP_NOT_DETECTED = 11 @@ -622,7 +621,7 @@ declare namespace userAuth { * * @enum { number } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ enum FingerprintTips { @@ -630,7 +629,7 @@ declare namespace userAuth { * Indicates that the image acquired is good. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FINGERPRINT_AUTH_TIP_GOOD = 0, @@ -639,7 +638,7 @@ declare namespace userAuth { * Indicates that the fingerprint image is too noisy due to suspected or detected dirt on sensor. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FINGERPRINT_AUTH_TIP_DIRTY = 1, @@ -648,7 +647,7 @@ declare namespace userAuth { * Indicates that the fingerprint image is too noisy to process due to a detected condition. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FINGERPRINT_AUTH_TIP_INSUFFICIENT = 2, @@ -657,7 +656,7 @@ declare namespace userAuth { * Indicates that only a partial fingerprint image is detected. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FINGERPRINT_AUTH_TIP_PARTIAL = 3, @@ -666,7 +665,7 @@ declare namespace userAuth { * Indicates that the fingerprint image is incomplete due to quick motion. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FINGERPRINT_AUTH_TIP_TOO_FAST = 4, @@ -675,7 +674,7 @@ declare namespace userAuth { * Indicates that the fingerprint image is unreadable due to lack of motion. * * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 8 + * @since 8 dynamic * @deprecated since 11 */ FINGERPRINT_AUTH_TIP_TOO_SLOW = 5 @@ -694,8 +693,8 @@ declare namespace userAuth { * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ enum UserAuthType { /** @@ -709,8 +708,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ PIN = 1, @@ -725,8 +724,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ FACE = 2, @@ -741,8 +740,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ FINGERPRINT = 4, @@ -751,8 +750,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'14','1.2':'22'} - * @arkts 1.1&1.2 + * @since 14 dynamic + * @since 22 static */ PRIVATE_PIN = 16 } @@ -772,8 +771,8 @@ declare namespace userAuth { * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ enum AuthTrustLevel { /** @@ -789,8 +788,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ ATL1 = 10000, @@ -807,8 +806,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ ATL2 = 20000, @@ -824,8 +823,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ ATL3 = 30000, @@ -841,8 +840,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ ATL4 = 40000 } @@ -852,7 +851,7 @@ declare namespace userAuth { * * @typedef { 'result' | 'tip' } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamic * @deprecated since 11 */ type AuthEventKey = 'result' | 'tip'; @@ -862,7 +861,7 @@ declare namespace userAuth { * * @typedef { AuthResultInfo | TipInfo } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamiconly * @deprecated since 11 * @useinstead ohos.userIAM.userAuth.UserAuthResult */ @@ -873,7 +872,7 @@ declare namespace userAuth { * * @interface AuthEvent * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamiconly * @deprecated since 11 * @useinstead ohos.userIAM.userAuth.IAuthCallback */ @@ -883,7 +882,7 @@ declare namespace userAuth { * * @param { EventInfo } result - Event info. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamiconly * @deprecated since 11 * @useinstead ohos.userIAM.userAuth.IAuthCallback.onResult */ @@ -895,7 +894,7 @@ declare namespace userAuth { * * @typedef AuthResultInfo * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamic * @deprecated since 11 */ interface AuthResultInfo { @@ -904,7 +903,7 @@ declare namespace userAuth { * * @type { number } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamic * @deprecated since 11 */ result: number; @@ -914,7 +913,7 @@ declare namespace userAuth { * * @type { ?Uint8Array } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamic * @deprecated since 11 */ token?: Uint8Array; @@ -924,7 +923,7 @@ declare namespace userAuth { * * @type { ?number } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamic * @deprecated since 11 */ remainAttempts?: number; @@ -934,7 +933,7 @@ declare namespace userAuth { * * @type { ?number } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamic * @deprecated since 11 */ lockoutDuration?: number; @@ -945,7 +944,7 @@ declare namespace userAuth { * * @typedef TipInfo * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamic * @deprecated since 11 */ interface TipInfo { @@ -954,7 +953,7 @@ declare namespace userAuth { * * @type { number } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamic * @deprecated since 11 */ module: number; @@ -964,7 +963,7 @@ declare namespace userAuth { * * @type { number } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamic * @deprecated since 11 */ tip: number; @@ -975,7 +974,7 @@ declare namespace userAuth { * * @interface AuthInstance * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamiconly * @deprecated since 10 * @useinstead ohos.userIAM.userAuth.UserAuthInstance */ @@ -986,7 +985,7 @@ declare namespace userAuth { * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 12500002 - General operation error. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamic * @deprecated since 10 */ on: (name: AuthEventKey, callback: AuthEvent) => void; @@ -997,7 +996,7 @@ declare namespace userAuth { * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 12500002 - General operation error. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamic * @deprecated since 10 */ off: (name: AuthEventKey) => void; @@ -1019,7 +1018,7 @@ declare namespace userAuth { * @throws { BusinessError } 12500009 - The authenticator is locked. * @throws { BusinessError } 12500010 - The type of credential has not been enrolled. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamic * @deprecated since 10 */ start: () => void; @@ -1033,7 +1032,7 @@ declare namespace userAuth { * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 12500002 - General operation error. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamic * @deprecated since 10 */ cancel: () => void; @@ -1085,8 +1084,8 @@ declare namespace userAuth { * @throws { BusinessError } 12500013 - Operation failed because of PIN expired. * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ function getAvailableStatus(authType: UserAuthType, authTrustLevel: AuthTrustLevel): void; @@ -1096,8 +1095,8 @@ declare namespace userAuth { * @typedef EnrolledState * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ interface EnrolledState { /** @@ -1106,8 +1105,8 @@ declare namespace userAuth { * @type { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ credentialDigest: int; @@ -1117,8 +1116,8 @@ declare namespace userAuth { * @type { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ credentialCount: int; } @@ -1137,8 +1136,8 @@ declare namespace userAuth { * @throws { BusinessError } 12500010 - The type of credential has not been enrolled. * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ function getEnrolledState(authType: UserAuthType): EnrolledState; @@ -1154,7 +1153,7 @@ declare namespace userAuth { * @throws { BusinessError } 12500005 - The authentication type is not supported. * @throws { BusinessError } 12500006 - The authentication trust level is not supported. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 + * @since 9 dynamiconly * @deprecated since 10 * @useinstead ohos.userIAM.userAuth.getUserAuthInstance */ @@ -1166,8 +1165,8 @@ declare namespace userAuth { * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'10','1.2':'22'} - * @arkts 1.1&1.2 + * @since 10 dynamic + * @since 22 static */ enum WindowModeType { /** @@ -1175,8 +1174,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'10','1.2':'22'} - * @arkts 1.1&1.2 + * @since 10 dynamic + * @since 22 static */ DIALOG_BOX = 1, @@ -1185,8 +1184,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'10','1.2':'22'} - * @arkts 1.1&1.2 + * @since 10 dynamic + * @since 22 static */ FULLSCREEN = 2 } @@ -1197,8 +1196,8 @@ declare namespace userAuth { * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ enum ReuseMode { /** @@ -1207,8 +1206,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ AUTH_TYPE_RELEVANT = 1, @@ -1218,8 +1217,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ AUTH_TYPE_IRRELEVANT = 2, @@ -1230,8 +1229,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'14','1.2':'22'} - * @arkts 1.1&1.2 + * @since 14 dynamic + * @since 22 static */ CALLER_IRRELEVANT_AUTH_TYPE_RELEVANT = 3, @@ -1241,8 +1240,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'14','1.2':'22'} - * @arkts 1.1&1.2 + * @since 14 dynamic + * @since 22 static */ CALLER_IRRELEVANT_AUTH_TYPE_IRRELEVANT = 4 } @@ -1264,8 +1263,8 @@ declare namespace userAuth { * @typedef ReuseUnlockResult * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ interface ReuseUnlockResult { /** @@ -1274,8 +1273,8 @@ declare namespace userAuth { * @type { ReuseMode } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ reuseMode: ReuseMode; @@ -1286,8 +1285,8 @@ declare namespace userAuth { * @type { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ reuseDuration: int; } @@ -1305,8 +1304,8 @@ declare namespace userAuth { * @typedef AuthParam * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ interface AuthParam { /** @@ -1323,8 +1322,8 @@ declare namespace userAuth { * @type { Uint8Array } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ challenge: Uint8Array; @@ -1341,8 +1340,8 @@ declare namespace userAuth { * @type { UserAuthType[] } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ authType: UserAuthType[]; @@ -1359,8 +1358,8 @@ declare namespace userAuth { * @type { AuthTrustLevel } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ authTrustLevel: AuthTrustLevel; @@ -1370,8 +1369,8 @@ declare namespace userAuth { * @type { ?ReuseUnlockResult } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ reuseUnlockResult?: ReuseUnlockResult; @@ -1382,8 +1381,8 @@ declare namespace userAuth { * @default The ID of the current user. The value is a positive integer greater than or equal to 0. * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ userId?: int; @@ -1393,8 +1392,8 @@ declare namespace userAuth { * @type { ?boolean } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ skipLockedBiometricAuth?: boolean; } @@ -1412,8 +1411,8 @@ declare namespace userAuth { * @typedef WidgetParam * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ interface WidgetParam { /** @@ -1429,8 +1428,8 @@ declare namespace userAuth { * @type { string } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ title: string; @@ -1449,8 +1448,8 @@ declare namespace userAuth { * @type { ?string } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ navigationButtonText?: string; @@ -1461,8 +1460,8 @@ declare namespace userAuth { * @default WindowModeType.DIALOG_BOX * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'10','1.2':'22'} - * @arkts 1.1&1.2 + * @since 10 dynamic + * @since 22 static */ windowMode?: WindowModeType; @@ -1474,8 +1473,8 @@ declare namespace userAuth { * @type { ?Context } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ uiContext?: Context; } @@ -1494,8 +1493,8 @@ declare namespace userAuth { * @typedef UserAuthResult * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ interface UserAuthResult { /** @@ -1512,8 +1511,8 @@ declare namespace userAuth { * @type { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ result: int; @@ -1530,8 +1529,8 @@ declare namespace userAuth { * @type { ?Uint8Array } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ token?: Uint8Array; @@ -1548,8 +1547,8 @@ declare namespace userAuth { * @type { ?UserAuthType } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ authType?: UserAuthType; @@ -1560,8 +1559,8 @@ declare namespace userAuth { * @type { ?EnrolledState } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ enrolledState?: EnrolledState; } @@ -1573,8 +1572,7 @@ declare namespace userAuth { * @typedef { function } AuthCallbackOnResultFunc * @param { UserAuthResult } result - Authentication result information. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 22 - * @arkts 1.2 + * @since 22 static */ type AuthCallbackOnResultFunc = (result: UserAuthResult) => void; @@ -1591,8 +1589,8 @@ declare namespace userAuth { * @interface IAuthCallback * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ interface IAuthCallback { /** @@ -1610,7 +1608,7 @@ declare namespace userAuth { * @param { UserAuthResult } result - Authentication result information. * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since 12 + * @since 12 dynamic */ onResult(result: UserAuthResult): void; @@ -1620,8 +1618,7 @@ declare namespace userAuth { * * @type { AuthCallbackOnResultFunc } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 22 - * @arkts 1.2 + * @since 22 static */ onResult: AuthCallbackOnResultFunc; } @@ -1632,8 +1629,8 @@ declare namespace userAuth { * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ enum UserAuthTipCode { /** @@ -1641,8 +1638,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ COMPARE_FAILURE = 1, @@ -1651,8 +1648,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ TIMEOUT = 2, @@ -1661,8 +1658,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ TEMPORARILY_LOCKED = 3, @@ -1671,8 +1668,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ PERMANENTLY_LOCKED = 4, @@ -1681,8 +1678,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ WIDGET_LOADED = 5, @@ -1691,8 +1688,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ WIDGET_RELEASED = 6, @@ -1701,8 +1698,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ COMPARE_FAILURE_WITH_FROZEN = 7 } @@ -1713,8 +1710,8 @@ declare namespace userAuth { * @typedef AuthTipInfo * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ interface AuthTipInfo { /** @@ -1723,8 +1720,8 @@ declare namespace userAuth { * @type { UserAuthType } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ tipType: UserAuthType; @@ -1734,8 +1731,8 @@ declare namespace userAuth { * @type { UserAuthTipCode } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ tipCode: UserAuthTipCode; } @@ -1747,8 +1744,8 @@ declare namespace userAuth { * @param { AuthTipInfo } authTipInfo - Tips returned during authentication process. * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ type AuthTipCallback = (authTipInfo: AuthTipInfo) => void; @@ -1766,8 +1763,8 @@ declare namespace userAuth { * @interface UserAuthInstance * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ interface UserAuthInstance { /** @@ -1795,11 +1792,24 @@ declare namespace userAuth { * @throws { BusinessError } 12500002 - General operation error. * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic */ on(type: 'result', callback: IAuthCallback): void; + /** + * Subscribes to the user authentication result. + * + * @param { IAuthCallback } callback - Callback used to return the user authentication result. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + *
1. Mandatory parameters are left unspecified. + *
2. Incorrect parameter types. + *
3. Parameter verification failed. + * @throws { BusinessError } 12500002 - General operation error. + * @syscap SystemCapability.UserIAM.UserAuth.Core + * @since 22 static + */ + onResult(callback: IAuthCallback): void; + /** * Turn off widget authentication result event listening. * @@ -1829,11 +1839,28 @@ declare namespace userAuth { * @throws { BusinessError } 12500002 - General operation error. * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic */ off(type: 'result', callback?: IAuthCallback): void; + /** + * Unsubscribes from the user authentication result. + * + *

NOTE: + *
The UserAuthInstance instance used to invoke this API must be the one used to subscribe to the event. + *

+ * + * @param { IAuthCallback } [callback] - Callback to unregister. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + *
1. Mandatory parameters are left unspecified. + *
2. Incorrect parameter types. + *
3. Parameter verification failed. + * @throws { BusinessError } 12500002 - General operation error. + * @syscap SystemCapability.UserIAM.UserAuth.Core + * @since 22 static + */ + offResult(callback?: IAuthCallback): void; + /** * Start this authentication, an instance can only perform authentication once. * @@ -1855,8 +1882,8 @@ declare namespace userAuth { * @since 10 */ /** - * Start this authentication, an instance can only perform authentication once. - * + * Starts authentication. Each UserAuthInstance + * instance can be used for authentication only once. * @permission ohos.permission.ACCESS_BIOMETRIC * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: @@ -1901,8 +1928,8 @@ declare namespace userAuth { * @throws { BusinessError } 12500013 - Operation failed because of PIN expired. * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ start(): void; @@ -1931,8 +1958,8 @@ declare namespace userAuth { * @throws { BusinessError } 12500002 - General operation error. * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ cancel(): void; @@ -1944,10 +1971,20 @@ declare namespace userAuth { * @throws { BusinessError } 12500002 - General operation error. * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since 20 + * @since 20 dynamic */ on(type: 'authTip', callback: AuthTipCallback): void; + /** + * Turn on authentication tip event listening. + * + * @param { AuthTipCallback } callback - Indicates the listener. + * @throws { BusinessError } 12500002 - General operation error. + * @syscap SystemCapability.UserIAM.UserAuth.Core + * @since 22 static + */ + onAuthTip(callback: AuthTipCallback): void; + /** * Turn off authentication tip event listening. * @@ -1956,9 +1993,19 @@ declare namespace userAuth { * @throws { BusinessError } 12500002 - General operation error. * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since 20 + * @since 20 dynamic */ off(type: 'authTip', callback?: AuthTipCallback): void; + + /** + * Turn off authentication tip event listening. + * + * @param { AuthTipCallback } [callback] - Indicates the listener. + * @throws { BusinessError } 12500002 - General operation error. + * @syscap SystemCapability.UserIAM.UserAuth.Core + * @since 22 static + */ + offAuthTip(callback?: AuthTipCallback): void; } /** @@ -1996,8 +2043,8 @@ declare namespace userAuth { * @throws { BusinessError } 12500006 - The authentication trust level is not supported. * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ function getUserAuthInstance(authParam: AuthParam, widgetParam: WidgetParam): UserAuthInstance; @@ -2007,8 +2054,8 @@ declare namespace userAuth { * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'10','1.2':'22'} - * @arkts 1.1&1.2 + * @since 10 dynamic + * @since 22 static */ enum NoticeType { /** @@ -2016,8 +2063,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'10','1.2':'22'} - * @arkts 1.1&1.2 + * @since 10 dynamic + * @since 22 static */ WIDGET_NOTICE = 1 } @@ -2037,8 +2084,8 @@ declare namespace userAuth { * @throws { BusinessError } 12500002 - General operation error. * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'10','1.2':'22'} - * @arkts 1.1&1.2 + * @since 10 dynamic + * @since 22 static */ function sendNotice(noticeType: NoticeType, eventData: string): void; @@ -2055,8 +2102,8 @@ declare namespace userAuth { * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ enum UserAuthResultCode { /** @@ -2070,8 +2117,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ SUCCESS = 12500000, @@ -2086,8 +2133,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ FAIL = 12500001, @@ -2102,8 +2149,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ GENERAL_ERROR = 12500002, @@ -2118,8 +2165,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ CANCELED = 12500003, @@ -2134,8 +2181,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ TIMEOUT = 12500004, @@ -2150,8 +2197,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ TYPE_NOT_SUPPORT = 12500005, @@ -2166,8 +2213,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ TRUST_LEVEL_NOT_SUPPORT = 12500006, @@ -2182,8 +2229,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ BUSY = 12500007, @@ -2192,8 +2239,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ INVALID_PARAMETERS = 12500008, @@ -2208,8 +2255,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ LOCKED = 12500009, @@ -2224,8 +2271,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ NOT_ENROLLED = 12500010, @@ -2241,8 +2288,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ CANCELED_FROM_WIDGET = 12500011, @@ -2251,8 +2298,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'22'} - * @arkts 1.1&1.2 + * @since 12 dynamic + * @since 22 static */ PIN_EXPIRED = 12500013, @@ -2261,8 +2308,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ AUTH_TOKEN_CHECK_FAILED = 12500015, @@ -2272,8 +2319,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'18','1.2':'22'} - * @arkts 1.1&1.2 + * @since 18 dynamic + * @since 22 static */ AUTH_TOKEN_EXPIRED = 12500016, @@ -2282,8 +2329,8 @@ declare namespace userAuth { * * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ REUSE_AUTH_RESULT_FAILED = 12500017 } @@ -2295,46 +2342,75 @@ declare namespace userAuth { * @interface UserAuthWidgetMgr * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'10','1.2':'22'} - * @arkts 1.1&1.2 + * @since 10 dynamic + * @since 22 static */ interface UserAuthWidgetMgr { /** * Subscribes to commands from the user authentication framework for the user authentication widget. * * @param { 'command' } type - Event type. The vlaue is command, which indicates the command sent from the user - * authentication framework to the user authentication widget. + * authentication framework to the user authentication widget. * @param { IAuthWidgetCallback } callback - Callback used to return the command from the user authentication - * framework to the user authentication widget. + * framework to the user authentication widget. * @throws { BusinessError } 401 - Parameter error. Possible causes: - *
1. Mandatory parameters are left unspecified. - *
2. Incorrect parameter types. - *
3. Parameter verification failed. + *
1. Mandatory parameters are left unspecified. + *
2. Incorrect parameter types. + *
3. Parameter verification failed. * @throws { BusinessError } 12500002 - General operation error. * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'10','1.2':'22'} - * @arkts 1.1&1.2 + * @since 10 dynamic */ on(type: 'command', callback: IAuthWidgetCallback): void; + /** + * Subscribes to commands from the user authentication framework for the user authentication widget. + * + * @param { IAuthWidgetCallback } callback - Callback used to return the command from the user authentication + * framework to the user authentication widget. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + *
1. Mandatory parameters are left unspecified. + *
2. Incorrect parameter types. + *
3. Parameter verification failed. + * @throws { BusinessError } 12500002 - General operation error. + * @syscap SystemCapability.UserIAM.UserAuth.Core + * @systemapi Hide this for inner system use. + * @since 22 static + */ + onCommand(callback: IAuthWidgetCallback): void; + /** * Unsubscribes from commands sent from the user authentication framework. * * @param { 'command' } type - Event type. The value is command, which indicates the command sent from the user - * authentication framework to the user authentication widget. + * authentication framework to the user authentication widget. * @param { IAuthWidgetCallback } callback - Callback to unregister. * @throws { BusinessError } 401 - Parameter error. Possible causes: - *
1. Mandatory parameters are left unspecified. - *
2. Incorrect parameter types. - *
3. Parameter verification failed. + *
1. Mandatory parameters are left unspecified. + *
2. Incorrect parameter types. + *
3. Parameter verification failed. * @throws { BusinessError } 12500002 - General operation error. * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'10','1.2':'22'} - * @arkts 1.1&1.2 + * @since 10 dynamic */ off(type: 'command', callback?: IAuthWidgetCallback): void; + + /** + * Unsubscribes from commands sent from the user authentication framework. + * + * @param { IAuthWidgetCallback } [callback] - Callback to unregister. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + *
1. Mandatory parameters are left unspecified. + *
2. Incorrect parameter types. + *
3. Parameter verification failed. + * @throws { BusinessError } 12500002 - General operation error. + * @syscap SystemCapability.UserIAM.UserAuth.Core + * @systemapi Hide this for inner system use. + * @since 22 static + */ + offCommand(callback?: IAuthWidgetCallback): void; } /** @@ -2355,8 +2431,8 @@ declare namespace userAuth { * @throws { BusinessError } 12500002 - General operation error. * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'10','1.2':'22'} - * @arkts 1.1&1.2 + * @since 10 dynamic + * @since 22 static */ function getUserAuthWidgetMgr(version: int): UserAuthWidgetMgr; @@ -2367,8 +2443,7 @@ declare namespace userAuth { * @param { string } cmdData - Command sent from the user authentication framework to the user authentication widget. * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since 22 - * @arkts 1.2 + * @since 22 static */ type AuthWidgetCallbackSendCommandFunc = (cmdData: string) => void; @@ -2379,8 +2454,8 @@ declare namespace userAuth { * @interface IAuthWidgetCallback * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'10','1.2':'22'} - * @arkts 1.1&1.2 + * @since 10 dynamic + * @since 22 static */ interface IAuthWidgetCallback { /** @@ -2389,7 +2464,7 @@ declare namespace userAuth { * @param { string } cmdData - Command sent from the user authentication framework to the user authentication widget. * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since 10 + * @since 10 dynamic */ sendCommand(cmdData: string): void; @@ -2399,8 +2474,7 @@ declare namespace userAuth { * @type { AuthWidgetCallbackSendCommandFunc } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since 22 - * @arkts 1.2 + * @since 22 static */ sendCommand: AuthWidgetCallbackSendCommandFunc; } @@ -2418,8 +2492,8 @@ declare namespace userAuth { * @throws { BusinessError } 12500017 - Failed to reuse authentication result. * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'20','1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 dynamic + * @since 22 static */ function queryReusableAuthResult(authParam: AuthParam): Uint8Array; } diff --git a/kits/@kit.UserAuthenticationKit.d.ts b/kits/@kit.UserAuthenticationKit.d.ts index 59e6e37e41..77fdefdc27 100644 --- a/kits/@kit.UserAuthenticationKit.d.ts +++ b/kits/@kit.UserAuthenticationKit.d.ts @@ -17,7 +17,7 @@ * @file * @kit UserAuthenticationKit */ -/*** if arkts 1.1 */ +/*** if arkts dynamic */ import faceAuth from '@ohos.userIAM.faceAuth'; import userAccessCtrl from '@ohos.userIAM.userAccessCtrl'; import userAuth from '@ohos.userIAM.userAuth'; @@ -26,7 +26,7 @@ import UserAuthExtensionAbility from '@ohos.app.ability.UserAuthExtensionAbility export { faceAuth, userAccessCtrl, userAuth, UserAuthIcon, UserAuthExtensionAbility }; /*** endif */ -/*** if arkts 1.2 */ +/*** if arkts static */ import faceAuth from '@ohos.userIAM.faceAuth'; import userAccessCtrl from '@ohos.userIAM.userAccessCtrl'; import userAuth from '@ohos.userIAM.userAuth'; -- Gitee