@openfilz-sdk/typescript-ee 1.8.15 → 1.8.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +10 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +10 -2
- package/api/mcp-discovery-controller-api.ts +175 -0
- package/api/mcp-token-admin-controller-api.ts +269 -0
- package/api.ts +2 -0
- package/dist/api/mcp-discovery-controller-api.d.ts +88 -0
- package/dist/api/mcp-discovery-controller-api.js +178 -0
- package/dist/api/mcp-token-admin-controller-api.d.ts +129 -0
- package/dist/api/mcp-token-admin-controller-api.js +263 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/mcp-discovery-controller-api.d.ts +88 -0
- package/dist/esm/api/mcp-discovery-controller-api.js +171 -0
- package/dist/esm/api/mcp-token-admin-controller-api.d.ts +129 -0
- package/dist/esm/api/mcp-token-admin-controller-api.js +256 -0
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/models/mcp-agent-token-info.d.ts +27 -0
- package/dist/esm/models/mcp-agent-token-info.js +17 -0
- package/dist/esm/models/mcp-agent-token-response.d.ts +26 -0
- package/dist/esm/models/mcp-agent-token-response.js +17 -0
- package/dist/esm/models/mint-mcp-agent-token-request.d.ts +34 -0
- package/dist/esm/models/mint-mcp-agent-token-request.js +17 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/mcp-agent-token-info.d.ts +27 -0
- package/dist/models/mcp-agent-token-info.js +20 -0
- package/dist/models/mcp-agent-token-response.d.ts +26 -0
- package/dist/models/mcp-agent-token-response.js +20 -0
- package/dist/models/mint-mcp-agent-token-request.d.ts +34 -0
- package/dist/models/mint-mcp-agent-token-request.js +20 -0
- package/docs/McpAgentTokenInfo.md +36 -0
- package/docs/McpAgentTokenResponse.md +28 -0
- package/docs/McpDiscoveryControllerApi.md +95 -0
- package/docs/McpTokenAdminControllerApi.md +154 -0
- package/docs/MintMcpAgentTokenRequest.md +26 -0
- package/models/index.ts +3 -0
- package/models/mcp-agent-token-info.ts +36 -0
- package/models/mcp-agent-token-response.ts +35 -0
- package/models/mint-mcp-agent-token-request.ts +43 -0
- package/package.json +1 -1
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* McpDiscoveryControllerApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const McpDiscoveryControllerApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
authorizationServerMetadata: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
40
|
+
const localVarPath = `/.well-known/oauth-authorization-server`;
|
|
41
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43
|
+
let baseOptions;
|
|
44
|
+
if (configuration) {
|
|
45
|
+
baseOptions = configuration.baseOptions;
|
|
46
|
+
}
|
|
47
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
48
|
+
const localVarHeaderParameter = {};
|
|
49
|
+
const localVarQueryParameter = {};
|
|
50
|
+
// authentication keycloak_auth required
|
|
51
|
+
// http bearer authentication required
|
|
52
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
53
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
56
|
+
return {
|
|
57
|
+
url: toPathString(localVarUrlObj),
|
|
58
|
+
options: localVarRequestOptions,
|
|
59
|
+
};
|
|
60
|
+
}),
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @param {*} [options] Override http request option.
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
*/
|
|
66
|
+
protectedResourceMetadata: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
67
|
+
const localVarPath = `/.well-known/oauth-protected-resource`;
|
|
68
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
69
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
70
|
+
let baseOptions;
|
|
71
|
+
if (configuration) {
|
|
72
|
+
baseOptions = configuration.baseOptions;
|
|
73
|
+
}
|
|
74
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
75
|
+
const localVarHeaderParameter = {};
|
|
76
|
+
const localVarQueryParameter = {};
|
|
77
|
+
// authentication keycloak_auth required
|
|
78
|
+
// http bearer authentication required
|
|
79
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
80
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
81
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
84
|
+
return {
|
|
85
|
+
url: toPathString(localVarUrlObj),
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
};
|
|
88
|
+
}),
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* McpDiscoveryControllerApi - functional programming interface
|
|
93
|
+
*/
|
|
94
|
+
export const McpDiscoveryControllerApiFp = function (configuration) {
|
|
95
|
+
const localVarAxiosParamCreator = McpDiscoveryControllerApiAxiosParamCreator(configuration);
|
|
96
|
+
return {
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
authorizationServerMetadata(options) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
var _a, _b, _c;
|
|
105
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authorizationServerMetadata(options);
|
|
106
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
107
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['McpDiscoveryControllerApi.authorizationServerMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
108
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
109
|
+
});
|
|
110
|
+
},
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @param {*} [options] Override http request option.
|
|
114
|
+
* @throws {RequiredError}
|
|
115
|
+
*/
|
|
116
|
+
protectedResourceMetadata(options) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
var _a, _b, _c;
|
|
119
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.protectedResourceMetadata(options);
|
|
120
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
121
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['McpDiscoveryControllerApi.protectedResourceMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
122
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
123
|
+
});
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* McpDiscoveryControllerApi - factory interface
|
|
129
|
+
*/
|
|
130
|
+
export const McpDiscoveryControllerApiFactory = function (configuration, basePath, axios) {
|
|
131
|
+
const localVarFp = McpDiscoveryControllerApiFp(configuration);
|
|
132
|
+
return {
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @param {*} [options] Override http request option.
|
|
136
|
+
* @throws {RequiredError}
|
|
137
|
+
*/
|
|
138
|
+
authorizationServerMetadata(options) {
|
|
139
|
+
return localVarFp.authorizationServerMetadata(options).then((request) => request(axios, basePath));
|
|
140
|
+
},
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
protectedResourceMetadata(options) {
|
|
147
|
+
return localVarFp.protectedResourceMetadata(options).then((request) => request(axios, basePath));
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* McpDiscoveryControllerApi - object-oriented interface
|
|
153
|
+
*/
|
|
154
|
+
export class McpDiscoveryControllerApi extends BaseAPI {
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
authorizationServerMetadata(options) {
|
|
161
|
+
return McpDiscoveryControllerApiFp(this.configuration).authorizationServerMetadata(options).then((request) => request(this.axios, this.basePath));
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
protectedResourceMetadata(options) {
|
|
169
|
+
return McpDiscoveryControllerApiFp(this.configuration).protectedResourceMetadata(options).then((request) => request(this.axios, this.basePath));
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { McpAgentTokenInfo } from '../models';
|
|
16
|
+
import type { McpAgentTokenResponse } from '../models';
|
|
17
|
+
import type { MintMcpAgentTokenRequest } from '../models';
|
|
18
|
+
/**
|
|
19
|
+
* McpTokenAdminControllerApi - axios parameter creator
|
|
20
|
+
*/
|
|
21
|
+
export declare const McpTokenAdminControllerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @summary List minted MCP agent tokens (never returns the credentials)
|
|
25
|
+
* @param {*} [options] Override http request option.
|
|
26
|
+
* @throws {RequiredError}
|
|
27
|
+
*/
|
|
28
|
+
list1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @summary Mint an MCP agent token for a dedicated user (admin only)
|
|
32
|
+
* @param {MintMcpAgentTokenRequest} mintMcpAgentTokenRequest
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
mint: (mintMcpAgentTokenRequest: MintMcpAgentTokenRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @summary Revoke an MCP agent token
|
|
40
|
+
* @param {string} jti
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
revoke1: (jti: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* McpTokenAdminControllerApi - functional programming interface
|
|
48
|
+
*/
|
|
49
|
+
export declare const McpTokenAdminControllerApiFp: (configuration?: Configuration) => {
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @summary List minted MCP agent tokens (never returns the credentials)
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
list1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<McpAgentTokenInfo>>>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @summary Mint an MCP agent token for a dedicated user (admin only)
|
|
60
|
+
* @param {MintMcpAgentTokenRequest} mintMcpAgentTokenRequest
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
mint(mintMcpAgentTokenRequest: MintMcpAgentTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<McpAgentTokenResponse>>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Revoke an MCP agent token
|
|
68
|
+
* @param {string} jti
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
revoke1(jti: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* McpTokenAdminControllerApi - factory interface
|
|
76
|
+
*/
|
|
77
|
+
export declare const McpTokenAdminControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary List minted MCP agent tokens (never returns the credentials)
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
list1(options?: RawAxiosRequestConfig): AxiosPromise<Array<McpAgentTokenInfo>>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @summary Mint an MCP agent token for a dedicated user (admin only)
|
|
88
|
+
* @param {MintMcpAgentTokenRequest} mintMcpAgentTokenRequest
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
mint(mintMcpAgentTokenRequest: MintMcpAgentTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<McpAgentTokenResponse>;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @summary Revoke an MCP agent token
|
|
96
|
+
* @param {string} jti
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
revoke1(jti: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* McpTokenAdminControllerApi - object-oriented interface
|
|
104
|
+
*/
|
|
105
|
+
export declare class McpTokenAdminControllerApi extends BaseAPI {
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @summary List minted MCP agent tokens (never returns the credentials)
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
list1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<McpAgentTokenInfo[], any, {}, any>>;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @summary Mint an MCP agent token for a dedicated user (admin only)
|
|
116
|
+
* @param {MintMcpAgentTokenRequest} mintMcpAgentTokenRequest
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
mint(mintMcpAgentTokenRequest: MintMcpAgentTokenRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<McpAgentTokenResponse, any, {}, any>>;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @summary Revoke an MCP agent token
|
|
124
|
+
* @param {string} jti
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
*/
|
|
128
|
+
revoke1(jti: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
129
|
+
}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* McpTokenAdminControllerApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const McpTokenAdminControllerApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary List minted MCP agent tokens (never returns the credentials)
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
list1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
41
|
+
const localVarPath = `/api/v1/admin/mcp/tokens`;
|
|
42
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44
|
+
let baseOptions;
|
|
45
|
+
if (configuration) {
|
|
46
|
+
baseOptions = configuration.baseOptions;
|
|
47
|
+
}
|
|
48
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
49
|
+
const localVarHeaderParameter = {};
|
|
50
|
+
const localVarQueryParameter = {};
|
|
51
|
+
// authentication keycloak_auth required
|
|
52
|
+
// http bearer authentication required
|
|
53
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
54
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
55
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
58
|
+
return {
|
|
59
|
+
url: toPathString(localVarUrlObj),
|
|
60
|
+
options: localVarRequestOptions,
|
|
61
|
+
};
|
|
62
|
+
}),
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @summary Mint an MCP agent token for a dedicated user (admin only)
|
|
66
|
+
* @param {MintMcpAgentTokenRequest} mintMcpAgentTokenRequest
|
|
67
|
+
* @param {*} [options] Override http request option.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
*/
|
|
70
|
+
mint: (mintMcpAgentTokenRequest_1, ...args_1) => __awaiter(this, [mintMcpAgentTokenRequest_1, ...args_1], void 0, function* (mintMcpAgentTokenRequest, options = {}) {
|
|
71
|
+
// verify required parameter 'mintMcpAgentTokenRequest' is not null or undefined
|
|
72
|
+
assertParamExists('mint', 'mintMcpAgentTokenRequest', mintMcpAgentTokenRequest);
|
|
73
|
+
const localVarPath = `/api/v1/admin/mcp/tokens`;
|
|
74
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
75
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
76
|
+
let baseOptions;
|
|
77
|
+
if (configuration) {
|
|
78
|
+
baseOptions = configuration.baseOptions;
|
|
79
|
+
}
|
|
80
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
81
|
+
const localVarHeaderParameter = {};
|
|
82
|
+
const localVarQueryParameter = {};
|
|
83
|
+
// authentication keycloak_auth required
|
|
84
|
+
// http bearer authentication required
|
|
85
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
86
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
87
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
88
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
89
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
91
|
+
localVarRequestOptions.data = serializeDataIfNeeded(mintMcpAgentTokenRequest, localVarRequestOptions, configuration);
|
|
92
|
+
return {
|
|
93
|
+
url: toPathString(localVarUrlObj),
|
|
94
|
+
options: localVarRequestOptions,
|
|
95
|
+
};
|
|
96
|
+
}),
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @summary Revoke an MCP agent token
|
|
100
|
+
* @param {string} jti
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
revoke1: (jti_1, ...args_1) => __awaiter(this, [jti_1, ...args_1], void 0, function* (jti, options = {}) {
|
|
105
|
+
// verify required parameter 'jti' is not null or undefined
|
|
106
|
+
assertParamExists('revoke1', 'jti', jti);
|
|
107
|
+
const localVarPath = `/api/v1/admin/mcp/tokens/{jti}`
|
|
108
|
+
.replace('{jti}', encodeURIComponent(String(jti)));
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
}
|
|
115
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
116
|
+
const localVarHeaderParameter = {};
|
|
117
|
+
const localVarQueryParameter = {};
|
|
118
|
+
// authentication keycloak_auth required
|
|
119
|
+
// http bearer authentication required
|
|
120
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
121
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
122
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
123
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
124
|
+
return {
|
|
125
|
+
url: toPathString(localVarUrlObj),
|
|
126
|
+
options: localVarRequestOptions,
|
|
127
|
+
};
|
|
128
|
+
}),
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* McpTokenAdminControllerApi - functional programming interface
|
|
133
|
+
*/
|
|
134
|
+
export const McpTokenAdminControllerApiFp = function (configuration) {
|
|
135
|
+
const localVarAxiosParamCreator = McpTokenAdminControllerApiAxiosParamCreator(configuration);
|
|
136
|
+
return {
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @summary List minted MCP agent tokens (never returns the credentials)
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
list1(options) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
var _a, _b, _c;
|
|
146
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.list1(options);
|
|
147
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
148
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['McpTokenAdminControllerApi.list1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
149
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
150
|
+
});
|
|
151
|
+
},
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @summary Mint an MCP agent token for a dedicated user (admin only)
|
|
155
|
+
* @param {MintMcpAgentTokenRequest} mintMcpAgentTokenRequest
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
mint(mintMcpAgentTokenRequest, options) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
var _a, _b, _c;
|
|
162
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mint(mintMcpAgentTokenRequest, options);
|
|
163
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
164
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['McpTokenAdminControllerApi.mint']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
165
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
166
|
+
});
|
|
167
|
+
},
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @summary Revoke an MCP agent token
|
|
171
|
+
* @param {string} jti
|
|
172
|
+
* @param {*} [options] Override http request option.
|
|
173
|
+
* @throws {RequiredError}
|
|
174
|
+
*/
|
|
175
|
+
revoke1(jti, options) {
|
|
176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
177
|
+
var _a, _b, _c;
|
|
178
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.revoke1(jti, options);
|
|
179
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
180
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['McpTokenAdminControllerApi.revoke1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
181
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
182
|
+
});
|
|
183
|
+
},
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* McpTokenAdminControllerApi - factory interface
|
|
188
|
+
*/
|
|
189
|
+
export const McpTokenAdminControllerApiFactory = function (configuration, basePath, axios) {
|
|
190
|
+
const localVarFp = McpTokenAdminControllerApiFp(configuration);
|
|
191
|
+
return {
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @summary List minted MCP agent tokens (never returns the credentials)
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
list1(options) {
|
|
199
|
+
return localVarFp.list1(options).then((request) => request(axios, basePath));
|
|
200
|
+
},
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @summary Mint an MCP agent token for a dedicated user (admin only)
|
|
204
|
+
* @param {MintMcpAgentTokenRequest} mintMcpAgentTokenRequest
|
|
205
|
+
* @param {*} [options] Override http request option.
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
*/
|
|
208
|
+
mint(mintMcpAgentTokenRequest, options) {
|
|
209
|
+
return localVarFp.mint(mintMcpAgentTokenRequest, options).then((request) => request(axios, basePath));
|
|
210
|
+
},
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @summary Revoke an MCP agent token
|
|
214
|
+
* @param {string} jti
|
|
215
|
+
* @param {*} [options] Override http request option.
|
|
216
|
+
* @throws {RequiredError}
|
|
217
|
+
*/
|
|
218
|
+
revoke1(jti, options) {
|
|
219
|
+
return localVarFp.revoke1(jti, options).then((request) => request(axios, basePath));
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* McpTokenAdminControllerApi - object-oriented interface
|
|
225
|
+
*/
|
|
226
|
+
export class McpTokenAdminControllerApi extends BaseAPI {
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @summary List minted MCP agent tokens (never returns the credentials)
|
|
230
|
+
* @param {*} [options] Override http request option.
|
|
231
|
+
* @throws {RequiredError}
|
|
232
|
+
*/
|
|
233
|
+
list1(options) {
|
|
234
|
+
return McpTokenAdminControllerApiFp(this.configuration).list1(options).then((request) => request(this.axios, this.basePath));
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @summary Mint an MCP agent token for a dedicated user (admin only)
|
|
239
|
+
* @param {MintMcpAgentTokenRequest} mintMcpAgentTokenRequest
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
mint(mintMcpAgentTokenRequest, options) {
|
|
244
|
+
return McpTokenAdminControllerApiFp(this.configuration).mint(mintMcpAgentTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @summary Revoke an MCP agent token
|
|
249
|
+
* @param {string} jti
|
|
250
|
+
* @param {*} [options] Override http request option.
|
|
251
|
+
* @throws {RequiredError}
|
|
252
|
+
*/
|
|
253
|
+
revoke1(jti, options) {
|
|
254
|
+
return McpTokenAdminControllerApiFp(this.configuration).revoke1(jti, options).then((request) => request(this.axios, this.basePath));
|
|
255
|
+
}
|
|
256
|
+
}
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export * from './api/esign-templates-api';
|
|
|
27
27
|
export * from './api/favorites-api';
|
|
28
28
|
export * from './api/file-controller-api';
|
|
29
29
|
export * from './api/folder-controller-api';
|
|
30
|
+
export * from './api/mcp-discovery-controller-api';
|
|
31
|
+
export * from './api/mcp-token-admin-controller-api';
|
|
30
32
|
export * from './api/notifications-api';
|
|
31
33
|
export * from './api/scan-agent-api';
|
|
32
34
|
export * from './api/scanner-proxy-api';
|
package/dist/esm/api.js
CHANGED
|
@@ -29,6 +29,8 @@ export * from './api/esign-templates-api';
|
|
|
29
29
|
export * from './api/favorites-api';
|
|
30
30
|
export * from './api/file-controller-api';
|
|
31
31
|
export * from './api/folder-controller-api';
|
|
32
|
+
export * from './api/mcp-discovery-controller-api';
|
|
33
|
+
export * from './api/mcp-token-admin-controller-api';
|
|
32
34
|
export * from './api/notifications-api';
|
|
33
35
|
export * from './api/scan-agent-api';
|
|
34
36
|
export * from './api/scanner-proxy-api';
|
|
@@ -50,6 +50,9 @@ export * from './ingestion-status-dto';
|
|
|
50
50
|
export * from './instantiate-template-request';
|
|
51
51
|
export * from './license-info';
|
|
52
52
|
export * from './list-ai-models-request';
|
|
53
|
+
export * from './mcp-agent-token-info';
|
|
54
|
+
export * from './mcp-agent-token-response';
|
|
55
|
+
export * from './mint-mcp-agent-token-request';
|
|
53
56
|
export * from './mint-upload-token-request';
|
|
54
57
|
export * from './move-audit';
|
|
55
58
|
export * from './move-request';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -50,6 +50,9 @@ export * from './ingestion-status-dto';
|
|
|
50
50
|
export * from './instantiate-template-request';
|
|
51
51
|
export * from './license-info';
|
|
52
52
|
export * from './list-ai-models-request';
|
|
53
|
+
export * from './mcp-agent-token-info';
|
|
54
|
+
export * from './mcp-agent-token-response';
|
|
55
|
+
export * from './mint-mcp-agent-token-request';
|
|
53
56
|
export * from './mint-upload-token-request';
|
|
54
57
|
export * from './move-audit';
|
|
55
58
|
export * from './move-request';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface McpAgentTokenInfo {
|
|
13
|
+
'jti'?: string;
|
|
14
|
+
'subjectEmail'?: string;
|
|
15
|
+
'mode'?: McpAgentTokenInfoModeEnum;
|
|
16
|
+
'label'?: string;
|
|
17
|
+
'expiresAt'?: string;
|
|
18
|
+
'revoked'?: boolean;
|
|
19
|
+
'revokedAt'?: string;
|
|
20
|
+
'createdBy'?: string;
|
|
21
|
+
'createdAt'?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const McpAgentTokenInfoModeEnum: {
|
|
24
|
+
readonly ReadOnly: "READ_ONLY";
|
|
25
|
+
readonly ReadWrite: "READ_WRITE";
|
|
26
|
+
};
|
|
27
|
+
export type McpAgentTokenInfoModeEnum = typeof McpAgentTokenInfoModeEnum[keyof typeof McpAgentTokenInfoModeEnum];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export const McpAgentTokenInfoModeEnum = {
|
|
15
|
+
ReadOnly: 'READ_ONLY',
|
|
16
|
+
ReadWrite: 'READ_WRITE',
|
|
17
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface McpAgentTokenResponse {
|
|
13
|
+
/**
|
|
14
|
+
* The bearer token to give the agent (store it now; it is not recoverable)
|
|
15
|
+
*/
|
|
16
|
+
'token'?: string;
|
|
17
|
+
'jti'?: string;
|
|
18
|
+
'subjectEmail'?: string;
|
|
19
|
+
'mode'?: McpAgentTokenResponseModeEnum;
|
|
20
|
+
'expiresAt'?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const McpAgentTokenResponseModeEnum: {
|
|
23
|
+
readonly ReadOnly: "READ_ONLY";
|
|
24
|
+
readonly ReadWrite: "READ_WRITE";
|
|
25
|
+
};
|
|
26
|
+
export type McpAgentTokenResponseModeEnum = typeof McpAgentTokenResponseModeEnum[keyof typeof McpAgentTokenResponseModeEnum];
|