@canopy-io/node 0.25.1 → 0.26.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/README.md +12 -7
- package/dist/index.cjs +95 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +397 -19
- package/dist/index.d.ts +397 -19
- package/dist/index.js +95 -35
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3014,11 +3014,31 @@ interface paths {
|
|
|
3014
3014
|
head?: never;
|
|
3015
3015
|
/**
|
|
3016
3016
|
* Change an Environment's branding
|
|
3017
|
-
* @description Sets the Environment's branding. Every field is optional and stands on its own: send only what you want to change, send `null` to clear a field (the primary color then returns to the default blue). The product name shows in the browser tab, as the logo's alt text and in place of a missing logo; the logo shows at the top and the favicon in the tab; the primary color drives buttons and links, and the hover, link and focus shades are derived from it; the background color paints the page behind the card; the text and card colors set the card and what is written on it, with secondary text, lines and field borders derived from the pair; the color scheme chooses the light look, the dark look or whichever the visitor's device asks for, and the dark colors and dark logo describe the dark look, each with a default; the layout is one centred card or a split page with a panel beside the card, which holds a heading, a short text and an image; the background style paints the background color, a two-color gradient or an image behind the card; the corner radius rounds the card, its panels, fields and buttons together; the card style gives the card a border or none, and the card shadow sets the shadow under it; the body font sets the text and the heading font the headings, each a curated font from the fonts list or the https URL of a WOFF2 file, with the system font behind it; the support, terms and privacy links show as "Need help?", "Terms" and "Privacy" under every hosted page; `header_html`, `notice_html` and `footer_html` place your own content in a bar across the top of the page, above the card and under it, kept to links, paragraphs, bold, italics, line breaks, lists and images with https addresses, everything else being removed when it is saved, so the response shows what was kept; `text_overrides` rewords the hosted page texts the text keys list names, one text at a time; `custom_css` is your own CSS for hosted pages, applied after every other setting, which may set the published `--hp-*` tokens and style the published `hp-*` classes, and is refused when it loads a file from anywhere (`@import`, `@font-face`, `url()`), selects on a field's `value` or does not parse. Returns `400` (`
|
|
3017
|
+
* @description Sets the Environment's branding. Every field is optional and stands on its own: send only what you want to change, send `null` to clear a field (the primary color then returns to the default blue). The product name shows in the browser tab, as the logo's alt text and in place of a missing logo; the logo shows at the top and the favicon in the tab; the primary color drives buttons and links, and the hover, link and focus shades are derived from it; the background color paints the page behind the card; the text and card colors set the card and what is written on it, with secondary text, lines and field borders derived from the pair; the color scheme chooses the light look, the dark look or whichever the visitor's device asks for, and the dark colors and dark logo describe the dark look, each with a default; the layout is one centred card or a split page with a panel beside the card, which holds a heading, a short text and an image; the background style paints the background color, a two-color gradient or an image behind the card; the corner radius rounds the card, its panels, fields and buttons together; the card style gives the card a border or none, and the card shadow sets the shadow under it; the body font sets the text and the heading font the headings, each a curated font from the fonts list or the https URL of a WOFF2 file, with the system font behind it; the support, terms and privacy links show as "Need help?", "Terms" and "Privacy" under every hosted page; `header_html`, `notice_html` and `footer_html` place your own content in a bar across the top of the page, above the card and under it, kept to links, paragraphs, bold, italics, line breaks, lists and images with https addresses, everything else being removed when it is saved, so the response shows what was kept; `text_overrides` rewords the hosted page texts the text keys list names, one text at a time; `custom_css` is your own CSS for hosted pages, applied after every other setting, which may set the published `--hp-*` tokens and style the published `hp-*` classes, and is refused when it loads a file from anywhere (`@import`, `@font-face`, `url()`), selects on a field's `value` or does not parse. Returns `400` (`request.validation_failed`) for a malformed value, an image field whose address is not shaped like an image upload of its kind included, or `branding.image_not_uploaded` for an upload's address on another host or one Canopy does not store, and `403` (`plan_feature_unavailable`) when the request sets `custom_css`, `color_scheme`, `logo_dark_url`, a dark color, `layout`, `background_style`, a gradient color, a background or panel image, `panel_heading`, `panel_text`, a text in `text_overrides`, `header_html`, `notice_html`, `footer_html`, `text_color`, `surface_color`, `corner_radius`, `card_style`, `card_shadow`, `heading_font` or `body_font` and the Account's plan does not include hosted page customization; clearing one with `null` is always allowed. Emits `environment.branding_updated`, which records the fields that changed.
|
|
3018
3018
|
*/
|
|
3019
3019
|
patch: operations["ApiBrandingController_updateBranding"];
|
|
3020
3020
|
trace?: never;
|
|
3021
3021
|
};
|
|
3022
|
+
"/api/v1/branding/images": {
|
|
3023
|
+
parameters: {
|
|
3024
|
+
query?: never;
|
|
3025
|
+
header?: never;
|
|
3026
|
+
path?: never;
|
|
3027
|
+
cookie?: never;
|
|
3028
|
+
};
|
|
3029
|
+
get?: never;
|
|
3030
|
+
put?: never;
|
|
3031
|
+
/**
|
|
3032
|
+
* Upload a logo, favicon, background or panel image
|
|
3033
|
+
* @description Stores an image for the hosted pages and answers the address Canopy serves it at, which is the only value an image field (`logo_url`, `logo_dark_url`, `favicon_url`, `background_image_url`, `background_image_dark_url`, `panel_image_url`, `panel_image_dark_url`) takes. Send the file base64-encoded in `image`, or the public https address of the image in `url` for Canopy to fetch once, with its `slot`: `logo`, `favicon`, `background` or `panel`. A PNG, JPEG, WebP or SVG is accepted; it is decoded and drawn again, so the stored image carries no metadata and an SVG is drawn into pixels. A logo or favicon may be at most 1 MB and must be at least 32 by 32 pixels; a logo is stored as a PNG of at most 1200 by 600 and a favicon as a 64 by 64 PNG. A background or panel image may be at most 3 MB and must be at least 600 by 600 pixels; it is stored as a WebP of at most 2560 on either side. The address names the file by its content and size, so the same image always answers the same address, and it is served from Canopy's own origin, cached for a year. Uploading saves nothing to the branding: save the address with the branding update. An image no branding names is deleted after a day. Returns `400` with `branding.image_unreadable` for a file that is not one of those formats, `branding.image_too_large` or `branding.image_too_small` for one outside its kind's limits, `branding.image_svg_external` for an SVG that refers to a file or address outside itself, `branding.image_source` unless exactly one of `image` and `url` is sent, `request.validation_failed` for an address that is not https, `branding.image_url_refused` for one that is not public (a private or loopback host, credentials or a fragment), and `branding.image_url_unreachable` when the address does not answer `200` with the file within 5 seconds (Canopy follows no redirect). Returns `429` after 30 uploads in a minute.
|
|
3034
|
+
*/
|
|
3035
|
+
post: operations["ApiBrandingController_uploadImage"];
|
|
3036
|
+
delete?: never;
|
|
3037
|
+
options?: never;
|
|
3038
|
+
head?: never;
|
|
3039
|
+
patch?: never;
|
|
3040
|
+
trace?: never;
|
|
3041
|
+
};
|
|
3022
3042
|
"/api/v1/branding/preview-pages": {
|
|
3023
3043
|
parameters: {
|
|
3024
3044
|
query?: never;
|
|
@@ -3090,7 +3110,7 @@ interface paths {
|
|
|
3090
3110
|
put?: never;
|
|
3091
3111
|
/**
|
|
3092
3112
|
* Preview a hosted page or email in a branding
|
|
3093
|
-
* @description Renders one hosted page, in one of its states, or one customer email, in the Environment's branding with the unsaved changes in `branding` laid over it, so a branding change can be checked before it is saved. Nothing is saved, and no session or person is involved: the page shows sample data. `page` and `state` are ids from the preview list, and `scheme` renders a page in its light or its dark look whatever the color scheme. Returns the whole HTML document, which works without scripts. Returns `400` (`branding.preview_page_unknown`) for a page or state that does not exist,
|
|
3113
|
+
* @description Renders one hosted page, in one of its states, or one customer email, in the Environment's branding with the unsaved changes in `branding` laid over it, so a branding change can be checked before it is saved. Nothing is saved, and no session or person is involved: the 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, `validation` for a malformed branding value, or `branding.image_not_uploaded` for an image field that holds anything but an uploaded image, and `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization. `language` renders it in one of the languages Canopy writes the pages in, with the wording `text_overrides` holds for that language; left out, English.
|
|
3094
3114
|
*/
|
|
3095
3115
|
post: operations["ApiBrandingController_preview"];
|
|
3096
3116
|
delete?: never;
|
|
@@ -3099,6 +3119,26 @@ interface paths {
|
|
|
3099
3119
|
patch?: never;
|
|
3100
3120
|
trace?: never;
|
|
3101
3121
|
};
|
|
3122
|
+
"/api/v1/branding/preview-link": {
|
|
3123
|
+
parameters: {
|
|
3124
|
+
query?: never;
|
|
3125
|
+
header?: never;
|
|
3126
|
+
path?: never;
|
|
3127
|
+
cookie?: never;
|
|
3128
|
+
};
|
|
3129
|
+
get?: never;
|
|
3130
|
+
put?: never;
|
|
3131
|
+
/**
|
|
3132
|
+
* Make a link that opens a hosted page in a branding
|
|
3133
|
+
* @description Makes a link that opens one hosted page, in one of its states, in the Environment's branding with the unsaved changes in `branding` laid over it, so a person can see a look in their own browser before it is saved. Takes what the preview takes; `page` must be a hosted page, not an email. Nothing is saved, and the page shows sample data. The link opens for two minutes, on the API's own origin; open it in a browser rather than reading it, and make a new one once it has expired. The page runs with `sandbox allow-scripts` and `form-action 'none'`, so its forms submit nowhere and a page template's scripts reach no cookie or storage. Returns `400` (`branding.preview_link_page_unknown`) for a page or state that is not a hosted page's, `validation` for a malformed branding value, or `branding.image_not_uploaded` for an image field that holds anything but an uploaded image, and `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
|
|
3134
|
+
*/
|
|
3135
|
+
post: operations["ApiBrandingController_previewLink"];
|
|
3136
|
+
delete?: never;
|
|
3137
|
+
options?: never;
|
|
3138
|
+
head?: never;
|
|
3139
|
+
patch?: never;
|
|
3140
|
+
trace?: never;
|
|
3141
|
+
};
|
|
3102
3142
|
"/api/v1/token-claims": {
|
|
3103
3143
|
parameters: {
|
|
3104
3144
|
query?: never;
|
|
@@ -7447,16 +7487,25 @@ interface components {
|
|
|
7447
7487
|
UpdateEnvironmentBrandingDto: {
|
|
7448
7488
|
/** @description The product name hosted pages and the organization admin portal show: in the browser tab title, beside the logo when `logo_kind` is `icon`, as a full logo's alt text, and in place of a logo when none is set. Null clears it, and the pages then show no name. */
|
|
7449
7489
|
product_name?: string | null;
|
|
7450
|
-
/**
|
|
7490
|
+
/**
|
|
7491
|
+
* @description The logo shown at the top of hosted pages, the portal and emails to the Environment's users. The address `POST /api/v1/branding/images` answered for an image with `slot` `logo`; any other value is refused. Null clears it.
|
|
7492
|
+
* @example https://auth.canopy-io.com/branding-images/3f9a1c0e8b7d6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d4c3b2a1f-480x120.png
|
|
7493
|
+
*/
|
|
7451
7494
|
logo_url?: string | null;
|
|
7452
|
-
/**
|
|
7495
|
+
/**
|
|
7496
|
+
* @description 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. The address `POST /api/v1/branding/images` answered for an image with `slot` `logo`; any other value is refused. Null shows `logo_url` in both looks. Needs the `hosted_page_customization` plan feature to set.
|
|
7497
|
+
* @example https://auth.canopy-io.com/branding-images/3f9a1c0e8b7d6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d4c3b2a1f-480x120.png
|
|
7498
|
+
*/
|
|
7453
7499
|
logo_dark_url?: string | null;
|
|
7454
7500
|
/**
|
|
7455
7501
|
* @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`.
|
|
7456
7502
|
* @enum {string|null}
|
|
7457
7503
|
*/
|
|
7458
7504
|
logo_kind?: "full" | "icon" | null;
|
|
7459
|
-
/**
|
|
7505
|
+
/**
|
|
7506
|
+
* @description The browser-tab icon on hosted pages. The address `POST /api/v1/branding/images` answered for an image with `slot` `favicon`; any other value is refused. Null clears it.
|
|
7507
|
+
* @example https://auth.canopy-io.com/branding-images/3f9a1c0e8b7d6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d4c3b2a1f-64x64.png
|
|
7508
|
+
*/
|
|
7460
7509
|
favicon_url?: string | null;
|
|
7461
7510
|
/**
|
|
7462
7511
|
* @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.
|
|
@@ -7534,13 +7583,13 @@ interface components {
|
|
|
7534
7583
|
*/
|
|
7535
7584
|
gradient_end_dark_color?: string | null;
|
|
7536
7585
|
/**
|
|
7537
|
-
* @description The image behind the card when `background_style` is `image`.
|
|
7538
|
-
* @example https://
|
|
7586
|
+
* @description The image behind the card when `background_style` is `image`. The address `POST /api/v1/branding/images` answered for an image with `slot` `background`; any other value is refused. Null shows the background colour. Needs the `hosted_page_customization` plan feature to set.
|
|
7587
|
+
* @example https://auth.canopy-io.com/branding-images/3f9a1c0e8b7d6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d4c3b2a1f-1920x1080.webp
|
|
7539
7588
|
*/
|
|
7540
7589
|
background_image_url?: string | null;
|
|
7541
7590
|
/**
|
|
7542
|
-
* @description The image the dark look shows behind the card. Null dims `background_image_url`.
|
|
7543
|
-
* @example https://
|
|
7591
|
+
* @description The image the dark look shows behind the card. Null dims `background_image_url`. The address `POST /api/v1/branding/images` answered for an image with `slot` `background`; any other value is refused. Needs the `hosted_page_customization` plan feature to set.
|
|
7592
|
+
* @example https://auth.canopy-io.com/branding-images/3f9a1c0e8b7d6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d4c3b2a1f-1920x1080.webp
|
|
7544
7593
|
*/
|
|
7545
7594
|
background_image_dark_url?: string | null;
|
|
7546
7595
|
/** @description The heading on the `split` layout's panel, as plain text. Null shows none. Needs the `hosted_page_customization` plan feature to set. */
|
|
@@ -7548,13 +7597,13 @@ interface components {
|
|
|
7548
7597
|
/** @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. */
|
|
7549
7598
|
panel_text?: string | null;
|
|
7550
7599
|
/**
|
|
7551
|
-
* @description The image that fills the `split` layout's panel, darkened under the heading and text so they stay readable.
|
|
7552
|
-
* @example https://
|
|
7600
|
+
* @description The image that fills the `split` layout's panel, darkened under the heading and text so they stay readable. The address `POST /api/v1/branding/images` answered for an image with `slot` `panel`; any other value is refused. Null fills the panel from the primary colour. Needs the `hosted_page_customization` plan feature to set.
|
|
7601
|
+
* @example https://auth.canopy-io.com/branding-images/3f9a1c0e8b7d6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d4c3b2a1f-1200x1600.webp
|
|
7553
7602
|
*/
|
|
7554
7603
|
panel_image_url?: string | null;
|
|
7555
7604
|
/**
|
|
7556
|
-
* @description The image the dark look shows on the panel. Null shows `panel_image_url`.
|
|
7557
|
-
* @example https://
|
|
7605
|
+
* @description The image the dark look shows on the panel. Null shows `panel_image_url`. The address `POST /api/v1/branding/images` answered for an image with `slot` `panel`; any other value is refused. Needs the `hosted_page_customization` plan feature to set.
|
|
7606
|
+
* @example https://auth.canopy-io.com/branding-images/3f9a1c0e8b7d6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d4c3b2a1f-1200x1600.webp
|
|
7558
7607
|
*/
|
|
7559
7608
|
panel_image_dark_url?: string | null;
|
|
7560
7609
|
/**
|
|
@@ -7644,6 +7693,46 @@ interface components {
|
|
|
7644
7693
|
};
|
|
7645
7694
|
} | null;
|
|
7646
7695
|
};
|
|
7696
|
+
BrandingImageResponseDto: {
|
|
7697
|
+
/**
|
|
7698
|
+
* @description Where Canopy serves the image. Save it in a branding field of the image's kind; the same file always answers the same address.
|
|
7699
|
+
* @example https://auth.canopy-io.com/branding-images/3f9a1c0e8b7d6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d4c3b2a1f-480x120.png
|
|
7700
|
+
*/
|
|
7701
|
+
url: string;
|
|
7702
|
+
/**
|
|
7703
|
+
* @description Its width in pixels.
|
|
7704
|
+
* @example 480
|
|
7705
|
+
*/
|
|
7706
|
+
width: number;
|
|
7707
|
+
/**
|
|
7708
|
+
* @description Its height in pixels.
|
|
7709
|
+
* @example 120
|
|
7710
|
+
*/
|
|
7711
|
+
height: number;
|
|
7712
|
+
/**
|
|
7713
|
+
* @description The format it is stored and served in.
|
|
7714
|
+
* @example image/png
|
|
7715
|
+
*/
|
|
7716
|
+
content_type: string;
|
|
7717
|
+
};
|
|
7718
|
+
UploadBrandingImageDto: {
|
|
7719
|
+
/**
|
|
7720
|
+
* @description The kind of image, which sets its rules and the fields that take it. `logo`: for `logo_url` and `logo_dark_url`; at most 1 MB, at least 32 by 32 pixels, stored as a PNG of at most 1200 by 600. `favicon`: for `favicon_url`; at most 1 MB, at least 32 by 32 pixels, stored as a 64 by 64 PNG. `background`: for `background_image_url` and `background_image_dark_url`; at most 3 MB, at least 600 by 600 pixels, stored as a WebP of at most 2560 on either side. `panel`: the same, for `panel_image_url` and `panel_image_dark_url`.
|
|
7721
|
+
* @example logo
|
|
7722
|
+
* @enum {string}
|
|
7723
|
+
*/
|
|
7724
|
+
slot: "logo" | "favicon" | "background" | "panel";
|
|
7725
|
+
/**
|
|
7726
|
+
* @description The file, base64-encoded: a PNG, JPEG, WebP or SVG. Send this or `url`, not both. It is decoded and drawn again, so the stored image carries no metadata, and an SVG is drawn into pixels; an SVG that refers to any file or address outside itself is refused.
|
|
7727
|
+
* @example iVBORw0KGgoAAAANSUhEUgAA…
|
|
7728
|
+
*/
|
|
7729
|
+
image?: string;
|
|
7730
|
+
/**
|
|
7731
|
+
* @description A public https address Canopy fetches the file from once, in place of `image`: the address of the image itself, which must answer `200` within 5 seconds, since Canopy follows no redirect. The same formats and limits apply, and the stored copy is Canopy's own; the address is not kept.
|
|
7732
|
+
* @example https://www.fernleaf.example/brand/logo.svg
|
|
7733
|
+
*/
|
|
7734
|
+
url?: string;
|
|
7735
|
+
};
|
|
7647
7736
|
BrandingPreviewStateDto: {
|
|
7648
7737
|
/** @example WrongPassword */
|
|
7649
7738
|
id: string;
|
|
@@ -7774,6 +7863,23 @@ interface components {
|
|
|
7774
7863
|
*/
|
|
7775
7864
|
language?: "en" | "es";
|
|
7776
7865
|
};
|
|
7866
|
+
BrandingPreviewLinkResponseDto: {
|
|
7867
|
+
/**
|
|
7868
|
+
* @description The page's title.
|
|
7869
|
+
* @example Sign in
|
|
7870
|
+
*/
|
|
7871
|
+
title: string;
|
|
7872
|
+
/**
|
|
7873
|
+
* @description The page, on the API's own origin. Load it in a frame with `sandbox="allow-scripts"` and never `allow-same-origin`.
|
|
7874
|
+
* @example https://auth.canopy-io.com/branding-preview/0b7Yc9vQm3kTq1sXr8LpZf2uWn5aEhJd
|
|
7875
|
+
*/
|
|
7876
|
+
url: string;
|
|
7877
|
+
/**
|
|
7878
|
+
* Format: date-time
|
|
7879
|
+
* @description When the link stops opening.
|
|
7880
|
+
*/
|
|
7881
|
+
expires_at: string;
|
|
7882
|
+
};
|
|
7777
7883
|
TokenClaimEntryResponseDto: {
|
|
7778
7884
|
/**
|
|
7779
7885
|
* @description The claim's name on the token: letters, digits, `_`, `-`, `.`, `:` and `/`, at most 64 characters. A name the JWT or OpenID Connect standards define, or one Canopy sets (`type`, the `*_id` and `*_slug` claims, `permissions`, anything starting `org_` or `mcp_`), is refused.
|
|
@@ -9874,6 +9980,31 @@ interface components {
|
|
|
9874
9980
|
succeeded: number;
|
|
9875
9981
|
/** @description How many were refused. */
|
|
9876
9982
|
failed: number;
|
|
9983
|
+
/** @description Who was given which role, and where. */
|
|
9984
|
+
affected: {
|
|
9985
|
+
/**
|
|
9986
|
+
* Format: uuid
|
|
9987
|
+
* @description The identity holding the assignment; null when a machine client holds it.
|
|
9988
|
+
*/
|
|
9989
|
+
identity_id: string | null;
|
|
9990
|
+
/**
|
|
9991
|
+
* Format: uuid
|
|
9992
|
+
* @description The machine OAuth client holding the assignment; null when a person holds it.
|
|
9993
|
+
*/
|
|
9994
|
+
oauth_client_id?: string | null;
|
|
9995
|
+
/** @description That machine client's `client_id`: its token's `sub`, the id its grants route takes and an SDK cache names it by. Null when a person holds the assignment. */
|
|
9996
|
+
client_id?: string | null;
|
|
9997
|
+
/**
|
|
9998
|
+
* Format: uuid
|
|
9999
|
+
* @description The hierarchy node the role is held at.
|
|
10000
|
+
*/
|
|
10001
|
+
node_id: string;
|
|
10002
|
+
/**
|
|
10003
|
+
* Format: uuid
|
|
10004
|
+
* @description The role assigned.
|
|
10005
|
+
*/
|
|
10006
|
+
role_id: string;
|
|
10007
|
+
}[];
|
|
9877
10008
|
/**
|
|
9878
10009
|
* @description Set when directory sync made the change rather than somebody directly.
|
|
9879
10010
|
* @enum {string}
|
|
@@ -14465,6 +14596,8 @@ interface operations {
|
|
|
14465
14596
|
include?: "windows";
|
|
14466
14597
|
};
|
|
14467
14598
|
header?: {
|
|
14599
|
+
/** @description The `ETag` of a previous response for the same page, page size and `include`. Answers `304 Not Modified` while nothing that decides these grants has changed, so a client holding them revalidates without the grants being worked out again. */
|
|
14600
|
+
"If-None-Match"?: string;
|
|
14468
14601
|
/** @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`). */
|
|
14469
14602
|
"X-Canopy-Environment"?: string;
|
|
14470
14603
|
};
|
|
@@ -14491,6 +14624,13 @@ interface operations {
|
|
|
14491
14624
|
};
|
|
14492
14625
|
};
|
|
14493
14626
|
};
|
|
14627
|
+
/** @description The grants are unchanged since the supplied `ETag`. No body; keep using the held copy. */
|
|
14628
|
+
304: {
|
|
14629
|
+
headers: {
|
|
14630
|
+
[name: string]: unknown;
|
|
14631
|
+
};
|
|
14632
|
+
content?: never;
|
|
14633
|
+
};
|
|
14494
14634
|
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; 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 */
|
|
14495
14635
|
400: {
|
|
14496
14636
|
headers: {
|
|
@@ -32553,7 +32693,7 @@ interface operations {
|
|
|
32553
32693
|
};
|
|
32554
32694
|
};
|
|
32555
32695
|
};
|
|
32556
|
-
/** @description A value is malformed: the logo, favicon,
|
|
32696
|
+
/** @description A value is malformed: the logo, favicon, background and panel images must each be an address an image upload of their kind answered (`request.validation_failed`, or `branding.image_not_uploaded` for an upload's address Canopy does not store), the terms and privacy links 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, the panel heading at most 80 characters and its text at most 240, `text_overrides` texts from the text keys list, each plain text within its length that keeps its placeholders, the header, notice and footer content at most 2,000 characters each, a heading or body font a curated font's id or an https URL, and `custom_css` CSS of at most 20,000 characters that parses, loads no file (`@import`, `@font-face`, `url()`), selects on no field's `value` and names no `--_hp-*` property or `</`, `page_template` a document of at most 100,000 characters holding `{{canopy:head}}` once inside `<head>` and `{{canopy:form}}` once inside `<body>` with no `<base>`, `<meta http-equiv>`, frame, `<object>` or `<embed>`, and `page_template_sources` at most 20 https addresses with no path; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
|
|
32557
32697
|
400: {
|
|
32558
32698
|
headers: {
|
|
32559
32699
|
[name: string]: unknown;
|
|
@@ -32564,7 +32704,7 @@ interface operations {
|
|
|
32564
32704
|
* "error": {
|
|
32565
32705
|
* "statusCode": 400,
|
|
32566
32706
|
* "code": "request.invalid",
|
|
32567
|
-
* "message": "A value is malformed: the logo, favicon,
|
|
32707
|
+
* "message": "A value is malformed: the logo, favicon, background and panel images must each be an address an image upload of their kind answered (`request.validation_failed`, or `branding.image_not_uploaded` for an upload's address Canopy does not store), the terms and privacy links 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, the panel heading at most 80 characters and its text at most 240, `text_overrides` texts from the text keys list, each plain text within its length that keeps its placeholders, the header, notice and footer content at most 2,000 characters each, a heading or body font a curated font's id or an https URL, and `custom_css` CSS of at most 20,000 characters that parses, loads no file (`@import`, `@font-face`, `url()`), selects on no field's `value` and names no `--_hp-*` property or `</`, `page_template` a document of at most 100,000 characters holding `{{canopy:head}}` once inside `<head>` and `{{canopy:form}}` once inside `<body>` with no `<base>`, `<meta http-equiv>`, frame, `<object>` or `<embed>`, and `page_template_sources` at most 20 https addresses with no path; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
|
|
32568
32708
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
32569
32709
|
* "path": "/api/v1/branding",
|
|
32570
32710
|
* "method": "PATCH"
|
|
@@ -32639,6 +32779,119 @@ interface operations {
|
|
|
32639
32779
|
};
|
|
32640
32780
|
};
|
|
32641
32781
|
};
|
|
32782
|
+
ApiBrandingController_uploadImage: {
|
|
32783
|
+
parameters: {
|
|
32784
|
+
query?: never;
|
|
32785
|
+
header?: {
|
|
32786
|
+
/** @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`). */
|
|
32787
|
+
"X-Canopy-Environment"?: string;
|
|
32788
|
+
};
|
|
32789
|
+
path?: never;
|
|
32790
|
+
cookie?: never;
|
|
32791
|
+
};
|
|
32792
|
+
requestBody: {
|
|
32793
|
+
content: {
|
|
32794
|
+
"application/json": components["schemas"]["UploadBrandingImageDto"];
|
|
32795
|
+
};
|
|
32796
|
+
};
|
|
32797
|
+
responses: {
|
|
32798
|
+
/** @description The stored image, and the address to save in a branding field */
|
|
32799
|
+
200: {
|
|
32800
|
+
headers: {
|
|
32801
|
+
[name: string]: unknown;
|
|
32802
|
+
};
|
|
32803
|
+
content: {
|
|
32804
|
+
"application/json": {
|
|
32805
|
+
data: components["schemas"]["BrandingImageResponseDto"];
|
|
32806
|
+
};
|
|
32807
|
+
};
|
|
32808
|
+
};
|
|
32809
|
+
/** @description The file is not a PNG, JPEG, WebP or SVG (`branding.image_unreadable`), is outside its kind's limits (`branding.image_too_large`, `branding.image_too_small`), is an SVG that refers to something outside itself (`branding.image_svg_external`), the request sends neither or both of `image` and `url` (`branding.image_source`), the address is refused or cannot be fetched (`branding.image_url_refused`, `branding.image_url_unreachable`), or the body 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 */
|
|
32810
|
+
400: {
|
|
32811
|
+
headers: {
|
|
32812
|
+
[name: string]: unknown;
|
|
32813
|
+
};
|
|
32814
|
+
content: {
|
|
32815
|
+
/**
|
|
32816
|
+
* @example {
|
|
32817
|
+
* "error": {
|
|
32818
|
+
* "statusCode": 400,
|
|
32819
|
+
* "code": "request.invalid",
|
|
32820
|
+
* "message": "The file is not a PNG, JPEG, WebP or SVG (`branding.image_unreadable`), is outside its kind's limits (`branding.image_too_large`, `branding.image_too_small`), is an SVG that refers to something outside itself (`branding.image_svg_external`), the request sends neither or both of `image` and `url` (`branding.image_source`), the address is refused or cannot be fetched (`branding.image_url_refused`, `branding.image_url_unreachable`), or the body 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",
|
|
32821
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
32822
|
+
* "path": "/api/v1/branding/images",
|
|
32823
|
+
* "method": "POST"
|
|
32824
|
+
* }
|
|
32825
|
+
* }
|
|
32826
|
+
*/
|
|
32827
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
32828
|
+
};
|
|
32829
|
+
};
|
|
32830
|
+
/** @description Invalid or expired token */
|
|
32831
|
+
401: {
|
|
32832
|
+
headers: {
|
|
32833
|
+
[name: string]: unknown;
|
|
32834
|
+
};
|
|
32835
|
+
content: {
|
|
32836
|
+
/**
|
|
32837
|
+
* @example {
|
|
32838
|
+
* "error": {
|
|
32839
|
+
* "statusCode": 401,
|
|
32840
|
+
* "code": "auth.invalid_token",
|
|
32841
|
+
* "message": "Invalid or expired token",
|
|
32842
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
32843
|
+
* "path": "/api/v1/branding",
|
|
32844
|
+
* "method": "GET"
|
|
32845
|
+
* }
|
|
32846
|
+
* }
|
|
32847
|
+
*/
|
|
32848
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
32849
|
+
};
|
|
32850
|
+
};
|
|
32851
|
+
/** @description The caller lacks `branding.manage` */
|
|
32852
|
+
403: {
|
|
32853
|
+
headers: {
|
|
32854
|
+
[name: string]: unknown;
|
|
32855
|
+
};
|
|
32856
|
+
content: {
|
|
32857
|
+
/**
|
|
32858
|
+
* @example {
|
|
32859
|
+
* "error": {
|
|
32860
|
+
* "statusCode": 403,
|
|
32861
|
+
* "code": "auth.forbidden",
|
|
32862
|
+
* "message": "The caller lacks `branding.manage`",
|
|
32863
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
32864
|
+
* "path": "/api/v1/branding/images",
|
|
32865
|
+
* "method": "POST"
|
|
32866
|
+
* }
|
|
32867
|
+
* }
|
|
32868
|
+
*/
|
|
32869
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
32870
|
+
};
|
|
32871
|
+
};
|
|
32872
|
+
/** @description More than 30 image uploads in a minute from this caller; wait and retry */
|
|
32873
|
+
429: {
|
|
32874
|
+
headers: {
|
|
32875
|
+
[name: string]: unknown;
|
|
32876
|
+
};
|
|
32877
|
+
content: {
|
|
32878
|
+
/**
|
|
32879
|
+
* @example {
|
|
32880
|
+
* "error": {
|
|
32881
|
+
* "statusCode": 429,
|
|
32882
|
+
* "code": "request.rate_limited",
|
|
32883
|
+
* "message": "More than 30 image uploads in a minute from this caller; wait and retry",
|
|
32884
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
32885
|
+
* "path": "/api/v1/branding/images",
|
|
32886
|
+
* "method": "POST"
|
|
32887
|
+
* }
|
|
32888
|
+
* }
|
|
32889
|
+
*/
|
|
32890
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
32891
|
+
};
|
|
32892
|
+
};
|
|
32893
|
+
};
|
|
32894
|
+
};
|
|
32642
32895
|
ApiBrandingController_getPreviewPages: {
|
|
32643
32896
|
parameters: {
|
|
32644
32897
|
query?: never;
|
|
@@ -32930,7 +33183,7 @@ interface operations {
|
|
|
32930
33183
|
};
|
|
32931
33184
|
};
|
|
32932
33185
|
};
|
|
32933
|
-
/** @description The page or state does not exist (`branding.preview_page_unknown`),
|
|
33186
|
+
/** @description The page or state does not exist (`branding.preview_page_unknown`), a branding value is malformed (`validation`), or an image field holds anything but an uploaded image (`branding.image_not_uploaded`); 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 */
|
|
32934
33187
|
400: {
|
|
32935
33188
|
headers: {
|
|
32936
33189
|
[name: string]: unknown;
|
|
@@ -32941,7 +33194,7 @@ interface operations {
|
|
|
32941
33194
|
* "error": {
|
|
32942
33195
|
* "statusCode": 400,
|
|
32943
33196
|
* "code": "request.invalid",
|
|
32944
|
-
* "message": "The page or state does not exist (`branding.preview_page_unknown`),
|
|
33197
|
+
* "message": "The page or state does not exist (`branding.preview_page_unknown`), a branding value is malformed (`validation`), or an image field holds anything but an uploaded image (`branding.image_not_uploaded`); 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",
|
|
32945
33198
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
32946
33199
|
* "path": "/api/v1/branding/preview",
|
|
32947
33200
|
* "method": "POST"
|
|
@@ -32995,6 +33248,98 @@ interface operations {
|
|
|
32995
33248
|
};
|
|
32996
33249
|
};
|
|
32997
33250
|
};
|
|
33251
|
+
ApiBrandingController_previewLink: {
|
|
33252
|
+
parameters: {
|
|
33253
|
+
query?: never;
|
|
33254
|
+
header?: {
|
|
33255
|
+
/** @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`). */
|
|
33256
|
+
"X-Canopy-Environment"?: string;
|
|
33257
|
+
};
|
|
33258
|
+
path?: never;
|
|
33259
|
+
cookie?: never;
|
|
33260
|
+
};
|
|
33261
|
+
requestBody: {
|
|
33262
|
+
content: {
|
|
33263
|
+
"application/json": components["schemas"]["BrandingPreviewRequestDto"];
|
|
33264
|
+
};
|
|
33265
|
+
};
|
|
33266
|
+
responses: {
|
|
33267
|
+
/** @description A short-lived link to the page, and its title */
|
|
33268
|
+
200: {
|
|
33269
|
+
headers: {
|
|
33270
|
+
[name: string]: unknown;
|
|
33271
|
+
};
|
|
33272
|
+
content: {
|
|
33273
|
+
"application/json": {
|
|
33274
|
+
data: components["schemas"]["BrandingPreviewLinkResponseDto"];
|
|
33275
|
+
};
|
|
33276
|
+
};
|
|
33277
|
+
};
|
|
33278
|
+
/** @description The page or state is not a hosted page's (`branding.preview_link_page_unknown`), a branding value is malformed (`validation`), or an image field holds anything but an uploaded image (`branding.image_not_uploaded`); 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 */
|
|
33279
|
+
400: {
|
|
33280
|
+
headers: {
|
|
33281
|
+
[name: string]: unknown;
|
|
33282
|
+
};
|
|
33283
|
+
content: {
|
|
33284
|
+
/**
|
|
33285
|
+
* @example {
|
|
33286
|
+
* "error": {
|
|
33287
|
+
* "statusCode": 400,
|
|
33288
|
+
* "code": "request.invalid",
|
|
33289
|
+
* "message": "The page or state is not a hosted page's (`branding.preview_link_page_unknown`), a branding value is malformed (`validation`), or an image field holds anything but an uploaded image (`branding.image_not_uploaded`); 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",
|
|
33290
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
33291
|
+
* "path": "/api/v1/branding/preview-link",
|
|
33292
|
+
* "method": "POST"
|
|
33293
|
+
* }
|
|
33294
|
+
* }
|
|
33295
|
+
*/
|
|
33296
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
33297
|
+
};
|
|
33298
|
+
};
|
|
33299
|
+
/** @description Invalid or expired token */
|
|
33300
|
+
401: {
|
|
33301
|
+
headers: {
|
|
33302
|
+
[name: string]: unknown;
|
|
33303
|
+
};
|
|
33304
|
+
content: {
|
|
33305
|
+
/**
|
|
33306
|
+
* @example {
|
|
33307
|
+
* "error": {
|
|
33308
|
+
* "statusCode": 401,
|
|
33309
|
+
* "code": "auth.invalid_token",
|
|
33310
|
+
* "message": "Invalid or expired token",
|
|
33311
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
33312
|
+
* "path": "/api/v1/branding",
|
|
33313
|
+
* "method": "GET"
|
|
33314
|
+
* }
|
|
33315
|
+
* }
|
|
33316
|
+
*/
|
|
33317
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
33318
|
+
};
|
|
33319
|
+
};
|
|
33320
|
+
/** @description The caller lacks `branding.view`, or the Account's plan does not include hosted page customization (`plan_feature_unavailable`) */
|
|
33321
|
+
403: {
|
|
33322
|
+
headers: {
|
|
33323
|
+
[name: string]: unknown;
|
|
33324
|
+
};
|
|
33325
|
+
content: {
|
|
33326
|
+
/**
|
|
33327
|
+
* @example {
|
|
33328
|
+
* "error": {
|
|
33329
|
+
* "statusCode": 403,
|
|
33330
|
+
* "code": "auth.forbidden",
|
|
33331
|
+
* "message": "The caller lacks `branding.view`, or the Account's plan does not include hosted page customization (`plan_feature_unavailable`)",
|
|
33332
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
33333
|
+
* "path": "/api/v1/branding/preview-link",
|
|
33334
|
+
* "method": "POST"
|
|
33335
|
+
* }
|
|
33336
|
+
* }
|
|
33337
|
+
*/
|
|
33338
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
33339
|
+
};
|
|
33340
|
+
};
|
|
33341
|
+
};
|
|
33342
|
+
};
|
|
32998
33343
|
ApiTokenClaimsController_getTokenClaims: {
|
|
32999
33344
|
parameters: {
|
|
33000
33345
|
query?: never;
|
|
@@ -44960,6 +45305,8 @@ interface operations {
|
|
|
44960
45305
|
include?: "windows";
|
|
44961
45306
|
};
|
|
44962
45307
|
header?: {
|
|
45308
|
+
/** @description The `ETag` of a previous response for the same page, page size and `include`. Answers `304 Not Modified` while nothing that decides these grants has changed, so a client holding them revalidates without the grants being worked out again. */
|
|
45309
|
+
"If-None-Match"?: string;
|
|
44963
45310
|
/** @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`). */
|
|
44964
45311
|
"X-Canopy-Environment"?: string;
|
|
44965
45312
|
};
|
|
@@ -44986,6 +45333,13 @@ interface operations {
|
|
|
44986
45333
|
};
|
|
44987
45334
|
};
|
|
44988
45335
|
};
|
|
45336
|
+
/** @description The grants are unchanged since the supplied `ETag`. No body; keep using the held copy. */
|
|
45337
|
+
304: {
|
|
45338
|
+
headers: {
|
|
45339
|
+
[name: string]: unknown;
|
|
45340
|
+
};
|
|
45341
|
+
content?: never;
|
|
45342
|
+
};
|
|
44989
45343
|
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`), or a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
|
|
44990
45344
|
400: {
|
|
44991
45345
|
headers: {
|
|
@@ -48377,10 +48731,15 @@ interface AccessibleNodes {
|
|
|
48377
48731
|
envWide: boolean;
|
|
48378
48732
|
}
|
|
48379
48733
|
interface LocalAuthorizerStats {
|
|
48380
|
-
/** Reads of an identity's grant roots, one per refresh however many pages it took. */
|
|
48734
|
+
/** Reads of an identity's grant roots, one per refresh however many pages it took, including revalidations. */
|
|
48381
48735
|
grantFetches: number;
|
|
48382
|
-
/**
|
|
48736
|
+
/**
|
|
48737
|
+
* Page requests those reads made: one for a revalidation the server answers
|
|
48738
|
+
* `304`, otherwise one per page of 100 grants.
|
|
48739
|
+
*/
|
|
48383
48740
|
grantPages: number;
|
|
48741
|
+
/** Revalidations the server answered `304`, so no grants were transferred. */
|
|
48742
|
+
grantNotModified: number;
|
|
48384
48743
|
/** Reads of the hierarchy, one per refresh, including revalidations. */
|
|
48385
48744
|
treeRequests: number;
|
|
48386
48745
|
/**
|
|
@@ -48634,8 +48993,27 @@ declare class LocalAuthorizer {
|
|
|
48634
48993
|
*
|
|
48635
48994
|
* Every page carries the subject's deny roots whole, beside its rows; they
|
|
48636
48995
|
* are gathered from each page, so a read is one snapshot of both.
|
|
48996
|
+
*
|
|
48997
|
+
* Revalidate rather than re-read. The first page is asked for with the
|
|
48998
|
+
* validator the held grants came with, and a `304` means nothing that
|
|
48999
|
+
* decides this subject's access has changed: the grants stay in memory and
|
|
49000
|
+
* only their expiry moves. Canopy answers it after reading the subject's
|
|
49001
|
+
* access versions alone, so the common refresh costs one small read on both
|
|
49002
|
+
* sides. Only the first page is conditional; its validator covers every
|
|
49003
|
+
* page.
|
|
49004
|
+
*
|
|
49005
|
+
* A read over several pages is not confirmed the way the hierarchy's is.
|
|
49006
|
+
* The validator kept is the first page's, taken before any later page was
|
|
49007
|
+
* read, so a change made during the walk moves the subject's version past
|
|
49008
|
+
* it, and the next refresh reads every page again.
|
|
48637
49009
|
*/
|
|
48638
49010
|
private fetchGrantRoots;
|
|
49011
|
+
/**
|
|
49012
|
+
* Hold a subject's grants until the TTL, or until the nearest window edge
|
|
49013
|
+
* still ahead when that comes sooner, so a grant takes effect or ends on
|
|
49014
|
+
* time.
|
|
49015
|
+
*/
|
|
49016
|
+
private keepGrants;
|
|
48639
49017
|
private treeEntry;
|
|
48640
49018
|
/**
|
|
48641
49019
|
* Revalidate rather than re-read. The hierarchy is the expensive half and
|