@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
package/.openapi-generator/FILES
CHANGED
|
@@ -21,6 +21,8 @@ api/esign-templates-api.ts
|
|
|
21
21
|
api/favorites-api.ts
|
|
22
22
|
api/file-controller-api.ts
|
|
23
23
|
api/folder-controller-api.ts
|
|
24
|
+
api/mcp-discovery-controller-api.ts
|
|
25
|
+
api/mcp-token-admin-controller-api.ts
|
|
24
26
|
api/notifications-api.ts
|
|
25
27
|
api/scan-agent-api.ts
|
|
26
28
|
api/scanner-proxy-api.ts
|
|
@@ -103,6 +105,11 @@ docs/IngestionStatusDto.md
|
|
|
103
105
|
docs/InstantiateTemplateRequest.md
|
|
104
106
|
docs/LicenseInfo.md
|
|
105
107
|
docs/ListAiModelsRequest.md
|
|
108
|
+
docs/McpAgentTokenInfo.md
|
|
109
|
+
docs/McpAgentTokenResponse.md
|
|
110
|
+
docs/McpDiscoveryControllerApi.md
|
|
111
|
+
docs/McpTokenAdminControllerApi.md
|
|
112
|
+
docs/MintMcpAgentTokenRequest.md
|
|
106
113
|
docs/MintUploadTokenRequest.md
|
|
107
114
|
docs/MoveAudit.md
|
|
108
115
|
docs/MoveRequest.md
|
|
@@ -223,6 +230,9 @@ models/ingestion-status-dto.ts
|
|
|
223
230
|
models/instantiate-template-request.ts
|
|
224
231
|
models/license-info.ts
|
|
225
232
|
models/list-ai-models-request.ts
|
|
233
|
+
models/mcp-agent-token-info.ts
|
|
234
|
+
models/mcp-agent-token-response.ts
|
|
235
|
+
models/mint-mcp-agent-token-request.ts
|
|
226
236
|
models/mint-upload-token-request.ts
|
|
227
237
|
models/move-audit.ts
|
|
228
238
|
models/move-request.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
26b3e2ee6b35739441f76e47f0ccd4c6dc1379f8f6676d5c98f3d74b3ffa4b6b
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @openfilz-sdk/typescript-ee@1.8.
|
|
1
|
+
## @openfilz-sdk/typescript-ee@1.8.17
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @openfilz-sdk/typescript-ee@1.8.
|
|
39
|
+
npm install @openfilz-sdk/typescript-ee@1.8.17 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -152,6 +152,11 @@ Class | Method | HTTP request | Description
|
|
|
152
152
|
*FolderControllerApi* | [**listFolder**](docs/FolderControllerApi.md#listfolder) | **GET** /api/v1/folders/list | List files and subfolders contained in a given folder
|
|
153
153
|
*FolderControllerApi* | [**moveFolders**](docs/FolderControllerApi.md#movefolders) | **POST** /api/v1/folders/move | Move folders
|
|
154
154
|
*FolderControllerApi* | [**renameFolder**](docs/FolderControllerApi.md#renamefolder) | **PUT** /api/v1/folders/{folderId}/rename | Rename a folder
|
|
155
|
+
*McpDiscoveryControllerApi* | [**authorizationServerMetadata**](docs/McpDiscoveryControllerApi.md#authorizationservermetadata) | **GET** /.well-known/oauth-authorization-server |
|
|
156
|
+
*McpDiscoveryControllerApi* | [**protectedResourceMetadata**](docs/McpDiscoveryControllerApi.md#protectedresourcemetadata) | **GET** /.well-known/oauth-protected-resource |
|
|
157
|
+
*McpTokenAdminControllerApi* | [**list1**](docs/McpTokenAdminControllerApi.md#list1) | **GET** /api/v1/admin/mcp/tokens | List minted MCP agent tokens (never returns the credentials)
|
|
158
|
+
*McpTokenAdminControllerApi* | [**mint**](docs/McpTokenAdminControllerApi.md#mint) | **POST** /api/v1/admin/mcp/tokens | Mint an MCP agent token for a dedicated user (admin only)
|
|
159
|
+
*McpTokenAdminControllerApi* | [**revoke1**](docs/McpTokenAdminControllerApi.md#revoke1) | **DELETE** /api/v1/admin/mcp/tokens/{jti} | Revoke an MCP agent token
|
|
155
160
|
*NotificationsApi* | [**getNotifications**](docs/NotificationsApi.md#getnotifications) | **GET** /api/v1/notifications | Get all notifications
|
|
156
161
|
*NotificationsApi* | [**getUnreadCount**](docs/NotificationsApi.md#getunreadcount) | **GET** /api/v1/notifications/unread/count | Get unread notification count
|
|
157
162
|
*NotificationsApi* | [**markAllAsRead**](docs/NotificationsApi.md#markallasread) | **PUT** /api/v1/notifications/read-all | Mark all notifications as read
|
|
@@ -247,6 +252,9 @@ Class | Method | HTTP request | Description
|
|
|
247
252
|
- [InstantiateTemplateRequest](docs/InstantiateTemplateRequest.md)
|
|
248
253
|
- [LicenseInfo](docs/LicenseInfo.md)
|
|
249
254
|
- [ListAiModelsRequest](docs/ListAiModelsRequest.md)
|
|
255
|
+
- [McpAgentTokenInfo](docs/McpAgentTokenInfo.md)
|
|
256
|
+
- [McpAgentTokenResponse](docs/McpAgentTokenResponse.md)
|
|
257
|
+
- [MintMcpAgentTokenRequest](docs/MintMcpAgentTokenRequest.md)
|
|
250
258
|
- [MintUploadTokenRequest](docs/MintUploadTokenRequest.md)
|
|
251
259
|
- [MoveAudit](docs/MoveAudit.md)
|
|
252
260
|
- [MoveRequest](docs/MoveRequest.md)
|
|
@@ -0,0 +1,175 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
/**
|
|
25
|
+
* McpDiscoveryControllerApi - axios parameter creator
|
|
26
|
+
*/
|
|
27
|
+
export const McpDiscoveryControllerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
28
|
+
return {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param {*} [options] Override http request option.
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
*/
|
|
34
|
+
authorizationServerMetadata: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35
|
+
const localVarPath = `/.well-known/oauth-authorization-server`;
|
|
36
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38
|
+
let baseOptions;
|
|
39
|
+
if (configuration) {
|
|
40
|
+
baseOptions = configuration.baseOptions;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
44
|
+
const localVarHeaderParameter = {} as any;
|
|
45
|
+
const localVarQueryParameter = {} as any;
|
|
46
|
+
|
|
47
|
+
// authentication keycloak_auth required
|
|
48
|
+
// http bearer authentication required
|
|
49
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
53
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
55
|
+
|
|
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: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
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
|
+
|
|
75
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
76
|
+
const localVarHeaderParameter = {} as any;
|
|
77
|
+
const localVarQueryParameter = {} as any;
|
|
78
|
+
|
|
79
|
+
// authentication keycloak_auth required
|
|
80
|
+
// http bearer authentication required
|
|
81
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
82
|
+
|
|
83
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
84
|
+
|
|
85
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
86
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
87
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
url: toPathString(localVarUrlObj),
|
|
91
|
+
options: localVarRequestOptions,
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* McpDiscoveryControllerApi - functional programming interface
|
|
99
|
+
*/
|
|
100
|
+
export const McpDiscoveryControllerApiFp = function(configuration?: Configuration) {
|
|
101
|
+
const localVarAxiosParamCreator = McpDiscoveryControllerApiAxiosParamCreator(configuration)
|
|
102
|
+
return {
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
async authorizationServerMetadata(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
109
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authorizationServerMetadata(options);
|
|
110
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
111
|
+
const localVarOperationServerBasePath = operationServerMap['McpDiscoveryControllerApi.authorizationServerMetadata']?.[localVarOperationServerIndex]?.url;
|
|
112
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
async protectedResourceMetadata(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
|
|
120
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.protectedResourceMetadata(options);
|
|
121
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
122
|
+
const localVarOperationServerBasePath = operationServerMap['McpDiscoveryControllerApi.protectedResourceMetadata']?.[localVarOperationServerIndex]?.url;
|
|
123
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
124
|
+
},
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* McpDiscoveryControllerApi - factory interface
|
|
130
|
+
*/
|
|
131
|
+
export const McpDiscoveryControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
132
|
+
const localVarFp = McpDiscoveryControllerApiFp(configuration)
|
|
133
|
+
return {
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @param {*} [options] Override http request option.
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
*/
|
|
139
|
+
authorizationServerMetadata(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
140
|
+
return localVarFp.authorizationServerMetadata(options).then((request) => request(axios, basePath));
|
|
141
|
+
},
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
protectedResourceMetadata(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
|
148
|
+
return localVarFp.protectedResourceMetadata(options).then((request) => request(axios, basePath));
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* McpDiscoveryControllerApi - object-oriented interface
|
|
155
|
+
*/
|
|
156
|
+
export class McpDiscoveryControllerApi extends BaseAPI {
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
public authorizationServerMetadata(options?: RawAxiosRequestConfig) {
|
|
163
|
+
return McpDiscoveryControllerApiFp(this.configuration).authorizationServerMetadata(options).then((request) => request(this.axios, this.basePath));
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
public protectedResourceMetadata(options?: RawAxiosRequestConfig) {
|
|
172
|
+
return McpDiscoveryControllerApiFp(this.configuration).protectedResourceMetadata(options).then((request) => request(this.axios, this.basePath));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
@@ -0,0 +1,269 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { McpAgentTokenInfo } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { McpAgentTokenResponse } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { MintMcpAgentTokenRequest } from '../models';
|
|
30
|
+
/**
|
|
31
|
+
* McpTokenAdminControllerApi - axios parameter creator
|
|
32
|
+
*/
|
|
33
|
+
export const McpTokenAdminControllerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @summary List minted MCP agent tokens (never returns the credentials)
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
list1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
const localVarPath = `/api/v1/admin/mcp/tokens`;
|
|
43
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45
|
+
let baseOptions;
|
|
46
|
+
if (configuration) {
|
|
47
|
+
baseOptions = configuration.baseOptions;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
51
|
+
const localVarHeaderParameter = {} as any;
|
|
52
|
+
const localVarQueryParameter = {} as any;
|
|
53
|
+
|
|
54
|
+
// authentication keycloak_auth required
|
|
55
|
+
// http bearer authentication required
|
|
56
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57
|
+
|
|
58
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
59
|
+
|
|
60
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
61
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
62
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
63
|
+
|
|
64
|
+
return {
|
|
65
|
+
url: toPathString(localVarUrlObj),
|
|
66
|
+
options: localVarRequestOptions,
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @summary Mint an MCP agent token for a dedicated user (admin only)
|
|
72
|
+
* @param {MintMcpAgentTokenRequest} mintMcpAgentTokenRequest
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
mint: async (mintMcpAgentTokenRequest: MintMcpAgentTokenRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
77
|
+
// verify required parameter 'mintMcpAgentTokenRequest' is not null or undefined
|
|
78
|
+
assertParamExists('mint', 'mintMcpAgentTokenRequest', mintMcpAgentTokenRequest)
|
|
79
|
+
const localVarPath = `/api/v1/admin/mcp/tokens`;
|
|
80
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
81
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
82
|
+
let baseOptions;
|
|
83
|
+
if (configuration) {
|
|
84
|
+
baseOptions = configuration.baseOptions;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
88
|
+
const localVarHeaderParameter = {} as any;
|
|
89
|
+
const localVarQueryParameter = {} as any;
|
|
90
|
+
|
|
91
|
+
// authentication keycloak_auth required
|
|
92
|
+
// http bearer authentication required
|
|
93
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
94
|
+
|
|
95
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
96
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
97
|
+
|
|
98
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
99
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
100
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
101
|
+
localVarRequestOptions.data = serializeDataIfNeeded(mintMcpAgentTokenRequest, localVarRequestOptions, configuration)
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
url: toPathString(localVarUrlObj),
|
|
105
|
+
options: localVarRequestOptions,
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @summary Revoke an MCP agent token
|
|
111
|
+
* @param {string} jti
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
revoke1: async (jti: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
116
|
+
// verify required parameter 'jti' is not null or undefined
|
|
117
|
+
assertParamExists('revoke1', 'jti', jti)
|
|
118
|
+
const localVarPath = `/api/v1/admin/mcp/tokens/{jti}`
|
|
119
|
+
.replace('{jti}', encodeURIComponent(String(jti)));
|
|
120
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
121
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
122
|
+
let baseOptions;
|
|
123
|
+
if (configuration) {
|
|
124
|
+
baseOptions = configuration.baseOptions;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
128
|
+
const localVarHeaderParameter = {} as any;
|
|
129
|
+
const localVarQueryParameter = {} as any;
|
|
130
|
+
|
|
131
|
+
// authentication keycloak_auth required
|
|
132
|
+
// http bearer authentication required
|
|
133
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
139
|
+
|
|
140
|
+
return {
|
|
141
|
+
url: toPathString(localVarUrlObj),
|
|
142
|
+
options: localVarRequestOptions,
|
|
143
|
+
};
|
|
144
|
+
},
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* McpTokenAdminControllerApi - functional programming interface
|
|
150
|
+
*/
|
|
151
|
+
export const McpTokenAdminControllerApiFp = function(configuration?: Configuration) {
|
|
152
|
+
const localVarAxiosParamCreator = McpTokenAdminControllerApiAxiosParamCreator(configuration)
|
|
153
|
+
return {
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @summary List minted MCP agent tokens (never returns the credentials)
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
async list1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<McpAgentTokenInfo>>> {
|
|
161
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.list1(options);
|
|
162
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
163
|
+
const localVarOperationServerBasePath = operationServerMap['McpTokenAdminControllerApi.list1']?.[localVarOperationServerIndex]?.url;
|
|
164
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
165
|
+
},
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @summary Mint an MCP agent token for a dedicated user (admin only)
|
|
169
|
+
* @param {MintMcpAgentTokenRequest} mintMcpAgentTokenRequest
|
|
170
|
+
* @param {*} [options] Override http request option.
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
*/
|
|
173
|
+
async mint(mintMcpAgentTokenRequest: MintMcpAgentTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<McpAgentTokenResponse>> {
|
|
174
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mint(mintMcpAgentTokenRequest, options);
|
|
175
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
176
|
+
const localVarOperationServerBasePath = operationServerMap['McpTokenAdminControllerApi.mint']?.[localVarOperationServerIndex]?.url;
|
|
177
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
178
|
+
},
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @summary Revoke an MCP agent token
|
|
182
|
+
* @param {string} jti
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
async revoke1(jti: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
187
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revoke1(jti, options);
|
|
188
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
189
|
+
const localVarOperationServerBasePath = operationServerMap['McpTokenAdminControllerApi.revoke1']?.[localVarOperationServerIndex]?.url;
|
|
190
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
191
|
+
},
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* McpTokenAdminControllerApi - factory interface
|
|
197
|
+
*/
|
|
198
|
+
export const McpTokenAdminControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
199
|
+
const localVarFp = McpTokenAdminControllerApiFp(configuration)
|
|
200
|
+
return {
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @summary List minted MCP agent tokens (never returns the credentials)
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
*/
|
|
207
|
+
list1(options?: RawAxiosRequestConfig): AxiosPromise<Array<McpAgentTokenInfo>> {
|
|
208
|
+
return localVarFp.list1(options).then((request) => request(axios, basePath));
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @summary Mint an MCP agent token for a dedicated user (admin only)
|
|
213
|
+
* @param {MintMcpAgentTokenRequest} mintMcpAgentTokenRequest
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
mint(mintMcpAgentTokenRequest: MintMcpAgentTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<McpAgentTokenResponse> {
|
|
218
|
+
return localVarFp.mint(mintMcpAgentTokenRequest, options).then((request) => request(axios, basePath));
|
|
219
|
+
},
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @summary Revoke an MCP agent token
|
|
223
|
+
* @param {string} jti
|
|
224
|
+
* @param {*} [options] Override http request option.
|
|
225
|
+
* @throws {RequiredError}
|
|
226
|
+
*/
|
|
227
|
+
revoke1(jti: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
228
|
+
return localVarFp.revoke1(jti, options).then((request) => request(axios, basePath));
|
|
229
|
+
},
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* McpTokenAdminControllerApi - object-oriented interface
|
|
235
|
+
*/
|
|
236
|
+
export class McpTokenAdminControllerApi extends BaseAPI {
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @summary List minted MCP agent tokens (never returns the credentials)
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
public list1(options?: RawAxiosRequestConfig) {
|
|
244
|
+
return McpTokenAdminControllerApiFp(this.configuration).list1(options).then((request) => request(this.axios, this.basePath));
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @summary Mint an MCP agent token for a dedicated user (admin only)
|
|
250
|
+
* @param {MintMcpAgentTokenRequest} mintMcpAgentTokenRequest
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
public mint(mintMcpAgentTokenRequest: MintMcpAgentTokenRequest, options?: RawAxiosRequestConfig) {
|
|
255
|
+
return McpTokenAdminControllerApiFp(this.configuration).mint(mintMcpAgentTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @summary Revoke an MCP agent token
|
|
261
|
+
* @param {string} jti
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
public revoke1(jti: string, options?: RawAxiosRequestConfig) {
|
|
266
|
+
return McpTokenAdminControllerApiFp(this.configuration).revoke1(jti, options).then((request) => request(this.axios, this.basePath));
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
package/api.ts
CHANGED
|
@@ -32,6 +32,8 @@ export * from './api/esign-templates-api';
|
|
|
32
32
|
export * from './api/favorites-api';
|
|
33
33
|
export * from './api/file-controller-api';
|
|
34
34
|
export * from './api/folder-controller-api';
|
|
35
|
+
export * from './api/mcp-discovery-controller-api';
|
|
36
|
+
export * from './api/mcp-token-admin-controller-api';
|
|
35
37
|
export * from './api/notifications-api';
|
|
36
38
|
export * from './api/scan-agent-api';
|
|
37
39
|
export * from './api/scanner-proxy-api';
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
/**
|
|
16
|
+
* McpDiscoveryControllerApi - axios parameter creator
|
|
17
|
+
*/
|
|
18
|
+
export declare const McpDiscoveryControllerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @param {*} [options] Override http request option.
|
|
22
|
+
* @throws {RequiredError}
|
|
23
|
+
*/
|
|
24
|
+
authorizationServerMetadata: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
protectedResourceMetadata: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* McpDiscoveryControllerApi - functional programming interface
|
|
34
|
+
*/
|
|
35
|
+
export declare const McpDiscoveryControllerApiFp: (configuration?: Configuration) => {
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
authorizationServerMetadata(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
protectedResourceMetadata(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>>;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* McpDiscoveryControllerApi - factory interface
|
|
53
|
+
*/
|
|
54
|
+
export declare const McpDiscoveryControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @param {*} [options] Override http request option.
|
|
58
|
+
* @throws {RequiredError}
|
|
59
|
+
*/
|
|
60
|
+
authorizationServerMetadata(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @param {*} [options] Override http request option.
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
*/
|
|
66
|
+
protectedResourceMetadata(options?: RawAxiosRequestConfig): AxiosPromise<{
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
}>;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* McpDiscoveryControllerApi - object-oriented interface
|
|
72
|
+
*/
|
|
73
|
+
export declare class McpDiscoveryControllerApi extends BaseAPI {
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
authorizationServerMetadata(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
protectedResourceMetadata(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
}, any, {}, any>>;
|
|
88
|
+
}
|