add authentication support

This commit is contained in:
2025-11-24 14:21:49 +00:00
parent 05ebf84bb9
commit 9941d61fb8
27 changed files with 1126 additions and 69 deletions

37
dist/auth/common.d.ts vendored Normal file
View 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;