@canopy-io/node 0.24.0 → 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/CHANGELOG.md +17 -0
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +307 -30
- package/dist/index.d.ts +307 -30
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.
|
|
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.
|
|
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"];
|
|
@@ -3009,7 +3014,7 @@ interface paths {
|
|
|
3009
3014
|
head?: never;
|
|
3010
3015
|
/**
|
|
3011
3016
|
* Change an Environment's branding
|
|
3012
|
-
* @description Sets the Environment's branding. Every field is optional and stands on its own: send only what you want to change, send `null` to clear a field (the primary color then returns to the default blue). The product name shows in the browser tab, as the logo's alt text and in place of a missing logo; the logo shows at the top and the favicon in the tab; the primary color drives buttons and links, and the hover, link and focus shades are derived from it; the background color paints the page behind the card; the text and card colors set the card and what is written on it, with secondary text, lines and field borders derived from the pair; the color scheme chooses the light look, the dark look or whichever the visitor's device asks for, and the dark colors and dark logo describe the dark look, each with a default; the layout is one centred card or a split page with a panel beside the card, which holds a heading, a short text and an image; the background style paints the background color, a two-color gradient or an image behind the card; the corner radius rounds the card, its panels, fields and buttons together; the card style gives the card a border or none, and the card shadow sets the shadow under it; the body font sets the text and the heading font the headings, each a curated font from the fonts list or the https URL of a WOFF2 file, with the system font behind it; the support, terms and privacy links show as "Need help?", "Terms" and "Privacy" under every hosted page; `header_html`, `notice_html` and `footer_html` place your own content in a bar across the top of the page, above the card and under it, kept to links, paragraphs, bold, italics, line breaks, lists and images with https addresses, everything else being removed when it is saved, so the response shows what was kept; `text_overrides` rewords the hosted page texts the text keys list names, one text at a time. Returns `400` (`validation`) for a malformed value, and `403` (`plan_feature_unavailable`) when the request sets `color_scheme`, `logo_dark_url`, a dark color, `layout`, `background_style`, a gradient color, a background or panel image, `panel_heading`, `panel_text`, a text in `text_overrides`, `header_html`, `notice_html`, `footer_html`, `text_color`, `surface_color`, `corner_radius`, `card_style`, `card_shadow`, `heading_font` or `body_font` and the Account's plan does not include hosted page customization; clearing one with `null` is always allowed. Emits `environment.branding_updated`, which records the fields that changed.
|
|
3017
|
+
* @description Sets the Environment's branding. Every field is optional and stands on its own: send only what you want to change, send `null` to clear a field (the primary color then returns to the default blue). The product name shows in the browser tab, as the logo's alt text and in place of a missing logo; the logo shows at the top and the favicon in the tab; the primary color drives buttons and links, and the hover, link and focus shades are derived from it; the background color paints the page behind the card; the text and card colors set the card and what is written on it, with secondary text, lines and field borders derived from the pair; the color scheme chooses the light look, the dark look or whichever the visitor's device asks for, and the dark colors and dark logo describe the dark look, each with a default; the layout is one centred card or a split page with a panel beside the card, which holds a heading, a short text and an image; the background style paints the background color, a two-color gradient or an image behind the card; the corner radius rounds the card, its panels, fields and buttons together; the card style gives the card a border or none, and the card shadow sets the shadow under it; the body font sets the text and the heading font the headings, each a curated font from the fonts list or the https URL of a WOFF2 file, with the system font behind it; the support, terms and privacy links show as "Need help?", "Terms" and "Privacy" under every hosted page; `header_html`, `notice_html` and `footer_html` place your own content in a bar across the top of the page, above the card and under it, kept to links, paragraphs, bold, italics, line breaks, lists and images with https addresses, everything else being removed when it is saved, so the response shows what was kept; `text_overrides` rewords the hosted page texts the text keys list names, one text at a time; `custom_css` is your own CSS for hosted pages, applied after every other setting, which may set the published `--hp-*` tokens and style the published `hp-*` classes, and is refused when it loads a file from anywhere (`@import`, `@font-face`, `url()`), selects on a field's `value` or does not parse. Returns `400` (`validation`) for a malformed value, and `403` (`plan_feature_unavailable`) when the request sets `custom_css`, `color_scheme`, `logo_dark_url`, a dark color, `layout`, `background_style`, a gradient color, a background or panel image, `panel_heading`, `panel_text`, a text in `text_overrides`, `header_html`, `notice_html`, `footer_html`, `text_color`, `surface_color`, `corner_radius`, `card_style`, `card_shadow`, `heading_font` or `body_font` and the Account's plan does not include hosted page customization; clearing one with `null` is always allowed. Emits `environment.branding_updated`, which records the fields that changed.
|
|
3013
3018
|
*/
|
|
3014
3019
|
patch: operations["ApiBrandingController_updateBranding"];
|
|
3015
3020
|
trace?: never;
|
|
@@ -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
|
|
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,
|
|
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 */
|
|
@@ -7239,6 +7284,15 @@ interface components {
|
|
|
7239
7284
|
header_html: string | null;
|
|
7240
7285
|
notice_html: string | null;
|
|
7241
7286
|
footer_html: string | null;
|
|
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;
|
|
7242
7296
|
/**
|
|
7243
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.
|
|
7244
7298
|
* @example {
|
|
@@ -7344,6 +7398,8 @@ interface components {
|
|
|
7344
7398
|
notice_html: string | null;
|
|
7345
7399
|
/** @description The content under the card, likewise. */
|
|
7346
7400
|
footer_html: string | null;
|
|
7401
|
+
/** @description The customer's own CSS as hosted pages wear it, or null for none. Null on a plan without hosted page customization, whatever is stored. */
|
|
7402
|
+
custom_css: string | null;
|
|
7347
7403
|
/** @description The wording the hosted pages show in place of their own, by locale and then by the text's key. Empty where none is set, and on a plan without hosted page customization. */
|
|
7348
7404
|
text_overrides: {
|
|
7349
7405
|
[key: string]: {
|
|
@@ -7353,14 +7409,38 @@ interface components {
|
|
|
7353
7409
|
/** @description Whether the attribution mark stays on hosted pages and the portal. False only on a plan with brand removal. */
|
|
7354
7410
|
attribution: boolean;
|
|
7355
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
|
+
};
|
|
7356
7424
|
EnvironmentBrandingResponseDto: {
|
|
7357
7425
|
environment_slug: string;
|
|
7358
7426
|
branding: components["schemas"]["StoredBrandingDto"];
|
|
7359
7427
|
effective: components["schemas"]["EffectiveBrandingDto"];
|
|
7360
7428
|
/** @description Whether the Account's plan removes the attribution mark. When false, the mark stays whatever the customer sets. */
|
|
7361
7429
|
brand_removal_available: boolean;
|
|
7362
|
-
/** @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. */
|
|
7363
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;
|
|
7364
7444
|
/** @description The Environment's optimistic-lock version; send it back as `If-Match` on PATCH. Any change to the Environment moves it. */
|
|
7365
7445
|
version: number;
|
|
7366
7446
|
};
|
|
@@ -7524,7 +7604,34 @@ interface components {
|
|
|
7524
7604
|
*/
|
|
7525
7605
|
footer_html?: string | null;
|
|
7526
7606
|
/**
|
|
7527
|
-
* @description Your own
|
|
7607
|
+
* @description Your own CSS for hosted pages, applied after the settings: where it styles what a setting styles, the CSS wins, and everything else follows the settings. It may set the published `--hp-*` tokens and style the published `hp-*` classes; `[data-page]` on `<body>` names the page and `[data-provider]` a social sign-in button's provider. Write the dark look as `@media (prefers-color-scheme: dark)`: it follows `color_scheme`, so it always applies under `dark`, never under `light`, and by the device under `system`. Refused, with the line of each problem: `@import`, `@font-face`, `url()` and every other function that loads a file (set images and fonts with the branding fields), a selector on a field's `value`, the `--_hp-*` custom properties, `</`, and CSS that does not parse. It does not reach emails or the organization admin portal. Null removes it. Needs the `hosted_page_customization` plan feature to set.
|
|
7608
|
+
* @example :root { --hp-field-height: 52px; }
|
|
7609
|
+
* [data-page="register"] .hp-card { padding: 40px; }
|
|
7610
|
+
*/
|
|
7611
|
+
custom_css?: string | null;
|
|
7612
|
+
/**
|
|
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.
|
|
7528
7635
|
* @example {
|
|
7529
7636
|
* "en": {
|
|
7530
7637
|
* "authHosted.login.signInHeading": "Sign in to Acme"
|
|
@@ -7589,12 +7696,12 @@ interface components {
|
|
|
7589
7696
|
*/
|
|
7590
7697
|
locale: string;
|
|
7591
7698
|
/**
|
|
7592
|
-
* @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.
|
|
7593
7700
|
* @example login
|
|
7594
7701
|
*/
|
|
7595
7702
|
page: string;
|
|
7596
7703
|
/**
|
|
7597
|
-
* @description That page's title.
|
|
7704
|
+
* @description That page's or email's title.
|
|
7598
7705
|
* @example Sign in
|
|
7599
7706
|
*/
|
|
7600
7707
|
page_title: string;
|
|
@@ -7660,6 +7767,12 @@ interface components {
|
|
|
7660
7767
|
* @enum {string}
|
|
7661
7768
|
*/
|
|
7662
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";
|
|
7663
7776
|
};
|
|
7664
7777
|
TokenClaimEntryResponseDto: {
|
|
7665
7778
|
/**
|
|
@@ -7820,6 +7933,11 @@ interface components {
|
|
|
7820
7933
|
email_otp_login_enabled?: boolean;
|
|
7821
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. */
|
|
7822
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;
|
|
7823
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`. */
|
|
7824
7942
|
self_signup_daily_cap?: number;
|
|
7825
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. */
|
|
@@ -7910,6 +8028,13 @@ interface components {
|
|
|
7910
8028
|
password_login_enabled?: boolean;
|
|
7911
8029
|
email_otp_login_enabled?: boolean;
|
|
7912
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"][];
|
|
7913
8038
|
self_signup_daily_cap?: number;
|
|
7914
8039
|
access_token_ttl_seconds?: number;
|
|
7915
8040
|
refresh_token_ttl_days?: number;
|
|
@@ -7987,6 +8112,11 @@ interface components {
|
|
|
7987
8112
|
email_otp_login_enabled?: boolean;
|
|
7988
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. */
|
|
7989
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;
|
|
7990
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`. */
|
|
7991
8121
|
self_signup_daily_cap?: number;
|
|
7992
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. */
|
|
@@ -8843,7 +8973,7 @@ interface components {
|
|
|
8843
8973
|
invite_redirect_url?: string | null;
|
|
8844
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. */
|
|
8845
8975
|
initiate_login_uri?: string | null;
|
|
8846
|
-
/** @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. */
|
|
8847
8977
|
branding?: components["schemas"]["UpdateEnvironmentBrandingDto"] | null;
|
|
8848
8978
|
};
|
|
8849
8979
|
ApiKeyCreatedResponseDto: {
|
|
@@ -12268,6 +12398,27 @@ interface operations {
|
|
|
12268
12398
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
12269
12399
|
};
|
|
12270
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
|
+
};
|
|
12271
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. */
|
|
12272
12423
|
422: {
|
|
12273
12424
|
headers: {
|
|
@@ -12289,6 +12440,27 @@ interface operations {
|
|
|
12289
12440
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
12290
12441
|
};
|
|
12291
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
|
+
};
|
|
12292
12464
|
};
|
|
12293
12465
|
};
|
|
12294
12466
|
ApiIdentitiesController_getIdentity: {
|
|
@@ -14782,6 +14954,27 @@ interface operations {
|
|
|
14782
14954
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14783
14955
|
};
|
|
14784
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
|
+
};
|
|
14785
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. */
|
|
14786
14979
|
422: {
|
|
14787
14980
|
headers: {
|
|
@@ -14803,6 +14996,27 @@ interface operations {
|
|
|
14803
14996
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14804
14997
|
};
|
|
14805
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
|
+
};
|
|
14806
15020
|
};
|
|
14807
15021
|
};
|
|
14808
15022
|
ApiIdentityInvitesController_resendInvite: {
|
|
@@ -31549,7 +31763,7 @@ interface operations {
|
|
|
31549
31763
|
};
|
|
31550
31764
|
};
|
|
31551
31765
|
};
|
|
31552
|
-
/** @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,
|
|
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`) */
|
|
31553
31767
|
400: {
|
|
31554
31768
|
headers: {
|
|
31555
31769
|
[name: string]: unknown;
|
|
@@ -31560,7 +31774,7 @@ interface operations {
|
|
|
31560
31774
|
* "error": {
|
|
31561
31775
|
* "statusCode": 400,
|
|
31562
31776
|
* "code": "request.invalid",
|
|
31563
|
-
* "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,
|
|
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`)",
|
|
31564
31778
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
31565
31779
|
* "path": "/api/v1/branding",
|
|
31566
31780
|
* "method": "PATCH"
|
|
@@ -33823,7 +34037,7 @@ interface operations {
|
|
|
33823
34037
|
};
|
|
33824
34038
|
};
|
|
33825
34039
|
};
|
|
33826
|
-
/** @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`) */
|
|
33827
34041
|
400: {
|
|
33828
34042
|
headers: {
|
|
33829
34043
|
[name: string]: unknown;
|
|
@@ -33834,7 +34048,7 @@ interface operations {
|
|
|
33834
34048
|
* "error": {
|
|
33835
34049
|
* "statusCode": 400,
|
|
33836
34050
|
* "code": "request.invalid",
|
|
33837
|
-
* "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`)",
|
|
33838
34052
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
33839
34053
|
* "path": "/api/v1/auth-settings",
|
|
33840
34054
|
* "method": "PATCH"
|
|
@@ -42134,7 +42348,7 @@ interface operations {
|
|
|
42134
42348
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
42135
42349
|
};
|
|
42136
42350
|
};
|
|
42137
|
-
/** @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 */
|
|
42138
42352
|
409: {
|
|
42139
42353
|
headers: {
|
|
42140
42354
|
[name: string]: unknown;
|
|
@@ -42145,7 +42359,7 @@ interface operations {
|
|
|
42145
42359
|
* "error": {
|
|
42146
42360
|
* "statusCode": 409,
|
|
42147
42361
|
* "code": "request.conflict",
|
|
42148
|
-
* "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",
|
|
42149
42363
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
42150
42364
|
* "path": "/api/v1/oauth-clients",
|
|
42151
42365
|
* "method": "POST"
|
|
@@ -42176,6 +42390,27 @@ interface operations {
|
|
|
42176
42390
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
42177
42391
|
};
|
|
42178
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
|
+
};
|
|
42179
42414
|
};
|
|
42180
42415
|
};
|
|
42181
42416
|
ApiOAuthClientsController_summary: {
|
|
@@ -42520,7 +42755,7 @@ interface operations {
|
|
|
42520
42755
|
};
|
|
42521
42756
|
};
|
|
42522
42757
|
};
|
|
42523
|
-
/** @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 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`) */
|
|
42524
42759
|
400: {
|
|
42525
42760
|
headers: {
|
|
42526
42761
|
[name: string]: unknown;
|
|
@@ -42531,7 +42766,7 @@ interface operations {
|
|
|
42531
42766
|
* "error": {
|
|
42532
42767
|
* "statusCode": 400,
|
|
42533
42768
|
* "code": "request.invalid",
|
|
42534
|
-
* "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 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`)",
|
|
42535
42770
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
42536
42771
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
42537
42772
|
* "method": "PATCH"
|
|
@@ -42562,7 +42797,7 @@ interface operations {
|
|
|
42562
42797
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
42563
42798
|
};
|
|
42564
42799
|
};
|
|
42565
|
-
/** @description The
|
|
42800
|
+
/** @description The caller lacks `oauth_clients.manage`, or the request sets a `branding` value and the Account's plan does not include hosted page customization (`plan_feature_unavailable`) */
|
|
42566
42801
|
403: {
|
|
42567
42802
|
headers: {
|
|
42568
42803
|
[name: string]: unknown;
|
|
@@ -42573,10 +42808,10 @@ interface operations {
|
|
|
42573
42808
|
* "error": {
|
|
42574
42809
|
* "statusCode": 403,
|
|
42575
42810
|
* "code": "auth.forbidden",
|
|
42576
|
-
* "message": "The
|
|
42811
|
+
* "message": "The caller lacks `oauth_clients.manage`, or the request sets a `branding` value and the Account's plan does not include hosted page customization (`plan_feature_unavailable`)",
|
|
42577
42812
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
42578
|
-
* "path": "/api/v1/oauth-clients",
|
|
42579
|
-
* "method": "
|
|
42813
|
+
* "path": "/api/v1/oauth-clients/{id}",
|
|
42814
|
+
* "method": "PATCH"
|
|
42580
42815
|
* }
|
|
42581
42816
|
* }
|
|
42582
42817
|
*/
|
|
@@ -42999,7 +43234,7 @@ interface operations {
|
|
|
42999
43234
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
43000
43235
|
};
|
|
43001
43236
|
};
|
|
43002
|
-
/** @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 */
|
|
43003
43238
|
409: {
|
|
43004
43239
|
headers: {
|
|
43005
43240
|
[name: string]: unknown;
|
|
@@ -43010,7 +43245,7 @@ interface operations {
|
|
|
43010
43245
|
* "error": {
|
|
43011
43246
|
* "statusCode": 409,
|
|
43012
43247
|
* "code": "request.conflict",
|
|
43013
|
-
* "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",
|
|
43014
43249
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
43015
43250
|
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
43016
43251
|
* "method": "POST"
|
|
@@ -43041,6 +43276,27 @@ interface operations {
|
|
|
43041
43276
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
43042
43277
|
};
|
|
43043
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
|
+
};
|
|
43044
43300
|
};
|
|
43045
43301
|
};
|
|
43046
43302
|
ApiOAuthClientsController_removeAssignment: {
|
|
@@ -43624,7 +43880,7 @@ interface operations {
|
|
|
43624
43880
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
43625
43881
|
};
|
|
43626
43882
|
};
|
|
43627
|
-
/** @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 */
|
|
43628
43884
|
409: {
|
|
43629
43885
|
headers: {
|
|
43630
43886
|
[name: string]: unknown;
|
|
@@ -43635,7 +43891,7 @@ interface operations {
|
|
|
43635
43891
|
* "error": {
|
|
43636
43892
|
* "statusCode": 409,
|
|
43637
43893
|
* "code": "request.conflict",
|
|
43638
|
-
* "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",
|
|
43639
43895
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
43640
43896
|
* "path": "/api/v1/api-keys",
|
|
43641
43897
|
* "method": "POST"
|
|
@@ -43687,6 +43943,27 @@ interface operations {
|
|
|
43687
43943
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
43688
43944
|
};
|
|
43689
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
|
+
};
|
|
43690
43967
|
};
|
|
43691
43968
|
};
|
|
43692
43969
|
ApiApiKeysController_delete: {
|