/** * AuthListParams - 获取授权记录列表参数 */ type AuthListParams = { devId: string; authTypes: string[]; }; /** * ScheduleDetailsEntry - 授权记录详情条目 */ type ScheduleDetailsEntry = { allDay: boolean; effectiveTime: number; invalidTime: number; workingDay: number; }; /** * OpModeInfo - 操作模式信息 */ type OpModeInfo = { hasClearPwd?: string; revokedPwdName?: string; revokedPwdEffectiveTime?: string; revokedPwdInvalidTime?: string; }; /** * AuthListResultEntry - 获取授权记录列表结果条目 */ type AuthListResultEntry = { unlockBindingId: string; effectiveTime: number; invalidTime: number; name: string; userName: string; scheduleDetails: ScheduleDetailsEntry[]; opModeType: number; opModeSubType: number; sn: number; lockUserId: number; account: string; countryCode: string; opModeInfo?: OpModeInfo; }; /** * AuthListResult - 获取授权记录列表结果 */ type AuthListResult = { hasNext: boolean; totalCount: number; datas: AuthListResultEntry[]; }; /** * getAuthList - 获取授权记录列表函数 * @param {AuthListParams} params - 获取授权记录列表参数 * @returns {Promise} - 获取授权记录列表结果的 Promise */ declare const getLockAuthList: (params: AuthListParams) => Promise; /** * InvalidAuthListParams - 获取已失效的授权记录列表参数 */ type InvalidAuthListParams = { devId: string; offSet: number; limit: number; }; /** * InvalidAuthListResultEntry - 获取已失效的授权记录列表结果条目 */ type InvalidAuthListResultEntry = { unlockBindingId: string; effectiveTime: number; invalidTime: number; name: string; userName: string; scheduleDetails: ScheduleDetailsEntry[]; opModeType: number; opModeSubType: number; sn: number; lockUserId: number; account: string; countryCode: string; opModeInfo?: OpModeInfo; }; /** * InvalidAuthListResult - 获取已失效的授权记录列表结果 */ type InvalidAuthListResult = InvalidAuthListResultEntry[]; /** * 获取已失效的授权记录列表 * @param {InvalidAuthListParams} params - 获取已失效的授权记录列表参数 * @returns {Promise} - 获取已失效的授权记录列表结果的 Promise */ declare const getInvalidAuthList: (params: InvalidAuthListParams) => Promise; /** * ClearInvalidAuthListParams - 清空已失效的授权记录列表参数 */ type ClearInvalidAuthListParams = { devId: string; }; /** * ClearInvalidAuthListResult - 清空已失效的授权记录列表结果 */ type ClearInvalidAuthListResult = boolean; /** * 清空已失效的授权记录列表 * @param {ClearInvalidAuthListParams} params - 清空已失效的授权记录列表参数 * @returns {Promise} - 清空已失效的授权记录列表结果的 Promise */ declare const clearInvalidAuthList: (params: ClearInvalidAuthListParams) => Promise; /** * Schedule - 日程设置 */ type Schedule = { allDay: boolean; effectiveTime?: number; invalidTime?: number; workingDay?: number; }; /** * AddBluetoothAuthParams - 添加蓝牙授权参数 */ type AddBluetoothAuthParams = { devId: string; timeSetType: number; effectiveTime: number; invalidTime: number; availTime?: number; name: string; schedule?: Schedule; countryCode: string; account: string; offlineUnlock: boolean; }; /** * AddBluetoothAuthResult - 添加蓝牙授权结果 */ type AddBluetoothAuthResult = { unlockBindingId: string; name: string; userExist: boolean; }; /** * 添加蓝牙授权 * @param {AddBluetoothAuthParams} params - 添加蓝牙授权参数 * @returns {Promise} - 添加蓝牙授权结果的 Promise */ declare const addBluetoothAuth: (params: AddBluetoothAuthParams) => Promise; /** * UpdateSchedule - 更新日程设置 */ type UpdateSchedule = { allDay: boolean; effectiveTime?: number; invalidTime?: number; workingDay?: number; }; /** * UpdateBluetoothKeyParams - 修改蓝牙钥匙信息参数 */ type UpdateBluetoothKeyParams = { devId: string; unlockBindingId: string; offlineUnlock: boolean; timeSetType: number; effectiveTime: number; invalidTime: number; availTime?: number; name?: string; phase?: number; schedule?: UpdateSchedule; }; /** * UpdateBluetoothKeyResult - 修改蓝牙钥匙信息结果 */ type UpdateBluetoothKeyResult = boolean; /** * 修改蓝牙钥匙信息 * @param {UpdateBluetoothKeyParams} params - 修改蓝牙钥匙信息参数 * @returns {Promise} - 修改蓝牙钥匙信息结果的 Promise */ declare const updateBluetoothKey: (params: UpdateBluetoothKeyParams) => Promise; /** * FreezeUnfreezeBluetoothKeyParams - 冻结/解冻蓝牙钥匙参数 */ type FreezeUnfreezeBluetoothKeyParams = { devId: string; unlockBindingId: string; phase?: number; }; /** * FreezeUnfreezeBluetoothKeyResult - 冻结/解冻蓝牙钥匙结果 */ type FreezeUnfreezeBluetoothKeyResult = boolean; /** * 冻结或解冻蓝牙钥匙。 * @param {FreezeUnfreezeBluetoothKeyParams} params - 冻结或解冻蓝牙钥匙的参数。 * @returns {Promise} - 带有冻结或解冻蓝牙钥匙结果的 Promise。 */ declare const freezeUnfreezeBluetoothKey: (params: FreezeUnfreezeBluetoothKeyParams) => Promise; /** * ChangeBluetoothKeyNameParams - 修改蓝牙钥匙名称参数 */ type ChangeBluetoothKeyNameParams = { devId: string; unlockBindingId: string; name: string; }; /** * ChangeBluetoothKeyNameResult - 修改蓝牙钥匙名称结果 */ type ChangeBluetoothKeyNameResult = boolean; /** * 修改蓝牙钥匙名称。 * @param {ChangeBluetoothKeyNameParams} params - 修改蓝牙钥匙名称的参数。 * @returns {Promise} - 带有修改蓝牙钥匙名称结果的 Promise。 */ declare const changeBluetoothKeyName: (params: ChangeBluetoothKeyNameParams) => Promise; /** * RemoveBluetoothKeyParams - 删除蓝牙钥匙授权参数 */ type RemoveBluetoothKeyParams = { devId: string; unlockBindingId: string; }; /** * RemoveBluetoothKeyResult - 删除蓝牙钥匙授权结果 */ type RemoveBluetoothKeyResult = boolean; /** * 删除蓝牙钥匙授权。 * @param {RemoveBluetoothKeyParams} params - 删除蓝牙钥匙授权的参数。 * @returns {Promise} - 带有删除蓝牙钥匙授权结果的 Promise。 */ declare const removeBluetoothKeyAuthorization: (params: RemoveBluetoothKeyParams) => Promise; export { getLockAuthList, getInvalidAuthList, clearInvalidAuthList, addBluetoothAuth, updateBluetoothKey, freezeUnfreezeBluetoothKey, changeBluetoothKeyName, removeBluetoothKeyAuthorization, };