@canopy-io/node 0.25.0 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -4570,7 +4570,7 @@ interface paths {
4570
4570
  put?: never;
4571
4571
  /**
4572
4572
  * Rotate an API key's secret
4573
- * @description Rotates the secret of an existing API key in place, minting a brand-new `cnpy_`-prefixed value for the same row while preserving its id, name, `scopes`, `access_mode`, expiry, and audit lineage. The previous secret is invalidated immediately and the new plaintext is returned exactly once in the `key` field. `is_active` is left untouched — rotating does not re-enable a disabled key. Returns `404` when no key with the given id exists in the active Environment. A scoped API key can act only on scoped keys whose scopes it holds itself; any other key is refused with `403`.
4573
+ * @description Rotates the secret of an existing API key in place, minting a brand-new `cnpy_`-prefixed value for the same row while preserving its id, name, `scopes`, `access_mode`, expiry, and audit lineage. The previous secret is invalidated immediately and the new plaintext is returned exactly once in the `key` field. `is_active` is left untouched — rotating does not re-enable a disabled key. Returns `404` when no key with the given id exists in the active Environment. A scoped API key can act only on scoped keys whose scopes it holds itself; any other key is refused with `403`. A key that rotates itself cannot retry the call, with or without an `Idempotency-Key`, because its old secret no longer authenticates: rotate a key with another credential when the answer must not be lost.
4574
4574
  */
4575
4575
  post: operations["ApiApiKeysController_rotateSecret"];
4576
4576
  delete?: never;
@@ -5058,7 +5058,7 @@ interface components {
5058
5058
  avatar_url?: string | null;
5059
5059
  external_id?: string | null;
5060
5060
  /**
5061
- * @description The language the person reads, as a language tag, or null when none is known. Set when they sign up, when they choose a language on the hosted pages, or through this API.
5061
+ * @description The language the person reads, as a language tag, or null when none is known. Set when they sign up, from the language of the hosted page they signed up on, by an invitation that names one, or through this API.
5062
5062
  * @example fr
5063
5063
  */
5064
5064
  locale?: string | null;
@@ -5156,7 +5156,7 @@ interface components {
5156
5156
  avatar_url?: string | null;
5157
5157
  external_id?: string | null;
5158
5158
  /**
5159
- * @description The language the person reads, as a language tag, or null when none is known. Set when they sign up, when they choose a language on the hosted pages, or through this API.
5159
+ * @description The language the person reads, as a language tag, or null when none is known. Set when they sign up, from the language of the hosted page they signed up on, by an invitation that names one, or through this API.
5160
5160
  * @example fr
5161
5161
  */
5162
5162
  locale?: string | null;
@@ -12257,7 +12257,10 @@ interface operations {
12257
12257
  parameters: {
12258
12258
  query?: never;
12259
12259
  header?: {
12260
- /** @description Optional opaque string the server uses to deduplicate retried requests. When the same key is replayed within 24 hours, the original response (status + body) is returned without re-processing — eliminates duplicate writes from network blips between server commit and client receipt. Generate one per logical operation (UUIDv4 recommended). Max 255 characters. */
12260
+ /**
12261
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
12262
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
12263
+ */
12261
12264
  "Idempotency-Key"?: string;
12262
12265
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
12263
12266
  "X-Canopy-Environment"?: string;
@@ -12419,7 +12422,7 @@ interface operations {
12419
12422
  "application/json": components["schemas"]["ErrorResponseDto"];
12420
12423
  };
12421
12424
  };
12422
- /** @description The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key. */
12425
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
12423
12426
  422: {
12424
12427
  headers: {
12425
12428
  [name: string]: unknown;
@@ -12430,7 +12433,7 @@ interface operations {
12430
12433
  * "error": {
12431
12434
  * "statusCode": 422,
12432
12435
  * "code": "request.refused",
12433
- * "message": "The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key.",
12436
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
12434
12437
  * "timestamp": "2026-04-20T12:00:00.000Z",
12435
12438
  * "path": "/api/v1/identities/bulk-create",
12436
12439
  * "method": "POST"
@@ -13045,6 +13048,11 @@ interface operations {
13045
13048
  parameters: {
13046
13049
  query?: never;
13047
13050
  header?: {
13051
+ /**
13052
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
13053
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
13054
+ */
13055
+ "Idempotency-Key"?: string;
13048
13056
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
13049
13057
  "X-Canopy-Environment"?: string;
13050
13058
  };
@@ -13146,6 +13154,69 @@ interface operations {
13146
13154
  "application/json": components["schemas"]["ErrorResponseDto"];
13147
13155
  };
13148
13156
  };
13157
+ /** @description A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
13158
+ 409: {
13159
+ headers: {
13160
+ [name: string]: unknown;
13161
+ };
13162
+ content: {
13163
+ /**
13164
+ * @example {
13165
+ * "error": {
13166
+ * "statusCode": 409,
13167
+ * "code": "request.conflict",
13168
+ * "message": "A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
13169
+ * "timestamp": "2026-04-20T12:00:00.000Z",
13170
+ * "path": "/api/v1/identities/{id}/password/reset",
13171
+ * "method": "POST"
13172
+ * }
13173
+ * }
13174
+ */
13175
+ "application/json": components["schemas"]["ErrorResponseDto"];
13176
+ };
13177
+ };
13178
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
13179
+ 422: {
13180
+ headers: {
13181
+ [name: string]: unknown;
13182
+ };
13183
+ content: {
13184
+ /**
13185
+ * @example {
13186
+ * "error": {
13187
+ * "statusCode": 422,
13188
+ * "code": "request.refused",
13189
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
13190
+ * "timestamp": "2026-04-20T12:00:00.000Z",
13191
+ * "path": "/api/v1/identities/{id}/password/reset",
13192
+ * "method": "POST"
13193
+ * }
13194
+ * }
13195
+ */
13196
+ "application/json": components["schemas"]["ErrorResponseDto"];
13197
+ };
13198
+ };
13199
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
13200
+ 503: {
13201
+ headers: {
13202
+ [name: string]: unknown;
13203
+ };
13204
+ content: {
13205
+ /**
13206
+ * @example {
13207
+ * "error": {
13208
+ * "statusCode": 503,
13209
+ * "code": "server.error",
13210
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
13211
+ * "timestamp": "2026-04-20T12:00:00.000Z",
13212
+ * "path": "/api/v1/identities/{id}/password/reset",
13213
+ * "method": "POST"
13214
+ * }
13215
+ * }
13216
+ */
13217
+ "application/json": components["schemas"]["ErrorResponseDto"];
13218
+ };
13219
+ };
13149
13220
  };
13150
13221
  };
13151
13222
  ApiIdentitiesController_listIdentitySessions: {
@@ -14612,6 +14683,11 @@ interface operations {
14612
14683
  parameters: {
14613
14684
  query?: never;
14614
14685
  header?: {
14686
+ /**
14687
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
14688
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
14689
+ */
14690
+ "Idempotency-Key"?: string;
14615
14691
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
14616
14692
  "X-Canopy-Environment"?: string;
14617
14693
  };
@@ -14698,7 +14774,7 @@ interface operations {
14698
14774
  "application/json": components["schemas"]["ErrorResponseDto"];
14699
14775
  };
14700
14776
  };
14701
- /** @description A pending invite already exists for this email at this scope, the identity already has access to this Environment and the invitation joins no organization (`invite.identity_already_in_app`), or the identity is already an active member of the organization it joins (`organization.member_exists`) */
14777
+ /** @description A pending invite already exists for this email at this scope, the identity already has access to this Environment and the invitation joins no organization (`invite.identity_already_in_app`), or the identity is already an active member of the organization it joins (`organization.member_exists`). Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
14702
14778
  409: {
14703
14779
  headers: {
14704
14780
  [name: string]: unknown;
@@ -14709,7 +14785,49 @@ interface operations {
14709
14785
  * "error": {
14710
14786
  * "statusCode": 409,
14711
14787
  * "code": "request.conflict",
14712
- * "message": "A pending invite already exists for this email at this scope, the identity already has access to this Environment and the invitation joins no organization (`invite.identity_already_in_app`), or the identity is already an active member of the organization it joins (`organization.member_exists`)",
14788
+ * "message": "A pending invite already exists for this email at this scope, the identity already has access to this Environment and the invitation joins no organization (`invite.identity_already_in_app`), or the identity is already an active member of the organization it joins (`organization.member_exists`). Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
14789
+ * "timestamp": "2026-04-20T12:00:00.000Z",
14790
+ * "path": "/api/v1/identity-invites",
14791
+ * "method": "POST"
14792
+ * }
14793
+ * }
14794
+ */
14795
+ "application/json": components["schemas"]["ErrorResponseDto"];
14796
+ };
14797
+ };
14798
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
14799
+ 422: {
14800
+ headers: {
14801
+ [name: string]: unknown;
14802
+ };
14803
+ content: {
14804
+ /**
14805
+ * @example {
14806
+ * "error": {
14807
+ * "statusCode": 422,
14808
+ * "code": "request.refused",
14809
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
14810
+ * "timestamp": "2026-04-20T12:00:00.000Z",
14811
+ * "path": "/api/v1/identity-invites",
14812
+ * "method": "POST"
14813
+ * }
14814
+ * }
14815
+ */
14816
+ "application/json": components["schemas"]["ErrorResponseDto"];
14817
+ };
14818
+ };
14819
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
14820
+ 503: {
14821
+ headers: {
14822
+ [name: string]: unknown;
14823
+ };
14824
+ content: {
14825
+ /**
14826
+ * @example {
14827
+ * "error": {
14828
+ * "statusCode": 503,
14829
+ * "code": "server.error",
14830
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
14713
14831
  * "timestamp": "2026-04-20T12:00:00.000Z",
14714
14832
  * "path": "/api/v1/identity-invites",
14715
14833
  * "method": "POST"
@@ -14813,7 +14931,10 @@ interface operations {
14813
14931
  parameters: {
14814
14932
  query?: never;
14815
14933
  header?: {
14816
- /** @description Optional opaque string the server uses to deduplicate retried requests. When the same key is replayed within 24 hours, the original response (status + body) is returned without re-processing — eliminates duplicate writes from network blips between server commit and client receipt. Generate one per logical operation (UUIDv4 recommended). Max 255 characters. */
14934
+ /**
14935
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
14936
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
14937
+ */
14817
14938
  "Idempotency-Key"?: string;
14818
14939
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
14819
14940
  "X-Canopy-Environment"?: string;
@@ -14975,7 +15096,7 @@ interface operations {
14975
15096
  "application/json": components["schemas"]["ErrorResponseDto"];
14976
15097
  };
14977
15098
  };
14978
- /** @description The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key. */
15099
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
14979
15100
  422: {
14980
15101
  headers: {
14981
15102
  [name: string]: unknown;
@@ -14986,7 +15107,7 @@ interface operations {
14986
15107
  * "error": {
14987
15108
  * "statusCode": 422,
14988
15109
  * "code": "request.refused",
14989
- * "message": "The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key.",
15110
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
14990
15111
  * "timestamp": "2026-04-20T12:00:00.000Z",
14991
15112
  * "path": "/api/v1/identity-invites/bulk-create",
14992
15113
  * "method": "POST"
@@ -15023,6 +15144,11 @@ interface operations {
15023
15144
  parameters: {
15024
15145
  query?: never;
15025
15146
  header?: {
15147
+ /**
15148
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
15149
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
15150
+ */
15151
+ "Idempotency-Key"?: string;
15026
15152
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
15027
15153
  "X-Canopy-Environment"?: string;
15028
15154
  };
@@ -15128,6 +15254,69 @@ interface operations {
15128
15254
  "application/json": components["schemas"]["ErrorResponseDto"];
15129
15255
  };
15130
15256
  };
15257
+ /** @description A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
15258
+ 409: {
15259
+ headers: {
15260
+ [name: string]: unknown;
15261
+ };
15262
+ content: {
15263
+ /**
15264
+ * @example {
15265
+ * "error": {
15266
+ * "statusCode": 409,
15267
+ * "code": "request.conflict",
15268
+ * "message": "A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
15269
+ * "timestamp": "2026-04-20T12:00:00.000Z",
15270
+ * "path": "/api/v1/identity-invites/{id}/resend",
15271
+ * "method": "POST"
15272
+ * }
15273
+ * }
15274
+ */
15275
+ "application/json": components["schemas"]["ErrorResponseDto"];
15276
+ };
15277
+ };
15278
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
15279
+ 422: {
15280
+ headers: {
15281
+ [name: string]: unknown;
15282
+ };
15283
+ content: {
15284
+ /**
15285
+ * @example {
15286
+ * "error": {
15287
+ * "statusCode": 422,
15288
+ * "code": "request.refused",
15289
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
15290
+ * "timestamp": "2026-04-20T12:00:00.000Z",
15291
+ * "path": "/api/v1/identity-invites/{id}/resend",
15292
+ * "method": "POST"
15293
+ * }
15294
+ * }
15295
+ */
15296
+ "application/json": components["schemas"]["ErrorResponseDto"];
15297
+ };
15298
+ };
15299
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
15300
+ 503: {
15301
+ headers: {
15302
+ [name: string]: unknown;
15303
+ };
15304
+ content: {
15305
+ /**
15306
+ * @example {
15307
+ * "error": {
15308
+ * "statusCode": 503,
15309
+ * "code": "server.error",
15310
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
15311
+ * "timestamp": "2026-04-20T12:00:00.000Z",
15312
+ * "path": "/api/v1/identity-invites/{id}/resend",
15313
+ * "method": "POST"
15314
+ * }
15315
+ * }
15316
+ */
15317
+ "application/json": components["schemas"]["ErrorResponseDto"];
15318
+ };
15319
+ };
15131
15320
  };
15132
15321
  };
15133
15322
  ApiIdentityInvitesController_revokeInvite: {
@@ -15350,6 +15539,11 @@ interface operations {
15350
15539
  parameters: {
15351
15540
  query?: never;
15352
15541
  header?: {
15542
+ /**
15543
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
15544
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
15545
+ */
15546
+ "Idempotency-Key"?: string;
15353
15547
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
15354
15548
  "X-Canopy-Environment"?: string;
15355
15549
  };
@@ -15436,7 +15630,7 @@ interface operations {
15436
15630
  "application/json": components["schemas"]["ErrorResponseDto"];
15437
15631
  };
15438
15632
  };
15439
- /** @description Root node already exists */
15633
+ /** @description Root node already exists. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
15440
15634
  409: {
15441
15635
  headers: {
15442
15636
  [name: string]: unknown;
@@ -15447,7 +15641,49 @@ interface operations {
15447
15641
  * "error": {
15448
15642
  * "statusCode": 409,
15449
15643
  * "code": "request.conflict",
15450
- * "message": "Root node already exists",
15644
+ * "message": "Root node already exists. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
15645
+ * "timestamp": "2026-04-20T12:00:00.000Z",
15646
+ * "path": "/api/v1/nodes",
15647
+ * "method": "POST"
15648
+ * }
15649
+ * }
15650
+ */
15651
+ "application/json": components["schemas"]["ErrorResponseDto"];
15652
+ };
15653
+ };
15654
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
15655
+ 422: {
15656
+ headers: {
15657
+ [name: string]: unknown;
15658
+ };
15659
+ content: {
15660
+ /**
15661
+ * @example {
15662
+ * "error": {
15663
+ * "statusCode": 422,
15664
+ * "code": "request.refused",
15665
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
15666
+ * "timestamp": "2026-04-20T12:00:00.000Z",
15667
+ * "path": "/api/v1/nodes",
15668
+ * "method": "POST"
15669
+ * }
15670
+ * }
15671
+ */
15672
+ "application/json": components["schemas"]["ErrorResponseDto"];
15673
+ };
15674
+ };
15675
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
15676
+ 503: {
15677
+ headers: {
15678
+ [name: string]: unknown;
15679
+ };
15680
+ content: {
15681
+ /**
15682
+ * @example {
15683
+ * "error": {
15684
+ * "statusCode": 503,
15685
+ * "code": "server.error",
15686
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
15451
15687
  * "timestamp": "2026-04-20T12:00:00.000Z",
15452
15688
  * "path": "/api/v1/nodes",
15453
15689
  * "method": "POST"
@@ -18337,6 +18573,11 @@ interface operations {
18337
18573
  parameters: {
18338
18574
  query?: never;
18339
18575
  header?: {
18576
+ /**
18577
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
18578
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
18579
+ */
18580
+ "Idempotency-Key"?: string;
18340
18581
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
18341
18582
  "X-Canopy-Environment"?: string;
18342
18583
  };
@@ -18446,6 +18687,69 @@ interface operations {
18446
18687
  "application/json": components["schemas"]["ErrorResponseDto"];
18447
18688
  };
18448
18689
  };
18690
+ /** @description A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
18691
+ 409: {
18692
+ headers: {
18693
+ [name: string]: unknown;
18694
+ };
18695
+ content: {
18696
+ /**
18697
+ * @example {
18698
+ * "error": {
18699
+ * "statusCode": 409,
18700
+ * "code": "request.conflict",
18701
+ * "message": "A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
18702
+ * "timestamp": "2026-04-20T12:00:00.000Z",
18703
+ * "path": "/api/v1/organizations/{id}/nodes",
18704
+ * "method": "POST"
18705
+ * }
18706
+ * }
18707
+ */
18708
+ "application/json": components["schemas"]["ErrorResponseDto"];
18709
+ };
18710
+ };
18711
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
18712
+ 422: {
18713
+ headers: {
18714
+ [name: string]: unknown;
18715
+ };
18716
+ content: {
18717
+ /**
18718
+ * @example {
18719
+ * "error": {
18720
+ * "statusCode": 422,
18721
+ * "code": "request.refused",
18722
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
18723
+ * "timestamp": "2026-04-20T12:00:00.000Z",
18724
+ * "path": "/api/v1/organizations/{id}/nodes",
18725
+ * "method": "POST"
18726
+ * }
18727
+ * }
18728
+ */
18729
+ "application/json": components["schemas"]["ErrorResponseDto"];
18730
+ };
18731
+ };
18732
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
18733
+ 503: {
18734
+ headers: {
18735
+ [name: string]: unknown;
18736
+ };
18737
+ content: {
18738
+ /**
18739
+ * @example {
18740
+ * "error": {
18741
+ * "statusCode": 503,
18742
+ * "code": "server.error",
18743
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
18744
+ * "timestamp": "2026-04-20T12:00:00.000Z",
18745
+ * "path": "/api/v1/organizations/{id}/nodes",
18746
+ * "method": "POST"
18747
+ * }
18748
+ * }
18749
+ */
18750
+ "application/json": components["schemas"]["ErrorResponseDto"];
18751
+ };
18752
+ };
18449
18753
  };
18450
18754
  };
18451
18755
  ApiOrganizationStructureController_getNode: {
@@ -19303,6 +19607,11 @@ interface operations {
19303
19607
  parameters: {
19304
19608
  query?: never;
19305
19609
  header?: {
19610
+ /**
19611
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
19612
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
19613
+ */
19614
+ "Idempotency-Key"?: string;
19306
19615
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
19307
19616
  "X-Canopy-Environment"?: string;
19308
19617
  };
@@ -19410,7 +19719,7 @@ interface operations {
19410
19719
  "application/json": components["schemas"]["ErrorResponseDto"];
19411
19720
  };
19412
19721
  };
19413
- /** @description Organizations are not enabled on this Environment, another organization already holds this external_id, or the plan's organization limit is reached */
19722
+ /** @description Organizations are not enabled on this Environment, another organization already holds this external_id, or the plan's organization limit is reached. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
19414
19723
  409: {
19415
19724
  headers: {
19416
19725
  [name: string]: unknown;
@@ -19421,7 +19730,49 @@ interface operations {
19421
19730
  * "error": {
19422
19731
  * "statusCode": 409,
19423
19732
  * "code": "request.conflict",
19424
- * "message": "Organizations are not enabled on this Environment, another organization already holds this external_id, or the plan's organization limit is reached",
19733
+ * "message": "Organizations are not enabled on this Environment, another organization already holds this external_id, or the plan's organization limit is reached. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
19734
+ * "timestamp": "2026-04-20T12:00:00.000Z",
19735
+ * "path": "/api/v1/organizations",
19736
+ * "method": "POST"
19737
+ * }
19738
+ * }
19739
+ */
19740
+ "application/json": components["schemas"]["ErrorResponseDto"];
19741
+ };
19742
+ };
19743
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
19744
+ 422: {
19745
+ headers: {
19746
+ [name: string]: unknown;
19747
+ };
19748
+ content: {
19749
+ /**
19750
+ * @example {
19751
+ * "error": {
19752
+ * "statusCode": 422,
19753
+ * "code": "request.refused",
19754
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
19755
+ * "timestamp": "2026-04-20T12:00:00.000Z",
19756
+ * "path": "/api/v1/organizations",
19757
+ * "method": "POST"
19758
+ * }
19759
+ * }
19760
+ */
19761
+ "application/json": components["schemas"]["ErrorResponseDto"];
19762
+ };
19763
+ };
19764
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
19765
+ 503: {
19766
+ headers: {
19767
+ [name: string]: unknown;
19768
+ };
19769
+ content: {
19770
+ /**
19771
+ * @example {
19772
+ * "error": {
19773
+ * "statusCode": 503,
19774
+ * "code": "server.error",
19775
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
19425
19776
  * "timestamp": "2026-04-20T12:00:00.000Z",
19426
19777
  * "path": "/api/v1/organizations",
19427
19778
  * "method": "POST"
@@ -20385,6 +20736,11 @@ interface operations {
20385
20736
  parameters: {
20386
20737
  query?: never;
20387
20738
  header?: {
20739
+ /**
20740
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
20741
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
20742
+ */
20743
+ "Idempotency-Key"?: string;
20388
20744
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
20389
20745
  "X-Canopy-Environment"?: string;
20390
20746
  };
@@ -20490,6 +20846,69 @@ interface operations {
20490
20846
  "application/json": components["schemas"]["ErrorResponseDto"];
20491
20847
  };
20492
20848
  };
20849
+ /** @description A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
20850
+ 409: {
20851
+ headers: {
20852
+ [name: string]: unknown;
20853
+ };
20854
+ content: {
20855
+ /**
20856
+ * @example {
20857
+ * "error": {
20858
+ * "statusCode": 409,
20859
+ * "code": "request.conflict",
20860
+ * "message": "A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
20861
+ * "timestamp": "2026-04-20T12:00:00.000Z",
20862
+ * "path": "/api/v1/organizations/{id}/policy/sso-recovery-codes",
20863
+ * "method": "POST"
20864
+ * }
20865
+ * }
20866
+ */
20867
+ "application/json": components["schemas"]["ErrorResponseDto"];
20868
+ };
20869
+ };
20870
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
20871
+ 422: {
20872
+ headers: {
20873
+ [name: string]: unknown;
20874
+ };
20875
+ content: {
20876
+ /**
20877
+ * @example {
20878
+ * "error": {
20879
+ * "statusCode": 422,
20880
+ * "code": "request.refused",
20881
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
20882
+ * "timestamp": "2026-04-20T12:00:00.000Z",
20883
+ * "path": "/api/v1/organizations/{id}/policy/sso-recovery-codes",
20884
+ * "method": "POST"
20885
+ * }
20886
+ * }
20887
+ */
20888
+ "application/json": components["schemas"]["ErrorResponseDto"];
20889
+ };
20890
+ };
20891
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
20892
+ 503: {
20893
+ headers: {
20894
+ [name: string]: unknown;
20895
+ };
20896
+ content: {
20897
+ /**
20898
+ * @example {
20899
+ * "error": {
20900
+ * "statusCode": 503,
20901
+ * "code": "server.error",
20902
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
20903
+ * "timestamp": "2026-04-20T12:00:00.000Z",
20904
+ * "path": "/api/v1/organizations/{id}/policy/sso-recovery-codes",
20905
+ * "method": "POST"
20906
+ * }
20907
+ * }
20908
+ */
20909
+ "application/json": components["schemas"]["ErrorResponseDto"];
20910
+ };
20911
+ };
20493
20912
  };
20494
20913
  };
20495
20914
  ApiOrganizationsController_startTestSignIn: {
@@ -22271,6 +22690,11 @@ interface operations {
22271
22690
  parameters: {
22272
22691
  query?: never;
22273
22692
  header?: {
22693
+ /**
22694
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
22695
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
22696
+ */
22697
+ "Idempotency-Key"?: string;
22274
22698
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
22275
22699
  "X-Canopy-Environment"?: string;
22276
22700
  };
@@ -22380,7 +22804,7 @@ interface operations {
22380
22804
  "application/json": components["schemas"]["ErrorResponseDto"];
22381
22805
  };
22382
22806
  };
22383
- /** @description A pending invitation already exists for this email at this place, or the identity is already an active member of the organization (`organization.member_exists`); give a member a role through the assignment routes */
22807
+ /** @description A pending invitation already exists for this email at this place, or the identity is already an active member of the organization (`organization.member_exists`); give a member a role through the assignment routes. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
22384
22808
  409: {
22385
22809
  headers: {
22386
22810
  [name: string]: unknown;
@@ -22391,7 +22815,49 @@ interface operations {
22391
22815
  * "error": {
22392
22816
  * "statusCode": 409,
22393
22817
  * "code": "request.conflict",
22394
- * "message": "A pending invitation already exists for this email at this place, or the identity is already an active member of the organization (`organization.member_exists`); give a member a role through the assignment routes",
22818
+ * "message": "A pending invitation already exists for this email at this place, or the identity is already an active member of the organization (`organization.member_exists`); give a member a role through the assignment routes. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
22819
+ * "timestamp": "2026-04-20T12:00:00.000Z",
22820
+ * "path": "/api/v1/organizations/{id}/invites",
22821
+ * "method": "POST"
22822
+ * }
22823
+ * }
22824
+ */
22825
+ "application/json": components["schemas"]["ErrorResponseDto"];
22826
+ };
22827
+ };
22828
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
22829
+ 422: {
22830
+ headers: {
22831
+ [name: string]: unknown;
22832
+ };
22833
+ content: {
22834
+ /**
22835
+ * @example {
22836
+ * "error": {
22837
+ * "statusCode": 422,
22838
+ * "code": "request.refused",
22839
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
22840
+ * "timestamp": "2026-04-20T12:00:00.000Z",
22841
+ * "path": "/api/v1/organizations/{id}/invites",
22842
+ * "method": "POST"
22843
+ * }
22844
+ * }
22845
+ */
22846
+ "application/json": components["schemas"]["ErrorResponseDto"];
22847
+ };
22848
+ };
22849
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
22850
+ 503: {
22851
+ headers: {
22852
+ [name: string]: unknown;
22853
+ };
22854
+ content: {
22855
+ /**
22856
+ * @example {
22857
+ * "error": {
22858
+ * "statusCode": 503,
22859
+ * "code": "server.error",
22860
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
22395
22861
  * "timestamp": "2026-04-20T12:00:00.000Z",
22396
22862
  * "path": "/api/v1/organizations/{id}/invites",
22397
22863
  * "method": "POST"
@@ -23432,6 +23898,11 @@ interface operations {
23432
23898
  header?: {
23433
23899
  /** @description Optimistic-lock version of the resource. Send the `version` field returned on read; the server rejects with 409 if the row has changed since. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
23434
23900
  "If-Match"?: string;
23901
+ /**
23902
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
23903
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
23904
+ */
23905
+ "Idempotency-Key"?: string;
23435
23906
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
23436
23907
  "X-Canopy-Environment"?: string;
23437
23908
  };
@@ -23537,7 +24008,7 @@ interface operations {
23537
24008
  "application/json": components["schemas"]["ErrorResponseDto"];
23538
24009
  };
23539
24010
  };
23540
- /** @description The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`); or the organization requires single sign-on and this is its only active connection (`organization.sso_requirement_needs_connection`): turn the requirement off first */
24011
+ /** @description The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`); or the organization requires single sign-on and this is its only active connection (`organization.sso_requirement_needs_connection`): turn the requirement off first. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
23541
24012
  409: {
23542
24013
  headers: {
23543
24014
  [name: string]: unknown;
@@ -23548,7 +24019,49 @@ interface operations {
23548
24019
  * "error": {
23549
24020
  * "statusCode": 409,
23550
24021
  * "code": "request.conflict",
23551
- * "message": "The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`); or the organization requires single sign-on and this is its only active connection (`organization.sso_requirement_needs_connection`): turn the requirement off first",
24022
+ * "message": "The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`); or the organization requires single sign-on and this is its only active connection (`organization.sso_requirement_needs_connection`): turn the requirement off first. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
24023
+ * "timestamp": "2026-04-20T12:00:00.000Z",
24024
+ * "path": "/api/v1/organizations/{id}/sso-connection/disable",
24025
+ * "method": "POST"
24026
+ * }
24027
+ * }
24028
+ */
24029
+ "application/json": components["schemas"]["ErrorResponseDto"];
24030
+ };
24031
+ };
24032
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
24033
+ 422: {
24034
+ headers: {
24035
+ [name: string]: unknown;
24036
+ };
24037
+ content: {
24038
+ /**
24039
+ * @example {
24040
+ * "error": {
24041
+ * "statusCode": 422,
24042
+ * "code": "request.refused",
24043
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
24044
+ * "timestamp": "2026-04-20T12:00:00.000Z",
24045
+ * "path": "/api/v1/organizations/{id}/sso-connection/disable",
24046
+ * "method": "POST"
24047
+ * }
24048
+ * }
24049
+ */
24050
+ "application/json": components["schemas"]["ErrorResponseDto"];
24051
+ };
24052
+ };
24053
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
24054
+ 503: {
24055
+ headers: {
24056
+ [name: string]: unknown;
24057
+ };
24058
+ content: {
24059
+ /**
24060
+ * @example {
24061
+ * "error": {
24062
+ * "statusCode": 503,
24063
+ * "code": "server.error",
24064
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
23552
24065
  * "timestamp": "2026-04-20T12:00:00.000Z",
23553
24066
  * "path": "/api/v1/organizations/{id}/sso-connection/disable",
23554
24067
  * "method": "POST"
@@ -24538,6 +25051,11 @@ interface operations {
24538
25051
  parameters: {
24539
25052
  query?: never;
24540
25053
  header?: {
25054
+ /**
25055
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
25056
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
25057
+ */
25058
+ "Idempotency-Key"?: string;
24541
25059
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
24542
25060
  "X-Canopy-Environment"?: string;
24543
25061
  };
@@ -24647,7 +25165,7 @@ interface operations {
24647
25165
  "application/json": components["schemas"]["ErrorResponseDto"];
24648
25166
  };
24649
25167
  };
24650
- /** @description The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap */
25168
+ /** @description The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
24651
25169
  409: {
24652
25170
  headers: {
24653
25171
  [name: string]: unknown;
@@ -24658,7 +25176,49 @@ interface operations {
24658
25176
  * "error": {
24659
25177
  * "statusCode": 409,
24660
25178
  * "code": "request.conflict",
24661
- * "message": "The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap",
25179
+ * "message": "The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
25180
+ * "timestamp": "2026-04-20T12:00:00.000Z",
25181
+ * "path": "/api/v1/organizations/{id}/directory/tokens",
25182
+ * "method": "POST"
25183
+ * }
25184
+ * }
25185
+ */
25186
+ "application/json": components["schemas"]["ErrorResponseDto"];
25187
+ };
25188
+ };
25189
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
25190
+ 422: {
25191
+ headers: {
25192
+ [name: string]: unknown;
25193
+ };
25194
+ content: {
25195
+ /**
25196
+ * @example {
25197
+ * "error": {
25198
+ * "statusCode": 422,
25199
+ * "code": "request.refused",
25200
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
25201
+ * "timestamp": "2026-04-20T12:00:00.000Z",
25202
+ * "path": "/api/v1/organizations/{id}/directory/tokens",
25203
+ * "method": "POST"
25204
+ * }
25205
+ * }
25206
+ */
25207
+ "application/json": components["schemas"]["ErrorResponseDto"];
25208
+ };
25209
+ };
25210
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
25211
+ 503: {
25212
+ headers: {
25213
+ [name: string]: unknown;
25214
+ };
25215
+ content: {
25216
+ /**
25217
+ * @example {
25218
+ * "error": {
25219
+ * "statusCode": 503,
25220
+ * "code": "server.error",
25221
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
24662
25222
  * "timestamp": "2026-04-20T12:00:00.000Z",
24663
25223
  * "path": "/api/v1/organizations/{id}/directory/tokens",
24664
25224
  * "method": "POST"
@@ -24674,6 +25234,11 @@ interface operations {
24674
25234
  parameters: {
24675
25235
  query?: never;
24676
25236
  header?: {
25237
+ /**
25238
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
25239
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
25240
+ */
25241
+ "Idempotency-Key"?: string;
24677
25242
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
24678
25243
  "X-Canopy-Environment"?: string;
24679
25244
  };
@@ -24784,7 +25349,7 @@ interface operations {
24784
25349
  "application/json": components["schemas"]["ErrorResponseDto"];
24785
25350
  };
24786
25351
  };
24787
- /** @description The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap */
25352
+ /** @description The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
24788
25353
  409: {
24789
25354
  headers: {
24790
25355
  [name: string]: unknown;
@@ -24795,7 +25360,49 @@ interface operations {
24795
25360
  * "error": {
24796
25361
  * "statusCode": 409,
24797
25362
  * "code": "request.conflict",
24798
- * "message": "The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap",
25363
+ * "message": "The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
25364
+ * "timestamp": "2026-04-20T12:00:00.000Z",
25365
+ * "path": "/api/v1/organizations/{id}/directory/tokens/{tokenId}/rotate",
25366
+ * "method": "POST"
25367
+ * }
25368
+ * }
25369
+ */
25370
+ "application/json": components["schemas"]["ErrorResponseDto"];
25371
+ };
25372
+ };
25373
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
25374
+ 422: {
25375
+ headers: {
25376
+ [name: string]: unknown;
25377
+ };
25378
+ content: {
25379
+ /**
25380
+ * @example {
25381
+ * "error": {
25382
+ * "statusCode": 422,
25383
+ * "code": "request.refused",
25384
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
25385
+ * "timestamp": "2026-04-20T12:00:00.000Z",
25386
+ * "path": "/api/v1/organizations/{id}/directory/tokens/{tokenId}/rotate",
25387
+ * "method": "POST"
25388
+ * }
25389
+ * }
25390
+ */
25391
+ "application/json": components["schemas"]["ErrorResponseDto"];
25392
+ };
25393
+ };
25394
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
25395
+ 503: {
25396
+ headers: {
25397
+ [name: string]: unknown;
25398
+ };
25399
+ content: {
25400
+ /**
25401
+ * @example {
25402
+ * "error": {
25403
+ * "statusCode": 503,
25404
+ * "code": "server.error",
25405
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
24799
25406
  * "timestamp": "2026-04-20T12:00:00.000Z",
24800
25407
  * "path": "/api/v1/organizations/{id}/directory/tokens/{tokenId}/rotate",
24801
25408
  * "method": "POST"
@@ -25400,6 +26007,11 @@ interface operations {
25400
26007
  parameters: {
25401
26008
  query?: never;
25402
26009
  header?: {
26010
+ /**
26011
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
26012
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
26013
+ */
26014
+ "Idempotency-Key"?: string;
25403
26015
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
25404
26016
  "X-Canopy-Environment"?: string;
25405
26017
  };
@@ -25509,7 +26121,7 @@ interface operations {
25509
26121
  "application/json": components["schemas"]["ErrorResponseDto"];
25510
26122
  };
25511
26123
  };
25512
- /** @description The Environment has no default audience, the organization already holds as many integrations as it may, another of its integrations has this name, or the plan's machine-credential allowance is reached */
26124
+ /** @description The Environment has no default audience, the organization already holds as many integrations as it may, another of its integrations has this name, or the plan's machine-credential allowance is reached. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
25513
26125
  409: {
25514
26126
  headers: {
25515
26127
  [name: string]: unknown;
@@ -25520,7 +26132,49 @@ interface operations {
25520
26132
  * "error": {
25521
26133
  * "statusCode": 409,
25522
26134
  * "code": "request.conflict",
25523
- * "message": "The Environment has no default audience, the organization already holds as many integrations as it may, another of its integrations has this name, or the plan's machine-credential allowance is reached",
26135
+ * "message": "The Environment has no default audience, the organization already holds as many integrations as it may, another of its integrations has this name, or the plan's machine-credential allowance is reached. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
26136
+ * "timestamp": "2026-04-20T12:00:00.000Z",
26137
+ * "path": "/api/v1/organizations/{id}/oauth-clients",
26138
+ * "method": "POST"
26139
+ * }
26140
+ * }
26141
+ */
26142
+ "application/json": components["schemas"]["ErrorResponseDto"];
26143
+ };
26144
+ };
26145
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
26146
+ 422: {
26147
+ headers: {
26148
+ [name: string]: unknown;
26149
+ };
26150
+ content: {
26151
+ /**
26152
+ * @example {
26153
+ * "error": {
26154
+ * "statusCode": 422,
26155
+ * "code": "request.refused",
26156
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
26157
+ * "timestamp": "2026-04-20T12:00:00.000Z",
26158
+ * "path": "/api/v1/organizations/{id}/oauth-clients",
26159
+ * "method": "POST"
26160
+ * }
26161
+ * }
26162
+ */
26163
+ "application/json": components["schemas"]["ErrorResponseDto"];
26164
+ };
26165
+ };
26166
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
26167
+ 503: {
26168
+ headers: {
26169
+ [name: string]: unknown;
26170
+ };
26171
+ content: {
26172
+ /**
26173
+ * @example {
26174
+ * "error": {
26175
+ * "statusCode": 503,
26176
+ * "code": "server.error",
26177
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
25524
26178
  * "timestamp": "2026-04-20T12:00:00.000Z",
25525
26179
  * "path": "/api/v1/organizations/{id}/oauth-clients",
25526
26180
  * "method": "POST"
@@ -26006,6 +26660,11 @@ interface operations {
26006
26660
  parameters: {
26007
26661
  query?: never;
26008
26662
  header?: {
26663
+ /**
26664
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
26665
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
26666
+ */
26667
+ "Idempotency-Key"?: string;
26009
26668
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
26010
26669
  "X-Canopy-Environment"?: string;
26011
26670
  };
@@ -26116,6 +26775,69 @@ interface operations {
26116
26775
  "application/json": components["schemas"]["ErrorResponseDto"];
26117
26776
  };
26118
26777
  };
26778
+ /** @description A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
26779
+ 409: {
26780
+ headers: {
26781
+ [name: string]: unknown;
26782
+ };
26783
+ content: {
26784
+ /**
26785
+ * @example {
26786
+ * "error": {
26787
+ * "statusCode": 409,
26788
+ * "code": "request.conflict",
26789
+ * "message": "A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
26790
+ * "timestamp": "2026-04-20T12:00:00.000Z",
26791
+ * "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/rotate-secret",
26792
+ * "method": "POST"
26793
+ * }
26794
+ * }
26795
+ */
26796
+ "application/json": components["schemas"]["ErrorResponseDto"];
26797
+ };
26798
+ };
26799
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
26800
+ 422: {
26801
+ headers: {
26802
+ [name: string]: unknown;
26803
+ };
26804
+ content: {
26805
+ /**
26806
+ * @example {
26807
+ * "error": {
26808
+ * "statusCode": 422,
26809
+ * "code": "request.refused",
26810
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
26811
+ * "timestamp": "2026-04-20T12:00:00.000Z",
26812
+ * "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/rotate-secret",
26813
+ * "method": "POST"
26814
+ * }
26815
+ * }
26816
+ */
26817
+ "application/json": components["schemas"]["ErrorResponseDto"];
26818
+ };
26819
+ };
26820
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
26821
+ 503: {
26822
+ headers: {
26823
+ [name: string]: unknown;
26824
+ };
26825
+ content: {
26826
+ /**
26827
+ * @example {
26828
+ * "error": {
26829
+ * "statusCode": 503,
26830
+ * "code": "server.error",
26831
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
26832
+ * "timestamp": "2026-04-20T12:00:00.000Z",
26833
+ * "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/rotate-secret",
26834
+ * "method": "POST"
26835
+ * }
26836
+ * }
26837
+ */
26838
+ "application/json": components["schemas"]["ErrorResponseDto"];
26839
+ };
26840
+ };
26119
26841
  };
26120
26842
  };
26121
26843
  ApiOrganizationIntegrationsController_listAssignments: {
@@ -30908,6 +31630,11 @@ interface operations {
30908
31630
  parameters: {
30909
31631
  query?: never;
30910
31632
  header?: {
31633
+ /**
31634
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
31635
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
31636
+ */
31637
+ "Idempotency-Key"?: string;
30911
31638
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
30912
31639
  "X-Canopy-Environment"?: string;
30913
31640
  };
@@ -30994,6 +31721,69 @@ interface operations {
30994
31721
  "application/json": components["schemas"]["ErrorResponseDto"];
30995
31722
  };
30996
31723
  };
31724
+ /** @description A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
31725
+ 409: {
31726
+ headers: {
31727
+ [name: string]: unknown;
31728
+ };
31729
+ content: {
31730
+ /**
31731
+ * @example {
31732
+ * "error": {
31733
+ * "statusCode": 409,
31734
+ * "code": "request.conflict",
31735
+ * "message": "A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
31736
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31737
+ * "path": "/api/v1/audit-events/export",
31738
+ * "method": "POST"
31739
+ * }
31740
+ * }
31741
+ */
31742
+ "application/json": components["schemas"]["ErrorResponseDto"];
31743
+ };
31744
+ };
31745
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
31746
+ 422: {
31747
+ headers: {
31748
+ [name: string]: unknown;
31749
+ };
31750
+ content: {
31751
+ /**
31752
+ * @example {
31753
+ * "error": {
31754
+ * "statusCode": 422,
31755
+ * "code": "request.refused",
31756
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
31757
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31758
+ * "path": "/api/v1/audit-events/export",
31759
+ * "method": "POST"
31760
+ * }
31761
+ * }
31762
+ */
31763
+ "application/json": components["schemas"]["ErrorResponseDto"];
31764
+ };
31765
+ };
31766
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
31767
+ 503: {
31768
+ headers: {
31769
+ [name: string]: unknown;
31770
+ };
31771
+ content: {
31772
+ /**
31773
+ * @example {
31774
+ * "error": {
31775
+ * "statusCode": 503,
31776
+ * "code": "server.error",
31777
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
31778
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31779
+ * "path": "/api/v1/audit-events/export",
31780
+ * "method": "POST"
31781
+ * }
31782
+ * }
31783
+ */
31784
+ "application/json": components["schemas"]["ErrorResponseDto"];
31785
+ };
31786
+ };
30997
31787
  };
30998
31788
  };
30999
31789
  ApiAuditEventsController_getExport: {
@@ -33198,7 +33988,13 @@ interface operations {
33198
33988
  ApiApplicationsController_createEnvironment: {
33199
33989
  parameters: {
33200
33990
  query?: never;
33201
- header?: never;
33991
+ header?: {
33992
+ /**
33993
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
33994
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
33995
+ */
33996
+ "Idempotency-Key"?: string;
33997
+ };
33202
33998
  path: {
33203
33999
  id: string;
33204
34000
  };
@@ -33305,7 +34101,7 @@ interface operations {
33305
34101
  "application/json": components["schemas"]["ErrorResponseDto"];
33306
34102
  };
33307
34103
  };
33308
- /** @description An Environment with this slug already exists in the Application (`environment.slug_conflict`), or the Application already holds as many Environments as it may (`environment.limit`, `data.limit` naming the limit) */
34104
+ /** @description An Environment with this slug already exists in the Application (`environment.slug_conflict`), or the Application already holds as many Environments as it may (`environment.limit`, `data.limit` naming the limit). Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
33309
34105
  409: {
33310
34106
  headers: {
33311
34107
  [name: string]: unknown;
@@ -33316,7 +34112,7 @@ interface operations {
33316
34112
  * "error": {
33317
34113
  * "statusCode": 409,
33318
34114
  * "code": "request.conflict",
33319
- * "message": "An Environment with this slug already exists in the Application (`environment.slug_conflict`), or the Application already holds as many Environments as it may (`environment.limit`, `data.limit` naming the limit)",
34115
+ * "message": "An Environment with this slug already exists in the Application (`environment.slug_conflict`), or the Application already holds as many Environments as it may (`environment.limit`, `data.limit` naming the limit). Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
33320
34116
  * "timestamp": "2026-04-20T12:00:00.000Z",
33321
34117
  * "path": "/api/v1/applications/{id}/environments",
33322
34118
  * "method": "POST"
@@ -33326,74 +34122,8 @@ interface operations {
33326
34122
  "application/json": components["schemas"]["ErrorResponseDto"];
33327
34123
  };
33328
34124
  };
33329
- };
33330
- };
33331
- ApiEnvironmentsController_get: {
33332
- parameters: {
33333
- query?: never;
33334
- header?: never;
33335
- path: {
33336
- id: string;
33337
- };
33338
- cookie?: never;
33339
- };
33340
- requestBody?: never;
33341
- responses: {
33342
- /** @description Environment returned */
33343
- 200: {
33344
- headers: {
33345
- [name: string]: unknown;
33346
- };
33347
- content: {
33348
- "application/json": {
33349
- data: components["schemas"]["EnvironmentResponseDto"];
33350
- };
33351
- };
33352
- };
33353
- /** @description The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`) */
33354
- 400: {
33355
- headers: {
33356
- [name: string]: unknown;
33357
- };
33358
- content: {
33359
- /**
33360
- * @example {
33361
- * "error": {
33362
- * "statusCode": 400,
33363
- * "code": "request.invalid",
33364
- * "message": "The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`)",
33365
- * "timestamp": "2026-04-20T12:00:00.000Z",
33366
- * "path": "/api/v1/environments/{id}",
33367
- * "method": "GET"
33368
- * }
33369
- * }
33370
- */
33371
- "application/json": components["schemas"]["ErrorResponseDto"];
33372
- };
33373
- };
33374
- /** @description Invalid or expired token */
33375
- 401: {
33376
- headers: {
33377
- [name: string]: unknown;
33378
- };
33379
- content: {
33380
- /**
33381
- * @example {
33382
- * "error": {
33383
- * "statusCode": 401,
33384
- * "code": "auth.invalid_token",
33385
- * "message": "Invalid or expired token",
33386
- * "timestamp": "2026-04-20T12:00:00.000Z",
33387
- * "path": "/api/v1/environments/{id}",
33388
- * "method": "GET"
33389
- * }
33390
- * }
33391
- */
33392
- "application/json": components["schemas"]["ErrorResponseDto"];
33393
- };
33394
- };
33395
- /** @description The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment */
33396
- 403: {
34125
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
34126
+ 422: {
33397
34127
  headers: {
33398
34128
  [name: string]: unknown;
33399
34129
  };
@@ -33401,20 +34131,20 @@ interface operations {
33401
34131
  /**
33402
34132
  * @example {
33403
34133
  * "error": {
33404
- * "statusCode": 403,
33405
- * "code": "auth.forbidden",
33406
- * "message": "The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment",
34134
+ * "statusCode": 422,
34135
+ * "code": "request.refused",
34136
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
33407
34137
  * "timestamp": "2026-04-20T12:00:00.000Z",
33408
- * "path": "/api/v1/environments/{id}",
33409
- * "method": "GET"
34138
+ * "path": "/api/v1/applications/{id}/environments",
34139
+ * "method": "POST"
33410
34140
  * }
33411
34141
  * }
33412
34142
  */
33413
34143
  "application/json": components["schemas"]["ErrorResponseDto"];
33414
34144
  };
33415
34145
  };
33416
- /** @description The Account has no Environment with this `id` */
33417
- 404: {
34146
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
34147
+ 503: {
33418
34148
  headers: {
33419
34149
  [name: string]: unknown;
33420
34150
  };
@@ -33422,12 +34152,12 @@ interface operations {
33422
34152
  /**
33423
34153
  * @example {
33424
34154
  * "error": {
33425
- * "statusCode": 404,
33426
- * "code": "request.not_found",
33427
- * "message": "The Account has no Environment with this `id`",
34155
+ * "statusCode": 503,
34156
+ * "code": "server.error",
34157
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
33428
34158
  * "timestamp": "2026-04-20T12:00:00.000Z",
33429
- * "path": "/api/v1/environments/{id}",
33430
- * "method": "GET"
34159
+ * "path": "/api/v1/applications/{id}/environments",
34160
+ * "method": "POST"
33431
34161
  * }
33432
34162
  * }
33433
34163
  */
@@ -33436,7 +34166,7 @@ interface operations {
33436
34166
  };
33437
34167
  };
33438
34168
  };
33439
- ApiEnvironmentsController_delete: {
34169
+ ApiEnvironmentsController_get: {
33440
34170
  parameters: {
33441
34171
  query?: never;
33442
34172
  header?: never;
@@ -33447,14 +34177,18 @@ interface operations {
33447
34177
  };
33448
34178
  requestBody?: never;
33449
34179
  responses: {
33450
- /** @description Environment deleted */
33451
- 204: {
34180
+ /** @description Environment returned */
34181
+ 200: {
33452
34182
  headers: {
33453
34183
  [name: string]: unknown;
33454
34184
  };
33455
- content?: never;
34185
+ content: {
34186
+ "application/json": {
34187
+ data: components["schemas"]["EnvironmentResponseDto"];
34188
+ };
34189
+ };
33456
34190
  };
33457
- /** @description The Environment is its Application's last or its default, or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
34191
+ /** @description The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`) */
33458
34192
  400: {
33459
34193
  headers: {
33460
34194
  [name: string]: unknown;
@@ -33465,10 +34199,114 @@ interface operations {
33465
34199
  * "error": {
33466
34200
  * "statusCode": 400,
33467
34201
  * "code": "request.invalid",
33468
- * "message": "The Environment is its Application's last or its default, or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
34202
+ * "message": "The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`)",
33469
34203
  * "timestamp": "2026-04-20T12:00:00.000Z",
33470
34204
  * "path": "/api/v1/environments/{id}",
33471
- * "method": "DELETE"
34205
+ * "method": "GET"
34206
+ * }
34207
+ * }
34208
+ */
34209
+ "application/json": components["schemas"]["ErrorResponseDto"];
34210
+ };
34211
+ };
34212
+ /** @description Invalid or expired token */
34213
+ 401: {
34214
+ headers: {
34215
+ [name: string]: unknown;
34216
+ };
34217
+ content: {
34218
+ /**
34219
+ * @example {
34220
+ * "error": {
34221
+ * "statusCode": 401,
34222
+ * "code": "auth.invalid_token",
34223
+ * "message": "Invalid or expired token",
34224
+ * "timestamp": "2026-04-20T12:00:00.000Z",
34225
+ * "path": "/api/v1/environments/{id}",
34226
+ * "method": "GET"
34227
+ * }
34228
+ * }
34229
+ */
34230
+ "application/json": components["schemas"]["ErrorResponseDto"];
34231
+ };
34232
+ };
34233
+ /** @description The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment */
34234
+ 403: {
34235
+ headers: {
34236
+ [name: string]: unknown;
34237
+ };
34238
+ content: {
34239
+ /**
34240
+ * @example {
34241
+ * "error": {
34242
+ * "statusCode": 403,
34243
+ * "code": "auth.forbidden",
34244
+ * "message": "The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment",
34245
+ * "timestamp": "2026-04-20T12:00:00.000Z",
34246
+ * "path": "/api/v1/environments/{id}",
34247
+ * "method": "GET"
34248
+ * }
34249
+ * }
34250
+ */
34251
+ "application/json": components["schemas"]["ErrorResponseDto"];
34252
+ };
34253
+ };
34254
+ /** @description The Account has no Environment with this `id` */
34255
+ 404: {
34256
+ headers: {
34257
+ [name: string]: unknown;
34258
+ };
34259
+ content: {
34260
+ /**
34261
+ * @example {
34262
+ * "error": {
34263
+ * "statusCode": 404,
34264
+ * "code": "request.not_found",
34265
+ * "message": "The Account has no Environment with this `id`",
34266
+ * "timestamp": "2026-04-20T12:00:00.000Z",
34267
+ * "path": "/api/v1/environments/{id}",
34268
+ * "method": "GET"
34269
+ * }
34270
+ * }
34271
+ */
34272
+ "application/json": components["schemas"]["ErrorResponseDto"];
34273
+ };
34274
+ };
34275
+ };
34276
+ };
34277
+ ApiEnvironmentsController_delete: {
34278
+ parameters: {
34279
+ query?: never;
34280
+ header?: never;
34281
+ path: {
34282
+ id: string;
34283
+ };
34284
+ cookie?: never;
34285
+ };
34286
+ requestBody?: never;
34287
+ responses: {
34288
+ /** @description Environment deleted */
34289
+ 204: {
34290
+ headers: {
34291
+ [name: string]: unknown;
34292
+ };
34293
+ content?: never;
34294
+ };
34295
+ /** @description The Environment is its Application's last or its default, or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
34296
+ 400: {
34297
+ headers: {
34298
+ [name: string]: unknown;
34299
+ };
34300
+ content: {
34301
+ /**
34302
+ * @example {
34303
+ * "error": {
34304
+ * "statusCode": 400,
34305
+ * "code": "request.invalid",
34306
+ * "message": "The Environment is its Application's last or its default, or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
34307
+ * "timestamp": "2026-04-20T12:00:00.000Z",
34308
+ * "path": "/api/v1/environments/{id}",
34309
+ * "method": "DELETE"
33472
34310
  * }
33473
34311
  * }
33474
34312
  */
@@ -33790,6 +34628,11 @@ interface operations {
33790
34628
  header?: {
33791
34629
  /** @description Optimistic-lock version of the resource. Send the `version` field returned on read; the server rejects with 409 if the row has changed since. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
33792
34630
  "If-Match"?: string;
34631
+ /**
34632
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
34633
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
34634
+ */
34635
+ "Idempotency-Key"?: string;
33793
34636
  };
33794
34637
  path: {
33795
34638
  id: string;
@@ -33897,7 +34740,7 @@ interface operations {
33897
34740
  "application/json": components["schemas"]["ErrorResponseDto"];
33898
34741
  };
33899
34742
  };
33900
- /** @description The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the Environment as it now stands in `data.current`) */
34743
+ /** @description The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the Environment as it now stands in `data.current`). Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
33901
34744
  409: {
33902
34745
  headers: {
33903
34746
  [name: string]: unknown;
@@ -33908,7 +34751,49 @@ interface operations {
33908
34751
  * "error": {
33909
34752
  * "statusCode": 409,
33910
34753
  * "code": "request.conflict",
33911
- * "message": "The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the Environment as it now stands in `data.current`)",
34754
+ * "message": "The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the Environment as it now stands in `data.current`). Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
34755
+ * "timestamp": "2026-04-20T12:00:00.000Z",
34756
+ * "path": "/api/v1/environments/{id}/import",
34757
+ * "method": "POST"
34758
+ * }
34759
+ * }
34760
+ */
34761
+ "application/json": components["schemas"]["ErrorResponseDto"];
34762
+ };
34763
+ };
34764
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
34765
+ 422: {
34766
+ headers: {
34767
+ [name: string]: unknown;
34768
+ };
34769
+ content: {
34770
+ /**
34771
+ * @example {
34772
+ * "error": {
34773
+ * "statusCode": 422,
34774
+ * "code": "request.refused",
34775
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
34776
+ * "timestamp": "2026-04-20T12:00:00.000Z",
34777
+ * "path": "/api/v1/environments/{id}/import",
34778
+ * "method": "POST"
34779
+ * }
34780
+ * }
34781
+ */
34782
+ "application/json": components["schemas"]["ErrorResponseDto"];
34783
+ };
34784
+ };
34785
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
34786
+ 503: {
34787
+ headers: {
34788
+ [name: string]: unknown;
34789
+ };
34790
+ content: {
34791
+ /**
34792
+ * @example {
34793
+ * "error": {
34794
+ * "statusCode": 503,
34795
+ * "code": "server.error",
34796
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
33912
34797
  * "timestamp": "2026-04-20T12:00:00.000Z",
33913
34798
  * "path": "/api/v1/environments/{id}/import",
33914
34799
  * "method": "POST"
@@ -34571,6 +35456,11 @@ interface operations {
34571
35456
  parameters: {
34572
35457
  query?: never;
34573
35458
  header?: {
35459
+ /**
35460
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
35461
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
35462
+ */
35463
+ "Idempotency-Key"?: string;
34574
35464
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
34575
35465
  "X-Canopy-Environment"?: string;
34576
35466
  };
@@ -34657,6 +35547,69 @@ interface operations {
34657
35547
  "application/json": components["schemas"]["ErrorResponseDto"];
34658
35548
  };
34659
35549
  };
35550
+ /** @description A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
35551
+ 409: {
35552
+ headers: {
35553
+ [name: string]: unknown;
35554
+ };
35555
+ content: {
35556
+ /**
35557
+ * @example {
35558
+ * "error": {
35559
+ * "statusCode": 409,
35560
+ * "code": "request.conflict",
35561
+ * "message": "A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
35562
+ * "timestamp": "2026-04-20T12:00:00.000Z",
35563
+ * "path": "/api/v1/signing-keys/rotate",
35564
+ * "method": "POST"
35565
+ * }
35566
+ * }
35567
+ */
35568
+ "application/json": components["schemas"]["ErrorResponseDto"];
35569
+ };
35570
+ };
35571
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
35572
+ 422: {
35573
+ headers: {
35574
+ [name: string]: unknown;
35575
+ };
35576
+ content: {
35577
+ /**
35578
+ * @example {
35579
+ * "error": {
35580
+ * "statusCode": 422,
35581
+ * "code": "request.refused",
35582
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
35583
+ * "timestamp": "2026-04-20T12:00:00.000Z",
35584
+ * "path": "/api/v1/signing-keys/rotate",
35585
+ * "method": "POST"
35586
+ * }
35587
+ * }
35588
+ */
35589
+ "application/json": components["schemas"]["ErrorResponseDto"];
35590
+ };
35591
+ };
35592
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
35593
+ 503: {
35594
+ headers: {
35595
+ [name: string]: unknown;
35596
+ };
35597
+ content: {
35598
+ /**
35599
+ * @example {
35600
+ * "error": {
35601
+ * "statusCode": 503,
35602
+ * "code": "server.error",
35603
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
35604
+ * "timestamp": "2026-04-20T12:00:00.000Z",
35605
+ * "path": "/api/v1/signing-keys/rotate",
35606
+ * "method": "POST"
35607
+ * }
35608
+ * }
35609
+ */
35610
+ "application/json": components["schemas"]["ErrorResponseDto"];
35611
+ };
35612
+ };
34660
35613
  };
34661
35614
  };
34662
35615
  ApiPublishableKeysController_list: {
@@ -34751,6 +35704,11 @@ interface operations {
34751
35704
  parameters: {
34752
35705
  query?: never;
34753
35706
  header?: {
35707
+ /**
35708
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
35709
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
35710
+ */
35711
+ "Idempotency-Key"?: string;
34754
35712
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
34755
35713
  "X-Canopy-Environment"?: string;
34756
35714
  };
@@ -34837,7 +35795,7 @@ interface operations {
34837
35795
  "application/json": components["schemas"]["ErrorResponseDto"];
34838
35796
  };
34839
35797
  };
34840
- /** @description The Environment already holds as many live publishable keys as it may (`publishable_key.limit`, `data.limit` naming the limit); revoke one first */
35798
+ /** @description The Environment already holds as many live publishable keys as it may (`publishable_key.limit`, `data.limit` naming the limit); revoke one first. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
34841
35799
  409: {
34842
35800
  headers: {
34843
35801
  [name: string]: unknown;
@@ -34848,7 +35806,49 @@ interface operations {
34848
35806
  * "error": {
34849
35807
  * "statusCode": 409,
34850
35808
  * "code": "request.conflict",
34851
- * "message": "The Environment already holds as many live publishable keys as it may (`publishable_key.limit`, `data.limit` naming the limit); revoke one first",
35809
+ * "message": "The Environment already holds as many live publishable keys as it may (`publishable_key.limit`, `data.limit` naming the limit); revoke one first. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
35810
+ * "timestamp": "2026-04-20T12:00:00.000Z",
35811
+ * "path": "/api/v1/publishable-keys",
35812
+ * "method": "POST"
35813
+ * }
35814
+ * }
35815
+ */
35816
+ "application/json": components["schemas"]["ErrorResponseDto"];
35817
+ };
35818
+ };
35819
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
35820
+ 422: {
35821
+ headers: {
35822
+ [name: string]: unknown;
35823
+ };
35824
+ content: {
35825
+ /**
35826
+ * @example {
35827
+ * "error": {
35828
+ * "statusCode": 422,
35829
+ * "code": "request.refused",
35830
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
35831
+ * "timestamp": "2026-04-20T12:00:00.000Z",
35832
+ * "path": "/api/v1/publishable-keys",
35833
+ * "method": "POST"
35834
+ * }
35835
+ * }
35836
+ */
35837
+ "application/json": components["schemas"]["ErrorResponseDto"];
35838
+ };
35839
+ };
35840
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
35841
+ 503: {
35842
+ headers: {
35843
+ [name: string]: unknown;
35844
+ };
35845
+ content: {
35846
+ /**
35847
+ * @example {
35848
+ * "error": {
35849
+ * "statusCode": 503,
35850
+ * "code": "server.error",
35851
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
34852
35852
  * "timestamp": "2026-04-20T12:00:00.000Z",
34853
35853
  * "path": "/api/v1/publishable-keys",
34854
35854
  * "method": "POST"
@@ -35624,7 +36624,13 @@ interface operations {
35624
36624
  ApiSsoController_create: {
35625
36625
  parameters: {
35626
36626
  query?: never;
35627
- header?: never;
36627
+ header?: {
36628
+ /**
36629
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
36630
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
36631
+ */
36632
+ "Idempotency-Key"?: string;
36633
+ };
35628
36634
  path?: never;
35629
36635
  cookie?: never;
35630
36636
  };
@@ -35708,7 +36714,7 @@ interface operations {
35708
36714
  "application/json": components["schemas"]["ErrorResponseDto"];
35709
36715
  };
35710
36716
  };
35711
- /** @description The Account has reached its plan limit for end-user SSO connections. */
36717
+ /** @description The Account has reached its plan limit for end-user SSO connections.. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
35712
36718
  409: {
35713
36719
  headers: {
35714
36720
  [name: string]: unknown;
@@ -35719,7 +36725,49 @@ interface operations {
35719
36725
  * "error": {
35720
36726
  * "statusCode": 409,
35721
36727
  * "code": "request.conflict",
35722
- * "message": "The Account has reached its plan limit for end-user SSO connections.",
36728
+ * "message": "The Account has reached its plan limit for end-user SSO connections.. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
36729
+ * "timestamp": "2026-04-20T12:00:00.000Z",
36730
+ * "path": "/api/v1/sso/connections",
36731
+ * "method": "POST"
36732
+ * }
36733
+ * }
36734
+ */
36735
+ "application/json": components["schemas"]["ErrorResponseDto"];
36736
+ };
36737
+ };
36738
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
36739
+ 422: {
36740
+ headers: {
36741
+ [name: string]: unknown;
36742
+ };
36743
+ content: {
36744
+ /**
36745
+ * @example {
36746
+ * "error": {
36747
+ * "statusCode": 422,
36748
+ * "code": "request.refused",
36749
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
36750
+ * "timestamp": "2026-04-20T12:00:00.000Z",
36751
+ * "path": "/api/v1/sso/connections",
36752
+ * "method": "POST"
36753
+ * }
36754
+ * }
36755
+ */
36756
+ "application/json": components["schemas"]["ErrorResponseDto"];
36757
+ };
36758
+ };
36759
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
36760
+ 503: {
36761
+ headers: {
36762
+ [name: string]: unknown;
36763
+ };
36764
+ content: {
36765
+ /**
36766
+ * @example {
36767
+ * "error": {
36768
+ * "statusCode": 503,
36769
+ * "code": "server.error",
36770
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
35723
36771
  * "timestamp": "2026-04-20T12:00:00.000Z",
35724
36772
  * "path": "/api/v1/sso/connections",
35725
36773
  * "method": "POST"
@@ -36238,6 +37286,11 @@ interface operations {
36238
37286
  header?: {
36239
37287
  /** @description Optimistic-lock version of the resource. Send the `version` field returned on read; the server rejects with 409 if the row has changed since. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
36240
37288
  "If-Match"?: string;
37289
+ /**
37290
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
37291
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
37292
+ */
37293
+ "Idempotency-Key"?: string;
36241
37294
  };
36242
37295
  path: {
36243
37296
  id: string;
@@ -36341,7 +37394,7 @@ interface operations {
36341
37394
  "application/json": components["schemas"]["ErrorResponseDto"];
36342
37395
  };
36343
37396
  };
36344
- /** @description The connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection as it now stands in `data.current`), or it is the only active connection of an organization that requires single sign-on (`organization.sso_requirement_needs_connection`): turn the requirement off first */
37397
+ /** @description The connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection as it now stands in `data.current`), or it is the only active connection of an organization that requires single sign-on (`organization.sso_requirement_needs_connection`): turn the requirement off first. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
36345
37398
  409: {
36346
37399
  headers: {
36347
37400
  [name: string]: unknown;
@@ -36352,7 +37405,49 @@ interface operations {
36352
37405
  * "error": {
36353
37406
  * "statusCode": 409,
36354
37407
  * "code": "request.conflict",
36355
- * "message": "The connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection as it now stands in `data.current`), or it is the only active connection of an organization that requires single sign-on (`organization.sso_requirement_needs_connection`): turn the requirement off first",
37408
+ * "message": "The connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection as it now stands in `data.current`), or it is the only active connection of an organization that requires single sign-on (`organization.sso_requirement_needs_connection`): turn the requirement off first. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
37409
+ * "timestamp": "2026-04-20T12:00:00.000Z",
37410
+ * "path": "/api/v1/sso/connections/{id}/disable",
37411
+ * "method": "POST"
37412
+ * }
37413
+ * }
37414
+ */
37415
+ "application/json": components["schemas"]["ErrorResponseDto"];
37416
+ };
37417
+ };
37418
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
37419
+ 422: {
37420
+ headers: {
37421
+ [name: string]: unknown;
37422
+ };
37423
+ content: {
37424
+ /**
37425
+ * @example {
37426
+ * "error": {
37427
+ * "statusCode": 422,
37428
+ * "code": "request.refused",
37429
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
37430
+ * "timestamp": "2026-04-20T12:00:00.000Z",
37431
+ * "path": "/api/v1/sso/connections/{id}/disable",
37432
+ * "method": "POST"
37433
+ * }
37434
+ * }
37435
+ */
37436
+ "application/json": components["schemas"]["ErrorResponseDto"];
37437
+ };
37438
+ };
37439
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
37440
+ 503: {
37441
+ headers: {
37442
+ [name: string]: unknown;
37443
+ };
37444
+ content: {
37445
+ /**
37446
+ * @example {
37447
+ * "error": {
37448
+ * "statusCode": 503,
37449
+ * "code": "server.error",
37450
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
36356
37451
  * "timestamp": "2026-04-20T12:00:00.000Z",
36357
37452
  * "path": "/api/v1/sso/connections/{id}/disable",
36358
37453
  * "method": "POST"
@@ -38972,6 +40067,11 @@ interface operations {
38972
40067
  parameters: {
38973
40068
  query?: never;
38974
40069
  header?: {
40070
+ /**
40071
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
40072
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
40073
+ */
40074
+ "Idempotency-Key"?: string;
38975
40075
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
38976
40076
  "X-Canopy-Environment"?: string;
38977
40077
  };
@@ -39058,7 +40158,7 @@ interface operations {
39058
40158
  "application/json": components["schemas"]["ErrorResponseDto"];
39059
40159
  };
39060
40160
  };
39061
- /** @description The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap */
40161
+ /** @description The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
39062
40162
  409: {
39063
40163
  headers: {
39064
40164
  [name: string]: unknown;
@@ -39069,7 +40169,49 @@ interface operations {
39069
40169
  * "error": {
39070
40170
  * "statusCode": 409,
39071
40171
  * "code": "request.conflict",
39072
- * "message": "The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap",
40172
+ * "message": "The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
40173
+ * "timestamp": "2026-04-20T12:00:00.000Z",
40174
+ * "path": "/api/v1/scim-tokens",
40175
+ * "method": "POST"
40176
+ * }
40177
+ * }
40178
+ */
40179
+ "application/json": components["schemas"]["ErrorResponseDto"];
40180
+ };
40181
+ };
40182
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
40183
+ 422: {
40184
+ headers: {
40185
+ [name: string]: unknown;
40186
+ };
40187
+ content: {
40188
+ /**
40189
+ * @example {
40190
+ * "error": {
40191
+ * "statusCode": 422,
40192
+ * "code": "request.refused",
40193
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
40194
+ * "timestamp": "2026-04-20T12:00:00.000Z",
40195
+ * "path": "/api/v1/scim-tokens",
40196
+ * "method": "POST"
40197
+ * }
40198
+ * }
40199
+ */
40200
+ "application/json": components["schemas"]["ErrorResponseDto"];
40201
+ };
40202
+ };
40203
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
40204
+ 503: {
40205
+ headers: {
40206
+ [name: string]: unknown;
40207
+ };
40208
+ content: {
40209
+ /**
40210
+ * @example {
40211
+ * "error": {
40212
+ * "statusCode": 503,
40213
+ * "code": "server.error",
40214
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
39073
40215
  * "timestamp": "2026-04-20T12:00:00.000Z",
39074
40216
  * "path": "/api/v1/scim-tokens",
39075
40217
  * "method": "POST"
@@ -39173,6 +40315,11 @@ interface operations {
39173
40315
  parameters: {
39174
40316
  query?: never;
39175
40317
  header?: {
40318
+ /**
40319
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
40320
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
40321
+ */
40322
+ "Idempotency-Key"?: string;
39176
40323
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
39177
40324
  "X-Canopy-Environment"?: string;
39178
40325
  };
@@ -39282,7 +40429,7 @@ interface operations {
39282
40429
  "application/json": components["schemas"]["ErrorResponseDto"];
39283
40430
  };
39284
40431
  };
39285
- /** @description The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap */
40432
+ /** @description The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
39286
40433
  409: {
39287
40434
  headers: {
39288
40435
  [name: string]: unknown;
@@ -39293,7 +40440,49 @@ interface operations {
39293
40440
  * "error": {
39294
40441
  * "statusCode": 409,
39295
40442
  * "code": "request.conflict",
39296
- * "message": "The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap",
40443
+ * "message": "The directory already holds 10 live tokens, the most it may (`scim.token_limit`, `data.limit` naming the limit); revoke one first. A rotation counts, since the old token stays live for its overlap. Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
40444
+ * "timestamp": "2026-04-20T12:00:00.000Z",
40445
+ * "path": "/api/v1/scim-tokens/{id}/rotate",
40446
+ * "method": "POST"
40447
+ * }
40448
+ * }
40449
+ */
40450
+ "application/json": components["schemas"]["ErrorResponseDto"];
40451
+ };
40452
+ };
40453
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
40454
+ 422: {
40455
+ headers: {
40456
+ [name: string]: unknown;
40457
+ };
40458
+ content: {
40459
+ /**
40460
+ * @example {
40461
+ * "error": {
40462
+ * "statusCode": 422,
40463
+ * "code": "request.refused",
40464
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
40465
+ * "timestamp": "2026-04-20T12:00:00.000Z",
40466
+ * "path": "/api/v1/scim-tokens/{id}/rotate",
40467
+ * "method": "POST"
40468
+ * }
40469
+ * }
40470
+ */
40471
+ "application/json": components["schemas"]["ErrorResponseDto"];
40472
+ };
40473
+ };
40474
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
40475
+ 503: {
40476
+ headers: {
40477
+ [name: string]: unknown;
40478
+ };
40479
+ content: {
40480
+ /**
40481
+ * @example {
40482
+ * "error": {
40483
+ * "statusCode": 503,
40484
+ * "code": "server.error",
40485
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
39297
40486
  * "timestamp": "2026-04-20T12:00:00.000Z",
39298
40487
  * "path": "/api/v1/scim-tokens/{id}/rotate",
39299
40488
  * "method": "POST"
@@ -41386,6 +42575,11 @@ interface operations {
41386
42575
  parameters: {
41387
42576
  query?: never;
41388
42577
  header?: {
42578
+ /**
42579
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
42580
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
42581
+ */
42582
+ "Idempotency-Key"?: string;
41389
42583
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
41390
42584
  "X-Canopy-Environment"?: string;
41391
42585
  };
@@ -41472,6 +42666,69 @@ interface operations {
41472
42666
  "application/json": components["schemas"]["ErrorResponseDto"];
41473
42667
  };
41474
42668
  };
42669
+ /** @description A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
42670
+ 409: {
42671
+ headers: {
42672
+ [name: string]: unknown;
42673
+ };
42674
+ content: {
42675
+ /**
42676
+ * @example {
42677
+ * "error": {
42678
+ * "statusCode": 409,
42679
+ * "code": "request.conflict",
42680
+ * "message": "A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
42681
+ * "timestamp": "2026-04-20T12:00:00.000Z",
42682
+ * "path": "/api/v1/webhooks",
42683
+ * "method": "POST"
42684
+ * }
42685
+ * }
42686
+ */
42687
+ "application/json": components["schemas"]["ErrorResponseDto"];
42688
+ };
42689
+ };
42690
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
42691
+ 422: {
42692
+ headers: {
42693
+ [name: string]: unknown;
42694
+ };
42695
+ content: {
42696
+ /**
42697
+ * @example {
42698
+ * "error": {
42699
+ * "statusCode": 422,
42700
+ * "code": "request.refused",
42701
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
42702
+ * "timestamp": "2026-04-20T12:00:00.000Z",
42703
+ * "path": "/api/v1/webhooks",
42704
+ * "method": "POST"
42705
+ * }
42706
+ * }
42707
+ */
42708
+ "application/json": components["schemas"]["ErrorResponseDto"];
42709
+ };
42710
+ };
42711
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
42712
+ 503: {
42713
+ headers: {
42714
+ [name: string]: unknown;
42715
+ };
42716
+ content: {
42717
+ /**
42718
+ * @example {
42719
+ * "error": {
42720
+ * "statusCode": 503,
42721
+ * "code": "server.error",
42722
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
42723
+ * "timestamp": "2026-04-20T12:00:00.000Z",
42724
+ * "path": "/api/v1/webhooks",
42725
+ * "method": "POST"
42726
+ * }
42727
+ * }
42728
+ */
42729
+ "application/json": components["schemas"]["ErrorResponseDto"];
42730
+ };
42731
+ };
41475
42732
  };
41476
42733
  };
41477
42734
  ApiWebhooksController_listEventTypes: {
@@ -42010,15 +43267,156 @@ interface operations {
42010
43267
  * "code": "webhook.not_found",
42011
43268
  * "message": "Webhook subscription not found",
42012
43269
  * "timestamp": "2026-04-20T12:00:00.000Z",
42013
- * "path": "/api/v1/webhooks/{id}",
42014
- * "method": "PATCH"
43270
+ * "path": "/api/v1/webhooks/{id}",
43271
+ * "method": "PATCH"
43272
+ * }
43273
+ * }
43274
+ */
43275
+ "application/json": components["schemas"]["ErrorResponseDto"];
43276
+ };
43277
+ };
43278
+ /** @description The subscription changed since the version sent in `If-Match` was read (`version_mismatch`, with the subscription as it now stands, less its secrets, in `data.current`) */
43279
+ 409: {
43280
+ headers: {
43281
+ [name: string]: unknown;
43282
+ };
43283
+ content: {
43284
+ /**
43285
+ * @example {
43286
+ * "error": {
43287
+ * "statusCode": 409,
43288
+ * "code": "request.conflict",
43289
+ * "message": "The subscription changed since the version sent in `If-Match` was read (`version_mismatch`, with the subscription as it now stands, less its secrets, in `data.current`)",
43290
+ * "timestamp": "2026-04-20T12:00:00.000Z",
43291
+ * "path": "/api/v1/webhooks/{id}",
43292
+ * "method": "PATCH"
43293
+ * }
43294
+ * }
43295
+ */
43296
+ "application/json": components["schemas"]["ErrorResponseDto"];
43297
+ };
43298
+ };
43299
+ };
43300
+ };
43301
+ ApiWebhooksController_rotateSecret: {
43302
+ parameters: {
43303
+ query?: never;
43304
+ header?: {
43305
+ /**
43306
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
43307
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
43308
+ */
43309
+ "Idempotency-Key"?: string;
43310
+ /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
43311
+ "X-Canopy-Environment"?: string;
43312
+ };
43313
+ path: {
43314
+ id: string;
43315
+ };
43316
+ cookie?: never;
43317
+ };
43318
+ requestBody: {
43319
+ content: {
43320
+ "application/json": components["schemas"]["RotateWebhookSecretDto"];
43321
+ };
43322
+ };
43323
+ responses: {
43324
+ /** @description Webhook signing secret rotated: the new secret is only shown once, beside when the replaced one stops verifying */
43325
+ 200: {
43326
+ headers: {
43327
+ [name: string]: unknown;
43328
+ };
43329
+ content: {
43330
+ "application/json": {
43331
+ data: components["schemas"]["WebhookSecretRotatedResponseDto"];
43332
+ };
43333
+ };
43334
+ };
43335
+ /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
43336
+ 400: {
43337
+ headers: {
43338
+ [name: string]: unknown;
43339
+ };
43340
+ content: {
43341
+ /**
43342
+ * @example {
43343
+ * "error": {
43344
+ * "statusCode": 400,
43345
+ * "code": "request.validation_failed",
43346
+ * "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
43347
+ * "timestamp": "2026-04-20T12:00:00.000Z",
43348
+ * "path": "/api/v1/webhooks/{id}/rotate-secret",
43349
+ * "method": "POST"
43350
+ * }
43351
+ * }
43352
+ */
43353
+ "application/json": components["schemas"]["ErrorResponseDto"];
43354
+ };
43355
+ };
43356
+ /** @description Invalid or expired token */
43357
+ 401: {
43358
+ headers: {
43359
+ [name: string]: unknown;
43360
+ };
43361
+ content: {
43362
+ /**
43363
+ * @example {
43364
+ * "error": {
43365
+ * "statusCode": 401,
43366
+ * "code": "auth.invalid_token",
43367
+ * "message": "Invalid or expired token",
43368
+ * "timestamp": "2026-04-20T12:00:00.000Z",
43369
+ * "path": "/api/v1/webhooks",
43370
+ * "method": "GET"
43371
+ * }
43372
+ * }
43373
+ */
43374
+ "application/json": components["schemas"]["ErrorResponseDto"];
43375
+ };
43376
+ };
43377
+ /** @description The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment */
43378
+ 403: {
43379
+ headers: {
43380
+ [name: string]: unknown;
43381
+ };
43382
+ content: {
43383
+ /**
43384
+ * @example {
43385
+ * "error": {
43386
+ * "statusCode": 403,
43387
+ * "code": "auth.forbidden",
43388
+ * "message": "The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment",
43389
+ * "timestamp": "2026-04-20T12:00:00.000Z",
43390
+ * "path": "/api/v1/webhooks",
43391
+ * "method": "GET"
43392
+ * }
43393
+ * }
43394
+ */
43395
+ "application/json": components["schemas"]["ErrorResponseDto"];
43396
+ };
43397
+ };
43398
+ /** @description Webhook subscription not found */
43399
+ 404: {
43400
+ headers: {
43401
+ [name: string]: unknown;
43402
+ };
43403
+ content: {
43404
+ /**
43405
+ * @example {
43406
+ * "error": {
43407
+ * "statusCode": 404,
43408
+ * "code": "webhook.not_found",
43409
+ * "message": "Webhook subscription not found",
43410
+ * "timestamp": "2026-04-20T12:00:00.000Z",
43411
+ * "path": "/api/v1/webhooks/{id}/rotate-secret",
43412
+ * "method": "POST"
42015
43413
  * }
42016
43414
  * }
42017
43415
  */
42018
43416
  "application/json": components["schemas"]["ErrorResponseDto"];
42019
43417
  };
42020
43418
  };
42021
- /** @description The subscription changed since the version sent in `If-Match` was read (`version_mismatch`, with the subscription as it now stands, less its secrets, in `data.current`) */
43419
+ /** @description A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
42022
43420
  409: {
42023
43421
  headers: {
42024
43422
  [name: string]: unknown;
@@ -42029,59 +43427,7 @@ interface operations {
42029
43427
  * "error": {
42030
43428
  * "statusCode": 409,
42031
43429
  * "code": "request.conflict",
42032
- * "message": "The subscription changed since the version sent in `If-Match` was read (`version_mismatch`, with the subscription as it now stands, less its secrets, in `data.current`)",
42033
- * "timestamp": "2026-04-20T12:00:00.000Z",
42034
- * "path": "/api/v1/webhooks/{id}",
42035
- * "method": "PATCH"
42036
- * }
42037
- * }
42038
- */
42039
- "application/json": components["schemas"]["ErrorResponseDto"];
42040
- };
42041
- };
42042
- };
42043
- };
42044
- ApiWebhooksController_rotateSecret: {
42045
- parameters: {
42046
- query?: never;
42047
- header?: {
42048
- /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
42049
- "X-Canopy-Environment"?: string;
42050
- };
42051
- path: {
42052
- id: string;
42053
- };
42054
- cookie?: never;
42055
- };
42056
- requestBody: {
42057
- content: {
42058
- "application/json": components["schemas"]["RotateWebhookSecretDto"];
42059
- };
42060
- };
42061
- responses: {
42062
- /** @description Webhook signing secret rotated: the new secret is only shown once, beside when the replaced one stops verifying */
42063
- 200: {
42064
- headers: {
42065
- [name: string]: unknown;
42066
- };
42067
- content: {
42068
- "application/json": {
42069
- data: components["schemas"]["WebhookSecretRotatedResponseDto"];
42070
- };
42071
- };
42072
- };
42073
- /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
42074
- 400: {
42075
- headers: {
42076
- [name: string]: unknown;
42077
- };
42078
- content: {
42079
- /**
42080
- * @example {
42081
- * "error": {
42082
- * "statusCode": 400,
42083
- * "code": "request.validation_failed",
42084
- * "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
43430
+ * "message": "A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
42085
43431
  * "timestamp": "2026-04-20T12:00:00.000Z",
42086
43432
  * "path": "/api/v1/webhooks/{id}/rotate-secret",
42087
43433
  * "method": "POST"
@@ -42091,29 +43437,8 @@ interface operations {
42091
43437
  "application/json": components["schemas"]["ErrorResponseDto"];
42092
43438
  };
42093
43439
  };
42094
- /** @description Invalid or expired token */
42095
- 401: {
42096
- headers: {
42097
- [name: string]: unknown;
42098
- };
42099
- content: {
42100
- /**
42101
- * @example {
42102
- * "error": {
42103
- * "statusCode": 401,
42104
- * "code": "auth.invalid_token",
42105
- * "message": "Invalid or expired token",
42106
- * "timestamp": "2026-04-20T12:00:00.000Z",
42107
- * "path": "/api/v1/webhooks",
42108
- * "method": "GET"
42109
- * }
42110
- * }
42111
- */
42112
- "application/json": components["schemas"]["ErrorResponseDto"];
42113
- };
42114
- };
42115
- /** @description The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment */
42116
- 403: {
43440
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
43441
+ 422: {
42117
43442
  headers: {
42118
43443
  [name: string]: unknown;
42119
43444
  };
@@ -42121,20 +43446,20 @@ interface operations {
42121
43446
  /**
42122
43447
  * @example {
42123
43448
  * "error": {
42124
- * "statusCode": 403,
42125
- * "code": "auth.forbidden",
42126
- * "message": "The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment",
43449
+ * "statusCode": 422,
43450
+ * "code": "request.refused",
43451
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
42127
43452
  * "timestamp": "2026-04-20T12:00:00.000Z",
42128
- * "path": "/api/v1/webhooks",
42129
- * "method": "GET"
43453
+ * "path": "/api/v1/webhooks/{id}/rotate-secret",
43454
+ * "method": "POST"
42130
43455
  * }
42131
43456
  * }
42132
43457
  */
42133
43458
  "application/json": components["schemas"]["ErrorResponseDto"];
42134
43459
  };
42135
43460
  };
42136
- /** @description Webhook subscription not found */
42137
- 404: {
43461
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
43462
+ 503: {
42138
43463
  headers: {
42139
43464
  [name: string]: unknown;
42140
43465
  };
@@ -42142,9 +43467,9 @@ interface operations {
42142
43467
  /**
42143
43468
  * @example {
42144
43469
  * "error": {
42145
- * "statusCode": 404,
42146
- * "code": "webhook.not_found",
42147
- * "message": "Webhook subscription not found",
43470
+ * "statusCode": 503,
43471
+ * "code": "server.error",
43472
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
42148
43473
  * "timestamp": "2026-04-20T12:00:00.000Z",
42149
43474
  * "path": "/api/v1/webhooks/{id}/rotate-secret",
42150
43475
  * "method": "POST"
@@ -42262,6 +43587,11 @@ interface operations {
42262
43587
  parameters: {
42263
43588
  query?: never;
42264
43589
  header?: {
43590
+ /**
43591
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
43592
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
43593
+ */
43594
+ "Idempotency-Key"?: string;
42265
43595
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
42266
43596
  "X-Canopy-Environment"?: string;
42267
43597
  };
@@ -42369,7 +43699,7 @@ interface operations {
42369
43699
  "application/json": components["schemas"]["ErrorResponseDto"];
42370
43700
  };
42371
43701
  };
42372
- /** @description The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key. */
43702
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
42373
43703
  422: {
42374
43704
  headers: {
42375
43705
  [name: string]: unknown;
@@ -42380,7 +43710,7 @@ interface operations {
42380
43710
  * "error": {
42381
43711
  * "statusCode": 422,
42382
43712
  * "code": "request.refused",
42383
- * "message": "The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key.",
43713
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
42384
43714
  * "timestamp": "2026-04-20T12:00:00.000Z",
42385
43715
  * "path": "/api/v1/oauth-clients",
42386
43716
  * "method": "POST"
@@ -42866,6 +44196,11 @@ interface operations {
42866
44196
  parameters: {
42867
44197
  query?: never;
42868
44198
  header?: {
44199
+ /**
44200
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
44201
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
44202
+ */
44203
+ "Idempotency-Key"?: string;
42869
44204
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
42870
44205
  "X-Canopy-Environment"?: string;
42871
44206
  };
@@ -42975,7 +44310,7 @@ interface operations {
42975
44310
  "application/json": components["schemas"]["ErrorResponseDto"];
42976
44311
  };
42977
44312
  };
42978
- /** @description The client is public and has no secret to rotate (`oauth.client_public_has_no_secret`) */
44313
+ /** @description The client is public and has no secret to rotate (`oauth.client_public_has_no_secret`). Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
42979
44314
  409: {
42980
44315
  headers: {
42981
44316
  [name: string]: unknown;
@@ -42986,7 +44321,49 @@ interface operations {
42986
44321
  * "error": {
42987
44322
  * "statusCode": 409,
42988
44323
  * "code": "request.conflict",
42989
- * "message": "The client is public and has no secret to rotate (`oauth.client_public_has_no_secret`)",
44324
+ * "message": "The client is public and has no secret to rotate (`oauth.client_public_has_no_secret`). Also when a request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly. Or when one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
44325
+ * "timestamp": "2026-04-20T12:00:00.000Z",
44326
+ * "path": "/api/v1/oauth-clients/{id}/rotate-secret",
44327
+ * "method": "POST"
44328
+ * }
44329
+ * }
44330
+ */
44331
+ "application/json": components["schemas"]["ErrorResponseDto"];
44332
+ };
44333
+ };
44334
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
44335
+ 422: {
44336
+ headers: {
44337
+ [name: string]: unknown;
44338
+ };
44339
+ content: {
44340
+ /**
44341
+ * @example {
44342
+ * "error": {
44343
+ * "statusCode": 422,
44344
+ * "code": "request.refused",
44345
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
44346
+ * "timestamp": "2026-04-20T12:00:00.000Z",
44347
+ * "path": "/api/v1/oauth-clients/{id}/rotate-secret",
44348
+ * "method": "POST"
44349
+ * }
44350
+ * }
44351
+ */
44352
+ "application/json": components["schemas"]["ErrorResponseDto"];
44353
+ };
44354
+ };
44355
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
44356
+ 503: {
44357
+ headers: {
44358
+ [name: string]: unknown;
44359
+ };
44360
+ content: {
44361
+ /**
44362
+ * @example {
44363
+ * "error": {
44364
+ * "statusCode": 503,
44365
+ * "code": "server.error",
44366
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
42990
44367
  * "timestamp": "2026-04-20T12:00:00.000Z",
42991
44368
  * "path": "/api/v1/oauth-clients/{id}/rotate-secret",
42992
44369
  * "method": "POST"
@@ -43125,6 +44502,11 @@ interface operations {
43125
44502
  parameters: {
43126
44503
  query?: never;
43127
44504
  header?: {
44505
+ /**
44506
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
44507
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
44508
+ */
44509
+ "Idempotency-Key"?: string;
43128
44510
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
43129
44511
  "X-Canopy-Environment"?: string;
43130
44512
  };
@@ -43255,7 +44637,7 @@ interface operations {
43255
44637
  "application/json": components["schemas"]["ErrorResponseDto"];
43256
44638
  };
43257
44639
  };
43258
- /** @description The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key. */
44640
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
43259
44641
  422: {
43260
44642
  headers: {
43261
44643
  [name: string]: unknown;
@@ -43266,7 +44648,7 @@ interface operations {
43266
44648
  * "error": {
43267
44649
  * "statusCode": 422,
43268
44650
  * "code": "request.refused",
43269
- * "message": "The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key.",
44651
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
43270
44652
  * "timestamp": "2026-04-20T12:00:00.000Z",
43271
44653
  * "path": "/api/v1/oauth-clients/{id}/assignments",
43272
44654
  * "method": "POST"
@@ -43794,6 +45176,11 @@ interface operations {
43794
45176
  parameters: {
43795
45177
  query?: never;
43796
45178
  header?: {
45179
+ /**
45180
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
45181
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
45182
+ */
45183
+ "Idempotency-Key"?: string;
43797
45184
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
43798
45185
  "X-Canopy-Environment"?: string;
43799
45186
  };
@@ -43901,7 +45288,7 @@ interface operations {
43901
45288
  "application/json": components["schemas"]["ErrorResponseDto"];
43902
45289
  };
43903
45290
  };
43904
- /** @description The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key. */
45291
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
43905
45292
  422: {
43906
45293
  headers: {
43907
45294
  [name: string]: unknown;
@@ -43912,7 +45299,7 @@ interface operations {
43912
45299
  * "error": {
43913
45300
  * "statusCode": 422,
43914
45301
  * "code": "request.refused",
43915
- * "message": "The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key.",
45302
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
43916
45303
  * "timestamp": "2026-04-20T12:00:00.000Z",
43917
45304
  * "path": "/api/v1/api-keys",
43918
45305
  * "method": "POST"
@@ -44043,7 +45430,124 @@ interface operations {
44043
45430
  * "message": "The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities acting on a `full_access` key or one holding a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`)",
44044
45431
  * "timestamp": "2026-04-20T12:00:00.000Z",
44045
45432
  * "path": "/api/v1/api-keys/{id}",
44046
- * "method": "DELETE"
45433
+ * "method": "DELETE"
45434
+ * }
45435
+ * }
45436
+ */
45437
+ "application/json": components["schemas"]["ErrorResponseDto"];
45438
+ };
45439
+ };
45440
+ /** @description API key not found */
45441
+ 404: {
45442
+ headers: {
45443
+ [name: string]: unknown;
45444
+ };
45445
+ content: {
45446
+ /**
45447
+ * @example {
45448
+ * "error": {
45449
+ * "statusCode": 404,
45450
+ * "code": "api_key.not_found",
45451
+ * "message": "API key not found",
45452
+ * "timestamp": "2026-04-20T12:00:00.000Z",
45453
+ * "path": "/api/v1/api-keys/{id}",
45454
+ * "method": "DELETE"
45455
+ * }
45456
+ * }
45457
+ */
45458
+ "application/json": components["schemas"]["ErrorResponseDto"];
45459
+ };
45460
+ };
45461
+ };
45462
+ };
45463
+ ApiApiKeysController_update: {
45464
+ parameters: {
45465
+ query?: never;
45466
+ header?: {
45467
+ /** @description Optimistic-lock version of the resource. Send the `version` field returned on read; the server rejects with 409 if the row has changed since. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
45468
+ "If-Match"?: string;
45469
+ /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
45470
+ "X-Canopy-Environment"?: string;
45471
+ };
45472
+ path: {
45473
+ id: string;
45474
+ };
45475
+ cookie?: never;
45476
+ };
45477
+ requestBody: {
45478
+ content: {
45479
+ "application/json": components["schemas"]["UpdateApiKeyDto"];
45480
+ };
45481
+ };
45482
+ responses: {
45483
+ /** @description API key updated */
45484
+ 200: {
45485
+ headers: {
45486
+ [name: string]: unknown;
45487
+ };
45488
+ content: {
45489
+ "application/json": {
45490
+ data: components["schemas"]["ApiKeyResponseDto"];
45491
+ };
45492
+ };
45493
+ };
45494
+ /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
45495
+ 400: {
45496
+ headers: {
45497
+ [name: string]: unknown;
45498
+ };
45499
+ content: {
45500
+ /**
45501
+ * @example {
45502
+ * "error": {
45503
+ * "statusCode": 400,
45504
+ * "code": "request.invalid",
45505
+ * "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
45506
+ * "timestamp": "2026-04-20T12:00:00.000Z",
45507
+ * "path": "/api/v1/api-keys/{id}",
45508
+ * "method": "PATCH"
45509
+ * }
45510
+ * }
45511
+ */
45512
+ "application/json": components["schemas"]["ErrorResponseDto"];
45513
+ };
45514
+ };
45515
+ /** @description Invalid or expired token */
45516
+ 401: {
45517
+ headers: {
45518
+ [name: string]: unknown;
45519
+ };
45520
+ content: {
45521
+ /**
45522
+ * @example {
45523
+ * "error": {
45524
+ * "statusCode": 401,
45525
+ * "code": "auth.invalid_token",
45526
+ * "message": "Invalid or expired token",
45527
+ * "timestamp": "2026-04-20T12:00:00.000Z",
45528
+ * "path": "/api/v1/api-keys",
45529
+ * "method": "GET"
45530
+ * }
45531
+ * }
45532
+ */
45533
+ "application/json": components["schemas"]["ErrorResponseDto"];
45534
+ };
45535
+ };
45536
+ /** @description The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities acting on a `full_access` key or one holding a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`) */
45537
+ 403: {
45538
+ headers: {
45539
+ [name: string]: unknown;
45540
+ };
45541
+ content: {
45542
+ /**
45543
+ * @example {
45544
+ * "error": {
45545
+ * "statusCode": 403,
45546
+ * "code": "auth.forbidden",
45547
+ * "message": "The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities acting on a `full_access` key or one holding a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`)",
45548
+ * "timestamp": "2026-04-20T12:00:00.000Z",
45549
+ * "path": "/api/v1/api-keys/{id}",
45550
+ * "method": "PATCH"
44047
45551
  * }
44048
45552
  * }
44049
45553
  */
@@ -44064,7 +45568,28 @@ interface operations {
44064
45568
  * "message": "API key not found",
44065
45569
  * "timestamp": "2026-04-20T12:00:00.000Z",
44066
45570
  * "path": "/api/v1/api-keys/{id}",
44067
- * "method": "DELETE"
45571
+ * "method": "PATCH"
45572
+ * }
45573
+ * }
45574
+ */
45575
+ "application/json": components["schemas"]["ErrorResponseDto"];
45576
+ };
45577
+ };
45578
+ /** @description The key changed since the version sent in `If-Match` was read (`version_mismatch`, with the key as it now stands, less its secret, in `data.current`) */
45579
+ 409: {
45580
+ headers: {
45581
+ [name: string]: unknown;
45582
+ };
45583
+ content: {
45584
+ /**
45585
+ * @example {
45586
+ * "error": {
45587
+ * "statusCode": 409,
45588
+ * "code": "request.conflict",
45589
+ * "message": "The key changed since the version sent in `If-Match` was read (`version_mismatch`, with the key as it now stands, less its secret, in `data.current`)",
45590
+ * "timestamp": "2026-04-20T12:00:00.000Z",
45591
+ * "path": "/api/v1/api-keys/{id}",
45592
+ * "method": "PATCH"
44068
45593
  * }
44069
45594
  * }
44070
45595
  */
@@ -44073,12 +45598,15 @@ interface operations {
44073
45598
  };
44074
45599
  };
44075
45600
  };
44076
- ApiApiKeysController_update: {
45601
+ ApiApiKeysController_rotateSecret: {
44077
45602
  parameters: {
44078
45603
  query?: never;
44079
45604
  header?: {
44080
- /** @description Optimistic-lock version of the resource. Send the `version` field returned on read; the server rejects with 409 if the row has changed since. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
44081
- "If-Match"?: string;
45605
+ /**
45606
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
45607
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
45608
+ */
45609
+ "Idempotency-Key"?: string;
44082
45610
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
44083
45611
  "X-Canopy-Environment"?: string;
44084
45612
  };
@@ -44087,24 +45615,20 @@ interface operations {
44087
45615
  };
44088
45616
  cookie?: never;
44089
45617
  };
44090
- requestBody: {
44091
- content: {
44092
- "application/json": components["schemas"]["UpdateApiKeyDto"];
44093
- };
44094
- };
45618
+ requestBody?: never;
44095
45619
  responses: {
44096
- /** @description API key updated */
45620
+ /** @description New key value returned once; the previous value stops working immediately */
44097
45621
  200: {
44098
45622
  headers: {
44099
45623
  [name: string]: unknown;
44100
45624
  };
44101
45625
  content: {
44102
45626
  "application/json": {
44103
- data: components["schemas"]["ApiKeyResponseDto"];
45627
+ data: components["schemas"]["ApiKeyCreatedResponseDto"];
44104
45628
  };
44105
45629
  };
44106
45630
  };
44107
- /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
45631
+ /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
44108
45632
  400: {
44109
45633
  headers: {
44110
45634
  [name: string]: unknown;
@@ -44114,11 +45638,11 @@ interface operations {
44114
45638
  * @example {
44115
45639
  * "error": {
44116
45640
  * "statusCode": 400,
44117
- * "code": "request.invalid",
44118
- * "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
45641
+ * "code": "request.validation_failed",
45642
+ * "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
44119
45643
  * "timestamp": "2026-04-20T12:00:00.000Z",
44120
- * "path": "/api/v1/api-keys/{id}",
44121
- * "method": "PATCH"
45644
+ * "path": "/api/v1/api-keys/{id}/rotate-secret",
45645
+ * "method": "POST"
44122
45646
  * }
44123
45647
  * }
44124
45648
  */
@@ -44159,8 +45683,8 @@ interface operations {
44159
45683
  * "code": "auth.forbidden",
44160
45684
  * "message": "The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities acting on a `full_access` key or one holding a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`)",
44161
45685
  * "timestamp": "2026-04-20T12:00:00.000Z",
44162
- * "path": "/api/v1/api-keys/{id}",
44163
- * "method": "PATCH"
45686
+ * "path": "/api/v1/api-keys/{id}/rotate-secret",
45687
+ * "method": "POST"
44164
45688
  * }
44165
45689
  * }
44166
45690
  */
@@ -44180,15 +45704,15 @@ interface operations {
44180
45704
  * "code": "api_key.not_found",
44181
45705
  * "message": "API key not found",
44182
45706
  * "timestamp": "2026-04-20T12:00:00.000Z",
44183
- * "path": "/api/v1/api-keys/{id}",
44184
- * "method": "PATCH"
45707
+ * "path": "/api/v1/api-keys/{id}/rotate-secret",
45708
+ * "method": "POST"
44185
45709
  * }
44186
45710
  * }
44187
45711
  */
44188
45712
  "application/json": components["schemas"]["ErrorResponseDto"];
44189
45713
  };
44190
45714
  };
44191
- /** @description The key changed since the version sent in `If-Match` was read (`version_mismatch`, with the key as it now stands, less its secret, in `data.current`) */
45715
+ /** @description A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
44192
45716
  409: {
44193
45717
  headers: {
44194
45718
  [name: string]: unknown;
@@ -44199,55 +45723,7 @@ interface operations {
44199
45723
  * "error": {
44200
45724
  * "statusCode": 409,
44201
45725
  * "code": "request.conflict",
44202
- * "message": "The key changed since the version sent in `If-Match` was read (`version_mismatch`, with the key as it now stands, less its secret, in `data.current`)",
44203
- * "timestamp": "2026-04-20T12:00:00.000Z",
44204
- * "path": "/api/v1/api-keys/{id}",
44205
- * "method": "PATCH"
44206
- * }
44207
- * }
44208
- */
44209
- "application/json": components["schemas"]["ErrorResponseDto"];
44210
- };
44211
- };
44212
- };
44213
- };
44214
- ApiApiKeysController_rotateSecret: {
44215
- parameters: {
44216
- query?: never;
44217
- header?: {
44218
- /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
44219
- "X-Canopy-Environment"?: string;
44220
- };
44221
- path: {
44222
- id: string;
44223
- };
44224
- cookie?: never;
44225
- };
44226
- requestBody?: never;
44227
- responses: {
44228
- /** @description New key value returned once; the previous value stops working immediately */
44229
- 200: {
44230
- headers: {
44231
- [name: string]: unknown;
44232
- };
44233
- content: {
44234
- "application/json": {
44235
- data: components["schemas"]["ApiKeyCreatedResponseDto"];
44236
- };
44237
- };
44238
- };
44239
- /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
44240
- 400: {
44241
- headers: {
44242
- [name: string]: unknown;
44243
- };
44244
- content: {
44245
- /**
44246
- * @example {
44247
- * "error": {
44248
- * "statusCode": 400,
44249
- * "code": "request.validation_failed",
44250
- * "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
45726
+ * "message": "A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
44251
45727
  * "timestamp": "2026-04-20T12:00:00.000Z",
44252
45728
  * "path": "/api/v1/api-keys/{id}/rotate-secret",
44253
45729
  * "method": "POST"
@@ -44257,29 +45733,8 @@ interface operations {
44257
45733
  "application/json": components["schemas"]["ErrorResponseDto"];
44258
45734
  };
44259
45735
  };
44260
- /** @description Invalid or expired token */
44261
- 401: {
44262
- headers: {
44263
- [name: string]: unknown;
44264
- };
44265
- content: {
44266
- /**
44267
- * @example {
44268
- * "error": {
44269
- * "statusCode": 401,
44270
- * "code": "auth.invalid_token",
44271
- * "message": "Invalid or expired token",
44272
- * "timestamp": "2026-04-20T12:00:00.000Z",
44273
- * "path": "/api/v1/api-keys",
44274
- * "method": "GET"
44275
- * }
44276
- * }
44277
- */
44278
- "application/json": components["schemas"]["ErrorResponseDto"];
44279
- };
44280
- };
44281
- /** @description The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities acting on a `full_access` key or one holding a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`) */
44282
- 403: {
45736
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
45737
+ 422: {
44283
45738
  headers: {
44284
45739
  [name: string]: unknown;
44285
45740
  };
@@ -44287,9 +45742,9 @@ interface operations {
44287
45742
  /**
44288
45743
  * @example {
44289
45744
  * "error": {
44290
- * "statusCode": 403,
44291
- * "code": "auth.forbidden",
44292
- * "message": "The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities acting on a `full_access` key or one holding a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`)",
45745
+ * "statusCode": 422,
45746
+ * "code": "request.refused",
45747
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
44293
45748
  * "timestamp": "2026-04-20T12:00:00.000Z",
44294
45749
  * "path": "/api/v1/api-keys/{id}/rotate-secret",
44295
45750
  * "method": "POST"
@@ -44299,8 +45754,8 @@ interface operations {
44299
45754
  "application/json": components["schemas"]["ErrorResponseDto"];
44300
45755
  };
44301
45756
  };
44302
- /** @description API key not found */
44303
- 404: {
45757
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
45758
+ 503: {
44304
45759
  headers: {
44305
45760
  [name: string]: unknown;
44306
45761
  };
@@ -44308,9 +45763,9 @@ interface operations {
44308
45763
  /**
44309
45764
  * @example {
44310
45765
  * "error": {
44311
- * "statusCode": 404,
44312
- * "code": "api_key.not_found",
44313
- * "message": "API key not found",
45766
+ * "statusCode": 503,
45767
+ * "code": "server.error",
45768
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
44314
45769
  * "timestamp": "2026-04-20T12:00:00.000Z",
44315
45770
  * "path": "/api/v1/api-keys/{id}/rotate-secret",
44316
45771
  * "method": "POST"
@@ -44620,7 +46075,13 @@ interface operations {
44620
46075
  ApiAccountWebhooksController_create: {
44621
46076
  parameters: {
44622
46077
  query?: never;
44623
- header?: never;
46078
+ header?: {
46079
+ /**
46080
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
46081
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
46082
+ */
46083
+ "Idempotency-Key"?: string;
46084
+ };
44624
46085
  path?: never;
44625
46086
  cookie?: never;
44626
46087
  };
@@ -44704,6 +46165,69 @@ interface operations {
44704
46165
  "application/json": components["schemas"]["ErrorResponseDto"];
44705
46166
  };
44706
46167
  };
46168
+ /** @description A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
46169
+ 409: {
46170
+ headers: {
46171
+ [name: string]: unknown;
46172
+ };
46173
+ content: {
46174
+ /**
46175
+ * @example {
46176
+ * "error": {
46177
+ * "statusCode": 409,
46178
+ * "code": "request.conflict",
46179
+ * "message": "A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
46180
+ * "timestamp": "2026-04-20T12:00:00.000Z",
46181
+ * "path": "/api/v1/account-webhooks",
46182
+ * "method": "POST"
46183
+ * }
46184
+ * }
46185
+ */
46186
+ "application/json": components["schemas"]["ErrorResponseDto"];
46187
+ };
46188
+ };
46189
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
46190
+ 422: {
46191
+ headers: {
46192
+ [name: string]: unknown;
46193
+ };
46194
+ content: {
46195
+ /**
46196
+ * @example {
46197
+ * "error": {
46198
+ * "statusCode": 422,
46199
+ * "code": "request.refused",
46200
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
46201
+ * "timestamp": "2026-04-20T12:00:00.000Z",
46202
+ * "path": "/api/v1/account-webhooks",
46203
+ * "method": "POST"
46204
+ * }
46205
+ * }
46206
+ */
46207
+ "application/json": components["schemas"]["ErrorResponseDto"];
46208
+ };
46209
+ };
46210
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
46211
+ 503: {
46212
+ headers: {
46213
+ [name: string]: unknown;
46214
+ };
46215
+ content: {
46216
+ /**
46217
+ * @example {
46218
+ * "error": {
46219
+ * "statusCode": 503,
46220
+ * "code": "server.error",
46221
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
46222
+ * "timestamp": "2026-04-20T12:00:00.000Z",
46223
+ * "path": "/api/v1/account-webhooks",
46224
+ * "method": "POST"
46225
+ * }
46226
+ * }
46227
+ */
46228
+ "application/json": components["schemas"]["ErrorResponseDto"];
46229
+ };
46230
+ };
44707
46231
  };
44708
46232
  };
44709
46233
  ApiAccountWebhooksController_summary: {
@@ -45349,7 +46873,13 @@ interface operations {
45349
46873
  ApiAccountWebhooksController_rotateSecret: {
45350
46874
  parameters: {
45351
46875
  query?: never;
45352
- header?: never;
46876
+ header?: {
46877
+ /**
46878
+ * @description A key of your own, up to 255 characters, that makes this request safe to send again (a UUID is a good one). While the first request runs a repeat answers `409`; once it has succeeded a repeat with the same key and the same request is answered with the first response for 24 hours, and nothing is done twice. A request that failed gives the key back. Leave it out to send the request once.
46879
+ * @example 9f4e8c2a-1b3d-4f5e-8a7c-2d1e3b4c5d6e
46880
+ */
46881
+ "Idempotency-Key"?: string;
46882
+ };
45353
46883
  path: {
45354
46884
  id: string;
45355
46885
  };
@@ -45456,6 +46986,69 @@ interface operations {
45456
46986
  "application/json": components["schemas"]["ErrorResponseDto"];
45457
46987
  };
45458
46988
  };
46989
+ /** @description A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key */
46990
+ 409: {
46991
+ headers: {
46992
+ [name: string]: unknown;
46993
+ };
46994
+ content: {
46995
+ /**
46996
+ * @example {
46997
+ * "error": {
46998
+ * "statusCode": 409,
46999
+ * "code": "request.conflict",
47000
+ * "message": "A request with the same `Idempotency-Key` is still being processed (`idempotency.request_in_progress`): retry shortly, and once it finishes the retry is answered with its response. Or one started and never recorded its outcome (`idempotency.outcome_unknown`): it is not run again, so check whether it took effect and use a new key",
47001
+ * "timestamp": "2026-04-20T12:00:00.000Z",
47002
+ * "path": "/api/v1/account-webhooks/{id}/rotate-secret",
47003
+ * "method": "POST"
47004
+ * }
47005
+ * }
47006
+ */
47007
+ "application/json": components["schemas"]["ErrorResponseDto"];
47008
+ };
47009
+ };
47010
+ /** @description The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key. */
47011
+ 422: {
47012
+ headers: {
47013
+ [name: string]: unknown;
47014
+ };
47015
+ content: {
47016
+ /**
47017
+ * @example {
47018
+ * "error": {
47019
+ * "statusCode": 422,
47020
+ * "code": "request.refused",
47021
+ * "message": "The `Idempotency-Key` was already used by this caller for a different request: another method, path or body, another `If-Match`, or another Environment. A replay must repeat the original request exactly; a new request takes a new key.",
47022
+ * "timestamp": "2026-04-20T12:00:00.000Z",
47023
+ * "path": "/api/v1/account-webhooks/{id}/rotate-secret",
47024
+ * "method": "POST"
47025
+ * }
47026
+ * }
47027
+ */
47028
+ "application/json": components["schemas"]["ErrorResponseDto"];
47029
+ };
47030
+ };
47031
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
47032
+ 503: {
47033
+ headers: {
47034
+ [name: string]: unknown;
47035
+ };
47036
+ content: {
47037
+ /**
47038
+ * @example {
47039
+ * "error": {
47040
+ * "statusCode": 503,
47041
+ * "code": "server.error",
47042
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
47043
+ * "timestamp": "2026-04-20T12:00:00.000Z",
47044
+ * "path": "/api/v1/account-webhooks/{id}/rotate-secret",
47045
+ * "method": "POST"
47046
+ * }
47047
+ * }
47048
+ */
47049
+ "application/json": components["schemas"]["ErrorResponseDto"];
47050
+ };
47051
+ };
45459
47052
  };
45460
47053
  };
45461
47054
  ApiBillingController_getSubscription: {