161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit BasicServicesKit
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ciimport type { AsyncCallback } from './@ohos.base';
2261847f8eSopenharmony_ci
2361847f8eSopenharmony_ci/**
2461847f8eSopenharmony_ci * This module provides the capability to manage distributed accounts.
2561847f8eSopenharmony_ci *
2661847f8eSopenharmony_ci * @namespace distributedAccount
2761847f8eSopenharmony_ci * @syscap SystemCapability.Account.OsAccount
2861847f8eSopenharmony_ci * @since 7
2961847f8eSopenharmony_ci */
3061847f8eSopenharmony_cideclare namespace distributedAccount {
3161847f8eSopenharmony_ci  /**
3261847f8eSopenharmony_ci   * Gets the ability of the distributed account.
3361847f8eSopenharmony_ci   *
3461847f8eSopenharmony_ci   * @returns { DistributedAccountAbility } Ability to manage operations of distributed account.
3561847f8eSopenharmony_ci   * @syscap SystemCapability.Account.OsAccount
3661847f8eSopenharmony_ci   * @since 7
3761847f8eSopenharmony_ci   */
3861847f8eSopenharmony_ci  function getDistributedAccountAbility(): DistributedAccountAbility;
3961847f8eSopenharmony_ci
4061847f8eSopenharmony_ci  /**
4161847f8eSopenharmony_ci   * Defines distributed account functions and interfaces.
4261847f8eSopenharmony_ci   *
4361847f8eSopenharmony_ci   * @interface DistributedAccountAbility
4461847f8eSopenharmony_ci   * @syscap SystemCapability.Account.OsAccount
4561847f8eSopenharmony_ci   * @since 7
4661847f8eSopenharmony_ci   */
4761847f8eSopenharmony_ci  interface DistributedAccountAbility {
4861847f8eSopenharmony_ci    /**
4961847f8eSopenharmony_ci     * Queries the distributed information of the current OS account.
5061847f8eSopenharmony_ci     *
5161847f8eSopenharmony_ci     * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.DISTRIBUTED_DATASYNC
5261847f8eSopenharmony_ci     * @param { AsyncCallback<DistributedInfo> } callback - Asynchronous callback interface.
5361847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
5461847f8eSopenharmony_ci     * @since 7
5561847f8eSopenharmony_ci     * @deprecated since 9
5661847f8eSopenharmony_ci     * @useinstead distributedAccount.DistributedAccountAbility#getOsAccountDistributedInfo
5761847f8eSopenharmony_ci     */
5861847f8eSopenharmony_ci    queryOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): void;
5961847f8eSopenharmony_ci
6061847f8eSopenharmony_ci    /**
6161847f8eSopenharmony_ci     * Queries the distributed information of the current OS account.
6261847f8eSopenharmony_ci     *
6361847f8eSopenharmony_ci     * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.DISTRIBUTED_DATASYNC
6461847f8eSopenharmony_ci     * @returns { Promise<DistributedInfo> } The distributed information of the current OS account.
6561847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
6661847f8eSopenharmony_ci     * @since 7
6761847f8eSopenharmony_ci     * @deprecated since 9
6861847f8eSopenharmony_ci     * @useinstead distributedAccount.DistributedAccountAbility#getOsAccountDistributedInfo
6961847f8eSopenharmony_ci     */
7061847f8eSopenharmony_ci    queryOsAccountDistributedInfo(): Promise<DistributedInfo>;
7161847f8eSopenharmony_ci
7261847f8eSopenharmony_ci    /**
7361847f8eSopenharmony_ci     * Gets the distributed information of the current OS account.
7461847f8eSopenharmony_ci     *
7561847f8eSopenharmony_ci     * @permission ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS or ohos.permission.GET_DISTRIBUTED_ACCOUNTS or ohos.permission.DISTRIBUTED_DATASYNC
7661847f8eSopenharmony_ci     * @param { AsyncCallback<DistributedInfo> } callback - Asynchronous callback interface.
7761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
7861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
7961847f8eSopenharmony_ci     * <br> 2. Incorrect parameter types.
8061847f8eSopenharmony_ci     * @throws { BusinessError } 12300001 - System service exception.
8161847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
8261847f8eSopenharmony_ci     * @since 9
8361847f8eSopenharmony_ci     */
8461847f8eSopenharmony_ci    getOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): void;
8561847f8eSopenharmony_ci
8661847f8eSopenharmony_ci    /**
8761847f8eSopenharmony_ci     * Gets the distributed information of the current OS account.
8861847f8eSopenharmony_ci     *
8961847f8eSopenharmony_ci     * @permission ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS or ohos.permission.GET_DISTRIBUTED_ACCOUNTS or ohos.permission.DISTRIBUTED_DATASYNC
9061847f8eSopenharmony_ci     * @returns { Promise<DistributedInfo> } The distributed information of the current OS account.
9161847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
9261847f8eSopenharmony_ci     * @throws { BusinessError } 12300001 - System service exception.
9361847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
9461847f8eSopenharmony_ci     * @since 9
9561847f8eSopenharmony_ci     */
9661847f8eSopenharmony_ci    getOsAccountDistributedInfo(): Promise<DistributedInfo>;
9761847f8eSopenharmony_ci
9861847f8eSopenharmony_ci    /**
9961847f8eSopenharmony_ci     * Gets the distributed information of the specified OS account.
10061847f8eSopenharmony_ci     *
10161847f8eSopenharmony_ci     * @permission ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
10261847f8eSopenharmony_ci     * @param { number } localId - Indicates the local ID of the specified OS account.
10361847f8eSopenharmony_ci     * @param { AsyncCallback<DistributedInfo> } callback - Asynchronous callback interface.
10461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
10561847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Not system application.
10661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
10761847f8eSopenharmony_ci     * <br> 2. Incorrect parameter types.
10861847f8eSopenharmony_ci     * @throws { BusinessError } 12300001 - System service exception.
10961847f8eSopenharmony_ci     * @throws { BusinessError } 12300003 - Account not found.
11061847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
11161847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
11261847f8eSopenharmony_ci     * @since 10
11361847f8eSopenharmony_ci     */
11461847f8eSopenharmony_ci    getOsAccountDistributedInfoByLocalId(localId: number, callback: AsyncCallback<DistributedInfo>): void;
11561847f8eSopenharmony_ci
11661847f8eSopenharmony_ci    /**
11761847f8eSopenharmony_ci     * Gets the distributed information of the specified OS account.
11861847f8eSopenharmony_ci     *
11961847f8eSopenharmony_ci     * @permission ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
12061847f8eSopenharmony_ci     * @param { number } localId - Indicates the local ID of the specified OS account.
12161847f8eSopenharmony_ci     * @returns { Promise<DistributedInfo> } The distributed information of the specified OS account.
12261847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
12361847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Not system application.
12461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
12561847f8eSopenharmony_ci     * <br> 2. Incorrect parameter types.
12661847f8eSopenharmony_ci     * @throws { BusinessError } 12300001 - System service exception.
12761847f8eSopenharmony_ci     * @throws { BusinessError } 12300003 - Account not found.
12861847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
12961847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
13061847f8eSopenharmony_ci     * @since 10
13161847f8eSopenharmony_ci     */
13261847f8eSopenharmony_ci    getOsAccountDistributedInfoByLocalId(localId: number): Promise<DistributedInfo>;
13361847f8eSopenharmony_ci
13461847f8eSopenharmony_ci    /**
13561847f8eSopenharmony_ci     * Updates the distributed information of the OS account.
13661847f8eSopenharmony_ci     *
13761847f8eSopenharmony_ci     * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS
13861847f8eSopenharmony_ci     * @param { DistributedInfo } accountInfo - Indicates the information of the OS account used for a distributed system.
13961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Asynchronous callback interface.
14061847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
14161847f8eSopenharmony_ci     * @since 7
14261847f8eSopenharmony_ci     * @deprecated since 9
14361847f8eSopenharmony_ci     * @useinstead distributedAccount.DistributedAccountAbility#setOsAccountDistributedInfo
14461847f8eSopenharmony_ci     */
14561847f8eSopenharmony_ci    updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCallback<void>): void;
14661847f8eSopenharmony_ci
14761847f8eSopenharmony_ci    /**
14861847f8eSopenharmony_ci     * Updates the distributed information of the OS account.
14961847f8eSopenharmony_ci     *
15061847f8eSopenharmony_ci     * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS
15161847f8eSopenharmony_ci     * @param { DistributedInfo } accountInfo - Indicates the information of the OS account used for a distributed system.
15261847f8eSopenharmony_ci     * @returns { Promise<void> } The promise returned by the function.
15361847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
15461847f8eSopenharmony_ci     * @since 7
15561847f8eSopenharmony_ci     * @deprecated since 9
15661847f8eSopenharmony_ci     * @useinstead distributedAccount.DistributedAccountAbility#setOsAccountDistributedInfo
15761847f8eSopenharmony_ci     */
15861847f8eSopenharmony_ci    updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void>;
15961847f8eSopenharmony_ci
16061847f8eSopenharmony_ci    /**
16161847f8eSopenharmony_ci     * Sets the distributed information of the OS account.
16261847f8eSopenharmony_ci     *
16361847f8eSopenharmony_ci     * @permission ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS
16461847f8eSopenharmony_ci     * @param { DistributedInfo } accountInfo - Indicates the information of the OS account used for a distributed system.
16561847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Asynchronous callback interface.
16661847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
16761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 
16861847f8eSopenharmony_ci     * <br> 2. Incorrect parameter types.
16961847f8eSopenharmony_ci     * @throws { BusinessError } 12300001 - System service exception.
17061847f8eSopenharmony_ci     * @throws { BusinessError } 12300002 - Invalid accountInfo.
17161847f8eSopenharmony_ci     * @throws { BusinessError } 12300003 - Account not found.
17261847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
17361847f8eSopenharmony_ci     * This API can be called only by system applications.
17461847f8eSopenharmony_ci     * @since 9
17561847f8eSopenharmony_ci     */
17661847f8eSopenharmony_ci    setOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCallback<void>): void;
17761847f8eSopenharmony_ci
17861847f8eSopenharmony_ci    /**
17961847f8eSopenharmony_ci     * Sets the distributed information of the OS account.
18061847f8eSopenharmony_ci     *
18161847f8eSopenharmony_ci     * @permission ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS
18261847f8eSopenharmony_ci     * @param { DistributedInfo } accountInfo - Indicates the information of the OS account used for a distributed system.
18361847f8eSopenharmony_ci     * @returns { Promise<void> } The promise returned by the function.
18461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
18561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
18661847f8eSopenharmony_ci     * <br> 2. Incorrect parameter types.
18761847f8eSopenharmony_ci     * @throws { BusinessError } 12300001 - System service exception.
18861847f8eSopenharmony_ci     * @throws { BusinessError } 12300002 - Invalid accountInfo.
18961847f8eSopenharmony_ci     * @throws { BusinessError } 12300003 - Account not found.
19061847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
19161847f8eSopenharmony_ci     * This API can be called only by system applications.
19261847f8eSopenharmony_ci     * @since 9
19361847f8eSopenharmony_ci     */
19461847f8eSopenharmony_ci    setOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void>;
19561847f8eSopenharmony_ci
19661847f8eSopenharmony_ci    /**
19761847f8eSopenharmony_ci     * Sets the distributed information of the specified OS account.
19861847f8eSopenharmony_ci     *
19961847f8eSopenharmony_ci     * @permission ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS
20061847f8eSopenharmony_ci     * @param { number } localId - Indicates the local ID of the OS account.
20161847f8eSopenharmony_ci     * @param { DistributedInfo } distributedInfo - Indicates the distributed information.
20261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Asynchronous callback interface.
20361847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
20461847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Not system application.
20561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
20661847f8eSopenharmony_ci     * <br> 2. Incorrect parameter types.
20761847f8eSopenharmony_ci     * @throws { BusinessError } 12300001 - System service exception.
20861847f8eSopenharmony_ci     * @throws { BusinessError } 12300002 - Invalid distributedInfo.
20961847f8eSopenharmony_ci     * @throws { BusinessError } 12300003 - Account identified by localId or by distributedInfo not found.
21061847f8eSopenharmony_ci     * @throws { BusinessError } 12300008 - Restricted OS account.
21161847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
21261847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
21361847f8eSopenharmony_ci     * @since 10
21461847f8eSopenharmony_ci     */
21561847f8eSopenharmony_ci    setOsAccountDistributedInfoByLocalId(
21661847f8eSopenharmony_ci      localId: number,
21761847f8eSopenharmony_ci      distributedInfo: DistributedInfo,
21861847f8eSopenharmony_ci      callback: AsyncCallback<void>
21961847f8eSopenharmony_ci    ): void;
22061847f8eSopenharmony_ci
22161847f8eSopenharmony_ci    /**
22261847f8eSopenharmony_ci     * Sets the distributed information of the specified OS account.
22361847f8eSopenharmony_ci     *
22461847f8eSopenharmony_ci     * @permission ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS
22561847f8eSopenharmony_ci     * @param { number } localId - Indicates the local ID of the OS account.
22661847f8eSopenharmony_ci     * @param { DistributedInfo } distributedInfo - Indicates the distributed information.
22761847f8eSopenharmony_ci     * @returns { Promise<void> } The promise returned by the function.
22861847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
22961847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Not system application.
23061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
23161847f8eSopenharmony_ci     * <br> 2. Incorrect parameter types.
23261847f8eSopenharmony_ci     * @throws { BusinessError } 12300001 - System service exception.
23361847f8eSopenharmony_ci     * @throws { BusinessError } 12300002 - Invalid distributedInfo.
23461847f8eSopenharmony_ci     * @throws { BusinessError } 12300003 - Account identified by localId or by distributedInfo not found.
23561847f8eSopenharmony_ci     * @throws { BusinessError } 12300008 - Restricted OS account.
23661847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
23761847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
23861847f8eSopenharmony_ci     * @since 10
23961847f8eSopenharmony_ci     */
24061847f8eSopenharmony_ci    setOsAccountDistributedInfoByLocalId(localId: number, distributedInfo: DistributedInfo): Promise<void>;
24161847f8eSopenharmony_ci  }
24261847f8eSopenharmony_ci
24361847f8eSopenharmony_ci  /**
24461847f8eSopenharmony_ci   * Enum for distributed account status.
24561847f8eSopenharmony_ci   *
24661847f8eSopenharmony_ci   * @enum { number }
24761847f8eSopenharmony_ci   * @syscap SystemCapability.Account.OsAccount
24861847f8eSopenharmony_ci   * @since 10
24961847f8eSopenharmony_ci   */
25061847f8eSopenharmony_ci  enum DistributedAccountStatus {
25161847f8eSopenharmony_ci    /**
25261847f8eSopenharmony_ci     * Indicates that the account is not logged in.
25361847f8eSopenharmony_ci     *
25461847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
25561847f8eSopenharmony_ci     * @since 10
25661847f8eSopenharmony_ci     */
25761847f8eSopenharmony_ci    NOT_LOGGED_IN = 0,
25861847f8eSopenharmony_ci
25961847f8eSopenharmony_ci    /**
26061847f8eSopenharmony_ci     * Indicates that the account is logged in.
26161847f8eSopenharmony_ci     *
26261847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
26361847f8eSopenharmony_ci     * @since 10
26461847f8eSopenharmony_ci     */
26561847f8eSopenharmony_ci    LOGGED_IN = 1
26661847f8eSopenharmony_ci  }
26761847f8eSopenharmony_ci
26861847f8eSopenharmony_ci  /**
26961847f8eSopenharmony_ci   * Provides the distributed information of the OS account.
27061847f8eSopenharmony_ci   *
27161847f8eSopenharmony_ci   * @interface DistributedInfo
27261847f8eSopenharmony_ci   * @syscap SystemCapability.Account.OsAccount
27361847f8eSopenharmony_ci   * @since 7
27461847f8eSopenharmony_ci   */
27561847f8eSopenharmony_ci  interface DistributedInfo {
27661847f8eSopenharmony_ci    /**
27761847f8eSopenharmony_ci     * The name in the distributed information of the OS account.
27861847f8eSopenharmony_ci     *
27961847f8eSopenharmony_ci     * @type { string }
28061847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
28161847f8eSopenharmony_ci     * @since 7
28261847f8eSopenharmony_ci     */
28361847f8eSopenharmony_ci    name: string;
28461847f8eSopenharmony_ci
28561847f8eSopenharmony_ci    /**
28661847f8eSopenharmony_ci     * The ID in the distributed information of the OS account.
28761847f8eSopenharmony_ci     *
28861847f8eSopenharmony_ci     * @type { string }
28961847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
29061847f8eSopenharmony_ci     * @since 7
29161847f8eSopenharmony_ci     */
29261847f8eSopenharmony_ci    id: string;
29361847f8eSopenharmony_ci
29461847f8eSopenharmony_ci    /**
29561847f8eSopenharmony_ci     * The event string in the distributed information of the OS account.
29661847f8eSopenharmony_ci     *
29761847f8eSopenharmony_ci     * @type { string }
29861847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
29961847f8eSopenharmony_ci     * @since 7
30061847f8eSopenharmony_ci     */
30161847f8eSopenharmony_ci    event: string;
30261847f8eSopenharmony_ci
30361847f8eSopenharmony_ci    /**
30461847f8eSopenharmony_ci     * The nickname in the distributed information of the OS account.
30561847f8eSopenharmony_ci     *
30661847f8eSopenharmony_ci     * @type { ?string }
30761847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
30861847f8eSopenharmony_ci     * @since 9
30961847f8eSopenharmony_ci     */
31061847f8eSopenharmony_ci    nickname?: string;
31161847f8eSopenharmony_ci
31261847f8eSopenharmony_ci    /**
31361847f8eSopenharmony_ci     * The avatar in the distributed information of the OS account.
31461847f8eSopenharmony_ci     *
31561847f8eSopenharmony_ci     * @type { ?string }
31661847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
31761847f8eSopenharmony_ci     * @since 9
31861847f8eSopenharmony_ci     */
31961847f8eSopenharmony_ci    avatar?: string;
32061847f8eSopenharmony_ci
32161847f8eSopenharmony_ci    /**
32261847f8eSopenharmony_ci     * The status in the distributed information of the OS account.
32361847f8eSopenharmony_ci     *
32461847f8eSopenharmony_ci     * @type { ?DistributedAccountStatus }
32561847f8eSopenharmony_ci     * @readonly
32661847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
32761847f8eSopenharmony_ci     * @since 10
32861847f8eSopenharmony_ci     */
32961847f8eSopenharmony_ci    readonly status?: DistributedAccountStatus;
33061847f8eSopenharmony_ci
33161847f8eSopenharmony_ci    /**
33261847f8eSopenharmony_ci     * The scalable data in the distributed information of the OS account.
33361847f8eSopenharmony_ci     *
33461847f8eSopenharmony_ci     * @type { ?object }
33561847f8eSopenharmony_ci     * @syscap SystemCapability.Account.OsAccount
33661847f8eSopenharmony_ci     * @since 8
33761847f8eSopenharmony_ci     */
33861847f8eSopenharmony_ci    scalableData?: object;
33961847f8eSopenharmony_ci  }
34061847f8eSopenharmony_ci}
34161847f8eSopenharmony_ci
34261847f8eSopenharmony_ciexport default distributedAccount;