import { ConfigOptions } from '../config/interfaces'; import { DeletedOathDevice, OathDevice, RetrieveOathQuery } from './types/oath.types.js'; import { DeleteDeviceQuery, DeletedPushDevice, PushDevice, PushDeviceQuery } from './types/push-device.types.js'; import { UpdatedWebAuthnDevice, WebAuthnDevice, WebAuthnQuery } from './types/webauthn.types.js'; import { BoundDeviceQuery, Device, GetBoundDevicesQuery } from './types/bound-device.types.js'; import { GetProfileDevices, ProfileDevice, ProfileDevicesQuery } from './types/profile-device.types.js'; export declare const deviceClient: (config: ConfigOptions) => { /** * Oath device management methods. * * @type {OathManagement} */ oath: { /** * Retrieves Oath devices based on the specified query. * * @async * @function get * @param {RetrieveOathQuery} query - The query used to retrieve Oath devices. * @returns {Promise} - A promise that resolves to the retrieved data or an error object if the response is not valid. */ get: (query: RetrieveOathQuery) => Promise; /** * Deletes an Oath device based on the provided query and device information. * * @async * @function delete * @param {DeleteOathQuery & OathDevice} query - The query and device information used to delete the Oath device. * @returns {Promise} - A promise that resolves to the response data or an error object if the response is not valid. */ delete: (query: RetrieveOathQuery & { device: OathDevice; }) => Promise; }; /** * Push device management methods. * * @type {PushManagement} */ push: { /** * Retrieves Push devices based on the specified query. * * @async * @function get * @param {PushDeviceQuery} query - The query used to retrieve Push devices. * @returns {Promise} - A promise that resolves to the retrieved data or an error object if the response is not valid. */ get: (query: PushDeviceQuery) => Promise; /** * Deletes a Push device based on the provided query. * * @async * @function delete * @param {DeleteDeviceQuery} query - The query used to delete the Push device. * @returns {Promise} - A promise that resolves to the response data or an error object if the response is not valid. */ delete: (query: DeleteDeviceQuery) => Promise; }; /** * WebAuthn device management methods. * * @type {WebAuthnManagement} */ webAuthn: { /** * Retrieves WebAuthn devices based on the specified query. * * @async * @function get * @param {WebAuthnQuery} query - The query used to retrieve WebAuthn devices. * @returns {Promise} - A promise that resolves to the retrieved data or an error object if the response is not valid. */ get: (query: WebAuthnQuery) => Promise; /** * Updates the name of a WebAuthn device based on the provided query and body. * * @async * @function update * @param {WebAuthnQueryWithUUID & { device: WebAuthnBody } } query - The query and body used to update the WebAuthn device name. * @returns {Promise} - A promise that resolves to the response data or an error object if the response is not valid. */ update: (query: WebAuthnQuery & { device: WebAuthnDevice; }) => Promise; /** * Deletes a WebAuthn device based on the provided query and body. * * @async * @function delete * @param {WebAuthnQueryWithUUID & { device: WebAuthnBody } } query - The query and body used to delete the WebAuthn device. * @returns {Promise} - A promise that resolves to the response data or an error object if the response is not valid. */ delete: (query: WebAuthnQuery & { device: WebAuthnDevice | UpdatedWebAuthnDevice; }) => Promise; }; /** * Bound devices management methods. * * @type {BoundDevicesManagement} */ bound: { /** * Retrieves bound devices based on the specified query. * * @async * @function get * @param {BoundDeviceQuery} query - The query used to retrieve bound devices. * @returns {Promise} - A promise that resolves to the retrieved data or an error object if the response is not valid. */ get: (query: GetBoundDevicesQuery) => Promise; /** * Deletes a bound device based on the provided query. * * @async * @function delete * @param {BoundDeviceQuery} query - The query used to delete the bound device. * @returns {Promise} - A promise that resolves to the response data or an error object if the response is not valid. */ delete: (query: BoundDeviceQuery) => Promise; /** * Updates the name of a bound device based on the provided query. * * @async * @function update * @param {BoundDeviceQuery} query - The query used to update the bound device name. * @returns {Promise} - A promise that resolves to the response data or an error object if the response is not valid. */ update: (query: BoundDeviceQuery) => Promise; }; profile: { /** * Get profile devices * * @async * @function update * @param {GetProfileDevice} query - The query used to get profile devices * @returns {Promise} - A promise that resolves to the response data or an error object if the response is not valid. */ get: (query: GetProfileDevices) => Promise; /** * Get profile devices * * @async * @function update * @param {ProfileDevicesQuery} query - The query used to update a profile device * @returns {Promise} - A promise that resolves to the response data or or an error object if the response is not valid. */ update: (query: ProfileDevicesQuery) => Promise; /** * Get profile devices * * @async * @function update * @param {ProfileDevicesQuery} query - The query used to update a profile device * @returns {Promise} - A promise that resolves to the response data or an error object if the response is not valid. */ delete: (query: ProfileDevicesQuery) => Promise; }; }; //# sourceMappingURL=device.store.d.ts.map