The current repo belongs to Closed status, and some functions are restricted. For details, please refer to the description of repo status
46 Star 180 Fork 4.8K

OpenHarmony/interface_sdk-js
Closed

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
.gitee
api
@internal
ability
advertising
app
application
arkui
bundle
bundleManager
common
commonEvent
config
continuation
data/rdb
device-define
form
global
graphics3d
multimedia
notification
security
syscapCheck
tag
wantAgent
@ohos.InputMethodExtensionAbility.d.ts
@ohos.InputMethodExtensionContext.d.ts
@ohos.InputMethodSubtype.d.ts
@ohos.PiPWindow.d.ts
@ohos.UiTest.d.ts
@ohos.WallpaperExtensionAbility.d.ts
@ohos.WorkSchedulerExtensionAbility.d.ts
@ohos.ability.ability.d.ts
@ohos.ability.dataUriUtils.d.ts
@ohos.ability.errorCode.d.ts
@ohos.ability.featureAbility.d.ts
@ohos.ability.particleAbility.d.ts
@ohos.ability.screenLockFileManager.d.ts
@ohos.ability.wantConstant.d.ts
@ohos.abilityAccessCtrl.d.ts
@ohos.accessibility.GesturePath.d.ts
@ohos.accessibility.GesturePoint.d.ts
@ohos.accessibility.config.d.ts
@ohos.accessibility.d.ts
@ohos.account.appAccount.d.ts
@ohos.account.distributedAccount.d.ts
@ohos.account.osAccount.d.ts
@ohos.advertising.AdComponent.d.ets
@ohos.advertising.AdsServiceExtensionAbility.d.ts
@ohos.advertising.AutoAdComponent.d.ets
@ohos.advertising.d.ts
@ohos.ai.intelligentVoice.d.ts
@ohos.ai.mindSporeLite.d.ts
@ohos.animation.windowAnimationManager.d.ts
@ohos.animator.d.ts
@ohos.app.ability.Ability.d.ts
@ohos.app.ability.AbilityConstant.d.ts
@ohos.app.ability.AbilityLifecycleCallback.d.ts
@ohos.app.ability.AbilityStage.d.ts
@ohos.app.ability.ActionExtensionAbility.d.ts
@ohos.app.ability.AppServiceExtensionAbility.d.ts
@ohos.app.ability.ApplicationStateChangeCallback.d.ts
@ohos.app.ability.AtomicServiceOptions.d.ts
@ohos.app.ability.AutoFillExtensionAbility.d.ts
@ohos.app.ability.ChildProcess.d.ts
@ohos.app.ability.ChildProcessArgs.d.ts
@ohos.app.ability.ChildProcessOptions.d.ts
@ohos.app.ability.CompletionHandler.d.ts
@ohos.app.ability.CompletionHandlerForAbilityStartCallback.d.ts
@ohos.app.ability.CompletionHandlerForAtomicService.d.ts
@ohos.app.ability.Configuration.d.ts
@ohos.app.ability.ConfigurationConstant.d.ts
@ohos.app.ability.DriverExtensionAbility.d.ts
@ohos.app.ability.EmbeddableUIAbility.d.ts
@ohos.app.ability.EmbeddedUIExtensionAbility.d.ts
@ohos.app.ability.EnvironmentCallback.d.ts
@ohos.app.ability.ExtensionAbility.d.ts
@ohos.app.ability.FenceExtensionAbility.d.ts
@ohos.app.ability.FenceExtensionContext.d.ts
@ohos.app.ability.InsightIntentContext.d.ts
@ohos.app.ability.InsightIntentDecorator.d.ts
@ohos.app.ability.InsightIntentEntryExecutor.d.ts
@ohos.app.ability.InsightIntentExecutor.d.ts
@ohos.app.ability.MediaControlExtensionAbility.d.ts
@ohos.app.ability.OpenLinkOptions.d.ts
@ohos.app.ability.PhotoEditorExtensionAbility.d.ts
@ohos.app.ability.PrintExtensionAbility.d.ts
@ohos.app.ability.ServiceExtensionAbility.d.ts
@ohos.app.ability.ShareExtensionAbility.d.ts
@ohos.app.ability.StartOptions.d.ts
@ohos.app.ability.UIAbility.d.ts
@ohos.app.ability.UIExtensionAbility.d.ts
@ohos.app.ability.UIExtensionContentSession.d.ts
@ohos.app.ability.UIServiceExtensionAbility.d.ts
@ohos.app.ability.UserAuthExtensionAbility.d.ts
@ohos.app.ability.VpnExtensionAbility.d.ts
@ohos.app.ability.Want.d.ts
@ohos.app.ability.abilityDelegatorRegistry.d.ts
@ohos.app.ability.abilityManager.d.ts
@ohos.app.ability.appManager.d.ts
@ohos.app.ability.appRecovery.d.ts
@ohos.app.ability.application.d.ts
@ohos.app.ability.autoFillManager.d.ts
@ohos.app.ability.autoStartupManager.d.ts
@ohos.app.ability.childProcessManager.d.ts
@ohos.app.ability.common.d.ts
@ohos.app.ability.contextConstant.d.ts
@ohos.app.ability.continueManager.d.ts
@ohos.app.ability.dataUriUtils.d.ts
@ohos.app.ability.dialogRequest.d.ts
@ohos.app.ability.dialogSession.d.ts
@ohos.app.ability.errorManager.d.ts
@ohos.app.ability.insightIntent.d.ts
@ohos.app.ability.insightIntentDriver.d.ts
@ohos.app.ability.kioskManager.d.ts
@ohos.app.ability.missionManager.d.ts
@ohos.app.ability.quickFixManager.d.ts
@ohos.app.ability.sendableContextManager.d.ets
@ohos.app.ability.verticalPanelManager.d.ts
@ohos.app.ability.wantAgent.d.ts
@ohos.app.ability.wantConstant.d.ts
@ohos.app.appstartup.StartupConfig.d.ts
@ohos.app.appstartup.StartupConfigEntry.d.ts
@ohos.app.appstartup.StartupListener.d.ts
@ohos.app.appstartup.StartupTask.d.ets
@ohos.app.appstartup.startupManager.d.ts
@ohos.app.businessAbilityRouter.d.ts
@ohos.app.form.FormEditExtensionAbility.d.ts
@ohos.app.form.FormExtensionAbility.d.ts
@ohos.app.form.LiveFormExtensionAbility.d.ts
@ohos.app.form.formAgent.d.ts
@ohos.app.form.formBindingData.d.ts
@ohos.app.form.formHost.d.ts
@ohos.app.form.formInfo.d.ts
@ohos.app.form.formObserver.d.ts
@ohos.app.form.formProvider.d.ts
@ohos.application.AccessibilityExtensionAbility.d.ts
@ohos.application.BackupExtensionAbility.d.ts
@ohos.application.Configuration.d.ts
@ohos.application.ConfigurationConstant.d.ts
@ohos.application.DataShareExtensionAbility.d.ts
@ohos.application.DistributedExtensionAbility.d.ts
@ohos.application.DistributedExtensionContext.d.ts
@ohos.application.StaticSubscriberExtensionAbility.d.ts
@ohos.application.StaticSubscriberExtensionContext.d.ts
@ohos.application.Want.d.ts
@ohos.application.WindowExtensionAbility.d.ts
@ohos.application.abilityDelegatorRegistry.d.ts
@ohos.application.abilityManager.d.ts
@ohos.application.appManager.d.ts
@ohos.application.formBindingData.d.ts
@ohos.application.formError.d.ts
@ohos.application.formHost.d.ts
@ohos.application.formInfo.d.ts
@ohos.application.formProvider.d.ts
@ohos.application.missionManager.d.ts
@ohos.application.testRunner.d.ts
@ohos.application.uriPermissionManager.d.ts
@ohos.arkui.ArcAlphabetIndexer.d.ts
@ohos.arkui.ArcList.d.ts
@ohos.arkui.ArcScrollBar.d.ts
@ohos.arkui.ArcSwiper.d.ts
@ohos.arkui.Prefetcher.d.ts
@ohos.arkui.StateManagement.d.ts
@ohos.arkui.UIContext.d.ts
@ohos.arkui.advanced.ArcButton.d.ets
@ohos.arkui.advanced.ArcSlider.d.ets
@ohos.arkui.advanced.Chip.d.ets
@ohos.arkui.advanced.ChipGroup.d.ets
@ohos.arkui.advanced.ComposeListItem.d.ets
@ohos.arkui.advanced.ComposeTitleBar.d.ets
@ohos.arkui.advanced.Counter.d.ets
@ohos.arkui.advanced.Dialog.d.ets
@ohos.arkui.advanced.DialogV2.d.ets
@ohos.arkui.advanced.DownloadFileButton.d.ets
@ohos.arkui.advanced.EditableTitleBar.d.ets
@ohos.arkui.advanced.ExceptionPrompt.d.ets
@ohos.arkui.advanced.Filter.d.ets
@ohos.arkui.advanced.FoldSplitContainer.d.ets
@ohos.arkui.advanced.FormMenu.d.ets
@ohos.arkui.advanced.FullScreenLaunchComponent.d.ets
@ohos.arkui.advanced.GridObjectSortComponent.d.ets
@ohos.arkui.advanced.InnerFullScreenLaunchComponent.d.ets
@ohos.arkui.advanced.MultiNavigation.d.ets
@ohos.arkui.advanced.Popup.d.ets
@ohos.arkui.advanced.ProgressButton.d.ets
@ohos.arkui.advanced.ProgressButtonV2.d.ets
@ohos.arkui.advanced.SegmentButton.d.ets
@ohos.arkui.advanced.SegmentButtonV2.d.ets
@ohos.arkui.advanced.SelectTitleBar.d.ets
@ohos.arkui.advanced.SelectionMenu.d.ets
@ohos.arkui.advanced.SplitLayout.d.ets
@ohos.arkui.advanced.SubHeader.d.ets
@ohos.arkui.advanced.SubHeaderV2.d.ets
@ohos.arkui.advanced.SwipeRefresher.d.ets
@ohos.arkui.advanced.TabTitleBar.d.ets
@ohos.arkui.advanced.ToolBar.d.ets
@ohos.arkui.advanced.ToolBarV2.d.ets
@ohos.arkui.advanced.TreeView.d.ets
@ohos.arkui.component.d.ets
@ohos.arkui.componentSnapshot.d.ts
@ohos.arkui.componentUtils.d.ts
@ohos.arkui.dragController.d.ts
@ohos.arkui.drawableDescriptor.d.ts
@ohos.arkui.inspector.d.ts
@ohos.arkui.modifier.d.ts
@ohos.arkui.node.d.ts
@ohos.arkui.observer.d.ts
@ohos.arkui.performanceMonitor.d.ts
@ohos.arkui.shape.d.ts
@ohos.arkui.stateManagement.d.ets
@ohos.arkui.theme.d.ts
@ohos.arkui.uiExtension.d.ts
@ohos.atomicservice.AtomicServiceNavigation.d.ets
@ohos.atomicservice.AtomicServiceSearch.d.ets
@ohos.atomicservice.AtomicServiceTabs.d.ets
@ohos.atomicservice.AtomicServiceWeb.d.ets
@ohos.atomicservice.HalfScreenLaunchComponent.d.ets
@ohos.atomicservice.InterstitialDialogAction.d.ets
@ohos.atomicservice.NavPushPathHelper.d.ets
@ohos.backgroundTaskManager.d.ts
@ohos.base.d.ets
@ohos.base.d.ts
@ohos.batteryInfo.d.ets
@ohos.batteryInfo.d.ts
@ohos.batteryStatistics.d.ts
@ohos.bluetooth.a2dp.d.ts
@ohos.bluetooth.access.d.ts
@ohos.bluetooth.baseProfile.d.ts
@ohos.bluetooth.ble.d.ts
@ohos.bluetooth.connection.d.ts
@ohos.bluetooth.constant.d.ts
@ohos.bluetooth.d.ts
@ohos.bluetooth.hfp.d.ts
@ohos.bluetooth.hid.d.ts
@ohos.bluetooth.map.d.ts
@ohos.bluetooth.opp.d.ts
@ohos.bluetooth.pan.d.ts
@ohos.bluetooth.pbap.d.ts
@ohos.bluetooth.socket.d.ts
@ohos.bluetooth.wearDetection.d.ts
@ohos.bluetoothManager.d.ts
@ohos.brightness.d.ts
@ohos.buffer.d.ts
@ohos.bundle.appControl.d.ts
@ohos.bundle.appDomainVerify.d.ts
@ohos.bundle.bundleManager.d.ts
@ohos.bundle.bundleMonitor.d.ts
@ohos.bundle.bundleResourceManager.d.ts
@ohos.bundle.d.ts
@ohos.bundle.defaultAppManager.d.ts
@ohos.bundle.distributedBundleManager.d.ts
@ohos.bundle.freeInstall.d.ts
@ohos.bundle.innerBundleManager.d.ts
@ohos.bundle.installer.d.ts
@ohos.bundle.launcherBundleManager.d.ts
@ohos.bundle.overlay.d.ts
@ohos.bundle.shortcutManager.d.ts
@ohos.bundleState.d.ts
@ohos.bytrace.d.ts
@ohos.calendarManager.d.ts
@ohos.charger.d.ts
@ohos.commonEvent.d.ts
@ohos.commonEventManager.d.ts
@ohos.configPolicy.d.ts
@ohos.connectedTag.d.ts
@ohos.contact.d.ts
@ohos.continuation.continuationManager.d.ts
@ohos.convertxml.d.ts
@ohos.cooperate.d.ts
@ohos.curves.d.ts
@ohos.customization.customConfig.d.ts
@ohos.data.DataShareResultSet.d.ts
@ohos.data.UdmfComponents.d.ets
@ohos.data.ValuesBucket.d.ts
@ohos.data.cloudData.d.ts
@ohos.data.cloudExtension.d.ts
@ohos.data.commonType.d.ts
@ohos.data.dataAbility.d.ts
@ohos.data.dataShare.d.ts
@ohos.data.dataSharePredicates.d.ts
@ohos.data.distributedData.d.ts
@ohos.data.distributedDataObject.d.ts
@ohos.data.distributedKVStore.d.ts
@ohos.data.intelligence.d.ts
@ohos.data.preferences.d.ts
@ohos.data.rdb.d.ts
@ohos.data.relationalStore.d.ts
@ohos.data.sendablePreferences.d.ets
@ohos.data.sendableRelationalStore.d.ets
@ohos.data.storage.d.ts
@ohos.data.unifiedDataChannel.d.ts
@ohos.data.uniformDataStruct.d.ts
@ohos.data.uniformTypeDescriptor.d.ts
@ohos.deviceAttest.d.ts
@ohos.deviceInfo.d.ets
@ohos.deviceInfo.d.ts
@ohos.deviceStatus.dragInteraction.d.ts
@ohos.display.d.ts
@ohos.distributedBundle.d.ts
@ohos.distributedDeviceManager.d.ts
@ohos.distributedHardware.deviceManager.d.ts
@ohos.distributedHardware.hardwareManager.d.ts
@ohos.distributedHardware.mechanicManager.d.ts
@ohos.distributedMissionManager.d.ts
@ohos.distributedsched.abilityConnectionManager.d.ts
@ohos.distributedsched.linkEnhance.d.ts
@ohos.distributedsched.proxyChannelManager.d.ts
@ohos.dlpPermission.d.ts
@ohos.document.d.ts
@ohos.driver.deviceManager.d.ts
@ohos.effectKit.d.ts
@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts
@ohos.enterprise.accountManager.d.ts
@ohos.enterprise.adminManager.d.ts
@ohos.enterprise.applicationManager.d.ts
@ohos.enterprise.bluetoothManager.d.ts
@ohos.enterprise.browser.d.ts
@ohos.enterprise.bundleManager.d.ts
@ohos.enterprise.dateTimeManager.d.ts
@ohos.enterprise.deviceControl.d.ts
@ohos.enterprise.deviceInfo.d.ts
@ohos.enterprise.deviceSettings.d.ts
@ohos.enterprise.locationManager.d.ts
@ohos.enterprise.networkManager.d.ts
@ohos.enterprise.restrictions.d.ts
@ohos.enterprise.securityManager.d.ts
@ohos.enterprise.systemManager.d.ts
@ohos.enterprise.telephonyManager.d.ts
@ohos.enterprise.usbManager.d.ts
@ohos.enterprise.wifiManager.d.ts
@ohos.events.emitter.d.ts
@ohos.fastbuffer.d.ts
@ohos.faultLogger.d.ts
@ohos.file.AlbumPickerComponent.d.ets
@ohos.file.BackupExtensionContext.d.ts
@ohos.file.PhotoPickerComponent.d.ets
@ohos.file.RecentPhotoComponent.d.ets
@ohos.file.backup.d.ts
@ohos.file.cloudDiskManager.d.ts
@ohos.file.cloudSync.d.ts
@ohos.file.cloudSyncManager.d.ts
@ohos.file.environment.d.ts
@ohos.file.fileAccess.d.ts
@ohos.file.fileExtensionInfo.d.ts
@ohos.file.fileuri.d.ts
@ohos.file.fs.d.ets
@ohos.file.fs.d.ts
@ohos.file.hash.d.ts
@ohos.file.keyManager.d.ts
@ohos.file.photoAccessHelper.d.ts
@ohos.file.picker.d.ts
@ohos.file.recent.d.ts
@ohos.file.securityLabel.d.ts
@ohos.file.sendablePhotoAccessHelper.d.ets
@ohos.file.statvfs.d.ts
@ohos.file.storageStatistics.d.ts
@ohos.file.trash.d.ts
@ohos.file.volumeManager.d.ts
@ohos.fileio.d.ts
@ohos.filemanagement.userFileManager.d.ts
@ohos.fileshare.d.ts
@ohos.font.d.ts
@ohos.fontManager.d.ts
@ohos.geoLocationManager.d.ts
@ohos.geolocation.d.ts
@ohos.graphics.colorSpaceManager.d.ts
@ohos.graphics.common2D.d.ts
@ohos.graphics.displaySync.d.ts
@ohos.graphics.drawing.d.ts
@ohos.graphics.hdrCapability.d.ts
@ohos.graphics.scene.d.ts
@ohos.graphics.sendableColorSpaceManager.d.ets
@ohos.graphics.text.d.ts
@ohos.graphics.uiEffect.d.ts
@ohos.hiAppEvent.d.ts
@ohos.hiSysEvent.d.ts
@ohos.hiTraceChain.d.ts
@ohos.hiTraceMeter.d.ts
@ohos.hichecker.d.ts
@ohos.hidebug.d.ts
@ohos.hilog.d.ts
@ohos.hiviewdfx.FaultLogExtensionAbility.d.ts
@ohos.hiviewdfx.FaultLogExtensionContext.d.ts
@ohos.hiviewdfx.hiAppEvent.d.ts
@ohos.hiviewdfx.jsLeakWatcher.d.ts
@ohos.i18n.d.ts
@ohos.identifier.oaid.d.ts
@ohos.inputMethod.Panel.d.ts
@ohos.inputMethod.d.ts
@ohos.inputMethodEngine.d.ts
@ohos.inputMethodList.d.ets
@ohos.intl.d.ts
@ohos.logLibrary.d.ts
@ohos.matrix4.d.ets
@ohos.matrix4.d.ts
@ohos.measure.d.ts
@ohos.mediaquery.d.ets
@ohos.mediaquery.d.ts
@ohos.multimedia.audio.d.ts
@ohos.multimedia.audioHaptic.d.ts
@ohos.multimedia.avCastPicker.d.ets
@ohos.multimedia.avCastPickerParam.d.ts
@ohos.multimedia.avInputCastPicker.d.ets
@ohos.multimedia.avVolumePanel.d.ets
@ohos.multimedia.avsession.d.ts
@ohos.multimedia.camera.d.ts
@ohos.multimedia.cameraPicker.d.ts
@ohos.multimedia.drm.d.ts
@ohos.multimedia.image.d.ts
@ohos.multimedia.media.d.ts
@ohos.multimedia.movingphotoview.d.ts
@ohos.multimedia.sendableImage.d.ets
@ohos.multimedia.systemSoundManager.d.ts
@ohos.multimedia.videoProcessingEngine.d.ts
@ohos.multimodalAwareness.deviceStatus.d.ts
@ohos.multimodalAwareness.metadataBinding.d.ts
@ohos.multimodalAwareness.motion.d.ts
@ohos.multimodalAwareness.onScreen.d.ts
@ohos.multimodalAwareness.userStatus.d.ts
@ohos.multimodalInput.gestureEvent.d.ts
@ohos.multimodalInput.infraredEmitter.d.ts
@ohos.multimodalInput.inputConsumer.d.ts
@ohos.multimodalInput.inputDevice.d.ts
@ohos.multimodalInput.inputDeviceCooperate.d.ts
@ohos.multimodalInput.inputEvent.d.ts
@ohos.multimodalInput.inputEventClient.d.ts
@ohos.multimodalInput.inputMonitor.d.ts
@ohos.multimodalInput.intentionCode.d.ts
@ohos.multimodalInput.keyCode.d.ts
@ohos.multimodalInput.keyEvent.d.ts
@ohos.multimodalInput.mouseEvent.d.ts
@ohos.multimodalInput.pointer.d.ts
@ohos.multimodalInput.shortKey.d.ts
@ohos.multimodalInput.touchEvent.d.ts
@ohos.net.connection.d.ts
@ohos.net.eap.d.ts
@ohos.net.ethernet.d.ts
@ohos.net.http.d.ts
@ohos.net.mdns.d.ts
@ohos.net.netFirewall.d.ts
@ohos.net.networkSecurity.d.ts
@ohos.net.policy.d.ts
@ohos.net.sharing.d.ts
@ohos.net.socket.d.ts
@ohos.net.statistics.d.ts
@ohos.net.vpn.d.ts
@ohos.net.vpnExtension.d.ts
@ohos.net.webSocket.d.ts
@ohos.nfc.cardEmulation.d.ts
@ohos.nfc.controller.d.ts
@ohos.nfc.tag.d.ts
@ohos.notification.d.ts
@ohos.notificationManager.d.ts
@ohos.notificationSubscribe.d.ts
@ohos.pasteboard.d.ts
@ohos.pluginComponent.d.ts
@ohos.power.d.ts
@ohos.print.d.ts
@ohos.privacyManager.d.ts
@ohos.process.d.ts
@ohos.prompt.d.ets
@ohos.prompt.d.ts
@ohos.promptAction.d.ts
@ohos.reminderAgent.d.ts
@ohos.reminderAgentManager.d.ts
@ohos.request.cacheDownload.d.ts
@ohos.request.d.ts
@ohos.resourceManager.d.ts
@ohos.resourceschedule.backgroundProcessManager.d.ts
@ohos.resourceschedule.backgroundTaskManager.d.ts
@ohos.resourceschedule.deviceStandby.d.ts
@ohos.resourceschedule.systemload.d.ts
@ohos.resourceschedule.usageStatistics.d.ts
@ohos.resourceschedule.workScheduler.d.ts
@ohos.router.d.ets
@ohos.router.d.ts
@ohos.rpc.d.ts
@ohos.runningLock.d.ts
@ohos.scan.d.ets
@ohos.screen.d.ts
@ohos.screenLock.d.ts
@ohos.screenshot.d.ts
@ohos.secureElement.d.ts
@ohos.security.asset.d.ts
@ohos.security.cert.d.ts
@ohos.security.certManager.d.ts
@ohos.security.certManagerDialog.d.ts
@ohos.security.cryptoFramework.d.ts
@ohos.security.huks.d.ts
@ohos.security.identifySensitiveContent.d.ts
@ohos.security.securityGuard.d.ts
@ohos.selectionInput.SelectionExtensionAbility.d.ts
@ohos.selectionInput.SelectionExtensionContext.d.ts
@ohos.selectionInput.SelectionPanel.d.ts
@ohos.selectionInput.selectionManager.d.ts
@ohos.sendableResourceManager.d.ets
@ohos.sensor.d.ts
@ohos.settings.d.ts
@ohos.statfs.d.ts
@ohos.stationary.d.ts
@ohos.systemCapability.d.ts
@ohos.systemDateTime.d.ts
@ohos.systemParameterEnhance.d.ts
@ohos.systemTime.d.ts
@ohos.systemTimer.d.ts
@ohos.systemparameter.d.ts
@ohos.taskpool.d.ts
@ohos.telephony.call.d.ts
@ohos.telephony.data.d.ts
@ohos.telephony.esim.d.ts
@ohos.telephony.observer.d.ts
@ohos.telephony.radio.d.ts
@ohos.telephony.sim.d.ts
@ohos.telephony.sms.d.ts
@ohos.telephony.vcard.d.ts
@ohos.test.PerfTest.d.ts
@ohos.thermal.d.ts
@ohos.transfer.d.ets
@ohos.uiAppearance.d.ts
@ohos.uiExtensionHost.d.ets
@ohos.uiExtensionHost.d.ts
@ohos.update.d.ts
@ohos.uri.d.ts
@ohos.url.d.ts
@ohos.usb.d.ts
@ohos.usbManager.d.ts
@ohos.usbManager.serial.d.ts
@ohos.userIAM.faceAuth.d.ts
@ohos.userIAM.userAccessCtrl.d.ts
@ohos.userIAM.userAuth.d.ts
@ohos.userIAM.userAuthIcon.d.ets
@ohos.util.ArrayList.d.ts
@ohos.util.Deque.d.ts
@ohos.util.HashMap.d.ts
@ohos.util.HashSet.d.ts
@ohos.util.LightWeightMap.d.ts
@ohos.util.LightWeightSet.d.ts
@ohos.util.LinkedList.d.ts
@ohos.util.List.d.ts
@ohos.util.PlainArray.d.ts
@ohos.util.Queue.d.ts
@ohos.util.Stack.d.ts
@ohos.util.TreeMap.d.ts
@ohos.util.TreeSet.d.ts
@ohos.util.Vector.d.ts
@ohos.util.d.ets
@ohos.util.d.ts
@ohos.util.json.d.ts
@ohos.util.stream.d.ts
@ohos.vibrator.d.ts
@ohos.wallpaper.d.ts
@ohos.wantAgent.d.ts
@ohos.web.netErrorList.d.ts
@ohos.web.webview.d.ts
@ohos.wifi.d.ts
@ohos.wifiManager.d.ts
@ohos.wifiManagerExt.d.ts
@ohos.wifiext.d.ts
@ohos.window.d.ts
@ohos.window.floatingBall.d.ts
@ohos.worker.d.ts
@ohos.xml.d.ts
@ohos.zlib.d.ts
@system.app.d.ets
@system.app.d.ts
@system.battery.d.ts
@system.bluetooth.d.ts
@system.brightness.d.ts
@system.cipher.d.ts
@system.configuration.d.ts
@system.device.d.ts
@system.fetch.d.ts
@system.file.d.ts
@system.geolocation.d.ts
@system.mediaquery.d.ets
@system.mediaquery.d.ts
@system.network.d.ts
@system.notification.d.ts
@system.package.d.ts
@system.prompt.d.ets
@system.prompt.d.ts
@system.request.d.ts
@system.router.d.ets
@system.router.d.ts
@system.sensor.d.ts
@system.storage.d.ts
@system.vibrator.d.ts
permissions.d.ts
arkts
build-tools
kits
CODEOWNERS
.gitattributes
.gitignore
BUILD.gn
LICENCE.md
LICENSE
OAT.xml
README.md
README_zh.md
arkui_transformer.py
bundle.json
exists_path.py
interface_config.gni
ohos_copy_ets.py
process_internal.py
process_internal.pydeps
remove_internal.py
remove_internal.pydeps
remove_list.json
Clone or Download
@ohos.security.asset.d.ts 81.02 KB
Copy Edit Raw Blame History
wind authored 4 months ago . update link
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065
/*
* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* @kit AssetStoreKit
*/
/**
* This module provides the capabilities for life cycle management of sensitive user data (Asset) such as passwords
* and tokens, including adding, removing, updating, and querying.
*
* @namespace asset
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* This module provides the capabilities for life cycle management of sensitive user data (Asset) such as passwords
* and tokens, including adding, removing, updating, and querying.
*
* @namespace asset
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
declare namespace asset {
/**
* Add an Asset.
* Permission ohos.permission.STORE_PERSISTENT_DATA is required when the Asset needs to be stored persistently
* by setting {@link Tag.IS_PERSISTENT} tag.
*
* @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 - The caller doesn't have the permission.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
*/
/**
* Add an asset. This API uses a promise to return the result.
* To set {@link Tag.IS_PERSISTENT}, the application must have the ohos.permission.STORE_PERSISTENT_DATA permission.
*
* @param { AssetMap } attributes - Attributes of the asset to add, including the asset plaintext,
* access control attributes, and custom data.
* @returns { Promise<void> } Promise that returns no value.
* @throws { BusinessError } 201 - The caller doesn't have the permission.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
* @atomicservice
* @since 14
*/
function add(attributes: AssetMap): Promise<void>;
/**
* Add an Asset to a specific user space.
* Permission ohos.permission.STORE_PERSISTENT_DATA is required when the Asset needs to be stored persistently
* by setting {@link Tag.IS_PERSISTENT} tag.
*
* @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
* @param { number } userId - the user identifier to add an Asset. The user identifier cannot be lower than 100.
* @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 - The caller doesn't have the permission.
* @throws { BusinessError } 202 - Non-system applications use system APIs.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
*/
function addAsUser(userId: number, attributes: AssetMap): Promise<void>;
/**
* Add an Asset.
* Permission ohos.permission.STORE_PERSISTENT_DATA is required when the Asset needs to be stored persistently
* by setting {@link Tag.IS_PERSISTENT} tag.
*
* @param { AssetMap } attributes - a map object containing attributes of the Asset to be added.
* @throws { BusinessError } 201 - The caller doesn't have the permission.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
*/
/**
* Add an asset. This API returns the result synchronously.
* To set {@link Tag.IS_PERSISTENT}, the application must have the ohos.permission.STORE_PERSISTENT_DATA permission.
*
* @param { AssetMap } attributes - Attributes of the asset to add, including the asset plaintext,
* access control attributes, and custom data.
* @throws { BusinessError } 201 - The caller doesn't have the permission.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
* @atomicservice
* @since 14
*/
function addSync(attributes: AssetMap): void;
/**
* Remove one or more Assets that match a search query.
*
* @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 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @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.
* @throws { BusinessError } 24000015 - Getting the system time failed.
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Removes one or more assets. This API uses a promise to return the result.
*
* @param { AssetMap } query - Attributes of the asset to remove, such as the asset alias,
* access control attributes, and custom data.
* @returns { Promise<void> } Promise that returns no value.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @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.
* @throws { BusinessError } 24000015 - Getting the system time failed.
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
function remove(query: AssetMap): Promise<void>;
/**
* Remove one or more Assets that match a search query from a specific user space.
*
* @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
* @param { number } userId - the user identifier to remove one or more Assets. The user identifier cannot be lower
* than 100.
* @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 - The caller doesn't have the permission.
* @throws { BusinessError } 202 - Non-system applications use system APIs.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @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.
* @throws { BusinessError } 24000015 - Getting the system time failed.
* @syscap SystemCapability.Security.Asset
* @systemapi
* @since 12
*/
function removeAsUser(userId: number, query: AssetMap): Promise<void>;
/**
* 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 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @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.
* @throws { BusinessError } 24000015 - Getting the system time failed.
* @syscap SystemCapability.Security.Asset
* @since 12
*/
/**
* Removes one or more assets. This API returns the result synchronously.
*
* @param { AssetMap } query - Attributes of the asset to remove, such as the asset alias,
* access control attributes, and custom data.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @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.
* @throws { BusinessError } 24000015 - Getting the system time failed.
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
function removeSync(query: AssetMap): void;
/**
* Update an Asset that matches a search query.
*
* @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 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
*/
/**
* Updates an asset. This API uses a promise to return the result.
*
* @param { AssetMap } query - Attributes of the asset to update, such as the asset alias,
* access control attributes, and custom data.
* @param { AssetMap } attributesToUpdate - New attributes of the asset, such as the asset plaintext and custom data.
* @returns { Promise<void> } Promise that returns no value.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
* @atomicservice
* @since 14
*/
function update(query: AssetMap, attributesToUpdate: AssetMap): Promise<void>;
/**
* Update an Asset that matches a search query in a specific user space.
*
* @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
* @param { number } userId - the user identifier to update an Asset. The user identifier cannot be lower than 100.
* @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 - The caller doesn't have the permission.
* @throws { BusinessError } 202 - Non-system applications use system APIs.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
*/
function updateAsUser(userId: number, query: AssetMap, attributesToUpdate: AssetMap): Promise<void>;
/**
* Update an Asset that matches a search query.
*
* @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 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
*/
/**
* Updates an asset. This API returns the result synchronously.
*
* @param { AssetMap } query - Attributes of the asset to update, such as the asset alias,
* access control attributes, and custom data.
* @param { AssetMap } attributesToUpdate - New attributes of the asset, such as the asset plaintext and custom data.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
* @atomicservice
* @since 14
*/
function updateSync(query: AssetMap, attributesToUpdate: AssetMap): void;
/**
* Preprocessing (e.g. get challenge) for querying one or more Assets that require user authentication.
*
* @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 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @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
*/
/**
* Performs preprocessing for the asset query. This API is used when user authentication is required for
* the access to the asset. After the user authentication is successful, call {@link query} and
* {@link postQuery}. This API uses a promise to return the result.
*
* @param { AssetMap } query - Attributes of the asset to query, such as the asset alias,
* access control attributes, and custom data.
* @returns { Promise<Uint8Array> } Promise used to return a challenge value.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @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
* @atomicservice
* @since 14
*/
function preQuery(query: AssetMap): Promise<Uint8Array>;
/**
* 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. The user identifier cannot be
* lower than 100.
* @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 - The caller doesn't have the permission.
* @throws { BusinessError } 202 - Non-system applications use system APIs.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @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
*/
function preQueryAsUser(userId: number, query: AssetMap): Promise<Uint8Array>;
/**
* Preprocessing (e.g. get challenge) for querying one or more Assets that require user authentication.
*
* @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 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @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
*/
/**
* Performs preprocessing for the asset query. This API is used when user authentication is required for
* the access to the asset. After the user authentication is successful, call {@link querySync} and
* {@link postQuerySync}. This API returns the result synchronously.
*
* @param { AssetMap } query - Attributes of the asset to query, such as the asset alias,
* access control attributes, and custom data.
* @returns { Uint8Array } Challenge value.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @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
* @atomicservice
* @since 14
*/
function preQuerySync(query: AssetMap): Uint8Array;
/**
* Query one or more Assets that match a search query.
*
* @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 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000004 - Access denied.
* @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
*/
/**
* Queries one or more assets. If user authentication is required for the access to the asset,
* call {@link preQuery} before this API and call {@link postQuery} after this API.
* For details about the development procedure, see Querying an Asset with User Authentication.
* This API uses a promise to return the result.
*
* @param { AssetMap } query - Attributes of the asset to query, such as the asset alias,
* access control attributes, and custom data.
* @returns { Promise<Array<AssetMap>> } Promise used to return the result obtained.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000004 - Access denied.
* @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
* @atomicservice
* @since 14
*/
function query(query: AssetMap): Promise<Array<AssetMap>>;
/**
* Query one or more Assets that match a search query in a specific user space.
*
* @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
* @param { number } userId - the user identifier to query one or more Assets. The user identifier cannot be lower
* than 100.
* @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 - The caller doesn't have the permission.
* @throws { BusinessError } 202 - Non-system applications use system APIs.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000004 - Access denied.
* @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
*/
function queryAsUser(userId: number, query: AssetMap): Promise<Array<AssetMap>>;
/**
* Query one or more Assets that match a search query.
*
* @param { AssetMap } query - a map object containing attributes of the Asset to be queried.
* @returns { Array<AssetMap> } the query result.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000004 - Access denied.
* @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
*/
/**
* Queries one or more assets. If user authentication is required for the access to the asset,
* call {@link preQuerySync} before this API and call {@link postQuerySync} after this API.
* For details about the development procedure, see Querying an Asset with User Authentication.
* This API returns the result synchronously.
*
* @param { AssetMap } query - Attributes of the asset to query, such as the asset alias,
* access control attributes, and custom data.
* @returns { Array<AssetMap> } Array of query results.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Incorrect parameter types.
* 2. Parameter verification failed.
* @throws { BusinessError } 24000001 - The ASSET service is unavailable.
* @throws { BusinessError } 24000002 - The asset is not found.
* @throws { BusinessError } 24000004 - Access denied.
* @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
* @atomicservice
* @since 14
*/
function querySync(query: AssetMap): Array<AssetMap>;
/**
* 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 preQuery}.
* @returns { Promise<void> } the promise object returned by the function.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
*/
/**
* Performs postprocessing for the asset query. This API is used when user authentication is required for
* the access to the asset. This API must be used with {@link preQuery} together.
* This API uses a promise to return the result.
*
* @param { AssetMap } handle - Handle of the query operation,
* including the challenge value returned by {@link preQuery}.
* @returns { Promise<void> } Promise that returns no value.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
* @atomicservice
* @since 14
*/
function postQuery(handle: AssetMap): Promise<void>;
/**
* 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. The user identifier cannot be
* lower than 100.
* @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 - The caller doesn't have the permission.
* @throws { BusinessError } 202 - Non-system applications use system APIs.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
*/
function postQueryAsUser(userId:number, handle: AssetMap): Promise<void>;
/**
* 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 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
*/
/**
* Performs postprocessing for the asset query. This API is used when user authentication is required for
* the access to the asset. This API must be used with {@link preQuerySync} together.
* This API returns the result synchronously.
*
* @param { AssetMap } handle - Handle of the query operation,
* including the challenge value returned by {@link preQuerySync}.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1. Mandatory parameters are left unspecified.
* 2. Incorrect parameter types.
* 3. Parameter verification failed.
* @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
* @atomicservice
* @since 14
*/
function postQuerySync(handle: AssetMap): void;
/**
* The ASSET service provides the ability to synchronize Assets between devices.
* This function is used to query the synchronization result.
*
* @param { AssetMap } query - a map object containing attributes of the Asset to be synchronized.
* @returns { Promise<SyncResult> } a promise object that can be resolved into the result of asset synchronization.
* @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.
* @throws { BusinessError } 24000014 - The file operation failed.
* @throws { BusinessError } 24000018 - Parameter verification failed.
* @syscap SystemCapability.Security.Asset
* @since 20
*/
function querySyncResult(query: AssetMap): Promise<SyncResult>;
/**
* A Map type containing tag-value pairs that describe the attributes of an Asset.
*
* @typedef { Map<Tag, Value> }
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Represents a set of asset attributes in the form of KV pairs.
*
* @typedef { Map<Tag, Value> }
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
type AssetMap = Map<Tag, Value>;
/**
* A type that indicates the secret or attribute value of an Asset tag.
*
* @typedef { boolean | number | Uint8Array }
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Represents the value of each attribute in {@link AssetMap}.
*
* @typedef { boolean | number | Uint8Array }
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
type Value = boolean | number | Uint8Array;
/**
* An enum type indicates when the Asset is accessible.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Enumerates the types of access control based on the lock screen status.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
enum Accessibility {
/**
* The secret value in the Asset can only be accessed after the device is powered on.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The asset can be accessed after the device is powered on.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DEVICE_POWERED_ON = 0,
/**
* The secret value in the Asset can only be accessed after the device is first unlocked.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The asset can be accessed only after the device is unlocked for the first time.
* <p><strong>NOTE</strong>:
* If no lock screen password is set, this option is equivalent to <strong>DEVICE_POWERED_ON</strong>.
* </p>
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DEVICE_FIRST_UNLOCKED = 1,
/**
* The secret value in the Asset can only be accessed while the device is unlocked.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The asset can be accessed only when the device is unlocked.
* <p><strong>NOTE</strong>:
* If no lock screen password is set, this option is equivalent to <strong>DEVICE_POWERED_ON</strong>.
* </p>
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DEVICE_UNLOCKED = 2,
}
/**
* An enum type indicates the user authentication type for Asset access control.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Enumerates the types of user authentication supported by an asset.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
enum AuthType {
/**
* The access to an Asset doesn't require user authentication.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* No user authentication is required before the asset is accessed.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
NONE = 0x00,
/**
* The access to an Asset requires user authentication using either PIN/pattern/password or biometric traits.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The asset can be accessed if any user authentication (such as PIN, facial, or fingerprint authentication)
* is successful.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
ANY = 0xFF,
}
/**
* An enum type indicates the type of Asset synchronization.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Enumerates the sync types supported by an asset.
* <p><strong>NOTE</strong>:
* This field is an embedded parameter. Currently, asset sync is not supported.
* </p>
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
enum SyncType {
/**
* An Asset with this attribute value is never allowed to be transferred out.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Asset sync is not allowed.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
NEVER = 0,
/**
* An Asset with this attribute value can only be restored to the device from which it was transferred out.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Asset sync is allowed only on the local device, for example, in data restore on the local device.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
THIS_DEVICE = 1 << 0,
/**
* An Asset with this attribute value can only be transferred out to a trusted device (user authorized).
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Asset sync is allowed only between trusted devices, for example, in the case of cloning.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
TRUSTED_DEVICE = 1 << 1,
/**
* An Asset with this attribute value can only be transferred out to devices logged in with trusted accounts.
*
* @syscap SystemCapability.Security.Asset
* @since 12
*/
/**
* Asset sync is allowed only between the devices that are logged in with trusted accounts, for example,
* in cloud sync scenarios.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
TRUSTED_ACCOUNT = 1 << 2,
}
/**
* An enum type indicates the type of Asset encapsulation.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @since 18
*/
enum WrapType {
/**
* An Asset with this attribute value is never allowed to be wrapped up.
*
* @syscap SystemCapability.Security.Asset
* @since 18
*/
NEVER = 0,
/**
* An Asset with this attribute value can only be wrapped or unwrapped on devices logged in with trusted accounts.
*
* @syscap SystemCapability.Security.Asset
* @since 18
*/
TRUSTED_ACCOUNT = 1,
}
/**
* An enum type indicates the strategy for conflict resolution when handling duplicated Asset alias.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Enumerates the policies for resolving conflicts (for example, a duplicate alias) when an asset is added.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
enum ConflictResolution {
/**
* Directly overwrite an Asset with duplicated alias when a conflict is detected.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Overwrite the original asset.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
OVERWRITE = 0,
/**
* Throw an error so that the caller can take measures when a conflict is detected.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Throw an exception for the service to perform subsequent processing.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
THROW_ERROR = 1,
}
/**
* An enum type indicates the return type of the queried Asset.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Enumerates the type of information returned by an asset query operation.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
enum ReturnType {
/**
* Specify that the return data should contain both secret value and attributes.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The query result contains the asset plaintext and its attributes.
* <p><strong>NOTE</strong>:
* Use this option when you need to query the plaintext of a single asset.
* </p>
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
ALL = 0,
/**
* Specify that the return data contains only attributes.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The query result contains only the asset attributes.
* <p><strong>NOTE</strong>:
* Use this option when you need to query attributes of multiple assets.
* </p>
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
ATTRIBUTES = 1,
}
/**
* Enumerates the types of additional operation to perform.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @since 12
*/
enum OperationType {
/**
* Sync.
*
* @syscap SystemCapability.Security.Asset
* @since 12
*/
NEED_SYNC = 0,
/**
* Logout.
*
* @syscap SystemCapability.Security.Asset
* @since 12
*/
NEED_LOGOUT = 1,
}
/**
* Interface of synchronization result.
*
* @typedef SyncResult
* @syscap SystemCapability.Security.Asset
* @since 20
*/
interface SyncResult {
/**
* The result code of synchronization.
*
* @type { number }
* @readonly
* @syscap SystemCapability.Security.Asset
* @since 20
*/
readonly resultCode: number;
/**
* The total count of synchronized Assets.
*
* @type { ?number }
* @readonly
* @syscap SystemCapability.Security.Asset
* @since 20
*/
readonly totalCount?: number;
/**
* The count of Assets that fail to synchronize.
*
* @type { ?number }
* @readonly
* @syscap SystemCapability.Security.Asset
* @since 20
*/
readonly failedCount?: number;
}
/**
* An enum type containing the data type definitions for Asset attribute value.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Enumerates the asset attribute types.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
enum TagType {
/**
* The data type of Asset attribute value is bool.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Boolean.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
BOOL = 0x01 << 28,
/**
* The data type of Asset attribute value is uint32.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Number.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
NUMBER = 0x02 << 28,
/**
* The data type of Asset attribute value is byte array.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Byte array.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
BYTES = 0x03 << 28,
}
/**
* An enum type containing the Asset attribute tags.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Enumerate the keys of asset attributes ({@link AssetMap}), which are in key-value (KV) pairs.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
enum Tag {
/**
* A tag whose value is a byte array indicating the sensitive user data such as passwords and tokens.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Asset plaintext.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
SECRET = TagType.BYTES | 0x01,
/**
* A tag whose value is a byte array identifying an Asset.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Asset alias, which uniquely identifies an asset.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
ALIAS = TagType.BYTES | 0x02,
/**
* A tag whose value is a 32-bit unsigned integer indicating when the Asset can be accessed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Access control based on the lock screen status.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
ACCESSIBILITY = TagType.NUMBER | 0x03,
/**
* A tag whose value is a bool indicating whether a screen lock password is required for the device.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Whether the asset is accessible only when a lock screen password is set.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
REQUIRE_PASSWORD_SET = TagType.BOOL | 0x04,
/**
* A tag whose value is a 32-bit unsigned integer indicating the user authentication type for Asset access control.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Type of user authentication required for accessing the asset.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
AUTH_TYPE = TagType.NUMBER | 0x05,
/**
* A tag whose value is a 32-bit unsigned integer indicating the validity period in seconds of user authentication.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Validity period of the user authentication.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
AUTH_VALIDITY_PERIOD = TagType.NUMBER | 0x06,
/**
* A tag whose value is a byte array indicating the authentication challenge for anti-replay protection.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Challenge for the user authentication.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
AUTH_CHALLENGE = TagType.BYTES | 0x07,
/**
* A tag whose value is a byte array indicating the authentication token after a user is verified.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Authorization token obtained after the user authentication is successful.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
AUTH_TOKEN = TagType.BYTES | 0x08,
/**
* A tag whose value is a 32-bit unsigned integer indicating the type of Asset synchronization.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Asset sync type.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
SYNC_TYPE = TagType.NUMBER | 0x10,
/**
* Whether to retain the asset when the application is uninstalled.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
IS_PERSISTENT = TagType.BOOL | 0x11,
/**
* A tag whose value is a byte array indicating the first user-defined Asset data label (not allow to update).
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Additional asset data customized by the service with integrity protection.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATA_LABEL_CRITICAL_1 = TagType.BYTES | 0x20,
/**
* A tag whose value is a byte array indicating the second user-defined Asset data label (not allow to update).
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Additional asset data customized by the service with integrity protection.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATA_LABEL_CRITICAL_2 = TagType.BYTES | 0x21,
/**
* A tag whose value is a byte array indicating the third user-defined Asset data label (not allow to update).
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Additional asset data customized by the service with integrity protection.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATA_LABEL_CRITICAL_3 = TagType.BYTES | 0x22,
/**
* A tag whose value is a byte array indicating the fourth user-defined Asset data label (not allow to update).
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Additional asset data customized by the service with integrity protection.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATA_LABEL_CRITICAL_4 = TagType.BYTES | 0x23,
/**
* A tag whose value is a byte array indicating the first user-defined Asset data label (allow to update).
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Additional asset data customized by the service without integrity protection.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATA_LABEL_NORMAL_1 = TagType.BYTES | 0x30,
/**
* A tag whose value is a byte array indicating the second user-defined Asset data label (allow to update).
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Additional asset data customized by the service without integrity protection.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATA_LABEL_NORMAL_2 = TagType.BYTES | 0x31,
/**
* A tag whose value is a byte array indicating the third user-defined Asset data label (allow to update).
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Additional asset data customized by the service without integrity protection.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATA_LABEL_NORMAL_3 = TagType.BYTES | 0x32,
/**
* A tag whose value is a byte array indicating the fourth user-defined Asset data label (allow to update).
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Additional asset data customized by the service without integrity protection.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATA_LABEL_NORMAL_4 = TagType.BYTES | 0x33,
/**
* A local tag whose value is a byte array indicating the first user-defined Asset data label (allow to update).
* The information of a local tag will not be synchronized.
*
* @syscap SystemCapability.Security.Asset
* @since 12
*/
/**
* Local information about the asset. The value is assigned by the service without integrity protection and
* will not be synced.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATA_LABEL_NORMAL_LOCAL_1 = TagType.BYTES | 0x34,
/**
* A local tag whose value is a byte array indicating the second user-defined Asset data label (allow to update).
* The information of a local tag will not be synchronized.
*
* @syscap SystemCapability.Security.Asset
* @since 12
*/
/**
* Local information about the asset. The value is assigned by the service without integrity protection and
* will not be synced.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATA_LABEL_NORMAL_LOCAL_2 = TagType.BYTES | 0x35,
/**
* A local tag whose value is a byte array indicating the third user-defined Asset data label (allow to update).
* The information of a local tag will not be synchronized.
*
* @syscap SystemCapability.Security.Asset
* @since 12
*/
/**
* Local information about the asset. The value is assigned by the service without integrity protection and
* will not be synced.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATA_LABEL_NORMAL_LOCAL_3 = TagType.BYTES | 0x36,
/**
* A local tag whose value is a byte array indicating the fourth user-defined Asset data label (allow to update).
* The information of a local tag will not be synchronized.
*
* @syscap SystemCapability.Security.Asset
* @since 12
*/
/**
* Local information about the asset. The value is assigned by the service without integrity protection and
* will not be synced.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATA_LABEL_NORMAL_LOCAL_4 = TagType.BYTES | 0x37,
/**
* A tag whose value is a 32-bit unsigned integer indicating the return type of the queried Asset.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Type of the asset query result to return.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
RETURN_TYPE = TagType.NUMBER | 0x40,
/**
* A tag whose value is a 32-bit unsigned integer indicating the maximum number of returned Assets in one query.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Maximum number of asset records to return.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
RETURN_LIMIT = TagType.NUMBER | 0x41,
/**
* A tag whose value is a 32-bit unsigned integer indicating the offset of return data in batch query.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Offset of the asset query result.
* <p><strong>NOTE</strong>:
* This parameter specifies the starting asset record to return in batch asset query.
* </p>
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
RETURN_OFFSET = TagType.NUMBER | 0x42,
/**
* A tag whose value is a 32-bit unsigned integer indicating how the query results are sorted.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Sorting order of the query results. Currently, the results can be sorted only by
* <strong>ASSET_TAG_DATA_LABEL</strong>.
* <p><strong>NOTE</strong>:
* By default, assets are returned in the order in which they are added.
* </p>
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
RETURN_ORDERED_BY = TagType.NUMBER | 0x43,
/**
* A tag whose value is a 32-bit unsigned integer indicating the strategy for resolving Asset conflicts.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Policy for resolving the conflict (for example, a duplicate alias).
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
CONFLICT_RESOLUTION = TagType.NUMBER | 0x44,
/**
* A tag whose value is a byte array indicating the update time of an Asset.
*
* @syscap SystemCapability.Security.Asset
* @since 12
*/
/**
* Data update time, in timestamp.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
UPDATE_TIME = TagType.BYTES | 0x45,
/**
* Additional operation type.
*
* @syscap SystemCapability.Security.Asset
* @since 12
*/
OPERATION_TYPE = TagType.NUMBER | 0x46,
/**
* Whether to encrypt the additional asset information customized by the service.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
REQUIRE_ATTR_ENCRYPTED = TagType.BOOL | 0x47,
/**
* Group to which the asset belongs.
*
* @syscap SystemCapability.Security.Asset
* @since 18
*/
GROUP_ID = TagType.BYTES | 0x48,
/**
* A tag whose value is a 32-bit unsigned integer indicating the type of Asset encapsulation.
*
* @syscap SystemCapability.Security.Asset
* @since 18
*/
WRAP_TYPE = TagType.NUMBER | 0x49,
}
/**
* An enum type containing the Asset error codes.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* Enumerates the error codes.
*
* @enum { number }
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
enum ErrorCode {
/**
* The error code indicates that the caller doesn't have the permission.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
PERMISSION_DENIED = 201,
/**
* The error code indicates that the caller is not a system application.
*
* @syscap SystemCapability.Security.Asset
* @since 12
*/
NOT_SYSTEM_APPLICATION = 202,
/**
* The error code indicates that the argument is invalid.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that the argument is invalid.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
INVALID_ARGUMENT = 401,
/**
* The error code indicates that the ASSET service is unavailable.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that the ASSET service is unavailable.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
SERVICE_UNAVAILABLE = 24000001,
/**
* The error code indicates that the asset is not found.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that the asset is not found.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
NOT_FOUND = 24000002,
/**
* The error code indicates that the asset already exists.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that the asset already exists.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DUPLICATED = 24000003,
/**
* The error code indicates that access to the asset is denied.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that access to the asset is denied.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
ACCESS_DENIED = 24000004,
/**
* The error code indicates that the screen lock status does not match.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that the screen lock status does not match.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
STATUS_MISMATCH = 24000005,
/**
* The error code indicates insufficient memory.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates insufficient memory.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
OUT_OF_MEMORY = 24000006,
/**
* The error code indicates that the asset is corrupted.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that the asset is corrupted.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATA_CORRUPTED = 24000007,
/**
* The error code indicates that the database operation failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that the database operation failed.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
DATABASE_ERROR = 24000008,
/**
* The error code indicates that the cryptography operation failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that the cryptography operation failed.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
CRYPTO_ERROR = 24000009,
/**
* The error code indicates that the ipc failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that the ipc failed.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
IPC_ERROR = 24000010,
/**
* The error code indicates that calling the Bundle Manager service failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that calling the Bundle Manager service failed.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
BMS_ERROR = 24000011,
/**
* The error code indicates that calling the OS Account service failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that calling the OS Account service failed.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
ACCOUNT_ERROR = 24000012,
/**
* The error code indicates that calling the Access Token service failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that calling the Access Token service failed.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
ACCESS_TOKEN_ERROR = 24000013,
/**
* The error code indicates that the file operation failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that the file operation failed.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
FILE_OPERATION_ERROR = 24000014,
/**
* The error code indicates that getting the system time failed.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that getting the system time failed.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
GET_SYSTEM_TIME_ERROR = 24000015,
/**
* The error code indicates that the cache exceeds the limit.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that the cache exceeds the limit.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
LIMIT_EXCEEDED = 24000016,
/**
* The error code indicates that the capability is not supported.
*
* @syscap SystemCapability.Security.Asset
* @since 11
*/
/**
* The error code indicates that the capability is not supported.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 14
*/
UNSUPPORTED = 24000017,
/**
* The error code indicates that verifying the parameter failed.
*
* @syscap SystemCapability.Security.Asset
* @atomicservice
* @since 20
*/
PARAM_VERIFICATION_FAILED = 24000018,
}
}
export default asset;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/interface_sdk-js.git
git@gitee.com:openharmony/interface_sdk-js.git
openharmony
interface_sdk-js
interface_sdk-js
master

Search