diff --git a/api/@ohos.userIAM.userAccessCtrl.d.ts b/api/@ohos.userIAM.userAccessCtrl.d.ts index 4fb39ab9d93ee1abe8474ec7935be332fe6ad831..479fce9d08afbe24f093e6af2bacb5ae9623dd1f 100644 --- a/api/@ohos.userIAM.userAccessCtrl.d.ts +++ b/api/@ohos.userIAM.userAccessCtrl.d.ts @@ -35,7 +35,7 @@ declare namespace userAccessCtrl { * * @permission ohos.permission.USE_USER_ACCESS_MANAGER * @param { Uint8Array } authToken - AuthToken to be verified. - * @param { number } allowableDuration - Allowable time interval from the authToken is issued till now in milliseconds. + * @param { int } allowableDuration - Allowable time interval from the authToken is issued till now in milliseconds. * @returns { Promise } Returns parsed authToken. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application. @@ -51,7 +51,7 @@ declare namespace userAccessCtrl { * @since arkts {'1.1':'18','1.2':'20'} * @arkts 1.1&1.2 */ - function verifyAuthToken(authToken: Uint8Array, allowableDuration: number): Promise; + function verifyAuthToken(authToken: Uint8Array, allowableDuration: int): Promise; /** * Authentication token. @@ -110,13 +110,13 @@ declare namespace userAccessCtrl { /** * The user id of authToken. * - * @type { number } + * @type { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. * @since arkts {'1.1':'18','1.2':'20'} * @arkts 1.1&1.2 */ - userId: number; + userId: int; /** * The time interval from the authToken is issued till now in milliseconds. @@ -166,7 +166,7 @@ declare namespace userAccessCtrl { /** * The issued type for authToken. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. * @since arkts {'1.1':'18','1.2':'20'} diff --git a/api/@ohos.userIAM.userAuth.d.ts b/api/@ohos.userIAM.userAuth.d.ts index ed92c972e0cb00f2c1639272ee12e8f44dda00a2..f3e77c51bb326a09aca6e328bcd75d636ab09f3b 100644 --- a/api/@ohos.userIAM.userAuth.d.ts +++ b/api/@ohos.userIAM.userAuth.d.ts @@ -60,7 +60,7 @@ declare namespace userAuth { * @since 20 * @arkts 1.2 */ - const MAX_ALLOWABLE_REUSE_DURATION: number = 300000; + const MAX_ALLOWABLE_REUSE_DURATION: int = 300000; /** * Enum for authentication result. @@ -691,7 +691,7 @@ declare namespace userAuth { /** * Credential type for authentication. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} @@ -767,7 +767,7 @@ declare namespace userAuth { /** * Trust level of authentication results. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} @@ -1081,24 +1081,24 @@ declare namespace userAuth { /** * The credential digest. * - * @type { number } + * @type { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - credentialDigest: number; + credentialDigest: int; /** * The credential count. * - * @type { number } + * @type { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - credentialCount: number; + credentialCount: int; } /** @@ -1141,7 +1141,7 @@ declare namespace userAuth { /** * Window mode type for user authentication widget. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. * @since arkts {'1.1':'10','1.2':'20'} @@ -1172,7 +1172,7 @@ declare namespace userAuth { /** * The mode for reusing unlock authentication result. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} @@ -1249,13 +1249,13 @@ declare namespace userAuth { /** * The allowable reuse duration.The value of the duration should be between 0 and MAX_ALLOWABLE_REUSE_DURATION. * - * @type { number } + * @type { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - reuseDuration: number; + reuseDuration: int; } /** @@ -1343,13 +1343,13 @@ declare namespace userAuth { /** * The user id to authenticate. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. * @since arkts {'1.1':'18','1.2':'20'} * @arkts 1.1&1.2 */ - userId?: number; + userId?: int; } /** @@ -1450,20 +1450,20 @@ declare namespace userAuth { /** * The authentication result. * - * @type { number } + * @type { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @since 10 */ /** * The authentication result. * - * @type { number } + * @type { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - result: number; + result: int; /** * The authentication result if the authentication is passed. @@ -1780,7 +1780,7 @@ declare namespace userAuth { /** * Notice type for user authentication. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. * @since arkts {'1.1':'10','1.2':'20'} @@ -1828,7 +1828,7 @@ declare namespace userAuth { /** * Enum for operation result. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} @@ -2091,7 +2091,7 @@ declare namespace userAuth { * Get authentication instance with widget. * * @permission ohos.permission.SUPPORT_USER_AUTH - * @param { number } version - The version of widget. + * @param { int } version - The version of widget. * @returns { UserAuthWidgetMgr } Returns an authentication manager. * @throws { BusinessError } 201 - Permission verification failed. * @throws { BusinessError } 202 - The caller is not a system application. @@ -2104,7 +2104,7 @@ declare namespace userAuth { * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - function getUserAuthWidgetMgr(version: number): UserAuthWidgetMgr; + function getUserAuthWidgetMgr(version: int): UserAuthWidgetMgr; /** * Asynchronous callback of authentication widget operation.