@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.
Files changed (95) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +6 -2
  3. package/api/aauth-api.ts +5 -5
  4. package/api/admin-mcp-api.ts +5 -5
  5. package/api/agents-api.ts +5 -5
  6. package/api/mcp-api.ts +130 -0
  7. package/api/well-known-api.ts +10 -10
  8. package/dist/api/aauth-api.d.ts +5 -5
  9. package/dist/api/aauth-api.js +4 -4
  10. package/dist/api/admin-mcp-api.d.ts +5 -5
  11. package/dist/api/admin-mcp-api.js +4 -4
  12. package/dist/api/agents-api.d.ts +5 -5
  13. package/dist/api/agents-api.js +4 -4
  14. package/dist/api/mcp-api.d.ts +73 -0
  15. package/dist/api/mcp-api.js +82 -0
  16. package/dist/api/well-known-api.d.ts +10 -10
  17. package/dist/api/well-known-api.js +8 -8
  18. package/dist/esm/api/aauth-api.d.ts +5 -5
  19. package/dist/esm/api/aauth-api.js +4 -4
  20. package/dist/esm/api/admin-mcp-api.d.ts +5 -5
  21. package/dist/esm/api/admin-mcp-api.js +4 -4
  22. package/dist/esm/api/agents-api.d.ts +5 -5
  23. package/dist/esm/api/agents-api.js +4 -4
  24. package/dist/esm/api/mcp-api.d.ts +73 -0
  25. package/dist/esm/api/mcp-api.js +83 -1
  26. package/dist/esm/api/well-known-api.d.ts +10 -10
  27. package/dist/esm/api/well-known-api.js +8 -8
  28. package/dist/esm/models/admin-agents-generate-token-request.d.ts +7 -1
  29. package/dist/esm/models/admin-agents-generate-token-response-data.d.ts +12 -0
  30. package/dist/esm/models/attest-response.d.ts +2 -1
  31. package/dist/esm/models/attest-response.js +1 -0
  32. package/dist/esm/models/authorize-mcp-request.d.ts +1 -1
  33. package/dist/esm/models/get-protected-resource-metadata-root-response1-resources-item.d.ts +1 -1
  34. package/dist/esm/models/index.d.ts +3 -0
  35. package/dist/esm/models/index.js +3 -0
  36. package/dist/esm/models/mcp-server-tool-authorize-request-subject.d.ts +38 -0
  37. package/dist/esm/models/mcp-server-tool-authorize-request-subject.js +22 -0
  38. package/dist/esm/models/mcp-server-tool-authorize-request.d.ts +31 -0
  39. package/dist/esm/models/mcp-server-tool-authorize-request.js +14 -0
  40. package/dist/esm/models/mcp-server-tool-authorize-response.d.ts +36 -0
  41. package/dist/esm/models/mcp-server-tool-authorize-response.js +14 -0
  42. package/dist/esm/models/mcp-server.d.ts +18 -0
  43. package/dist/esm/models/open-id-configuration.d.ts +1 -1
  44. package/dist/esm/models/protected-resource-metadata.d.ts +1 -1
  45. package/dist/esm/models/single-server-metadata.d.ts +1 -1
  46. package/dist/models/admin-agents-generate-token-request.d.ts +7 -1
  47. package/dist/models/admin-agents-generate-token-response-data.d.ts +12 -0
  48. package/dist/models/attest-response.d.ts +2 -1
  49. package/dist/models/attest-response.js +1 -0
  50. package/dist/models/authorize-mcp-request.d.ts +1 -1
  51. package/dist/models/get-protected-resource-metadata-root-response1-resources-item.d.ts +1 -1
  52. package/dist/models/index.d.ts +3 -0
  53. package/dist/models/index.js +3 -0
  54. package/dist/models/mcp-server-tool-authorize-request-subject.d.ts +38 -0
  55. package/dist/models/mcp-server-tool-authorize-request-subject.js +25 -0
  56. package/dist/models/mcp-server-tool-authorize-request.d.ts +31 -0
  57. package/dist/models/mcp-server-tool-authorize-request.js +15 -0
  58. package/dist/models/mcp-server-tool-authorize-response.d.ts +36 -0
  59. package/dist/models/mcp-server-tool-authorize-response.js +15 -0
  60. package/dist/models/mcp-server.d.ts +18 -0
  61. package/dist/models/open-id-configuration.d.ts +1 -1
  62. package/dist/models/protected-resource-metadata.d.ts +1 -1
  63. package/dist/models/single-server-metadata.d.ts +1 -1
  64. package/docs/AAuthApi.md +1 -1
  65. package/docs/AdminAgentsApi.md +1 -1
  66. package/docs/AdminAgentsGenerateTokenRequest.md +3 -1
  67. package/docs/AdminAgentsGenerateTokenResponseData.md +4 -0
  68. package/docs/AdminMcpApi.md +1 -1
  69. package/docs/AgentsApi.md +4 -3
  70. package/docs/AuthorizeMcpRequest.md +1 -1
  71. package/docs/GetProtectedResourceMetadataRoot200Response.md +1 -1
  72. package/docs/GetProtectedResourceMetadataRootResponse1ResourcesItem.md +1 -1
  73. package/docs/McpApi.md +64 -0
  74. package/docs/McpServer.md +6 -0
  75. package/docs/McpServerToolAuthorizeRequest.md +22 -0
  76. package/docs/McpServerToolAuthorizeRequestSubject.md +22 -0
  77. package/docs/McpServerToolAuthorizeResponse.md +24 -0
  78. package/docs/OpenIdConfiguration.md +1 -1
  79. package/docs/ProtectedResourceMetadata.md +1 -1
  80. package/docs/SingleServerMetadata.md +1 -1
  81. package/docs/WellKnownApi.md +2 -2
  82. package/models/admin-agents-generate-token-request.ts +7 -1
  83. package/models/admin-agents-generate-token-response-data.ts +12 -0
  84. package/models/attest-response.ts +2 -1
  85. package/models/authorize-mcp-request.ts +1 -1
  86. package/models/get-protected-resource-metadata-root-response1-resources-item.ts +1 -1
  87. package/models/index.ts +3 -0
  88. package/models/mcp-server-tool-authorize-request-subject.ts +46 -0
  89. package/models/mcp-server-tool-authorize-request.ts +39 -0
  90. package/models/mcp-server-tool-authorize-response.ts +42 -0
  91. package/models/mcp-server.ts +18 -0
  92. package/models/open-id-configuration.ts +1 -1
  93. package/models/protected-resource-metadata.ts +1 -1
  94. package/models/single-server-metadata.ts +1 -1
  95. package/package.json +1 -1
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  import globalAxios from 'axios';
24
24
  // Some imports not used depending on template conditions
25
25
  // @ts-ignore
26
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
26
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
29
  /**
@@ -202,6 +202,49 @@ export const McpApiAxiosParamCreator = function (configuration) {
202
202
  options: localVarRequestOptions,
203
203
  };
204
204
  }),
205
+ /**
206
+ * Called by the MCP server with its own client-credentials access token (scope mcp:authorize; the client must be listed in the server\'s tool_authorizer_client_ids). The body names the caller the server already verified. The server never forwards the caller\'s token.
207
+ * @summary Per-tool authorization for an MCP server (server credential)
208
+ * @param {string} orgId
209
+ * @param {string} serverId
210
+ * @param {McpServerToolAuthorizeRequest} mcpServerToolAuthorizeRequest
211
+ * @param {*} [options] Override http request option.
212
+ * @throws {RequiredError}
213
+ */
214
+ mcpServerToolAuthorize: (orgId_1, serverId_1, mcpServerToolAuthorizeRequest_1, ...args_1) => __awaiter(this, [orgId_1, serverId_1, mcpServerToolAuthorizeRequest_1, ...args_1], void 0, function* (orgId, serverId, mcpServerToolAuthorizeRequest, options = {}) {
215
+ // verify required parameter 'orgId' is not null or undefined
216
+ assertParamExists('mcpServerToolAuthorize', 'orgId', orgId);
217
+ // verify required parameter 'serverId' is not null or undefined
218
+ assertParamExists('mcpServerToolAuthorize', 'serverId', serverId);
219
+ // verify required parameter 'mcpServerToolAuthorizeRequest' is not null or undefined
220
+ assertParamExists('mcpServerToolAuthorize', 'mcpServerToolAuthorizeRequest', mcpServerToolAuthorizeRequest);
221
+ const localVarPath = `/orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize`
222
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
223
+ .replace(`{${"serverId"}}`, encodeURIComponent(String(serverId)));
224
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
225
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
226
+ let baseOptions;
227
+ if (configuration) {
228
+ baseOptions = configuration.baseOptions;
229
+ }
230
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
231
+ const localVarHeaderParameter = {};
232
+ const localVarQueryParameter = {};
233
+ // authentication ApiKeyAuth required
234
+ yield setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration);
235
+ // authentication BearerAuth required
236
+ // http bearer authentication required
237
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
238
+ localVarHeaderParameter['Content-Type'] = 'application/json';
239
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
240
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
241
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
242
+ localVarRequestOptions.data = serializeDataIfNeeded(mcpServerToolAuthorizeRequest, localVarRequestOptions, configuration);
243
+ return {
244
+ url: toPathString(localVarUrlObj),
245
+ options: localVarRequestOptions,
246
+ };
247
+ }),
205
248
  /**
206
249
  * Identical to GET; the HTTP method is only recorded in the audit trail.
207
250
  * @summary Simulated MCP server authorization challenge (POST)
@@ -330,6 +373,24 @@ export const McpApiFp = function (configuration) {
330
373
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
331
374
  });
332
375
  },
376
+ /**
377
+ * Called by the MCP server with its own client-credentials access token (scope mcp:authorize; the client must be listed in the server\'s tool_authorizer_client_ids). The body names the caller the server already verified. The server never forwards the caller\'s token.
378
+ * @summary Per-tool authorization for an MCP server (server credential)
379
+ * @param {string} orgId
380
+ * @param {string} serverId
381
+ * @param {McpServerToolAuthorizeRequest} mcpServerToolAuthorizeRequest
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ mcpServerToolAuthorize(orgId, serverId, mcpServerToolAuthorizeRequest, options) {
386
+ return __awaiter(this, void 0, void 0, function* () {
387
+ var _a, _b, _c;
388
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.mcpServerToolAuthorize(orgId, serverId, mcpServerToolAuthorizeRequest, options);
389
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
390
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['McpApi.mcpServerToolAuthorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
391
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
392
+ });
393
+ },
333
394
  /**
334
395
  * Identical to GET; the HTTP method is only recorded in the audit trail.
335
396
  * @summary Simulated MCP server authorization challenge (POST)
@@ -406,6 +467,16 @@ export const McpApiFactory = function (configuration, basePath, axios) {
406
467
  listServers(requestParameters, options) {
407
468
  return localVarFp.listServers(requestParameters.orgId, options).then((request) => request(axios, basePath));
408
469
  },
470
+ /**
471
+ * Called by the MCP server with its own client-credentials access token (scope mcp:authorize; the client must be listed in the server\'s tool_authorizer_client_ids). The body names the caller the server already verified. The server never forwards the caller\'s token.
472
+ * @summary Per-tool authorization for an MCP server (server credential)
473
+ * @param {McpApiMcpServerToolAuthorizeRequest} requestParameters Request parameters.
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ mcpServerToolAuthorize(requestParameters, options) {
478
+ return localVarFp.mcpServerToolAuthorize(requestParameters.orgId, requestParameters.serverId, requestParameters.mcpServerToolAuthorizeRequest, options).then((request) => request(axios, basePath));
479
+ },
409
480
  /**
410
481
  * Identical to GET; the HTTP method is only recorded in the audit trail.
411
482
  * @summary Simulated MCP server authorization challenge (POST)
@@ -480,6 +551,17 @@ export class McpApi extends BaseAPI {
480
551
  listServers(requestParameters, options) {
481
552
  return McpApiFp(this.configuration).listServers(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
482
553
  }
554
+ /**
555
+ * Called by the MCP server with its own client-credentials access token (scope mcp:authorize; the client must be listed in the server\'s tool_authorizer_client_ids). The body names the caller the server already verified. The server never forwards the caller\'s token.
556
+ * @summary Per-tool authorization for an MCP server (server credential)
557
+ * @param {McpApiMcpServerToolAuthorizeRequest} requestParameters Request parameters.
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ * @memberof McpApi
561
+ */
562
+ mcpServerToolAuthorize(requestParameters, options) {
563
+ return McpApiFp(this.configuration).mcpServerToolAuthorize(requestParameters.orgId, requestParameters.serverId, requestParameters.mcpServerToolAuthorizeRequest, options).then((request) => request(this.axios, this.basePath));
564
+ }
483
565
  /**
484
566
  * Identical to GET; the HTTP method is only recorded in the audit trail.
485
567
  * @summary Simulated MCP server authorization challenge (POST)
@@ -22,7 +22,7 @@ import type { OpenIdConfiguration } from '../models';
22
22
  */
23
23
  export declare const WellKnownApiAxiosParamCreator: (configuration?: Configuration) => {
24
24
  /**
25
- * 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.
25
+ * 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.
26
26
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
27
27
  * @param {string} orgId
28
28
  * @param {*} [options] Override http request option.
@@ -38,7 +38,7 @@ export declare const WellKnownApiAxiosParamCreator: (configuration?: Configurati
38
38
  */
39
39
  getJwks: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40
40
  /**
41
- * 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.
41
+ * 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.
42
42
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
43
43
  * @param {string} orgId
44
44
  * @param {*} [options] Override http request option.
@@ -60,7 +60,7 @@ export declare const WellKnownApiAxiosParamCreator: (configuration?: Configurati
60
60
  */
61
61
  export declare const WellKnownApiFp: (configuration?: Configuration) => {
62
62
  /**
63
- * 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.
63
+ * 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.
64
64
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
65
65
  * @param {string} orgId
66
66
  * @param {*} [options] Override http request option.
@@ -76,7 +76,7 @@ export declare const WellKnownApiFp: (configuration?: Configuration) => {
76
76
  */
77
77
  getJwks(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonWebKeySet>>;
78
78
  /**
79
- * 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.
79
+ * 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.
80
80
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
81
81
  * @param {string} orgId
82
82
  * @param {*} [options] Override http request option.
@@ -98,7 +98,7 @@ export declare const WellKnownApiFp: (configuration?: Configuration) => {
98
98
  */
99
99
  export declare const WellKnownApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
100
100
  /**
101
- * 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.
101
+ * 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.
102
102
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
103
103
  * @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
104
104
  * @param {*} [options] Override http request option.
@@ -114,7 +114,7 @@ export declare const WellKnownApiFactory: (configuration?: Configuration, basePa
114
114
  */
115
115
  getJwks(requestParameters: WellKnownApiGetJwksRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonWebKeySet>;
116
116
  /**
117
- * 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.
117
+ * 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.
118
118
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
119
119
  * @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
120
120
  * @param {*} [options] Override http request option.
@@ -137,7 +137,7 @@ export declare const WellKnownApiFactory: (configuration?: Configuration, basePa
137
137
  */
138
138
  export interface WellKnownApiInterface {
139
139
  /**
140
- * 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.
140
+ * 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.
141
141
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
142
142
  * @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
143
143
  * @param {*} [options] Override http request option.
@@ -155,7 +155,7 @@ export interface WellKnownApiInterface {
155
155
  */
156
156
  getJwks(requestParameters: WellKnownApiGetJwksRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonWebKeySet>;
157
157
  /**
158
- * 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.
158
+ * 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.
159
159
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
160
160
  * @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
161
161
  * @param {*} [options] Override http request option.
@@ -233,7 +233,7 @@ export interface WellKnownApiGetSsfConfigurationRequest {
233
233
  */
234
234
  export declare class WellKnownApi extends BaseAPI implements WellKnownApiInterface {
235
235
  /**
236
- * 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.
236
+ * 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.
237
237
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
238
238
  * @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
239
239
  * @param {*} [options] Override http request option.
@@ -251,7 +251,7 @@ export declare class WellKnownApi extends BaseAPI implements WellKnownApiInterfa
251
251
  */
252
252
  getJwks(requestParameters: WellKnownApiGetJwksRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonWebKeySet, any, {}>>;
253
253
  /**
254
- * 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.
254
+ * 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.
255
255
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
256
256
  * @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
257
257
  * @param {*} [options] Override http request option.
@@ -33,7 +33,7 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
33
33
  export const WellKnownApiAxiosParamCreator = function (configuration) {
34
34
  return {
35
35
  /**
36
- * 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.
36
+ * 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.
37
37
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
38
38
  * @param {string} orgId
39
39
  * @param {*} [options] Override http request option.
@@ -91,7 +91,7 @@ export const WellKnownApiAxiosParamCreator = function (configuration) {
91
91
  };
92
92
  }),
93
93
  /**
94
- * 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.
94
+ * 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.
95
95
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
96
96
  * @param {string} orgId
97
97
  * @param {*} [options] Override http request option.
@@ -158,7 +158,7 @@ export const WellKnownApiFp = function (configuration) {
158
158
  const localVarAxiosParamCreator = WellKnownApiAxiosParamCreator(configuration);
159
159
  return {
160
160
  /**
161
- * 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.
161
+ * 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.
162
162
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
163
163
  * @param {string} orgId
164
164
  * @param {*} [options] Override http request option.
@@ -190,7 +190,7 @@ export const WellKnownApiFp = function (configuration) {
190
190
  });
191
191
  },
192
192
  /**
193
- * 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.
193
+ * 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.
194
194
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
195
195
  * @param {string} orgId
196
196
  * @param {*} [options] Override http request option.
@@ -231,7 +231,7 @@ export const WellKnownApiFactory = function (configuration, basePath, axios) {
231
231
  const localVarFp = WellKnownApiFp(configuration);
232
232
  return {
233
233
  /**
234
- * 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.
234
+ * 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.
235
235
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
236
236
  * @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
237
237
  * @param {*} [options] Override http request option.
@@ -251,7 +251,7 @@ export const WellKnownApiFactory = function (configuration, basePath, axios) {
251
251
  return localVarFp.getJwks(requestParameters.orgId, options).then((request) => request(axios, basePath));
252
252
  },
253
253
  /**
254
- * 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.
254
+ * 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.
255
255
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
256
256
  * @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
257
257
  * @param {*} [options] Override http request option.
@@ -280,7 +280,7 @@ export const WellKnownApiFactory = function (configuration, basePath, axios) {
280
280
  */
281
281
  export class WellKnownApi extends BaseAPI {
282
282
  /**
283
- * 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.
283
+ * 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.
284
284
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
285
285
  * @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
286
286
  * @param {*} [options] Override http request option.
@@ -302,7 +302,7 @@ export class WellKnownApi extends BaseAPI {
302
302
  return WellKnownApiFp(this.configuration).getJwks(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
303
303
  }
304
304
  /**
305
- * 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.
305
+ * 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.
306
306
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
307
307
  * @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
308
308
  * @param {*} [options] Override http request option.
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface AdminAgentsGenerateTokenRequest {
18
18
  /**
19
- * Token lifetime in seconds. Default 3600, at most 2592000 (30 days).
19
+ * 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.
20
20
  * @type {number}
21
21
  * @memberof AdminAgentsGenerateTokenRequest
22
22
  */
@@ -27,4 +27,10 @@ export interface AdminAgentsGenerateTokenRequest {
27
27
  * @memberof AdminAgentsGenerateTokenRequest
28
28
  */
29
29
  'scopes'?: Array<string>;
30
+ /**
31
+ * 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.
32
+ * @type {string}
33
+ * @memberof AdminAgentsGenerateTokenRequest
34
+ */
35
+ 'resource'?: string;
30
36
  }
@@ -33,10 +33,22 @@ export interface AdminAgentsGenerateTokenResponseData {
33
33
  * @memberof AdminAgentsGenerateTokenResponseData
34
34
  */
35
35
  'expiresIn'?: number;
36
+ /**
37
+ * The token id. Written to the agent.token_issued audit event; the kill switch and a capability reduction deny-list it.
38
+ * @type {string}
39
+ * @memberof AdminAgentsGenerateTokenResponseData
40
+ */
41
+ 'jti'?: string;
36
42
  /**
37
43
  *
38
44
  * @type {Array<string>}
39
45
  * @memberof AdminAgentsGenerateTokenResponseData
40
46
  */
41
47
  'scopes'?: Array<string>;
48
+ /**
49
+ * The MCP server the token is bound to, when `resource` was sent.
50
+ * @type {string}
51
+ * @memberof AdminAgentsGenerateTokenResponseData
52
+ */
53
+ 'resource'?: string | null;
42
54
  }
@@ -52,5 +52,6 @@ export interface AttestResponse {
52
52
  * @enum {string}
53
53
  */
54
54
  export declare enum AttestResponseTokenType {
55
- BEARER = "Bearer"
55
+ BEARER = "Bearer",
56
+ DPO_P = "DPoP"
56
57
  }
@@ -18,4 +18,5 @@
18
18
  export var AttestResponseTokenType;
19
19
  (function (AttestResponseTokenType) {
20
20
  AttestResponseTokenType["BEARER"] = "Bearer";
21
+ AttestResponseTokenType["DPO_P"] = "DPoP";
21
22
  })(AttestResponseTokenType || (AttestResponseTokenType = {}));
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface AuthorizeMcpRequest {
18
18
  /**
19
- *
19
+ * Id of an active MCP server registered in this organization.
20
20
  * @type {string}
21
21
  * @memberof AuthorizeMcpRequest
22
22
  */
@@ -28,7 +28,7 @@ export interface GetProtectedResourceMetadataRootResponse1ResourcesItem {
28
28
  */
29
29
  'resource_metadata_url': string;
30
30
  /**
31
- *
31
+ * The organization\'s issuer identifier (RFC 8414).
32
32
  * @type {Array<string>}
33
33
  * @memberof GetProtectedResourceMetadataRootResponse1ResourcesItem
34
34
  */
@@ -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';
@@ -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,38 @@
1
+ /**
2
+ * LumoAuth API
3
+ * LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: sdk@lumoauth.dev
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface McpServerToolAuthorizeRequestSubject
16
+ */
17
+ export interface McpServerToolAuthorizeRequestSubject {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof McpServerToolAuthorizeRequestSubject
22
+ */
23
+ 'type': McpServerToolAuthorizeRequestSubjectType;
24
+ /**
25
+ * User UUID, or agent id (agt_…). For an MCP token, the user id is `sub`; for an agent token `sub` is `agent_<id>`.
26
+ * @type {string}
27
+ * @memberof McpServerToolAuthorizeRequestSubject
28
+ */
29
+ 'id': string;
30
+ }
31
+ /**
32
+ * @export
33
+ * @enum {string}
34
+ */
35
+ export declare enum McpServerToolAuthorizeRequestSubjectType {
36
+ USER = "user",
37
+ AGENT = "agent"
38
+ }
@@ -0,0 +1,22 @@
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
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var McpServerToolAuthorizeRequestSubjectType;
19
+ (function (McpServerToolAuthorizeRequestSubjectType) {
20
+ McpServerToolAuthorizeRequestSubjectType["USER"] = "user";
21
+ McpServerToolAuthorizeRequestSubjectType["AGENT"] = "agent";
22
+ })(McpServerToolAuthorizeRequestSubjectType || (McpServerToolAuthorizeRequestSubjectType = {}));
@@ -0,0 +1,31 @@
1
+ /**
2
+ * LumoAuth API
3
+ * LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: sdk@lumoauth.dev
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 { McpServerToolAuthorizeRequestSubject } from './mcp-server-tool-authorize-request-subject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface McpServerToolAuthorizeRequest
17
+ */
18
+ export interface McpServerToolAuthorizeRequest {
19
+ /**
20
+ *
21
+ * @type {McpServerToolAuthorizeRequestSubject}
22
+ * @memberof McpServerToolAuthorizeRequest
23
+ */
24
+ 'subject': McpServerToolAuthorizeRequestSubject;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof McpServerToolAuthorizeRequest
29
+ */
30
+ 'tool': string;
31
+ }
@@ -0,0 +1,14 @@
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
+ export {};
@@ -0,0 +1,36 @@
1
+ /**
2
+ * LumoAuth API
3
+ * LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: sdk@lumoauth.dev
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface McpServerToolAuthorizeResponse
16
+ */
17
+ export interface McpServerToolAuthorizeResponse {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof McpServerToolAuthorizeResponse
22
+ */
23
+ 'allowed'?: boolean;
24
+ /**
25
+ *
26
+ * @type {object}
27
+ * @memberof McpServerToolAuthorizeResponse
28
+ */
29
+ 'subject'?: object;
30
+ /**
31
+ *
32
+ * @type {object}
33
+ * @memberof McpServerToolAuthorizeResponse
34
+ */
35
+ 'resource'?: object;
36
+ }
@@ -0,0 +1,14 @@
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
+ export {};
@@ -58,6 +58,12 @@ export interface McpServer {
58
58
  * @memberof McpServer
59
59
  */
60
60
  'transport'?: string;
61
+ /**
62
+ * True for http_sse, deprecated in MCP 2026-07-28; migrate to http_streamable.
63
+ * @type {boolean}
64
+ * @memberof McpServer
65
+ */
66
+ 'transport_deprecated'?: boolean;
61
67
  /**
62
68
  *
63
69
  * @type {string}
@@ -84,12 +90,24 @@ export interface McpServer {
84
90
  'scope_descriptions'?: {
85
91
  [key: string]: string;
86
92
  };
93
+ /**
94
+ * Subset of scopes_supported advertised in the 401 challenge and in protected resource metadata. Empty = the whole vocabulary.
95
+ * @type {Array<string>}
96
+ * @memberof McpServer
97
+ */
98
+ 'basic_scopes'?: Array<string>;
87
99
  /**
88
100
  *
89
101
  * @type {Array<string>}
90
102
  * @memberof McpServer
91
103
  */
92
104
  'allowed_client_ids'?: Array<string>;
105
+ /**
106
+ * The MCP server\'s own OAuth clients allowed to call the per-tool authorization endpoint.
107
+ * @type {Array<string>}
108
+ * @memberof McpServer
109
+ */
110
+ 'tool_authorizer_client_ids'?: Array<string>;
93
111
  /**
94
112
  *
95
113
  * @type {boolean}
@@ -166,7 +166,7 @@ export interface OpenIdConfiguration {
166
166
  */
167
167
  'ui_locales_supported'?: Array<string>;
168
168
  /**
169
- * The four MFA tier ACR values, unless overridden in organization settings.
169
+ * The four MFA tier ACR values plus the single-factor urn:lumoauth:acr:pwd (any signed-in session), unless overridden in organization settings.
170
170
  * @type {Array<string>}
171
171
  * @memberof OpenIdConfiguration
172
172
  */
@@ -23,7 +23,7 @@ export interface ProtectedResourceMetadata {
23
23
  */
24
24
  'resource': string;
25
25
  /**
26
- * This organization\'s authorization server metadata URL.
26
+ * 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.
27
27
  * @type {Array<string>}
28
28
  * @memberof ProtectedResourceMetadata
29
29
  */
@@ -23,7 +23,7 @@ export interface SingleServerMetadata {
23
23
  */
24
24
  'resource': string;
25
25
  /**
26
- *
26
+ * The organization\'s issuer identifier (RFC 8414).
27
27
  * @type {Array<string>}
28
28
  * @memberof SingleServerMetadata
29
29
  */
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface AdminAgentsGenerateTokenRequest {
18
18
  /**
19
- * Token lifetime in seconds. Default 3600, at most 2592000 (30 days).
19
+ * 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.
20
20
  * @type {number}
21
21
  * @memberof AdminAgentsGenerateTokenRequest
22
22
  */
@@ -27,4 +27,10 @@ export interface AdminAgentsGenerateTokenRequest {
27
27
  * @memberof AdminAgentsGenerateTokenRequest
28
28
  */
29
29
  'scopes'?: Array<string>;
30
+ /**
31
+ * 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.
32
+ * @type {string}
33
+ * @memberof AdminAgentsGenerateTokenRequest
34
+ */
35
+ 'resource'?: string;
30
36
  }