@lumoauth/api-client 1.1.0 → 1.2.0
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 +6 -0
- package/README.md +6 -2
- package/api/aauth-api.ts +5 -5
- package/api/admin-mcp-api.ts +5 -5
- package/api/agents-api.ts +5 -5
- package/api/mcp-api.ts +130 -0
- package/api/well-known-api.ts +10 -10
- package/dist/api/aauth-api.d.ts +5 -5
- package/dist/api/aauth-api.js +4 -4
- package/dist/api/admin-mcp-api.d.ts +5 -5
- package/dist/api/admin-mcp-api.js +4 -4
- package/dist/api/agents-api.d.ts +5 -5
- package/dist/api/agents-api.js +4 -4
- package/dist/api/mcp-api.d.ts +73 -0
- package/dist/api/mcp-api.js +82 -0
- package/dist/api/well-known-api.d.ts +10 -10
- package/dist/api/well-known-api.js +8 -8
- package/dist/esm/api/aauth-api.d.ts +5 -5
- package/dist/esm/api/aauth-api.js +4 -4
- package/dist/esm/api/admin-mcp-api.d.ts +5 -5
- package/dist/esm/api/admin-mcp-api.js +4 -4
- package/dist/esm/api/agents-api.d.ts +5 -5
- package/dist/esm/api/agents-api.js +4 -4
- package/dist/esm/api/mcp-api.d.ts +73 -0
- package/dist/esm/api/mcp-api.js +83 -1
- package/dist/esm/api/well-known-api.d.ts +10 -10
- package/dist/esm/api/well-known-api.js +8 -8
- package/dist/esm/models/admin-agents-generate-token-request.d.ts +7 -1
- package/dist/esm/models/admin-agents-generate-token-response-data.d.ts +12 -0
- package/dist/esm/models/attest-response.d.ts +2 -1
- package/dist/esm/models/attest-response.js +1 -0
- package/dist/esm/models/authorize-mcp-request.d.ts +1 -1
- package/dist/esm/models/get-protected-resource-metadata-root-response1-resources-item.d.ts +1 -1
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/models/mcp-server-tool-authorize-request-subject.d.ts +38 -0
- package/dist/esm/models/mcp-server-tool-authorize-request-subject.js +22 -0
- package/dist/esm/models/mcp-server-tool-authorize-request.d.ts +31 -0
- package/dist/esm/models/mcp-server-tool-authorize-request.js +14 -0
- package/dist/esm/models/mcp-server-tool-authorize-response.d.ts +36 -0
- package/dist/esm/models/mcp-server-tool-authorize-response.js +14 -0
- package/dist/esm/models/mcp-server.d.ts +18 -0
- package/dist/esm/models/open-id-configuration.d.ts +1 -1
- package/dist/esm/models/protected-resource-metadata.d.ts +1 -1
- package/dist/esm/models/single-server-metadata.d.ts +1 -1
- package/dist/models/admin-agents-generate-token-request.d.ts +7 -1
- package/dist/models/admin-agents-generate-token-response-data.d.ts +12 -0
- package/dist/models/attest-response.d.ts +2 -1
- package/dist/models/attest-response.js +1 -0
- package/dist/models/authorize-mcp-request.d.ts +1 -1
- package/dist/models/get-protected-resource-metadata-root-response1-resources-item.d.ts +1 -1
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/mcp-server-tool-authorize-request-subject.d.ts +38 -0
- package/dist/models/mcp-server-tool-authorize-request-subject.js +25 -0
- package/dist/models/mcp-server-tool-authorize-request.d.ts +31 -0
- package/dist/models/mcp-server-tool-authorize-request.js +15 -0
- package/dist/models/mcp-server-tool-authorize-response.d.ts +36 -0
- package/dist/models/mcp-server-tool-authorize-response.js +15 -0
- package/dist/models/mcp-server.d.ts +18 -0
- package/dist/models/open-id-configuration.d.ts +1 -1
- package/dist/models/protected-resource-metadata.d.ts +1 -1
- package/dist/models/single-server-metadata.d.ts +1 -1
- package/docs/AAuthApi.md +1 -1
- package/docs/AdminAgentsApi.md +1 -1
- package/docs/AdminAgentsGenerateTokenRequest.md +3 -1
- package/docs/AdminAgentsGenerateTokenResponseData.md +4 -0
- package/docs/AdminMcpApi.md +1 -1
- package/docs/AgentsApi.md +4 -3
- package/docs/AuthorizeMcpRequest.md +1 -1
- package/docs/GetProtectedResourceMetadataRoot200Response.md +1 -1
- package/docs/GetProtectedResourceMetadataRootResponse1ResourcesItem.md +1 -1
- package/docs/McpApi.md +64 -0
- package/docs/McpServer.md +6 -0
- package/docs/McpServerToolAuthorizeRequest.md +22 -0
- package/docs/McpServerToolAuthorizeRequestSubject.md +22 -0
- package/docs/McpServerToolAuthorizeResponse.md +24 -0
- package/docs/OpenIdConfiguration.md +1 -1
- package/docs/ProtectedResourceMetadata.md +1 -1
- package/docs/SingleServerMetadata.md +1 -1
- package/docs/WellKnownApi.md +2 -2
- package/models/admin-agents-generate-token-request.ts +7 -1
- package/models/admin-agents-generate-token-response-data.ts +12 -0
- package/models/attest-response.ts +2 -1
- package/models/authorize-mcp-request.ts +1 -1
- package/models/get-protected-resource-metadata-root-response1-resources-item.ts +1 -1
- package/models/index.ts +3 -0
- package/models/mcp-server-tool-authorize-request-subject.ts +46 -0
- package/models/mcp-server-tool-authorize-request.ts +39 -0
- package/models/mcp-server-tool-authorize-response.ts +42 -0
- package/models/mcp-server.ts +18 -0
- package/models/open-id-configuration.ts +1 -1
- package/models/protected-resource-metadata.ts +1 -1
- package/models/single-server-metadata.ts +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**resource** | **string** | The MCP server\'s resource identifier. | [default to undefined]
|
|
9
|
-
**authorization_servers** | **Array<string>** |
|
|
9
|
+
**authorization_servers** | **Array<string>** | The organization\'s issuer identifier (RFC 8414), the same value as `issuer` in its discovery documents. Clients read the authorization server metadata from {issuer}/.well-known/openid-configuration. | [default to undefined]
|
|
10
10
|
**bearer_methods_supported** | **Array<string>** | | [default to undefined]
|
|
11
11
|
**scopes_supported** | **Array<string>** | | [optional] [default to undefined]
|
|
12
12
|
**dpop_bound_access_tokens_required** | **boolean** | Present (true) only when the server accepts DPoP-bound tokens exclusively. | [optional] [default to undefined]
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**resource** | **string** | | [default to undefined]
|
|
9
|
-
**authorization_servers** | **Array<string>** |
|
|
9
|
+
**authorization_servers** | **Array<string>** | The organization\'s issuer identifier (RFC 8414). | [default to undefined]
|
|
10
10
|
**bearer_methods_supported** | **Array<string>** | | [default to undefined]
|
|
11
11
|
**scopes_supported** | **Array<string>** | | [optional] [default to undefined]
|
|
12
12
|
**dpop_bound_access_tokens_required** | **boolean** | | [optional] [default to undefined]
|
package/docs/WellKnownApi.md
CHANGED
|
@@ -12,7 +12,7 @@ All URIs are relative to *https://app.lumoauth.dev*
|
|
|
12
12
|
# **getAuthorizationServerMetadata**
|
|
13
13
|
> AuthorizationServerMetadata getAuthorizationServerMetadata()
|
|
14
14
|
|
|
15
|
-
Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active.
|
|
15
|
+
Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active. RFC 8414 clients read it from /.well-known/oauth-authorization-server/orgs/{orgId}/api/v1 (the issuer\'s path-inserted location) and, on a verified custom domain, from /.well-known/oauth-authorization-server.
|
|
16
16
|
|
|
17
17
|
### Example
|
|
18
18
|
|
|
@@ -116,7 +116,7 @@ No authorization required
|
|
|
116
116
|
# **getOpenidConfiguration**
|
|
117
117
|
> OpenIdConfiguration getOpenidConfiguration()
|
|
118
118
|
|
|
119
|
-
Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active.
|
|
119
|
+
Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active. The same document is served at the RFC 8414 location /.well-known/openid-configuration/orgs/{orgId}/api/v1 and, on a verified custom domain (whose issuer is the bare domain), at /.well-known/openid-configuration.
|
|
120
120
|
|
|
121
121
|
### Example
|
|
122
122
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface AdminAgentsGenerateTokenRequest {
|
|
23
23
|
/**
|
|
24
|
-
* Token lifetime in seconds. Default 3600, at most
|
|
24
|
+
* Token lifetime in seconds. Default 3600, minimum 60, at most 86400 (24 hours). Above 3600 only together with `resource`: a long-lived token is always bound to one MCP server, never to the organization API.
|
|
25
25
|
* @type {number}
|
|
26
26
|
* @memberof AdminAgentsGenerateTokenRequest
|
|
27
27
|
*/
|
|
@@ -32,5 +32,11 @@ export interface AdminAgentsGenerateTokenRequest {
|
|
|
32
32
|
* @memberof AdminAgentsGenerateTokenRequest
|
|
33
33
|
*/
|
|
34
34
|
'scopes'?: Array<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Optional resource URI of an active MCP server of this organization. The token is then audience-bound to that server (and no longer works on the LumoAuth API) and lives at most the server\'s token lifetime. Servers that require DPoP are refused with 400.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof AdminAgentsGenerateTokenRequest
|
|
39
|
+
*/
|
|
40
|
+
'resource'?: string;
|
|
35
41
|
}
|
|
36
42
|
|
|
@@ -38,11 +38,23 @@ export interface AdminAgentsGenerateTokenResponseData {
|
|
|
38
38
|
* @memberof AdminAgentsGenerateTokenResponseData
|
|
39
39
|
*/
|
|
40
40
|
'expiresIn'?: number;
|
|
41
|
+
/**
|
|
42
|
+
* The token id. Written to the agent.token_issued audit event; the kill switch and a capability reduction deny-list it.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof AdminAgentsGenerateTokenResponseData
|
|
45
|
+
*/
|
|
46
|
+
'jti'?: string;
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
49
|
* @type {Array<string>}
|
|
44
50
|
* @memberof AdminAgentsGenerateTokenResponseData
|
|
45
51
|
*/
|
|
46
52
|
'scopes'?: Array<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The MCP server the token is bound to, when `resource` was sent.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof AdminAgentsGenerateTokenResponseData
|
|
57
|
+
*/
|
|
58
|
+
'resource'?: string | null;
|
|
47
59
|
}
|
|
48
60
|
|
|
@@ -33,7 +33,7 @@ export interface GetProtectedResourceMetadataRootResponse1ResourcesItem {
|
|
|
33
33
|
*/
|
|
34
34
|
'resource_metadata_url': string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* The organization\'s issuer identifier (RFC 8414).
|
|
37
37
|
* @type {Array<string>}
|
|
38
38
|
* @memberof GetProtectedResourceMetadataRootResponse1ResourcesItem
|
|
39
39
|
*/
|
package/models/index.ts
CHANGED
|
@@ -288,6 +288,9 @@ export * from './mark-user-verified-response';
|
|
|
288
288
|
export * from './mcp-server';
|
|
289
289
|
export * from './mcp-server-posture';
|
|
290
290
|
export * from './mcp-server-posture-checks-inner';
|
|
291
|
+
export * from './mcp-server-tool-authorize-request';
|
|
292
|
+
export * from './mcp-server-tool-authorize-request-subject';
|
|
293
|
+
export * from './mcp-server-tool-authorize-response';
|
|
291
294
|
export * from './message-response';
|
|
292
295
|
export * from './mfa-authenticator';
|
|
293
296
|
export * from './mfa-authenticator-last-used-context';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LumoAuth API
|
|
5
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: sdk@lumoauth.dev
|
|
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
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface McpServerToolAuthorizeRequestSubject
|
|
21
|
+
*/
|
|
22
|
+
export interface McpServerToolAuthorizeRequestSubject {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof McpServerToolAuthorizeRequestSubject
|
|
27
|
+
*/
|
|
28
|
+
'type': McpServerToolAuthorizeRequestSubjectType;
|
|
29
|
+
/**
|
|
30
|
+
* User UUID, or agent id (agt_…). For an MCP token, the user id is `sub`; for an agent token `sub` is `agent_<id>`.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof McpServerToolAuthorizeRequestSubject
|
|
33
|
+
*/
|
|
34
|
+
'id': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
* @enum {string}
|
|
40
|
+
*/
|
|
41
|
+
export enum McpServerToolAuthorizeRequestSubjectType {
|
|
42
|
+
USER = 'user',
|
|
43
|
+
AGENT = 'agent'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LumoAuth API
|
|
5
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: sdk@lumoauth.dev
|
|
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
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { McpServerToolAuthorizeRequestSubject } from './mcp-server-tool-authorize-request-subject';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface McpServerToolAuthorizeRequest
|
|
24
|
+
*/
|
|
25
|
+
export interface McpServerToolAuthorizeRequest {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {McpServerToolAuthorizeRequestSubject}
|
|
29
|
+
* @memberof McpServerToolAuthorizeRequest
|
|
30
|
+
*/
|
|
31
|
+
'subject': McpServerToolAuthorizeRequestSubject;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof McpServerToolAuthorizeRequest
|
|
36
|
+
*/
|
|
37
|
+
'tool': string;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LumoAuth API
|
|
5
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: sdk@lumoauth.dev
|
|
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
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface McpServerToolAuthorizeResponse
|
|
21
|
+
*/
|
|
22
|
+
export interface McpServerToolAuthorizeResponse {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof McpServerToolAuthorizeResponse
|
|
27
|
+
*/
|
|
28
|
+
'allowed'?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {object}
|
|
32
|
+
* @memberof McpServerToolAuthorizeResponse
|
|
33
|
+
*/
|
|
34
|
+
'subject'?: object;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {object}
|
|
38
|
+
* @memberof McpServerToolAuthorizeResponse
|
|
39
|
+
*/
|
|
40
|
+
'resource'?: object;
|
|
41
|
+
}
|
|
42
|
+
|
package/models/mcp-server.ts
CHANGED
|
@@ -65,6 +65,12 @@ export interface McpServer {
|
|
|
65
65
|
* @memberof McpServer
|
|
66
66
|
*/
|
|
67
67
|
'transport'?: string;
|
|
68
|
+
/**
|
|
69
|
+
* True for http_sse, deprecated in MCP 2026-07-28; migrate to http_streamable.
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof McpServer
|
|
72
|
+
*/
|
|
73
|
+
'transport_deprecated'?: boolean;
|
|
68
74
|
/**
|
|
69
75
|
*
|
|
70
76
|
* @type {string}
|
|
@@ -89,12 +95,24 @@ export interface McpServer {
|
|
|
89
95
|
* @memberof McpServer
|
|
90
96
|
*/
|
|
91
97
|
'scope_descriptions'?: { [key: string]: string; };
|
|
98
|
+
/**
|
|
99
|
+
* Subset of scopes_supported advertised in the 401 challenge and in protected resource metadata. Empty = the whole vocabulary.
|
|
100
|
+
* @type {Array<string>}
|
|
101
|
+
* @memberof McpServer
|
|
102
|
+
*/
|
|
103
|
+
'basic_scopes'?: Array<string>;
|
|
92
104
|
/**
|
|
93
105
|
*
|
|
94
106
|
* @type {Array<string>}
|
|
95
107
|
* @memberof McpServer
|
|
96
108
|
*/
|
|
97
109
|
'allowed_client_ids'?: Array<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The MCP server\'s own OAuth clients allowed to call the per-tool authorization endpoint.
|
|
112
|
+
* @type {Array<string>}
|
|
113
|
+
* @memberof McpServer
|
|
114
|
+
*/
|
|
115
|
+
'tool_authorizer_client_ids'?: Array<string>;
|
|
98
116
|
/**
|
|
99
117
|
*
|
|
100
118
|
* @type {boolean}
|
|
@@ -171,7 +171,7 @@ export interface OpenIdConfiguration {
|
|
|
171
171
|
*/
|
|
172
172
|
'ui_locales_supported'?: Array<string>;
|
|
173
173
|
/**
|
|
174
|
-
* The four MFA tier ACR values, unless overridden in organization settings.
|
|
174
|
+
* The four MFA tier ACR values plus the single-factor urn:lumoauth:acr:pwd (any signed-in session), unless overridden in organization settings.
|
|
175
175
|
* @type {Array<string>}
|
|
176
176
|
* @memberof OpenIdConfiguration
|
|
177
177
|
*/
|
|
@@ -29,7 +29,7 @@ export interface ProtectedResourceMetadata {
|
|
|
29
29
|
*/
|
|
30
30
|
'resource': string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* The organization\'s issuer identifier (RFC 8414), the same value as `issuer` in its discovery documents. Clients read the authorization server metadata from {issuer}/.well-known/openid-configuration.
|
|
33
33
|
* @type {Array<string>}
|
|
34
34
|
* @memberof ProtectedResourceMetadata
|
|
35
35
|
*/
|