!11120 asset huks error msg整改

Merge pull request !11120 from 尹耀德/master
This commit is contained in:
openharmony_ci 2024-05-10 10:47:22 +00:00 committed by Gitee
commit 348657f7a6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 243 additions and 241 deletions

View File

@ -32,21 +32,21 @@ declare namespace asset {
*
* @param { AssetMap } attributes - a map object containing attributes of the Asset to be added.
* @returns { Promise<void> } the promise object returned by the function.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000003 - Data already exists.
* @throws { BusinessError } 24000005 - Device status mismatch.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000009 - Key management service is abnormal.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 24000014 - File operation failed.
* @throws { BusinessError } 24000015 - Get system time failed.
* @throws { BusinessError } 201 - The caller doesn't have the permission.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000003 - The asset already exists.
* @throws { BusinessError } 24000005 - The screen lock status does not match.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000009 - The cryptography operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @throws { BusinessError } 24000014 - The file operation failed.
* @throws { BusinessError } 24000015 - Getting the system time failed.
* @syscap SystemCapability.Security.Asset
* @since 11
*/
@ -59,22 +59,22 @@ declare namespace asset {
* @param { number } userId - the user identifier to add an Asset.
* @param { AssetMap } attributes - a map object containing attributes of the Asset to be added.
* @returns { Promise<void> } the promise object returned by the function.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 201 - The caller doesn't have the permission.
* @throws { BusinessError } 202 - Non-system applications use system APIs.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000003 - Data already exists.
* @throws { BusinessError } 24000005 - Device status mismatch.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000009 - Key management service is abnormal.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 24000014 - File operation failed.
* @throws { BusinessError } 24000015 - Get system time failed.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000003 - The asset already exists.
* @throws { BusinessError } 24000005 - The screen lock status does not match.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000009 - The cryptography operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @throws { BusinessError } 24000014 - The file operation failed.
* @throws { BusinessError } 24000015 - Getting the system time failed.
* @syscap SystemCapability.Security.Asset
* @systemapi
* @since 12
@ -85,21 +85,21 @@ declare namespace asset {
* Add an Asset.
*
* @param { AssetMap } attributes - a map object containing attributes of the Asset to be added.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000003 - Data already exists.
* @throws { BusinessError } 24000005 - Device status mismatch.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000009 - Key management service is abnormal.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 24000014 - File operation failed.
* @throws { BusinessError } 24000015 - Get system time failed.
* @throws { BusinessError } 201 - The caller doesn't have the permission.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000003 - The asset already exists.
* @throws { BusinessError } 24000005 - The screen lock status does not match.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000009 - The cryptography operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @throws { BusinessError } 24000014 - The file operation failed.
* @throws { BusinessError } 24000015 - Getting the system time failed.
* @syscap SystemCapability.Security.Asset
* @since 12
*/
@ -110,16 +110,16 @@ declare namespace asset {
*
* @param { AssetMap } query - a map object containing attributes of the Asset to be removed.
* @returns { Promise<void> } the promise object returned by the function.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000002 - Data not found.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @syscap SystemCapability.Security.Asset
* @since 11
*/
@ -132,18 +132,18 @@ declare namespace asset {
* @param { number } userId - the user identifier to remove one or more Assets.
* @param { AssetMap } query - a map object containing attributes of the Asset to be removed.
* @returns { Promise<void> } the promise object returned by the function.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 201 - The caller doesn't have the permission.
* @throws { BusinessError } 202 - Non-system applications use system APIs.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000002 - Data not found.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @syscap SystemCapability.Security.Asset
* @systemapi
* @since 12
@ -154,16 +154,16 @@ declare namespace asset {
* Remove one or more Assets that match a search query.
*
* @param { AssetMap } query - a map object containing attributes of the Asset to be removed.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000002 - Data not found.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @syscap SystemCapability.Security.Asset
* @since 12
*/
@ -175,19 +175,19 @@ declare namespace asset {
* @param { AssetMap } query - a map object containing attributes of the Asset to be updated.
* @param { AssetMap } attributesToUpdate - a map object containing attributes with new values.
* @returns { Promise<void> } the promise object returned by the function.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000002 - Data not found.
* @throws { BusinessError } 24000005 - Device status mismatch.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000009 - Key management service is abnormal.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 24000015 - Get system time failed.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000005 - The screen lock status does not match.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000009 - The cryptography operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @throws { BusinessError } 24000015 - Getting the system time failed.
* @syscap SystemCapability.Security.Asset
* @since 11
*/
@ -201,21 +201,21 @@ declare namespace asset {
* @param { AssetMap } query - a map object containing attributes of the Asset to be updated.
* @param { AssetMap } attributesToUpdate - a map object containing attributes with new values.
* @returns { Promise<void> } the promise object returned by the function.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 201 - The caller doesn't have the permission.
* @throws { BusinessError } 202 - Non-system applications use system APIs.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000002 - Data not found.
* @throws { BusinessError } 24000005 - Device status mismatch.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000009 - Key management service is abnormal.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 24000015 - Get system time failed.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000005 - The screen lock status does not match.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000009 - The cryptography operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @throws { BusinessError } 24000015 - Getting the system time failed.
* @syscap SystemCapability.Security.Asset
* @systemapi
* @since 12
@ -227,19 +227,19 @@ declare namespace asset {
*
* @param { AssetMap } query - a map object containing attributes of the Asset to be updated.
* @param { AssetMap } attributesToUpdate - a map object containing attributes with new values.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000002 - Data not found.
* @throws { BusinessError } 24000005 - Device status mismatch.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000009 - Key management service is abnormal.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 24000015 - Get system time failed.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000005 - The screen lock status does not match.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000009 - The cryptography operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @throws { BusinessError } 24000015 - Getting the system time failed.
* @syscap SystemCapability.Security.Asset
* @since 12
*/
@ -250,49 +250,49 @@ declare namespace asset {
*
* @param { AssetMap } query - a map object containing attributes of the Asset to be queried.
* @returns { Promise<Uint8Array> } the promise object returned by the function.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000002 - Data not found.
* @throws { BusinessError } 24000005 - Device status mismatch.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000009 - Key management service is abnormal.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 24000016 - Capacity exceeds the limit.
* @throws { BusinessError } 24000017 - Capability not supported.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000005 - The screen lock status does not match.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000009 - The cryptography operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @throws { BusinessError } 24000016 - The cache exceeds the limit.
* @throws { BusinessError } 24000017 - The capability is not supported.
* @syscap SystemCapability.Security.Asset
* @since 11
*/
function preQuery(query: AssetMap): Promise<Uint8Array>;
/**
* Preprocessing (e.g. get challenge) for querying one or more Assets
* Preprocessing (e.g. get challenge) for querying one or more Assets
* that require user authentication in a specific user space.
*
* @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
* @param { number } userId - the user identifier to pre-query one or more Assets.
* @param { AssetMap } query - a map object containing attributes of the Asset to be queried.
* @returns { Promise<Uint8Array> } the promise object returned by the function.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 201 - The caller doesn't have the permission.
* @throws { BusinessError } 202 - Non-system applications use system APIs.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000002 - Data not found.
* @throws { BusinessError } 24000005 - Device status mismatch.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000009 - Key management service is abnormal.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 24000016 - Capacity exceeds the limit.
* @throws { BusinessError } 24000017 - Capability not supported.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000005 - The screen lock status does not match.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000009 - The cryptography operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @throws { BusinessError } 24000016 - The cache exceeds the limit.
* @throws { BusinessError } 24000017 - The capability is not supported.
* @syscap SystemCapability.Security.Asset
* @systemapi
* @since 12
@ -304,20 +304,20 @@ declare namespace asset {
*
* @param { AssetMap } query - a map object containing attributes of the Asset to be queried.
* @returns { Uint8Array } the challenge value to be used when {@link querySync} is called.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000002 - Data not found.
* @throws { BusinessError } 24000005 - Device status mismatch.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000009 - Key management service is abnormal.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 24000016 - Capacity exceeds the limit.
* @throws { BusinessError } 24000017 - Capability not supported.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000005 - The screen lock status does not match.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000009 - The cryptography operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @throws { BusinessError } 24000016 - The cache exceeds the limit.
* @throws { BusinessError } 24000017 - The capability is not supported.
* @syscap SystemCapability.Security.Asset
* @since 12
*/
@ -328,20 +328,20 @@ declare namespace asset {
*
* @param { AssetMap } query - a map object containing attributes of the Asset to be queried.
* @returns { Promise<Array<AssetMap>> } the promise object returned by the function.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000002 - Data not found.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000004 - Access denied.
* @throws { BusinessError } 24000005 - Device status mismatch.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000009 - Key management service is abnormal.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 24000017 - Capability not supported.
* @throws { BusinessError } 24000005 - The screen lock status does not match.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000009 - The cryptography operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @throws { BusinessError } 24000017 - The capability is not supported.
* @syscap SystemCapability.Security.Asset
* @since 11
*/
@ -354,22 +354,22 @@ declare namespace asset {
* @param { number } userId - the user identifier to query one or more Assets.
* @param { AssetMap } query - a map object containing attributes of the Asset to be queried.
* @returns { Promise<Array<AssetMap>> } the promise object returned by the function.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 201 - The caller doesn't have the permission.
* @throws { BusinessError } 202 - Non-system applications use system APIs.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000002 - Data not found.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000004 - Access denied.
* @throws { BusinessError } 24000005 - Device status mismatch.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000009 - Key management service is abnormal.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 24000017 - Capability not supported.
* @throws { BusinessError } 24000005 - The screen lock status does not match.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000009 - The cryptography operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @throws { BusinessError } 24000017 - The capability is not supported.
* @syscap SystemCapability.Security.Asset
* @systemapi
* @since 12
@ -381,20 +381,20 @@ declare namespace asset {
*
* @param { AssetMap } query - a map object containing attributes of the Asset to be queried.
* @returns { Array<AssetMap> } the query result.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000002 - Data not found.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000004 - Access denied.
* @throws { BusinessError } 24000005 - Device status mismatch.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000007 - Data corrupted.
* @throws { BusinessError } 24000008 - Database operation failed.
* @throws { BusinessError } 24000009 - Key management service is abnormal.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 24000017 - Capability not supported.
* @throws { BusinessError } 24000005 - The screen lock status does not match.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000007 - The asset is corrupted.
* @throws { BusinessError } 24000008 - The database operation failed.
* @throws { BusinessError } 24000009 - The cryptography operation failed.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @throws { BusinessError } 24000017 - The capability is not supported.
* @syscap SystemCapability.Security.Asset
* @since 12
*/
@ -405,35 +405,35 @@ declare namespace asset {
*
* @param { AssetMap } handle - a map object containing the handle returned by {@link preQuery}.
* @returns { Promise<void> } the promise object returned by the function.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @syscap SystemCapability.Security.Asset
* @since 11
*/
function postQuery(handle: AssetMap): Promise<void>;
/**
* Post-processing (e.g. release cached resource) for querying multiple Assets that require user authentication in a
* Post-processing (e.g. release cached resource) for querying multiple Assets that require user authentication in a
* specific user space.
*
* @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
* @param { number } userId - the user identifier to post-query one or more Assets.
* @param { AssetMap } handle - a map object containing the handle returned by {@link preQueryAsUser}.
* @returns { Promise<void> } the promise object returned by the function.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 201 - The caller doesn't have the permission.
* @throws { BusinessError } 202 - Non-system applications use system APIs.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @syscap SystemCapability.Security.Asset
* @systemapi
* @since 12
@ -444,13 +444,13 @@ declare namespace asset {
* Post-processing (e.g. release cached resource) for querying multiple Assets that require user authentication.
*
* @param { AssetMap } handle - a map object containing the handle returned by {@link preQuerySync}.
* @throws { BusinessError } 401 - Invalid argument.
* @throws { BusinessError } 24000001 - Service unavailable.
* @throws { BusinessError } 24000006 - Out of memory.
* @throws { BusinessError } 24000010 - IPC communication is abnormal.
* @throws { BusinessError } 24000011 - Bundle framework is abnormal.
* @throws { BusinessError } 24000012 - Account manager is abnormal.
* @throws { BusinessError } 24000013 - Access token manager is abnormal.
* @throws { BusinessError } 401 - The argument is invalid.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000006 - Insufficient memory.
* @throws { BusinessError } 24000010 - IPC failed.
* @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.
* @throws { BusinessError } 24000012 - Calling the OS Account service failed.
* @throws { BusinessError } 24000013 - Calling the Access Token service failed.
* @syscap SystemCapability.Security.Asset
* @since 12
*/
@ -459,6 +459,7 @@ declare namespace asset {
/**
* A Map type containing tag-value pairs that describe the attributes of an Asset.
*
* @typedef { Map<Tag, Value> }
* @syscap SystemCapability.Security.Asset
* @since 11
*/
@ -467,6 +468,7 @@ declare namespace asset {
/**
* A type that indicates the secret or attribute value of an Asset tag.
*
* @typedef { boolean | number | Uint8Array }
* @syscap SystemCapability.Security.Asset
* @since 11
*/
@ -896,7 +898,7 @@ declare namespace asset {
*/
enum ErrorCode {
/**
* The error code indicates that the caller doesn't have the permission.
* The error code indicates that The caller doesn't have the permission.
*
* @syscap SystemCapability.Security.Asset
* @since 11
@ -910,42 +912,42 @@ declare namespace asset {
*/
NOT_SYSTEM_APPLICATION = 202,
/**
* The error code indicates that the argument is invalid.
* The error code indicates that The argument is invalid.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
INVALID_ARGUMENT = 401,
/**
* The error code indicates that the ASSET Service is unavailable.
* The error code indicates that the ASSET service is unavailable.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
SERVICE_UNAVAILABLE = 24000001,
/**
* The error code indicates that the queried Asset can not be found.
* The error code indicates that the asset is not found.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
NOT_FOUND = 24000002,
/**
* The error code indicates that the Asset already exists.
* The error code indicates that the asset already exists.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
DUPLICATED = 24000003,
/**
* The error code indicates that the access to Asset is denied.
* The error code indicates that access to the asset is denied.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
ACCESS_DENIED = 24000004,
/**
* The error code indicates that the screen lock status mismatches.
* The error code indicates that the screen lock status does not match.
*
* @syscap SystemCapability.Security.Asset
* @since 11
@ -959,63 +961,63 @@ declare namespace asset {
*/
OUT_OF_MEMORY = 24000006,
/**
* The error code indicates that the Asset is corrupted.
* The error code indicates that the asset is corrupted.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
DATA_CORRUPTED = 24000007,
/**
* The error code indicates that the database operation is failed.
* The error code indicates that the The database operation failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
DATABASE_ERROR = 24000008,
/**
* The error code indicates that the cryptography operation is failed.
* The error code indicates that the cryptography operation failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
CRYPTO_ERROR = 24000009,
/**
* The error code indicates that the ipc communication is failed.
* The error code indicates that the ipc failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
IPC_ERROR = 24000010,
/**
* The error code indicates that the operation of calling Bundle Manager Service is failed.
* The error code indicates that calling the Bundle Manager service failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
BMS_ERROR = 24000011,
/**
* The error code indicates that the operation of calling OS Account Service is failed.
* The error code indicates that calling the OS Account service failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
ACCOUNT_ERROR = 24000012,
/**
* The error code indicates that the operation of calling Access Token Service is failed.
* The error code indicates that calling the Access Token service failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
ACCESS_TOKEN_ERROR = 24000013,
/**
* The error code indicates that the operation of file is failed.
* The error code indicates that the The file operation failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
FILE_OPERATION_ERROR = 24000014,
/**
* The error code indicates that the operation of getting system time is failed.
* The error code indicates that getting the system time failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11

View File

@ -2881,13 +2881,13 @@ declare namespace huks {
*/
HUKS_ERR_CODE_CALL_SERVICE_FAILED = 12000015,
/**
* Device password is required but not set.
* A device password is required but not set.
*
* @syscap SystemCapability.Security.Huks.Extension
* @since 11
*/
/**
* Device password is required but not set.
* A device password is required but not set.
*
* @syscap SystemCapability.Security.Huks.Extension
* @atomicservice