@canopy-io/node 0.26.0 → 0.26.2
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 +12 -0
- package/dist/index.d.cts +87 -38
- package/dist/index.d.ts +87 -38
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @canopy-io/node
|
|
2
2
|
|
|
3
|
+
## 0.26.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 658e24d: Follows Canopy's release that splits the Console's Authentication page and lets a directory refuse clearing its roles. The generated types add `environment_grantable_roles_set` to an organization's directory (whether the Environment sets a list the organization falls back to; without one, clearing the organization's list while its directory is connected is refused), add `sample` to each branding preview state and `client_id` to the preview, and say that the single-client OAuth routes take the client's `client_id` in their path.
|
|
8
|
+
|
|
9
|
+
## 0.26.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 00db823: Follows Canopy's release that lets each Environment choose the languages its hosted pages and emails are offered in, and adds ten languages. The generated types add `languages` to the sign-in settings and their change (a new Environment offers its default language alone until a list is saved), widen the branding preview's `language` to the twelve languages, and name the refusals `environment.languages_invalid`, `environment.default_language_invalid` and `environment.default_language_not_offered`.
|
|
14
|
+
|
|
3
15
|
## 0.26.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.cts
CHANGED
|
@@ -3048,7 +3048,7 @@ interface paths {
|
|
|
3048
3048
|
};
|
|
3049
3049
|
/**
|
|
3050
3050
|
* List the hosted pages and emails a preview can render
|
|
3051
|
-
* @description Lists every hosted page and every customer email the branding preview can render, in the order to show them: each with its `id`, its `kind` (`page` or `email`), the `group` it sits in, its `title`, and its states. An email has one state, `default`. Returns `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
|
|
3051
|
+
* @description Lists every hosted page and every customer email the branding preview can render, in the order to show them: each with its `id`, its `kind` (`page` or `email`), the `group` it sits in, its `title`, and its states. Each state has an `id`, a `label` and `sample`: `false` for `YourPage`, the first state of the sign-in and sign-up pages, which shows the page as the Environment serves it, with the sign-in methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients, or to the one `client_id` names, and `true` for every other state, which shows sample data, the same in every Environment. An email has one state, `default`. Returns `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
|
|
3052
3052
|
*/
|
|
3053
3053
|
get: operations["ApiBrandingController_getPreviewPages"];
|
|
3054
3054
|
put?: never;
|
|
@@ -3110,7 +3110,7 @@ interface paths {
|
|
|
3110
3110
|
put?: never;
|
|
3111
3111
|
/**
|
|
3112
3112
|
* Preview a hosted page or email in a branding
|
|
3113
|
-
* @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
|
|
3113
|
+
* @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 sign-in and sign-up pages open on `YourPage`, which shows the page as the Environment serves it, with the sign-in methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients, or to the one `client_id` names; every other state shows sample data, the same in every Environment. `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, `validation` for a malformed branding value, or `branding.image_not_uploaded` for an image field that holds anything but an uploaded image, 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.
|
|
3114
3114
|
*/
|
|
3115
3115
|
post: operations["ApiBrandingController_preview"];
|
|
3116
3116
|
delete?: never;
|
|
@@ -3130,7 +3130,7 @@ interface paths {
|
|
|
3130
3130
|
put?: never;
|
|
3131
3131
|
/**
|
|
3132
3132
|
* Make a link that opens a hosted page in a branding
|
|
3133
|
-
* @description Makes a link that opens one hosted page, in one of its states, in the Environment's branding with the unsaved changes in `branding` laid over it, so a person can see a look in their own browser before it is saved. Takes what the preview takes; `page` must be a hosted page, not an email. Nothing is saved
|
|
3133
|
+
* @description Makes a link that opens one hosted page, in one of its states, in the Environment's branding with the unsaved changes in `branding` laid over it, so a person can see a look in their own browser before it is saved. Takes what the preview takes; `page` must be a hosted page, not an email. Nothing is saved. The sign-in and sign-up pages open on `YourPage`, which shows the page as the Environment serves it, with the sign-in methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients, or to the one `client_id` names; every other state shows sample data, the same in every Environment. The link opens for two minutes, on the API's own origin; open it in a browser rather than reading it, and make a new one once it has expired. The page runs with `sandbox allow-scripts` and `form-action 'none'`, so its forms submit nowhere and a page template's scripts reach no cookie or storage. Returns `400` (`branding.preview_link_page_unknown`) for a page or state that is not a hosted page's, `validation` for a malformed branding value, or `branding.image_not_uploaded` for an image field that holds anything but an uploaded image, and `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
|
|
3134
3134
|
*/
|
|
3135
3135
|
post: operations["ApiBrandingController_previewLink"];
|
|
3136
3136
|
delete?: never;
|
|
@@ -3346,7 +3346,7 @@ interface paths {
|
|
|
3346
3346
|
head?: never;
|
|
3347
3347
|
/**
|
|
3348
3348
|
* Change an Environment's sign-in settings
|
|
3349
|
-
* @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.
|
|
3349
|
+
* @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`, `languages`, `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.
|
|
3350
3350
|
*/
|
|
3351
3351
|
patch: operations["ApiAuthSettingsController_update"];
|
|
3352
3352
|
trace?: never;
|
|
@@ -4444,21 +4444,21 @@ interface paths {
|
|
|
4444
4444
|
};
|
|
4445
4445
|
/**
|
|
4446
4446
|
* Get OAuth client details
|
|
4447
|
-
* @description Returns a single OAuth client
|
|
4447
|
+
* @description Returns a single OAuth client of the current Environment. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. A client that exists in a sibling Environment reads as `404` too. The `client_secret` is never included.
|
|
4448
4448
|
*/
|
|
4449
4449
|
get: operations["ApiOAuthClientsController_get"];
|
|
4450
4450
|
put?: never;
|
|
4451
4451
|
post?: never;
|
|
4452
4452
|
/**
|
|
4453
4453
|
* Delete OAuth client
|
|
4454
|
-
* @description Deletes an OAuth client from the current Environment
|
|
4454
|
+
* @description Deletes an OAuth client from the current Environment. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. Responds `204 No Content` on success, or `404` when the client is not found in this Environment.
|
|
4455
4455
|
*/
|
|
4456
4456
|
delete: operations["ApiOAuthClientsController_remove"];
|
|
4457
4457
|
options?: never;
|
|
4458
4458
|
head?: never;
|
|
4459
4459
|
/**
|
|
4460
4460
|
* Update OAuth client
|
|
4461
|
-
* @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.
|
|
4461
|
+
* @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. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. 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.
|
|
4462
4462
|
*/
|
|
4463
4463
|
patch: operations["ApiOAuthClientsController_update"];
|
|
4464
4464
|
trace?: never;
|
|
@@ -4474,7 +4474,7 @@ interface paths {
|
|
|
4474
4474
|
put?: never;
|
|
4475
4475
|
/**
|
|
4476
4476
|
* Rotate an OAuth client's secret
|
|
4477
|
-
* @description Rotates the OAuth client's `client_secret`, generating and hashing a new secret. The replaced secret keeps working for 24 hours (`previous_secret_expires_at` says until when) so the systems using it can move over; send `expire_previous: "now"` to stop it at once, for a secret that has leaked. Rotating again inside the overlap replaces the secret still in its overlap. The new raw secret is returned in this response only and cannot be retrieved again. Returns `404` when the client is not found in the current Environment, and `409` (`oauth.client_public_has_no_secret`) for a public client, which has no secret.
|
|
4477
|
+
* @description Rotates the OAuth client's `client_secret`, generating and hashing a new secret. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. The replaced secret keeps working for 24 hours (`previous_secret_expires_at` says until when) so the systems using it can move over; send `expire_previous: "now"` to stop it at once, for a secret that has leaked. Rotating again inside the overlap replaces the secret still in its overlap. The new raw secret is returned in this response only and cannot be retrieved again. Returns `404` when the client is not found in the current Environment, and `409` (`oauth.client_public_has_no_secret`) for a public client, which has no secret.
|
|
4478
4478
|
*/
|
|
4479
4479
|
post: operations["ApiOAuthClientsController_rotateSecret"];
|
|
4480
4480
|
delete?: never;
|
|
@@ -6528,6 +6528,8 @@ interface components {
|
|
|
6528
6528
|
* @enum {string}
|
|
6529
6529
|
*/
|
|
6530
6530
|
grantable_roles_source: "organization" | "environment" | "none";
|
|
6531
|
+
/** @description Whether the Environment sets a list of its own, which the organization falls back to when its own list is removed. When false, removing the list leaves no role people arrive with, which a connected directory refuses. */
|
|
6532
|
+
environment_grantable_roles_set: boolean;
|
|
6531
6533
|
};
|
|
6532
6534
|
ScimTokenResponseDto: {
|
|
6533
6535
|
id: string;
|
|
@@ -7474,7 +7476,7 @@ interface components {
|
|
|
7474
7476
|
* @example auth.acme.example
|
|
7475
7477
|
*/
|
|
7476
7478
|
page_template_domain: string | null;
|
|
7477
|
-
/** @description
|
|
7479
|
+
/** @description The languages this Environment offers, in the order they are listed. `text_overrides` may reword the texts in each, and a preview may be asked for in any of them. */
|
|
7478
7480
|
languages: components["schemas"]["AvailableLanguageDto"][];
|
|
7479
7481
|
/**
|
|
7480
7482
|
* @description The language a page is shown in when nothing asks for another, one of `languages`.
|
|
@@ -7738,6 +7740,11 @@ interface components {
|
|
|
7738
7740
|
id: string;
|
|
7739
7741
|
/** @example Wrong password */
|
|
7740
7742
|
label: string;
|
|
7743
|
+
/**
|
|
7744
|
+
* @description `false` for `YourPage`, the state of the sign-in and sign-up pages that is drawn from the Environment's own sign-in settings: the methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients. `true` for every other state, which is drawn from sample data and shows the same thing in every Environment.
|
|
7745
|
+
* @example true
|
|
7746
|
+
*/
|
|
7747
|
+
sample: boolean;
|
|
7741
7748
|
};
|
|
7742
7749
|
BrandingPreviewPageDto: {
|
|
7743
7750
|
/** @example login */
|
|
@@ -7845,7 +7852,7 @@ interface components {
|
|
|
7845
7852
|
*/
|
|
7846
7853
|
page: string;
|
|
7847
7854
|
/**
|
|
7848
|
-
* @description One of that page's states, by the `id` the preview list returns. An email has a single state, `default`.
|
|
7855
|
+
* @description One of that page's states, by the `id` the preview list returns. `YourPage`, on the sign-in and sign-up pages, shows the page as the Environment serves it; every other state shows sample data. An email has a single state, `default`.
|
|
7849
7856
|
* @example WrongPassword
|
|
7850
7857
|
*/
|
|
7851
7858
|
state: string;
|
|
@@ -7861,7 +7868,9 @@ interface components {
|
|
|
7861
7868
|
* @example es
|
|
7862
7869
|
* @enum {string}
|
|
7863
7870
|
*/
|
|
7864
|
-
language?: "en" | "es";
|
|
7871
|
+
language?: "en" | "es" | "fr" | "de" | "pt-br" | "it" | "nl" | "ja" | "ko" | "zh-hans" | "ar" | "he";
|
|
7872
|
+
/** @description The app (OAuth client) to draw the state `YourPage` for, by its `client_id`. Hosted sign-in offers single sign-on per app, so with it the page offers single sign-on only when a connection is linked to that app; left out, when one is linked to any app of the Environment. A `client_id` that is not an active app of the Environment offers none. Every other state ignores it. */
|
|
7873
|
+
client_id?: string;
|
|
7865
7874
|
};
|
|
7866
7875
|
BrandingPreviewLinkResponseDto: {
|
|
7867
7876
|
/**
|
|
@@ -8040,7 +8049,16 @@ interface components {
|
|
|
8040
8049
|
/** @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. */
|
|
8041
8050
|
passkey_login_enabled?: boolean;
|
|
8042
8051
|
/**
|
|
8043
|
-
* @description The
|
|
8052
|
+
* @description The languages this Environment offers on the hosted pages and in the emails it sends, as language tags. Each must be one of `available_languages` in the response, and the list must hold `default_language`. An Environment that has never saved a list offers `default_language` alone, and a new `default_language` sent without `languages` replaces it. A page or email is only ever written in an offered language.
|
|
8053
|
+
* @example [
|
|
8054
|
+
* "en",
|
|
8055
|
+
* "es",
|
|
8056
|
+
* "fr"
|
|
8057
|
+
* ]
|
|
8058
|
+
*/
|
|
8059
|
+
languages?: string[];
|
|
8060
|
+
/**
|
|
8061
|
+
* @description The language a page or email is written in when nothing names one the Environment offers: no `ui_locales`, no stored language for the person, and no match in the browser's languages. Must be one of `languages`. Unset, `en`.
|
|
8044
8062
|
* @example en
|
|
8045
8063
|
*/
|
|
8046
8064
|
default_language?: string;
|
|
@@ -8069,7 +8087,7 @@ interface components {
|
|
|
8069
8087
|
hierarchy_schema: {
|
|
8070
8088
|
[key: string]: unknown;
|
|
8071
8089
|
} | null;
|
|
8072
|
-
/** @description The sign-in policy: MFA, sign-in methods, CAPTCHA, self-signup, token lifetimes and organization signup. Settings that name one deployment or the source's roles are left out. */
|
|
8090
|
+
/** @description The sign-in policy: MFA, sign-in methods, CAPTCHA, self-signup, languages, token lifetimes and organization signup. Settings that name one deployment or the source's roles are left out. */
|
|
8073
8091
|
auth_settings: components["schemas"]["EnvironmentExportAuthSettingsDto"];
|
|
8074
8092
|
/** @description The custom claims the Environment adds to its tokens */
|
|
8075
8093
|
token_claims: components["schemas"]["TokenClaimEntryResponseDto"][];
|
|
@@ -8135,11 +8153,20 @@ interface components {
|
|
|
8135
8153
|
email_otp_login_enabled?: boolean;
|
|
8136
8154
|
passkey_login_enabled?: boolean;
|
|
8137
8155
|
/**
|
|
8138
|
-
* @description The
|
|
8156
|
+
* @description The languages this Environment offers on the hosted pages and in its emails, in the order of `available_languages`. Only `default_language` when the Environment has not chosen.
|
|
8157
|
+
* @example [
|
|
8158
|
+
* "en",
|
|
8159
|
+
* "es",
|
|
8160
|
+
* "fr"
|
|
8161
|
+
* ]
|
|
8162
|
+
*/
|
|
8163
|
+
languages: string[];
|
|
8164
|
+
/**
|
|
8165
|
+
* @description The language a page or email is written in when nothing names one the Environment offers. Always one of `languages`.
|
|
8139
8166
|
* @example en
|
|
8140
8167
|
*/
|
|
8141
8168
|
default_language: string;
|
|
8142
|
-
/** @description Every language the hosted pages and emails are written in
|
|
8169
|
+
/** @description Every language the hosted pages and emails are written in, which is what `languages` may hold. A page or email follows `ui_locales`, then the person's stored language, then the browser's, then `default_language`, taking only a language in `languages`. */
|
|
8143
8170
|
available_languages: components["schemas"]["AvailableLanguageDto"][];
|
|
8144
8171
|
self_signup_daily_cap?: number;
|
|
8145
8172
|
access_token_ttl_seconds?: number;
|
|
@@ -8219,7 +8246,16 @@ interface components {
|
|
|
8219
8246
|
/** @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. */
|
|
8220
8247
|
passkey_login_enabled?: boolean;
|
|
8221
8248
|
/**
|
|
8222
|
-
* @description The
|
|
8249
|
+
* @description The languages this Environment offers on the hosted pages and in the emails it sends, as language tags. Each must be one of `available_languages` in the response, and the list must hold `default_language`. An Environment that has never saved a list offers `default_language` alone, and a new `default_language` sent without `languages` replaces it. A page or email is only ever written in an offered language.
|
|
8250
|
+
* @example [
|
|
8251
|
+
* "en",
|
|
8252
|
+
* "es",
|
|
8253
|
+
* "fr"
|
|
8254
|
+
* ]
|
|
8255
|
+
*/
|
|
8256
|
+
languages?: string[];
|
|
8257
|
+
/**
|
|
8258
|
+
* @description The language a page or email is written in when nothing names one the Environment offers: no `ui_locales`, no stored language for the person, and no match in the browser's languages. Must be one of `languages`. Unset, `en`.
|
|
8223
8259
|
* @example en
|
|
8224
8260
|
*/
|
|
8225
8261
|
default_language?: string;
|
|
@@ -8876,7 +8912,9 @@ interface components {
|
|
|
8876
8912
|
expire_previous?: "now" | "window";
|
|
8877
8913
|
};
|
|
8878
8914
|
OAuthClientCreatedResponseDto: {
|
|
8915
|
+
/** @description The client record's id. No route takes it in its path: the single-client routes take `client_id`. */
|
|
8879
8916
|
id: string;
|
|
8917
|
+
/** @description The client's public identifier: the `client_id` of the OAuth flows, and the value the single-client routes (`/oauth-clients/{id}`) take in their path. */
|
|
8880
8918
|
client_id: string;
|
|
8881
8919
|
name: string;
|
|
8882
8920
|
/**
|
|
@@ -8984,7 +9022,9 @@ interface components {
|
|
|
8984
9022
|
initiate_login_uri?: string;
|
|
8985
9023
|
};
|
|
8986
9024
|
OAuthClientResponseDto: {
|
|
9025
|
+
/** @description The client record's id. No route takes it in its path: the single-client routes take `client_id`. */
|
|
8987
9026
|
id: string;
|
|
9027
|
+
/** @description The client's public identifier: the `client_id` of the OAuth flows, and the value the single-client routes (`/oauth-clients/{id}`) take in their path. */
|
|
8988
9028
|
client_id: string;
|
|
8989
9029
|
name: string;
|
|
8990
9030
|
/**
|
|
@@ -35001,7 +35041,7 @@ interface operations {
|
|
|
35001
35041
|
};
|
|
35002
35042
|
};
|
|
35003
35043
|
};
|
|
35004
|
-
/** @description The request failed validation, or the payload cannot be applied: an unsupported `format_version`, an organizations setting that differs from the target Environment's, nested nodes in an Environment with organizations, not exactly one root node, a role or role template naming a permission key the payload lacks, orphaned or cyclic `parent_ref` chains, or duplicate keys. Its role templates must also be importable: a template named like one of the payload's roles (`role_template.name_taken`), more than one default admin or default member (`environment.import_duplicate_role_template_default`), a default admin without `canopy:organization.manage` (`role_template.admin_requires_organization_manage`), or no default admin while the target creates organizations at sign-up (`role_template.default_admin_required`); 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`) */
|
|
35044
|
+
/** @description The request failed validation, or the payload cannot be applied: an unsupported `format_version`, an organizations setting that differs from the target Environment's, nested nodes in an Environment with organizations, not exactly one root node, a role or role template naming a permission key the payload lacks, orphaned or cyclic `parent_ref` chains, or duplicate keys. Its role templates must also be importable: a template named like one of the payload's roles (`role_template.name_taken`), more than one default admin or default member (`environment.import_duplicate_role_template_default`), a default admin without `canopy:organization.manage` (`role_template.admin_requires_organization_manage`), or no default admin while the target creates organizations at sign-up (`role_template.default_admin_required`). Its languages are checked as a save on the auth settings is: a default with no catalogue (`environment.default_language_invalid`), a list naming a language twice or one with no catalogue (`environment.languages_invalid`), or a default the list leaves out (`environment.default_language_not_offered`); 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`) */
|
|
35005
35045
|
400: {
|
|
35006
35046
|
headers: {
|
|
35007
35047
|
[name: string]: unknown;
|
|
@@ -35012,7 +35052,7 @@ interface operations {
|
|
|
35012
35052
|
* "error": {
|
|
35013
35053
|
* "statusCode": 400,
|
|
35014
35054
|
* "code": "request.invalid",
|
|
35015
|
-
* "message": "The request failed validation, or the payload cannot be applied: an unsupported `format_version`, an organizations setting that differs from the target Environment's, nested nodes in an Environment with organizations, not exactly one root node, a role or role template naming a permission key the payload lacks, orphaned or cyclic `parent_ref` chains, or duplicate keys. Its role templates must also be importable: a template named like one of the payload's roles (`role_template.name_taken`), more than one default admin or default member (`environment.import_duplicate_role_template_default`), a default admin without `canopy:organization.manage` (`role_template.admin_requires_organization_manage`), or no default admin while the target creates organizations at sign-up (`role_template.default_admin_required`); 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`)",
|
|
35055
|
+
* "message": "The request failed validation, or the payload cannot be applied: an unsupported `format_version`, an organizations setting that differs from the target Environment's, nested nodes in an Environment with organizations, not exactly one root node, a role or role template naming a permission key the payload lacks, orphaned or cyclic `parent_ref` chains, or duplicate keys. Its role templates must also be importable: a template named like one of the payload's roles (`role_template.name_taken`), more than one default admin or default member (`environment.import_duplicate_role_template_default`), a default admin without `canopy:organization.manage` (`role_template.admin_requires_organization_manage`), or no default admin while the target creates organizations at sign-up (`role_template.default_admin_required`). Its languages are checked as a save on the auth settings is: a default with no catalogue (`environment.default_language_invalid`), a list naming a language twice or one with no catalogue (`environment.languages_invalid`), or a default the list leaves out (`environment.default_language_not_offered`); 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`)",
|
|
35016
35056
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
35017
35057
|
* "path": "/api/v1/environments/{id}/import",
|
|
35018
35058
|
* "method": "POST"
|
|
@@ -35267,7 +35307,7 @@ interface operations {
|
|
|
35267
35307
|
};
|
|
35268
35308
|
};
|
|
35269
35309
|
};
|
|
35270
|
-
/** @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`) */
|
|
35310
|
+
/** @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`), `languages` is empty, names a language twice or names one outside `available_languages` (`environment.languages_invalid`), or `default_language` is not one of `languages` (`environment.default_language_not_offered`); or its `If-Match` header names no version (`if_match.invalid`) */
|
|
35271
35311
|
400: {
|
|
35272
35312
|
headers: {
|
|
35273
35313
|
[name: string]: unknown;
|
|
@@ -35278,7 +35318,7 @@ interface operations {
|
|
|
35278
35318
|
* "error": {
|
|
35279
35319
|
* "statusCode": 400,
|
|
35280
35320
|
* "code": "request.invalid",
|
|
35281
|
-
* "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`)",
|
|
35321
|
+
* "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`), `languages` is empty, names a language twice or names one outside `available_languages` (`environment.languages_invalid`), or `default_language` is not one of `languages` (`environment.default_language_not_offered`); or its `If-Match` header names no version (`if_match.invalid`)",
|
|
35282
35322
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
35283
35323
|
* "path": "/api/v1/auth-settings",
|
|
35284
35324
|
* "method": "PATCH"
|
|
@@ -44189,6 +44229,7 @@ interface operations {
|
|
|
44189
44229
|
"X-Canopy-Environment"?: string;
|
|
44190
44230
|
};
|
|
44191
44231
|
path: {
|
|
44232
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44192
44233
|
id: string;
|
|
44193
44234
|
};
|
|
44194
44235
|
cookie?: never;
|
|
@@ -44269,7 +44310,7 @@ interface operations {
|
|
|
44269
44310
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44270
44311
|
};
|
|
44271
44312
|
};
|
|
44272
|
-
/** @description No OAuth client with that
|
|
44313
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44273
44314
|
404: {
|
|
44274
44315
|
headers: {
|
|
44275
44316
|
[name: string]: unknown;
|
|
@@ -44280,7 +44321,7 @@ interface operations {
|
|
|
44280
44321
|
* "error": {
|
|
44281
44322
|
* "statusCode": 404,
|
|
44282
44323
|
* "code": "request.not_found",
|
|
44283
|
-
* "message": "No OAuth client with that
|
|
44324
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44284
44325
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44285
44326
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
44286
44327
|
* "method": "GET"
|
|
@@ -44300,6 +44341,7 @@ interface operations {
|
|
|
44300
44341
|
"X-Canopy-Environment"?: string;
|
|
44301
44342
|
};
|
|
44302
44343
|
path: {
|
|
44344
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44303
44345
|
id: string;
|
|
44304
44346
|
};
|
|
44305
44347
|
cookie?: never;
|
|
@@ -44376,7 +44418,7 @@ interface operations {
|
|
|
44376
44418
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44377
44419
|
};
|
|
44378
44420
|
};
|
|
44379
|
-
/** @description No OAuth client with that
|
|
44421
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44380
44422
|
404: {
|
|
44381
44423
|
headers: {
|
|
44382
44424
|
[name: string]: unknown;
|
|
@@ -44387,7 +44429,7 @@ interface operations {
|
|
|
44387
44429
|
* "error": {
|
|
44388
44430
|
* "statusCode": 404,
|
|
44389
44431
|
* "code": "request.not_found",
|
|
44390
|
-
* "message": "No OAuth client with that
|
|
44432
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44391
44433
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44392
44434
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
44393
44435
|
* "method": "DELETE"
|
|
@@ -44409,6 +44451,7 @@ interface operations {
|
|
|
44409
44451
|
"X-Canopy-Environment"?: string;
|
|
44410
44452
|
};
|
|
44411
44453
|
path: {
|
|
44454
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44412
44455
|
id: string;
|
|
44413
44456
|
};
|
|
44414
44457
|
cookie?: never;
|
|
@@ -44493,7 +44536,7 @@ interface operations {
|
|
|
44493
44536
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44494
44537
|
};
|
|
44495
44538
|
};
|
|
44496
|
-
/** @description No OAuth client with that
|
|
44539
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44497
44540
|
404: {
|
|
44498
44541
|
headers: {
|
|
44499
44542
|
[name: string]: unknown;
|
|
@@ -44504,7 +44547,7 @@ interface operations {
|
|
|
44504
44547
|
* "error": {
|
|
44505
44548
|
* "statusCode": 404,
|
|
44506
44549
|
* "code": "request.not_found",
|
|
44507
|
-
* "message": "No OAuth client with that
|
|
44550
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44508
44551
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44509
44552
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
44510
44553
|
* "method": "PATCH"
|
|
@@ -44550,6 +44593,7 @@ interface operations {
|
|
|
44550
44593
|
"X-Canopy-Environment"?: string;
|
|
44551
44594
|
};
|
|
44552
44595
|
path: {
|
|
44596
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44553
44597
|
id: string;
|
|
44554
44598
|
};
|
|
44555
44599
|
cookie?: never;
|
|
@@ -44634,7 +44678,7 @@ interface operations {
|
|
|
44634
44678
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44635
44679
|
};
|
|
44636
44680
|
};
|
|
44637
|
-
/** @description No OAuth client with that
|
|
44681
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44638
44682
|
404: {
|
|
44639
44683
|
headers: {
|
|
44640
44684
|
[name: string]: unknown;
|
|
@@ -44645,7 +44689,7 @@ interface operations {
|
|
|
44645
44689
|
* "error": {
|
|
44646
44690
|
* "statusCode": 404,
|
|
44647
44691
|
* "code": "request.not_found",
|
|
44648
|
-
* "message": "No OAuth client with that
|
|
44692
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44649
44693
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44650
44694
|
* "path": "/api/v1/oauth-clients/{id}/rotate-secret",
|
|
44651
44695
|
* "method": "POST"
|
|
@@ -44739,6 +44783,7 @@ interface operations {
|
|
|
44739
44783
|
"X-Canopy-Environment"?: string;
|
|
44740
44784
|
};
|
|
44741
44785
|
path: {
|
|
44786
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44742
44787
|
id: string;
|
|
44743
44788
|
};
|
|
44744
44789
|
cookie?: never;
|
|
@@ -44820,7 +44865,7 @@ interface operations {
|
|
|
44820
44865
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44821
44866
|
};
|
|
44822
44867
|
};
|
|
44823
|
-
/** @description No OAuth client with that
|
|
44868
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44824
44869
|
404: {
|
|
44825
44870
|
headers: {
|
|
44826
44871
|
[name: string]: unknown;
|
|
@@ -44831,7 +44876,7 @@ interface operations {
|
|
|
44831
44876
|
* "error": {
|
|
44832
44877
|
* "statusCode": 404,
|
|
44833
44878
|
* "code": "request.not_found",
|
|
44834
|
-
* "message": "No OAuth client with that
|
|
44879
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44835
44880
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44836
44881
|
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
44837
44882
|
* "method": "GET"
|
|
@@ -44856,6 +44901,7 @@ interface operations {
|
|
|
44856
44901
|
"X-Canopy-Environment"?: string;
|
|
44857
44902
|
};
|
|
44858
44903
|
path: {
|
|
44904
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44859
44905
|
id: string;
|
|
44860
44906
|
};
|
|
44861
44907
|
cookie?: never;
|
|
@@ -44940,7 +44986,7 @@ interface operations {
|
|
|
44940
44986
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44941
44987
|
};
|
|
44942
44988
|
};
|
|
44943
|
-
/** @description No OAuth client with that
|
|
44989
|
+
/** @description No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
44944
44990
|
404: {
|
|
44945
44991
|
headers: {
|
|
44946
44992
|
[name: string]: unknown;
|
|
@@ -44951,7 +44997,7 @@ interface operations {
|
|
|
44951
44997
|
* "error": {
|
|
44952
44998
|
* "statusCode": 404,
|
|
44953
44999
|
* "code": "request.not_found",
|
|
44954
|
-
* "message": "No OAuth client with that
|
|
45000
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
44955
45001
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44956
45002
|
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
44957
45003
|
* "method": "POST"
|
|
@@ -45034,6 +45080,7 @@ interface operations {
|
|
|
45034
45080
|
"X-Canopy-Environment"?: string;
|
|
45035
45081
|
};
|
|
45036
45082
|
path: {
|
|
45083
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
45037
45084
|
id: string;
|
|
45038
45085
|
assignmentId: string;
|
|
45039
45086
|
};
|
|
@@ -45111,7 +45158,7 @@ interface operations {
|
|
|
45111
45158
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
45112
45159
|
};
|
|
45113
45160
|
};
|
|
45114
|
-
/** @description No OAuth client with that
|
|
45161
|
+
/** @description No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
45115
45162
|
404: {
|
|
45116
45163
|
headers: {
|
|
45117
45164
|
[name: string]: unknown;
|
|
@@ -45122,7 +45169,7 @@ interface operations {
|
|
|
45122
45169
|
* "error": {
|
|
45123
45170
|
* "statusCode": 404,
|
|
45124
45171
|
* "code": "request.not_found",
|
|
45125
|
-
* "message": "No OAuth client with that
|
|
45172
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
45126
45173
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
45127
45174
|
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
45128
45175
|
* "method": "DELETE"
|
|
@@ -45165,6 +45212,7 @@ interface operations {
|
|
|
45165
45212
|
"X-Canopy-Environment"?: string;
|
|
45166
45213
|
};
|
|
45167
45214
|
path: {
|
|
45215
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
45168
45216
|
id: string;
|
|
45169
45217
|
assignmentId: string;
|
|
45170
45218
|
};
|
|
@@ -45250,7 +45298,7 @@ interface operations {
|
|
|
45250
45298
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
45251
45299
|
};
|
|
45252
45300
|
};
|
|
45253
|
-
/** @description No OAuth client with that
|
|
45301
|
+
/** @description No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
45254
45302
|
404: {
|
|
45255
45303
|
headers: {
|
|
45256
45304
|
[name: string]: unknown;
|
|
@@ -45261,7 +45309,7 @@ interface operations {
|
|
|
45261
45309
|
* "error": {
|
|
45262
45310
|
* "statusCode": 404,
|
|
45263
45311
|
* "code": "request.not_found",
|
|
45264
|
-
* "message": "No OAuth client with that
|
|
45312
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
45265
45313
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
45266
45314
|
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
45267
45315
|
* "method": "PATCH"
|
|
@@ -45311,6 +45359,7 @@ interface operations {
|
|
|
45311
45359
|
"X-Canopy-Environment"?: string;
|
|
45312
45360
|
};
|
|
45313
45361
|
path: {
|
|
45362
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
45314
45363
|
id: string;
|
|
45315
45364
|
};
|
|
45316
45365
|
cookie?: never;
|
|
@@ -45403,7 +45452,7 @@ interface operations {
|
|
|
45403
45452
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
45404
45453
|
};
|
|
45405
45454
|
};
|
|
45406
|
-
/** @description No OAuth client with that
|
|
45455
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
45407
45456
|
404: {
|
|
45408
45457
|
headers: {
|
|
45409
45458
|
[name: string]: unknown;
|
|
@@ -45414,7 +45463,7 @@ interface operations {
|
|
|
45414
45463
|
* "error": {
|
|
45415
45464
|
* "statusCode": 404,
|
|
45416
45465
|
* "code": "request.not_found",
|
|
45417
|
-
* "message": "No OAuth client with that
|
|
45466
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
45418
45467
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
45419
45468
|
* "path": "/api/v1/oauth-clients/{id}/grants",
|
|
45420
45469
|
* "method": "GET"
|
package/dist/index.d.ts
CHANGED
|
@@ -3048,7 +3048,7 @@ interface paths {
|
|
|
3048
3048
|
};
|
|
3049
3049
|
/**
|
|
3050
3050
|
* List the hosted pages and emails a preview can render
|
|
3051
|
-
* @description Lists every hosted page and every customer email the branding preview can render, in the order to show them: each with its `id`, its `kind` (`page` or `email`), the `group` it sits in, its `title`, and its states. An email has one state, `default`. Returns `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
|
|
3051
|
+
* @description Lists every hosted page and every customer email the branding preview can render, in the order to show them: each with its `id`, its `kind` (`page` or `email`), the `group` it sits in, its `title`, and its states. Each state has an `id`, a `label` and `sample`: `false` for `YourPage`, the first state of the sign-in and sign-up pages, which shows the page as the Environment serves it, with the sign-in methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients, or to the one `client_id` names, and `true` for every other state, which shows sample data, the same in every Environment. An email has one state, `default`. Returns `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
|
|
3052
3052
|
*/
|
|
3053
3053
|
get: operations["ApiBrandingController_getPreviewPages"];
|
|
3054
3054
|
put?: never;
|
|
@@ -3110,7 +3110,7 @@ interface paths {
|
|
|
3110
3110
|
put?: never;
|
|
3111
3111
|
/**
|
|
3112
3112
|
* Preview a hosted page or email in a branding
|
|
3113
|
-
* @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
|
|
3113
|
+
* @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 sign-in and sign-up pages open on `YourPage`, which shows the page as the Environment serves it, with the sign-in methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients, or to the one `client_id` names; every other state shows sample data, the same in every Environment. `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, `validation` for a malformed branding value, or `branding.image_not_uploaded` for an image field that holds anything but an uploaded image, 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.
|
|
3114
3114
|
*/
|
|
3115
3115
|
post: operations["ApiBrandingController_preview"];
|
|
3116
3116
|
delete?: never;
|
|
@@ -3130,7 +3130,7 @@ interface paths {
|
|
|
3130
3130
|
put?: never;
|
|
3131
3131
|
/**
|
|
3132
3132
|
* Make a link that opens a hosted page in a branding
|
|
3133
|
-
* @description Makes a link that opens one hosted page, in one of its states, in the Environment's branding with the unsaved changes in `branding` laid over it, so a person can see a look in their own browser before it is saved. Takes what the preview takes; `page` must be a hosted page, not an email. Nothing is saved
|
|
3133
|
+
* @description Makes a link that opens one hosted page, in one of its states, in the Environment's branding with the unsaved changes in `branding` laid over it, so a person can see a look in their own browser before it is saved. Takes what the preview takes; `page` must be a hosted page, not an email. Nothing is saved. The sign-in and sign-up pages open on `YourPage`, which shows the page as the Environment serves it, with the sign-in methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients, or to the one `client_id` names; every other state shows sample data, the same in every Environment. The link opens for two minutes, on the API's own origin; open it in a browser rather than reading it, and make a new one once it has expired. The page runs with `sandbox allow-scripts` and `form-action 'none'`, so its forms submit nowhere and a page template's scripts reach no cookie or storage. Returns `400` (`branding.preview_link_page_unknown`) for a page or state that is not a hosted page's, `validation` for a malformed branding value, or `branding.image_not_uploaded` for an image field that holds anything but an uploaded image, and `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
|
|
3134
3134
|
*/
|
|
3135
3135
|
post: operations["ApiBrandingController_previewLink"];
|
|
3136
3136
|
delete?: never;
|
|
@@ -3346,7 +3346,7 @@ interface paths {
|
|
|
3346
3346
|
head?: never;
|
|
3347
3347
|
/**
|
|
3348
3348
|
* Change an Environment's sign-in settings
|
|
3349
|
-
* @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.
|
|
3349
|
+
* @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`, `languages`, `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.
|
|
3350
3350
|
*/
|
|
3351
3351
|
patch: operations["ApiAuthSettingsController_update"];
|
|
3352
3352
|
trace?: never;
|
|
@@ -4444,21 +4444,21 @@ interface paths {
|
|
|
4444
4444
|
};
|
|
4445
4445
|
/**
|
|
4446
4446
|
* Get OAuth client details
|
|
4447
|
-
* @description Returns a single OAuth client
|
|
4447
|
+
* @description Returns a single OAuth client of the current Environment. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. A client that exists in a sibling Environment reads as `404` too. The `client_secret` is never included.
|
|
4448
4448
|
*/
|
|
4449
4449
|
get: operations["ApiOAuthClientsController_get"];
|
|
4450
4450
|
put?: never;
|
|
4451
4451
|
post?: never;
|
|
4452
4452
|
/**
|
|
4453
4453
|
* Delete OAuth client
|
|
4454
|
-
* @description Deletes an OAuth client from the current Environment
|
|
4454
|
+
* @description Deletes an OAuth client from the current Environment. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. Responds `204 No Content` on success, or `404` when the client is not found in this Environment.
|
|
4455
4455
|
*/
|
|
4456
4456
|
delete: operations["ApiOAuthClientsController_remove"];
|
|
4457
4457
|
options?: never;
|
|
4458
4458
|
head?: never;
|
|
4459
4459
|
/**
|
|
4460
4460
|
* Update OAuth client
|
|
4461
|
-
* @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.
|
|
4461
|
+
* @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. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. 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.
|
|
4462
4462
|
*/
|
|
4463
4463
|
patch: operations["ApiOAuthClientsController_update"];
|
|
4464
4464
|
trace?: never;
|
|
@@ -4474,7 +4474,7 @@ interface paths {
|
|
|
4474
4474
|
put?: never;
|
|
4475
4475
|
/**
|
|
4476
4476
|
* Rotate an OAuth client's secret
|
|
4477
|
-
* @description Rotates the OAuth client's `client_secret`, generating and hashing a new secret. The replaced secret keeps working for 24 hours (`previous_secret_expires_at` says until when) so the systems using it can move over; send `expire_previous: "now"` to stop it at once, for a secret that has leaked. Rotating again inside the overlap replaces the secret still in its overlap. The new raw secret is returned in this response only and cannot be retrieved again. Returns `404` when the client is not found in the current Environment, and `409` (`oauth.client_public_has_no_secret`) for a public client, which has no secret.
|
|
4477
|
+
* @description Rotates the OAuth client's `client_secret`, generating and hashing a new secret. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. The replaced secret keeps working for 24 hours (`previous_secret_expires_at` says until when) so the systems using it can move over; send `expire_previous: "now"` to stop it at once, for a secret that has leaked. Rotating again inside the overlap replaces the secret still in its overlap. The new raw secret is returned in this response only and cannot be retrieved again. Returns `404` when the client is not found in the current Environment, and `409` (`oauth.client_public_has_no_secret`) for a public client, which has no secret.
|
|
4478
4478
|
*/
|
|
4479
4479
|
post: operations["ApiOAuthClientsController_rotateSecret"];
|
|
4480
4480
|
delete?: never;
|
|
@@ -6528,6 +6528,8 @@ interface components {
|
|
|
6528
6528
|
* @enum {string}
|
|
6529
6529
|
*/
|
|
6530
6530
|
grantable_roles_source: "organization" | "environment" | "none";
|
|
6531
|
+
/** @description Whether the Environment sets a list of its own, which the organization falls back to when its own list is removed. When false, removing the list leaves no role people arrive with, which a connected directory refuses. */
|
|
6532
|
+
environment_grantable_roles_set: boolean;
|
|
6531
6533
|
};
|
|
6532
6534
|
ScimTokenResponseDto: {
|
|
6533
6535
|
id: string;
|
|
@@ -7474,7 +7476,7 @@ interface components {
|
|
|
7474
7476
|
* @example auth.acme.example
|
|
7475
7477
|
*/
|
|
7476
7478
|
page_template_domain: string | null;
|
|
7477
|
-
/** @description
|
|
7479
|
+
/** @description The languages this Environment offers, in the order they are listed. `text_overrides` may reword the texts in each, and a preview may be asked for in any of them. */
|
|
7478
7480
|
languages: components["schemas"]["AvailableLanguageDto"][];
|
|
7479
7481
|
/**
|
|
7480
7482
|
* @description The language a page is shown in when nothing asks for another, one of `languages`.
|
|
@@ -7738,6 +7740,11 @@ interface components {
|
|
|
7738
7740
|
id: string;
|
|
7739
7741
|
/** @example Wrong password */
|
|
7740
7742
|
label: string;
|
|
7743
|
+
/**
|
|
7744
|
+
* @description `false` for `YourPage`, the state of the sign-in and sign-up pages that is drawn from the Environment's own sign-in settings: the methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients. `true` for every other state, which is drawn from sample data and shows the same thing in every Environment.
|
|
7745
|
+
* @example true
|
|
7746
|
+
*/
|
|
7747
|
+
sample: boolean;
|
|
7741
7748
|
};
|
|
7742
7749
|
BrandingPreviewPageDto: {
|
|
7743
7750
|
/** @example login */
|
|
@@ -7845,7 +7852,7 @@ interface components {
|
|
|
7845
7852
|
*/
|
|
7846
7853
|
page: string;
|
|
7847
7854
|
/**
|
|
7848
|
-
* @description One of that page's states, by the `id` the preview list returns. An email has a single state, `default`.
|
|
7855
|
+
* @description One of that page's states, by the `id` the preview list returns. `YourPage`, on the sign-in and sign-up pages, shows the page as the Environment serves it; every other state shows sample data. An email has a single state, `default`.
|
|
7849
7856
|
* @example WrongPassword
|
|
7850
7857
|
*/
|
|
7851
7858
|
state: string;
|
|
@@ -7861,7 +7868,9 @@ interface components {
|
|
|
7861
7868
|
* @example es
|
|
7862
7869
|
* @enum {string}
|
|
7863
7870
|
*/
|
|
7864
|
-
language?: "en" | "es";
|
|
7871
|
+
language?: "en" | "es" | "fr" | "de" | "pt-br" | "it" | "nl" | "ja" | "ko" | "zh-hans" | "ar" | "he";
|
|
7872
|
+
/** @description The app (OAuth client) to draw the state `YourPage` for, by its `client_id`. Hosted sign-in offers single sign-on per app, so with it the page offers single sign-on only when a connection is linked to that app; left out, when one is linked to any app of the Environment. A `client_id` that is not an active app of the Environment offers none. Every other state ignores it. */
|
|
7873
|
+
client_id?: string;
|
|
7865
7874
|
};
|
|
7866
7875
|
BrandingPreviewLinkResponseDto: {
|
|
7867
7876
|
/**
|
|
@@ -8040,7 +8049,16 @@ interface components {
|
|
|
8040
8049
|
/** @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. */
|
|
8041
8050
|
passkey_login_enabled?: boolean;
|
|
8042
8051
|
/**
|
|
8043
|
-
* @description The
|
|
8052
|
+
* @description The languages this Environment offers on the hosted pages and in the emails it sends, as language tags. Each must be one of `available_languages` in the response, and the list must hold `default_language`. An Environment that has never saved a list offers `default_language` alone, and a new `default_language` sent without `languages` replaces it. A page or email is only ever written in an offered language.
|
|
8053
|
+
* @example [
|
|
8054
|
+
* "en",
|
|
8055
|
+
* "es",
|
|
8056
|
+
* "fr"
|
|
8057
|
+
* ]
|
|
8058
|
+
*/
|
|
8059
|
+
languages?: string[];
|
|
8060
|
+
/**
|
|
8061
|
+
* @description The language a page or email is written in when nothing names one the Environment offers: no `ui_locales`, no stored language for the person, and no match in the browser's languages. Must be one of `languages`. Unset, `en`.
|
|
8044
8062
|
* @example en
|
|
8045
8063
|
*/
|
|
8046
8064
|
default_language?: string;
|
|
@@ -8069,7 +8087,7 @@ interface components {
|
|
|
8069
8087
|
hierarchy_schema: {
|
|
8070
8088
|
[key: string]: unknown;
|
|
8071
8089
|
} | null;
|
|
8072
|
-
/** @description The sign-in policy: MFA, sign-in methods, CAPTCHA, self-signup, token lifetimes and organization signup. Settings that name one deployment or the source's roles are left out. */
|
|
8090
|
+
/** @description The sign-in policy: MFA, sign-in methods, CAPTCHA, self-signup, languages, token lifetimes and organization signup. Settings that name one deployment or the source's roles are left out. */
|
|
8073
8091
|
auth_settings: components["schemas"]["EnvironmentExportAuthSettingsDto"];
|
|
8074
8092
|
/** @description The custom claims the Environment adds to its tokens */
|
|
8075
8093
|
token_claims: components["schemas"]["TokenClaimEntryResponseDto"][];
|
|
@@ -8135,11 +8153,20 @@ interface components {
|
|
|
8135
8153
|
email_otp_login_enabled?: boolean;
|
|
8136
8154
|
passkey_login_enabled?: boolean;
|
|
8137
8155
|
/**
|
|
8138
|
-
* @description The
|
|
8156
|
+
* @description The languages this Environment offers on the hosted pages and in its emails, in the order of `available_languages`. Only `default_language` when the Environment has not chosen.
|
|
8157
|
+
* @example [
|
|
8158
|
+
* "en",
|
|
8159
|
+
* "es",
|
|
8160
|
+
* "fr"
|
|
8161
|
+
* ]
|
|
8162
|
+
*/
|
|
8163
|
+
languages: string[];
|
|
8164
|
+
/**
|
|
8165
|
+
* @description The language a page or email is written in when nothing names one the Environment offers. Always one of `languages`.
|
|
8139
8166
|
* @example en
|
|
8140
8167
|
*/
|
|
8141
8168
|
default_language: string;
|
|
8142
|
-
/** @description Every language the hosted pages and emails are written in
|
|
8169
|
+
/** @description Every language the hosted pages and emails are written in, which is what `languages` may hold. A page or email follows `ui_locales`, then the person's stored language, then the browser's, then `default_language`, taking only a language in `languages`. */
|
|
8143
8170
|
available_languages: components["schemas"]["AvailableLanguageDto"][];
|
|
8144
8171
|
self_signup_daily_cap?: number;
|
|
8145
8172
|
access_token_ttl_seconds?: number;
|
|
@@ -8219,7 +8246,16 @@ interface components {
|
|
|
8219
8246
|
/** @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. */
|
|
8220
8247
|
passkey_login_enabled?: boolean;
|
|
8221
8248
|
/**
|
|
8222
|
-
* @description The
|
|
8249
|
+
* @description The languages this Environment offers on the hosted pages and in the emails it sends, as language tags. Each must be one of `available_languages` in the response, and the list must hold `default_language`. An Environment that has never saved a list offers `default_language` alone, and a new `default_language` sent without `languages` replaces it. A page or email is only ever written in an offered language.
|
|
8250
|
+
* @example [
|
|
8251
|
+
* "en",
|
|
8252
|
+
* "es",
|
|
8253
|
+
* "fr"
|
|
8254
|
+
* ]
|
|
8255
|
+
*/
|
|
8256
|
+
languages?: string[];
|
|
8257
|
+
/**
|
|
8258
|
+
* @description The language a page or email is written in when nothing names one the Environment offers: no `ui_locales`, no stored language for the person, and no match in the browser's languages. Must be one of `languages`. Unset, `en`.
|
|
8223
8259
|
* @example en
|
|
8224
8260
|
*/
|
|
8225
8261
|
default_language?: string;
|
|
@@ -8876,7 +8912,9 @@ interface components {
|
|
|
8876
8912
|
expire_previous?: "now" | "window";
|
|
8877
8913
|
};
|
|
8878
8914
|
OAuthClientCreatedResponseDto: {
|
|
8915
|
+
/** @description The client record's id. No route takes it in its path: the single-client routes take `client_id`. */
|
|
8879
8916
|
id: string;
|
|
8917
|
+
/** @description The client's public identifier: the `client_id` of the OAuth flows, and the value the single-client routes (`/oauth-clients/{id}`) take in their path. */
|
|
8880
8918
|
client_id: string;
|
|
8881
8919
|
name: string;
|
|
8882
8920
|
/**
|
|
@@ -8984,7 +9022,9 @@ interface components {
|
|
|
8984
9022
|
initiate_login_uri?: string;
|
|
8985
9023
|
};
|
|
8986
9024
|
OAuthClientResponseDto: {
|
|
9025
|
+
/** @description The client record's id. No route takes it in its path: the single-client routes take `client_id`. */
|
|
8987
9026
|
id: string;
|
|
9027
|
+
/** @description The client's public identifier: the `client_id` of the OAuth flows, and the value the single-client routes (`/oauth-clients/{id}`) take in their path. */
|
|
8988
9028
|
client_id: string;
|
|
8989
9029
|
name: string;
|
|
8990
9030
|
/**
|
|
@@ -35001,7 +35041,7 @@ interface operations {
|
|
|
35001
35041
|
};
|
|
35002
35042
|
};
|
|
35003
35043
|
};
|
|
35004
|
-
/** @description The request failed validation, or the payload cannot be applied: an unsupported `format_version`, an organizations setting that differs from the target Environment's, nested nodes in an Environment with organizations, not exactly one root node, a role or role template naming a permission key the payload lacks, orphaned or cyclic `parent_ref` chains, or duplicate keys. Its role templates must also be importable: a template named like one of the payload's roles (`role_template.name_taken`), more than one default admin or default member (`environment.import_duplicate_role_template_default`), a default admin without `canopy:organization.manage` (`role_template.admin_requires_organization_manage`), or no default admin while the target creates organizations at sign-up (`role_template.default_admin_required`); 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`) */
|
|
35044
|
+
/** @description The request failed validation, or the payload cannot be applied: an unsupported `format_version`, an organizations setting that differs from the target Environment's, nested nodes in an Environment with organizations, not exactly one root node, a role or role template naming a permission key the payload lacks, orphaned or cyclic `parent_ref` chains, or duplicate keys. Its role templates must also be importable: a template named like one of the payload's roles (`role_template.name_taken`), more than one default admin or default member (`environment.import_duplicate_role_template_default`), a default admin without `canopy:organization.manage` (`role_template.admin_requires_organization_manage`), or no default admin while the target creates organizations at sign-up (`role_template.default_admin_required`). Its languages are checked as a save on the auth settings is: a default with no catalogue (`environment.default_language_invalid`), a list naming a language twice or one with no catalogue (`environment.languages_invalid`), or a default the list leaves out (`environment.default_language_not_offered`); 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`) */
|
|
35005
35045
|
400: {
|
|
35006
35046
|
headers: {
|
|
35007
35047
|
[name: string]: unknown;
|
|
@@ -35012,7 +35052,7 @@ interface operations {
|
|
|
35012
35052
|
* "error": {
|
|
35013
35053
|
* "statusCode": 400,
|
|
35014
35054
|
* "code": "request.invalid",
|
|
35015
|
-
* "message": "The request failed validation, or the payload cannot be applied: an unsupported `format_version`, an organizations setting that differs from the target Environment's, nested nodes in an Environment with organizations, not exactly one root node, a role or role template naming a permission key the payload lacks, orphaned or cyclic `parent_ref` chains, or duplicate keys. Its role templates must also be importable: a template named like one of the payload's roles (`role_template.name_taken`), more than one default admin or default member (`environment.import_duplicate_role_template_default`), a default admin without `canopy:organization.manage` (`role_template.admin_requires_organization_manage`), or no default admin while the target creates organizations at sign-up (`role_template.default_admin_required`); 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`)",
|
|
35055
|
+
* "message": "The request failed validation, or the payload cannot be applied: an unsupported `format_version`, an organizations setting that differs from the target Environment's, nested nodes in an Environment with organizations, not exactly one root node, a role or role template naming a permission key the payload lacks, orphaned or cyclic `parent_ref` chains, or duplicate keys. Its role templates must also be importable: a template named like one of the payload's roles (`role_template.name_taken`), more than one default admin or default member (`environment.import_duplicate_role_template_default`), a default admin without `canopy:organization.manage` (`role_template.admin_requires_organization_manage`), or no default admin while the target creates organizations at sign-up (`role_template.default_admin_required`). Its languages are checked as a save on the auth settings is: a default with no catalogue (`environment.default_language_invalid`), a list naming a language twice or one with no catalogue (`environment.languages_invalid`), or a default the list leaves out (`environment.default_language_not_offered`); 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`)",
|
|
35016
35056
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
35017
35057
|
* "path": "/api/v1/environments/{id}/import",
|
|
35018
35058
|
* "method": "POST"
|
|
@@ -35267,7 +35307,7 @@ interface operations {
|
|
|
35267
35307
|
};
|
|
35268
35308
|
};
|
|
35269
35309
|
};
|
|
35270
|
-
/** @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`) */
|
|
35310
|
+
/** @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`), `languages` is empty, names a language twice or names one outside `available_languages` (`environment.languages_invalid`), or `default_language` is not one of `languages` (`environment.default_language_not_offered`); or its `If-Match` header names no version (`if_match.invalid`) */
|
|
35271
35311
|
400: {
|
|
35272
35312
|
headers: {
|
|
35273
35313
|
[name: string]: unknown;
|
|
@@ -35278,7 +35318,7 @@ interface operations {
|
|
|
35278
35318
|
* "error": {
|
|
35279
35319
|
* "statusCode": 400,
|
|
35280
35320
|
* "code": "request.invalid",
|
|
35281
|
-
* "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`)",
|
|
35321
|
+
* "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`), `languages` is empty, names a language twice or names one outside `available_languages` (`environment.languages_invalid`), or `default_language` is not one of `languages` (`environment.default_language_not_offered`); or its `If-Match` header names no version (`if_match.invalid`)",
|
|
35282
35322
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
35283
35323
|
* "path": "/api/v1/auth-settings",
|
|
35284
35324
|
* "method": "PATCH"
|
|
@@ -44189,6 +44229,7 @@ interface operations {
|
|
|
44189
44229
|
"X-Canopy-Environment"?: string;
|
|
44190
44230
|
};
|
|
44191
44231
|
path: {
|
|
44232
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44192
44233
|
id: string;
|
|
44193
44234
|
};
|
|
44194
44235
|
cookie?: never;
|
|
@@ -44269,7 +44310,7 @@ interface operations {
|
|
|
44269
44310
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44270
44311
|
};
|
|
44271
44312
|
};
|
|
44272
|
-
/** @description No OAuth client with that
|
|
44313
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44273
44314
|
404: {
|
|
44274
44315
|
headers: {
|
|
44275
44316
|
[name: string]: unknown;
|
|
@@ -44280,7 +44321,7 @@ interface operations {
|
|
|
44280
44321
|
* "error": {
|
|
44281
44322
|
* "statusCode": 404,
|
|
44282
44323
|
* "code": "request.not_found",
|
|
44283
|
-
* "message": "No OAuth client with that
|
|
44324
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44284
44325
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44285
44326
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
44286
44327
|
* "method": "GET"
|
|
@@ -44300,6 +44341,7 @@ interface operations {
|
|
|
44300
44341
|
"X-Canopy-Environment"?: string;
|
|
44301
44342
|
};
|
|
44302
44343
|
path: {
|
|
44344
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44303
44345
|
id: string;
|
|
44304
44346
|
};
|
|
44305
44347
|
cookie?: never;
|
|
@@ -44376,7 +44418,7 @@ interface operations {
|
|
|
44376
44418
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44377
44419
|
};
|
|
44378
44420
|
};
|
|
44379
|
-
/** @description No OAuth client with that
|
|
44421
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44380
44422
|
404: {
|
|
44381
44423
|
headers: {
|
|
44382
44424
|
[name: string]: unknown;
|
|
@@ -44387,7 +44429,7 @@ interface operations {
|
|
|
44387
44429
|
* "error": {
|
|
44388
44430
|
* "statusCode": 404,
|
|
44389
44431
|
* "code": "request.not_found",
|
|
44390
|
-
* "message": "No OAuth client with that
|
|
44432
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44391
44433
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44392
44434
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
44393
44435
|
* "method": "DELETE"
|
|
@@ -44409,6 +44451,7 @@ interface operations {
|
|
|
44409
44451
|
"X-Canopy-Environment"?: string;
|
|
44410
44452
|
};
|
|
44411
44453
|
path: {
|
|
44454
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44412
44455
|
id: string;
|
|
44413
44456
|
};
|
|
44414
44457
|
cookie?: never;
|
|
@@ -44493,7 +44536,7 @@ interface operations {
|
|
|
44493
44536
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44494
44537
|
};
|
|
44495
44538
|
};
|
|
44496
|
-
/** @description No OAuth client with that
|
|
44539
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44497
44540
|
404: {
|
|
44498
44541
|
headers: {
|
|
44499
44542
|
[name: string]: unknown;
|
|
@@ -44504,7 +44547,7 @@ interface operations {
|
|
|
44504
44547
|
* "error": {
|
|
44505
44548
|
* "statusCode": 404,
|
|
44506
44549
|
* "code": "request.not_found",
|
|
44507
|
-
* "message": "No OAuth client with that
|
|
44550
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44508
44551
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44509
44552
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
44510
44553
|
* "method": "PATCH"
|
|
@@ -44550,6 +44593,7 @@ interface operations {
|
|
|
44550
44593
|
"X-Canopy-Environment"?: string;
|
|
44551
44594
|
};
|
|
44552
44595
|
path: {
|
|
44596
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44553
44597
|
id: string;
|
|
44554
44598
|
};
|
|
44555
44599
|
cookie?: never;
|
|
@@ -44634,7 +44678,7 @@ interface operations {
|
|
|
44634
44678
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44635
44679
|
};
|
|
44636
44680
|
};
|
|
44637
|
-
/** @description No OAuth client with that
|
|
44681
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44638
44682
|
404: {
|
|
44639
44683
|
headers: {
|
|
44640
44684
|
[name: string]: unknown;
|
|
@@ -44645,7 +44689,7 @@ interface operations {
|
|
|
44645
44689
|
* "error": {
|
|
44646
44690
|
* "statusCode": 404,
|
|
44647
44691
|
* "code": "request.not_found",
|
|
44648
|
-
* "message": "No OAuth client with that
|
|
44692
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44649
44693
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44650
44694
|
* "path": "/api/v1/oauth-clients/{id}/rotate-secret",
|
|
44651
44695
|
* "method": "POST"
|
|
@@ -44739,6 +44783,7 @@ interface operations {
|
|
|
44739
44783
|
"X-Canopy-Environment"?: string;
|
|
44740
44784
|
};
|
|
44741
44785
|
path: {
|
|
44786
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44742
44787
|
id: string;
|
|
44743
44788
|
};
|
|
44744
44789
|
cookie?: never;
|
|
@@ -44820,7 +44865,7 @@ interface operations {
|
|
|
44820
44865
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44821
44866
|
};
|
|
44822
44867
|
};
|
|
44823
|
-
/** @description No OAuth client with that
|
|
44868
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44824
44869
|
404: {
|
|
44825
44870
|
headers: {
|
|
44826
44871
|
[name: string]: unknown;
|
|
@@ -44831,7 +44876,7 @@ interface operations {
|
|
|
44831
44876
|
* "error": {
|
|
44832
44877
|
* "statusCode": 404,
|
|
44833
44878
|
* "code": "request.not_found",
|
|
44834
|
-
* "message": "No OAuth client with that
|
|
44879
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44835
44880
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44836
44881
|
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
44837
44882
|
* "method": "GET"
|
|
@@ -44856,6 +44901,7 @@ interface operations {
|
|
|
44856
44901
|
"X-Canopy-Environment"?: string;
|
|
44857
44902
|
};
|
|
44858
44903
|
path: {
|
|
44904
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44859
44905
|
id: string;
|
|
44860
44906
|
};
|
|
44861
44907
|
cookie?: never;
|
|
@@ -44940,7 +44986,7 @@ interface operations {
|
|
|
44940
44986
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44941
44987
|
};
|
|
44942
44988
|
};
|
|
44943
|
-
/** @description No OAuth client with that
|
|
44989
|
+
/** @description No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
44944
44990
|
404: {
|
|
44945
44991
|
headers: {
|
|
44946
44992
|
[name: string]: unknown;
|
|
@@ -44951,7 +44997,7 @@ interface operations {
|
|
|
44951
44997
|
* "error": {
|
|
44952
44998
|
* "statusCode": 404,
|
|
44953
44999
|
* "code": "request.not_found",
|
|
44954
|
-
* "message": "No OAuth client with that
|
|
45000
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
44955
45001
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44956
45002
|
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
44957
45003
|
* "method": "POST"
|
|
@@ -45034,6 +45080,7 @@ interface operations {
|
|
|
45034
45080
|
"X-Canopy-Environment"?: string;
|
|
45035
45081
|
};
|
|
45036
45082
|
path: {
|
|
45083
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
45037
45084
|
id: string;
|
|
45038
45085
|
assignmentId: string;
|
|
45039
45086
|
};
|
|
@@ -45111,7 +45158,7 @@ interface operations {
|
|
|
45111
45158
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
45112
45159
|
};
|
|
45113
45160
|
};
|
|
45114
|
-
/** @description No OAuth client with that
|
|
45161
|
+
/** @description No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
45115
45162
|
404: {
|
|
45116
45163
|
headers: {
|
|
45117
45164
|
[name: string]: unknown;
|
|
@@ -45122,7 +45169,7 @@ interface operations {
|
|
|
45122
45169
|
* "error": {
|
|
45123
45170
|
* "statusCode": 404,
|
|
45124
45171
|
* "code": "request.not_found",
|
|
45125
|
-
* "message": "No OAuth client with that
|
|
45172
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
45126
45173
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
45127
45174
|
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
45128
45175
|
* "method": "DELETE"
|
|
@@ -45165,6 +45212,7 @@ interface operations {
|
|
|
45165
45212
|
"X-Canopy-Environment"?: string;
|
|
45166
45213
|
};
|
|
45167
45214
|
path: {
|
|
45215
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
45168
45216
|
id: string;
|
|
45169
45217
|
assignmentId: string;
|
|
45170
45218
|
};
|
|
@@ -45250,7 +45298,7 @@ interface operations {
|
|
|
45250
45298
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
45251
45299
|
};
|
|
45252
45300
|
};
|
|
45253
|
-
/** @description No OAuth client with that
|
|
45301
|
+
/** @description No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
45254
45302
|
404: {
|
|
45255
45303
|
headers: {
|
|
45256
45304
|
[name: string]: unknown;
|
|
@@ -45261,7 +45309,7 @@ interface operations {
|
|
|
45261
45309
|
* "error": {
|
|
45262
45310
|
* "statusCode": 404,
|
|
45263
45311
|
* "code": "request.not_found",
|
|
45264
|
-
* "message": "No OAuth client with that
|
|
45312
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
45265
45313
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
45266
45314
|
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
45267
45315
|
* "method": "PATCH"
|
|
@@ -45311,6 +45359,7 @@ interface operations {
|
|
|
45311
45359
|
"X-Canopy-Environment"?: string;
|
|
45312
45360
|
};
|
|
45313
45361
|
path: {
|
|
45362
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
45314
45363
|
id: string;
|
|
45315
45364
|
};
|
|
45316
45365
|
cookie?: never;
|
|
@@ -45403,7 +45452,7 @@ interface operations {
|
|
|
45403
45452
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
45404
45453
|
};
|
|
45405
45454
|
};
|
|
45406
|
-
/** @description No OAuth client with that
|
|
45455
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
45407
45456
|
404: {
|
|
45408
45457
|
headers: {
|
|
45409
45458
|
[name: string]: unknown;
|
|
@@ -45414,7 +45463,7 @@ interface operations {
|
|
|
45414
45463
|
* "error": {
|
|
45415
45464
|
* "statusCode": 404,
|
|
45416
45465
|
* "code": "request.not_found",
|
|
45417
|
-
* "message": "No OAuth client with that
|
|
45466
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
45418
45467
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
45419
45468
|
* "path": "/api/v1/oauth-clients/{id}/grants",
|
|
45420
45469
|
* "method": "GET"
|
package/package.json
CHANGED