@openfilz-sdk/typescript-ee 1.8.14 → 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.
- 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/esm/models/settings.d.ts +1 -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/dist/models/settings.d.ts +1 -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/docs/Settings.md +2 -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/models/settings.ts +1 -0
- package/package.json +1 -1
|
@@ -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 McpAgentTokenResponseModeEnum = {
|
|
15
|
+
ReadOnly: 'READ_ONLY',
|
|
16
|
+
ReadWrite: 'READ_WRITE',
|
|
17
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
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 MintMcpAgentTokenRequest {
|
|
13
|
+
/**
|
|
14
|
+
* Email of the existing OpenFilz user the agent acts as
|
|
15
|
+
*/
|
|
16
|
+
'subjectEmail': string;
|
|
17
|
+
/**
|
|
18
|
+
* Capability cap: READ_ONLY or READ_WRITE
|
|
19
|
+
*/
|
|
20
|
+
'mode'?: MintMcpAgentTokenRequestModeEnum;
|
|
21
|
+
/**
|
|
22
|
+
* Human-readable label for the agent, shown in the admin list
|
|
23
|
+
*/
|
|
24
|
+
'label'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Token lifetime in seconds; capped by openfilz.mcp.tokens.max-ttl-seconds
|
|
27
|
+
*/
|
|
28
|
+
'ttlSeconds'?: number;
|
|
29
|
+
}
|
|
30
|
+
export declare const MintMcpAgentTokenRequestModeEnum: {
|
|
31
|
+
readonly ReadOnly: "READ_ONLY";
|
|
32
|
+
readonly ReadWrite: "READ_WRITE";
|
|
33
|
+
};
|
|
34
|
+
export type MintMcpAgentTokenRequestModeEnum = typeof MintMcpAgentTokenRequestModeEnum[keyof typeof MintMcpAgentTokenRequestModeEnum];
|
|
@@ -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 MintMcpAgentTokenRequestModeEnum = {
|
|
15
|
+
ReadOnly: 'READ_ONLY',
|
|
16
|
+
ReadWrite: 'READ_WRITE',
|
|
17
|
+
};
|
|
@@ -19,6 +19,7 @@ export interface Settings {
|
|
|
19
19
|
'aiActive'?: boolean;
|
|
20
20
|
'aiUserSettingsEnabled'?: boolean;
|
|
21
21
|
'signatureActive'?: boolean;
|
|
22
|
+
'signatureRequesterRoleRequired'?: boolean;
|
|
22
23
|
'signatureAuthMethods'?: Array<string>;
|
|
23
24
|
'signatureRemindersActive'?: boolean;
|
|
24
25
|
'signatureCloudActive'?: boolean;
|
package/dist/models/index.d.ts
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';
|
package/dist/models/index.js
CHANGED
|
@@ -66,6 +66,9 @@ __exportStar(require("./ingestion-status-dto"), exports);
|
|
|
66
66
|
__exportStar(require("./instantiate-template-request"), exports);
|
|
67
67
|
__exportStar(require("./license-info"), exports);
|
|
68
68
|
__exportStar(require("./list-ai-models-request"), exports);
|
|
69
|
+
__exportStar(require("./mcp-agent-token-info"), exports);
|
|
70
|
+
__exportStar(require("./mcp-agent-token-response"), exports);
|
|
71
|
+
__exportStar(require("./mint-mcp-agent-token-request"), exports);
|
|
69
72
|
__exportStar(require("./mint-upload-token-request"), exports);
|
|
70
73
|
__exportStar(require("./move-audit"), exports);
|
|
71
74
|
__exportStar(require("./move-request"), exports);
|
|
@@ -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,20 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.McpAgentTokenInfoModeEnum = void 0;
|
|
17
|
+
exports.McpAgentTokenInfoModeEnum = {
|
|
18
|
+
ReadOnly: 'READ_ONLY',
|
|
19
|
+
ReadWrite: 'READ_WRITE',
|
|
20
|
+
};
|
|
@@ -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];
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.McpAgentTokenResponseModeEnum = void 0;
|
|
17
|
+
exports.McpAgentTokenResponseModeEnum = {
|
|
18
|
+
ReadOnly: 'READ_ONLY',
|
|
19
|
+
ReadWrite: 'READ_WRITE',
|
|
20
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
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 MintMcpAgentTokenRequest {
|
|
13
|
+
/**
|
|
14
|
+
* Email of the existing OpenFilz user the agent acts as
|
|
15
|
+
*/
|
|
16
|
+
'subjectEmail': string;
|
|
17
|
+
/**
|
|
18
|
+
* Capability cap: READ_ONLY or READ_WRITE
|
|
19
|
+
*/
|
|
20
|
+
'mode'?: MintMcpAgentTokenRequestModeEnum;
|
|
21
|
+
/**
|
|
22
|
+
* Human-readable label for the agent, shown in the admin list
|
|
23
|
+
*/
|
|
24
|
+
'label'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Token lifetime in seconds; capped by openfilz.mcp.tokens.max-ttl-seconds
|
|
27
|
+
*/
|
|
28
|
+
'ttlSeconds'?: number;
|
|
29
|
+
}
|
|
30
|
+
export declare const MintMcpAgentTokenRequestModeEnum: {
|
|
31
|
+
readonly ReadOnly: "READ_ONLY";
|
|
32
|
+
readonly ReadWrite: "READ_WRITE";
|
|
33
|
+
};
|
|
34
|
+
export type MintMcpAgentTokenRequestModeEnum = typeof MintMcpAgentTokenRequestModeEnum[keyof typeof MintMcpAgentTokenRequestModeEnum];
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MintMcpAgentTokenRequestModeEnum = void 0;
|
|
17
|
+
exports.MintMcpAgentTokenRequestModeEnum = {
|
|
18
|
+
ReadOnly: 'READ_ONLY',
|
|
19
|
+
ReadWrite: 'READ_WRITE',
|
|
20
|
+
};
|
|
@@ -19,6 +19,7 @@ export interface Settings {
|
|
|
19
19
|
'aiActive'?: boolean;
|
|
20
20
|
'aiUserSettingsEnabled'?: boolean;
|
|
21
21
|
'signatureActive'?: boolean;
|
|
22
|
+
'signatureRequesterRoleRequired'?: boolean;
|
|
22
23
|
'signatureAuthMethods'?: Array<string>;
|
|
23
24
|
'signatureRemindersActive'?: boolean;
|
|
24
25
|
'signatureCloudActive'?: boolean;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# McpAgentTokenInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**jti** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**subjectEmail** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**mode** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**label** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**expiresAt** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**revoked** | **boolean** | | [optional] [default to undefined]
|
|
14
|
+
**revokedAt** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**createdBy** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { McpAgentTokenInfo } from '@openfilz-sdk/typescript-ee';
|
|
22
|
+
|
|
23
|
+
const instance: McpAgentTokenInfo = {
|
|
24
|
+
jti,
|
|
25
|
+
subjectEmail,
|
|
26
|
+
mode,
|
|
27
|
+
label,
|
|
28
|
+
expiresAt,
|
|
29
|
+
revoked,
|
|
30
|
+
revokedAt,
|
|
31
|
+
createdBy,
|
|
32
|
+
createdAt,
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# McpAgentTokenResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**token** | **string** | The bearer token to give the agent (store it now; it is not recoverable) | [optional] [default to undefined]
|
|
9
|
+
**jti** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**subjectEmail** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**mode** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**expiresAt** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { McpAgentTokenResponse } from '@openfilz-sdk/typescript-ee';
|
|
18
|
+
|
|
19
|
+
const instance: McpAgentTokenResponse = {
|
|
20
|
+
token,
|
|
21
|
+
jti,
|
|
22
|
+
subjectEmail,
|
|
23
|
+
mode,
|
|
24
|
+
expiresAt,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# McpDiscoveryControllerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8081*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**authorizationServerMetadata**](#authorizationservermetadata) | **GET** /.well-known/oauth-authorization-server | |
|
|
8
|
+
|[**protectedResourceMetadata**](#protectedresourcemetadata) | **GET** /.well-known/oauth-protected-resource | |
|
|
9
|
+
|
|
10
|
+
# **authorizationServerMetadata**
|
|
11
|
+
> authorizationServerMetadata()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
McpDiscoveryControllerApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new McpDiscoveryControllerApi(configuration);
|
|
24
|
+
|
|
25
|
+
const { status, data } = await apiInstance.authorizationServerMetadata();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Parameters
|
|
29
|
+
This endpoint does not have any parameters.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Return type
|
|
33
|
+
|
|
34
|
+
void (empty response body)
|
|
35
|
+
|
|
36
|
+
### Authorization
|
|
37
|
+
|
|
38
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
39
|
+
|
|
40
|
+
### HTTP request headers
|
|
41
|
+
|
|
42
|
+
- **Content-Type**: Not defined
|
|
43
|
+
- **Accept**: Not defined
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### HTTP response details
|
|
47
|
+
| Status code | Description | Response headers |
|
|
48
|
+
|-------------|-------------|------------------|
|
|
49
|
+
|**200** | OK | - |
|
|
50
|
+
|
|
51
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
52
|
+
|
|
53
|
+
# **protectedResourceMetadata**
|
|
54
|
+
> { [key: string]: any; } protectedResourceMetadata()
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Example
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
import {
|
|
61
|
+
McpDiscoveryControllerApi,
|
|
62
|
+
Configuration
|
|
63
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
64
|
+
|
|
65
|
+
const configuration = new Configuration();
|
|
66
|
+
const apiInstance = new McpDiscoveryControllerApi(configuration);
|
|
67
|
+
|
|
68
|
+
const { status, data } = await apiInstance.protectedResourceMetadata();
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Parameters
|
|
72
|
+
This endpoint does not have any parameters.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
**{ [key: string]: any; }**
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: Not defined
|
|
86
|
+
- **Accept**: */*
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### HTTP response details
|
|
90
|
+
| Status code | Description | Response headers |
|
|
91
|
+
|-------------|-------------|------------------|
|
|
92
|
+
|**200** | OK | - |
|
|
93
|
+
|
|
94
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
95
|
+
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# McpTokenAdminControllerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8081*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**list1**](#list1) | **GET** /api/v1/admin/mcp/tokens | List minted MCP agent tokens (never returns the credentials)|
|
|
8
|
+
|[**mint**](#mint) | **POST** /api/v1/admin/mcp/tokens | Mint an MCP agent token for a dedicated user (admin only)|
|
|
9
|
+
|[**revoke1**](#revoke1) | **DELETE** /api/v1/admin/mcp/tokens/{jti} | Revoke an MCP agent token|
|
|
10
|
+
|
|
11
|
+
# **list1**
|
|
12
|
+
> Array<McpAgentTokenInfo> list1()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
McpTokenAdminControllerApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new McpTokenAdminControllerApi(configuration);
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.list1();
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Parameters
|
|
30
|
+
This endpoint does not have any parameters.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Return type
|
|
34
|
+
|
|
35
|
+
**Array<McpAgentTokenInfo>**
|
|
36
|
+
|
|
37
|
+
### Authorization
|
|
38
|
+
|
|
39
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
40
|
+
|
|
41
|
+
### HTTP request headers
|
|
42
|
+
|
|
43
|
+
- **Content-Type**: Not defined
|
|
44
|
+
- **Accept**: */*
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### HTTP response details
|
|
48
|
+
| Status code | Description | Response headers |
|
|
49
|
+
|-------------|-------------|------------------|
|
|
50
|
+
|**200** | OK | - |
|
|
51
|
+
|
|
52
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
53
|
+
|
|
54
|
+
# **mint**
|
|
55
|
+
> McpAgentTokenResponse mint(mintMcpAgentTokenRequest)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Example
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import {
|
|
62
|
+
McpTokenAdminControllerApi,
|
|
63
|
+
Configuration,
|
|
64
|
+
MintMcpAgentTokenRequest
|
|
65
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
66
|
+
|
|
67
|
+
const configuration = new Configuration();
|
|
68
|
+
const apiInstance = new McpTokenAdminControllerApi(configuration);
|
|
69
|
+
|
|
70
|
+
let mintMcpAgentTokenRequest: MintMcpAgentTokenRequest; //
|
|
71
|
+
|
|
72
|
+
const { status, data } = await apiInstance.mint(
|
|
73
|
+
mintMcpAgentTokenRequest
|
|
74
|
+
);
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Parameters
|
|
78
|
+
|
|
79
|
+
|Name | Type | Description | Notes|
|
|
80
|
+
|------------- | ------------- | ------------- | -------------|
|
|
81
|
+
| **mintMcpAgentTokenRequest** | **MintMcpAgentTokenRequest**| | |
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Return type
|
|
85
|
+
|
|
86
|
+
**McpAgentTokenResponse**
|
|
87
|
+
|
|
88
|
+
### Authorization
|
|
89
|
+
|
|
90
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
91
|
+
|
|
92
|
+
### HTTP request headers
|
|
93
|
+
|
|
94
|
+
- **Content-Type**: application/json
|
|
95
|
+
- **Accept**: */*
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### HTTP response details
|
|
99
|
+
| Status code | Description | Response headers |
|
|
100
|
+
|-------------|-------------|------------------|
|
|
101
|
+
|**201** | Created | - |
|
|
102
|
+
|
|
103
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
104
|
+
|
|
105
|
+
# **revoke1**
|
|
106
|
+
> revoke1()
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### Example
|
|
110
|
+
|
|
111
|
+
```typescript
|
|
112
|
+
import {
|
|
113
|
+
McpTokenAdminControllerApi,
|
|
114
|
+
Configuration
|
|
115
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
116
|
+
|
|
117
|
+
const configuration = new Configuration();
|
|
118
|
+
const apiInstance = new McpTokenAdminControllerApi(configuration);
|
|
119
|
+
|
|
120
|
+
let jti: string; // (default to undefined)
|
|
121
|
+
|
|
122
|
+
const { status, data } = await apiInstance.revoke1(
|
|
123
|
+
jti
|
|
124
|
+
);
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Parameters
|
|
128
|
+
|
|
129
|
+
|Name | Type | Description | Notes|
|
|
130
|
+
|------------- | ------------- | ------------- | -------------|
|
|
131
|
+
| **jti** | [**string**] | | defaults to undefined|
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### Return type
|
|
135
|
+
|
|
136
|
+
void (empty response body)
|
|
137
|
+
|
|
138
|
+
### Authorization
|
|
139
|
+
|
|
140
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
141
|
+
|
|
142
|
+
### HTTP request headers
|
|
143
|
+
|
|
144
|
+
- **Content-Type**: Not defined
|
|
145
|
+
- **Accept**: Not defined
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
### HTTP response details
|
|
149
|
+
| Status code | Description | Response headers |
|
|
150
|
+
|-------------|-------------|------------------|
|
|
151
|
+
|**204** | No Content | - |
|
|
152
|
+
|
|
153
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
154
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# MintMcpAgentTokenRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**subjectEmail** | **string** | Email of the existing OpenFilz user the agent acts as | [default to undefined]
|
|
9
|
+
**mode** | **string** | Capability cap: READ_ONLY or READ_WRITE | [optional] [default to ModeEnum_ReadOnly]
|
|
10
|
+
**label** | **string** | Human-readable label for the agent, shown in the admin list | [optional] [default to undefined]
|
|
11
|
+
**ttlSeconds** | **number** | Token lifetime in seconds; capped by openfilz.mcp.tokens.max-ttl-seconds | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { MintMcpAgentTokenRequest } from '@openfilz-sdk/typescript-ee';
|
|
17
|
+
|
|
18
|
+
const instance: MintMcpAgentTokenRequest = {
|
|
19
|
+
subjectEmail,
|
|
20
|
+
mode,
|
|
21
|
+
label,
|
|
22
|
+
ttlSeconds,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/Settings.md
CHANGED
|
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**aiActive** | **boolean** | | [optional] [default to undefined]
|
|
15
15
|
**aiUserSettingsEnabled** | **boolean** | | [optional] [default to undefined]
|
|
16
16
|
**signatureActive** | **boolean** | | [optional] [default to undefined]
|
|
17
|
+
**signatureRequesterRoleRequired** | **boolean** | | [optional] [default to undefined]
|
|
17
18
|
**signatureAuthMethods** | **Array<string>** | | [optional] [default to undefined]
|
|
18
19
|
**signatureRemindersActive** | **boolean** | | [optional] [default to undefined]
|
|
19
20
|
**signatureCloudActive** | **boolean** | | [optional] [default to undefined]
|
|
@@ -35,6 +36,7 @@ const instance: Settings = {
|
|
|
35
36
|
aiActive,
|
|
36
37
|
aiUserSettingsEnabled,
|
|
37
38
|
signatureActive,
|
|
39
|
+
signatureRequesterRoleRequired,
|
|
38
40
|
signatureAuthMethods,
|
|
39
41
|
signatureRemindersActive,
|
|
40
42
|
signatureCloudActive,
|
package/models/index.ts
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,36 @@
|
|
|
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
|
+
|
|
17
|
+
export interface McpAgentTokenInfo {
|
|
18
|
+
'jti'?: string;
|
|
19
|
+
'subjectEmail'?: string;
|
|
20
|
+
'mode'?: McpAgentTokenInfoModeEnum;
|
|
21
|
+
'label'?: string;
|
|
22
|
+
'expiresAt'?: string;
|
|
23
|
+
'revoked'?: boolean;
|
|
24
|
+
'revokedAt'?: string;
|
|
25
|
+
'createdBy'?: string;
|
|
26
|
+
'createdAt'?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const McpAgentTokenInfoModeEnum = {
|
|
30
|
+
ReadOnly: 'READ_ONLY',
|
|
31
|
+
ReadWrite: 'READ_WRITE',
|
|
32
|
+
} as const;
|
|
33
|
+
|
|
34
|
+
export type McpAgentTokenInfoModeEnum = typeof McpAgentTokenInfoModeEnum[keyof typeof McpAgentTokenInfoModeEnum];
|
|
35
|
+
|
|
36
|
+
|