@lumoauth/api-client 1.0.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 (151) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/.openapi-generator-ignore +1 -1
  3. package/README.md +12 -2
  4. package/api/aauth-api.ts +5 -5
  5. package/api/admin-mcp-api.ts +5 -5
  6. package/api/admin-oauth-clients-api.ts +118 -0
  7. package/api/agents-api.ts +5 -5
  8. package/api/authorization-api.ts +5 -26
  9. package/api/mcp-api.ts +130 -0
  10. package/api/well-known-api.ts +10 -10
  11. package/dist/api/aauth-api.d.ts +5 -5
  12. package/dist/api/aauth-api.js +4 -4
  13. package/dist/api/admin-mcp-api.d.ts +5 -5
  14. package/dist/api/admin-mcp-api.js +4 -4
  15. package/dist/api/admin-oauth-clients-api.d.ts +65 -0
  16. package/dist/api/admin-oauth-clients-api.js +77 -0
  17. package/dist/api/agents-api.d.ts +5 -5
  18. package/dist/api/agents-api.js +4 -4
  19. package/dist/api/authorization-api.d.ts +5 -5
  20. package/dist/api/authorization-api.js +4 -18
  21. package/dist/api/mcp-api.d.ts +73 -0
  22. package/dist/api/mcp-api.js +82 -0
  23. package/dist/api/well-known-api.d.ts +10 -10
  24. package/dist/api/well-known-api.js +8 -8
  25. package/dist/esm/api/aauth-api.d.ts +5 -5
  26. package/dist/esm/api/aauth-api.js +4 -4
  27. package/dist/esm/api/admin-mcp-api.d.ts +5 -5
  28. package/dist/esm/api/admin-mcp-api.js +4 -4
  29. package/dist/esm/api/admin-oauth-clients-api.d.ts +65 -0
  30. package/dist/esm/api/admin-oauth-clients-api.js +78 -1
  31. package/dist/esm/api/agents-api.d.ts +5 -5
  32. package/dist/esm/api/agents-api.js +4 -4
  33. package/dist/esm/api/authorization-api.d.ts +5 -5
  34. package/dist/esm/api/authorization-api.js +4 -18
  35. package/dist/esm/api/mcp-api.d.ts +73 -0
  36. package/dist/esm/api/mcp-api.js +83 -1
  37. package/dist/esm/api/well-known-api.d.ts +10 -10
  38. package/dist/esm/api/well-known-api.js +8 -8
  39. package/dist/esm/models/admin-agents-generate-token-request.d.ts +7 -1
  40. package/dist/esm/models/admin-agents-generate-token-response-data.d.ts +12 -0
  41. package/dist/esm/models/admin-clients-cimd-check-request.d.ts +30 -0
  42. package/dist/esm/models/admin-clients-cimd-check-request.js +14 -0
  43. package/dist/esm/models/admin-clients-cimd-check-response.d.ts +25 -0
  44. package/dist/esm/models/admin-clients-cimd-check-response.js +14 -0
  45. package/dist/esm/models/attest-response.d.ts +2 -1
  46. package/dist/esm/models/attest-response.js +1 -0
  47. package/dist/esm/models/authentication-settings.d.ts +1 -1
  48. package/dist/esm/models/authorization-server-metadata.d.ts +1 -1
  49. package/dist/esm/models/authorize-mcp-request.d.ts +1 -1
  50. package/dist/esm/models/cimd-check-result-effective.d.ts +112 -0
  51. package/dist/esm/models/cimd-check-result-effective.js +31 -0
  52. package/dist/esm/models/cimd-check-result-shadow-client.d.ts +30 -0
  53. package/dist/esm/models/cimd-check-result-shadow-client.js +14 -0
  54. package/dist/esm/models/cimd-check-result.d.ts +76 -0
  55. package/dist/esm/models/cimd-check-result.js +14 -0
  56. package/dist/esm/models/get-protected-resource-metadata-root-response1-resources-item.d.ts +1 -1
  57. package/dist/esm/models/index.d.ts +8 -0
  58. package/dist/esm/models/index.js +8 -0
  59. package/dist/esm/models/mcp-server-tool-authorize-request-subject.d.ts +38 -0
  60. package/dist/esm/models/mcp-server-tool-authorize-request-subject.js +22 -0
  61. package/dist/esm/models/mcp-server-tool-authorize-request.d.ts +31 -0
  62. package/dist/esm/models/mcp-server-tool-authorize-request.js +14 -0
  63. package/dist/esm/models/mcp-server-tool-authorize-response.d.ts +36 -0
  64. package/dist/esm/models/mcp-server-tool-authorize-response.js +14 -0
  65. package/dist/esm/models/mcp-server.d.ts +18 -0
  66. package/dist/esm/models/open-id-configuration.d.ts +2 -2
  67. package/dist/esm/models/protected-resource-metadata.d.ts +1 -1
  68. package/dist/esm/models/push-enrollment-started.d.ts +7 -1
  69. package/dist/esm/models/single-server-metadata.d.ts +1 -1
  70. package/dist/models/admin-agents-generate-token-request.d.ts +7 -1
  71. package/dist/models/admin-agents-generate-token-response-data.d.ts +12 -0
  72. package/dist/models/admin-clients-cimd-check-request.d.ts +30 -0
  73. package/dist/models/admin-clients-cimd-check-request.js +15 -0
  74. package/dist/models/admin-clients-cimd-check-response.d.ts +25 -0
  75. package/dist/models/admin-clients-cimd-check-response.js +15 -0
  76. package/dist/models/attest-response.d.ts +2 -1
  77. package/dist/models/attest-response.js +1 -0
  78. package/dist/models/authentication-settings.d.ts +1 -1
  79. package/dist/models/authorization-server-metadata.d.ts +1 -1
  80. package/dist/models/authorize-mcp-request.d.ts +1 -1
  81. package/dist/models/cimd-check-result-effective.d.ts +112 -0
  82. package/dist/models/cimd-check-result-effective.js +34 -0
  83. package/dist/models/cimd-check-result-shadow-client.d.ts +30 -0
  84. package/dist/models/cimd-check-result-shadow-client.js +15 -0
  85. package/dist/models/cimd-check-result.d.ts +76 -0
  86. package/dist/models/cimd-check-result.js +15 -0
  87. package/dist/models/get-protected-resource-metadata-root-response1-resources-item.d.ts +1 -1
  88. package/dist/models/index.d.ts +8 -0
  89. package/dist/models/index.js +8 -0
  90. package/dist/models/mcp-server-tool-authorize-request-subject.d.ts +38 -0
  91. package/dist/models/mcp-server-tool-authorize-request-subject.js +25 -0
  92. package/dist/models/mcp-server-tool-authorize-request.d.ts +31 -0
  93. package/dist/models/mcp-server-tool-authorize-request.js +15 -0
  94. package/dist/models/mcp-server-tool-authorize-response.d.ts +36 -0
  95. package/dist/models/mcp-server-tool-authorize-response.js +15 -0
  96. package/dist/models/mcp-server.d.ts +18 -0
  97. package/dist/models/open-id-configuration.d.ts +2 -2
  98. package/dist/models/protected-resource-metadata.d.ts +1 -1
  99. package/dist/models/push-enrollment-started.d.ts +7 -1
  100. package/dist/models/single-server-metadata.d.ts +1 -1
  101. package/docs/AAuthApi.md +1 -1
  102. package/docs/AdminAgentsApi.md +1 -1
  103. package/docs/AdminAgentsGenerateTokenRequest.md +3 -1
  104. package/docs/AdminAgentsGenerateTokenResponseData.md +4 -0
  105. package/docs/AdminClientsCimdCheckRequest.md +22 -0
  106. package/docs/AdminClientsCimdCheckResponse.md +20 -0
  107. package/docs/AdminMcpApi.md +1 -1
  108. package/docs/AdminOAuthClientsApi.md +57 -0
  109. package/docs/AgentsApi.md +4 -3
  110. package/docs/AuthenticationSettings.md +1 -1
  111. package/docs/AuthorizationApi.md +8 -8
  112. package/docs/AuthorizationServerMetadata.md +1 -1
  113. package/docs/AuthorizeMcpRequest.md +1 -1
  114. package/docs/CimdCheckResult.md +37 -0
  115. package/docs/CimdCheckResultEffective.md +45 -0
  116. package/docs/CimdCheckResultShadowClient.md +23 -0
  117. package/docs/EnrollAuthenticator201Response.md +3 -1
  118. package/docs/GetProtectedResourceMetadataRoot200Response.md +1 -1
  119. package/docs/GetProtectedResourceMetadataRootResponse1ResourcesItem.md +1 -1
  120. package/docs/McpApi.md +64 -0
  121. package/docs/McpServer.md +6 -0
  122. package/docs/McpServerToolAuthorizeRequest.md +22 -0
  123. package/docs/McpServerToolAuthorizeRequestSubject.md +22 -0
  124. package/docs/McpServerToolAuthorizeResponse.md +24 -0
  125. package/docs/OpenIdConfiguration.md +2 -2
  126. package/docs/ProtectedResourceMetadata.md +1 -1
  127. package/docs/PushEnrollmentStarted.md +3 -1
  128. package/docs/SingleServerMetadata.md +1 -1
  129. package/docs/WellKnownApi.md +4 -4
  130. package/models/admin-agents-generate-token-request.ts +7 -1
  131. package/models/admin-agents-generate-token-response-data.ts +12 -0
  132. package/models/admin-clients-cimd-check-request.ts +36 -0
  133. package/models/admin-clients-cimd-check-response.ts +33 -0
  134. package/models/attest-response.ts +2 -1
  135. package/models/authentication-settings.ts +1 -1
  136. package/models/authorization-server-metadata.ts +1 -1
  137. package/models/authorize-mcp-request.ts +1 -1
  138. package/models/cimd-check-result-effective.ts +120 -0
  139. package/models/cimd-check-result-shadow-client.ts +36 -0
  140. package/models/cimd-check-result.ts +84 -0
  141. package/models/get-protected-resource-metadata-root-response1-resources-item.ts +1 -1
  142. package/models/index.ts +8 -0
  143. package/models/mcp-server-tool-authorize-request-subject.ts +46 -0
  144. package/models/mcp-server-tool-authorize-request.ts +39 -0
  145. package/models/mcp-server-tool-authorize-response.ts +42 -0
  146. package/models/mcp-server.ts +18 -0
  147. package/models/open-id-configuration.ts +2 -2
  148. package/models/protected-resource-metadata.ts +1 -1
  149. package/models/push-enrollment-started.ts +7 -1
  150. package/models/single-server-metadata.ts +1 -1
  151. package/package.json +1 -1
@@ -94,6 +94,8 @@ docs/AdminAuditLogsStatsResponse.md
94
94
  docs/AdminAuditLogsStatsResponseData.md
95
95
  docs/AdminAuditLogsStatsResponseDataPeriod.md
96
96
  docs/AdminClientTokensRevokeAllResponse.md
97
+ docs/AdminClientsCimdCheckRequest.md
98
+ docs/AdminClientsCimdCheckResponse.md
97
99
  docs/AdminEmailApi.md
98
100
  docs/AdminEmailTemplatesListResponse.md
99
101
  docs/AdminEmailTemplatesPreviewResponse.md
@@ -242,6 +244,9 @@ docs/CheckPermissionResponse.md
242
244
  docs/CheckPermissionsBulkResponse.md
243
245
  docs/CheckRelationResponse.md
244
246
  docs/CheckRelationScopedResponse.md
247
+ docs/CimdCheckResult.md
248
+ docs/CimdCheckResultEffective.md
249
+ docs/CimdCheckResultShadowClient.md
245
250
  docs/CompleteTaskResponse.md
246
251
  docs/CreateApprovalRequest.md
247
252
  docs/CreateApprovalResponse.md
@@ -342,6 +347,9 @@ docs/McpApi.md
342
347
  docs/McpServer.md
343
348
  docs/McpServerPosture.md
344
349
  docs/McpServerPostureChecksInner.md
350
+ docs/McpServerToolAuthorizeRequest.md
351
+ docs/McpServerToolAuthorizeRequestSubject.md
352
+ docs/McpServerToolAuthorizeResponse.md
345
353
  docs/MessageResponse.md
346
354
  docs/MfaApi.md
347
355
  docs/MfaAuthenticator.md
@@ -507,6 +515,8 @@ models/admin-audit-logs-stats-response-data-period.ts
507
515
  models/admin-audit-logs-stats-response-data.ts
508
516
  models/admin-audit-logs-stats-response.ts
509
517
  models/admin-client-tokens-revoke-all-response.ts
518
+ models/admin-clients-cimd-check-request.ts
519
+ models/admin-clients-cimd-check-response.ts
510
520
  models/admin-email-templates-list-response.ts
511
521
  models/admin-email-templates-preview-response.ts
512
522
  models/admin-email-templates-variables-response.ts
@@ -639,6 +649,9 @@ models/check-permission-response.ts
639
649
  models/check-permissions-bulk-response.ts
640
650
  models/check-relation-response.ts
641
651
  models/check-relation-scoped-response.ts
652
+ models/cimd-check-result-effective.ts
653
+ models/cimd-check-result-shadow-client.ts
654
+ models/cimd-check-result.ts
642
655
  models/complete-task-response.ts
643
656
  models/create-approval-request.ts
644
657
  models/create-approval-response.ts
@@ -736,6 +749,9 @@ models/list-users-response.ts
736
749
  models/mark-user-verified-response.ts
737
750
  models/mcp-server-posture-checks-inner.ts
738
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
739
755
  models/mcp-server.ts
740
756
  models/message-response.ts
741
757
  models/mfa-authenticator-last-used-context.ts
@@ -1,4 +1,4 @@
1
- # Managed by server/scripts/sdk-codegen (passed via --ignore-file-override).
1
+ # Managed by server/sdk-codegen (pre-seeded into the output dir by generate.sh).
2
2
  # Suppresses generator-emitted repo junk that does not belong in api-clients.
3
3
  .travis.yml
4
4
  .gitlab-ci.yml
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.0.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.0.0 --save
48
+ npm install @lumoauth/api-client@1.2.0 --save
49
49
  ```
50
50
 
51
51
  _unPublished (not recommended):_
@@ -153,6 +153,7 @@ Class | Method | HTTP request | Description
153
153
  *AdminMfaApi* | [**issueTemporaryAccessCode**](docs/AdminMfaApi.md#issuetemporaryaccesscode) | **POST** /orgs/{orgId}/api/v1/admin/users/{userId}/temporary-access-code | Issue a temporary access code
154
154
  *AdminMfaApi* | [**listUserAuthenticators**](docs/AdminMfaApi.md#listuserauthenticators) | **GET** /orgs/{orgId}/api/v1/admin/users/{userId}/authenticators | List a user\'s authenticators
155
155
  *AdminMfaApi* | [**updateMfaPolicy**](docs/AdminMfaApi.md#updatemfapolicy) | **PUT** /orgs/{orgId}/api/v1/admin/policies/mfa | Update the MFA policy
156
+ *AdminOAuthClientsApi* | [**adminClientsCimdCheck**](docs/AdminOAuthClientsApi.md#adminclientscimdcheck) | **POST** /orgs/{orgId}/api/v1/admin/clients/cimd/check | Check a Client ID Metadata Document
156
157
  *AdminOAuthClientsApi* | [**createClient**](docs/AdminOAuthClientsApi.md#createclient) | **POST** /orgs/{orgId}/api/v1/admin/clients | Create an OAuth client
157
158
  *AdminOAuthClientsApi* | [**deleteClient**](docs/AdminOAuthClientsApi.md#deleteclient) | **DELETE** /orgs/{orgId}/api/v1/admin/clients/{clientId} | Delete an OAuth client
158
159
  *AdminOAuthClientsApi* | [**disableClient**](docs/AdminOAuthClientsApi.md#disableclient) | **POST** /orgs/{orgId}/api/v1/admin/clients/{clientId}/disable | Disable an OAuth client
@@ -343,6 +344,7 @@ Class | Method | HTTP request | Description
343
344
  *McpApi* | [**getServer**](docs/McpApi.md#getserver) | **GET** /orgs/{orgId}/api/v1/mcp/servers/{serverId} | REST API: Get a specific MCP server.
344
345
  *McpApi* | [**getServerChallenge**](docs/McpApi.md#getserverchallenge) | **GET** /orgs/{orgId}/api/v1/mcp/{serverId}/challenge | Simulated MCP server authorization challenge
345
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)
346
348
  *McpApi* | [**postServerChallenge**](docs/McpApi.md#postserverchallenge) | **POST** /orgs/{orgId}/api/v1/mcp/{serverId}/challenge | Simulated MCP server authorization challenge (POST)
347
349
  *MfaApi* | [**createMfaChallenge**](docs/MfaApi.md#createmfachallenge) | **POST** /orgs/{orgId}/api/v1/mfa/challenges | Start an MFA challenge
348
350
  *MfaApi* | [**deleteAuthenticator**](docs/MfaApi.md#deleteauthenticator) | **DELETE** /orgs/{orgId}/api/v1/me/authenticators/{id} | Remove an authenticator
@@ -451,6 +453,8 @@ Class | Method | HTTP request | Description
451
453
  - [AdminAuditLogsStatsResponseData](docs/AdminAuditLogsStatsResponseData.md)
452
454
  - [AdminAuditLogsStatsResponseDataPeriod](docs/AdminAuditLogsStatsResponseDataPeriod.md)
453
455
  - [AdminClientTokensRevokeAllResponse](docs/AdminClientTokensRevokeAllResponse.md)
456
+ - [AdminClientsCimdCheckRequest](docs/AdminClientsCimdCheckRequest.md)
457
+ - [AdminClientsCimdCheckResponse](docs/AdminClientsCimdCheckResponse.md)
454
458
  - [AdminEmailTemplatesListResponse](docs/AdminEmailTemplatesListResponse.md)
455
459
  - [AdminEmailTemplatesPreviewResponse](docs/AdminEmailTemplatesPreviewResponse.md)
456
460
  - [AdminEmailTemplatesVariablesResponse](docs/AdminEmailTemplatesVariablesResponse.md)
@@ -583,6 +587,9 @@ Class | Method | HTTP request | Description
583
587
  - [CheckPermissionsBulkResponse](docs/CheckPermissionsBulkResponse.md)
584
588
  - [CheckRelationResponse](docs/CheckRelationResponse.md)
585
589
  - [CheckRelationScopedResponse](docs/CheckRelationScopedResponse.md)
590
+ - [CimdCheckResult](docs/CimdCheckResult.md)
591
+ - [CimdCheckResultEffective](docs/CimdCheckResultEffective.md)
592
+ - [CimdCheckResultShadowClient](docs/CimdCheckResultShadowClient.md)
586
593
  - [CompleteTaskResponse](docs/CompleteTaskResponse.md)
587
594
  - [CreateApprovalRequest](docs/CreateApprovalRequest.md)
588
595
  - [CreateApprovalResponse](docs/CreateApprovalResponse.md)
@@ -680,6 +687,9 @@ Class | Method | HTTP request | Description
680
687
  - [McpServer](docs/McpServer.md)
681
688
  - [McpServerPosture](docs/McpServerPosture.md)
682
689
  - [McpServerPostureChecksInner](docs/McpServerPostureChecksInner.md)
690
+ - [McpServerToolAuthorizeRequest](docs/McpServerToolAuthorizeRequest.md)
691
+ - [McpServerToolAuthorizeRequestSubject](docs/McpServerToolAuthorizeRequestSubject.md)
692
+ - [McpServerToolAuthorizeResponse](docs/McpServerToolAuthorizeResponse.md)
683
693
  - [MessageResponse](docs/MessageResponse.md)
684
694
  - [MfaAuthenticator](docs/MfaAuthenticator.md)
685
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.
@@ -22,6 +22,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
+ import type { AdminClientsCimdCheckRequest } from '../models';
26
+ // @ts-ignore
27
+ import type { AdminClientsCimdCheckResponse } from '../models';
28
+ // @ts-ignore
25
29
  import type { CreateClientResponse } from '../models';
26
30
  // @ts-ignore
27
31
  import type { GetClientResponse } from '../models';
@@ -43,6 +47,53 @@ import type { UpdateClientResponse } from '../models';
43
47
  */
44
48
  export const AdminOAuthClientsApiAxiosParamCreator = function (configuration?: Configuration) {
45
49
  return {
50
+ /**
51
+ * Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
52
+ * @summary Check a Client ID Metadata Document
53
+ * @param {string} orgId
54
+ * @param {AdminClientsCimdCheckRequest} adminClientsCimdCheckRequest
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ adminClientsCimdCheck: async (orgId: string, adminClientsCimdCheckRequest: AdminClientsCimdCheckRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
59
+ // verify required parameter 'orgId' is not null or undefined
60
+ assertParamExists('adminClientsCimdCheck', 'orgId', orgId)
61
+ // verify required parameter 'adminClientsCimdCheckRequest' is not null or undefined
62
+ assertParamExists('adminClientsCimdCheck', 'adminClientsCimdCheckRequest', adminClientsCimdCheckRequest)
63
+ const localVarPath = `/orgs/{orgId}/api/v1/admin/clients/cimd/check`
64
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
65
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
66
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
67
+ let baseOptions;
68
+ if (configuration) {
69
+ baseOptions = configuration.baseOptions;
70
+ }
71
+
72
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
73
+ const localVarHeaderParameter = {} as any;
74
+ const localVarQueryParameter = {} as any;
75
+
76
+ // authentication ApiKeyAuth required
77
+ await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
78
+
79
+ // authentication BearerAuth required
80
+ // http bearer authentication required
81
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
82
+
83
+
84
+
85
+ localVarHeaderParameter['Content-Type'] = 'application/json';
86
+
87
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
88
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
89
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
90
+ localVarRequestOptions.data = serializeDataIfNeeded(adminClientsCimdCheckRequest, localVarRequestOptions, configuration)
91
+
92
+ return {
93
+ url: toPathString(localVarUrlObj),
94
+ options: localVarRequestOptions,
95
+ };
96
+ },
46
97
  /**
47
98
  *
48
99
  * @summary Create an OAuth client
@@ -540,6 +591,20 @@ export const AdminOAuthClientsApiAxiosParamCreator = function (configuration?: C
540
591
  export const AdminOAuthClientsApiFp = function(configuration?: Configuration) {
541
592
  const localVarAxiosParamCreator = AdminOAuthClientsApiAxiosParamCreator(configuration)
542
593
  return {
594
+ /**
595
+ * Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
596
+ * @summary Check a Client ID Metadata Document
597
+ * @param {string} orgId
598
+ * @param {AdminClientsCimdCheckRequest} adminClientsCimdCheckRequest
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ */
602
+ async adminClientsCimdCheck(orgId: string, adminClientsCimdCheckRequest: AdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminClientsCimdCheckResponse>> {
603
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminClientsCimdCheck(orgId, adminClientsCimdCheckRequest, options);
604
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
605
+ const localVarOperationServerBasePath = operationServerMap['AdminOAuthClientsApi.adminClientsCimdCheck']?.[localVarOperationServerIndex]?.url;
606
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
607
+ },
543
608
  /**
544
609
  *
545
610
  * @summary Create an OAuth client
@@ -702,6 +767,16 @@ export const AdminOAuthClientsApiFp = function(configuration?: Configuration) {
702
767
  export const AdminOAuthClientsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
703
768
  const localVarFp = AdminOAuthClientsApiFp(configuration)
704
769
  return {
770
+ /**
771
+ * Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
772
+ * @summary Check a Client ID Metadata Document
773
+ * @param {AdminOAuthClientsApiAdminClientsCimdCheckRequest} requestParameters Request parameters.
774
+ * @param {*} [options] Override http request option.
775
+ * @throws {RequiredError}
776
+ */
777
+ adminClientsCimdCheck(requestParameters: AdminOAuthClientsApiAdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminClientsCimdCheckResponse> {
778
+ return localVarFp.adminClientsCimdCheck(requestParameters.orgId, requestParameters.adminClientsCimdCheckRequest, options).then((request) => request(axios, basePath));
779
+ },
705
780
  /**
706
781
  *
707
782
  * @summary Create an OAuth client
@@ -821,6 +896,16 @@ export const AdminOAuthClientsApiFactory = function (configuration?: Configurati
821
896
  * @interface AdminOAuthClientsApi
822
897
  */
823
898
  export interface AdminOAuthClientsApiInterface {
899
+ /**
900
+ * Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
901
+ * @summary Check a Client ID Metadata Document
902
+ * @param {AdminOAuthClientsApiAdminClientsCimdCheckRequest} requestParameters Request parameters.
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ * @memberof AdminOAuthClientsApiInterface
906
+ */
907
+ adminClientsCimdCheck(requestParameters: AdminOAuthClientsApiAdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminClientsCimdCheckResponse>;
908
+
824
909
  /**
825
910
  *
826
911
  * @summary Create an OAuth client
@@ -933,6 +1018,27 @@ export interface AdminOAuthClientsApiInterface {
933
1018
 
934
1019
  }
935
1020
 
1021
+ /**
1022
+ * Request parameters for adminClientsCimdCheck operation in AdminOAuthClientsApi.
1023
+ * @export
1024
+ * @interface AdminOAuthClientsApiAdminClientsCimdCheckRequest
1025
+ */
1026
+ export interface AdminOAuthClientsApiAdminClientsCimdCheckRequest {
1027
+ /**
1028
+ *
1029
+ * @type {string}
1030
+ * @memberof AdminOAuthClientsApiAdminClientsCimdCheck
1031
+ */
1032
+ readonly orgId: string
1033
+
1034
+ /**
1035
+ *
1036
+ * @type {AdminClientsCimdCheckRequest}
1037
+ * @memberof AdminOAuthClientsApiAdminClientsCimdCheck
1038
+ */
1039
+ readonly adminClientsCimdCheckRequest: AdminClientsCimdCheckRequest
1040
+ }
1041
+
936
1042
  /**
937
1043
  * Request parameters for createClient operation in AdminOAuthClientsApi.
938
1044
  * @export
@@ -1157,6 +1263,18 @@ export interface AdminOAuthClientsApiUpdateClientRequest {
1157
1263
  * @extends {BaseAPI}
1158
1264
  */
1159
1265
  export class AdminOAuthClientsApi extends BaseAPI implements AdminOAuthClientsApiInterface {
1266
+ /**
1267
+ * Fetches and validates the metadata document at `client_id` exactly as the authorization server does (SSRF guard, domain allow-list, size and content-type limits, schema rules) and returns the effective client: redirect URIs, grant types and scopes after the organization policy is applied, plus what the document asked for that was dropped. Works even while CIMD is switched off for the organization (`enabled: false`), so a document can be validated before the switch is flipped. Nothing is registered or stored. `refresh: true` discards the cached copy first.
1268
+ * @summary Check a Client ID Metadata Document
1269
+ * @param {AdminOAuthClientsApiAdminClientsCimdCheckRequest} requestParameters Request parameters.
1270
+ * @param {*} [options] Override http request option.
1271
+ * @throws {RequiredError}
1272
+ * @memberof AdminOAuthClientsApi
1273
+ */
1274
+ public adminClientsCimdCheck(requestParameters: AdminOAuthClientsApiAdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig) {
1275
+ return AdminOAuthClientsApiFp(this.configuration).adminClientsCimdCheck(requestParameters.orgId, requestParameters.adminClientsCimdCheckRequest, options).then((request) => request(this.axios, this.basePath));
1276
+ }
1277
+
1160
1278
  /**
1161
1279
  *
1162
1280
  * @summary Create an OAuth client
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.
@@ -84,9 +84,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
84
84
  const localVarHeaderParameter = {} as any;
85
85
  const localVarQueryParameter = {} as any;
86
86
 
87
- // authentication ApiKeyAuth required
88
- await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
89
-
90
87
  // authentication BearerAuth required
91
88
  // http bearer authentication required
92
89
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
@@ -125,9 +122,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
125
122
  const localVarHeaderParameter = {} as any;
126
123
  const localVarQueryParameter = {} as any;
127
124
 
128
- // authentication ApiKeyAuth required
129
- await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
130
-
131
125
  // authentication BearerAuth required
132
126
  // http bearer authentication required
133
127
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
@@ -556,9 +550,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
556
550
  const localVarHeaderParameter = {} as any;
557
551
  const localVarQueryParameter = {} as any;
558
552
 
559
- // authentication ApiKeyAuth required
560
- await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
561
-
562
553
  // authentication BearerAuth required
563
554
  // http bearer authentication required
564
555
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
@@ -605,9 +596,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
605
596
  const localVarHeaderParameter = {} as any;
606
597
  const localVarQueryParameter = {} as any;
607
598
 
608
- // authentication ApiKeyAuth required
609
- await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
610
-
611
599
  // authentication BearerAuth required
612
600
  // http bearer authentication required
613
601
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
@@ -647,9 +635,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
647
635
  const localVarHeaderParameter = {} as any;
648
636
  const localVarQueryParameter = {} as any;
649
637
 
650
- // authentication ApiKeyAuth required
651
- await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
652
-
653
638
  // authentication BearerAuth required
654
639
  // http bearer authentication required
655
640
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
@@ -670,7 +655,7 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
670
655
  };
671
656
  },
672
657
  /**
673
- * GET /api/v1/authz/permissions
658
+ * GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
674
659
  * @summary List the caller\'s effective permissions
675
660
  * @param {*} [options] Override http request option.
676
661
  * @throws {RequiredError}
@@ -741,9 +726,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
741
726
  const localVarHeaderParameter = {} as any;
742
727
  const localVarQueryParameter = {} as any;
743
728
 
744
- // authentication ApiKeyAuth required
745
- await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
746
-
747
729
  // authentication BearerAuth required
748
730
  // http bearer authentication required
749
731
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
@@ -790,9 +772,6 @@ export const AuthorizationApiAxiosParamCreator = function (configuration?: Confi
790
772
  const localVarHeaderParameter = {} as any;
791
773
  const localVarQueryParameter = {} as any;
792
774
 
793
- // authentication ApiKeyAuth required
794
- await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
795
-
796
775
  // authentication BearerAuth required
797
776
  // http bearer authentication required
798
777
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
@@ -1011,7 +990,7 @@ export const AuthorizationApiFp = function(configuration?: Configuration) {
1011
990
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1012
991
  },
1013
992
  /**
1014
- * GET /api/v1/authz/permissions
993
+ * GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
1015
994
  * @summary List the caller\'s effective permissions
1016
995
  * @param {*} [options] Override http request option.
1017
996
  * @throws {RequiredError}
@@ -1207,7 +1186,7 @@ export const AuthorizationApiFactory = function (configuration?: Configuration,
1207
1186
  return localVarFp.listAttributeDefinitions(requestParameters.orgId, requestParameters.type, options).then((request) => request(axios, basePath));
1208
1187
  },
1209
1188
  /**
1210
- * GET /api/v1/authz/permissions
1189
+ * GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
1211
1190
  * @summary List the caller\'s effective permissions
1212
1191
  * @param {*} [options] Override http request option.
1213
1192
  * @throws {RequiredError}
@@ -1388,7 +1367,7 @@ export interface AuthorizationApiInterface {
1388
1367
  listAttributeDefinitions(requestParameters: AuthorizationApiListAttributeDefinitionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListAttributeDefinitionsResponse>;
1389
1368
 
1390
1369
  /**
1391
- * GET /api/v1/authz/permissions
1370
+ * GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
1392
1371
  * @summary List the caller\'s effective permissions
1393
1372
  * @param {*} [options] Override http request option.
1394
1373
  * @throws {RequiredError}
@@ -1802,7 +1781,7 @@ export class AuthorizationApi extends BaseAPI implements AuthorizationApiInterfa
1802
1781
  }
1803
1782
 
1804
1783
  /**
1805
- * GET /api/v1/authz/permissions
1784
+ * GET /api/v1/authz/permissions Inventory endpoint: a bearer access token needs the `authz:read` scope (the check endpoints stay open to any authenticated token).
1806
1785
  * @summary List the caller\'s effective permissions
1807
1786
  * @param {*} [options] Override http request option.
1808
1787
  * @throws {RequiredError}