add authentication support
This commit is contained in:
37
dist/auth/common.d.ts
vendored
Normal file
37
dist/auth/common.d.ts
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
export type JLINCConfig = {
|
||||
dataStoreApiUrl?: string | undefined;
|
||||
dataStoreApiKey?: string | undefined;
|
||||
archiveApiUrl?: string | undefined;
|
||||
archiveApiKey?: string | undefined;
|
||||
systemPrefix?: string | undefined;
|
||||
agreementId?: string | null | undefined;
|
||||
debug?: boolean | undefined;
|
||||
};
|
||||
/**
|
||||
* @param {any} settings
|
||||
* @param {any} input
|
||||
* @returns {Promise<any>} - The result of invoking the selected tool.
|
||||
*/
|
||||
export function authInvoke(settings: any, input: any): Promise<any>;
|
||||
/**
|
||||
* @param {any} - Authorized
|
||||
* @param {any|null} - NotAuthorized
|
||||
* @returns {string} - The description
|
||||
*/
|
||||
export function getDescription(authorized: any, unauthorized: any, type: any): string;
|
||||
/**
|
||||
* @typedef {Object} JLINCConfig
|
||||
* @property {string} [dataStoreApiUrl]
|
||||
* @property {string} [dataStoreApiKey]
|
||||
* @property {string} [archiveApiUrl]
|
||||
* @property {string} [archiveApiKey]
|
||||
* @property {string} [systemPrefix]
|
||||
* @property {string|null} [agreementId]
|
||||
* @property {boolean} [debug]
|
||||
*/
|
||||
/**
|
||||
* @param {any} - Authorized
|
||||
* @param {any|null} - NotAuthorized
|
||||
* @returns {string} - The description
|
||||
*/
|
||||
export function getName(authorized: any, unauthorized: any): string;
|
||||
Reference in New Issue
Block a user