Skip to content

Commit

Permalink
chore: version-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 4, 2024
1 parent b9cda5e commit 62b2209
Show file tree
Hide file tree
Showing 514 changed files with 18,739 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .changeset/thick-squids-wink.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thin-tools-sing.md

This file was deleted.

1 change: 1 addition & 0 deletions code
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
1 change: 1 addition & 0 deletions outputs/packages/device-client/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib/device.store.js';
4 changes: 4 additions & 0 deletions outputs/packages/device-client/dist/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { deviceClient as o } from "./lib/device.store.js";
export {
o as deviceClient
};
125 changes: 125 additions & 0 deletions outputs/packages/device-client/dist/lib/device.store.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
import { ConfigOptions } from '@forgerock/javascript-sdk';
import { DeleteOathQuery, OathDevice, RetrieveOathQuery } from './types/oath.types.js';
import { DeleteDeviceQuery, PushDeviceQuery } from './types/push-device.types.js';
import { WebAuthnBody, WebAuthnQuery, WebAuthnQueryWithUUID } from './types/webauthn.types.js';
import { BindingDeviceQuery } from './types/binding-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<OAthResponse>} - A promise that resolves to the retrieved data or undefined if the response is not valid.
*/
get: (query: RetrieveOathQuery) => Promise<import('./types/oath.types.js').OAthResponse | undefined>;
/**
* 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<DeletedOAthDevice>} - A promise that resolves to the response data or undefined if the response is not valid.
*/
delete: (query: DeleteOathQuery & OathDevice) => Promise<import('./types/oath.types.js').DeletedOAthDevice | undefined>;
};
/**
* 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<PushDevicesResponse | undefined>} - A promise that resolves to the retrieved data or undefined if the response is not valid.
*/
get: (query: PushDeviceQuery) => Promise<import('./types/push-device.types.js').PushDevicesResponse | undefined>;
/**
* 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<PushDevice>} - A promise that resolves to the response data or undefined if the response is not valid.
*/
delete: (query: DeleteDeviceQuery) => Promise<import('./types/push-device.types.js').PushDevice | undefined>;
};
/**
* 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<WebAuthnDevicesResponse>} - A promise that resolves to the retrieved data or undefined if the response is not valid.
*/
get: (query: WebAuthnQuery) => Promise<import('./types/webauthn.types.js').WebAuthnDevicesResponse | undefined>;
/**
* Updates the name of a WebAuthn device based on the provided query and body.
*
* @async
* @function update
* @param {WebAuthnQueryWithUUID & WebAuthnBody} query - The query and body used to update the WebAuthn device name.
* @returns {Promise<UpdatedWebAuthnDevice | undefined>} - A promise that resolves to the response data or undefined if the response is not valid.
*/
update: (query: WebAuthnQueryWithUUID & WebAuthnBody) => Promise<import('./types/webauthn.types.js').UpdatedWebAuthnDevice | undefined>;
/**
* Deletes a WebAuthn device based on the provided query and body.
*
* @async
* @function delete
* @param {WebAuthnQueryWithUUID & WebAuthnBody} query - The query and body used to delete the WebAuthn device.
* @returns {Promise<WebAuthnDevice | undefined>} - A promise that resolves to the response data or undefined if the response is not valid.
*/
delete: (query: WebAuthnQueryWithUUID & WebAuthnBody) => Promise<import('./types/webauthn.types.js').WebAuthnDevice | undefined>;
};
/**
* Bound devices management methods.
*
* @type {BoundDevicesManagement}
*/
boundDevices: {
/**
* Retrieves bound devices based on the specified query.
*
* @async
* @function get
* @param {BindingDeviceQuery} query - The query used to retrieve bound devices.
* @returns {Promise<DeviceResponse | undefined>} - A promise that resolves to the retrieved data or undefined if the response is not valid.
*/
get: (query: BindingDeviceQuery) => Promise<import('./types/binding-device.types.js').DeviceResponse | undefined>;
/**
* Deletes a bound device based on the provided query.
*
* @async
* @function delete
* @param {BindingDeviceQuery} query - The query used to delete the bound device.
* @returns {Promise<Device | undefined>} - A promise that resolves to the response data or undefined if the response is not valid.
*/
delete: (query: BindingDeviceQuery) => Promise<import('./types/binding-device.types.js').Device | undefined>;
/**
* Updates the name of a bound device based on the provided query.
*
* @async
* @function update
* @param {BindingDeviceQuery} query - The query used to update the bound device name.
* @returns {Promise<Device | undefined>} - A promise that resolves to the response data or undefined if the response is not valid.
*/
update: (query: BindingDeviceQuery) => Promise<import('./types/binding-device.types.js').Device | undefined>;
};
};
176 changes: 176 additions & 0 deletions outputs/packages/device-client/dist/lib/device.store.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
import { configureStore as c } from "/home/workflows/workspace/node_modules/.pnpm/@[email protected][email protected]/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs";
import { deviceService as o } from "./services/index.js";
const v = (n) => {
const { middleware: r, reducerPath: d, reducer: s, endpoints: a } = o({
baseUrl: n.serverConfig.baseUrl,
realmPath: n.realmPath
}), i = c({
reducer: {
[d]: s
},
middleware: (t) => t().concat(r)
});
return {
/**
* 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<OAthResponse>} - A promise that resolves to the retrieved data or undefined if the response is not valid.
*/
get: async function(t) {
const e = await i.dispatch(a.getOAthDevices.initiate(t));
if (!(!e || !e.data))
return e.data;
},
/**
* 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<DeletedOAthDevice>} - A promise that resolves to the response data or undefined if the response is not valid.
*/
delete: async function(t) {
const e = await i.dispatch(a.deleteOathDevice.initiate(t));
if (!(!e || !e.data))
return e.data;
}
},
/**
* 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<PushDevicesResponse | undefined>} - A promise that resolves to the retrieved data or undefined if the response is not valid.
*/
get: async function(t) {
const e = await i.dispatch(a.getPushDevices.initiate(t));
if (!(!e || !e.data))
return e.data;
},
/**
* 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<PushDevice>} - A promise that resolves to the response data or undefined if the response is not valid.
*/
delete: async function(t) {
const e = await i.dispatch(a.deletePushDevice.initiate(t));
if (!(!e || !e.data))
return e.data;
}
},
/**
* 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<WebAuthnDevicesResponse>} - A promise that resolves to the retrieved data or undefined if the response is not valid.
*/
get: async function(t) {
const e = await i.dispatch(a.getWebAuthnDevices.initiate(t));
if (!(!e || !e.data))
return e.data;
},
/**
* Updates the name of a WebAuthn device based on the provided query and body.
*
* @async
* @function update
* @param {WebAuthnQueryWithUUID & WebAuthnBody} query - The query and body used to update the WebAuthn device name.
* @returns {Promise<UpdatedWebAuthnDevice | undefined>} - A promise that resolves to the response data or undefined if the response is not valid.
*/
update: async function(t) {
const e = await i.dispatch(a.updateWebAuthnDeviceName.initiate(t));
if (!(!e || !e.data))
return e.data;
},
/**
* Deletes a WebAuthn device based on the provided query and body.
*
* @async
* @function delete
* @param {WebAuthnQueryWithUUID & WebAuthnBody} query - The query and body used to delete the WebAuthn device.
* @returns {Promise<WebAuthnDevice | undefined>} - A promise that resolves to the response data or undefined if the response is not valid.
*/
delete: async function(t) {
const e = await i.dispatch(a.deleteWebAuthnDeviceName.initiate(t));
if (!(!e || !e.data))
return e.data;
}
},
/**
* Bound devices management methods.
*
* @type {BoundDevicesManagement}
*/
boundDevices: {
/**
* Retrieves bound devices based on the specified query.
*
* @async
* @function get
* @param {BindingDeviceQuery} query - The query used to retrieve bound devices.
* @returns {Promise<DeviceResponse | undefined>} - A promise that resolves to the retrieved data or undefined if the response is not valid.
*/
get: async function(t) {
const e = await i.dispatch(a.getBoundDevices.initiate(t));
if (!(!e || !e.data))
return e.data;
},
/**
* Deletes a bound device based on the provided query.
*
* @async
* @function delete
* @param {BindingDeviceQuery} query - The query used to delete the bound device.
* @returns {Promise<Device | undefined>} - A promise that resolves to the response data or undefined if the response is not valid.
*/
delete: async function(t) {
const e = await i.dispatch(a.deleteBindingDevice.initiate(t));
if (!(!e || !e.data))
return e.data;
},
/**
* Updates the name of a bound device based on the provided query.
*
* @async
* @function update
* @param {BindingDeviceQuery} query - The query used to update the bound device name.
* @returns {Promise<Device | undefined>} - A promise that resolves to the response data or undefined if the response is not valid.
*/
update: async function(t) {
const e = await i.dispatch(a.updateBindingDeviceName.initiate(t));
if (!(!e || !e.data))
return e.data;
}
}
};
};
export {
v as deviceClient
};
23 changes: 23 additions & 0 deletions outputs/packages/device-client/dist/lib/services/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { DeletedOAthDevice, DeleteOathQuery, OathDevice, OAthResponse, RetrieveOathQuery } from '../types/oath.types.js';
import { DeleteDeviceQuery, PushDevice, PushDeviceQuery, PushDevicesResponse } from '../types/push-device.types.js';
import { BindingDeviceQuery, Device, DeviceResponse } from '../types/binding-device.types.js';
import { UpdatedWebAuthnDevice, WebAuthnBody, WebAuthnDevice, WebAuthnDevicesResponse, WebAuthnQuery } from '../types/webauthn.types.js';
export declare const deviceService: ({ baseUrl, realmPath }: {
baseUrl: string;
realmPath: string;
}) => import('@reduxjs/toolkit/query').Api<import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, {
getOAthDevices: import('@reduxjs/toolkit/query').QueryDefinition<RetrieveOathQuery, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, OAthResponse, "deviceClient">;
deleteOathDevice: import('@reduxjs/toolkit/query').MutationDefinition<DeleteOathQuery & OathDevice, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, DeletedOAthDevice, "deviceClient">;
getPushDevices: import('@reduxjs/toolkit/query').QueryDefinition<PushDeviceQuery, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, PushDevicesResponse, "deviceClient">;
deletePushDevice: import('@reduxjs/toolkit/query').MutationDefinition<DeleteDeviceQuery, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, PushDevice, "deviceClient">;
getWebAuthnDevices: import('@reduxjs/toolkit/query').QueryDefinition<WebAuthnQuery, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, WebAuthnDevicesResponse, "deviceClient">;
updateWebAuthnDeviceName: import('@reduxjs/toolkit/query').MutationDefinition<{
uuid: string;
} & WebAuthnQuery & WebAuthnBody, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, UpdatedWebAuthnDevice, "deviceClient">;
deleteWebAuthnDeviceName: import('@reduxjs/toolkit/query').MutationDefinition<{
uuid: string;
} & WebAuthnQuery & WebAuthnBody, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, WebAuthnDevice, "deviceClient">;
getBoundDevices: import('@reduxjs/toolkit/query').MutationDefinition<BindingDeviceQuery, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, DeviceResponse, "deviceClient">;
updateBindingDeviceName: import('@reduxjs/toolkit/query').MutationDefinition<BindingDeviceQuery, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, Device, "deviceClient">;
deleteBindingDevice: import('@reduxjs/toolkit/query').MutationDefinition<BindingDeviceQuery, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, Device, "deviceClient">;
}, "deviceClient", never, typeof import('@reduxjs/toolkit/query').coreModuleName>;
Loading

0 comments on commit 62b2209

Please sign in to comment.