@lumoauth/api-client 1.3.0 → 1.5.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 (237) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +19 -5
  3. package/api/admin-agents-api.ts +166 -10
  4. package/api/admin-mcp-api.ts +5 -5
  5. package/api/admin-oauth-clients-api.ts +5 -5
  6. package/api/admin-sandbox-api.ts +5 -5
  7. package/api/admin-users-api.ts +27 -26
  8. package/api/admin-webhooks-api.ts +25 -25
  9. package/api/agents-api.ts +118 -0
  10. package/api/oauth-api.ts +111 -0
  11. package/dist/api/admin-agents-api.d.ts +94 -4
  12. package/dist/api/admin-agents-api.js +100 -10
  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 +5 -5
  16. package/dist/api/admin-oauth-clients-api.js +4 -4
  17. package/dist/api/admin-sandbox-api.d.ts +5 -5
  18. package/dist/api/admin-sandbox-api.js +4 -4
  19. package/dist/api/admin-users-api.d.ts +27 -26
  20. package/dist/api/admin-users-api.js +21 -20
  21. package/dist/api/admin-webhooks-api.d.ts +25 -25
  22. package/dist/api/admin-webhooks-api.js +20 -20
  23. package/dist/api/agents-api.d.ts +65 -0
  24. package/dist/api/agents-api.js +77 -0
  25. package/dist/api/oauth-api.d.ts +65 -0
  26. package/dist/api/oauth-api.js +72 -0
  27. package/dist/esm/api/admin-agents-api.d.ts +94 -4
  28. package/dist/esm/api/admin-agents-api.js +100 -10
  29. package/dist/esm/api/admin-mcp-api.d.ts +5 -5
  30. package/dist/esm/api/admin-mcp-api.js +4 -4
  31. package/dist/esm/api/admin-oauth-clients-api.d.ts +5 -5
  32. package/dist/esm/api/admin-oauth-clients-api.js +4 -4
  33. package/dist/esm/api/admin-sandbox-api.d.ts +5 -5
  34. package/dist/esm/api/admin-sandbox-api.js +4 -4
  35. package/dist/esm/api/admin-users-api.d.ts +27 -26
  36. package/dist/esm/api/admin-users-api.js +21 -20
  37. package/dist/esm/api/admin-webhooks-api.d.ts +25 -25
  38. package/dist/esm/api/admin-webhooks-api.js +20 -20
  39. package/dist/esm/api/agents-api.d.ts +65 -0
  40. package/dist/esm/api/agents-api.js +77 -0
  41. package/dist/esm/api/oauth-api.d.ts +65 -0
  42. package/dist/esm/api/oauth-api.js +73 -1
  43. package/dist/esm/models/abac-attribute-definition.d.ts +1 -1
  44. package/dist/esm/models/abac-resource-attribute.d.ts +1 -1
  45. package/dist/esm/models/admin-agents-agents-rotate-key-request.d.ts +30 -0
  46. package/dist/esm/models/admin-agents-agents-rotate-key-request.js +14 -0
  47. package/dist/esm/models/admin-agents-agents-rotate-key-response.d.ts +6 -0
  48. package/dist/esm/models/admin-agents-create-request.d.ts +8 -0
  49. package/dist/esm/models/admin-agents-report-usage-request.d.ts +30 -0
  50. package/dist/esm/models/admin-agents-report-usage-request.js +14 -0
  51. package/dist/esm/models/admin-agents-report-usage-response-data-recorded.d.ts +30 -0
  52. package/dist/esm/models/admin-agents-report-usage-response-data-recorded.js +14 -0
  53. package/dist/esm/models/admin-agents-report-usage-response-data.d.ts +33 -0
  54. package/dist/esm/models/admin-agents-report-usage-response-data.js +14 -0
  55. package/dist/esm/models/admin-agents-report-usage-response.d.ts +25 -0
  56. package/dist/esm/models/admin-agents-report-usage-response.js +14 -0
  57. package/dist/esm/models/admin-audit-logs-retention-response-data.d.ts +21 -3
  58. package/dist/esm/models/admin-identities-link-request.d.ts +8 -1
  59. package/dist/esm/models/admin-identities-link-request.js +1 -0
  60. package/dist/esm/models/admin-identities-list-response-data-bindings-item.d.ts +7 -0
  61. package/dist/esm/models/admin-identities-list-response-data-bindings-item.js +1 -0
  62. package/dist/esm/models/admin-sandbox-spawn-response-data.d.ts +18 -0
  63. package/dist/esm/models/admin-sandbox-spawn-response-data.js +14 -0
  64. package/dist/esm/models/admin-sandbox-spawn-response-data1.d.ts +24 -0
  65. package/dist/esm/models/admin-sandbox-spawn-response-data1.js +14 -0
  66. package/dist/esm/models/admin-sandbox-spawn-response.d.ts +3 -3
  67. package/dist/esm/models/admin-webhooks-delivery-replay-response-data.d.ts +48 -0
  68. package/dist/esm/models/admin-webhooks-delivery-replay-response-data.js +14 -0
  69. package/dist/esm/models/admin-webhooks-delivery-replay-response.d.ts +3 -3
  70. package/dist/esm/models/admin-webhooks-test-response.d.ts +6 -0
  71. package/dist/esm/models/attest-response-identity.d.ts +1 -1
  72. package/dist/esm/models/audit-log-entry.d.ts +1 -1
  73. package/dist/esm/models/authentication-settings-password-policy.d.ts +25 -1
  74. package/dist/esm/models/authentication-settings-password-rotation-policy.d.ts +1 -13
  75. package/dist/esm/models/authentication-settings.d.ts +13 -15
  76. package/dist/esm/models/authentication-settings.js +11 -0
  77. package/dist/esm/models/get-approval-status-response-approved-by.d.ts +2 -2
  78. package/dist/esm/models/index.d.ts +11 -0
  79. package/dist/esm/models/index.js +11 -0
  80. package/dist/esm/models/list-permissions-response-permissions-item.d.ts +1 -1
  81. package/dist/esm/models/oauth-client-secret-issued.d.ts +1 -1
  82. package/dist/esm/models/oauth-client.d.ts +6 -0
  83. package/dist/esm/models/push-enrollment-started.d.ts +1 -1
  84. package/dist/esm/models/put-admin-agents-update-request.d.ts +8 -0
  85. package/dist/esm/models/report-agent-usage-response.d.ts +33 -0
  86. package/dist/esm/models/report-agent-usage-response.js +14 -0
  87. package/dist/esm/models/request-magic-link-request.d.ts +42 -0
  88. package/dist/esm/models/request-magic-link-request.js +14 -0
  89. package/dist/esm/models/request-magic-link-response.d.ts +31 -0
  90. package/dist/esm/models/request-magic-link-response.js +21 -0
  91. package/dist/esm/models/scim-settings-inbound-protected-attributes.d.ts +2 -9
  92. package/dist/esm/models/scim-settings-inbound.d.ts +0 -8
  93. package/dist/esm/models/scim-settings-outbound.d.ts +2 -10
  94. package/dist/esm/models/set-user-attribute-response-data.d.ts +1 -1
  95. package/dist/esm/models/userinfo-response.d.ts +8 -0
  96. package/dist/models/abac-attribute-definition.d.ts +1 -1
  97. package/dist/models/abac-resource-attribute.d.ts +1 -1
  98. package/dist/models/admin-agents-agents-rotate-key-request.d.ts +30 -0
  99. package/dist/models/admin-agents-agents-rotate-key-request.js +15 -0
  100. package/dist/models/admin-agents-agents-rotate-key-response.d.ts +6 -0
  101. package/dist/models/admin-agents-create-request.d.ts +8 -0
  102. package/dist/models/admin-agents-report-usage-request.d.ts +30 -0
  103. package/dist/models/admin-agents-report-usage-request.js +15 -0
  104. package/dist/models/admin-agents-report-usage-response-data-recorded.d.ts +30 -0
  105. package/dist/models/admin-agents-report-usage-response-data-recorded.js +15 -0
  106. package/dist/models/admin-agents-report-usage-response-data.d.ts +33 -0
  107. package/dist/models/admin-agents-report-usage-response-data.js +15 -0
  108. package/dist/models/admin-agents-report-usage-response.d.ts +25 -0
  109. package/dist/models/admin-agents-report-usage-response.js +15 -0
  110. package/dist/models/admin-audit-logs-retention-response-data.d.ts +21 -3
  111. package/dist/models/admin-identities-link-request.d.ts +8 -1
  112. package/dist/models/admin-identities-link-request.js +1 -0
  113. package/dist/models/admin-identities-list-response-data-bindings-item.d.ts +7 -0
  114. package/dist/models/admin-identities-list-response-data-bindings-item.js +1 -0
  115. package/dist/models/admin-sandbox-spawn-response-data.d.ts +18 -0
  116. package/dist/models/admin-sandbox-spawn-response-data.js +15 -0
  117. package/dist/models/admin-sandbox-spawn-response-data1.d.ts +24 -0
  118. package/dist/models/admin-sandbox-spawn-response-data1.js +15 -0
  119. package/dist/models/admin-sandbox-spawn-response.d.ts +3 -3
  120. package/dist/models/admin-webhooks-delivery-replay-response-data.d.ts +48 -0
  121. package/dist/models/admin-webhooks-delivery-replay-response-data.js +15 -0
  122. package/dist/models/admin-webhooks-delivery-replay-response.d.ts +3 -3
  123. package/dist/models/admin-webhooks-test-response.d.ts +6 -0
  124. package/dist/models/attest-response-identity.d.ts +1 -1
  125. package/dist/models/audit-log-entry.d.ts +1 -1
  126. package/dist/models/authentication-settings-password-policy.d.ts +25 -1
  127. package/dist/models/authentication-settings-password-rotation-policy.d.ts +1 -13
  128. package/dist/models/authentication-settings.d.ts +13 -15
  129. package/dist/models/authentication-settings.js +12 -1
  130. package/dist/models/get-approval-status-response-approved-by.d.ts +2 -2
  131. package/dist/models/index.d.ts +11 -0
  132. package/dist/models/index.js +11 -0
  133. package/dist/models/list-permissions-response-permissions-item.d.ts +1 -1
  134. package/dist/models/oauth-client-secret-issued.d.ts +1 -1
  135. package/dist/models/oauth-client.d.ts +6 -0
  136. package/dist/models/push-enrollment-started.d.ts +1 -1
  137. package/dist/models/put-admin-agents-update-request.d.ts +8 -0
  138. package/dist/models/report-agent-usage-response.d.ts +33 -0
  139. package/dist/models/report-agent-usage-response.js +15 -0
  140. package/dist/models/request-magic-link-request.d.ts +42 -0
  141. package/dist/models/request-magic-link-request.js +15 -0
  142. package/dist/models/request-magic-link-response.d.ts +31 -0
  143. package/dist/models/request-magic-link-response.js +24 -0
  144. package/dist/models/scim-settings-inbound-protected-attributes.d.ts +2 -9
  145. package/dist/models/scim-settings-inbound.d.ts +0 -8
  146. package/dist/models/scim-settings-outbound.d.ts +2 -10
  147. package/dist/models/set-user-attribute-response-data.d.ts +1 -1
  148. package/dist/models/userinfo-response.d.ts +8 -0
  149. package/docs/AAuthApi.md +1 -1
  150. package/docs/AdminAbacApi.md +1 -1
  151. package/docs/AdminAgentsAgentsRotateKeyRequest.md +22 -0
  152. package/docs/AdminAgentsAgentsRotateKeyResponse.md +2 -0
  153. package/docs/AdminAgentsApi.md +83 -8
  154. package/docs/AdminAgentsCreateRequest.md +2 -0
  155. package/docs/AdminAgentsReportUsageRequest.md +22 -0
  156. package/docs/AdminAgentsReportUsageResponse.md +20 -0
  157. package/docs/AdminAgentsReportUsageResponseData.md +22 -0
  158. package/docs/AdminAgentsReportUsageResponseDataRecorded.md +22 -0
  159. package/docs/AdminAuditLogsRetentionResponseData.md +9 -3
  160. package/docs/AdminIdentitiesLinkRequest.md +3 -1
  161. package/docs/AdminIdentitiesListResponseDataBindingsItem.md +2 -0
  162. package/docs/AdminMcpApi.md +2 -1
  163. package/docs/AdminOAuthClientsApi.md +2 -2
  164. package/docs/AdminSandboxApi.md +3 -1
  165. package/docs/AdminSandboxSpawnResponse.md +1 -1
  166. package/docs/AdminSandboxSpawnResponseData.md +32 -0
  167. package/docs/AdminSandboxSpawnResponseData1.md +20 -0
  168. package/docs/AdminUsersApi.md +8 -8
  169. package/docs/AdminWebhooksApi.md +7 -5
  170. package/docs/AdminWebhooksDeliveryReplayResponse.md +1 -1
  171. package/docs/AdminWebhooksDeliveryReplayResponseData.md +28 -0
  172. package/docs/AdminWebhooksTestResponse.md +2 -0
  173. package/docs/AgentsApi.md +64 -2
  174. package/docs/AttestResponseIdentity.md +1 -1
  175. package/docs/AuditLogEntry.md +1 -1
  176. package/docs/AuthenticationSettings.md +2 -6
  177. package/docs/AuthenticationSettingsPasswordPolicy.md +9 -0
  178. package/docs/AuthenticationSettingsPasswordRotationPolicy.md +1 -4
  179. package/docs/AuthorizationApi.md +1 -1
  180. package/docs/CreateClientResponseData.md +3 -1
  181. package/docs/EnrollAuthenticator201Response.md +1 -1
  182. package/docs/GetApprovalStatusResponseApprovedBy.md +1 -1
  183. package/docs/JitApi.md +3 -3
  184. package/docs/ListPermissionsResponsePermissionsItem.md +1 -1
  185. package/docs/OAuthApi.md +63 -2
  186. package/docs/OAuthClient.md +2 -0
  187. package/docs/OAuthClientSecretIssued.md +1 -1
  188. package/docs/OIDCApi.md +2 -2
  189. package/docs/PushEnrollmentStarted.md +1 -1
  190. package/docs/PutAdminAgentsUpdateRequest.md +2 -0
  191. package/docs/ReportAgentUsageResponse.md +22 -0
  192. package/docs/RequestMagicLinkRequest.md +26 -0
  193. package/docs/RequestMagicLinkResponse.md +20 -0
  194. package/docs/ScimSettingsInbound.md +0 -2
  195. package/docs/ScimSettingsInboundProtectedAttributes.md +3 -5
  196. package/docs/ScimSettingsOutbound.md +2 -4
  197. package/docs/TokenVaultApi.md +2 -2
  198. package/docs/UserinfoResponse.md +2 -0
  199. package/models/abac-attribute-definition.ts +1 -1
  200. package/models/abac-resource-attribute.ts +1 -1
  201. package/models/admin-agents-agents-rotate-key-request.ts +36 -0
  202. package/models/admin-agents-agents-rotate-key-response.ts +6 -0
  203. package/models/admin-agents-create-request.ts +6 -0
  204. package/models/admin-agents-report-usage-request.ts +36 -0
  205. package/models/admin-agents-report-usage-response-data-recorded.ts +36 -0
  206. package/models/admin-agents-report-usage-response-data.ts +39 -0
  207. package/models/admin-agents-report-usage-response.ts +33 -0
  208. package/models/admin-audit-logs-retention-response-data.ts +21 -3
  209. package/models/admin-identities-link-request.ts +8 -1
  210. package/models/admin-identities-list-response-data-bindings-item.ts +7 -0
  211. package/models/admin-sandbox-spawn-response-data.ts +29 -0
  212. package/models/admin-sandbox-spawn-response-data1.ts +30 -0
  213. package/models/admin-sandbox-spawn-response.ts +3 -3
  214. package/models/admin-webhooks-delivery-replay-response-data.ts +54 -0
  215. package/models/admin-webhooks-delivery-replay-response.ts +3 -3
  216. package/models/admin-webhooks-test-response.ts +6 -0
  217. package/models/attest-response-identity.ts +1 -1
  218. package/models/audit-log-entry.ts +1 -1
  219. package/models/authentication-settings-password-policy.ts +25 -1
  220. package/models/authentication-settings-password-rotation-policy.ts +1 -13
  221. package/models/authentication-settings.ts +13 -15
  222. package/models/get-approval-status-response-approved-by.ts +2 -2
  223. package/models/index.ts +11 -0
  224. package/models/list-permissions-response-permissions-item.ts +1 -1
  225. package/models/oauth-client-secret-issued.ts +1 -1
  226. package/models/oauth-client.ts +6 -0
  227. package/models/push-enrollment-started.ts +1 -1
  228. package/models/put-admin-agents-update-request.ts +6 -0
  229. package/models/report-agent-usage-response.ts +39 -0
  230. package/models/request-magic-link-request.ts +48 -0
  231. package/models/request-magic-link-response.ts +39 -0
  232. package/models/scim-settings-inbound-protected-attributes.ts +2 -10
  233. package/models/scim-settings-inbound.ts +0 -6
  234. package/models/scim-settings-outbound.ts +2 -8
  235. package/models/set-user-attribute-response-data.ts +1 -1
  236. package/models/userinfo-response.ts +6 -0
  237. package/package.json +1 -1
@@ -32,7 +32,7 @@ import type { PutAdminWebhooksUpdateResponse } from '../models';
32
32
  */
33
33
  export declare const AdminWebhooksApiAxiosParamCreator: (configuration?: Configuration) => {
34
34
  /**
35
- * The signing secret is generated server-side and returned once in this response only.
35
+ * Accepts `url`, `events`, `isActive` (also as `active` or `enabled`), `type` and `configuration`. The signing secret is generated server-side and returned once in this response only: a `secret` in the request, an unknown field and an event name that is not in the catalogue are refused with 400.
36
36
  * @summary Create a webhook
37
37
  * @param {string} orgId
38
38
  * @param {*} [options] Override http request option.
@@ -58,7 +58,7 @@ export declare const AdminWebhooksApiAxiosParamCreator: (configuration?: Configu
58
58
  */
59
59
  adminWebhooksDeliveriesList: (orgId: string, webhookId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
60
60
  /**
61
- * Resets the delivery\'s failure state (attempt history is preserved) and re-enqueues it. Idempotent on already-pending rows.
61
+ * Queues a new delivery with the same event and payload and returns its id. The original delivery is not changed. A disabled webhook sends nothing, so the call answers 409 until the webhook is enabled.
62
62
  * @summary Replay a delivery
63
63
  * @param {string} orgId
64
64
  * @param {string} webhookId
@@ -103,7 +103,7 @@ export declare const AdminWebhooksApiAxiosParamCreator: (configuration?: Configu
103
103
  */
104
104
  adminWebhooksList: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
105
105
  /**
106
- * Generates a new HMAC secret and keeps the previous one for a grace window. The new secret is returned once.
106
+ * Generates a new HMAC secret and returns it once. For 24 hours every delivery also carries `X-LumoAuth-Signature-Previous`, signed with the secret that was replaced, so the receiver can be updated without losing events. The `kid` of `X-LumoAuth-Signature` changes with every rotation.
107
107
  * @summary Rotate the signing secret
108
108
  * @param {string} orgId
109
109
  * @param {string} webhookId
@@ -112,7 +112,7 @@ export declare const AdminWebhooksApiAxiosParamCreator: (configuration?: Configu
112
112
  */
113
113
  adminWebhooksRotateSecret: (orgId: string, webhookId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
114
114
  /**
115
- * POSTs a signed `test.webhook` payload to the webhook URL and reports the receiver\'s status. A non-2xx receiver response still yields HTTP 200 with `success: false`; a transport failure yields 502.
115
+ * Sends one `webhook.test` event to the webhook URL now, with the same body, headers and signature as any event, and records it in the delivery history. A receiver answer outside 2xx still yields HTTP 200 with `success: false`; when no answer was received (connection or TLS error) the endpoint answers 502. A failed test is not retried.
116
116
  * @summary Send a test delivery
117
117
  * @param {string} orgId
118
118
  * @param {string} webhookId
@@ -174,7 +174,7 @@ export declare const AdminWebhooksApiAxiosParamCreator: (configuration?: Configu
174
174
  */
175
175
  patchAdminWebhooksUpdate: (orgId: string, webhookId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
176
176
  /**
177
- *
177
+ * Changes only the fields that are sent: `url`, `events`, `isActive` (also as `active` or `enabled`), `type`, `configuration`, `rotateSecret`. A new `url` for a webhook that has a signing secret needs `rotateSecret: true`; the response then carries the new `secret` once. Unknown fields, `secret` and event names that are not in the catalogue are refused with 400.
178
178
  * @summary Update a webhook
179
179
  * @param {string} orgId
180
180
  * @param {string} webhookId
@@ -189,7 +189,7 @@ export declare const AdminWebhooksApiAxiosParamCreator: (configuration?: Configu
189
189
  */
190
190
  export declare const AdminWebhooksApiFp: (configuration?: Configuration) => {
191
191
  /**
192
- * The signing secret is generated server-side and returned once in this response only.
192
+ * Accepts `url`, `events`, `isActive` (also as `active` or `enabled`), `type` and `configuration`. The signing secret is generated server-side and returned once in this response only: a `secret` in the request, an unknown field and an event name that is not in the catalogue are refused with 400.
193
193
  * @summary Create a webhook
194
194
  * @param {string} orgId
195
195
  * @param {*} [options] Override http request option.
@@ -215,7 +215,7 @@ export declare const AdminWebhooksApiFp: (configuration?: Configuration) => {
215
215
  */
216
216
  adminWebhooksDeliveriesList(orgId: string, webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminWebhooksDeliveriesListResponse>>;
217
217
  /**
218
- * Resets the delivery\'s failure state (attempt history is preserved) and re-enqueues it. Idempotent on already-pending rows.
218
+ * Queues a new delivery with the same event and payload and returns its id. The original delivery is not changed. A disabled webhook sends nothing, so the call answers 409 until the webhook is enabled.
219
219
  * @summary Replay a delivery
220
220
  * @param {string} orgId
221
221
  * @param {string} webhookId
@@ -260,7 +260,7 @@ export declare const AdminWebhooksApiFp: (configuration?: Configuration) => {
260
260
  */
261
261
  adminWebhooksList(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminWebhooksListResponse>>;
262
262
  /**
263
- * Generates a new HMAC secret and keeps the previous one for a grace window. The new secret is returned once.
263
+ * Generates a new HMAC secret and returns it once. For 24 hours every delivery also carries `X-LumoAuth-Signature-Previous`, signed with the secret that was replaced, so the receiver can be updated without losing events. The `kid` of `X-LumoAuth-Signature` changes with every rotation.
264
264
  * @summary Rotate the signing secret
265
265
  * @param {string} orgId
266
266
  * @param {string} webhookId
@@ -269,7 +269,7 @@ export declare const AdminWebhooksApiFp: (configuration?: Configuration) => {
269
269
  */
270
270
  adminWebhooksRotateSecret(orgId: string, webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminWebhooksRotateSecretResponse>>;
271
271
  /**
272
- * POSTs a signed `test.webhook` payload to the webhook URL and reports the receiver\'s status. A non-2xx receiver response still yields HTTP 200 with `success: false`; a transport failure yields 502.
272
+ * Sends one `webhook.test` event to the webhook URL now, with the same body, headers and signature as any event, and records it in the delivery history. A receiver answer outside 2xx still yields HTTP 200 with `success: false`; when no answer was received (connection or TLS error) the endpoint answers 502. A failed test is not retried.
273
273
  * @summary Send a test delivery
274
274
  * @param {string} orgId
275
275
  * @param {string} webhookId
@@ -331,7 +331,7 @@ export declare const AdminWebhooksApiFp: (configuration?: Configuration) => {
331
331
  */
332
332
  patchAdminWebhooksUpdate(orgId: string, webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PutAdminWebhooksUpdateResponse>>;
333
333
  /**
334
- *
334
+ * Changes only the fields that are sent: `url`, `events`, `isActive` (also as `active` or `enabled`), `type`, `configuration`, `rotateSecret`. A new `url` for a webhook that has a signing secret needs `rotateSecret: true`; the response then carries the new `secret` once. Unknown fields, `secret` and event names that are not in the catalogue are refused with 400.
335
335
  * @summary Update a webhook
336
336
  * @param {string} orgId
337
337
  * @param {string} webhookId
@@ -346,7 +346,7 @@ export declare const AdminWebhooksApiFp: (configuration?: Configuration) => {
346
346
  */
347
347
  export declare const AdminWebhooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
348
348
  /**
349
- * The signing secret is generated server-side and returned once in this response only.
349
+ * Accepts `url`, `events`, `isActive` (also as `active` or `enabled`), `type` and `configuration`. The signing secret is generated server-side and returned once in this response only: a `secret` in the request, an unknown field and an event name that is not in the catalogue are refused with 400.
350
350
  * @summary Create a webhook
351
351
  * @param {AdminWebhooksApiAdminWebhooksCreateRequest} requestParameters Request parameters.
352
352
  * @param {*} [options] Override http request option.
@@ -370,7 +370,7 @@ export declare const AdminWebhooksApiFactory: (configuration?: Configuration, ba
370
370
  */
371
371
  adminWebhooksDeliveriesList(requestParameters: AdminWebhooksApiAdminWebhooksDeliveriesListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminWebhooksDeliveriesListResponse>;
372
372
  /**
373
- * Resets the delivery\'s failure state (attempt history is preserved) and re-enqueues it. Idempotent on already-pending rows.
373
+ * Queues a new delivery with the same event and payload and returns its id. The original delivery is not changed. A disabled webhook sends nothing, so the call answers 409 until the webhook is enabled.
374
374
  * @summary Replay a delivery
375
375
  * @param {AdminWebhooksApiAdminWebhooksDeliveryReplayRequest} requestParameters Request parameters.
376
376
  * @param {*} [options] Override http request option.
@@ -410,7 +410,7 @@ export declare const AdminWebhooksApiFactory: (configuration?: Configuration, ba
410
410
  */
411
411
  adminWebhooksList(requestParameters: AdminWebhooksApiAdminWebhooksListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminWebhooksListResponse>;
412
412
  /**
413
- * Generates a new HMAC secret and keeps the previous one for a grace window. The new secret is returned once.
413
+ * Generates a new HMAC secret and returns it once. For 24 hours every delivery also carries `X-LumoAuth-Signature-Previous`, signed with the secret that was replaced, so the receiver can be updated without losing events. The `kid` of `X-LumoAuth-Signature` changes with every rotation.
414
414
  * @summary Rotate the signing secret
415
415
  * @param {AdminWebhooksApiAdminWebhooksRotateSecretRequest} requestParameters Request parameters.
416
416
  * @param {*} [options] Override http request option.
@@ -418,7 +418,7 @@ export declare const AdminWebhooksApiFactory: (configuration?: Configuration, ba
418
418
  */
419
419
  adminWebhooksRotateSecret(requestParameters: AdminWebhooksApiAdminWebhooksRotateSecretRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminWebhooksRotateSecretResponse>;
420
420
  /**
421
- * POSTs a signed `test.webhook` payload to the webhook URL and reports the receiver\'s status. A non-2xx receiver response still yields HTTP 200 with `success: false`; a transport failure yields 502.
421
+ * Sends one `webhook.test` event to the webhook URL now, with the same body, headers and signature as any event, and records it in the delivery history. A receiver answer outside 2xx still yields HTTP 200 with `success: false`; when no answer was received (connection or TLS error) the endpoint answers 502. A failed test is not retried.
422
422
  * @summary Send a test delivery
423
423
  * @param {AdminWebhooksApiAdminWebhooksTestRequest} requestParameters Request parameters.
424
424
  * @param {*} [options] Override http request option.
@@ -474,7 +474,7 @@ export declare const AdminWebhooksApiFactory: (configuration?: Configuration, ba
474
474
  */
475
475
  patchAdminWebhooksUpdate(requestParameters: AdminWebhooksApiPatchAdminWebhooksUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<PutAdminWebhooksUpdateResponse>;
476
476
  /**
477
- *
477
+ * Changes only the fields that are sent: `url`, `events`, `isActive` (also as `active` or `enabled`), `type`, `configuration`, `rotateSecret`. A new `url` for a webhook that has a signing secret needs `rotateSecret: true`; the response then carries the new `secret` once. Unknown fields, `secret` and event names that are not in the catalogue are refused with 400.
478
478
  * @summary Update a webhook
479
479
  * @param {AdminWebhooksApiPutAdminWebhooksUpdateRequest} requestParameters Request parameters.
480
480
  * @param {*} [options] Override http request option.
@@ -489,7 +489,7 @@ export declare const AdminWebhooksApiFactory: (configuration?: Configuration, ba
489
489
  */
490
490
  export interface AdminWebhooksApiInterface {
491
491
  /**
492
- * The signing secret is generated server-side and returned once in this response only.
492
+ * Accepts `url`, `events`, `isActive` (also as `active` or `enabled`), `type` and `configuration`. The signing secret is generated server-side and returned once in this response only: a `secret` in the request, an unknown field and an event name that is not in the catalogue are refused with 400.
493
493
  * @summary Create a webhook
494
494
  * @param {AdminWebhooksApiAdminWebhooksCreateRequest} requestParameters Request parameters.
495
495
  * @param {*} [options] Override http request option.
@@ -516,7 +516,7 @@ export interface AdminWebhooksApiInterface {
516
516
  */
517
517
  adminWebhooksDeliveriesList(requestParameters: AdminWebhooksApiAdminWebhooksDeliveriesListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminWebhooksDeliveriesListResponse>;
518
518
  /**
519
- * Resets the delivery\'s failure state (attempt history is preserved) and re-enqueues it. Idempotent on already-pending rows.
519
+ * Queues a new delivery with the same event and payload and returns its id. The original delivery is not changed. A disabled webhook sends nothing, so the call answers 409 until the webhook is enabled.
520
520
  * @summary Replay a delivery
521
521
  * @param {AdminWebhooksApiAdminWebhooksDeliveryReplayRequest} requestParameters Request parameters.
522
522
  * @param {*} [options] Override http request option.
@@ -561,7 +561,7 @@ export interface AdminWebhooksApiInterface {
561
561
  */
562
562
  adminWebhooksList(requestParameters: AdminWebhooksApiAdminWebhooksListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminWebhooksListResponse>;
563
563
  /**
564
- * Generates a new HMAC secret and keeps the previous one for a grace window. The new secret is returned once.
564
+ * Generates a new HMAC secret and returns it once. For 24 hours every delivery also carries `X-LumoAuth-Signature-Previous`, signed with the secret that was replaced, so the receiver can be updated without losing events. The `kid` of `X-LumoAuth-Signature` changes with every rotation.
565
565
  * @summary Rotate the signing secret
566
566
  * @param {AdminWebhooksApiAdminWebhooksRotateSecretRequest} requestParameters Request parameters.
567
567
  * @param {*} [options] Override http request option.
@@ -570,7 +570,7 @@ export interface AdminWebhooksApiInterface {
570
570
  */
571
571
  adminWebhooksRotateSecret(requestParameters: AdminWebhooksApiAdminWebhooksRotateSecretRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminWebhooksRotateSecretResponse>;
572
572
  /**
573
- * POSTs a signed `test.webhook` payload to the webhook URL and reports the receiver\'s status. A non-2xx receiver response still yields HTTP 200 with `success: false`; a transport failure yields 502.
573
+ * Sends one `webhook.test` event to the webhook URL now, with the same body, headers and signature as any event, and records it in the delivery history. A receiver answer outside 2xx still yields HTTP 200 with `success: false`; when no answer was received (connection or TLS error) the endpoint answers 502. A failed test is not retried.
574
574
  * @summary Send a test delivery
575
575
  * @param {AdminWebhooksApiAdminWebhooksTestRequest} requestParameters Request parameters.
576
576
  * @param {*} [options] Override http request option.
@@ -633,7 +633,7 @@ export interface AdminWebhooksApiInterface {
633
633
  */
634
634
  patchAdminWebhooksUpdate(requestParameters: AdminWebhooksApiPatchAdminWebhooksUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<PutAdminWebhooksUpdateResponse>;
635
635
  /**
636
- *
636
+ * Changes only the fields that are sent: `url`, `events`, `isActive` (also as `active` or `enabled`), `type`, `configuration`, `rotateSecret`. A new `url` for a webhook that has a signing secret needs `rotateSecret: true`; the response then carries the new `secret` once. Unknown fields, `secret` and event names that are not in the catalogue are refused with 400.
637
637
  * @summary Update a webhook
638
638
  * @param {AdminWebhooksApiPutAdminWebhooksUpdateRequest} requestParameters Request parameters.
639
639
  * @param {*} [options] Override http request option.
@@ -961,7 +961,7 @@ export interface AdminWebhooksApiPutAdminWebhooksUpdateRequest {
961
961
  */
962
962
  export declare class AdminWebhooksApi extends BaseAPI implements AdminWebhooksApiInterface {
963
963
  /**
964
- * The signing secret is generated server-side and returned once in this response only.
964
+ * Accepts `url`, `events`, `isActive` (also as `active` or `enabled`), `type` and `configuration`. The signing secret is generated server-side and returned once in this response only: a `secret` in the request, an unknown field and an event name that is not in the catalogue are refused with 400.
965
965
  * @summary Create a webhook
966
966
  * @param {AdminWebhooksApiAdminWebhooksCreateRequest} requestParameters Request parameters.
967
967
  * @param {*} [options] Override http request option.
@@ -988,7 +988,7 @@ export declare class AdminWebhooksApi extends BaseAPI implements AdminWebhooksAp
988
988
  */
989
989
  adminWebhooksDeliveriesList(requestParameters: AdminWebhooksApiAdminWebhooksDeliveriesListRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminWebhooksDeliveriesListResponse, any, {}>>;
990
990
  /**
991
- * Resets the delivery\'s failure state (attempt history is preserved) and re-enqueues it. Idempotent on already-pending rows.
991
+ * Queues a new delivery with the same event and payload and returns its id. The original delivery is not changed. A disabled webhook sends nothing, so the call answers 409 until the webhook is enabled.
992
992
  * @summary Replay a delivery
993
993
  * @param {AdminWebhooksApiAdminWebhooksDeliveryReplayRequest} requestParameters Request parameters.
994
994
  * @param {*} [options] Override http request option.
@@ -1033,7 +1033,7 @@ export declare class AdminWebhooksApi extends BaseAPI implements AdminWebhooksAp
1033
1033
  */
1034
1034
  adminWebhooksList(requestParameters: AdminWebhooksApiAdminWebhooksListRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminWebhooksListResponse, any, {}>>;
1035
1035
  /**
1036
- * Generates a new HMAC secret and keeps the previous one for a grace window. The new secret is returned once.
1036
+ * Generates a new HMAC secret and returns it once. For 24 hours every delivery also carries `X-LumoAuth-Signature-Previous`, signed with the secret that was replaced, so the receiver can be updated without losing events. The `kid` of `X-LumoAuth-Signature` changes with every rotation.
1037
1037
  * @summary Rotate the signing secret
1038
1038
  * @param {AdminWebhooksApiAdminWebhooksRotateSecretRequest} requestParameters Request parameters.
1039
1039
  * @param {*} [options] Override http request option.
@@ -1042,7 +1042,7 @@ export declare class AdminWebhooksApi extends BaseAPI implements AdminWebhooksAp
1042
1042
  */
1043
1043
  adminWebhooksRotateSecret(requestParameters: AdminWebhooksApiAdminWebhooksRotateSecretRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminWebhooksRotateSecretResponse, any, {}>>;
1044
1044
  /**
1045
- * POSTs a signed `test.webhook` payload to the webhook URL and reports the receiver\'s status. A non-2xx receiver response still yields HTTP 200 with `success: false`; a transport failure yields 502.
1045
+ * Sends one `webhook.test` event to the webhook URL now, with the same body, headers and signature as any event, and records it in the delivery history. A receiver answer outside 2xx still yields HTTP 200 with `success: false`; when no answer was received (connection or TLS error) the endpoint answers 502. A failed test is not retried.
1046
1046
  * @summary Send a test delivery
1047
1047
  * @param {AdminWebhooksApiAdminWebhooksTestRequest} requestParameters Request parameters.
1048
1048
  * @param {*} [options] Override http request option.
@@ -1105,7 +1105,7 @@ export declare class AdminWebhooksApi extends BaseAPI implements AdminWebhooksAp
1105
1105
  */
1106
1106
  patchAdminWebhooksUpdate(requestParameters: AdminWebhooksApiPatchAdminWebhooksUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PutAdminWebhooksUpdateResponse, any, {}>>;
1107
1107
  /**
1108
- *
1108
+ * Changes only the fields that are sent: `url`, `events`, `isActive` (also as `active` or `enabled`), `type`, `configuration`, `rotateSecret`. A new `url` for a webhook that has a signing secret needs `rotateSecret: true`; the response then carries the new `secret` once. Unknown fields, `secret` and event names that are not in the catalogue are refused with 400.
1109
1109
  * @summary Update a webhook
1110
1110
  * @param {AdminWebhooksApiPutAdminWebhooksUpdateRequest} requestParameters Request parameters.
1111
1111
  * @param {*} [options] Override http request option.
@@ -33,7 +33,7 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
33
33
  export const AdminWebhooksApiAxiosParamCreator = function (configuration) {
34
34
  return {
35
35
  /**
36
- * The signing secret is generated server-side and returned once in this response only.
36
+ * Accepts `url`, `events`, `isActive` (also as `active` or `enabled`), `type` and `configuration`. The signing secret is generated server-side and returned once in this response only: a `secret` in the request, an unknown field and an event name that is not in the catalogue are refused with 400.
37
37
  * @summary Create a webhook
38
38
  * @param {string} orgId
39
39
  * @param {*} [options] Override http request option.
@@ -143,7 +143,7 @@ export const AdminWebhooksApiAxiosParamCreator = function (configuration) {
143
143
  };
144
144
  }),
145
145
  /**
146
- * Resets the delivery\'s failure state (attempt history is preserved) and re-enqueues it. Idempotent on already-pending rows.
146
+ * Queues a new delivery with the same event and payload and returns its id. The original delivery is not changed. A disabled webhook sends nothing, so the call answers 409 until the webhook is enabled.
147
147
  * @summary Replay a delivery
148
148
  * @param {string} orgId
149
149
  * @param {string} webhookId
@@ -333,7 +333,7 @@ export const AdminWebhooksApiAxiosParamCreator = function (configuration) {
333
333
  };
334
334
  }),
335
335
  /**
336
- * Generates a new HMAC secret and keeps the previous one for a grace window. The new secret is returned once.
336
+ * Generates a new HMAC secret and returns it once. For 24 hours every delivery also carries `X-LumoAuth-Signature-Previous`, signed with the secret that was replaced, so the receiver can be updated without losing events. The `kid` of `X-LumoAuth-Signature` changes with every rotation.
337
337
  * @summary Rotate the signing secret
338
338
  * @param {string} orgId
339
339
  * @param {string} webhookId
@@ -371,7 +371,7 @@ export const AdminWebhooksApiAxiosParamCreator = function (configuration) {
371
371
  };
372
372
  }),
373
373
  /**
374
- * POSTs a signed `test.webhook` payload to the webhook URL and reports the receiver\'s status. A non-2xx receiver response still yields HTTP 200 with `success: false`; a transport failure yields 502.
374
+ * Sends one `webhook.test` event to the webhook URL now, with the same body, headers and signature as any event, and records it in the delivery history. A receiver answer outside 2xx still yields HTTP 200 with `success: false`; when no answer was received (connection or TLS error) the endpoint answers 502. A failed test is not retried.
375
375
  * @summary Send a test delivery
376
376
  * @param {string} orgId
377
377
  * @param {string} webhookId
@@ -633,7 +633,7 @@ export const AdminWebhooksApiAxiosParamCreator = function (configuration) {
633
633
  };
634
634
  }),
635
635
  /**
636
- *
636
+ * Changes only the fields that are sent: `url`, `events`, `isActive` (also as `active` or `enabled`), `type`, `configuration`, `rotateSecret`. A new `url` for a webhook that has a signing secret needs `rotateSecret: true`; the response then carries the new `secret` once. Unknown fields, `secret` and event names that are not in the catalogue are refused with 400.
637
637
  * @summary Update a webhook
638
638
  * @param {string} orgId
639
639
  * @param {string} webhookId
@@ -680,7 +680,7 @@ export const AdminWebhooksApiFp = function (configuration) {
680
680
  const localVarAxiosParamCreator = AdminWebhooksApiAxiosParamCreator(configuration);
681
681
  return {
682
682
  /**
683
- * The signing secret is generated server-side and returned once in this response only.
683
+ * Accepts `url`, `events`, `isActive` (also as `active` or `enabled`), `type` and `configuration`. The signing secret is generated server-side and returned once in this response only: a `secret` in the request, an unknown field and an event name that is not in the catalogue are refused with 400.
684
684
  * @summary Create a webhook
685
685
  * @param {string} orgId
686
686
  * @param {*} [options] Override http request option.
@@ -730,7 +730,7 @@ export const AdminWebhooksApiFp = function (configuration) {
730
730
  });
731
731
  },
732
732
  /**
733
- * Resets the delivery\'s failure state (attempt history is preserved) and re-enqueues it. Idempotent on already-pending rows.
733
+ * Queues a new delivery with the same event and payload and returns its id. The original delivery is not changed. A disabled webhook sends nothing, so the call answers 409 until the webhook is enabled.
734
734
  * @summary Replay a delivery
735
735
  * @param {string} orgId
736
736
  * @param {string} webhookId
@@ -815,7 +815,7 @@ export const AdminWebhooksApiFp = function (configuration) {
815
815
  });
816
816
  },
817
817
  /**
818
- * Generates a new HMAC secret and keeps the previous one for a grace window. The new secret is returned once.
818
+ * Generates a new HMAC secret and returns it once. For 24 hours every delivery also carries `X-LumoAuth-Signature-Previous`, signed with the secret that was replaced, so the receiver can be updated without losing events. The `kid` of `X-LumoAuth-Signature` changes with every rotation.
819
819
  * @summary Rotate the signing secret
820
820
  * @param {string} orgId
821
821
  * @param {string} webhookId
@@ -832,7 +832,7 @@ export const AdminWebhooksApiFp = function (configuration) {
832
832
  });
833
833
  },
834
834
  /**
835
- * POSTs a signed `test.webhook` payload to the webhook URL and reports the receiver\'s status. A non-2xx receiver response still yields HTTP 200 with `success: false`; a transport failure yields 502.
835
+ * Sends one `webhook.test` event to the webhook URL now, with the same body, headers and signature as any event, and records it in the delivery history. A receiver answer outside 2xx still yields HTTP 200 with `success: false`; when no answer was received (connection or TLS error) the endpoint answers 502. A failed test is not retried.
836
836
  * @summary Send a test delivery
837
837
  * @param {string} orgId
838
838
  * @param {string} webhookId
@@ -950,7 +950,7 @@ export const AdminWebhooksApiFp = function (configuration) {
950
950
  });
951
951
  },
952
952
  /**
953
- *
953
+ * Changes only the fields that are sent: `url`, `events`, `isActive` (also as `active` or `enabled`), `type`, `configuration`, `rotateSecret`. A new `url` for a webhook that has a signing secret needs `rotateSecret: true`; the response then carries the new `secret` once. Unknown fields, `secret` and event names that are not in the catalogue are refused with 400.
954
954
  * @summary Update a webhook
955
955
  * @param {string} orgId
956
956
  * @param {string} webhookId
@@ -976,7 +976,7 @@ export const AdminWebhooksApiFactory = function (configuration, basePath, axios)
976
976
  const localVarFp = AdminWebhooksApiFp(configuration);
977
977
  return {
978
978
  /**
979
- * The signing secret is generated server-side and returned once in this response only.
979
+ * Accepts `url`, `events`, `isActive` (also as `active` or `enabled`), `type` and `configuration`. The signing secret is generated server-side and returned once in this response only: a `secret` in the request, an unknown field and an event name that is not in the catalogue are refused with 400.
980
980
  * @summary Create a webhook
981
981
  * @param {AdminWebhooksApiAdminWebhooksCreateRequest} requestParameters Request parameters.
982
982
  * @param {*} [options] Override http request option.
@@ -1006,7 +1006,7 @@ export const AdminWebhooksApiFactory = function (configuration, basePath, axios)
1006
1006
  return localVarFp.adminWebhooksDeliveriesList(requestParameters.orgId, requestParameters.webhookId, options).then((request) => request(axios, basePath));
1007
1007
  },
1008
1008
  /**
1009
- * Resets the delivery\'s failure state (attempt history is preserved) and re-enqueues it. Idempotent on already-pending rows.
1009
+ * Queues a new delivery with the same event and payload and returns its id. The original delivery is not changed. A disabled webhook sends nothing, so the call answers 409 until the webhook is enabled.
1010
1010
  * @summary Replay a delivery
1011
1011
  * @param {AdminWebhooksApiAdminWebhooksDeliveryReplayRequest} requestParameters Request parameters.
1012
1012
  * @param {*} [options] Override http request option.
@@ -1056,7 +1056,7 @@ export const AdminWebhooksApiFactory = function (configuration, basePath, axios)
1056
1056
  return localVarFp.adminWebhooksList(requestParameters.orgId, options).then((request) => request(axios, basePath));
1057
1057
  },
1058
1058
  /**
1059
- * Generates a new HMAC secret and keeps the previous one for a grace window. The new secret is returned once.
1059
+ * Generates a new HMAC secret and returns it once. For 24 hours every delivery also carries `X-LumoAuth-Signature-Previous`, signed with the secret that was replaced, so the receiver can be updated without losing events. The `kid` of `X-LumoAuth-Signature` changes with every rotation.
1060
1060
  * @summary Rotate the signing secret
1061
1061
  * @param {AdminWebhooksApiAdminWebhooksRotateSecretRequest} requestParameters Request parameters.
1062
1062
  * @param {*} [options] Override http request option.
@@ -1066,7 +1066,7 @@ export const AdminWebhooksApiFactory = function (configuration, basePath, axios)
1066
1066
  return localVarFp.adminWebhooksRotateSecret(requestParameters.orgId, requestParameters.webhookId, options).then((request) => request(axios, basePath));
1067
1067
  },
1068
1068
  /**
1069
- * POSTs a signed `test.webhook` payload to the webhook URL and reports the receiver\'s status. A non-2xx receiver response still yields HTTP 200 with `success: false`; a transport failure yields 502.
1069
+ * Sends one `webhook.test` event to the webhook URL now, with the same body, headers and signature as any event, and records it in the delivery history. A receiver answer outside 2xx still yields HTTP 200 with `success: false`; when no answer was received (connection or TLS error) the endpoint answers 502. A failed test is not retried.
1070
1070
  * @summary Send a test delivery
1071
1071
  * @param {AdminWebhooksApiAdminWebhooksTestRequest} requestParameters Request parameters.
1072
1072
  * @param {*} [options] Override http request option.
@@ -1136,7 +1136,7 @@ export const AdminWebhooksApiFactory = function (configuration, basePath, axios)
1136
1136
  return localVarFp.patchAdminWebhooksUpdate(requestParameters.orgId, requestParameters.webhookId, options).then((request) => request(axios, basePath));
1137
1137
  },
1138
1138
  /**
1139
- *
1139
+ * Changes only the fields that are sent: `url`, `events`, `isActive` (also as `active` or `enabled`), `type`, `configuration`, `rotateSecret`. A new `url` for a webhook that has a signing secret needs `rotateSecret: true`; the response then carries the new `secret` once. Unknown fields, `secret` and event names that are not in the catalogue are refused with 400.
1140
1140
  * @summary Update a webhook
1141
1141
  * @param {AdminWebhooksApiPutAdminWebhooksUpdateRequest} requestParameters Request parameters.
1142
1142
  * @param {*} [options] Override http request option.
@@ -1155,7 +1155,7 @@ export const AdminWebhooksApiFactory = function (configuration, basePath, axios)
1155
1155
  */
1156
1156
  export class AdminWebhooksApi extends BaseAPI {
1157
1157
  /**
1158
- * The signing secret is generated server-side and returned once in this response only.
1158
+ * Accepts `url`, `events`, `isActive` (also as `active` or `enabled`), `type` and `configuration`. The signing secret is generated server-side and returned once in this response only: a `secret` in the request, an unknown field and an event name that is not in the catalogue are refused with 400.
1159
1159
  * @summary Create a webhook
1160
1160
  * @param {AdminWebhooksApiAdminWebhooksCreateRequest} requestParameters Request parameters.
1161
1161
  * @param {*} [options] Override http request option.
@@ -1188,7 +1188,7 @@ export class AdminWebhooksApi extends BaseAPI {
1188
1188
  return AdminWebhooksApiFp(this.configuration).adminWebhooksDeliveriesList(requestParameters.orgId, requestParameters.webhookId, options).then((request) => request(this.axios, this.basePath));
1189
1189
  }
1190
1190
  /**
1191
- * Resets the delivery\'s failure state (attempt history is preserved) and re-enqueues it. Idempotent on already-pending rows.
1191
+ * Queues a new delivery with the same event and payload and returns its id. The original delivery is not changed. A disabled webhook sends nothing, so the call answers 409 until the webhook is enabled.
1192
1192
  * @summary Replay a delivery
1193
1193
  * @param {AdminWebhooksApiAdminWebhooksDeliveryReplayRequest} requestParameters Request parameters.
1194
1194
  * @param {*} [options] Override http request option.
@@ -1243,7 +1243,7 @@ export class AdminWebhooksApi extends BaseAPI {
1243
1243
  return AdminWebhooksApiFp(this.configuration).adminWebhooksList(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
1244
1244
  }
1245
1245
  /**
1246
- * Generates a new HMAC secret and keeps the previous one for a grace window. The new secret is returned once.
1246
+ * Generates a new HMAC secret and returns it once. For 24 hours every delivery also carries `X-LumoAuth-Signature-Previous`, signed with the secret that was replaced, so the receiver can be updated without losing events. The `kid` of `X-LumoAuth-Signature` changes with every rotation.
1247
1247
  * @summary Rotate the signing secret
1248
1248
  * @param {AdminWebhooksApiAdminWebhooksRotateSecretRequest} requestParameters Request parameters.
1249
1249
  * @param {*} [options] Override http request option.
@@ -1254,7 +1254,7 @@ export class AdminWebhooksApi extends BaseAPI {
1254
1254
  return AdminWebhooksApiFp(this.configuration).adminWebhooksRotateSecret(requestParameters.orgId, requestParameters.webhookId, options).then((request) => request(this.axios, this.basePath));
1255
1255
  }
1256
1256
  /**
1257
- * POSTs a signed `test.webhook` payload to the webhook URL and reports the receiver\'s status. A non-2xx receiver response still yields HTTP 200 with `success: false`; a transport failure yields 502.
1257
+ * Sends one `webhook.test` event to the webhook URL now, with the same body, headers and signature as any event, and records it in the delivery history. A receiver answer outside 2xx still yields HTTP 200 with `success: false`; when no answer was received (connection or TLS error) the endpoint answers 502. A failed test is not retried.
1258
1258
  * @summary Send a test delivery
1259
1259
  * @param {AdminWebhooksApiAdminWebhooksTestRequest} requestParameters Request parameters.
1260
1260
  * @param {*} [options] Override http request option.
@@ -1331,7 +1331,7 @@ export class AdminWebhooksApi extends BaseAPI {
1331
1331
  return AdminWebhooksApiFp(this.configuration).patchAdminWebhooksUpdate(requestParameters.orgId, requestParameters.webhookId, options).then((request) => request(this.axios, this.basePath));
1332
1332
  }
1333
1333
  /**
1334
- *
1334
+ * Changes only the fields that are sent: `url`, `events`, `isActive` (also as `active` or `enabled`), `type`, `configuration`, `rotateSecret`. A new `url` for a webhook that has a signing secret needs `rotateSecret: true`; the response then carries the new `secret` once. Unknown fields, `secret` and event names that are not in the catalogue are refused with 400.
1335
1335
  * @summary Update a webhook
1336
1336
  * @param {AdminWebhooksApiPutAdminWebhooksUpdateRequest} requestParameters Request parameters.
1337
1337
  * @param {*} [options] Override http request option.
@@ -12,6 +12,7 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { AdminAgentsReportUsageRequest } from '../models';
15
16
  import type { AskRequest } from '../models';
16
17
  import type { AskResponse } from '../models';
17
18
  import type { AttestRequest } from '../models';
@@ -23,6 +24,7 @@ import type { CreateApprovalResponse } from '../models';
23
24
  import type { GetApprovalStatusResponse } from '../models';
24
25
  import type { GetCurrentAgentResponse } from '../models';
25
26
  import type { RegisterAgentResponse } from '../models';
27
+ import type { ReportAgentUsageResponse } from '../models';
26
28
  import type { SignedAgentCard } from '../models';
27
29
  import type { VerifyAgentCardResponse } from '../models';
28
30
  /**
@@ -99,6 +101,15 @@ export declare const AgentsApiAxiosParamCreator: (configuration?: Configuration)
99
101
  * @throws {RequiredError}
100
102
  */
101
103
  registerAgent: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
104
+ /**
105
+ * Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
106
+ * @summary Report the model tokens and cost that the agent used
107
+ * @param {string} orgId
108
+ * @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ reportAgentUsage: (orgId: string, adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
102
113
  /**
103
114
  * Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
104
115
  * @summary Verify a signed A2A agent card
@@ -185,6 +196,15 @@ export declare const AgentsApiFp: (configuration?: Configuration) => {
185
196
  * @throws {RequiredError}
186
197
  */
187
198
  registerAgent(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisterAgentResponse>>;
199
+ /**
200
+ * Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
201
+ * @summary Report the model tokens and cost that the agent used
202
+ * @param {string} orgId
203
+ * @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ */
207
+ reportAgentUsage(orgId: string, adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportAgentUsageResponse>>;
188
208
  /**
189
209
  * Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
190
210
  * @summary Verify a signed A2A agent card
@@ -264,6 +284,14 @@ export declare const AgentsApiFactory: (configuration?: Configuration, basePath?
264
284
  * @throws {RequiredError}
265
285
  */
266
286
  registerAgent(requestParameters: AgentsApiRegisterAgentRequest, options?: RawAxiosRequestConfig): AxiosPromise<RegisterAgentResponse>;
287
+ /**
288
+ * Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
289
+ * @summary Report the model tokens and cost that the agent used
290
+ * @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
291
+ * @param {*} [options] Override http request option.
292
+ * @throws {RequiredError}
293
+ */
294
+ reportAgentUsage(requestParameters: AgentsApiReportAgentUsageRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReportAgentUsageResponse>;
267
295
  /**
268
296
  * Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
269
297
  * @summary Verify a signed A2A agent card
@@ -349,6 +377,15 @@ export interface AgentsApiInterface {
349
377
  * @memberof AgentsApiInterface
350
378
  */
351
379
  registerAgent(requestParameters: AgentsApiRegisterAgentRequest, options?: RawAxiosRequestConfig): AxiosPromise<RegisterAgentResponse>;
380
+ /**
381
+ * Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
382
+ * @summary Report the model tokens and cost that the agent used
383
+ * @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ * @memberof AgentsApiInterface
387
+ */
388
+ reportAgentUsage(requestParameters: AgentsApiReportAgentUsageRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReportAgentUsageResponse>;
352
389
  /**
353
390
  * Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
354
391
  * @summary Verify a signed A2A agent card
@@ -505,6 +542,25 @@ export interface AgentsApiRegisterAgentRequest {
505
542
  */
506
543
  readonly orgId: string;
507
544
  }
545
+ /**
546
+ * Request parameters for reportAgentUsage operation in AgentsApi.
547
+ * @export
548
+ * @interface AgentsApiReportAgentUsageRequest
549
+ */
550
+ export interface AgentsApiReportAgentUsageRequest {
551
+ /**
552
+ *
553
+ * @type {string}
554
+ * @memberof AgentsApiReportAgentUsage
555
+ */
556
+ readonly orgId: string;
557
+ /**
558
+ *
559
+ * @type {AdminAgentsReportUsageRequest}
560
+ * @memberof AgentsApiReportAgentUsage
561
+ */
562
+ readonly adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest;
563
+ }
508
564
  /**
509
565
  * Request parameters for verifyAgentCard operation in AgentsApi.
510
566
  * @export
@@ -603,6 +659,15 @@ export declare class AgentsApi extends BaseAPI implements AgentsApiInterface {
603
659
  * @memberof AgentsApi
604
660
  */
605
661
  registerAgent(requestParameters: AgentsApiRegisterAgentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RegisterAgentResponse, any, {}>>;
662
+ /**
663
+ * Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
664
+ * @summary Report the model tokens and cost that the agent used
665
+ * @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ * @memberof AgentsApi
669
+ */
670
+ reportAgentUsage(requestParameters: AgentsApiReportAgentUsageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReportAgentUsageResponse, any, {}>>;
606
671
  /**
607
672
  * Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
608
673
  * @summary Verify a signed A2A agent card