@canopy-io/node 0.23.3 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -611,7 +611,7 @@ interface paths {
611
611
  };
612
612
  /**
613
613
  * List an identity's active sessions (admin)
614
- * @description Lists one page of an identity's active sessions in the caller's Environment (server-to-server admin), newest first, taking `page` and `take` only: the rows a customer reads to confirm from its own side that a sign-out took, or to show a person where they are signed in. Each row is a session's current refresh token, so `id` changes on every refresh. Sessions the identity holds in its other Environments are not listed. Returns `404` when the identity has no membership in this Environment.
614
+ * @description Lists one page of an identity's active sessions in the caller's Environment (server-to-server admin), newest first, taking `page` and `take` only: the rows a customer reads to confirm from its own side that a sign-out took, or to show a person where they are signed in. A hosted sign-in no application has exchanged a code for yet holds no refresh token and is listed first, by its session id; every other row is a session's current refresh token, so its `id` changes on every refresh. Sessions the identity holds in its other Environments are not listed. Returns `404` when the identity has no membership in this Environment.
615
615
  */
616
616
  get: operations["ApiIdentitiesController_listIdentitySessions"];
617
617
  put?: never;
@@ -634,7 +634,7 @@ interface paths {
634
634
  post?: never;
635
635
  /**
636
636
  * Revoke one of an identity's sessions (admin)
637
- * @description Revokes one of an identity's sessions in the caller's Environment (server-to-server admin) by marking its refresh token revoked, so the next refresh from that device returns `401` while every other session carries on. Audited as `identity.session.revoked`, the same row the person's own per-session sign-out writes. Returns `204 No Content`; returns `404` when the identity has no membership in this Environment, or when the session is not the identity's, belongs to another Environment, or is already revoked.
637
+ * @description Revokes one of an identity's sessions in the caller's Environment (server-to-server admin) by the id the list gave it: a refresh token's is marked revoked, so the next refresh from that device returns `401`, and a hosted sign-in no application has exchanged a code for yet is ended, so its code issues nothing, while every other session carries on. Audited as `identity.session.revoked`, the same row the person's own per-session sign-out writes. Returns `204 No Content`; returns `404` when the identity has no membership in this Environment, or when the session is not the identity's, belongs to another Environment, or is already revoked or ended.
638
638
  */
639
639
  delete: operations["ApiIdentitiesController_revokeIdentitySession"];
640
640
  options?: never;
@@ -1605,7 +1605,7 @@ interface paths {
1605
1605
  head?: never;
1606
1606
  /**
1607
1607
  * Update an organization's authentication policy
1608
- * @description Sets the organization's own authentication policy. A field set to `null` inherits the Environment again. The policy can only tighten the Environment's settings: `mfa_required` can be true where the Environment leaves MFA optional, `mfa_factor_allowlist` must be a subset of the Environment's, `mfa_after_sso` can be `require` where the Environment exempts, and `require_sso` refuses password and code logins for members. `staff_entry` is the organization's own decision: `refused` turns away the Environment's staff (a role at the Environment root), records each attempt, and ends the sessions staff have inside at their next refresh. Returns `400` (`organization.policy_loosens`) when a value would loosen the Environment, `409` when `If-Match` does not match the policy version. Requires the `hierarchy.manage` permission at the organization and emits `organization.policy.updated`.
1608
+ * @description Sets the organization's own authentication policy. A field set to `null` inherits the Environment again. The policy can only tighten the Environment's settings: `mfa_required` can be true where the Environment leaves MFA optional, `mfa_factor_allowlist` must be a subset of the Environment's, `mfa_after_sso` can be `require` where the Environment exempts, and `require_sso` refuses password and code logins for members. Turning `require_sso` on needs an active SSO connection bound to the organization and a verified domain, since members are sent to single sign-on and found by their email's domain; without both it returns `409` (`organization.sso_requirement_not_ready`). `staff_entry` is the organization's own decision: `refused` turns away the Environment's staff (a role at the Environment root), records each attempt, and ends the sessions staff have inside at their next refresh. Returns `400` (`organization.policy_loosens`) when a value would loosen the Environment, `409` when `If-Match` does not match the policy version. Requires the `hierarchy.manage` permission at the organization and emits `organization.policy.updated`.
1609
1609
  */
1610
1610
  patch: operations["ApiOrganizationsController_updatePolicy"];
1611
1611
  trace?: never;
@@ -1746,7 +1746,7 @@ interface paths {
1746
1746
  post?: never;
1747
1747
  /**
1748
1748
  * Remove one of the organization's domain claims
1749
- * @description Removes a domain claim from the organization; the bound connection stops routing and admitting that domain on the next login. Emits an `sso.domain.removed` audit row and returns `204`; responds `404` when the organization holds no claim for that domain.
1749
+ * @description Removes a domain claim from the organization; the bound connection stops routing and admitting that domain on the next login. Emits an `sso.domain.removed` audit row and returns `204`; responds `404` when the organization holds no claim for that domain, and `409` (`organization.sso_requirement_needs_domain`) while the organization requires single sign-on and this is its only verified domain: turn `require_sso` off first.
1750
1750
  */
1751
1751
  delete: operations["ApiOrganizationsController_removeDomain"];
1752
1752
  options?: never;
@@ -1790,7 +1790,7 @@ interface paths {
1790
1790
  post?: never;
1791
1791
  /**
1792
1792
  * Unbind an SSO connection from an organization
1793
- * @description Removes the binding; logins through the connection fall back to the Environment's placement. Existing memberships are untouched. Returns `404` when the connection is not bound to this organization, and `409` (`organization.sso_connection_owned_cannot_unbind`) when the organization set the connection up itself: an owned connection stays with its organization, so disable or delete it instead. Requires the `hierarchy.manage` permission at the organization and emits `organization.sso_connection.unbound`.
1793
+ * @description Removes the binding; logins through the connection fall back to the Environment's placement. Existing memberships are untouched. Returns `404` when the connection is not bound to this organization, `409` (`organization.sso_connection_owned_cannot_unbind`) when the organization set the connection up itself: an owned connection stays with its organization, so disable or delete it instead; and `409` (`organization.sso_requirement_needs_connection`) while the organization requires single sign-on and this is its only active connection: turn `require_sso` off first. Requires the `hierarchy.manage` permission at the organization and emits `organization.sso_connection.unbound`.
1794
1794
  */
1795
1795
  delete: operations["ApiOrganizationsController_unbindSsoConnection"];
1796
1796
  options?: never;
@@ -1950,7 +1950,7 @@ interface paths {
1950
1950
  post: operations["ApiOrganizationSsoConnectionController_create"];
1951
1951
  /**
1952
1952
  * Remove an organization's SSO connection
1953
- * @description Unbinds the connection from the organization, unlinks it from the Environment, and deletes it. Existing memberships stay. Refused on a developer-managed connection. Requires `hierarchy.manage` or `canopy:organization.manage` at the organization.
1953
+ * @description Unbinds the connection from the organization, unlinks it from the Environment, and deletes it. Existing memberships stay. Refused on a developer-managed connection, and with `409` (`organization.sso_requirement_needs_connection`) while the organization requires single sign-on and this is its only active connection: turn `require_sso` off first. Requires `hierarchy.manage` or `canopy:organization.manage` at the organization.
1954
1954
  */
1955
1955
  delete: operations["ApiOrganizationSsoConnectionController_remove"];
1956
1956
  options?: never;
@@ -1993,7 +1993,7 @@ interface paths {
1993
1993
  put?: never;
1994
1994
  /**
1995
1995
  * Disable an organization's SSO connection
1996
- * @description Sets the connection `disabled`; sign-ins through it stop and the row stays. Refused on a developer-managed connection. Requires `hierarchy.manage` or `canopy:organization.manage` at the organization.
1996
+ * @description Sets the connection `disabled`; sign-ins through it stop and the row stays. Refused on a developer-managed connection, and with `409` (`organization.sso_requirement_needs_connection`) while the organization requires single sign-on and this is its only active connection: turn `require_sso` off first. Requires `hierarchy.manage` or `canopy:organization.manage` at the organization.
1997
1997
  */
1998
1998
  post: operations["ApiOrganizationSsoConnectionController_disable"];
1999
1999
  delete?: never;
@@ -2999,7 +2999,7 @@ interface paths {
2999
2999
  };
3000
3000
  /**
3001
3001
  * Get an Environment's branding
3002
- * @description Returns the Environment's branding: the values the customer set (`branding`, null where unset) beside the effective result every hosted page and the organization admin portal render (`effective`: product name, logo, favicon, primary and background colors, support, terms and privacy links, and whether the attribution mark stays). Only the primary color has a default; every other unset field is `null`. `brand_removal_available` says whether the Account's plan removes the attribution mark.
3002
+ * @description Returns the Environment's branding: the values the customer set (`branding`, null where unset) beside the effective result every hosted page and the organization admin portal render (`effective`: product name, logo and dark logo, favicon, the color scheme, the primary, background, text and card colors and their dark counterparts, the layout, the background style with its gradient colors and image, the panel's heading, text and image, the corner radius, card style and card shadow, the heading and body fonts, support, terms and privacy links, the header, notice and footer content as the pages show it, the wording of any reworded texts (`text_overrides`), and whether the attribution mark stays). The color scheme (`light`), the layout (`card`), the background style (`color`), the primary color, the corner radius (`medium`), the card style (`border`) and the card shadow (`soft`) have defaults; every other unset field is `null`. `brand_removal_available` says whether the Account's plan removes the attribution mark, and `customization_available` whether it carries hosted page customization: without it `effective` reads the color scheme as `light`, the dark colors and dark logo as `null`, the layout as `card`, the background style as `color`, the gradient colors, images and panel as `null`, the text and card colors as `null`, the corner radius as `medium`, the card style as `border`, the card shadow as `soft` and the heading and body fonts as `null`, the header, notice and footer content as `null` and `text_overrides` as empty, whatever is stored.
3003
3003
  */
3004
3004
  get: operations["ApiBrandingController_getBranding"];
3005
3005
  put?: never;
@@ -3009,11 +3009,91 @@ interface paths {
3009
3009
  head?: never;
3010
3010
  /**
3011
3011
  * Change an Environment's branding
3012
- * @description Sets the Environment's branding. Every field is optional and stands on its own: send only what you want to change, send `null` to clear a field (the primary color then returns to the default blue). The product name shows in the browser tab, as the logo's alt text and in place of a missing logo; the logo shows at the top and the favicon in the tab; the primary color drives buttons and links, and the hover, link and focus shades are derived from it; the background color paints the page behind the card; the support, terms and privacy links show as "Need help?", "Terms" and "Privacy" under every hosted page. Returns `400` (`validation`) for a malformed value. Emits `environment.branding_updated`.
3012
+ * @description Sets the Environment's branding. Every field is optional and stands on its own: send only what you want to change, send `null` to clear a field (the primary color then returns to the default blue). The product name shows in the browser tab, as the logo's alt text and in place of a missing logo; the logo shows at the top and the favicon in the tab; the primary color drives buttons and links, and the hover, link and focus shades are derived from it; the background color paints the page behind the card; the text and card colors set the card and what is written on it, with secondary text, lines and field borders derived from the pair; the color scheme chooses the light look, the dark look or whichever the visitor's device asks for, and the dark colors and dark logo describe the dark look, each with a default; the layout is one centred card or a split page with a panel beside the card, which holds a heading, a short text and an image; the background style paints the background color, a two-color gradient or an image behind the card; the corner radius rounds the card, its panels, fields and buttons together; the card style gives the card a border or none, and the card shadow sets the shadow under it; the body font sets the text and the heading font the headings, each a curated font from the fonts list or the https URL of a WOFF2 file, with the system font behind it; the support, terms and privacy links show as "Need help?", "Terms" and "Privacy" under every hosted page; `header_html`, `notice_html` and `footer_html` place your own content in a bar across the top of the page, above the card and under it, kept to links, paragraphs, bold, italics, line breaks, lists and images with https addresses, everything else being removed when it is saved, so the response shows what was kept; `text_overrides` rewords the hosted page texts the text keys list names, one text at a time. Returns `400` (`validation`) for a malformed value, and `403` (`plan_feature_unavailable`) when the request sets `color_scheme`, `logo_dark_url`, a dark color, `layout`, `background_style`, a gradient color, a background or panel image, `panel_heading`, `panel_text`, a text in `text_overrides`, `header_html`, `notice_html`, `footer_html`, `text_color`, `surface_color`, `corner_radius`, `card_style`, `card_shadow`, `heading_font` or `body_font` and the Account's plan does not include hosted page customization; clearing one with `null` is always allowed. Emits `environment.branding_updated`, which records the fields that changed.
3013
3013
  */
3014
3014
  patch: operations["ApiBrandingController_updateBranding"];
3015
3015
  trace?: never;
3016
3016
  };
3017
+ "/api/v1/branding/preview-pages": {
3018
+ parameters: {
3019
+ query?: never;
3020
+ header?: never;
3021
+ path?: never;
3022
+ cookie?: never;
3023
+ };
3024
+ /**
3025
+ * List the hosted pages and emails a preview can render
3026
+ * @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.
3027
+ */
3028
+ get: operations["ApiBrandingController_getPreviewPages"];
3029
+ put?: never;
3030
+ post?: never;
3031
+ delete?: never;
3032
+ options?: never;
3033
+ head?: never;
3034
+ patch?: never;
3035
+ trace?: never;
3036
+ };
3037
+ "/api/v1/branding/fonts": {
3038
+ parameters: {
3039
+ query?: never;
3040
+ header?: never;
3041
+ path?: never;
3042
+ cookie?: never;
3043
+ };
3044
+ /**
3045
+ * List the fonts hosted pages can be set in
3046
+ * @description Lists the curated fonts: each with the `id` that `heading_font` and `body_font` take, its `name`, and its `kind` (`sans-serif`, `serif` or `monospace`). Canopy serves these fonts from its own origin, in a regular and a semibold weight and in Latin characters, so a person's browser asks no third party for one. A branding can name a font outside this list by the https URL of a WOFF2 file instead. Returns `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
3047
+ */
3048
+ get: operations["ApiBrandingController_getFonts"];
3049
+ put?: never;
3050
+ post?: never;
3051
+ delete?: never;
3052
+ options?: never;
3053
+ head?: never;
3054
+ patch?: never;
3055
+ trace?: never;
3056
+ };
3057
+ "/api/v1/branding/text-keys": {
3058
+ parameters: {
3059
+ query?: never;
3060
+ header?: never;
3061
+ path?: never;
3062
+ cookie?: never;
3063
+ };
3064
+ /**
3065
+ * List the hosted page texts whose wording can be changed
3066
+ * @description Lists the texts on hosted pages that `text_overrides` can reword: the headings, labels, button labels and helper text of the sign-in, sign-up, account recovery, email verification, invitation, multi-factor challenge and sign-out pages. Each entry has the `key` an override names it by, its `locale`, the `page` it shows on with that page's title and a `preview_state` that shows it, a plain `name`, its `kind`, its `default` wording, the `placeholders` an override must keep, and its `max_length`. Wording that tells a person what happened to their account (errors, refusals, expiry notices and warnings) is not listed and cannot be changed. Read this list before writing `text_overrides`. Returns `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
3067
+ */
3068
+ get: operations["ApiBrandingController_getTextKeys"];
3069
+ put?: never;
3070
+ post?: never;
3071
+ delete?: never;
3072
+ options?: never;
3073
+ head?: never;
3074
+ patch?: never;
3075
+ trace?: never;
3076
+ };
3077
+ "/api/v1/branding/preview": {
3078
+ parameters: {
3079
+ query?: never;
3080
+ header?: never;
3081
+ path?: never;
3082
+ cookie?: never;
3083
+ };
3084
+ get?: never;
3085
+ put?: never;
3086
+ /**
3087
+ * Preview a hosted page or email in a branding
3088
+ * @description Renders one hosted page, in one of its states, or one customer email, in the Environment's branding with the unsaved changes in `branding` laid over it, so a branding change can be checked before it is saved. Nothing is saved, and no session or person is involved: the page shows sample data. `page` and `state` are ids from the preview list, and `scheme` renders a page in its light or its dark look whatever the color scheme. Returns the whole HTML document, which works without scripts. Returns `400` (`branding.preview_page_unknown`) for a page or state that does not exist, or `validation` for a malformed branding value, and `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
3089
+ */
3090
+ post: operations["ApiBrandingController_preview"];
3091
+ delete?: never;
3092
+ options?: never;
3093
+ head?: never;
3094
+ patch?: never;
3095
+ trace?: never;
3096
+ };
3017
3097
  "/api/v1/token-claims": {
3018
3098
  parameters: {
3019
3099
  query?: never;
@@ -3462,7 +3542,7 @@ interface paths {
3462
3542
  post?: never;
3463
3543
  /**
3464
3544
  * Delete an SSO connection
3465
- * @description Permanently deletes an SSO connection and its configuration from the Account. Emits an `sso.connection.deleted` audit row and returns `204` with no body; responds `404` when the connection is not found.
3545
+ * @description Permanently deletes an SSO connection and its configuration from the Account. Emits an `sso.connection.deleted` audit row and returns `204` with no body; responds `404` when the connection is not found, and `409` (`organization.sso_requirement_needs_connection`) while an organization that requires single sign-on has this as its only active connection: turn that organization's `require_sso` off first.
3466
3546
  */
3467
3547
  delete: operations["ApiSsoController_remove"];
3468
3548
  options?: never;
@@ -3505,7 +3585,7 @@ interface paths {
3505
3585
  put?: never;
3506
3586
  /**
3507
3587
  * Disable an SSO connection
3508
- * @description Sets an active connection's status to `disabled`, stopping all login flows through it while preserving the row and its configuration for later re-activation. Emits an `sso.connection.disabled_by_user` audit row and returns the updated connection. Responds `404` when the connection is not found in the Account.
3588
+ * @description Sets an active connection's status to `disabled`, stopping all login flows through it while preserving the row and its configuration for later re-activation. Emits an `sso.connection.disabled_by_user` audit row and returns the updated connection. Refused with `409` (`organization.sso_requirement_needs_connection`) while it is the only active connection of an organization that requires single sign-on: turn `require_sso` off first. Responds `404` when the connection is not found in the Account.
3509
3589
  */
3510
3590
  post: operations["ApiSsoController_disable"];
3511
3591
  delete?: never;
@@ -4333,7 +4413,7 @@ interface paths {
4333
4413
  head?: never;
4334
4414
  /**
4335
4415
  * Update OAuth client
4336
- * @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`; 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`). The secret is not rotated here.
4416
+ * @description Updates an OAuth client's mutable fields (`name`, `redirect_uris`, `post_logout_redirect_uris`, `backchannel_logout_uri`, `scopes`, `is_active`, `invite_redirect_url`, `initiate_login_uri`, and for a web client `branding`, the settings it carries over its Environment's branding; for a machine client `allowed_audiences` and `token_exchange`, which adds or removes the token-exchange grant in its `grant_types`), scoped to the current Environment. A `scopes` value outside `openid`, `profile`, `email`, `org` and `permissions` is refused with `400` (`oauth.client_scope_unknown`). Returns the updated client, or `404` when the client is not found in this Environment. Send `If-Match` with the client's `version` to refuse a stale write (`409 version_mismatch`). Setting a `branding` value answers `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization, and `400` (`oauth.machine_client_branding_invalid`) on a machine client; returning one to the Environment's with `null` is always allowed. The secret is not rotated here.
4337
4417
  */
4338
4418
  patch: operations["ApiOAuthClientsController_update"];
4339
4419
  trace?: never;
@@ -4699,7 +4779,7 @@ interface paths {
4699
4779
  };
4700
4780
  /**
4701
4781
  * Get the Account's plan-feature entitlements
4702
- * @description Returns the Account's plan-feature map — one boolean per gated feature (`sso`, `scim`, `audit_destinations`) — honoring the effective (grace-period) plan and Enterprise overrides. Requires `billing.view`. Usage counts and plan identity stay on the `billing.view`-gated usage endpoint.
4782
+ * @description Returns the Account's plan-feature map — one boolean per gated feature (`sso`, `scim`, `audit_destinations`, `hosted_page_customization`) — honoring the effective (grace-period) plan and Enterprise overrides. Requires `billing.view`. Usage counts and plan identity stay on the `billing.view`-gated usage endpoint.
4703
4783
  */
4704
4784
  get: operations["ApiBillingController_getEntitlements"];
4705
4785
  put?: never;
@@ -5099,7 +5179,7 @@ interface components {
5099
5179
  password: string;
5100
5180
  };
5101
5181
  IdentitySessionResponseDto: {
5102
- /** @description The session's current refresh token id: what `DELETE /identities/:id/sessions/:sessionId` takes. It changes on every refresh. */
5182
+ /** @description What `DELETE /identities/:id/sessions/:sessionId` takes: the session's current refresh token id, which changes on every refresh, or, for a hosted sign-in no application has exchanged a code for yet, its session id. */
5103
5183
  id: string;
5104
5184
  /** Format: date-time */
5105
5185
  created_at: string;
@@ -5870,6 +5950,8 @@ interface components {
5870
5950
  /** @description The methods the organization keeps of the Environment's, or null to inherit them all. Each is `password`, `email_otp`, `passkey`, `sso`, a social provider (`google`, `github`, `microsoft`, `apple`), or `oidc:<slug>` for a custom OpenID Connect provider. */
5871
5951
  allowed_sign_in_methods?: string[] | null;
5872
5952
  require_sso: boolean;
5953
+ /** @description Whether `require_sso` can be turned on: the organization has an active SSO connection bound to it and a verified domain. */
5954
+ require_sso_ready: boolean;
5873
5955
  /**
5874
5956
  * @description Whether the Environment's staff (identities holding a role at the Environment root) may enter this organization. `allowed` until the organization refuses them.
5875
5957
  * @enum {string}
@@ -5902,7 +5984,7 @@ interface components {
5902
5984
  mfa_after_sso?: "exempt" | "require" | null;
5903
5985
  /** @description The sign-in methods this organization's members may use. A non-empty subset of the methods the Environment offers (`password` unless the Environment turned it off, `email_otp` and `passkey` where the Environment turned them on, each social provider it enabled, and `sso`); a method the Environment does not offer is refused with `organization.policy_loosens`. `null` inherits the Environment's. While `require_sso` is on, SSO is the only method whatever this says. Each is `password`, `email_otp`, `passkey`, `sso`, a social provider (`google`, `github`, `microsoft`, `apple`), or `oidc:<slug>` for a custom OpenID Connect provider. */
5904
5986
  allowed_sign_in_methods?: string[] | null;
5905
- /** @description Members must sign in through SSO. Password and email-code logins are refused for the organization's members and for any email whose domain routes to a connection bound to this organization. */
5987
+ /** @description Members must sign in through SSO. Password and email-code logins are refused for the organization's members and for any email whose domain routes to a connection bound to this organization. Turning it on is refused with `organization.sso_requirement_not_ready` until the organization has an active SSO connection bound to it and a verified domain. */
5906
5988
  require_sso?: boolean;
5907
5989
  /**
5908
5990
  * @description Whether the Environment's staff (identities holding a role at the Environment root) may enter this organization. `refused` refuses each entry, records it in the organization's activity, and ends the sessions staff already have inside at their next refresh.
@@ -7113,32 +7195,161 @@ interface components {
7113
7195
  StoredBrandingDto: {
7114
7196
  product_name: string | null;
7115
7197
  logo_url: string | null;
7198
+ logo_dark_url: string | null;
7116
7199
  /** @enum {string|null} */
7117
7200
  logo_kind: "full" | "icon" | null;
7118
7201
  favicon_url: string | null;
7202
+ /** @enum {string|null} */
7203
+ color_scheme: "light" | "dark" | "system" | null;
7119
7204
  primary_color: string | null;
7120
7205
  background_color: string | null;
7206
+ text_color: string | null;
7207
+ surface_color: string | null;
7208
+ primary_dark_color: string | null;
7209
+ background_dark_color: string | null;
7210
+ text_dark_color: string | null;
7211
+ surface_dark_color: string | null;
7212
+ /** @enum {string|null} */
7213
+ layout: "card" | "split" | null;
7214
+ /** @enum {string|null} */
7215
+ background_style: "color" | "gradient" | "image" | null;
7216
+ gradient_start_color: string | null;
7217
+ gradient_end_color: string | null;
7218
+ gradient_start_dark_color: string | null;
7219
+ gradient_end_dark_color: string | null;
7220
+ background_image_url: string | null;
7221
+ background_image_dark_url: string | null;
7222
+ panel_heading: string | null;
7223
+ panel_text: string | null;
7224
+ panel_image_url: string | null;
7225
+ panel_image_dark_url: string | null;
7226
+ /** @enum {string|null} */
7227
+ corner_radius: "none" | "small" | "medium" | "large" | null;
7228
+ /** @enum {string|null} */
7229
+ card_style: "border" | "flat" | null;
7230
+ /** @enum {string|null} */
7231
+ card_shadow: "none" | "soft" | "strong" | null;
7232
+ /** @description A curated font's id, or the https URL of a WOFF2 file. */
7233
+ heading_font: string | null;
7234
+ /** @description A curated font's id, or the https URL of a WOFF2 file. */
7235
+ body_font: string | null;
7121
7236
  support_url: string | null;
7122
7237
  terms_url: string | null;
7123
7238
  privacy_url: string | null;
7239
+ header_html: string | null;
7240
+ notice_html: string | null;
7241
+ footer_html: string | null;
7242
+ /**
7243
+ * @description The customer's own wording for hosted page texts, by locale and then by the text's key. Empty where none is set.
7244
+ * @example {
7245
+ * "en": {
7246
+ * "authHosted.login.signInHeading": "Sign in to Acme"
7247
+ * }
7248
+ * }
7249
+ */
7250
+ text_overrides: {
7251
+ [key: string]: {
7252
+ [key: string]: string;
7253
+ };
7254
+ };
7124
7255
  };
7125
7256
  EffectiveBrandingDto: {
7126
7257
  /** @description Null when the customer set none; surfaces then show no name. */
7127
7258
  product_name: string | null;
7128
7259
  logo_url: string | null;
7260
+ /** @description The logo the dark look shows in place of `logo_url`, or null to show the same one. Null on a plan without hosted page customization, whatever is stored. */
7261
+ logo_dark_url: string | null;
7129
7262
  /**
7130
7263
  * @description `full`: the logo is shown alone. `icon`: it is shown at icon size with the product name beside it.
7131
7264
  * @enum {string}
7132
7265
  */
7133
7266
  logo_kind: "full" | "icon";
7134
7267
  favicon_url: string | null;
7268
+ /**
7269
+ * @description Which look hosted pages wear: `light`, `dark`, or `system` for whichever the visitor's device asks for. `light` when unset, and on a plan without hosted page customization.
7270
+ * @enum {string}
7271
+ */
7272
+ color_scheme: "light" | "dark" | "system";
7135
7273
  /** @description Six-digit hex. */
7136
7274
  primary_color: string;
7137
7275
  /** @description Six-digit hex, or null for the neutral grey. */
7138
7276
  background_color: string | null;
7277
+ /** @description Six-digit hex for text on the card, or null for the neutral ink. Null on a plan without hosted page customization, whatever is stored. */
7278
+ text_color: string | null;
7279
+ /** @description Six-digit hex for the card, or null for white. Null on a plan without hosted page customization, whatever is stored. */
7280
+ surface_color: string | null;
7281
+ /** @description Six-digit hex for buttons and links in the dark look, or null to derive it from `primary_color`. Null on a plan without hosted page customization, whatever is stored. */
7282
+ primary_dark_color: string | null;
7283
+ /** @description Six-digit hex for the page behind the card in the dark look, or null for the neutral near-black. Null on a plan without hosted page customization, whatever is stored. */
7284
+ background_dark_color: string | null;
7285
+ /** @description Six-digit hex for text on the card in the dark look, or null for the neutral light ink. Null on a plan without hosted page customization, whatever is stored. */
7286
+ text_dark_color: string | null;
7287
+ /** @description Six-digit hex for the card in the dark look, or null for the neutral dark card. Null on a plan without hosted page customization, whatever is stored. */
7288
+ surface_dark_color: string | null;
7289
+ /**
7290
+ * @description How the pages are laid out: one centred `card`, or `split` with a panel beside it. `card` when unset, and on a plan without hosted page customization.
7291
+ * @enum {string}
7292
+ */
7293
+ layout: "card" | "split";
7294
+ /**
7295
+ * @description What is painted behind the card in the `card` layout: the background `color`, a `gradient` or an `image`. `color` when unset, and on a plan without hosted page customization.
7296
+ * @enum {string}
7297
+ */
7298
+ background_style: "color" | "gradient" | "image";
7299
+ /** @description Six-digit hex at the top of a gradient background, or null for the background color. Null on a plan without hosted page customization, whatever is stored. */
7300
+ gradient_start_color: string | null;
7301
+ /** @description Six-digit hex at the bottom of a gradient background, or null for the background color. Null on a plan without hosted page customization, whatever is stored. */
7302
+ gradient_end_color: string | null;
7303
+ /** @description The dark look's color at the top of the gradient, or null to darken the light look's. Null on a plan without hosted page customization, whatever is stored. */
7304
+ gradient_start_dark_color: string | null;
7305
+ /** @description The dark look's color at the bottom of the gradient, or null to darken the light look's. Null on a plan without hosted page customization, whatever is stored. */
7306
+ gradient_end_dark_color: string | null;
7307
+ /** @description The image behind the card, or null for none. Null on a plan without hosted page customization, whatever is stored. */
7308
+ background_image_url: string | null;
7309
+ /** @description The image the dark look shows behind the card, or null to dim the same one. Null on a plan without hosted page customization, whatever is stored. */
7310
+ background_image_dark_url: string | null;
7311
+ /** @description The heading on the split layout's panel, or null for none. Null on a plan without hosted page customization, whatever is stored. */
7312
+ panel_heading: string | null;
7313
+ /** @description The text under the panel's heading, or null for none. Null on a plan without hosted page customization, whatever is stored. */
7314
+ panel_text: string | null;
7315
+ /** @description The image that fills the split layout's panel, or null to fill it from the primary color. Null on a plan without hosted page customization, whatever is stored. */
7316
+ panel_image_url: string | null;
7317
+ /** @description The image the dark look shows on the panel, or null to show the same one. Null on a plan without hosted page customization, whatever is stored. */
7318
+ panel_image_dark_url: string | null;
7319
+ /**
7320
+ * @description How round the corners are. `medium` when unset, and on a plan without hosted page customization.
7321
+ * @enum {string}
7322
+ */
7323
+ corner_radius: "none" | "small" | "medium" | "large";
7324
+ /**
7325
+ * @description Whether the card has a border. `border` when unset, and on a plan without hosted page customization.
7326
+ * @enum {string}
7327
+ */
7328
+ card_style: "border" | "flat";
7329
+ /**
7330
+ * @description The shadow under the card. `soft` when unset, and on a plan without hosted page customization.
7331
+ * @enum {string}
7332
+ */
7333
+ card_shadow: "none" | "soft" | "strong";
7334
+ /** @description The font headings are set in: a curated font's id or the https URL of a WOFF2 file. Null follows `body_font`, and is what a plan without hosted page customization reads. */
7335
+ heading_font: string | null;
7336
+ /** @description The font everything but headings is set in, likewise. Null is the system font, and is what a plan without hosted page customization reads. */
7337
+ body_font: string | null;
7139
7338
  support_url: string | null;
7140
7339
  terms_url: string | null;
7141
7340
  privacy_url: string | null;
7341
+ /** @description The content in the bar across the top of hosted pages, as the pages show it, or null for none. Null on a plan without hosted page customization, whatever is stored. */
7342
+ header_html: string | null;
7343
+ /** @description The content in the notice above the card, likewise. */
7344
+ notice_html: string | null;
7345
+ /** @description The content under the card, likewise. */
7346
+ footer_html: string | null;
7347
+ /** @description The wording the hosted pages show in place of their own, by locale and then by the text's key. Empty where none is set, and on a plan without hosted page customization. */
7348
+ text_overrides: {
7349
+ [key: string]: {
7350
+ [key: string]: string;
7351
+ };
7352
+ };
7142
7353
  /** @description Whether the attribution mark stays on hosted pages and the portal. False only on a plan with brand removal. */
7143
7354
  attribution: boolean;
7144
7355
  };
@@ -7148,6 +7359,8 @@ interface components {
7148
7359
  effective: components["schemas"]["EffectiveBrandingDto"];
7149
7360
  /** @description Whether the Account's plan removes the attribution mark. When false, the mark stays whatever the customer sets. */
7150
7361
  brand_removal_available: boolean;
7362
+ /** @description Whether the Account's plan carries hosted page customization. When false, the color scheme, the dark colors and dark logo, the layout, the background style with its gradient and image, the panel, the header, notice and footer content, the texts' wording, `text_color`, `surface_color`, `corner_radius`, `card_style`, `card_shadow`, `heading_font` and `body_font` cannot be set and the pages ignore any already stored. */
7363
+ customization_available: boolean;
7151
7364
  /** @description The Environment's optimistic-lock version; send it back as `If-Match` on PATCH. Any change to the Environment moves it. */
7152
7365
  version: number;
7153
7366
  };
@@ -7156,6 +7369,8 @@ interface components {
7156
7369
  product_name?: string | null;
7157
7370
  /** @description Absolute https URL of the logo shown at the top of hosted pages, the portal and emails to the Environment's users. Emails show it only when the image is a PNG, JPEG or GIF, which every email client displays; with any other format they show the product name. Null clears it. */
7158
7371
  logo_url?: string | null;
7372
+ /** @description Absolute https URL of the logo the dark look of hosted pages shows in place of `logo_url`: a version of the same logo that reads on a dark card. It is used only when `logo_url` is set, and `logo_kind` describes both. Emails never show it. Null shows `logo_url` in both looks. Needs the `hosted_page_customization` plan feature to set. */
7373
+ logo_dark_url?: string | null;
7159
7374
  /**
7160
7375
  * @description What the logo image is. `full`: a complete logo that already carries the product name, shown alone. `icon`: a square mark, shown at icon size with the product name beside it. Null returns to `full`.
7161
7376
  * @enum {string|null}
@@ -7163,22 +7378,288 @@ interface components {
7163
7378
  logo_kind?: "full" | "icon" | null;
7164
7379
  /** @description Absolute https URL of the browser-tab icon on hosted pages: a square PNG or ICO of at least 32 px. Null clears it. */
7165
7380
  favicon_url?: string | null;
7381
+ /**
7382
+ * @description Which look hosted pages wear. `light`: the look the colour fields describe. `dark`: the look their dark counterparts describe (`primary_dark_color`, `background_dark_color`, `text_dark_color`, `surface_dark_color`, `logo_dark_url`), each with a default. `system`: whichever the visitor's device asks for, chosen by the browser with no script. A QR code and the CAPTCHA keep a light ground in both, and emails are always light. Null returns to `light`. Needs the `hosted_page_customization` plan feature to set.
7383
+ * @enum {string|null}
7384
+ */
7385
+ color_scheme?: "light" | "dark" | "system" | null;
7166
7386
  /**
7167
7387
  * @description Six-digit hex colour for buttons and links on hosted pages and the portal. Hover, link, focus and tint shades are derived from it so each meets its contrast rule. Null returns to the default blue.
7168
7388
  * @example #B93C0C
7169
7389
  */
7170
7390
  primary_color?: string | null;
7171
7391
  /**
7172
- * @description Six-digit hex colour for the page behind the card on hosted pages. The card stays white; footer text is chosen to reach 4.5:1 against it. Null returns to the neutral grey.
7392
+ * @description Six-digit hex colour for the page behind the card on hosted pages. Footer text is chosen to reach 4.5:1 against it. Null returns to the neutral grey.
7173
7393
  * @example #0B1F3A
7174
7394
  */
7175
7395
  background_color?: string | null;
7396
+ /**
7397
+ * @description Six-digit hex colour for text on the card of hosted pages. Secondary text, lines and field borders are derived from it, and it is moved away from the card colour until it reaches 4.5:1. Null returns to the neutral ink. Needs the `hosted_page_customization` plan feature to set.
7398
+ * @example #1F2937
7399
+ */
7400
+ text_color?: string | null;
7401
+ /**
7402
+ * @description Six-digit hex colour for the card on hosted pages, and for the fields and panels on it. Links and focus rings are corrected to stay readable on it. Null returns to white. Needs the `hosted_page_customization` plan feature to set.
7403
+ * @example #FFFDF8
7404
+ */
7405
+ surface_color?: string | null;
7406
+ /**
7407
+ * @description Six-digit hex colour for buttons and links in the dark look of hosted pages. Null derives it from `primary_color`, lightened where it would not show on the dark card. Needs the `hosted_page_customization` plan feature to set.
7408
+ * @example #FDBA74
7409
+ */
7410
+ primary_dark_color?: string | null;
7411
+ /**
7412
+ * @description Six-digit hex colour for the page behind the card in the dark look of hosted pages. Null is a neutral near-black. Needs the `hosted_page_customization` plan feature to set.
7413
+ * @example #0B0B0F
7414
+ */
7415
+ background_dark_color?: string | null;
7416
+ /**
7417
+ * @description Six-digit hex colour for text on the card in the dark look of hosted pages, corrected against the dark card the way `text_color` is against the light one. Null is a neutral light ink. Needs the `hosted_page_customization` plan feature to set.
7418
+ * @example #F4F4F5
7419
+ */
7420
+ text_dark_color?: string | null;
7421
+ /**
7422
+ * @description Six-digit hex colour for the card in the dark look of hosted pages, and for the fields and panels on it. Null is a neutral dark card. Needs the `hosted_page_customization` plan feature to set.
7423
+ * @example #18181B
7424
+ */
7425
+ surface_dark_color?: string | null;
7426
+ /**
7427
+ * @description How hosted pages are laid out. `card`: one card centred on the page. `split`: the card on one side and a panel on the other, holding `panel_heading`, `panel_text` and `panel_image_url`; on a narrow screen the panel becomes a band above the card that shows the heading. Null returns to `card`. Needs the `hosted_page_customization` plan feature to set.
7428
+ * @enum {string|null}
7429
+ */
7430
+ layout?: "card" | "split" | null;
7431
+ /**
7432
+ * @description What is painted behind the card in the `card` layout. `color`: `background_color`. `gradient`: `gradient_start_color` at the top to `gradient_end_color` at the bottom. `image`: `background_image_url`, covering the page, with `background_color` behind it while it loads. The `split` layout ignores it. Null returns to `color`. Needs the `hosted_page_customization` plan feature to set.
7433
+ * @enum {string|null}
7434
+ */
7435
+ background_style?: "color" | "gradient" | "image" | null;
7436
+ /**
7437
+ * @description Six-digit hex colour at the top of the page when `background_style` is `gradient`. Null uses the background colour. Needs the `hosted_page_customization` plan feature to set.
7438
+ * @example #EEF2FF
7439
+ */
7440
+ gradient_start_color?: string | null;
7441
+ /**
7442
+ * @description Six-digit hex colour at the bottom of the page when `background_style` is `gradient`; footer text is chosen to reach 4.5:1 against it. Null uses the background colour. Needs the `hosted_page_customization` plan feature to set.
7443
+ * @example #C7D2FE
7444
+ */
7445
+ gradient_end_color?: string | null;
7446
+ /**
7447
+ * @description The dark look's colour at the top of the gradient. Null darkens `gradient_start_color`. Needs the `hosted_page_customization` plan feature to set.
7448
+ * @example #0B1020
7449
+ */
7450
+ gradient_start_dark_color?: string | null;
7451
+ /**
7452
+ * @description The dark look's colour at the bottom of the gradient. Null darkens `gradient_end_color`. Needs the `hosted_page_customization` plan feature to set.
7453
+ * @example #111827
7454
+ */
7455
+ gradient_end_dark_color?: string | null;
7456
+ /**
7457
+ * @description The image behind the card when `background_style` is `image`. An absolute https URL holding no quote, bracket or space. Null shows the background colour. Needs the `hosted_page_customization` plan feature to set.
7458
+ * @example https://cdn.example.com/brand/background-image.jpg
7459
+ */
7460
+ background_image_url?: string | null;
7461
+ /**
7462
+ * @description The image the dark look shows behind the card. Null dims `background_image_url`. An absolute https URL holding no quote, bracket or space. Needs the `hosted_page_customization` plan feature to set.
7463
+ * @example https://cdn.example.com/brand/background-image-dark.jpg
7464
+ */
7465
+ background_image_dark_url?: string | null;
7466
+ /** @description The heading on the `split` layout's panel, as plain text. Null shows none. Needs the `hosted_page_customization` plan feature to set. */
7467
+ panel_heading?: string | null;
7468
+ /** @description A short paragraph under the panel's heading, as plain text; hidden on a narrow screen. Null shows none. Needs the `hosted_page_customization` plan feature to set. */
7469
+ panel_text?: string | null;
7470
+ /**
7471
+ * @description The image that fills the `split` layout's panel, darkened under the heading and text so they stay readable. An absolute https URL holding no quote, bracket or space. Null fills the panel from the primary colour. Needs the `hosted_page_customization` plan feature to set.
7472
+ * @example https://cdn.example.com/brand/panel-image.jpg
7473
+ */
7474
+ panel_image_url?: string | null;
7475
+ /**
7476
+ * @description The image the dark look shows on the panel. Null shows `panel_image_url`. An absolute https URL holding no quote, bracket or space. Needs the `hosted_page_customization` plan feature to set.
7477
+ * @example https://cdn.example.com/brand/panel-image-dark.jpg
7478
+ */
7479
+ panel_image_dark_url?: string | null;
7480
+ /**
7481
+ * @description How round the corners on hosted pages are. One setting moves the card, its panels, fields and buttons in proportion; pills stay pills. Null returns to `medium`. Needs the `hosted_page_customization` plan feature to set.
7482
+ * @enum {string|null}
7483
+ */
7484
+ corner_radius?: "none" | "small" | "medium" | "large" | null;
7485
+ /**
7486
+ * @description Whether the card has a border. `border`: a hairline border. `flat`: none. Null returns to `border`. Needs the `hosted_page_customization` plan feature to set.
7487
+ * @enum {string|null}
7488
+ */
7489
+ card_style?: "border" | "flat" | null;
7490
+ /**
7491
+ * @description The shadow under the card, apart from its border. `none`, `soft` or `strong`. Null returns to `soft`. Needs the `hosted_page_customization` plan feature to set.
7492
+ * @enum {string|null}
7493
+ */
7494
+ card_shadow?: "none" | "soft" | "strong" | null;
7495
+ /**
7496
+ * @description The font headings on hosted pages are set in: the `id` of a curated font from `GET /api/v1/branding/fonts`, which Canopy serves itself, or the absolute https URL of a WOFF2 file, whose host must send CORS headers. A font that fails to load leaves the system font. Null returns to the body font. Needs the `hosted_page_customization` plan feature to set.
7497
+ * @example inter
7498
+ */
7499
+ heading_font?: string | null;
7500
+ /**
7501
+ * @description The font everything but headings on hosted pages is set in: the `id` of a curated font from `GET /api/v1/branding/fonts`, or the absolute https URL of a WOFF2 file, whose host must send CORS headers. A font that fails to load leaves the system font. Null returns to the system font. Needs the `hosted_page_customization` plan feature to set.
7502
+ * @example https://cdn.example.com/fonts/brand.woff2
7503
+ */
7504
+ body_font?: string | null;
7176
7505
  /** @description Where "Need help?" points: an https URL or a mailto: address. Null hides it. */
7177
7506
  support_url?: string | null;
7178
7507
  /** @description Absolute https URL of the customer's terms, linked as "Terms" in the hosted pages' footer. Null hides it. */
7179
7508
  terms_url?: string | null;
7180
7509
  /** @description Absolute https URL of the customer's privacy policy, linked as "Privacy" in the hosted pages' footer. Null hides it. */
7181
7510
  privacy_url?: string | null;
7511
+ /**
7512
+ * @description Your own content in a bar across the top of the page on hosted pages, as HTML. Only `a`, `p`, `strong`, `em`, `br`, `ul`, `ol`, `li` and `img` are kept, with a link's `href` and an image's `src` and `alt`, each an absolute https address; scripts, styles, forms, frames, event attributes and every other element or attribute are removed when it is saved and again when a page is drawn, and the response shows what was kept, which can be sent back unchanged. The limit applies to the content as written and as kept, where a bare `&`, `<` or `>` in its words is written as an entity. Links open in a new tab. It sits outside the card, so it cannot cover or imitate the form. Null shows none. Needs the `hosted_page_customization` plan feature to set.
7513
+ * @example <p>Need a hand? <a href="https://acme.example/help">Ask us</a>.</p>
7514
+ */
7515
+ header_html?: string | null;
7516
+ /**
7517
+ * @description Your own content in a notice above the card, for a message such as planned maintenance on hosted pages, as HTML. Only `a`, `p`, `strong`, `em`, `br`, `ul`, `ol`, `li` and `img` are kept, with a link's `href` and an image's `src` and `alt`, each an absolute https address; scripts, styles, forms, frames, event attributes and every other element or attribute are removed when it is saved and again when a page is drawn, and the response shows what was kept, which can be sent back unchanged. The limit applies to the content as written and as kept, where a bare `&`, `<` or `>` in its words is written as an entity. Links open in a new tab. It sits outside the card, so it cannot cover or imitate the form. Null shows none. Needs the `hosted_page_customization` plan feature to set.
7518
+ * @example <p>Need a hand? <a href="https://acme.example/help">Ask us</a>.</p>
7519
+ */
7520
+ notice_html?: string | null;
7521
+ /**
7522
+ * @description Your own content under the card, above the support, terms and privacy links on hosted pages, as HTML. Only `a`, `p`, `strong`, `em`, `br`, `ul`, `ol`, `li` and `img` are kept, with a link's `href` and an image's `src` and `alt`, each an absolute https address; scripts, styles, forms, frames, event attributes and every other element or attribute are removed when it is saved and again when a page is drawn, and the response shows what was kept, which can be sent back unchanged. The limit applies to the content as written and as kept, where a bare `&`, `<` or `>` in its words is written as an entity. Links open in a new tab. It sits outside the card, so it cannot cover or imitate the form. Null shows none. Needs the `hosted_page_customization` plan feature to set.
7523
+ * @example <p>Need a hand? <a href="https://acme.example/help">Ask us</a>.</p>
7524
+ */
7525
+ footer_html?: string | null;
7526
+ /**
7527
+ * @description Your own wording for texts on hosted pages, by locale and then by the text's `key` from `GET /api/v1/branding/text-keys`. Each text set here replaces the stored wording, `null` returns that text to its default, and a text left out keeps what is stored; `null` for the whole value returns every text to its default. Wording is plain text without `<` or `>`, no longer than the text's `max_length`, and keeps each of the text's `placeholders` in double braces. A locale the pages are not written in, a key outside the list, or wording that breaks these rules is refused. Needs the `hosted_page_customization` plan feature to set.
7528
+ * @example {
7529
+ * "en": {
7530
+ * "authHosted.login.signInHeading": "Sign in to Acme"
7531
+ * }
7532
+ * }
7533
+ */
7534
+ text_overrides?: {
7535
+ [key: string]: {
7536
+ [key: string]: string | null;
7537
+ };
7538
+ } | null;
7539
+ };
7540
+ BrandingPreviewStateDto: {
7541
+ /** @example WrongPassword */
7542
+ id: string;
7543
+ /** @example Wrong password */
7544
+ label: string;
7545
+ };
7546
+ BrandingPreviewPageDto: {
7547
+ /** @example login */
7548
+ id: string;
7549
+ /**
7550
+ * @description `page` for a hosted page, `email` for an email.
7551
+ * @enum {string}
7552
+ */
7553
+ kind: "page" | "email";
7554
+ /**
7555
+ * @description The group the page sits in, for listing.
7556
+ * @example Sign-in
7557
+ */
7558
+ group: string;
7559
+ /** @example Sign in */
7560
+ title: string;
7561
+ states: components["schemas"]["BrandingPreviewStateDto"][];
7562
+ };
7563
+ BrandingFontDto: {
7564
+ /**
7565
+ * @description What `heading_font` and `body_font` take.
7566
+ * @example inter
7567
+ */
7568
+ id: string;
7569
+ /**
7570
+ * @description The font's name.
7571
+ * @example Inter
7572
+ */
7573
+ name: string;
7574
+ /**
7575
+ * @description `sans-serif`, `serif` or `monospace`.
7576
+ * @enum {string}
7577
+ */
7578
+ kind: "sans-serif" | "serif" | "monospace";
7579
+ };
7580
+ BrandingTextKeyDto: {
7581
+ /**
7582
+ * @description What `text_overrides` names the text by.
7583
+ * @example authHosted.login.signInHeading
7584
+ */
7585
+ key: string;
7586
+ /**
7587
+ * @description The locale this entry's wording is in.
7588
+ * @example en
7589
+ */
7590
+ locale: string;
7591
+ /**
7592
+ * @description The hosted page the text shows on, by the `id` the preview list returns.
7593
+ * @example login
7594
+ */
7595
+ page: string;
7596
+ /**
7597
+ * @description That page's title.
7598
+ * @example Sign in
7599
+ */
7600
+ page_title: string;
7601
+ /**
7602
+ * @description A state of that page that shows the text, by the `id` the preview list returns: what to preview to see it.
7603
+ * @example Password
7604
+ */
7605
+ preview_state: string;
7606
+ /**
7607
+ * @description A plain name for the text.
7608
+ * @example Heading
7609
+ */
7610
+ name: string;
7611
+ /**
7612
+ * @description What the text is: a `heading`, `label`, `button` or `helper`.
7613
+ * @enum {string}
7614
+ */
7615
+ kind: "heading" | "label" | "button" | "helper";
7616
+ /**
7617
+ * @description The wording the page shows when the text is not overridden.
7618
+ * @example Sign in
7619
+ */
7620
+ default: string;
7621
+ /**
7622
+ * @description The placeholders an override must keep, each written in double braces, such as `{{name}}`. Empty for most texts.
7623
+ * @example [
7624
+ * "name"
7625
+ * ]
7626
+ */
7627
+ placeholders: string[];
7628
+ /**
7629
+ * @description The longest an override may be, in characters.
7630
+ * @example 80
7631
+ */
7632
+ max_length: number;
7633
+ };
7634
+ BrandingPreviewResponseDto: {
7635
+ /** @enum {string} */
7636
+ kind: "page" | "email";
7637
+ /**
7638
+ * @description The page's title, or the email's subject.
7639
+ * @example Sign in
7640
+ */
7641
+ title: string;
7642
+ /** @description The whole HTML document. A hosted page's styles are inline and its scripts are referred to by paths on the API's origin (`/auth/static/...`); every hosted page works without them, so it can be shown in a sandboxed frame that runs no scripts. */
7643
+ html: string;
7644
+ };
7645
+ BrandingPreviewRequestDto: {
7646
+ /**
7647
+ * @description The hosted page or email to render, by the `id` the preview list returns.
7648
+ * @example login
7649
+ */
7650
+ page: string;
7651
+ /**
7652
+ * @description One of that page's states, by the `id` the preview list returns. An email has a single state, `default`.
7653
+ * @example WrongPassword
7654
+ */
7655
+ state: string;
7656
+ /** @description Unsaved branding to render with, in the shape of a branding change: each field set here replaces the saved value, `null` clears it, and a field left out keeps the saved value. Leave it out to preview the saved branding. */
7657
+ branding?: components["schemas"]["UpdateEnvironmentBrandingDto"];
7658
+ /**
7659
+ * @description The look to render a hosted page in, whatever the branding's `color_scheme`: the way to see both looks of a `system` scheme, which otherwise follows the device showing the preview. Leave it out to render the page as it is served. An email is always light.
7660
+ * @enum {string}
7661
+ */
7662
+ scheme?: "light" | "dark";
7182
7663
  };
7183
7664
  TokenClaimEntryResponseDto: {
7184
7665
  /**
@@ -7914,6 +8395,8 @@ interface components {
7914
8395
  scope: "account" | "environment";
7915
8396
  /** @description Capability keys the role grants */
7916
8397
  capabilities: string[];
8398
+ /** @description Every capability a holder of the role has: its own keys and each `view` a `manage` among them implies */
8399
+ conferred_capabilities: string[];
7917
8400
  /** @description Live grants of this role across the whole Account, not just one Environment */
7918
8401
  assignment_count: number;
7919
8402
  /** @description Optimistic-lock version. Send it back in `If-Match` on an update to refuse a stale edit with 409. */
@@ -8212,6 +8695,13 @@ interface components {
8212
8695
  * @description When the secret was last rotated. Null until the first rotation.
8213
8696
  */
8214
8697
  secret_rotated_at?: string | null;
8698
+ /** @description The branding this client carries over its Environment's: each setting it changes, and `null` for each it leaves to the Environment. Null for a machine client, which has no hosted pages. */
8699
+ branding: components["schemas"]["StoredBrandingDto"] | null;
8700
+ /**
8701
+ * @description How many settings this client changes from its Environment's branding, each reworded text counting as one. `0` when it wears the Environment's look.
8702
+ * @example 3
8703
+ */
8704
+ branding_settings: number;
8215
8705
  /** @description Optimistic-lock version. Send it in `If-Match` on an update to refuse a stale write. */
8216
8706
  version: number;
8217
8707
  /** Format: date-time */
@@ -8313,6 +8803,13 @@ interface components {
8313
8803
  * @description When the secret was last rotated. Null until the first rotation.
8314
8804
  */
8315
8805
  secret_rotated_at?: string | null;
8806
+ /** @description The branding this client carries over its Environment's: each setting it changes, and `null` for each it leaves to the Environment. Null for a machine client, which has no hosted pages. */
8807
+ branding: components["schemas"]["StoredBrandingDto"] | null;
8808
+ /**
8809
+ * @description How many settings this client changes from its Environment's branding, each reworded text counting as one. `0` when it wears the Environment's look.
8810
+ * @example 3
8811
+ */
8812
+ branding_settings: number;
8316
8813
  /** @description Optimistic-lock version. Send it in `If-Match` on an update to refuse a stale write. */
8317
8814
  version: number;
8318
8815
  /** Format: date-time */
@@ -8346,6 +8843,8 @@ interface components {
8346
8843
  invite_redirect_url?: string | null;
8347
8844
  /** @description The route in your application that starts a sign-in (OpenID Connect `initiate_login_uri`): it should send the person to Canopy's `/oauth/authorize`. Canopy's hosted pages that end with nothing to return to, such as an accepted invitation or a verified email, offer it as **Sign in**. Absolute `http` or `https` URL; `null` clears it. */
8348
8845
  initiate_login_uri?: string | null;
8846
+ /** @description Changes to the branding this client carries over its Environment's, in the shape of a branding change: a setting set here is the client's own, `null` for a setting returns it to the Environment's, and a setting left out keeps what the client holds. `null` for the whole value returns every setting to the Environment's. A sign-in this client starts wears the result on the hosted pages and in the emails it sends. A web client only: a machine client answers `400` (`oauth.machine_client_branding_invalid`). Needs the `hosted_page_customization` plan feature to set. */
8847
+ branding?: components["schemas"]["UpdateEnvironmentBrandingDto"] | null;
8349
8848
  };
8350
8849
  ApiKeyCreatedResponseDto: {
8351
8850
  id: string;
@@ -8556,6 +9055,8 @@ interface components {
8556
9055
  scim?: boolean;
8557
9056
  /** @description External audit-log destinations. */
8558
9057
  audit_destinations?: boolean;
9058
+ /** @description Hosted page customization beyond the product name, logo, favicon, the two colors and the three links: design settings, fonts, dark mode, layouts, text overrides, the customer's own content, custom CSS and page templates. */
9059
+ hosted_page_customization?: boolean;
8559
9060
  };
8560
9061
  UsageSummaryResponseDto: {
8561
9062
  account_id: string;
@@ -12494,7 +12995,7 @@ interface operations {
12494
12995
  };
12495
12996
  requestBody?: never;
12496
12997
  responses: {
12497
- /** @description One page of the sessions the identity holds that are neither revoked nor expired, newest first: the session's current refresh token id (what the per-session revoke takes), when it was signed in and when it expires, the browser's address and user agent, and the organization it is acting in. */
12998
+ /** @description One page of the sessions the identity holds that are neither revoked nor expired: first the hosted sign-ins no application has exchanged a code for yet, by their session id, then the sessions that hold a refresh token, by that token's id, each group newest first. Each row has the id the per-session revoke takes, when it was signed in and when it expires, the browser's address and user agent, and the organization it is acting in (null for a sign-in not yet exchanged). */
12498
12999
  200: {
12499
13000
  headers: {
12500
13001
  [name: string]: unknown;
@@ -19518,7 +20019,7 @@ interface operations {
19518
20019
  "application/json": components["schemas"]["ErrorResponseDto"];
19519
20020
  };
19520
20021
  };
19521
- /** @description Version mismatch — the resource was modified since the version supplied in If-Match. Refresh and retry. */
20022
+ /** @description The policy was modified since the version supplied in `If-Match`; or `require_sso` was turned on for an organization with no active bound SSO connection or no verified domain */
19522
20023
  409: {
19523
20024
  headers: {
19524
20025
  [name: string]: unknown;
@@ -19529,7 +20030,7 @@ interface operations {
19529
20030
  * "error": {
19530
20031
  * "statusCode": 409,
19531
20032
  * "code": "request.conflict",
19532
- * "message": "Version mismatch — the resource was modified since the version supplied in If-Match. Refresh and retry.",
20033
+ * "message": "The policy was modified since the version supplied in `If-Match`; or `require_sso` was turned on for an organization with no active bound SSO connection or no verified domain",
19533
20034
  * "timestamp": "2026-04-20T12:00:00.000Z",
19534
20035
  * "path": "/api/v1/organizations/{id}/policy",
19535
20036
  * "method": "PATCH"
@@ -20507,6 +21008,27 @@ interface operations {
20507
21008
  "application/json": components["schemas"]["ErrorResponseDto"];
20508
21009
  };
20509
21010
  };
21011
+ /** @description The organization requires single sign-on and this is its only verified domain */
21012
+ 409: {
21013
+ headers: {
21014
+ [name: string]: unknown;
21015
+ };
21016
+ content: {
21017
+ /**
21018
+ * @example {
21019
+ * "error": {
21020
+ * "statusCode": 409,
21021
+ * "code": "request.conflict",
21022
+ * "message": "The organization requires single sign-on and this is its only verified domain",
21023
+ * "timestamp": "2026-04-20T12:00:00.000Z",
21024
+ * "path": "/api/v1/organizations/{id}/domains/{domain}",
21025
+ * "method": "DELETE"
21026
+ * }
21027
+ * }
21028
+ */
21029
+ "application/json": components["schemas"]["ErrorResponseDto"];
21030
+ };
21031
+ };
20510
21032
  };
20511
21033
  };
20512
21034
  ApiOrganizationsController_listSsoConnections: {
@@ -20862,7 +21384,7 @@ interface operations {
20862
21384
  "application/json": components["schemas"]["ErrorResponseDto"];
20863
21385
  };
20864
21386
  };
20865
- /** @description The organization set this connection up itself; it stays bound. Disable or delete the connection instead. */
21387
+ /** @description The organization set this connection up itself, so it stays bound: disable or delete the connection instead; or the organization requires single sign-on and this is its only active connection */
20866
21388
  409: {
20867
21389
  headers: {
20868
21390
  [name: string]: unknown;
@@ -20873,7 +21395,7 @@ interface operations {
20873
21395
  * "error": {
20874
21396
  * "statusCode": 409,
20875
21397
  * "code": "request.conflict",
20876
- * "message": "The organization set this connection up itself; it stays bound. Disable or delete the connection instead.",
21398
+ * "message": "The organization set this connection up itself, so it stays bound: disable or delete the connection instead; or the organization requires single sign-on and this is its only active connection",
20877
21399
  * "timestamp": "2026-04-20T12:00:00.000Z",
20878
21400
  * "path": "/api/v1/organizations/{id}/sso-connections/{connectionId}",
20879
21401
  * "method": "DELETE"
@@ -22395,7 +22917,7 @@ interface operations {
22395
22917
  "application/json": components["schemas"]["ErrorResponseDto"];
22396
22918
  };
22397
22919
  };
22398
- /** @description The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console */
22920
+ /** @description The organization has no SSO connection bound to it, its connection is developer-managed and is changed from the Console, or the organization requires single sign-on and this is its only active connection */
22399
22921
  409: {
22400
22922
  headers: {
22401
22923
  [name: string]: unknown;
@@ -22406,7 +22928,7 @@ interface operations {
22406
22928
  * "error": {
22407
22929
  * "statusCode": 409,
22408
22930
  * "code": "request.conflict",
22409
- * "message": "The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console",
22931
+ * "message": "The organization has no SSO connection bound to it, its connection is developer-managed and is changed from the Console, or the organization requires single sign-on and this is its only active connection",
22410
22932
  * "timestamp": "2026-04-20T12:00:00.000Z",
22411
22933
  * "path": "/api/v1/organizations/{id}/sso-connection",
22412
22934
  * "method": "DELETE"
@@ -22801,7 +23323,7 @@ interface operations {
22801
23323
  "application/json": components["schemas"]["ErrorResponseDto"];
22802
23324
  };
22803
23325
  };
22804
- /** @description The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; or the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`) */
23326
+ /** @description The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`); or the organization requires single sign-on and this is its only active connection (`organization.sso_requirement_needs_connection`): turn the requirement off first */
22805
23327
  409: {
22806
23328
  headers: {
22807
23329
  [name: string]: unknown;
@@ -22812,7 +23334,7 @@ interface operations {
22812
23334
  * "error": {
22813
23335
  * "statusCode": 409,
22814
23336
  * "code": "request.conflict",
22815
- * "message": "The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; or the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`)",
23337
+ * "message": "The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`); or the organization requires single sign-on and this is its only active connection (`organization.sso_requirement_needs_connection`): turn the requirement off first",
22816
23338
  * "timestamp": "2026-04-20T12:00:00.000Z",
22817
23339
  * "path": "/api/v1/organizations/{id}/sso-connection/disable",
22818
23340
  * "method": "POST"
@@ -30975,7 +31497,101 @@ interface operations {
30975
31497
  "application/json": components["schemas"]["ErrorResponseDto"];
30976
31498
  };
30977
31499
  };
30978
- /** @description The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment */
31500
+ /** @description The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment */
31501
+ 403: {
31502
+ headers: {
31503
+ [name: string]: unknown;
31504
+ };
31505
+ content: {
31506
+ /**
31507
+ * @example {
31508
+ * "error": {
31509
+ * "statusCode": 403,
31510
+ * "code": "auth.forbidden",
31511
+ * "message": "The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment",
31512
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31513
+ * "path": "/api/v1/branding",
31514
+ * "method": "GET"
31515
+ * }
31516
+ * }
31517
+ */
31518
+ "application/json": components["schemas"]["ErrorResponseDto"];
31519
+ };
31520
+ };
31521
+ };
31522
+ };
31523
+ ApiBrandingController_updateBranding: {
31524
+ parameters: {
31525
+ query?: never;
31526
+ header?: {
31527
+ /** @description Optimistic-lock version of the resource. Send the `version` field returned on read; the server rejects with 409 if the row has changed since. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
31528
+ "If-Match"?: string;
31529
+ /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
31530
+ "X-Canopy-Environment"?: string;
31531
+ };
31532
+ path?: never;
31533
+ cookie?: never;
31534
+ };
31535
+ requestBody: {
31536
+ content: {
31537
+ "application/json": components["schemas"]["UpdateEnvironmentBrandingDto"];
31538
+ };
31539
+ };
31540
+ responses: {
31541
+ /** @description Branding updated */
31542
+ 200: {
31543
+ headers: {
31544
+ [name: string]: unknown;
31545
+ };
31546
+ content: {
31547
+ "application/json": {
31548
+ data: components["schemas"]["EnvironmentBrandingResponseDto"];
31549
+ };
31550
+ };
31551
+ };
31552
+ /** @description A value is malformed: the logo, favicon, terms and privacy links must be https URLs, the colors six-digit hex, the support link an https URL or a mailto: address, the product name at most 60 characters, the color scheme, layout, background style, corner radius, card style and card shadow one of their listed values, a background or panel image an https URL holding no quote, bracket or space, the panel heading at most 80 characters and its text at most 240, `text_overrides` texts from the text keys list, each plain text within its length that keeps its placeholders, the header, notice and footer content at most 2,000 characters each, and a heading or body font a curated font's id or an https URL; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
31553
+ 400: {
31554
+ headers: {
31555
+ [name: string]: unknown;
31556
+ };
31557
+ content: {
31558
+ /**
31559
+ * @example {
31560
+ * "error": {
31561
+ * "statusCode": 400,
31562
+ * "code": "request.invalid",
31563
+ * "message": "A value is malformed: the logo, favicon, terms and privacy links must be https URLs, the colors six-digit hex, the support link an https URL or a mailto: address, the product name at most 60 characters, the color scheme, layout, background style, corner radius, card style and card shadow one of their listed values, a background or panel image an https URL holding no quote, bracket or space, the panel heading at most 80 characters and its text at most 240, `text_overrides` texts from the text keys list, each plain text within its length that keeps its placeholders, the header, notice and footer content at most 2,000 characters each, and a heading or body font a curated font's id or an https URL; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
31564
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31565
+ * "path": "/api/v1/branding",
31566
+ * "method": "PATCH"
31567
+ * }
31568
+ * }
31569
+ */
31570
+ "application/json": components["schemas"]["ErrorResponseDto"];
31571
+ };
31572
+ };
31573
+ /** @description Invalid or expired token */
31574
+ 401: {
31575
+ headers: {
31576
+ [name: string]: unknown;
31577
+ };
31578
+ content: {
31579
+ /**
31580
+ * @example {
31581
+ * "error": {
31582
+ * "statusCode": 401,
31583
+ * "code": "auth.invalid_token",
31584
+ * "message": "Invalid or expired token",
31585
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31586
+ * "path": "/api/v1/branding",
31587
+ * "method": "GET"
31588
+ * }
31589
+ * }
31590
+ */
31591
+ "application/json": components["schemas"]["ErrorResponseDto"];
31592
+ };
31593
+ };
31594
+ /** @description The caller lacks `branding.manage`, or the request sets a customization field and the Account's plan does not include hosted page customization (`plan_feature_unavailable`) */
30979
31595
  403: {
30980
31596
  headers: {
30981
31597
  [name: string]: unknown;
@@ -30986,10 +31602,31 @@ interface operations {
30986
31602
  * "error": {
30987
31603
  * "statusCode": 403,
30988
31604
  * "code": "auth.forbidden",
30989
- * "message": "The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment",
31605
+ * "message": "The caller lacks `branding.manage`, or the request sets a customization field and the Account's plan does not include hosted page customization (`plan_feature_unavailable`)",
30990
31606
  * "timestamp": "2026-04-20T12:00:00.000Z",
30991
31607
  * "path": "/api/v1/branding",
30992
- * "method": "GET"
31608
+ * "method": "PATCH"
31609
+ * }
31610
+ * }
31611
+ */
31612
+ "application/json": components["schemas"]["ErrorResponseDto"];
31613
+ };
31614
+ };
31615
+ /** @description The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the branding as it now stands in `data.current`) */
31616
+ 409: {
31617
+ headers: {
31618
+ [name: string]: unknown;
31619
+ };
31620
+ content: {
31621
+ /**
31622
+ * @example {
31623
+ * "error": {
31624
+ * "statusCode": 409,
31625
+ * "code": "request.conflict",
31626
+ * "message": "The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the branding as it now stands in `data.current`)",
31627
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31628
+ * "path": "/api/v1/branding",
31629
+ * "method": "PATCH"
30993
31630
  * }
30994
31631
  * }
30995
31632
  */
@@ -30998,36 +31635,118 @@ interface operations {
30998
31635
  };
30999
31636
  };
31000
31637
  };
31001
- ApiBrandingController_updateBranding: {
31638
+ ApiBrandingController_getPreviewPages: {
31002
31639
  parameters: {
31003
31640
  query?: never;
31004
31641
  header?: {
31005
- /** @description Optimistic-lock version of the resource. Send the `version` field returned on read; the server rejects with 409 if the row has changed since. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
31006
- "If-Match"?: string;
31007
31642
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
31008
31643
  "X-Canopy-Environment"?: string;
31009
31644
  };
31010
31645
  path?: never;
31011
31646
  cookie?: never;
31012
31647
  };
31013
- requestBody: {
31014
- content: {
31015
- "application/json": components["schemas"]["UpdateEnvironmentBrandingDto"];
31648
+ requestBody?: never;
31649
+ responses: {
31650
+ /** @description Every hosted page and customer email, with its states */
31651
+ 200: {
31652
+ headers: {
31653
+ [name: string]: unknown;
31654
+ };
31655
+ content: {
31656
+ "application/json": {
31657
+ items: components["schemas"]["BrandingPreviewPageDto"][];
31658
+ };
31659
+ };
31660
+ };
31661
+ /** @description The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`) */
31662
+ 400: {
31663
+ headers: {
31664
+ [name: string]: unknown;
31665
+ };
31666
+ content: {
31667
+ /**
31668
+ * @example {
31669
+ * "error": {
31670
+ * "statusCode": 400,
31671
+ * "code": "request.invalid",
31672
+ * "message": "The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`)",
31673
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31674
+ * "path": "/api/v1/branding",
31675
+ * "method": "GET"
31676
+ * }
31677
+ * }
31678
+ */
31679
+ "application/json": components["schemas"]["ErrorResponseDto"];
31680
+ };
31681
+ };
31682
+ /** @description Invalid or expired token */
31683
+ 401: {
31684
+ headers: {
31685
+ [name: string]: unknown;
31686
+ };
31687
+ content: {
31688
+ /**
31689
+ * @example {
31690
+ * "error": {
31691
+ * "statusCode": 401,
31692
+ * "code": "auth.invalid_token",
31693
+ * "message": "Invalid or expired token",
31694
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31695
+ * "path": "/api/v1/branding",
31696
+ * "method": "GET"
31697
+ * }
31698
+ * }
31699
+ */
31700
+ "application/json": components["schemas"]["ErrorResponseDto"];
31701
+ };
31016
31702
  };
31703
+ /** @description The caller lacks `branding.view`, or the Account's plan does not include hosted page customization (`plan_feature_unavailable`) */
31704
+ 403: {
31705
+ headers: {
31706
+ [name: string]: unknown;
31707
+ };
31708
+ content: {
31709
+ /**
31710
+ * @example {
31711
+ * "error": {
31712
+ * "statusCode": 403,
31713
+ * "code": "auth.forbidden",
31714
+ * "message": "The caller lacks `branding.view`, or the Account's plan does not include hosted page customization (`plan_feature_unavailable`)",
31715
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31716
+ * "path": "/api/v1/branding/preview-pages",
31717
+ * "method": "GET"
31718
+ * }
31719
+ * }
31720
+ */
31721
+ "application/json": components["schemas"]["ErrorResponseDto"];
31722
+ };
31723
+ };
31724
+ };
31725
+ };
31726
+ ApiBrandingController_getFonts: {
31727
+ parameters: {
31728
+ query?: never;
31729
+ header?: {
31730
+ /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
31731
+ "X-Canopy-Environment"?: string;
31732
+ };
31733
+ path?: never;
31734
+ cookie?: never;
31017
31735
  };
31736
+ requestBody?: never;
31018
31737
  responses: {
31019
- /** @description Branding updated */
31738
+ /** @description Every curated font */
31020
31739
  200: {
31021
31740
  headers: {
31022
31741
  [name: string]: unknown;
31023
31742
  };
31024
31743
  content: {
31025
31744
  "application/json": {
31026
- data: components["schemas"]["EnvironmentBrandingResponseDto"];
31745
+ items: components["schemas"]["BrandingFontDto"][];
31027
31746
  };
31028
31747
  };
31029
31748
  };
31030
- /** @description A value is malformed: the logo, favicon, terms and privacy links must be https URLs, the colors six-digit hex, the support link an https URL or a mailto: address, and the product name at most 60 characters; 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`) */
31749
+ /** @description The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`) */
31031
31750
  400: {
31032
31751
  headers: {
31033
31752
  [name: string]: unknown;
@@ -31038,10 +31757,10 @@ interface operations {
31038
31757
  * "error": {
31039
31758
  * "statusCode": 400,
31040
31759
  * "code": "request.invalid",
31041
- * "message": "A value is malformed: the logo, favicon, terms and privacy links must be https URLs, the colors six-digit hex, the support link an https URL or a mailto: address, and the product name at most 60 characters; 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`)",
31760
+ * "message": "The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`)",
31042
31761
  * "timestamp": "2026-04-20T12:00:00.000Z",
31043
31762
  * "path": "/api/v1/branding",
31044
- * "method": "PATCH"
31763
+ * "method": "GET"
31045
31764
  * }
31046
31765
  * }
31047
31766
  */
@@ -31069,7 +31788,7 @@ interface operations {
31069
31788
  "application/json": components["schemas"]["ErrorResponseDto"];
31070
31789
  };
31071
31790
  };
31072
- /** @description The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment */
31791
+ /** @description The caller lacks `branding.view`, or the Account's plan does not include hosted page customization (`plan_feature_unavailable`) */
31073
31792
  403: {
31074
31793
  headers: {
31075
31794
  [name: string]: unknown;
@@ -31080,7 +31799,53 @@ interface operations {
31080
31799
  * "error": {
31081
31800
  * "statusCode": 403,
31082
31801
  * "code": "auth.forbidden",
31083
- * "message": "The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment",
31802
+ * "message": "The caller lacks `branding.view`, or the Account's plan does not include hosted page customization (`plan_feature_unavailable`)",
31803
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31804
+ * "path": "/api/v1/branding/fonts",
31805
+ * "method": "GET"
31806
+ * }
31807
+ * }
31808
+ */
31809
+ "application/json": components["schemas"]["ErrorResponseDto"];
31810
+ };
31811
+ };
31812
+ };
31813
+ };
31814
+ ApiBrandingController_getTextKeys: {
31815
+ parameters: {
31816
+ query?: never;
31817
+ header?: {
31818
+ /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
31819
+ "X-Canopy-Environment"?: string;
31820
+ };
31821
+ path?: never;
31822
+ cookie?: never;
31823
+ };
31824
+ requestBody?: never;
31825
+ responses: {
31826
+ /** @description Every text that can be reworded */
31827
+ 200: {
31828
+ headers: {
31829
+ [name: string]: unknown;
31830
+ };
31831
+ content: {
31832
+ "application/json": {
31833
+ items: components["schemas"]["BrandingTextKeyDto"][];
31834
+ };
31835
+ };
31836
+ };
31837
+ /** @description The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`) */
31838
+ 400: {
31839
+ headers: {
31840
+ [name: string]: unknown;
31841
+ };
31842
+ content: {
31843
+ /**
31844
+ * @example {
31845
+ * "error": {
31846
+ * "statusCode": 400,
31847
+ * "code": "request.invalid",
31848
+ * "message": "The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`)",
31084
31849
  * "timestamp": "2026-04-20T12:00:00.000Z",
31085
31850
  * "path": "/api/v1/branding",
31086
31851
  * "method": "GET"
@@ -31090,8 +31855,8 @@ interface operations {
31090
31855
  "application/json": components["schemas"]["ErrorResponseDto"];
31091
31856
  };
31092
31857
  };
31093
- /** @description The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the branding as it now stands in `data.current`) */
31094
- 409: {
31858
+ /** @description Invalid or expired token */
31859
+ 401: {
31095
31860
  headers: {
31096
31861
  [name: string]: unknown;
31097
31862
  };
@@ -31099,12 +31864,125 @@ interface operations {
31099
31864
  /**
31100
31865
  * @example {
31101
31866
  * "error": {
31102
- * "statusCode": 409,
31103
- * "code": "request.conflict",
31104
- * "message": "The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the branding as it now stands in `data.current`)",
31867
+ * "statusCode": 401,
31868
+ * "code": "auth.invalid_token",
31869
+ * "message": "Invalid or expired token",
31105
31870
  * "timestamp": "2026-04-20T12:00:00.000Z",
31106
31871
  * "path": "/api/v1/branding",
31107
- * "method": "PATCH"
31872
+ * "method": "GET"
31873
+ * }
31874
+ * }
31875
+ */
31876
+ "application/json": components["schemas"]["ErrorResponseDto"];
31877
+ };
31878
+ };
31879
+ /** @description The caller lacks `branding.view`, or the Account's plan does not include hosted page customization (`plan_feature_unavailable`) */
31880
+ 403: {
31881
+ headers: {
31882
+ [name: string]: unknown;
31883
+ };
31884
+ content: {
31885
+ /**
31886
+ * @example {
31887
+ * "error": {
31888
+ * "statusCode": 403,
31889
+ * "code": "auth.forbidden",
31890
+ * "message": "The caller lacks `branding.view`, or the Account's plan does not include hosted page customization (`plan_feature_unavailable`)",
31891
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31892
+ * "path": "/api/v1/branding/text-keys",
31893
+ * "method": "GET"
31894
+ * }
31895
+ * }
31896
+ */
31897
+ "application/json": components["schemas"]["ErrorResponseDto"];
31898
+ };
31899
+ };
31900
+ };
31901
+ };
31902
+ ApiBrandingController_preview: {
31903
+ parameters: {
31904
+ query?: never;
31905
+ header?: {
31906
+ /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
31907
+ "X-Canopy-Environment"?: string;
31908
+ };
31909
+ path?: never;
31910
+ cookie?: never;
31911
+ };
31912
+ requestBody: {
31913
+ content: {
31914
+ "application/json": components["schemas"]["BrandingPreviewRequestDto"];
31915
+ };
31916
+ };
31917
+ responses: {
31918
+ /** @description The rendered page or email */
31919
+ 200: {
31920
+ headers: {
31921
+ [name: string]: unknown;
31922
+ };
31923
+ content: {
31924
+ "application/json": {
31925
+ data: components["schemas"]["BrandingPreviewResponseDto"];
31926
+ };
31927
+ };
31928
+ };
31929
+ /** @description The page or state does not exist (`branding.preview_page_unknown`), or a branding value is malformed (`validation`); 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 */
31930
+ 400: {
31931
+ headers: {
31932
+ [name: string]: unknown;
31933
+ };
31934
+ content: {
31935
+ /**
31936
+ * @example {
31937
+ * "error": {
31938
+ * "statusCode": 400,
31939
+ * "code": "request.invalid",
31940
+ * "message": "The page or state does not exist (`branding.preview_page_unknown`), or a branding value is malformed (`validation`); 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",
31941
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31942
+ * "path": "/api/v1/branding/preview",
31943
+ * "method": "POST"
31944
+ * }
31945
+ * }
31946
+ */
31947
+ "application/json": components["schemas"]["ErrorResponseDto"];
31948
+ };
31949
+ };
31950
+ /** @description Invalid or expired token */
31951
+ 401: {
31952
+ headers: {
31953
+ [name: string]: unknown;
31954
+ };
31955
+ content: {
31956
+ /**
31957
+ * @example {
31958
+ * "error": {
31959
+ * "statusCode": 401,
31960
+ * "code": "auth.invalid_token",
31961
+ * "message": "Invalid or expired token",
31962
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31963
+ * "path": "/api/v1/branding",
31964
+ * "method": "GET"
31965
+ * }
31966
+ * }
31967
+ */
31968
+ "application/json": components["schemas"]["ErrorResponseDto"];
31969
+ };
31970
+ };
31971
+ /** @description The caller lacks `branding.view`, or the Account's plan does not include hosted page customization (`plan_feature_unavailable`) */
31972
+ 403: {
31973
+ headers: {
31974
+ [name: string]: unknown;
31975
+ };
31976
+ content: {
31977
+ /**
31978
+ * @example {
31979
+ * "error": {
31980
+ * "statusCode": 403,
31981
+ * "code": "auth.forbidden",
31982
+ * "message": "The caller lacks `branding.view`, or the Account's plan does not include hosted page customization (`plan_feature_unavailable`)",
31983
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31984
+ * "path": "/api/v1/branding/preview",
31985
+ * "method": "POST"
31108
31986
  * }
31109
31987
  * }
31110
31988
  */
@@ -34849,6 +35727,27 @@ interface operations {
34849
35727
  "application/json": components["schemas"]["ErrorResponseDto"];
34850
35728
  };
34851
35729
  };
35730
+ /** @description An organization that requires single sign-on has this as its only active connection (`organization.sso_requirement_needs_connection`): turn the requirement off first */
35731
+ 409: {
35732
+ headers: {
35733
+ [name: string]: unknown;
35734
+ };
35735
+ content: {
35736
+ /**
35737
+ * @example {
35738
+ * "error": {
35739
+ * "statusCode": 409,
35740
+ * "code": "request.conflict",
35741
+ * "message": "An organization that requires single sign-on has this as its only active connection (`organization.sso_requirement_needs_connection`): turn the requirement off first",
35742
+ * "timestamp": "2026-04-20T12:00:00.000Z",
35743
+ * "path": "/api/v1/sso/connections/{id}",
35744
+ * "method": "DELETE"
35745
+ * }
35746
+ * }
35747
+ */
35748
+ "application/json": components["schemas"]["ErrorResponseDto"];
35749
+ };
35750
+ };
34852
35751
  };
34853
35752
  };
34854
35753
  ApiSsoController_update: {
@@ -35228,7 +36127,7 @@ interface operations {
35228
36127
  "application/json": components["schemas"]["ErrorResponseDto"];
35229
36128
  };
35230
36129
  };
35231
- /** @description The connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection as it now stands in `data.current`) */
36130
+ /** @description The connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection as it now stands in `data.current`), or it is the only active connection of an organization that requires single sign-on (`organization.sso_requirement_needs_connection`): turn the requirement off first */
35232
36131
  409: {
35233
36132
  headers: {
35234
36133
  [name: string]: unknown;
@@ -35239,7 +36138,7 @@ interface operations {
35239
36138
  * "error": {
35240
36139
  * "statusCode": 409,
35241
36140
  * "code": "request.conflict",
35242
- * "message": "The connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection as it now stands in `data.current`)",
36141
+ * "message": "The connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection as it now stands in `data.current`), or it is the only active connection of an organization that requires single sign-on (`organization.sso_requirement_needs_connection`): turn the requirement off first",
35243
36142
  * "timestamp": "2026-04-20T12:00:00.000Z",
35244
36143
  * "path": "/api/v1/sso/connections/{id}/disable",
35245
36144
  * "method": "POST"
@@ -44482,7 +45381,7 @@ interface operations {
44482
45381
  };
44483
45382
  requestBody?: never;
44484
45383
  responses: {
44485
- /** @description The plan's feature map alone (`sso`, `scim`, `audit_destinations`), honoring the effective grace-period plan and Enterprise overrides. Membership-gated rather than `billing.view`: every member's dashboard needs it to decide which surfaces to render. */
45384
+ /** @description The plan's feature map alone (`sso`, `scim`, `audit_destinations`, `hosted_page_customization`), honoring the effective grace-period plan and Enterprise overrides. Membership-gated rather than `billing.view`: every member's dashboard needs it to decide which surfaces to render. */
44486
45385
  200: {
44487
45386
  headers: {
44488
45387
  [name: string]: unknown;
@@ -45115,7 +46014,8 @@ declare class Identities {
45115
46014
  /**
45116
46015
  * Ends one session and leaves the identity's others signed in. `sessionId`
45117
46016
  * is the session's `id` from `sessions`: its current refresh token, which
45118
- * changes on every refresh, so read it shortly before revoking.
46017
+ * changes on every refresh, so read it shortly before revoking; or, for a
46018
+ * hosted sign-in no application has exchanged a code for yet, its session id.
45119
46019
  */
45120
46020
  revokeSession(id: string, sessionId: string): Promise<void>;
45121
46021
  /**