@canopy-io/node 0.24.1 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -153,7 +153,8 @@ interface RequestOptions {
153
153
  */
154
154
  environmentId?: string | null;
155
155
  /**
156
- * Declares this call safe to repeat, which allows retrying a 5xx.
156
+ * Declares this call safe to repeat, which allows retrying a 5xx, a dropped
157
+ * connection, and a `409 idempotency.request_in_progress`.
157
158
  *
158
159
  * Needed because the generated types carry no idempotency marker, so the
159
160
  * spec cannot drive this. GET, HEAD, PUT and DELETE are treated as
@@ -162,7 +163,11 @@ interface RequestOptions {
162
163
  *
163
164
  * Set it where a POST is a read in disguise — the permission evaluations
164
165
  * take a body and so must be POSTs, but they compute an answer and write
165
- * nothing. Do not set it on anything that creates.
166
+ * nothing. Set it on a create only together with an `Idempotency-Key`
167
+ * header, and only on a route that honours one (it declares the
168
+ * `idempotency.*` answers): a repeat then returns the first answer instead
169
+ * of creating twice, and a `409 idempotency.request_in_progress` is asked
170
+ * again until the first attempt finishes. On any other create, do not set it.
166
171
  */
167
172
  idempotent?: boolean;
168
173
  }
@@ -2848,7 +2853,7 @@ interface paths {
2848
2853
  get?: never;
2849
2854
  put?: never;
2850
2855
  /**
2851
- * Bulk-create role assignments. All-or-nothing: any failure rolls back the entire batch
2856
+ * Bulk-create role assignments. Each item succeeds or fails on its own
2852
2857
  * @description Creates many role assignments in one request using partial-success semantics: each item is validated, authorized at its node, and saved independently. Successes and failures are returned together in a `{ summary, results }` envelope — `200` when every item succeeds, `207 Multi-Status` when some fail. Per-item duplicates (including repeats within the same batch), unauthorized nodes, and inactive/system roles fold into the `failures` array rather than aborting the request. Emits a single `assignment.bulk_created` audit summary.
2853
2858
  */
2854
2859
  post: operations["ApiAssignmentsController_bulkCreate"];
@@ -3062,8 +3067,8 @@ interface paths {
3062
3067
  cookie?: never;
3063
3068
  };
3064
3069
  /**
3065
- * List the hosted page texts whose wording can be changed
3066
- * @description Lists the texts on hosted pages that `text_overrides` can reword: the headings, labels, button labels and helper text of the sign-in, sign-up, account recovery, email verification, invitation, multi-factor challenge and sign-out pages. Each entry has the `key` an override names it by, its `locale`, the `page` it shows on with that page's title and a `preview_state` that shows it, a plain `name`, its `kind`, its `default` wording, the `placeholders` an override must keep, and its `max_length`. Wording that tells a person what happened to their account (errors, refusals, expiry notices and warnings) is not listed and cannot be changed. Read this list before writing `text_overrides`. Returns `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
3070
+ * List the hosted page and email texts whose wording can be changed
3071
+ * @description Lists the texts on hosted pages and in emails that `text_overrides` can reword: the headings, labels, button labels and helper text of the sign-in, sign-up, account recovery, email verification, invitation, multi-factor challenge and sign-out pages, and the subject, heading, main sentence and button of the verification, password reset, sign-in code, two-step verification code, change confirmation and invitation emails. Each entry has the `key` an override names it by, its `locale`, the `page` or email it shows on, by the preview list's `id`, with its title and a `preview_state` that shows it, a plain `name`, its `kind`, its `default` wording, the `placeholders` an override must keep, and its `max_length`. Wording that tells a person what happened to their account (errors, refusals, expiry notices, warnings, and the security notice emails) is not listed and cannot be changed. Read this list before writing `text_overrides`. Returns `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
3067
3072
  */
3068
3073
  get: operations["ApiBrandingController_getTextKeys"];
3069
3074
  put?: never;
@@ -3085,7 +3090,7 @@ interface paths {
3085
3090
  put?: never;
3086
3091
  /**
3087
3092
  * Preview a hosted page or email in a branding
3088
- * @description Renders one hosted page, in one of its states, or one customer email, in the Environment's branding with the unsaved changes in `branding` laid over it, so a branding change can be checked before it is saved. Nothing is saved, and no session or person is involved: the page shows sample data. `page` and `state` are ids from the preview list, and `scheme` renders a page in its light or its dark look whatever the color scheme. Returns the whole HTML document, which works without scripts. Returns `400` (`branding.preview_page_unknown`) for a page or state that does not exist, or `validation` for a malformed branding value, and `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
3093
+ * @description Renders one hosted page, in one of its states, or one customer email, in the Environment's branding with the unsaved changes in `branding` laid over it, so a branding change can be checked before it is saved. Nothing is saved, and no session or person is involved: the page shows sample data. `page` and `state` are ids from the preview list, and `scheme` renders a page in its light or its dark look whatever the color scheme. Returns the whole HTML document, which works without scripts. Returns `400` (`branding.preview_page_unknown`) for a page or state that does not exist, or `validation` for a malformed branding value, and `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization. `language` renders it in one of the languages Canopy writes the pages in, with the wording `text_overrides` holds for that language; left out, English.
3089
3094
  */
3090
3095
  post: operations["ApiBrandingController_preview"];
3091
3096
  delete?: never;
@@ -3301,7 +3306,7 @@ interface paths {
3301
3306
  head?: never;
3302
3307
  /**
3303
3308
  * Change an Environment's sign-in settings
3304
- * @description Updates the sign-in settings of the request's Environment, applying any supplied fields (`mfa`, `allow_self_signup`, `self_signup_require_captcha`, `login_require_captcha`, `password_login_enabled`, `email_otp_login_enabled`, `passkey_login_enabled`, `self_signup_daily_cap`, `access_token_ttl_seconds`, `refresh_token_ttl_days`, `public_refresh_token_ttl_days`, `allowed_web_origins`, `sso_return_urls`, `auth_links_base_url`); omitted fields are left unchanged, `allowed_web_origins` are normalized and de-duplicated on save, and `auth_links_base_url` is canonicalized to a bare origin (send `null` to clear it). While `auth_links_base_url` is set, verification, password-reset and invitation emails link to that origin at `/verify-email`, `/reset-password` and `/accept-invite` instead of Canopy's hosted pages. Send the Environment's `version` (returned by the GET) in `If-Match` to refuse a stale save: a mismatch answers `409 version_mismatch`, and without the header the check is skipped. Emits an `environment.auth_settings_updated` audit event naming the settings whose value changed.
3309
+ * @description Updates the sign-in settings of the request's Environment, applying any supplied fields (`mfa`, `allow_self_signup`, `self_signup_require_captcha`, `login_require_captcha`, `password_login_enabled`, `email_otp_login_enabled`, `passkey_login_enabled`, `default_language`, `self_signup_daily_cap`, `access_token_ttl_seconds`, `refresh_token_ttl_days`, `public_refresh_token_ttl_days`, `allowed_web_origins`, `sso_return_urls`, `auth_links_base_url`); omitted fields are left unchanged, `allowed_web_origins` are normalized and de-duplicated on save, and `auth_links_base_url` is canonicalized to a bare origin (send `null` to clear it). While `auth_links_base_url` is set, verification, password-reset and invitation emails link to that origin at `/verify-email`, `/reset-password` and `/accept-invite` instead of Canopy's hosted pages. Send the Environment's `version` (returned by the GET) in `If-Match` to refuse a stale save: a mismatch answers `409 version_mismatch`, and without the header the check is skipped. Emits an `environment.auth_settings_updated` audit event naming the settings whose value changed.
3305
3310
  */
3306
3311
  patch: operations["ApiAuthSettingsController_update"];
3307
3312
  trace?: never;
@@ -4413,7 +4418,7 @@ interface paths {
4413
4418
  head?: never;
4414
4419
  /**
4415
4420
  * Update OAuth client
4416
- * @description Updates an OAuth client's mutable fields (`name`, `redirect_uris`, `post_logout_redirect_uris`, `backchannel_logout_uri`, `scopes`, `is_active`, `invite_redirect_url`, `initiate_login_uri`, and for a web client `branding`, the settings it carries over its Environment's branding; for a machine client `allowed_audiences` and `token_exchange`, which adds or removes the token-exchange grant in its `grant_types`), scoped to the current Environment. A `scopes` value outside `openid`, `profile`, `email`, `org` and `permissions` is refused with `400` (`oauth.client_scope_unknown`). Returns the updated client, or `404` when the client is not found in this Environment. Send `If-Match` with the client's `version` to refuse a stale write (`409 version_mismatch`). Setting a `branding` value answers `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization, and `400` (`oauth.machine_client_branding_invalid`) on a machine client; returning one to the Environment's with `null` is always allowed. The secret is not rotated here.
4421
+ * @description Updates an OAuth client's mutable fields (`name`, `redirect_uris`, `post_logout_redirect_uris`, `backchannel_logout_uri`, `scopes`, `is_active`, `invite_redirect_url`, `initiate_login_uri`, and for a web client `branding`, the settings it carries over its Environment's branding; for a machine client `allowed_audiences` and `token_exchange`, which adds or removes the token-exchange grant in its `grant_types`), scoped to the current Environment. A `scopes` value outside `openid`, `profile`, `email`, `org` and `permissions` is refused with `400` (`oauth.client_scope_unknown`). Returns the updated client, or `404` when the client is not found in this Environment. Send `If-Match` with the client's `version` to refuse a stale write (`409 version_mismatch`). Setting a `branding` value answers `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization, `400` (`oauth.machine_client_branding_invalid`) on a machine client, and `400` (`oauth.client_page_template_invalid`) for `page_template` or `page_template_sources`, which belong to the Environment; returning one to the Environment's with `null` is always allowed. The secret is not rotated here.
4417
4422
  */
4418
4423
  patch: operations["ApiOAuthClientsController_update"];
4419
4424
  trace?: never;
@@ -5052,6 +5057,11 @@ interface components {
5052
5057
  last_name: string;
5053
5058
  avatar_url?: string | null;
5054
5059
  external_id?: string | null;
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.
5062
+ * @example fr
5063
+ */
5064
+ locale?: string | null;
5055
5065
  is_active: boolean;
5056
5066
  /** Format: date-time */
5057
5067
  created_at: string;
@@ -5097,6 +5107,11 @@ interface components {
5097
5107
  password?: string;
5098
5108
  external_id?: string;
5099
5109
  metadata?: Record<string, unknown>;
5110
+ /**
5111
+ * @description The language the person reads, as a language tag (`en`, `fr-CA`). Emails to them are written in it, and the hosted pages use it when the address names no `ui_locales`, wherever the hosted pages are written in it. Omit to leave it unknown until they sign in.
5112
+ * @example fr
5113
+ */
5114
+ locale?: string;
5100
5115
  /** @description Role for an initial assignment — required if node_id is provided */
5101
5116
  role_id?: string;
5102
5117
  /** @description Node for an initial assignment — required if role_id is provided */
@@ -5140,6 +5155,11 @@ interface components {
5140
5155
  last_name: string;
5141
5156
  avatar_url?: string | null;
5142
5157
  external_id?: string | null;
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.
5160
+ * @example fr
5161
+ */
5162
+ locale?: string | null;
5143
5163
  is_active: boolean;
5144
5164
  /** Format: date-time */
5145
5165
  created_at: string;
@@ -5156,6 +5176,11 @@ interface components {
5156
5176
  name: string;
5157
5177
  avatar_url?: string | null;
5158
5178
  external_id?: string | null;
5179
+ /**
5180
+ * @description The language the person reads, as a language tag, or null when none is known.
5181
+ * @example fr
5182
+ */
5183
+ locale?: string | null;
5159
5184
  metadata?: Record<string, unknown> | null;
5160
5185
  is_active: boolean;
5161
5186
  email_verified: boolean;
@@ -5173,6 +5198,11 @@ interface components {
5173
5198
  first_name?: string;
5174
5199
  last_name?: string;
5175
5200
  metadata?: Record<string, unknown> | null;
5201
+ /**
5202
+ * @description The language the person reads, as a language tag (`en`, `fr-CA`). `null` forgets it. Emails to them are written in it, and the hosted pages use it when the address names no `ui_locales`, wherever the hosted pages are written in it.
5203
+ * @example fr
5204
+ */
5205
+ locale?: string | null;
5176
5206
  };
5177
5207
  SetIdentityPasswordDto: {
5178
5208
  /** @description New password. 8-64 characters. No composition rules — NIST SP 800-63B aligned. A HaveIBeenPwned breach check runs server-side. The effective policy is published on `GET /v1/identity/auth/config`, so a client can state the rules before submit rather than after. */
@@ -5359,6 +5389,11 @@ interface components {
5359
5389
  first_name: string;
5360
5390
  last_name: string;
5361
5391
  name: string;
5392
+ /**
5393
+ * @description The language the invitation named for the invitee, as a language tag, or null when it named none.
5394
+ * @example fr
5395
+ */
5396
+ locale?: string | null;
5362
5397
  role_id?: string | null;
5363
5398
  node_id?: string | null;
5364
5399
  /** @description The name of the node at `node_id`, when it has one. */
@@ -5406,6 +5441,11 @@ interface components {
5406
5441
  first_name: string;
5407
5442
  last_name: string;
5408
5443
  name: string;
5444
+ /**
5445
+ * @description The language the invitation named for the invitee, as a language tag, or null when it named none.
5446
+ * @example fr
5447
+ */
5448
+ locale?: string | null;
5409
5449
  role_id?: string | null;
5410
5450
  node_id?: string | null;
5411
5451
  /** @description The name of the node at `node_id`, when it has one. */
@@ -5448,6 +5488,11 @@ interface components {
5448
5488
  first_name?: string;
5449
5489
  /** @description Required for `activate`. Ignored for `add_to_app` and `password_reset`. */
5450
5490
  last_name?: string;
5491
+ /**
5492
+ * @description The language to write to the invitee in, as a language tag (`en`, `fr-CA`). The invitation email is written in it where the emails are written in that language, and the identity the invitation creates keeps it. Omit to use the language an existing identity already reads, or the Environment's default.
5493
+ * @example fr
5494
+ */
5495
+ locale?: string;
5451
5496
  /** @description The role the invitation grants at `node_id`. Required with a `node_id`, except an organization node, where an invitation may admit a member with no role. */
5452
5497
  role_id?: string;
5453
5498
  /** @description Node ID — required if role_id is provided */
@@ -7240,6 +7285,14 @@ interface components {
7240
7285
  notice_html: string | null;
7241
7286
  footer_html: string | null;
7242
7287
  custom_css: string | null;
7288
+ /** @description The customer's own page around the hosted form, as stored, or null for none. Pages wear it only on `page_template_domain`. Always null in an OAuth client's own branding. */
7289
+ page_template: string | null;
7290
+ /**
7291
+ * @description The https addresses the page template may load from, one a line, or null for none. Always null in an OAuth client's own branding.
7292
+ * @example https://cdn.acme.example
7293
+ * https://analytics.acme.example
7294
+ */
7295
+ page_template_sources: string | null;
7243
7296
  /**
7244
7297
  * @description The customer's own wording for hosted page texts, by locale and then by the text's key. Empty where none is set.
7245
7298
  * @example {
@@ -7356,14 +7409,38 @@ interface components {
7356
7409
  /** @description Whether the attribution mark stays on hosted pages and the portal. False only on a plan with brand removal. */
7357
7410
  attribution: boolean;
7358
7411
  };
7412
+ AvailableLanguageDto: {
7413
+ /**
7414
+ * @description The language's tag.
7415
+ * @example en
7416
+ */
7417
+ code: string;
7418
+ /**
7419
+ * @description The language's name, written in the language itself.
7420
+ * @example English
7421
+ */
7422
+ name: string;
7423
+ };
7359
7424
  EnvironmentBrandingResponseDto: {
7360
7425
  environment_slug: string;
7361
7426
  branding: components["schemas"]["StoredBrandingDto"];
7362
7427
  effective: components["schemas"]["EffectiveBrandingDto"];
7363
7428
  /** @description Whether the Account's plan removes the attribution mark. When false, the mark stays whatever the customer sets. */
7364
7429
  brand_removal_available: boolean;
7365
- /** @description Whether the Account's plan carries hosted page customization. When false, the color scheme, the dark colors and dark logo, the layout, the background style with its gradient and image, the panel, the header, notice and footer content, the texts' wording, `text_color`, `surface_color`, `corner_radius`, `card_style`, `card_shadow`, `heading_font` and `body_font` cannot be set and the pages ignore any already stored. */
7430
+ /** @description Whether the Account's plan carries hosted page customization. When false, the color scheme, the dark colors and dark logo, the layout, the background style with its gradient and image, the panel, the header, notice and footer content, the custom CSS, the page template and its addresses, the texts' wording, `text_color`, `surface_color`, `corner_radius`, `card_style`, `card_shadow`, `heading_font` and `body_font` cannot be set and the pages ignore any already stored. */
7366
7431
  customization_available: boolean;
7432
+ /**
7433
+ * @description The Environment's active custom auth domain, which is the only address a `page_template` is served on, or null while it has none. Hosted pages wear a stored template only while this names a domain and the Account's plan carries hosted page customization; otherwise the template is kept and the pages are drawn without it.
7434
+ * @example auth.acme.example
7435
+ */
7436
+ page_template_domain: string | null;
7437
+ /** @description Every language the hosted pages and emails are written in, in the order they are listed. Every Environment offers all of them. `text_overrides` may reword the texts in each, and a preview may be asked for in any of them. */
7438
+ languages: components["schemas"]["AvailableLanguageDto"][];
7439
+ /**
7440
+ * @description The language a page is shown in when nothing asks for another, one of `languages`.
7441
+ * @example en
7442
+ */
7443
+ default_language: string;
7367
7444
  /** @description The Environment's optimistic-lock version; send it back as `If-Match` on PATCH. Any change to the Environment moves it. */
7368
7445
  version: number;
7369
7446
  };
@@ -7533,7 +7610,28 @@ interface components {
7533
7610
  */
7534
7611
  custom_css?: string | null;
7535
7612
  /**
7536
- * @description Your own wording for texts on hosted pages, by locale and then by the text's `key` from `GET /api/v1/branding/text-keys`. Each text set here replaces the stored wording, `null` returns that text to its default, and a text left out keeps what is stored; `null` for the whole value returns every text to its default. Wording is plain text without `<` or `>`, no longer than the text's `max_length`, and keeps each of the text's `placeholders` in double braces. A locale the pages are not written in, a key outside the list, or wording that breaks these rules is refused. Needs the `hosted_page_customization` plan feature to set.
7613
+ * @description Your own page around the hosted form: a whole HTML document holding `{{canopy:head}}` once inside `<head>`, where the page's title and styles go, and `{{canopy:form}}` once inside `<body>`, where the form goes with its alerts, your notice and footer content and the support, terms and privacy links. It is used only on pages served on the Environment's verified custom auth domain; on every other address, and in emails and the organization admin portal, the pages are drawn as they are without one, and the stored template waits. While it is used, `layout`, the background, the panel and `header_html` do not apply. It may hold scripts: one written in the template runs, and one loaded by address runs only from an address in `page_template_sources`. Such scripts run on the sign-in page and can read what people type, passwords included. Refused: a missing, repeated or misplaced placeholder (inside a tag, a comment, a script, a style, a link, a button, a form, or any element whose content a browser does not show as a page, such as `<xmp>`, `<noembed>`, `<canvas>` or `<dialog>`), `<base>`, `<meta http-equiv>`, `<iframe>`, `<frame>`, `<object>` and `<embed>`. Belongs to the Environment: an OAuth client's own branding cannot set it. Null removes it. Needs the `hosted_page_customization` plan feature to set.
7614
+ * @example <!DOCTYPE html>
7615
+ * <html lang="en">
7616
+ * <head>
7617
+ * <meta charset="utf-8">
7618
+ * {{canopy:head}}
7619
+ * </head>
7620
+ * <body>
7621
+ * <header>Acme</header>
7622
+ * {{canopy:form}}
7623
+ * </body>
7624
+ * </html>
7625
+ */
7626
+ page_template?: string | null;
7627
+ /**
7628
+ * @description The addresses a page template may load scripts and stylesheets from and call, separated by spaces, commas or new lines: each an https address with no path, such as `https://cdn.acme.example`, whose host is letters, digits, dots and hyphens with an optional port, at most 20. On a page drawn with the template they are added to the page's content security policy for scripts, stylesheets and network calls; every other page keeps the standard policy. Stored one a line. Belongs to the Environment, as `page_template` does. Null lists none. Needs the `hosted_page_customization` plan feature to set.
7629
+ * @example https://cdn.acme.example
7630
+ * https://analytics.acme.example
7631
+ */
7632
+ page_template_sources?: string | null;
7633
+ /**
7634
+ * @description Your own wording for texts on hosted pages and in emails, by locale and then by the text's `key` from `GET /api/v1/branding/text-keys`. Each text set here replaces the stored wording, `null` returns that text to its default, and a text left out keeps what is stored; `null` for the whole value returns every text to its default. Wording is plain text without `<` or `>`, no longer than the text's `max_length`, and keeps each of the text's `placeholders` in double braces. A locale the pages are not written in, a key outside the list, or wording that breaks these rules is refused. Needs the `hosted_page_customization` plan feature to set.
7537
7635
  * @example {
7538
7636
  * "en": {
7539
7637
  * "authHosted.login.signInHeading": "Sign in to Acme"
@@ -7598,12 +7696,12 @@ interface components {
7598
7696
  */
7599
7697
  locale: string;
7600
7698
  /**
7601
- * @description The hosted page the text shows on, by the `id` the preview list returns.
7699
+ * @description The hosted page or email the text shows on, by the `id` the preview list returns.
7602
7700
  * @example login
7603
7701
  */
7604
7702
  page: string;
7605
7703
  /**
7606
- * @description That page's title.
7704
+ * @description That page's or email's title.
7607
7705
  * @example Sign in
7608
7706
  */
7609
7707
  page_title: string;
@@ -7669,6 +7767,12 @@ interface components {
7669
7767
  * @enum {string}
7670
7768
  */
7671
7769
  scheme?: "light" | "dark";
7770
+ /**
7771
+ * @description The language to render the page or email in, with the wording `text_overrides` holds for it. Leave it out to render it in English.
7772
+ * @example es
7773
+ * @enum {string}
7774
+ */
7775
+ language?: "en" | "es";
7672
7776
  };
7673
7777
  TokenClaimEntryResponseDto: {
7674
7778
  /**
@@ -7829,6 +7933,11 @@ interface components {
7829
7933
  email_otp_login_enabled?: boolean;
7830
7934
  /** @description Enable passkey sign-in for this Environment. Off by default (opt-in); persisted under `env.settings.passkey_login_enabled`. When on, an identity holding a passkey signs in with it alone via /login/passkey/*, and the passkey counts as its second factor. */
7831
7935
  passkey_login_enabled?: boolean;
7936
+ /**
7937
+ * @description The language a page or email is written in when nothing names one the hosted pages are written in: no `ui_locales`, no stored language for the person, and no match in the browser's languages. Must be one of `available_languages` in the response. Unset, `en`.
7938
+ * @example en
7939
+ */
7940
+ default_language?: string;
7832
7941
  /** @description Maximum self-signup registrations allowed per UTC day for this Environment. 0 (the default) means no cap. When exceeded, registration returns 429. Persisted under `env.settings.self_signup_daily_cap`. */
7833
7942
  self_signup_daily_cap?: number;
7834
7943
  /** @description Lifetime in seconds of the access tokens (JWTs) this Environment issues to identities. Defaults to 900 (15 minutes). Persisted under `env.settings.access_token_ttl_seconds`; applies to tokens minted after the change. */
@@ -7919,6 +8028,13 @@ interface components {
7919
8028
  password_login_enabled?: boolean;
7920
8029
  email_otp_login_enabled?: boolean;
7921
8030
  passkey_login_enabled?: boolean;
8031
+ /**
8032
+ * @description The language a page or email is written in when nothing names one the hosted pages are written in. Always one of `available_languages`.
8033
+ * @example en
8034
+ */
8035
+ default_language: string;
8036
+ /** @description Every language the hosted pages and emails are written in. Every Environment offers all of them: a page or email follows `ui_locales`, then the person's stored language, then the browser's, then `default_language`. */
8037
+ available_languages: components["schemas"]["AvailableLanguageDto"][];
7922
8038
  self_signup_daily_cap?: number;
7923
8039
  access_token_ttl_seconds?: number;
7924
8040
  refresh_token_ttl_days?: number;
@@ -7996,6 +8112,11 @@ interface components {
7996
8112
  email_otp_login_enabled?: boolean;
7997
8113
  /** @description Enable passkey sign-in for this Environment. Off by default (opt-in); persisted under `env.settings.passkey_login_enabled`. When on, an identity holding a passkey signs in with it alone via /login/passkey/*, and the passkey counts as its second factor. */
7998
8114
  passkey_login_enabled?: boolean;
8115
+ /**
8116
+ * @description The language a page or email is written in when nothing names one the hosted pages are written in: no `ui_locales`, no stored language for the person, and no match in the browser's languages. Must be one of `available_languages` in the response. Unset, `en`.
8117
+ * @example en
8118
+ */
8119
+ default_language?: string;
7999
8120
  /** @description Maximum self-signup registrations allowed per UTC day for this Environment. 0 (the default) means no cap. When exceeded, registration returns 429. Persisted under `env.settings.self_signup_daily_cap`. */
8000
8121
  self_signup_daily_cap?: number;
8001
8122
  /** @description Lifetime in seconds of the access tokens (JWTs) this Environment issues to identities. Defaults to 900 (15 minutes). Persisted under `env.settings.access_token_ttl_seconds`; applies to tokens minted after the change. */
@@ -8852,7 +8973,7 @@ interface components {
8852
8973
  invite_redirect_url?: string | null;
8853
8974
  /** @description The route in your application that starts a sign-in (OpenID Connect `initiate_login_uri`): it should send the person to Canopy's `/oauth/authorize`. Canopy's hosted pages that end with nothing to return to, such as an accepted invitation or a verified email, offer it as **Sign in**. Absolute `http` or `https` URL; `null` clears it. */
8854
8975
  initiate_login_uri?: string | null;
8855
- /** @description Changes to the branding this client carries over its Environment's, in the shape of a branding change: a setting set here is the client's own, `null` for a setting returns it to the Environment's, and a setting left out keeps what the client holds. `null` for the whole value returns every setting to the Environment's. A sign-in this client starts wears the result on the hosted pages and in the emails it sends. A web client only: a machine client answers `400` (`oauth.machine_client_branding_invalid`). Needs the `hosted_page_customization` plan feature to set. */
8976
+ /** @description Changes to the branding this client carries over its Environment's, in the shape of a branding change: a setting set here is the client's own, `null` for a setting returns it to the Environment's, and a setting left out keeps what the client holds. `null` for the whole value returns every setting to the Environment's. A sign-in this client starts wears the result on the hosted pages and in the emails it sends. A web client only: a machine client answers `400` (`oauth.machine_client_branding_invalid`). `page_template` and `page_template_sources` belong to the Environment and answer `400` here (`oauth.client_page_template_invalid`). Needs the `hosted_page_customization` plan feature to set. */
8856
8977
  branding?: components["schemas"]["UpdateEnvironmentBrandingDto"] | null;
8857
8978
  };
8858
8979
  ApiKeyCreatedResponseDto: {
@@ -12277,6 +12398,27 @@ interface operations {
12277
12398
  "application/json": components["schemas"]["ErrorResponseDto"];
12278
12399
  };
12279
12400
  };
12401
+ /** @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 */
12402
+ 409: {
12403
+ headers: {
12404
+ [name: string]: unknown;
12405
+ };
12406
+ content: {
12407
+ /**
12408
+ * @example {
12409
+ * "error": {
12410
+ * "statusCode": 409,
12411
+ * "code": "request.conflict",
12412
+ * "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",
12413
+ * "timestamp": "2026-04-20T12:00:00.000Z",
12414
+ * "path": "/api/v1/identities/bulk-create",
12415
+ * "method": "POST"
12416
+ * }
12417
+ * }
12418
+ */
12419
+ "application/json": components["schemas"]["ErrorResponseDto"];
12420
+ };
12421
+ };
12280
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. */
12281
12423
  422: {
12282
12424
  headers: {
@@ -12298,6 +12440,27 @@ interface operations {
12298
12440
  "application/json": components["schemas"]["ErrorResponseDto"];
12299
12441
  };
12300
12442
  };
12443
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
12444
+ 503: {
12445
+ headers: {
12446
+ [name: string]: unknown;
12447
+ };
12448
+ content: {
12449
+ /**
12450
+ * @example {
12451
+ * "error": {
12452
+ * "statusCode": 503,
12453
+ * "code": "server.error",
12454
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
12455
+ * "timestamp": "2026-04-20T12:00:00.000Z",
12456
+ * "path": "/api/v1/identities/bulk-create",
12457
+ * "method": "POST"
12458
+ * }
12459
+ * }
12460
+ */
12461
+ "application/json": components["schemas"]["ErrorResponseDto"];
12462
+ };
12463
+ };
12301
12464
  };
12302
12465
  };
12303
12466
  ApiIdentitiesController_getIdentity: {
@@ -14791,6 +14954,27 @@ interface operations {
14791
14954
  "application/json": components["schemas"]["ErrorResponseDto"];
14792
14955
  };
14793
14956
  };
14957
+ /** @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 */
14958
+ 409: {
14959
+ headers: {
14960
+ [name: string]: unknown;
14961
+ };
14962
+ content: {
14963
+ /**
14964
+ * @example {
14965
+ * "error": {
14966
+ * "statusCode": 409,
14967
+ * "code": "request.conflict",
14968
+ * "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",
14969
+ * "timestamp": "2026-04-20T12:00:00.000Z",
14970
+ * "path": "/api/v1/identity-invites/bulk-create",
14971
+ * "method": "POST"
14972
+ * }
14973
+ * }
14974
+ */
14975
+ "application/json": components["schemas"]["ErrorResponseDto"];
14976
+ };
14977
+ };
14794
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. */
14795
14979
  422: {
14796
14980
  headers: {
@@ -14812,6 +14996,27 @@ interface operations {
14812
14996
  "application/json": components["schemas"]["ErrorResponseDto"];
14813
14997
  };
14814
14998
  };
14999
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
15000
+ 503: {
15001
+ headers: {
15002
+ [name: string]: unknown;
15003
+ };
15004
+ content: {
15005
+ /**
15006
+ * @example {
15007
+ * "error": {
15008
+ * "statusCode": 503,
15009
+ * "code": "server.error",
15010
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
15011
+ * "timestamp": "2026-04-20T12:00:00.000Z",
15012
+ * "path": "/api/v1/identity-invites/bulk-create",
15013
+ * "method": "POST"
15014
+ * }
15015
+ * }
15016
+ */
15017
+ "application/json": components["schemas"]["ErrorResponseDto"];
15018
+ };
15019
+ };
14815
15020
  };
14816
15021
  };
14817
15022
  ApiIdentityInvitesController_resendInvite: {
@@ -31558,7 +31763,7 @@ interface operations {
31558
31763
  };
31559
31764
  };
31560
31765
  };
31561
- /** @description A value is malformed: the logo, favicon, terms and privacy links must be https URLs, the colors six-digit hex, the support link an https URL or a mailto: address, the product name at most 60 characters, the color scheme, layout, background style, corner radius, card style and card shadow one of their listed values, a background or panel image an https URL holding no quote, bracket or space, the panel heading at most 80 characters and its text at most 240, `text_overrides` texts from the text keys list, each plain text within its length that keeps its placeholders, the header, notice and footer content at most 2,000 characters each, a heading or body font a curated font's id or an https URL, and `custom_css` CSS of at most 20,000 characters that parses, loads no file (`@import`, `@font-face`, `url()`), selects on no field's `value` and names no `--_hp-*` property or `</`; 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`) */
31766
+ /** @description A value is malformed: the logo, favicon, terms and privacy links must be https URLs, the colors six-digit hex, the support link an https URL or a mailto: address, the product name at most 60 characters, the color scheme, layout, background style, corner radius, card style and card shadow one of their listed values, a background or panel image an https URL holding no quote, bracket or space, the panel heading at most 80 characters and its text at most 240, `text_overrides` texts from the text keys list, each plain text within its length that keeps its placeholders, the header, notice and footer content at most 2,000 characters each, a heading or body font a curated font's id or an https URL, and `custom_css` CSS of at most 20,000 characters that parses, loads no file (`@import`, `@font-face`, `url()`), selects on no field's `value` and names no `--_hp-*` property or `</`, `page_template` a document of at most 100,000 characters holding `{{canopy:head}}` once inside `<head>` and `{{canopy:form}}` once inside `<body>` with no `<base>`, `<meta http-equiv>`, frame, `<object>` or `<embed>`, and `page_template_sources` at most 20 https addresses with no path; 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`) */
31562
31767
  400: {
31563
31768
  headers: {
31564
31769
  [name: string]: unknown;
@@ -31569,7 +31774,7 @@ interface operations {
31569
31774
  * "error": {
31570
31775
  * "statusCode": 400,
31571
31776
  * "code": "request.invalid",
31572
- * "message": "A value is malformed: the logo, favicon, terms and privacy links must be https URLs, the colors six-digit hex, the support link an https URL or a mailto: address, the product name at most 60 characters, the color scheme, layout, background style, corner radius, card style and card shadow one of their listed values, a background or panel image an https URL holding no quote, bracket or space, the panel heading at most 80 characters and its text at most 240, `text_overrides` texts from the text keys list, each plain text within its length that keeps its placeholders, the header, notice and footer content at most 2,000 characters each, a heading or body font a curated font's id or an https URL, and `custom_css` CSS of at most 20,000 characters that parses, loads no file (`@import`, `@font-face`, `url()`), selects on no field's `value` and names no `--_hp-*` property or `</`; 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`)",
31777
+ * "message": "A value is malformed: the logo, favicon, terms and privacy links must be https URLs, the colors six-digit hex, the support link an https URL or a mailto: address, the product name at most 60 characters, the color scheme, layout, background style, corner radius, card style and card shadow one of their listed values, a background or panel image an https URL holding no quote, bracket or space, the panel heading at most 80 characters and its text at most 240, `text_overrides` texts from the text keys list, each plain text within its length that keeps its placeholders, the header, notice and footer content at most 2,000 characters each, a heading or body font a curated font's id or an https URL, and `custom_css` CSS of at most 20,000 characters that parses, loads no file (`@import`, `@font-face`, `url()`), selects on no field's `value` and names no `--_hp-*` property or `</`, `page_template` a document of at most 100,000 characters holding `{{canopy:head}}` once inside `<head>` and `{{canopy:form}}` once inside `<body>` with no `<base>`, `<meta http-equiv>`, frame, `<object>` or `<embed>`, and `page_template_sources` at most 20 https addresses with no path; 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`)",
31573
31778
  * "timestamp": "2026-04-20T12:00:00.000Z",
31574
31779
  * "path": "/api/v1/branding",
31575
31780
  * "method": "PATCH"
@@ -33832,7 +34037,7 @@ interface operations {
33832
34037
  };
33833
34038
  };
33834
34039
  };
33835
- /** @description A setting is out of range or malformed, the passkey relying party is incomplete — `webauthn_rp_id` and `webauthn_origins` must be set together, and every origin must be on the id or a subdomain of it — `auth_links_base_url` is not a bare https origin, an entry in `allowed_web_origins` is not a bare http or https origin, or `organizations_create_on_signup` is on while no organization role template is the default admin (`role_template.default_admin_missing`); the role a sign-up's creator receives, and each identity provider arrival role, must be one every organization shares, not one organization's own; 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`) */
34040
+ /** @description A setting is out of range or malformed, the passkey relying party is incomplete — `webauthn_rp_id` and `webauthn_origins` must be set together, and every origin must be on the id or a subdomain of it — `auth_links_base_url` is not a bare https origin, an entry in `allowed_web_origins` is not a bare http or https origin, or `organizations_create_on_signup` is on while no organization role template is the default admin (`role_template.default_admin_missing`); the role a sign-up's creator receives, and each identity provider arrival role, must be one every organization shares, not one organization's own; 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 `default_language` names a language outside `available_languages` (`environment.default_language_invalid`); or its `If-Match` header names no version (`if_match.invalid`) */
33836
34041
  400: {
33837
34042
  headers: {
33838
34043
  [name: string]: unknown;
@@ -33843,7 +34048,7 @@ interface operations {
33843
34048
  * "error": {
33844
34049
  * "statusCode": 400,
33845
34050
  * "code": "request.invalid",
33846
- * "message": "A setting is out of range or malformed, the passkey relying party is incomplete — `webauthn_rp_id` and `webauthn_origins` must be set together, and every origin must be on the id or a subdomain of it — `auth_links_base_url` is not a bare https origin, an entry in `allowed_web_origins` is not a bare http or https origin, or `organizations_create_on_signup` is on while no organization role template is the default admin (`role_template.default_admin_missing`); the role a sign-up's creator receives, and each identity provider arrival role, must be one every organization shares, not one organization's own; 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`)",
34051
+ * "message": "A setting is out of range or malformed, the passkey relying party is incomplete — `webauthn_rp_id` and `webauthn_origins` must be set together, and every origin must be on the id or a subdomain of it — `auth_links_base_url` is not a bare https origin, an entry in `allowed_web_origins` is not a bare http or https origin, or `organizations_create_on_signup` is on while no organization role template is the default admin (`role_template.default_admin_missing`); the role a sign-up's creator receives, and each identity provider arrival role, must be one every organization shares, not one organization's own; 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 `default_language` names a language outside `available_languages` (`environment.default_language_invalid`); or its `If-Match` header names no version (`if_match.invalid`)",
33847
34052
  * "timestamp": "2026-04-20T12:00:00.000Z",
33848
34053
  * "path": "/api/v1/auth-settings",
33849
34054
  * "method": "PATCH"
@@ -42143,7 +42348,7 @@ interface operations {
42143
42348
  "application/json": components["schemas"]["ErrorResponseDto"];
42144
42349
  };
42145
42350
  };
42146
- /** @description A machine client: the account has reached its plan's monthly limit on active machine credentials (`m2m_tokens`, API keys and machine clients together); `data` carries the limit, the usage and an upgrade URL */
42351
+ /** @description A machine client: the account has reached its plan's monthly limit on active machine credentials (`m2m_tokens`, API keys and machine clients together); `data` carries the limit, the usage and an upgrade URL. 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 */
42147
42352
  409: {
42148
42353
  headers: {
42149
42354
  [name: string]: unknown;
@@ -42154,7 +42359,7 @@ interface operations {
42154
42359
  * "error": {
42155
42360
  * "statusCode": 409,
42156
42361
  * "code": "request.conflict",
42157
- * "message": "A machine client: the account has reached its plan's monthly limit on active machine credentials (`m2m_tokens`, API keys and machine clients together); `data` carries the limit, the usage and an upgrade URL",
42362
+ * "message": "A machine client: the account has reached its plan's monthly limit on active machine credentials (`m2m_tokens`, API keys and machine clients together); `data` carries the limit, the usage and an upgrade URL. 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",
42158
42363
  * "timestamp": "2026-04-20T12:00:00.000Z",
42159
42364
  * "path": "/api/v1/oauth-clients",
42160
42365
  * "method": "POST"
@@ -42185,6 +42390,27 @@ interface operations {
42185
42390
  "application/json": components["schemas"]["ErrorResponseDto"];
42186
42391
  };
42187
42392
  };
42393
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
42394
+ 503: {
42395
+ headers: {
42396
+ [name: string]: unknown;
42397
+ };
42398
+ content: {
42399
+ /**
42400
+ * @example {
42401
+ * "error": {
42402
+ * "statusCode": 503,
42403
+ * "code": "server.error",
42404
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
42405
+ * "timestamp": "2026-04-20T12:00:00.000Z",
42406
+ * "path": "/api/v1/oauth-clients",
42407
+ * "method": "POST"
42408
+ * }
42409
+ * }
42410
+ */
42411
+ "application/json": components["schemas"]["ErrorResponseDto"];
42412
+ };
42413
+ };
42188
42414
  };
42189
42415
  };
42190
42416
  ApiOAuthClientsController_summary: {
@@ -42529,7 +42755,7 @@ interface operations {
42529
42755
  };
42530
42756
  };
42531
42757
  };
42532
- /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range, `backchannel_logout_uri` names an address Canopy's servers will not call, `initiate_login_uri` is malformed or not `https` (loopback hosts excepted), `scopes` names a scope Canopy does not issue (`oauth.client_scope_unknown`), a machine client names an `organization_node_id` that is not a live organization of this Environment (`oauth.client_organization_invalid`), takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`) or is asked to be public (`oauth.machine_client_public_invalid`), a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`) or `token_exchange` (`oauth.web_client_token_exchange_invalid`), or a confidential client registers a private-use scheme redirect (`oauth.redirect_uri_not_allowed_for_client`), or `branding` holds a value a branding change would refuse (`validation`) or is sent for a machine client (`oauth.machine_client_branding_invalid`); 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`) */
42758
+ /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range, `backchannel_logout_uri` names an address Canopy's servers will not call, `initiate_login_uri` is malformed or not `https` (loopback hosts excepted), `scopes` names a scope Canopy does not issue (`oauth.client_scope_unknown`), a machine client names an `organization_node_id` that is not a live organization of this Environment (`oauth.client_organization_invalid`), takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`) or is asked to be public (`oauth.machine_client_public_invalid`), a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`) or `token_exchange` (`oauth.web_client_token_exchange_invalid`), or a confidential client registers a private-use scheme redirect (`oauth.redirect_uri_not_allowed_for_client`), or `branding` holds a value a branding change would refuse (`validation`) or is sent for a machine client (`oauth.machine_client_branding_invalid`), or `branding` sets `page_template` or `page_template_sources`, which belong to the Environment (`oauth.client_page_template_invalid`); 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`) */
42533
42759
  400: {
42534
42760
  headers: {
42535
42761
  [name: string]: unknown;
@@ -42540,7 +42766,7 @@ interface operations {
42540
42766
  * "error": {
42541
42767
  * "statusCode": 400,
42542
42768
  * "code": "request.invalid",
42543
- * "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range, `backchannel_logout_uri` names an address Canopy's servers will not call, `initiate_login_uri` is malformed or not `https` (loopback hosts excepted), `scopes` names a scope Canopy does not issue (`oauth.client_scope_unknown`), a machine client names an `organization_node_id` that is not a live organization of this Environment (`oauth.client_organization_invalid`), takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`) or is asked to be public (`oauth.machine_client_public_invalid`), a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`) or `token_exchange` (`oauth.web_client_token_exchange_invalid`), or a confidential client registers a private-use scheme redirect (`oauth.redirect_uri_not_allowed_for_client`), or `branding` holds a value a branding change would refuse (`validation`) or is sent for a machine client (`oauth.machine_client_branding_invalid`); 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`)",
42769
+ * "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range, `backchannel_logout_uri` names an address Canopy's servers will not call, `initiate_login_uri` is malformed or not `https` (loopback hosts excepted), `scopes` names a scope Canopy does not issue (`oauth.client_scope_unknown`), a machine client names an `organization_node_id` that is not a live organization of this Environment (`oauth.client_organization_invalid`), takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`) or is asked to be public (`oauth.machine_client_public_invalid`), a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`) or `token_exchange` (`oauth.web_client_token_exchange_invalid`), or a confidential client registers a private-use scheme redirect (`oauth.redirect_uri_not_allowed_for_client`), or `branding` holds a value a branding change would refuse (`validation`) or is sent for a machine client (`oauth.machine_client_branding_invalid`), or `branding` sets `page_template` or `page_template_sources`, which belong to the Environment (`oauth.client_page_template_invalid`); 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`)",
42544
42770
  * "timestamp": "2026-04-20T12:00:00.000Z",
42545
42771
  * "path": "/api/v1/oauth-clients/{id}",
42546
42772
  * "method": "PATCH"
@@ -43008,7 +43234,7 @@ interface operations {
43008
43234
  "application/json": components["schemas"]["ErrorResponseDto"];
43009
43235
  };
43010
43236
  };
43011
- /** @description The client already holds this role at this node (`rbac.assignment_conflict`), the client is pinned to an organization and the node is outside it (`oauth.client_outside_organization`), the caller's `If-Match` is stale (`assignment.version_mismatch`), or the change would leave an organization without an administrator (`organization.last_admin`) */
43237
+ /** @description The client already holds this role at this node (`rbac.assignment_conflict`), the client is pinned to an organization and the node is outside it (`oauth.client_outside_organization`), the caller's `If-Match` is stale (`assignment.version_mismatch`), or the change would leave an organization without an administrator (`organization.last_admin`). 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 */
43012
43238
  409: {
43013
43239
  headers: {
43014
43240
  [name: string]: unknown;
@@ -43019,7 +43245,7 @@ interface operations {
43019
43245
  * "error": {
43020
43246
  * "statusCode": 409,
43021
43247
  * "code": "request.conflict",
43022
- * "message": "The client already holds this role at this node (`rbac.assignment_conflict`), the client is pinned to an organization and the node is outside it (`oauth.client_outside_organization`), the caller's `If-Match` is stale (`assignment.version_mismatch`), or the change would leave an organization without an administrator (`organization.last_admin`)",
43248
+ * "message": "The client already holds this role at this node (`rbac.assignment_conflict`), the client is pinned to an organization and the node is outside it (`oauth.client_outside_organization`), the caller's `If-Match` is stale (`assignment.version_mismatch`), or the change would leave an organization without an administrator (`organization.last_admin`). 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",
43023
43249
  * "timestamp": "2026-04-20T12:00:00.000Z",
43024
43250
  * "path": "/api/v1/oauth-clients/{id}/assignments",
43025
43251
  * "method": "POST"
@@ -43050,6 +43276,27 @@ interface operations {
43050
43276
  "application/json": components["schemas"]["ErrorResponseDto"];
43051
43277
  };
43052
43278
  };
43279
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
43280
+ 503: {
43281
+ headers: {
43282
+ [name: string]: unknown;
43283
+ };
43284
+ content: {
43285
+ /**
43286
+ * @example {
43287
+ * "error": {
43288
+ * "statusCode": 503,
43289
+ * "code": "server.error",
43290
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
43291
+ * "timestamp": "2026-04-20T12:00:00.000Z",
43292
+ * "path": "/api/v1/oauth-clients/{id}/assignments",
43293
+ * "method": "POST"
43294
+ * }
43295
+ * }
43296
+ */
43297
+ "application/json": components["schemas"]["ErrorResponseDto"];
43298
+ };
43299
+ };
43053
43300
  };
43054
43301
  };
43055
43302
  ApiOAuthClientsController_removeAssignment: {
@@ -43633,7 +43880,7 @@ interface operations {
43633
43880
  "application/json": components["schemas"]["ErrorResponseDto"];
43634
43881
  };
43635
43882
  };
43636
- /** @description The account has reached its plan's monthly limit on active machine credentials (`m2m_tokens`: API keys and machine clients); `data` carries the limit, the usage and an upgrade URL */
43883
+ /** @description The account has reached its plan's monthly limit on active machine credentials (`m2m_tokens`: API keys and machine clients); `data` carries the limit, the usage and an upgrade URL. 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 */
43637
43884
  409: {
43638
43885
  headers: {
43639
43886
  [name: string]: unknown;
@@ -43644,7 +43891,7 @@ interface operations {
43644
43891
  * "error": {
43645
43892
  * "statusCode": 409,
43646
43893
  * "code": "request.conflict",
43647
- * "message": "The account has reached its plan's monthly limit on active machine credentials (`m2m_tokens`: API keys and machine clients); `data` carries the limit, the usage and an upgrade URL",
43894
+ * "message": "The account has reached its plan's monthly limit on active machine credentials (`m2m_tokens`: API keys and machine clients); `data` carries the limit, the usage and an upgrade URL. 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",
43648
43895
  * "timestamp": "2026-04-20T12:00:00.000Z",
43649
43896
  * "path": "/api/v1/api-keys",
43650
43897
  * "method": "POST"
@@ -43696,6 +43943,27 @@ interface operations {
43696
43943
  "application/json": components["schemas"]["ErrorResponseDto"];
43697
43944
  };
43698
43945
  };
43946
+ /** @description The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly */
43947
+ 503: {
43948
+ headers: {
43949
+ [name: string]: unknown;
43950
+ };
43951
+ content: {
43952
+ /**
43953
+ * @example {
43954
+ * "error": {
43955
+ * "statusCode": 503,
43956
+ * "code": "server.error",
43957
+ * "message": "The request carried an `Idempotency-Key` and the key could not be checked (`idempotency.unavailable`), so the request was not run. Retry shortly",
43958
+ * "timestamp": "2026-04-20T12:00:00.000Z",
43959
+ * "path": "/api/v1/api-keys",
43960
+ * "method": "POST"
43961
+ * }
43962
+ * }
43963
+ */
43964
+ "application/json": components["schemas"]["ErrorResponseDto"];
43965
+ };
43966
+ };
43699
43967
  };
43700
43968
  };
43701
43969
  ApiApiKeysController_delete: {