@canopy-io/node 0.26.0 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @canopy-io/node
2
2
 
3
+ ## 0.26.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 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`.
8
+
3
9
  ## 0.26.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.cts CHANGED
@@ -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;
@@ -7474,7 +7474,7 @@ interface components {
7474
7474
  * @example auth.acme.example
7475
7475
  */
7476
7476
  page_template_domain: string | null;
7477
- /** @description Every language the hosted pages and emails are written in, in the order they are listed. Every Environment offers all of them. `text_overrides` may reword the texts in each, and a preview may be asked for in any of them. */
7477
+ /** @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
7478
  languages: components["schemas"]["AvailableLanguageDto"][];
7479
7479
  /**
7480
7480
  * @description The language a page is shown in when nothing asks for another, one of `languages`.
@@ -7861,7 +7861,7 @@ interface components {
7861
7861
  * @example es
7862
7862
  * @enum {string}
7863
7863
  */
7864
- language?: "en" | "es";
7864
+ language?: "en" | "es" | "fr" | "de" | "pt-br" | "it" | "nl" | "ja" | "ko" | "zh-hans" | "ar" | "he";
7865
7865
  };
7866
7866
  BrandingPreviewLinkResponseDto: {
7867
7867
  /**
@@ -8040,7 +8040,16 @@ interface components {
8040
8040
  /** @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
8041
  passkey_login_enabled?: boolean;
8042
8042
  /**
8043
- * @description The language a page or email is written in when nothing names one the hosted pages are written in: no `ui_locales`, no stored language for the person, and no match in the browser's languages. Must be one of `available_languages` in the response. Unset, `en`.
8043
+ * @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.
8044
+ * @example [
8045
+ * "en",
8046
+ * "es",
8047
+ * "fr"
8048
+ * ]
8049
+ */
8050
+ languages?: string[];
8051
+ /**
8052
+ * @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
8053
  * @example en
8045
8054
  */
8046
8055
  default_language?: string;
@@ -8069,7 +8078,7 @@ interface components {
8069
8078
  hierarchy_schema: {
8070
8079
  [key: string]: unknown;
8071
8080
  } | 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. */
8081
+ /** @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
8082
  auth_settings: components["schemas"]["EnvironmentExportAuthSettingsDto"];
8074
8083
  /** @description The custom claims the Environment adds to its tokens */
8075
8084
  token_claims: components["schemas"]["TokenClaimEntryResponseDto"][];
@@ -8135,11 +8144,20 @@ interface components {
8135
8144
  email_otp_login_enabled?: boolean;
8136
8145
  passkey_login_enabled?: boolean;
8137
8146
  /**
8138
- * @description The language a page or email is written in when nothing names one the hosted pages are written in. Always one of `available_languages`.
8147
+ * @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.
8148
+ * @example [
8149
+ * "en",
8150
+ * "es",
8151
+ * "fr"
8152
+ * ]
8153
+ */
8154
+ languages: string[];
8155
+ /**
8156
+ * @description The language a page or email is written in when nothing names one the Environment offers. Always one of `languages`.
8139
8157
  * @example en
8140
8158
  */
8141
8159
  default_language: string;
8142
- /** @description Every language the hosted pages and emails are written in. Every Environment offers all of them: a page or email follows `ui_locales`, then the person's stored language, then the browser's, then `default_language`. */
8160
+ /** @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
8161
  available_languages: components["schemas"]["AvailableLanguageDto"][];
8144
8162
  self_signup_daily_cap?: number;
8145
8163
  access_token_ttl_seconds?: number;
@@ -8219,7 +8237,16 @@ interface components {
8219
8237
  /** @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
8238
  passkey_login_enabled?: boolean;
8221
8239
  /**
8222
- * @description The language a page or email is written in when nothing names one the hosted pages are written in: no `ui_locales`, no stored language for the person, and no match in the browser's languages. Must be one of `available_languages` in the response. Unset, `en`.
8240
+ * @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.
8241
+ * @example [
8242
+ * "en",
8243
+ * "es",
8244
+ * "fr"
8245
+ * ]
8246
+ */
8247
+ languages?: string[];
8248
+ /**
8249
+ * @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
8250
  * @example en
8224
8251
  */
8225
8252
  default_language?: string;
@@ -35001,7 +35028,7 @@ interface operations {
35001
35028
  };
35002
35029
  };
35003
35030
  };
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`) */
35031
+ /** @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
35032
  400: {
35006
35033
  headers: {
35007
35034
  [name: string]: unknown;
@@ -35012,7 +35039,7 @@ interface operations {
35012
35039
  * "error": {
35013
35040
  * "statusCode": 400,
35014
35041
  * "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`)",
35042
+ * "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
35043
  * "timestamp": "2026-04-20T12:00:00.000Z",
35017
35044
  * "path": "/api/v1/environments/{id}/import",
35018
35045
  * "method": "POST"
@@ -35267,7 +35294,7 @@ interface operations {
35267
35294
  };
35268
35295
  };
35269
35296
  };
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`) */
35297
+ /** @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
35298
  400: {
35272
35299
  headers: {
35273
35300
  [name: string]: unknown;
@@ -35278,7 +35305,7 @@ interface operations {
35278
35305
  * "error": {
35279
35306
  * "statusCode": 400,
35280
35307
  * "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`)",
35308
+ * "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
35309
  * "timestamp": "2026-04-20T12:00:00.000Z",
35283
35310
  * "path": "/api/v1/auth-settings",
35284
35311
  * "method": "PATCH"
package/dist/index.d.ts CHANGED
@@ -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;
@@ -7474,7 +7474,7 @@ interface components {
7474
7474
  * @example auth.acme.example
7475
7475
  */
7476
7476
  page_template_domain: string | null;
7477
- /** @description Every language the hosted pages and emails are written in, in the order they are listed. Every Environment offers all of them. `text_overrides` may reword the texts in each, and a preview may be asked for in any of them. */
7477
+ /** @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
7478
  languages: components["schemas"]["AvailableLanguageDto"][];
7479
7479
  /**
7480
7480
  * @description The language a page is shown in when nothing asks for another, one of `languages`.
@@ -7861,7 +7861,7 @@ interface components {
7861
7861
  * @example es
7862
7862
  * @enum {string}
7863
7863
  */
7864
- language?: "en" | "es";
7864
+ language?: "en" | "es" | "fr" | "de" | "pt-br" | "it" | "nl" | "ja" | "ko" | "zh-hans" | "ar" | "he";
7865
7865
  };
7866
7866
  BrandingPreviewLinkResponseDto: {
7867
7867
  /**
@@ -8040,7 +8040,16 @@ interface components {
8040
8040
  /** @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
8041
  passkey_login_enabled?: boolean;
8042
8042
  /**
8043
- * @description The language a page or email is written in when nothing names one the hosted pages are written in: no `ui_locales`, no stored language for the person, and no match in the browser's languages. Must be one of `available_languages` in the response. Unset, `en`.
8043
+ * @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.
8044
+ * @example [
8045
+ * "en",
8046
+ * "es",
8047
+ * "fr"
8048
+ * ]
8049
+ */
8050
+ languages?: string[];
8051
+ /**
8052
+ * @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
8053
  * @example en
8045
8054
  */
8046
8055
  default_language?: string;
@@ -8069,7 +8078,7 @@ interface components {
8069
8078
  hierarchy_schema: {
8070
8079
  [key: string]: unknown;
8071
8080
  } | 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. */
8081
+ /** @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
8082
  auth_settings: components["schemas"]["EnvironmentExportAuthSettingsDto"];
8074
8083
  /** @description The custom claims the Environment adds to its tokens */
8075
8084
  token_claims: components["schemas"]["TokenClaimEntryResponseDto"][];
@@ -8135,11 +8144,20 @@ interface components {
8135
8144
  email_otp_login_enabled?: boolean;
8136
8145
  passkey_login_enabled?: boolean;
8137
8146
  /**
8138
- * @description The language a page or email is written in when nothing names one the hosted pages are written in. Always one of `available_languages`.
8147
+ * @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.
8148
+ * @example [
8149
+ * "en",
8150
+ * "es",
8151
+ * "fr"
8152
+ * ]
8153
+ */
8154
+ languages: string[];
8155
+ /**
8156
+ * @description The language a page or email is written in when nothing names one the Environment offers. Always one of `languages`.
8139
8157
  * @example en
8140
8158
  */
8141
8159
  default_language: string;
8142
- /** @description Every language the hosted pages and emails are written in. Every Environment offers all of them: a page or email follows `ui_locales`, then the person's stored language, then the browser's, then `default_language`. */
8160
+ /** @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
8161
  available_languages: components["schemas"]["AvailableLanguageDto"][];
8144
8162
  self_signup_daily_cap?: number;
8145
8163
  access_token_ttl_seconds?: number;
@@ -8219,7 +8237,16 @@ interface components {
8219
8237
  /** @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
8238
  passkey_login_enabled?: boolean;
8221
8239
  /**
8222
- * @description The language a page or email is written in when nothing names one the hosted pages are written in: no `ui_locales`, no stored language for the person, and no match in the browser's languages. Must be one of `available_languages` in the response. Unset, `en`.
8240
+ * @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.
8241
+ * @example [
8242
+ * "en",
8243
+ * "es",
8244
+ * "fr"
8245
+ * ]
8246
+ */
8247
+ languages?: string[];
8248
+ /**
8249
+ * @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
8250
  * @example en
8224
8251
  */
8225
8252
  default_language?: string;
@@ -35001,7 +35028,7 @@ interface operations {
35001
35028
  };
35002
35029
  };
35003
35030
  };
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`) */
35031
+ /** @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
35032
  400: {
35006
35033
  headers: {
35007
35034
  [name: string]: unknown;
@@ -35012,7 +35039,7 @@ interface operations {
35012
35039
  * "error": {
35013
35040
  * "statusCode": 400,
35014
35041
  * "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`)",
35042
+ * "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
35043
  * "timestamp": "2026-04-20T12:00:00.000Z",
35017
35044
  * "path": "/api/v1/environments/{id}/import",
35018
35045
  * "method": "POST"
@@ -35267,7 +35294,7 @@ interface operations {
35267
35294
  };
35268
35295
  };
35269
35296
  };
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`) */
35297
+ /** @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
35298
  400: {
35272
35299
  headers: {
35273
35300
  [name: string]: unknown;
@@ -35278,7 +35305,7 @@ interface operations {
35278
35305
  * "error": {
35279
35306
  * "statusCode": 400,
35280
35307
  * "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`)",
35308
+ * "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
35309
  * "timestamp": "2026-04-20T12:00:00.000Z",
35283
35310
  * "path": "/api/v1/auth-settings",
35284
35311
  * "method": "PATCH"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canopy-io/node",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "description": "Official TypeScript SDK for Canopy \u2014 hierarchical identity and access management.",
5
5
  "license": "MIT",
6
6
  "author": "Canopy Identity Inc.",