@openfilz-sdk/typescript-ee 1.8.15 → 1.8.16

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