@canopy-io/node 0.23.4 → 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/CHANGELOG.md +6 -0
- package/dist/index.d.cts +864 -11
- package/dist/index.d.ts +864 -11
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -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).
|
|
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;
|
|
@@ -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
|
|
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;
|
|
@@ -7115,32 +7195,161 @@ interface components {
|
|
|
7115
7195
|
StoredBrandingDto: {
|
|
7116
7196
|
product_name: string | null;
|
|
7117
7197
|
logo_url: string | null;
|
|
7198
|
+
logo_dark_url: string | null;
|
|
7118
7199
|
/** @enum {string|null} */
|
|
7119
7200
|
logo_kind: "full" | "icon" | null;
|
|
7120
7201
|
favicon_url: string | null;
|
|
7202
|
+
/** @enum {string|null} */
|
|
7203
|
+
color_scheme: "light" | "dark" | "system" | null;
|
|
7121
7204
|
primary_color: string | null;
|
|
7122
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;
|
|
7123
7236
|
support_url: string | null;
|
|
7124
7237
|
terms_url: string | null;
|
|
7125
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
|
+
};
|
|
7126
7255
|
};
|
|
7127
7256
|
EffectiveBrandingDto: {
|
|
7128
7257
|
/** @description Null when the customer set none; surfaces then show no name. */
|
|
7129
7258
|
product_name: string | null;
|
|
7130
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;
|
|
7131
7262
|
/**
|
|
7132
7263
|
* @description `full`: the logo is shown alone. `icon`: it is shown at icon size with the product name beside it.
|
|
7133
7264
|
* @enum {string}
|
|
7134
7265
|
*/
|
|
7135
7266
|
logo_kind: "full" | "icon";
|
|
7136
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";
|
|
7137
7273
|
/** @description Six-digit hex. */
|
|
7138
7274
|
primary_color: string;
|
|
7139
7275
|
/** @description Six-digit hex, or null for the neutral grey. */
|
|
7140
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;
|
|
7141
7338
|
support_url: string | null;
|
|
7142
7339
|
terms_url: string | null;
|
|
7143
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
|
+
};
|
|
7144
7353
|
/** @description Whether the attribution mark stays on hosted pages and the portal. False only on a plan with brand removal. */
|
|
7145
7354
|
attribution: boolean;
|
|
7146
7355
|
};
|
|
@@ -7150,6 +7359,8 @@ interface components {
|
|
|
7150
7359
|
effective: components["schemas"]["EffectiveBrandingDto"];
|
|
7151
7360
|
/** @description Whether the Account's plan removes the attribution mark. When false, the mark stays whatever the customer sets. */
|
|
7152
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;
|
|
7153
7364
|
/** @description The Environment's optimistic-lock version; send it back as `If-Match` on PATCH. Any change to the Environment moves it. */
|
|
7154
7365
|
version: number;
|
|
7155
7366
|
};
|
|
@@ -7158,6 +7369,8 @@ interface components {
|
|
|
7158
7369
|
product_name?: string | null;
|
|
7159
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. */
|
|
7160
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;
|
|
7161
7374
|
/**
|
|
7162
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`.
|
|
7163
7376
|
* @enum {string|null}
|
|
@@ -7165,22 +7378,288 @@ interface components {
|
|
|
7165
7378
|
logo_kind?: "full" | "icon" | null;
|
|
7166
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. */
|
|
7167
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;
|
|
7168
7386
|
/**
|
|
7169
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.
|
|
7170
7388
|
* @example #B93C0C
|
|
7171
7389
|
*/
|
|
7172
7390
|
primary_color?: string | null;
|
|
7173
7391
|
/**
|
|
7174
|
-
* @description Six-digit hex colour for the page behind the card on hosted pages.
|
|
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.
|
|
7175
7393
|
* @example #0B1F3A
|
|
7176
7394
|
*/
|
|
7177
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;
|
|
7178
7505
|
/** @description Where "Need help?" points: an https URL or a mailto: address. Null hides it. */
|
|
7179
7506
|
support_url?: string | null;
|
|
7180
7507
|
/** @description Absolute https URL of the customer's terms, linked as "Terms" in the hosted pages' footer. Null hides it. */
|
|
7181
7508
|
terms_url?: string | null;
|
|
7182
7509
|
/** @description Absolute https URL of the customer's privacy policy, linked as "Privacy" in the hosted pages' footer. Null hides it. */
|
|
7183
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";
|
|
7184
7663
|
};
|
|
7185
7664
|
TokenClaimEntryResponseDto: {
|
|
7186
7665
|
/**
|
|
@@ -8216,6 +8695,13 @@ interface components {
|
|
|
8216
8695
|
* @description When the secret was last rotated. Null until the first rotation.
|
|
8217
8696
|
*/
|
|
8218
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;
|
|
8219
8705
|
/** @description Optimistic-lock version. Send it in `If-Match` on an update to refuse a stale write. */
|
|
8220
8706
|
version: number;
|
|
8221
8707
|
/** Format: date-time */
|
|
@@ -8317,6 +8803,13 @@ interface components {
|
|
|
8317
8803
|
* @description When the secret was last rotated. Null until the first rotation.
|
|
8318
8804
|
*/
|
|
8319
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;
|
|
8320
8813
|
/** @description Optimistic-lock version. Send it in `If-Match` on an update to refuse a stale write. */
|
|
8321
8814
|
version: number;
|
|
8322
8815
|
/** Format: date-time */
|
|
@@ -8350,6 +8843,8 @@ interface components {
|
|
|
8350
8843
|
invite_redirect_url?: string | null;
|
|
8351
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. */
|
|
8352
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;
|
|
8353
8848
|
};
|
|
8354
8849
|
ApiKeyCreatedResponseDto: {
|
|
8355
8850
|
id: string;
|
|
@@ -8560,6 +9055,8 @@ interface components {
|
|
|
8560
9055
|
scim?: boolean;
|
|
8561
9056
|
/** @description External audit-log destinations. */
|
|
8562
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;
|
|
8563
9060
|
};
|
|
8564
9061
|
UsageSummaryResponseDto: {
|
|
8565
9062
|
account_id: string;
|
|
@@ -31052,7 +31549,7 @@ interface operations {
|
|
|
31052
31549
|
};
|
|
31053
31550
|
};
|
|
31054
31551
|
};
|
|
31055
|
-
/** @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,
|
|
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`) */
|
|
31056
31553
|
400: {
|
|
31057
31554
|
headers: {
|
|
31058
31555
|
[name: string]: unknown;
|
|
@@ -31063,7 +31560,7 @@ interface operations {
|
|
|
31063
31560
|
* "error": {
|
|
31064
31561
|
* "statusCode": 400,
|
|
31065
31562
|
* "code": "request.invalid",
|
|
31066
|
-
* "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,
|
|
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`)",
|
|
31067
31564
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
31068
31565
|
* "path": "/api/v1/branding",
|
|
31069
31566
|
* "method": "PATCH"
|
|
@@ -31094,7 +31591,7 @@ interface operations {
|
|
|
31094
31591
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
31095
31592
|
};
|
|
31096
31593
|
};
|
|
31097
|
-
/** @description The
|
|
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`) */
|
|
31098
31595
|
403: {
|
|
31099
31596
|
headers: {
|
|
31100
31597
|
[name: string]: unknown;
|
|
@@ -31105,10 +31602,10 @@ interface operations {
|
|
|
31105
31602
|
* "error": {
|
|
31106
31603
|
* "statusCode": 403,
|
|
31107
31604
|
* "code": "auth.forbidden",
|
|
31108
|
-
* "message": "The
|
|
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`)",
|
|
31109
31606
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
31110
31607
|
* "path": "/api/v1/branding",
|
|
31111
|
-
* "method": "
|
|
31608
|
+
* "method": "PATCH"
|
|
31112
31609
|
* }
|
|
31113
31610
|
* }
|
|
31114
31611
|
*/
|
|
@@ -31138,6 +31635,362 @@ interface operations {
|
|
|
31138
31635
|
};
|
|
31139
31636
|
};
|
|
31140
31637
|
};
|
|
31638
|
+
ApiBrandingController_getPreviewPages: {
|
|
31639
|
+
parameters: {
|
|
31640
|
+
query?: never;
|
|
31641
|
+
header?: {
|
|
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`). */
|
|
31643
|
+
"X-Canopy-Environment"?: string;
|
|
31644
|
+
};
|
|
31645
|
+
path?: never;
|
|
31646
|
+
cookie?: never;
|
|
31647
|
+
};
|
|
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
|
+
};
|
|
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;
|
|
31735
|
+
};
|
|
31736
|
+
requestBody?: never;
|
|
31737
|
+
responses: {
|
|
31738
|
+
/** @description Every curated font */
|
|
31739
|
+
200: {
|
|
31740
|
+
headers: {
|
|
31741
|
+
[name: string]: unknown;
|
|
31742
|
+
};
|
|
31743
|
+
content: {
|
|
31744
|
+
"application/json": {
|
|
31745
|
+
items: components["schemas"]["BrandingFontDto"][];
|
|
31746
|
+
};
|
|
31747
|
+
};
|
|
31748
|
+
};
|
|
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`) */
|
|
31750
|
+
400: {
|
|
31751
|
+
headers: {
|
|
31752
|
+
[name: string]: unknown;
|
|
31753
|
+
};
|
|
31754
|
+
content: {
|
|
31755
|
+
/**
|
|
31756
|
+
* @example {
|
|
31757
|
+
* "error": {
|
|
31758
|
+
* "statusCode": 400,
|
|
31759
|
+
* "code": "request.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`)",
|
|
31761
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
31762
|
+
* "path": "/api/v1/branding",
|
|
31763
|
+
* "method": "GET"
|
|
31764
|
+
* }
|
|
31765
|
+
* }
|
|
31766
|
+
*/
|
|
31767
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
31768
|
+
};
|
|
31769
|
+
};
|
|
31770
|
+
/** @description Invalid or expired token */
|
|
31771
|
+
401: {
|
|
31772
|
+
headers: {
|
|
31773
|
+
[name: string]: unknown;
|
|
31774
|
+
};
|
|
31775
|
+
content: {
|
|
31776
|
+
/**
|
|
31777
|
+
* @example {
|
|
31778
|
+
* "error": {
|
|
31779
|
+
* "statusCode": 401,
|
|
31780
|
+
* "code": "auth.invalid_token",
|
|
31781
|
+
* "message": "Invalid or expired token",
|
|
31782
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
31783
|
+
* "path": "/api/v1/branding",
|
|
31784
|
+
* "method": "GET"
|
|
31785
|
+
* }
|
|
31786
|
+
* }
|
|
31787
|
+
*/
|
|
31788
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
31789
|
+
};
|
|
31790
|
+
};
|
|
31791
|
+
/** @description The caller lacks `branding.view`, or the Account's plan does not include hosted page customization (`plan_feature_unavailable`) */
|
|
31792
|
+
403: {
|
|
31793
|
+
headers: {
|
|
31794
|
+
[name: string]: unknown;
|
|
31795
|
+
};
|
|
31796
|
+
content: {
|
|
31797
|
+
/**
|
|
31798
|
+
* @example {
|
|
31799
|
+
* "error": {
|
|
31800
|
+
* "statusCode": 403,
|
|
31801
|
+
* "code": "auth.forbidden",
|
|
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`)",
|
|
31849
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
31850
|
+
* "path": "/api/v1/branding",
|
|
31851
|
+
* "method": "GET"
|
|
31852
|
+
* }
|
|
31853
|
+
* }
|
|
31854
|
+
*/
|
|
31855
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
31856
|
+
};
|
|
31857
|
+
};
|
|
31858
|
+
/** @description Invalid or expired token */
|
|
31859
|
+
401: {
|
|
31860
|
+
headers: {
|
|
31861
|
+
[name: string]: unknown;
|
|
31862
|
+
};
|
|
31863
|
+
content: {
|
|
31864
|
+
/**
|
|
31865
|
+
* @example {
|
|
31866
|
+
* "error": {
|
|
31867
|
+
* "statusCode": 401,
|
|
31868
|
+
* "code": "auth.invalid_token",
|
|
31869
|
+
* "message": "Invalid or expired token",
|
|
31870
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
31871
|
+
* "path": "/api/v1/branding",
|
|
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"
|
|
31986
|
+
* }
|
|
31987
|
+
* }
|
|
31988
|
+
*/
|
|
31989
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
31990
|
+
};
|
|
31991
|
+
};
|
|
31992
|
+
};
|
|
31993
|
+
};
|
|
31141
31994
|
ApiTokenClaimsController_getTokenClaims: {
|
|
31142
31995
|
parameters: {
|
|
31143
31996
|
query?: never;
|
|
@@ -44528,7 +45381,7 @@ interface operations {
|
|
|
44528
45381
|
};
|
|
44529
45382
|
requestBody?: never;
|
|
44530
45383
|
responses: {
|
|
44531
|
-
/** @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. */
|
|
44532
45385
|
200: {
|
|
44533
45386
|
headers: {
|
|
44534
45387
|
[name: string]: unknown;
|