@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
@@ -347,6 +347,9 @@ docs/McpApi.md
347
347
  docs/McpServer.md
348
348
  docs/McpServerPosture.md
349
349
  docs/McpServerPostureChecksInner.md
350
+ docs/McpServerToolAuthorizeRequest.md
351
+ docs/McpServerToolAuthorizeRequestSubject.md
352
+ docs/McpServerToolAuthorizeResponse.md
350
353
  docs/MessageResponse.md
351
354
  docs/MfaApi.md
352
355
  docs/MfaAuthenticator.md
@@ -746,6 +749,9 @@ models/list-users-response.ts
746
749
  models/mark-user-verified-response.ts
747
750
  models/mcp-server-posture-checks-inner.ts
748
751
  models/mcp-server-posture.ts
752
+ models/mcp-server-tool-authorize-request-subject.ts
753
+ models/mcp-server-tool-authorize-request.ts
754
+ models/mcp-server-tool-authorize-response.ts
749
755
  models/mcp-server.ts
750
756
  models/message-response.ts
751
757
  models/mfa-authenticator-last-used-context.ts
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  > `github.com/lumoauth/lumo-auth-go`), prefer it.
8
8
  > Do not edit by hand: changes are overwritten on the next regeneration.
9
9
 
10
- ## @lumoauth/api-client@1.1.0
10
+ ## @lumoauth/api-client@1.2.0
11
11
 
12
12
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
13
13
 
@@ -45,7 +45,7 @@ navigate to the folder of your consuming project and run one of the following co
45
45
  _published:_
46
46
 
47
47
  ```
48
- npm install @lumoauth/api-client@1.1.0 --save
48
+ npm install @lumoauth/api-client@1.2.0 --save
49
49
  ```
50
50
 
51
51
  _unPublished (not recommended):_
@@ -344,6 +344,7 @@ Class | Method | HTTP request | Description
344
344
  *McpApi* | [**getServer**](docs/McpApi.md#getserver) | **GET** /orgs/{orgId}/api/v1/mcp/servers/{serverId} | REST API: Get a specific MCP server.
345
345
  *McpApi* | [**getServerChallenge**](docs/McpApi.md#getserverchallenge) | **GET** /orgs/{orgId}/api/v1/mcp/{serverId}/challenge | Simulated MCP server authorization challenge
346
346
  *McpApi* | [**listServers**](docs/McpApi.md#listservers) | **GET** /orgs/{orgId}/api/v1/mcp/servers | REST API: List MCP servers for a tenant.
347
+ *McpApi* | [**mcpServerToolAuthorize**](docs/McpApi.md#mcpservertoolauthorize) | **POST** /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize | Per-tool authorization for an MCP server (server credential)
347
348
  *McpApi* | [**postServerChallenge**](docs/McpApi.md#postserverchallenge) | **POST** /orgs/{orgId}/api/v1/mcp/{serverId}/challenge | Simulated MCP server authorization challenge (POST)
348
349
  *MfaApi* | [**createMfaChallenge**](docs/MfaApi.md#createmfachallenge) | **POST** /orgs/{orgId}/api/v1/mfa/challenges | Start an MFA challenge
349
350
  *MfaApi* | [**deleteAuthenticator**](docs/MfaApi.md#deleteauthenticator) | **DELETE** /orgs/{orgId}/api/v1/me/authenticators/{id} | Remove an authenticator
@@ -686,6 +687,9 @@ Class | Method | HTTP request | Description
686
687
  - [McpServer](docs/McpServer.md)
687
688
  - [McpServerPosture](docs/McpServerPosture.md)
688
689
  - [McpServerPostureChecksInner](docs/McpServerPostureChecksInner.md)
690
+ - [McpServerToolAuthorizeRequest](docs/McpServerToolAuthorizeRequest.md)
691
+ - [McpServerToolAuthorizeRequestSubject](docs/McpServerToolAuthorizeRequestSubject.md)
692
+ - [McpServerToolAuthorizeResponse](docs/McpServerToolAuthorizeResponse.md)
689
693
  - [MessageResponse](docs/MessageResponse.md)
690
694
  - [MfaAuthenticator](docs/MfaAuthenticator.md)
691
695
  - [MfaAuthenticatorLastUsedContext](docs/MfaAuthenticatorLastUsedContext.md)
package/api/aauth-api.ts CHANGED
@@ -386,7 +386,7 @@ export const AAuthApiAxiosParamCreator = function (configuration?: Configuration
386
386
  };
387
387
  },
388
388
  /**
389
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
389
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
390
390
  * @summary Agent Token Endpoint
391
391
  * @param {string} orgId
392
392
  * @param {IssueAgentTokenRequest} issueAgentTokenRequest
@@ -824,7 +824,7 @@ export const AAuthApiFp = function(configuration?: Configuration) {
824
824
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
825
825
  },
826
826
  /**
827
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
827
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
828
828
  * @summary Agent Token Endpoint
829
829
  * @param {string} orgId
830
830
  * @param {IssueAgentTokenRequest} issueAgentTokenRequest
@@ -1021,7 +1021,7 @@ export const AAuthApiFactory = function (configuration?: Configuration, basePath
1021
1021
  return localVarFp.getResourceMetadataById(requestParameters.orgId, requestParameters.resourceId, options).then((request) => request(axios, basePath));
1022
1022
  },
1023
1023
  /**
1024
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
1024
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
1025
1025
  * @summary Agent Token Endpoint
1026
1026
  * @param {AAuthApiIssueAgentTokenRequest} requestParameters Request parameters.
1027
1027
  * @param {*} [options] Override http request option.
@@ -1189,7 +1189,7 @@ export interface AAuthApiInterface {
1189
1189
  getResourceMetadataById(requestParameters: AAuthApiGetResourceMetadataByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
1190
1190
 
1191
1191
  /**
1192
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
1192
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
1193
1193
  * @summary Agent Token Endpoint
1194
1194
  * @param {AAuthApiIssueAgentTokenRequest} requestParameters Request parameters.
1195
1195
  * @param {*} [options] Override http request option.
@@ -1676,7 +1676,7 @@ export class AAuthApi extends BaseAPI implements AAuthApiInterface {
1676
1676
  }
1677
1677
 
1678
1678
  /**
1679
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
1679
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
1680
1680
  * @summary Agent Token Endpoint
1681
1681
  * @param {AAuthApiIssueAgentTokenRequest} requestParameters Request parameters.
1682
1682
  * @param {*} [options] Override http request option.
@@ -36,7 +36,7 @@ import type { MessageResponse } from '../models';
36
36
  export const AdminMcpApiAxiosParamCreator = function (configuration?: Configuration) {
37
37
  return {
38
38
  /**
39
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI; must be http(s)://, no fragment endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string transport (optional) — defaults to \"http_streamable\" auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — clamped to [60, 86400] allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
39
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
40
40
  * @summary Register an MCP server
41
41
  * @param {string} orgId
42
42
  * @param {*} [options] Override http request option.
@@ -218,7 +218,7 @@ export const AdminMcpApiFp = function(configuration?: Configuration) {
218
218
  const localVarAxiosParamCreator = AdminMcpApiAxiosParamCreator(configuration)
219
219
  return {
220
220
  /**
221
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI; must be http(s)://, no fragment endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string transport (optional) — defaults to \"http_streamable\" auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — clamped to [60, 86400] allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
221
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
222
222
  * @summary Register an MCP server
223
223
  * @param {string} orgId
224
224
  * @param {*} [options] Override http request option.
@@ -282,7 +282,7 @@ export const AdminMcpApiFactory = function (configuration?: Configuration, baseP
282
282
  const localVarFp = AdminMcpApiFp(configuration)
283
283
  return {
284
284
  /**
285
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI; must be http(s)://, no fragment endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string transport (optional) — defaults to \"http_streamable\" auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — clamped to [60, 86400] allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
285
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
286
286
  * @summary Register an MCP server
287
287
  * @param {AdminMcpApiAdminMcpServersCreateRequest} requestParameters Request parameters.
288
288
  * @param {*} [options] Override http request option.
@@ -331,7 +331,7 @@ export const AdminMcpApiFactory = function (configuration?: Configuration, baseP
331
331
  */
332
332
  export interface AdminMcpApiInterface {
333
333
  /**
334
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI; must be http(s)://, no fragment endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string transport (optional) — defaults to \"http_streamable\" auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — clamped to [60, 86400] allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
334
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
335
335
  * @summary Register an MCP server
336
336
  * @param {AdminMcpApiAdminMcpServersCreateRequest} requestParameters Request parameters.
337
337
  * @param {*} [options] Override http request option.
@@ -450,7 +450,7 @@ export interface AdminMcpApiAdminMcpServersListRequest {
450
450
  */
451
451
  export class AdminMcpApi extends BaseAPI implements AdminMcpApiInterface {
452
452
  /**
453
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI; must be http(s)://, no fragment endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string transport (optional) — defaults to \"http_streamable\" auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — clamped to [60, 86400] allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
453
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
454
454
  * @summary Register an MCP server
455
455
  * @param {AdminMcpApiAdminMcpServersCreateRequest} requestParameters Request parameters.
456
456
  * @param {*} [options] Override http request option.
package/api/agents-api.ts CHANGED
@@ -154,7 +154,7 @@ export const AgentsApiAxiosParamCreator = function (configuration?: Configuratio
154
154
  };
155
155
  },
156
156
  /**
157
- * The real request-path caller of {@see \\McpToolAuthorizationService::canInvoke()} — the piece that connects MCP authorization to agent identity. An MCP gateway/server asks \"may THIS agent invoke <server>/<tool>?\" and gets a Zanzibar-backed allow/deny (tool-level or server-wide grant). Denials and grants are both audited, closing the MCP-authorization audit blind spot. POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"invoices\", \"tool\": \"send_payment_reminder\" }
157
+ * An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
158
158
  * @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
159
159
  * @param {string} orgId
160
160
  * @param {AuthorizeMcpRequest} authorizeMcpRequest
@@ -497,7 +497,7 @@ export const AgentsApiFp = function(configuration?: Configuration) {
497
497
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
498
498
  },
499
499
  /**
500
- * The real request-path caller of {@see \\McpToolAuthorizationService::canInvoke()} — the piece that connects MCP authorization to agent identity. An MCP gateway/server asks \"may THIS agent invoke <server>/<tool>?\" and gets a Zanzibar-backed allow/deny (tool-level or server-wide grant). Denials and grants are both audited, closing the MCP-authorization audit blind spot. POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"invoices\", \"tool\": \"send_payment_reminder\" }
500
+ * An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
501
501
  * @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
502
502
  * @param {string} orgId
503
503
  * @param {AuthorizeMcpRequest} authorizeMcpRequest
@@ -621,7 +621,7 @@ export const AgentsApiFactory = function (configuration?: Configuration, basePat
621
621
  return localVarFp.attest(requestParameters.orgId, requestParameters.agentId, requestParameters.attestRequest, options).then((request) => request(axios, basePath));
622
622
  },
623
623
  /**
624
- * The real request-path caller of {@see \\McpToolAuthorizationService::canInvoke()} — the piece that connects MCP authorization to agent identity. An MCP gateway/server asks \"may THIS agent invoke <server>/<tool>?\" and gets a Zanzibar-backed allow/deny (tool-level or server-wide grant). Denials and grants are both audited, closing the MCP-authorization audit blind spot. POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"invoices\", \"tool\": \"send_payment_reminder\" }
624
+ * An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
625
625
  * @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
626
626
  * @param {AgentsApiAuthorizeMcpRequest} requestParameters Request parameters.
627
627
  * @param {*} [options] Override http request option.
@@ -718,7 +718,7 @@ export interface AgentsApiInterface {
718
718
  attest(requestParameters: AgentsApiAttestRequest, options?: RawAxiosRequestConfig): AxiosPromise<AttestResponse>;
719
719
 
720
720
  /**
721
- * The real request-path caller of {@see \\McpToolAuthorizationService::canInvoke()} — the piece that connects MCP authorization to agent identity. An MCP gateway/server asks \"may THIS agent invoke <server>/<tool>?\" and gets a Zanzibar-backed allow/deny (tool-level or server-wide grant). Denials and grants are both audited, closing the MCP-authorization audit blind spot. POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"invoices\", \"tool\": \"send_payment_reminder\" }
721
+ * An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
722
722
  * @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
723
723
  * @param {AgentsApiAuthorizeMcpRequest} requestParameters Request parameters.
724
724
  * @param {*} [options] Override http request option.
@@ -1001,7 +1001,7 @@ export class AgentsApi extends BaseAPI implements AgentsApiInterface {
1001
1001
  }
1002
1002
 
1003
1003
  /**
1004
- * The real request-path caller of {@see \\McpToolAuthorizationService::canInvoke()} — the piece that connects MCP authorization to agent identity. An MCP gateway/server asks \"may THIS agent invoke <server>/<tool>?\" and gets a Zanzibar-backed allow/deny (tool-level or server-wide grant). Denials and grants are both audited, closing the MCP-authorization audit blind spot. POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"invoices\", \"tool\": \"send_payment_reminder\" }
1004
+ * An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
1005
1005
  * @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
1006
1006
  * @param {AgentsApiAuthorizeMcpRequest} requestParameters Request parameters.
1007
1007
  * @param {*} [options] Override http request option.
package/api/mcp-api.ts CHANGED
@@ -30,6 +30,10 @@ import type { GetServerResponse } from '../models';
30
30
  // @ts-ignore
31
31
  import type { ListServersResponse } from '../models';
32
32
  // @ts-ignore
33
+ import type { McpServerToolAuthorizeRequest } from '../models';
34
+ // @ts-ignore
35
+ import type { McpServerToolAuthorizeResponse } from '../models';
36
+ // @ts-ignore
33
37
  import type { ProtectedResourceMetadata } from '../models';
34
38
  /**
35
39
  * McpApi - axios parameter creator
@@ -237,6 +241,57 @@ export const McpApiAxiosParamCreator = function (configuration?: Configuration)
237
241
  options: localVarRequestOptions,
238
242
  };
239
243
  },
244
+ /**
245
+ * 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.
246
+ * @summary Per-tool authorization for an MCP server (server credential)
247
+ * @param {string} orgId
248
+ * @param {string} serverId
249
+ * @param {McpServerToolAuthorizeRequest} mcpServerToolAuthorizeRequest
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ mcpServerToolAuthorize: async (orgId: string, serverId: string, mcpServerToolAuthorizeRequest: McpServerToolAuthorizeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
254
+ // verify required parameter 'orgId' is not null or undefined
255
+ assertParamExists('mcpServerToolAuthorize', 'orgId', orgId)
256
+ // verify required parameter 'serverId' is not null or undefined
257
+ assertParamExists('mcpServerToolAuthorize', 'serverId', serverId)
258
+ // verify required parameter 'mcpServerToolAuthorizeRequest' is not null or undefined
259
+ assertParamExists('mcpServerToolAuthorize', 'mcpServerToolAuthorizeRequest', mcpServerToolAuthorizeRequest)
260
+ const localVarPath = `/orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize`
261
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
262
+ .replace(`{${"serverId"}}`, encodeURIComponent(String(serverId)));
263
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
264
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
265
+ let baseOptions;
266
+ if (configuration) {
267
+ baseOptions = configuration.baseOptions;
268
+ }
269
+
270
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
271
+ const localVarHeaderParameter = {} as any;
272
+ const localVarQueryParameter = {} as any;
273
+
274
+ // authentication ApiKeyAuth required
275
+ await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
276
+
277
+ // authentication BearerAuth required
278
+ // http bearer authentication required
279
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
280
+
281
+
282
+
283
+ localVarHeaderParameter['Content-Type'] = 'application/json';
284
+
285
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
286
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
287
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
288
+ localVarRequestOptions.data = serializeDataIfNeeded(mcpServerToolAuthorizeRequest, localVarRequestOptions, configuration)
289
+
290
+ return {
291
+ url: toPathString(localVarUrlObj),
292
+ options: localVarRequestOptions,
293
+ };
294
+ },
240
295
  /**
241
296
  * Identical to GET; the HTTP method is only recorded in the audit trail.
242
297
  * @summary Simulated MCP server authorization challenge (POST)
@@ -357,6 +412,21 @@ export const McpApiFp = function(configuration?: Configuration) {
357
412
  const localVarOperationServerBasePath = operationServerMap['McpApi.listServers']?.[localVarOperationServerIndex]?.url;
358
413
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
359
414
  },
415
+ /**
416
+ * 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.
417
+ * @summary Per-tool authorization for an MCP server (server credential)
418
+ * @param {string} orgId
419
+ * @param {string} serverId
420
+ * @param {McpServerToolAuthorizeRequest} mcpServerToolAuthorizeRequest
421
+ * @param {*} [options] Override http request option.
422
+ * @throws {RequiredError}
423
+ */
424
+ async mcpServerToolAuthorize(orgId: string, serverId: string, mcpServerToolAuthorizeRequest: McpServerToolAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<McpServerToolAuthorizeResponse>> {
425
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mcpServerToolAuthorize(orgId, serverId, mcpServerToolAuthorizeRequest, options);
426
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
427
+ const localVarOperationServerBasePath = operationServerMap['McpApi.mcpServerToolAuthorize']?.[localVarOperationServerIndex]?.url;
428
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
429
+ },
360
430
  /**
361
431
  * Identical to GET; the HTTP method is only recorded in the audit trail.
362
432
  * @summary Simulated MCP server authorization challenge (POST)
@@ -431,6 +501,16 @@ export const McpApiFactory = function (configuration?: Configuration, basePath?:
431
501
  listServers(requestParameters: McpApiListServersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListServersResponse> {
432
502
  return localVarFp.listServers(requestParameters.orgId, options).then((request) => request(axios, basePath));
433
503
  },
504
+ /**
505
+ * 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.
506
+ * @summary Per-tool authorization for an MCP server (server credential)
507
+ * @param {McpApiMcpServerToolAuthorizeRequest} requestParameters Request parameters.
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ mcpServerToolAuthorize(requestParameters: McpApiMcpServerToolAuthorizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<McpServerToolAuthorizeResponse> {
512
+ return localVarFp.mcpServerToolAuthorize(requestParameters.orgId, requestParameters.serverId, requestParameters.mcpServerToolAuthorizeRequest, options).then((request) => request(axios, basePath));
513
+ },
434
514
  /**
435
515
  * Identical to GET; the HTTP method is only recorded in the audit trail.
436
516
  * @summary Simulated MCP server authorization challenge (POST)
@@ -500,6 +580,16 @@ export interface McpApiInterface {
500
580
  */
501
581
  listServers(requestParameters: McpApiListServersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListServersResponse>;
502
582
 
583
+ /**
584
+ * 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.
585
+ * @summary Per-tool authorization for an MCP server (server credential)
586
+ * @param {McpApiMcpServerToolAuthorizeRequest} requestParameters Request parameters.
587
+ * @param {*} [options] Override http request option.
588
+ * @throws {RequiredError}
589
+ * @memberof McpApiInterface
590
+ */
591
+ mcpServerToolAuthorize(requestParameters: McpApiMcpServerToolAuthorizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<McpServerToolAuthorizeResponse>;
592
+
503
593
  /**
504
594
  * Identical to GET; the HTTP method is only recorded in the audit trail.
505
595
  * @summary Simulated MCP server authorization challenge (POST)
@@ -603,6 +693,34 @@ export interface McpApiListServersRequest {
603
693
  readonly orgId: string
604
694
  }
605
695
 
696
+ /**
697
+ * Request parameters for mcpServerToolAuthorize operation in McpApi.
698
+ * @export
699
+ * @interface McpApiMcpServerToolAuthorizeRequest
700
+ */
701
+ export interface McpApiMcpServerToolAuthorizeRequest {
702
+ /**
703
+ *
704
+ * @type {string}
705
+ * @memberof McpApiMcpServerToolAuthorize
706
+ */
707
+ readonly orgId: string
708
+
709
+ /**
710
+ *
711
+ * @type {string}
712
+ * @memberof McpApiMcpServerToolAuthorize
713
+ */
714
+ readonly serverId: string
715
+
716
+ /**
717
+ *
718
+ * @type {McpServerToolAuthorizeRequest}
719
+ * @memberof McpApiMcpServerToolAuthorize
720
+ */
721
+ readonly mcpServerToolAuthorizeRequest: McpServerToolAuthorizeRequest
722
+ }
723
+
606
724
  /**
607
725
  * Request parameters for postServerChallenge operation in McpApi.
608
726
  * @export
@@ -691,6 +809,18 @@ export class McpApi extends BaseAPI implements McpApiInterface {
691
809
  return McpApiFp(this.configuration).listServers(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
692
810
  }
693
811
 
812
+ /**
813
+ * 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.
814
+ * @summary Per-tool authorization for an MCP server (server credential)
815
+ * @param {McpApiMcpServerToolAuthorizeRequest} requestParameters Request parameters.
816
+ * @param {*} [options] Override http request option.
817
+ * @throws {RequiredError}
818
+ * @memberof McpApi
819
+ */
820
+ public mcpServerToolAuthorize(requestParameters: McpApiMcpServerToolAuthorizeRequest, options?: RawAxiosRequestConfig) {
821
+ return McpApiFp(this.configuration).mcpServerToolAuthorize(requestParameters.orgId, requestParameters.serverId, requestParameters.mcpServerToolAuthorizeRequest, options).then((request) => request(this.axios, this.basePath));
822
+ }
823
+
694
824
  /**
695
825
  * Identical to GET; the HTTP method is only recorded in the audit trail.
696
826
  * @summary Simulated MCP server authorization challenge (POST)
@@ -36,7 +36,7 @@ import type { OpenIdConfiguration } from '../models';
36
36
  export const WellKnownApiAxiosParamCreator = function (configuration?: Configuration) {
37
37
  return {
38
38
  /**
39
- * 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.
39
+ * 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.
40
40
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
41
41
  * @param {string} orgId
42
42
  * @param {*} [options] Override http request option.
@@ -104,7 +104,7 @@ export const WellKnownApiAxiosParamCreator = function (configuration?: Configura
104
104
  };
105
105
  },
106
106
  /**
107
- * 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.
107
+ * 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.
108
108
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
109
109
  * @param {string} orgId
110
110
  * @param {*} [options] Override http request option.
@@ -182,7 +182,7 @@ export const WellKnownApiFp = function(configuration?: Configuration) {
182
182
  const localVarAxiosParamCreator = WellKnownApiAxiosParamCreator(configuration)
183
183
  return {
184
184
  /**
185
- * 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.
185
+ * 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.
186
186
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
187
187
  * @param {string} orgId
188
188
  * @param {*} [options] Override http request option.
@@ -208,7 +208,7 @@ export const WellKnownApiFp = function(configuration?: Configuration) {
208
208
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
209
209
  },
210
210
  /**
211
- * 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.
211
+ * 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.
212
212
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
213
213
  * @param {string} orgId
214
214
  * @param {*} [options] Override http request option.
@@ -244,7 +244,7 @@ export const WellKnownApiFactory = function (configuration?: Configuration, base
244
244
  const localVarFp = WellKnownApiFp(configuration)
245
245
  return {
246
246
  /**
247
- * 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.
247
+ * 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.
248
248
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
249
249
  * @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
250
250
  * @param {*} [options] Override http request option.
@@ -264,7 +264,7 @@ export const WellKnownApiFactory = function (configuration?: Configuration, base
264
264
  return localVarFp.getJwks(requestParameters.orgId, options).then((request) => request(axios, basePath));
265
265
  },
266
266
  /**
267
- * 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.
267
+ * 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.
268
268
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
269
269
  * @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
270
270
  * @param {*} [options] Override http request option.
@@ -293,7 +293,7 @@ export const WellKnownApiFactory = function (configuration?: Configuration, base
293
293
  */
294
294
  export interface WellKnownApiInterface {
295
295
  /**
296
- * 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.
296
+ * 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.
297
297
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
298
298
  * @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
299
299
  * @param {*} [options] Override http request option.
@@ -313,7 +313,7 @@ export interface WellKnownApiInterface {
313
313
  getJwks(requestParameters: WellKnownApiGetJwksRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonWebKeySet>;
314
314
 
315
315
  /**
316
- * 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.
316
+ * 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.
317
317
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
318
318
  * @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
319
319
  * @param {*} [options] Override http request option.
@@ -398,7 +398,7 @@ export interface WellKnownApiGetSsfConfigurationRequest {
398
398
  */
399
399
  export class WellKnownApi extends BaseAPI implements WellKnownApiInterface {
400
400
  /**
401
- * 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.
401
+ * 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.
402
402
  * @summary OAuth 2.0 authorization server metadata (RFC 8414)
403
403
  * @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
404
404
  * @param {*} [options] Override http request option.
@@ -422,7 +422,7 @@ export class WellKnownApi extends BaseAPI implements WellKnownApiInterface {
422
422
  }
423
423
 
424
424
  /**
425
- * 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.
425
+ * 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.
426
426
  * @summary OpenID Provider configuration (OIDC Discovery 1.0)
427
427
  * @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
428
428
  * @param {*} [options] Override http request option.
@@ -110,7 +110,7 @@ export declare const AAuthApiAxiosParamCreator: (configuration?: Configuration)
110
110
  */
111
111
  getResourceMetadataById: (orgId: string, resourceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
112
112
  /**
113
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
113
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
114
114
  * @summary Agent Token Endpoint
115
115
  * @param {string} orgId
116
116
  * @param {IssueAgentTokenRequest} issueAgentTokenRequest
@@ -254,7 +254,7 @@ export declare const AAuthApiFp: (configuration?: Configuration) => {
254
254
  */
255
255
  getResourceMetadataById(orgId: string, resourceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
256
256
  /**
257
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
257
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
258
258
  * @summary Agent Token Endpoint
259
259
  * @param {string} orgId
260
260
  * @param {IssueAgentTokenRequest} issueAgentTokenRequest
@@ -394,7 +394,7 @@ export declare const AAuthApiFactory: (configuration?: Configuration, basePath?:
394
394
  */
395
395
  getResourceMetadataById(requestParameters: AAuthApiGetResourceMetadataByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
396
396
  /**
397
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
397
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
398
398
  * @summary Agent Token Endpoint
399
399
  * @param {AAuthApiIssueAgentTokenRequest} requestParameters Request parameters.
400
400
  * @param {*} [options] Override http request option.
@@ -537,7 +537,7 @@ export interface AAuthApiInterface {
537
537
  */
538
538
  getResourceMetadataById(requestParameters: AAuthApiGetResourceMetadataByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
539
539
  /**
540
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
540
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
541
541
  * @summary Agent Token Endpoint
542
542
  * @param {AAuthApiIssueAgentTokenRequest} requestParameters Request parameters.
543
543
  * @param {*} [options] Override http request option.
@@ -962,7 +962,7 @@ export declare class AAuthApi extends BaseAPI implements AAuthApiInterface {
962
962
  */
963
963
  getResourceMetadataById(requestParameters: AAuthApiGetResourceMetadataByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
964
964
  /**
965
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
965
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
966
966
  * @summary Agent Token Endpoint
967
967
  * @param {AAuthApiIssueAgentTokenRequest} requestParameters Request parameters.
968
968
  * @param {*} [options] Override http request option.
@@ -316,7 +316,7 @@ const AAuthApiAxiosParamCreator = function (configuration) {
316
316
  };
317
317
  }),
318
318
  /**
319
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
319
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
320
320
  * @summary Agent Token Endpoint
321
321
  * @param {string} orgId
322
322
  * @param {IssueAgentTokenRequest} issueAgentTokenRequest
@@ -732,7 +732,7 @@ const AAuthApiFp = function (configuration) {
732
732
  });
733
733
  },
734
734
  /**
735
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
735
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
736
736
  * @summary Agent Token Endpoint
737
737
  * @param {string} orgId
738
738
  * @param {IssueAgentTokenRequest} issueAgentTokenRequest
@@ -950,7 +950,7 @@ const AAuthApiFactory = function (configuration, basePath, axios) {
950
950
  return localVarFp.getResourceMetadataById(requestParameters.orgId, requestParameters.resourceId, options).then((request) => request(axios, basePath));
951
951
  },
952
952
  /**
953
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
953
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
954
954
  * @summary Agent Token Endpoint
955
955
  * @param {AAuthApiIssueAgentTokenRequest} requestParameters Request parameters.
956
956
  * @param {*} [options] Override http request option.
@@ -1128,7 +1128,7 @@ class AAuthApi extends base_1.BaseAPI {
1128
1128
  return (0, exports.AAuthApiFp)(this.configuration).getResourceMetadataById(requestParameters.orgId, requestParameters.resourceId, options).then((request) => request(this.axios, this.basePath));
1129
1129
  }
1130
1130
  /**
1131
- * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @target-uri, content-type, content-digest, authorization
1131
+ * Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
1132
1132
  * @summary Agent Token Endpoint
1133
1133
  * @param {AAuthApiIssueAgentTokenRequest} requestParameters Request parameters.
1134
1134
  * @param {*} [options] Override http request option.