@canopy-io/node 0.26.1 → 0.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.cts +48 -26
- package/dist/index.d.ts +48 -26
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @canopy-io/node
|
|
2
2
|
|
|
3
|
+
## 0.26.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 658e24d: Follows Canopy's release that splits the Console's Authentication page and lets a directory refuse clearing its roles. The generated types add `environment_grantable_roles_set` to an organization's directory (whether the Environment sets a list the organization falls back to; without one, clearing the organization's list while its directory is connected is refused), add `sample` to each branding preview state and `client_id` to the preview, and say that the single-client OAuth routes take the client's `client_id` in their path.
|
|
8
|
+
|
|
3
9
|
## 0.26.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.d.cts
CHANGED
|
@@ -3048,7 +3048,7 @@ interface paths {
|
|
|
3048
3048
|
};
|
|
3049
3049
|
/**
|
|
3050
3050
|
* List the hosted pages and emails a preview can render
|
|
3051
|
-
* @description Lists every hosted page and every customer email the branding preview can render, in the order to show them: each with its `id`, its `kind` (`page` or `email`), the `group` it sits in, its `title`, and its states. An email has one state, `default`. Returns `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
|
|
3051
|
+
* @description Lists every hosted page and every customer email the branding preview can render, in the order to show them: each with its `id`, its `kind` (`page` or `email`), the `group` it sits in, its `title`, and its states. Each state has an `id`, a `label` and `sample`: `false` for `YourPage`, the first state of the sign-in and sign-up pages, which shows the page as the Environment serves it, with the sign-in methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients, or to the one `client_id` names, and `true` for every other state, which shows sample data, the same in every Environment. An email has one state, `default`. Returns `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
|
|
3052
3052
|
*/
|
|
3053
3053
|
get: operations["ApiBrandingController_getPreviewPages"];
|
|
3054
3054
|
put?: never;
|
|
@@ -3110,7 +3110,7 @@ interface paths {
|
|
|
3110
3110
|
put?: never;
|
|
3111
3111
|
/**
|
|
3112
3112
|
* Preview a hosted page or email in a branding
|
|
3113
|
-
* @description Renders one hosted page, in one of its states, or one customer email, in the Environment's branding with the unsaved changes in `branding` laid over it, so a branding change can be checked before it is saved. Nothing is saved, and no session or person is involved
|
|
3113
|
+
* @description Renders one hosted page, in one of its states, or one customer email, in the Environment's branding with the unsaved changes in `branding` laid over it, so a branding change can be checked before it is saved. Nothing is saved, and no session or person is involved. The sign-in and sign-up pages open on `YourPage`, which shows the page as the Environment serves it, with the sign-in methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients, or to the one `client_id` names; every other state shows sample data, the same in every Environment. `page` and `state` are ids from the preview list, and `scheme` renders a page in its light or its dark look whatever the color scheme. Returns the whole HTML document, which works without scripts. Returns `400` (`branding.preview_page_unknown`) for a page or state that does not exist, `validation` for a malformed branding value, or `branding.image_not_uploaded` for an image field that holds anything but an uploaded image, and `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization. `language` renders it in one of the languages Canopy writes the pages in, with the wording `text_overrides` holds for that language; left out, English.
|
|
3114
3114
|
*/
|
|
3115
3115
|
post: operations["ApiBrandingController_preview"];
|
|
3116
3116
|
delete?: never;
|
|
@@ -3130,7 +3130,7 @@ interface paths {
|
|
|
3130
3130
|
put?: never;
|
|
3131
3131
|
/**
|
|
3132
3132
|
* Make a link that opens a hosted page in a branding
|
|
3133
|
-
* @description Makes a link that opens one hosted page, in one of its states, in the Environment's branding with the unsaved changes in `branding` laid over it, so a person can see a look in their own browser before it is saved. Takes what the preview takes; `page` must be a hosted page, not an email. Nothing is saved
|
|
3133
|
+
* @description Makes a link that opens one hosted page, in one of its states, in the Environment's branding with the unsaved changes in `branding` laid over it, so a person can see a look in their own browser before it is saved. Takes what the preview takes; `page` must be a hosted page, not an email. Nothing is saved. The sign-in and sign-up pages open on `YourPage`, which shows the page as the Environment serves it, with the sign-in methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients, or to the one `client_id` names; every other state shows sample data, the same in every Environment. The link opens for two minutes, on the API's own origin; open it in a browser rather than reading it, and make a new one once it has expired. The page runs with `sandbox allow-scripts` and `form-action 'none'`, so its forms submit nowhere and a page template's scripts reach no cookie or storage. Returns `400` (`branding.preview_link_page_unknown`) for a page or state that is not a hosted page's, `validation` for a malformed branding value, or `branding.image_not_uploaded` for an image field that holds anything but an uploaded image, and `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
|
|
3134
3134
|
*/
|
|
3135
3135
|
post: operations["ApiBrandingController_previewLink"];
|
|
3136
3136
|
delete?: never;
|
|
@@ -4444,21 +4444,21 @@ interface paths {
|
|
|
4444
4444
|
};
|
|
4445
4445
|
/**
|
|
4446
4446
|
* Get OAuth client details
|
|
4447
|
-
* @description Returns a single OAuth client
|
|
4447
|
+
* @description Returns a single OAuth client of the current Environment. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. A client that exists in a sibling Environment reads as `404` too. The `client_secret` is never included.
|
|
4448
4448
|
*/
|
|
4449
4449
|
get: operations["ApiOAuthClientsController_get"];
|
|
4450
4450
|
put?: never;
|
|
4451
4451
|
post?: never;
|
|
4452
4452
|
/**
|
|
4453
4453
|
* Delete OAuth client
|
|
4454
|
-
* @description Deletes an OAuth client from the current Environment
|
|
4454
|
+
* @description Deletes an OAuth client from the current Environment. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. Responds `204 No Content` on success, or `404` when the client is not found in this Environment.
|
|
4455
4455
|
*/
|
|
4456
4456
|
delete: operations["ApiOAuthClientsController_remove"];
|
|
4457
4457
|
options?: never;
|
|
4458
4458
|
head?: never;
|
|
4459
4459
|
/**
|
|
4460
4460
|
* Update OAuth client
|
|
4461
|
-
* @description Updates an OAuth client's mutable fields (`name`, `redirect_uris`, `post_logout_redirect_uris`, `backchannel_logout_uri`, `scopes`, `is_active`, `invite_redirect_url`, `initiate_login_uri`, and for a web client `branding`, the settings it carries over its Environment's branding; for a machine client `allowed_audiences` and `token_exchange`, which adds or removes the token-exchange grant in its `grant_types`), scoped to the current Environment. A `scopes` value outside `openid`, `profile`, `email`, `org` and `permissions` is refused with `400` (`oauth.client_scope_unknown`). Returns the updated client, or `404` when the client is not found in this Environment. Send `If-Match` with the client's `version` to refuse a stale write (`409 version_mismatch`). Setting a `branding` value answers `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization, `400` (`oauth.machine_client_branding_invalid`) on a machine client, and `400` (`oauth.client_page_template_invalid`) for `page_template` or `page_template_sources`, which belong to the Environment; returning one to the Environment's with `null` is always allowed. The secret is not rotated here.
|
|
4461
|
+
* @description Updates an OAuth client's mutable fields (`name`, `redirect_uris`, `post_logout_redirect_uris`, `backchannel_logout_uri`, `scopes`, `is_active`, `invite_redirect_url`, `initiate_login_uri`, and for a web client `branding`, the settings it carries over its Environment's branding; for a machine client `allowed_audiences` and `token_exchange`, which adds or removes the token-exchange grant in its `grant_types`), scoped to the current Environment. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. A `scopes` value outside `openid`, `profile`, `email`, `org` and `permissions` is refused with `400` (`oauth.client_scope_unknown`). Returns the updated client, or `404` when the client is not found in this Environment. Send `If-Match` with the client's `version` to refuse a stale write (`409 version_mismatch`). Setting a `branding` value answers `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization, `400` (`oauth.machine_client_branding_invalid`) on a machine client, and `400` (`oauth.client_page_template_invalid`) for `page_template` or `page_template_sources`, which belong to the Environment; returning one to the Environment's with `null` is always allowed. The secret is not rotated here.
|
|
4462
4462
|
*/
|
|
4463
4463
|
patch: operations["ApiOAuthClientsController_update"];
|
|
4464
4464
|
trace?: never;
|
|
@@ -4474,7 +4474,7 @@ interface paths {
|
|
|
4474
4474
|
put?: never;
|
|
4475
4475
|
/**
|
|
4476
4476
|
* Rotate an OAuth client's secret
|
|
4477
|
-
* @description Rotates the OAuth client's `client_secret`, generating and hashing a new secret. The replaced secret keeps working for 24 hours (`previous_secret_expires_at` says until when) so the systems using it can move over; send `expire_previous: "now"` to stop it at once, for a secret that has leaked. Rotating again inside the overlap replaces the secret still in its overlap. The new raw secret is returned in this response only and cannot be retrieved again. Returns `404` when the client is not found in the current Environment, and `409` (`oauth.client_public_has_no_secret`) for a public client, which has no secret.
|
|
4477
|
+
* @description Rotates the OAuth client's `client_secret`, generating and hashing a new secret. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. The replaced secret keeps working for 24 hours (`previous_secret_expires_at` says until when) so the systems using it can move over; send `expire_previous: "now"` to stop it at once, for a secret that has leaked. Rotating again inside the overlap replaces the secret still in its overlap. The new raw secret is returned in this response only and cannot be retrieved again. Returns `404` when the client is not found in the current Environment, and `409` (`oauth.client_public_has_no_secret`) for a public client, which has no secret.
|
|
4478
4478
|
*/
|
|
4479
4479
|
post: operations["ApiOAuthClientsController_rotateSecret"];
|
|
4480
4480
|
delete?: never;
|
|
@@ -6528,6 +6528,8 @@ interface components {
|
|
|
6528
6528
|
* @enum {string}
|
|
6529
6529
|
*/
|
|
6530
6530
|
grantable_roles_source: "organization" | "environment" | "none";
|
|
6531
|
+
/** @description Whether the Environment sets a list of its own, which the organization falls back to when its own list is removed. When false, removing the list leaves no role people arrive with, which a connected directory refuses. */
|
|
6532
|
+
environment_grantable_roles_set: boolean;
|
|
6531
6533
|
};
|
|
6532
6534
|
ScimTokenResponseDto: {
|
|
6533
6535
|
id: string;
|
|
@@ -7738,6 +7740,11 @@ interface components {
|
|
|
7738
7740
|
id: string;
|
|
7739
7741
|
/** @example Wrong password */
|
|
7740
7742
|
label: string;
|
|
7743
|
+
/**
|
|
7744
|
+
* @description `false` for `YourPage`, the state of the sign-in and sign-up pages that is drawn from the Environment's own sign-in settings: the methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients. `true` for every other state, which is drawn from sample data and shows the same thing in every Environment.
|
|
7745
|
+
* @example true
|
|
7746
|
+
*/
|
|
7747
|
+
sample: boolean;
|
|
7741
7748
|
};
|
|
7742
7749
|
BrandingPreviewPageDto: {
|
|
7743
7750
|
/** @example login */
|
|
@@ -7845,7 +7852,7 @@ interface components {
|
|
|
7845
7852
|
*/
|
|
7846
7853
|
page: string;
|
|
7847
7854
|
/**
|
|
7848
|
-
* @description One of that page's states, by the `id` the preview list returns. An email has a single state, `default`.
|
|
7855
|
+
* @description One of that page's states, by the `id` the preview list returns. `YourPage`, on the sign-in and sign-up pages, shows the page as the Environment serves it; every other state shows sample data. An email has a single state, `default`.
|
|
7849
7856
|
* @example WrongPassword
|
|
7850
7857
|
*/
|
|
7851
7858
|
state: string;
|
|
@@ -7862,6 +7869,8 @@ interface components {
|
|
|
7862
7869
|
* @enum {string}
|
|
7863
7870
|
*/
|
|
7864
7871
|
language?: "en" | "es" | "fr" | "de" | "pt-br" | "it" | "nl" | "ja" | "ko" | "zh-hans" | "ar" | "he";
|
|
7872
|
+
/** @description The app (OAuth client) to draw the state `YourPage` for, by its `client_id`. Hosted sign-in offers single sign-on per app, so with it the page offers single sign-on only when a connection is linked to that app; left out, when one is linked to any app of the Environment. A `client_id` that is not an active app of the Environment offers none. Every other state ignores it. */
|
|
7873
|
+
client_id?: string;
|
|
7865
7874
|
};
|
|
7866
7875
|
BrandingPreviewLinkResponseDto: {
|
|
7867
7876
|
/**
|
|
@@ -8903,7 +8912,9 @@ interface components {
|
|
|
8903
8912
|
expire_previous?: "now" | "window";
|
|
8904
8913
|
};
|
|
8905
8914
|
OAuthClientCreatedResponseDto: {
|
|
8915
|
+
/** @description The client record's id. No route takes it in its path: the single-client routes take `client_id`. */
|
|
8906
8916
|
id: string;
|
|
8917
|
+
/** @description The client's public identifier: the `client_id` of the OAuth flows, and the value the single-client routes (`/oauth-clients/{id}`) take in their path. */
|
|
8907
8918
|
client_id: string;
|
|
8908
8919
|
name: string;
|
|
8909
8920
|
/**
|
|
@@ -9011,7 +9022,9 @@ interface components {
|
|
|
9011
9022
|
initiate_login_uri?: string;
|
|
9012
9023
|
};
|
|
9013
9024
|
OAuthClientResponseDto: {
|
|
9025
|
+
/** @description The client record's id. No route takes it in its path: the single-client routes take `client_id`. */
|
|
9014
9026
|
id: string;
|
|
9027
|
+
/** @description The client's public identifier: the `client_id` of the OAuth flows, and the value the single-client routes (`/oauth-clients/{id}`) take in their path. */
|
|
9015
9028
|
client_id: string;
|
|
9016
9029
|
name: string;
|
|
9017
9030
|
/**
|
|
@@ -44216,6 +44229,7 @@ interface operations {
|
|
|
44216
44229
|
"X-Canopy-Environment"?: string;
|
|
44217
44230
|
};
|
|
44218
44231
|
path: {
|
|
44232
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44219
44233
|
id: string;
|
|
44220
44234
|
};
|
|
44221
44235
|
cookie?: never;
|
|
@@ -44296,7 +44310,7 @@ interface operations {
|
|
|
44296
44310
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44297
44311
|
};
|
|
44298
44312
|
};
|
|
44299
|
-
/** @description No OAuth client with that
|
|
44313
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44300
44314
|
404: {
|
|
44301
44315
|
headers: {
|
|
44302
44316
|
[name: string]: unknown;
|
|
@@ -44307,7 +44321,7 @@ interface operations {
|
|
|
44307
44321
|
* "error": {
|
|
44308
44322
|
* "statusCode": 404,
|
|
44309
44323
|
* "code": "request.not_found",
|
|
44310
|
-
* "message": "No OAuth client with that
|
|
44324
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44311
44325
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44312
44326
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
44313
44327
|
* "method": "GET"
|
|
@@ -44327,6 +44341,7 @@ interface operations {
|
|
|
44327
44341
|
"X-Canopy-Environment"?: string;
|
|
44328
44342
|
};
|
|
44329
44343
|
path: {
|
|
44344
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44330
44345
|
id: string;
|
|
44331
44346
|
};
|
|
44332
44347
|
cookie?: never;
|
|
@@ -44403,7 +44418,7 @@ interface operations {
|
|
|
44403
44418
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44404
44419
|
};
|
|
44405
44420
|
};
|
|
44406
|
-
/** @description No OAuth client with that
|
|
44421
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44407
44422
|
404: {
|
|
44408
44423
|
headers: {
|
|
44409
44424
|
[name: string]: unknown;
|
|
@@ -44414,7 +44429,7 @@ interface operations {
|
|
|
44414
44429
|
* "error": {
|
|
44415
44430
|
* "statusCode": 404,
|
|
44416
44431
|
* "code": "request.not_found",
|
|
44417
|
-
* "message": "No OAuth client with that
|
|
44432
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44418
44433
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44419
44434
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
44420
44435
|
* "method": "DELETE"
|
|
@@ -44436,6 +44451,7 @@ interface operations {
|
|
|
44436
44451
|
"X-Canopy-Environment"?: string;
|
|
44437
44452
|
};
|
|
44438
44453
|
path: {
|
|
44454
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44439
44455
|
id: string;
|
|
44440
44456
|
};
|
|
44441
44457
|
cookie?: never;
|
|
@@ -44520,7 +44536,7 @@ interface operations {
|
|
|
44520
44536
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44521
44537
|
};
|
|
44522
44538
|
};
|
|
44523
|
-
/** @description No OAuth client with that
|
|
44539
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44524
44540
|
404: {
|
|
44525
44541
|
headers: {
|
|
44526
44542
|
[name: string]: unknown;
|
|
@@ -44531,7 +44547,7 @@ interface operations {
|
|
|
44531
44547
|
* "error": {
|
|
44532
44548
|
* "statusCode": 404,
|
|
44533
44549
|
* "code": "request.not_found",
|
|
44534
|
-
* "message": "No OAuth client with that
|
|
44550
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44535
44551
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44536
44552
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
44537
44553
|
* "method": "PATCH"
|
|
@@ -44577,6 +44593,7 @@ interface operations {
|
|
|
44577
44593
|
"X-Canopy-Environment"?: string;
|
|
44578
44594
|
};
|
|
44579
44595
|
path: {
|
|
44596
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44580
44597
|
id: string;
|
|
44581
44598
|
};
|
|
44582
44599
|
cookie?: never;
|
|
@@ -44661,7 +44678,7 @@ interface operations {
|
|
|
44661
44678
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44662
44679
|
};
|
|
44663
44680
|
};
|
|
44664
|
-
/** @description No OAuth client with that
|
|
44681
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44665
44682
|
404: {
|
|
44666
44683
|
headers: {
|
|
44667
44684
|
[name: string]: unknown;
|
|
@@ -44672,7 +44689,7 @@ interface operations {
|
|
|
44672
44689
|
* "error": {
|
|
44673
44690
|
* "statusCode": 404,
|
|
44674
44691
|
* "code": "request.not_found",
|
|
44675
|
-
* "message": "No OAuth client with that
|
|
44692
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44676
44693
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44677
44694
|
* "path": "/api/v1/oauth-clients/{id}/rotate-secret",
|
|
44678
44695
|
* "method": "POST"
|
|
@@ -44766,6 +44783,7 @@ interface operations {
|
|
|
44766
44783
|
"X-Canopy-Environment"?: string;
|
|
44767
44784
|
};
|
|
44768
44785
|
path: {
|
|
44786
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44769
44787
|
id: string;
|
|
44770
44788
|
};
|
|
44771
44789
|
cookie?: never;
|
|
@@ -44847,7 +44865,7 @@ interface operations {
|
|
|
44847
44865
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44848
44866
|
};
|
|
44849
44867
|
};
|
|
44850
|
-
/** @description No OAuth client with that
|
|
44868
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44851
44869
|
404: {
|
|
44852
44870
|
headers: {
|
|
44853
44871
|
[name: string]: unknown;
|
|
@@ -44858,7 +44876,7 @@ interface operations {
|
|
|
44858
44876
|
* "error": {
|
|
44859
44877
|
* "statusCode": 404,
|
|
44860
44878
|
* "code": "request.not_found",
|
|
44861
|
-
* "message": "No OAuth client with that
|
|
44879
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44862
44880
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44863
44881
|
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
44864
44882
|
* "method": "GET"
|
|
@@ -44883,6 +44901,7 @@ interface operations {
|
|
|
44883
44901
|
"X-Canopy-Environment"?: string;
|
|
44884
44902
|
};
|
|
44885
44903
|
path: {
|
|
44904
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44886
44905
|
id: string;
|
|
44887
44906
|
};
|
|
44888
44907
|
cookie?: never;
|
|
@@ -44967,7 +44986,7 @@ interface operations {
|
|
|
44967
44986
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44968
44987
|
};
|
|
44969
44988
|
};
|
|
44970
|
-
/** @description No OAuth client with that
|
|
44989
|
+
/** @description No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
44971
44990
|
404: {
|
|
44972
44991
|
headers: {
|
|
44973
44992
|
[name: string]: unknown;
|
|
@@ -44978,7 +44997,7 @@ interface operations {
|
|
|
44978
44997
|
* "error": {
|
|
44979
44998
|
* "statusCode": 404,
|
|
44980
44999
|
* "code": "request.not_found",
|
|
44981
|
-
* "message": "No OAuth client with that
|
|
45000
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
44982
45001
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44983
45002
|
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
44984
45003
|
* "method": "POST"
|
|
@@ -45061,6 +45080,7 @@ interface operations {
|
|
|
45061
45080
|
"X-Canopy-Environment"?: string;
|
|
45062
45081
|
};
|
|
45063
45082
|
path: {
|
|
45083
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
45064
45084
|
id: string;
|
|
45065
45085
|
assignmentId: string;
|
|
45066
45086
|
};
|
|
@@ -45138,7 +45158,7 @@ interface operations {
|
|
|
45138
45158
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
45139
45159
|
};
|
|
45140
45160
|
};
|
|
45141
|
-
/** @description No OAuth client with that
|
|
45161
|
+
/** @description No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
45142
45162
|
404: {
|
|
45143
45163
|
headers: {
|
|
45144
45164
|
[name: string]: unknown;
|
|
@@ -45149,7 +45169,7 @@ interface operations {
|
|
|
45149
45169
|
* "error": {
|
|
45150
45170
|
* "statusCode": 404,
|
|
45151
45171
|
* "code": "request.not_found",
|
|
45152
|
-
* "message": "No OAuth client with that
|
|
45172
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
45153
45173
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
45154
45174
|
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
45155
45175
|
* "method": "DELETE"
|
|
@@ -45192,6 +45212,7 @@ interface operations {
|
|
|
45192
45212
|
"X-Canopy-Environment"?: string;
|
|
45193
45213
|
};
|
|
45194
45214
|
path: {
|
|
45215
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
45195
45216
|
id: string;
|
|
45196
45217
|
assignmentId: string;
|
|
45197
45218
|
};
|
|
@@ -45277,7 +45298,7 @@ interface operations {
|
|
|
45277
45298
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
45278
45299
|
};
|
|
45279
45300
|
};
|
|
45280
|
-
/** @description No OAuth client with that
|
|
45301
|
+
/** @description No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
45281
45302
|
404: {
|
|
45282
45303
|
headers: {
|
|
45283
45304
|
[name: string]: unknown;
|
|
@@ -45288,7 +45309,7 @@ interface operations {
|
|
|
45288
45309
|
* "error": {
|
|
45289
45310
|
* "statusCode": 404,
|
|
45290
45311
|
* "code": "request.not_found",
|
|
45291
|
-
* "message": "No OAuth client with that
|
|
45312
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
45292
45313
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
45293
45314
|
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
45294
45315
|
* "method": "PATCH"
|
|
@@ -45338,6 +45359,7 @@ interface operations {
|
|
|
45338
45359
|
"X-Canopy-Environment"?: string;
|
|
45339
45360
|
};
|
|
45340
45361
|
path: {
|
|
45362
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
45341
45363
|
id: string;
|
|
45342
45364
|
};
|
|
45343
45365
|
cookie?: never;
|
|
@@ -45430,7 +45452,7 @@ interface operations {
|
|
|
45430
45452
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
45431
45453
|
};
|
|
45432
45454
|
};
|
|
45433
|
-
/** @description No OAuth client with that
|
|
45455
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
45434
45456
|
404: {
|
|
45435
45457
|
headers: {
|
|
45436
45458
|
[name: string]: unknown;
|
|
@@ -45441,7 +45463,7 @@ interface operations {
|
|
|
45441
45463
|
* "error": {
|
|
45442
45464
|
* "statusCode": 404,
|
|
45443
45465
|
* "code": "request.not_found",
|
|
45444
|
-
* "message": "No OAuth client with that
|
|
45466
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
45445
45467
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
45446
45468
|
* "path": "/api/v1/oauth-clients/{id}/grants",
|
|
45447
45469
|
* "method": "GET"
|
package/dist/index.d.ts
CHANGED
|
@@ -3048,7 +3048,7 @@ interface paths {
|
|
|
3048
3048
|
};
|
|
3049
3049
|
/**
|
|
3050
3050
|
* List the hosted pages and emails a preview can render
|
|
3051
|
-
* @description Lists every hosted page and every customer email the branding preview can render, in the order to show them: each with its `id`, its `kind` (`page` or `email`), the `group` it sits in, its `title`, and its states. An email has one state, `default`. Returns `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
|
|
3051
|
+
* @description Lists every hosted page and every customer email the branding preview can render, in the order to show them: each with its `id`, its `kind` (`page` or `email`), the `group` it sits in, its `title`, and its states. Each state has an `id`, a `label` and `sample`: `false` for `YourPage`, the first state of the sign-in and sign-up pages, which shows the page as the Environment serves it, with the sign-in methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients, or to the one `client_id` names, and `true` for every other state, which shows sample data, the same in every Environment. An email has one state, `default`. Returns `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
|
|
3052
3052
|
*/
|
|
3053
3053
|
get: operations["ApiBrandingController_getPreviewPages"];
|
|
3054
3054
|
put?: never;
|
|
@@ -3110,7 +3110,7 @@ interface paths {
|
|
|
3110
3110
|
put?: never;
|
|
3111
3111
|
/**
|
|
3112
3112
|
* Preview a hosted page or email in a branding
|
|
3113
|
-
* @description Renders one hosted page, in one of its states, or one customer email, in the Environment's branding with the unsaved changes in `branding` laid over it, so a branding change can be checked before it is saved. Nothing is saved, and no session or person is involved
|
|
3113
|
+
* @description Renders one hosted page, in one of its states, or one customer email, in the Environment's branding with the unsaved changes in `branding` laid over it, so a branding change can be checked before it is saved. Nothing is saved, and no session or person is involved. The sign-in and sign-up pages open on `YourPage`, which shows the page as the Environment serves it, with the sign-in methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients, or to the one `client_id` names; every other state shows sample data, the same in every Environment. `page` and `state` are ids from the preview list, and `scheme` renders a page in its light or its dark look whatever the color scheme. Returns the whole HTML document, which works without scripts. Returns `400` (`branding.preview_page_unknown`) for a page or state that does not exist, `validation` for a malformed branding value, or `branding.image_not_uploaded` for an image field that holds anything but an uploaded image, and `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization. `language` renders it in one of the languages Canopy writes the pages in, with the wording `text_overrides` holds for that language; left out, English.
|
|
3114
3114
|
*/
|
|
3115
3115
|
post: operations["ApiBrandingController_preview"];
|
|
3116
3116
|
delete?: never;
|
|
@@ -3130,7 +3130,7 @@ interface paths {
|
|
|
3130
3130
|
put?: never;
|
|
3131
3131
|
/**
|
|
3132
3132
|
* Make a link that opens a hosted page in a branding
|
|
3133
|
-
* @description Makes a link that opens one hosted page, in one of its states, in the Environment's branding with the unsaved changes in `branding` laid over it, so a person can see a look in their own browser before it is saved. Takes what the preview takes; `page` must be a hosted page, not an email. Nothing is saved
|
|
3133
|
+
* @description Makes a link that opens one hosted page, in one of its states, in the Environment's branding with the unsaved changes in `branding` laid over it, so a person can see a look in their own browser before it is saved. Takes what the preview takes; `page` must be a hosted page, not an email. Nothing is saved. The sign-in and sign-up pages open on `YourPage`, which shows the page as the Environment serves it, with the sign-in methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients, or to the one `client_id` names; every other state shows sample data, the same in every Environment. The link opens for two minutes, on the API's own origin; open it in a browser rather than reading it, and make a new one once it has expired. The page runs with `sandbox allow-scripts` and `form-action 'none'`, so its forms submit nowhere and a page template's scripts reach no cookie or storage. Returns `400` (`branding.preview_link_page_unknown`) for a page or state that is not a hosted page's, `validation` for a malformed branding value, or `branding.image_not_uploaded` for an image field that holds anything but an uploaded image, and `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization.
|
|
3134
3134
|
*/
|
|
3135
3135
|
post: operations["ApiBrandingController_previewLink"];
|
|
3136
3136
|
delete?: never;
|
|
@@ -4444,21 +4444,21 @@ interface paths {
|
|
|
4444
4444
|
};
|
|
4445
4445
|
/**
|
|
4446
4446
|
* Get OAuth client details
|
|
4447
|
-
* @description Returns a single OAuth client
|
|
4447
|
+
* @description Returns a single OAuth client of the current Environment. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. A client that exists in a sibling Environment reads as `404` too. The `client_secret` is never included.
|
|
4448
4448
|
*/
|
|
4449
4449
|
get: operations["ApiOAuthClientsController_get"];
|
|
4450
4450
|
put?: never;
|
|
4451
4451
|
post?: never;
|
|
4452
4452
|
/**
|
|
4453
4453
|
* Delete OAuth client
|
|
4454
|
-
* @description Deletes an OAuth client from the current Environment
|
|
4454
|
+
* @description Deletes an OAuth client from the current Environment. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. Responds `204 No Content` on success, or `404` when the client is not found in this Environment.
|
|
4455
4455
|
*/
|
|
4456
4456
|
delete: operations["ApiOAuthClientsController_remove"];
|
|
4457
4457
|
options?: never;
|
|
4458
4458
|
head?: never;
|
|
4459
4459
|
/**
|
|
4460
4460
|
* Update OAuth client
|
|
4461
|
-
* @description Updates an OAuth client's mutable fields (`name`, `redirect_uris`, `post_logout_redirect_uris`, `backchannel_logout_uri`, `scopes`, `is_active`, `invite_redirect_url`, `initiate_login_uri`, and for a web client `branding`, the settings it carries over its Environment's branding; for a machine client `allowed_audiences` and `token_exchange`, which adds or removes the token-exchange grant in its `grant_types`), scoped to the current Environment. A `scopes` value outside `openid`, `profile`, `email`, `org` and `permissions` is refused with `400` (`oauth.client_scope_unknown`). Returns the updated client, or `404` when the client is not found in this Environment. Send `If-Match` with the client's `version` to refuse a stale write (`409 version_mismatch`). Setting a `branding` value answers `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization, `400` (`oauth.machine_client_branding_invalid`) on a machine client, and `400` (`oauth.client_page_template_invalid`) for `page_template` or `page_template_sources`, which belong to the Environment; returning one to the Environment's with `null` is always allowed. The secret is not rotated here.
|
|
4461
|
+
* @description Updates an OAuth client's mutable fields (`name`, `redirect_uris`, `post_logout_redirect_uris`, `backchannel_logout_uri`, `scopes`, `is_active`, `invite_redirect_url`, `initiate_login_uri`, and for a web client `branding`, the settings it carries over its Environment's branding; for a machine client `allowed_audiences` and `token_exchange`, which adds or removes the token-exchange grant in its `grant_types`), scoped to the current Environment. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. A `scopes` value outside `openid`, `profile`, `email`, `org` and `permissions` is refused with `400` (`oauth.client_scope_unknown`). Returns the updated client, or `404` when the client is not found in this Environment. Send `If-Match` with the client's `version` to refuse a stale write (`409 version_mismatch`). Setting a `branding` value answers `403` (`plan_feature_unavailable`) when the Account's plan does not include hosted page customization, `400` (`oauth.machine_client_branding_invalid`) on a machine client, and `400` (`oauth.client_page_template_invalid`) for `page_template` or `page_template_sources`, which belong to the Environment; returning one to the Environment's with `null` is always allowed. The secret is not rotated here.
|
|
4462
4462
|
*/
|
|
4463
4463
|
patch: operations["ApiOAuthClientsController_update"];
|
|
4464
4464
|
trace?: never;
|
|
@@ -4474,7 +4474,7 @@ interface paths {
|
|
|
4474
4474
|
put?: never;
|
|
4475
4475
|
/**
|
|
4476
4476
|
* Rotate an OAuth client's secret
|
|
4477
|
-
* @description Rotates the OAuth client's `client_secret`, generating and hashing a new secret. The replaced secret keeps working for 24 hours (`previous_secret_expires_at` says until when) so the systems using it can move over; send `expire_previous: "now"` to stop it at once, for a secret that has leaked. Rotating again inside the overlap replaces the secret still in its overlap. The new raw secret is returned in this response only and cannot be retrieved again. Returns `404` when the client is not found in the current Environment, and `409` (`oauth.client_public_has_no_secret`) for a public client, which has no secret.
|
|
4477
|
+
* @description Rotates the OAuth client's `client_secret`, generating and hashing a new secret. `id` in the path is the client's `client_id`, not the `id` field of a client response, which answers `404` here. The replaced secret keeps working for 24 hours (`previous_secret_expires_at` says until when) so the systems using it can move over; send `expire_previous: "now"` to stop it at once, for a secret that has leaked. Rotating again inside the overlap replaces the secret still in its overlap. The new raw secret is returned in this response only and cannot be retrieved again. Returns `404` when the client is not found in the current Environment, and `409` (`oauth.client_public_has_no_secret`) for a public client, which has no secret.
|
|
4478
4478
|
*/
|
|
4479
4479
|
post: operations["ApiOAuthClientsController_rotateSecret"];
|
|
4480
4480
|
delete?: never;
|
|
@@ -6528,6 +6528,8 @@ interface components {
|
|
|
6528
6528
|
* @enum {string}
|
|
6529
6529
|
*/
|
|
6530
6530
|
grantable_roles_source: "organization" | "environment" | "none";
|
|
6531
|
+
/** @description Whether the Environment sets a list of its own, which the organization falls back to when its own list is removed. When false, removing the list leaves no role people arrive with, which a connected directory refuses. */
|
|
6532
|
+
environment_grantable_roles_set: boolean;
|
|
6531
6533
|
};
|
|
6532
6534
|
ScimTokenResponseDto: {
|
|
6533
6535
|
id: string;
|
|
@@ -7738,6 +7740,11 @@ interface components {
|
|
|
7738
7740
|
id: string;
|
|
7739
7741
|
/** @example Wrong password */
|
|
7740
7742
|
label: string;
|
|
7743
|
+
/**
|
|
7744
|
+
* @description `false` for `YourPage`, the state of the sign-in and sign-up pages that is drawn from the Environment's own sign-in settings: the methods, social providers, self sign-up and CAPTCHA it has on, and single sign-on when a connection is linked to one of its OAuth clients. `true` for every other state, which is drawn from sample data and shows the same thing in every Environment.
|
|
7745
|
+
* @example true
|
|
7746
|
+
*/
|
|
7747
|
+
sample: boolean;
|
|
7741
7748
|
};
|
|
7742
7749
|
BrandingPreviewPageDto: {
|
|
7743
7750
|
/** @example login */
|
|
@@ -7845,7 +7852,7 @@ interface components {
|
|
|
7845
7852
|
*/
|
|
7846
7853
|
page: string;
|
|
7847
7854
|
/**
|
|
7848
|
-
* @description One of that page's states, by the `id` the preview list returns. An email has a single state, `default`.
|
|
7855
|
+
* @description One of that page's states, by the `id` the preview list returns. `YourPage`, on the sign-in and sign-up pages, shows the page as the Environment serves it; every other state shows sample data. An email has a single state, `default`.
|
|
7849
7856
|
* @example WrongPassword
|
|
7850
7857
|
*/
|
|
7851
7858
|
state: string;
|
|
@@ -7862,6 +7869,8 @@ interface components {
|
|
|
7862
7869
|
* @enum {string}
|
|
7863
7870
|
*/
|
|
7864
7871
|
language?: "en" | "es" | "fr" | "de" | "pt-br" | "it" | "nl" | "ja" | "ko" | "zh-hans" | "ar" | "he";
|
|
7872
|
+
/** @description The app (OAuth client) to draw the state `YourPage` for, by its `client_id`. Hosted sign-in offers single sign-on per app, so with it the page offers single sign-on only when a connection is linked to that app; left out, when one is linked to any app of the Environment. A `client_id` that is not an active app of the Environment offers none. Every other state ignores it. */
|
|
7873
|
+
client_id?: string;
|
|
7865
7874
|
};
|
|
7866
7875
|
BrandingPreviewLinkResponseDto: {
|
|
7867
7876
|
/**
|
|
@@ -8903,7 +8912,9 @@ interface components {
|
|
|
8903
8912
|
expire_previous?: "now" | "window";
|
|
8904
8913
|
};
|
|
8905
8914
|
OAuthClientCreatedResponseDto: {
|
|
8915
|
+
/** @description The client record's id. No route takes it in its path: the single-client routes take `client_id`. */
|
|
8906
8916
|
id: string;
|
|
8917
|
+
/** @description The client's public identifier: the `client_id` of the OAuth flows, and the value the single-client routes (`/oauth-clients/{id}`) take in their path. */
|
|
8907
8918
|
client_id: string;
|
|
8908
8919
|
name: string;
|
|
8909
8920
|
/**
|
|
@@ -9011,7 +9022,9 @@ interface components {
|
|
|
9011
9022
|
initiate_login_uri?: string;
|
|
9012
9023
|
};
|
|
9013
9024
|
OAuthClientResponseDto: {
|
|
9025
|
+
/** @description The client record's id. No route takes it in its path: the single-client routes take `client_id`. */
|
|
9014
9026
|
id: string;
|
|
9027
|
+
/** @description The client's public identifier: the `client_id` of the OAuth flows, and the value the single-client routes (`/oauth-clients/{id}`) take in their path. */
|
|
9015
9028
|
client_id: string;
|
|
9016
9029
|
name: string;
|
|
9017
9030
|
/**
|
|
@@ -44216,6 +44229,7 @@ interface operations {
|
|
|
44216
44229
|
"X-Canopy-Environment"?: string;
|
|
44217
44230
|
};
|
|
44218
44231
|
path: {
|
|
44232
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44219
44233
|
id: string;
|
|
44220
44234
|
};
|
|
44221
44235
|
cookie?: never;
|
|
@@ -44296,7 +44310,7 @@ interface operations {
|
|
|
44296
44310
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44297
44311
|
};
|
|
44298
44312
|
};
|
|
44299
|
-
/** @description No OAuth client with that
|
|
44313
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44300
44314
|
404: {
|
|
44301
44315
|
headers: {
|
|
44302
44316
|
[name: string]: unknown;
|
|
@@ -44307,7 +44321,7 @@ interface operations {
|
|
|
44307
44321
|
* "error": {
|
|
44308
44322
|
* "statusCode": 404,
|
|
44309
44323
|
* "code": "request.not_found",
|
|
44310
|
-
* "message": "No OAuth client with that
|
|
44324
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44311
44325
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44312
44326
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
44313
44327
|
* "method": "GET"
|
|
@@ -44327,6 +44341,7 @@ interface operations {
|
|
|
44327
44341
|
"X-Canopy-Environment"?: string;
|
|
44328
44342
|
};
|
|
44329
44343
|
path: {
|
|
44344
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44330
44345
|
id: string;
|
|
44331
44346
|
};
|
|
44332
44347
|
cookie?: never;
|
|
@@ -44403,7 +44418,7 @@ interface operations {
|
|
|
44403
44418
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44404
44419
|
};
|
|
44405
44420
|
};
|
|
44406
|
-
/** @description No OAuth client with that
|
|
44421
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44407
44422
|
404: {
|
|
44408
44423
|
headers: {
|
|
44409
44424
|
[name: string]: unknown;
|
|
@@ -44414,7 +44429,7 @@ interface operations {
|
|
|
44414
44429
|
* "error": {
|
|
44415
44430
|
* "statusCode": 404,
|
|
44416
44431
|
* "code": "request.not_found",
|
|
44417
|
-
* "message": "No OAuth client with that
|
|
44432
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44418
44433
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44419
44434
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
44420
44435
|
* "method": "DELETE"
|
|
@@ -44436,6 +44451,7 @@ interface operations {
|
|
|
44436
44451
|
"X-Canopy-Environment"?: string;
|
|
44437
44452
|
};
|
|
44438
44453
|
path: {
|
|
44454
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44439
44455
|
id: string;
|
|
44440
44456
|
};
|
|
44441
44457
|
cookie?: never;
|
|
@@ -44520,7 +44536,7 @@ interface operations {
|
|
|
44520
44536
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44521
44537
|
};
|
|
44522
44538
|
};
|
|
44523
|
-
/** @description No OAuth client with that
|
|
44539
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44524
44540
|
404: {
|
|
44525
44541
|
headers: {
|
|
44526
44542
|
[name: string]: unknown;
|
|
@@ -44531,7 +44547,7 @@ interface operations {
|
|
|
44531
44547
|
* "error": {
|
|
44532
44548
|
* "statusCode": 404,
|
|
44533
44549
|
* "code": "request.not_found",
|
|
44534
|
-
* "message": "No OAuth client with that
|
|
44550
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44535
44551
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44536
44552
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
44537
44553
|
* "method": "PATCH"
|
|
@@ -44577,6 +44593,7 @@ interface operations {
|
|
|
44577
44593
|
"X-Canopy-Environment"?: string;
|
|
44578
44594
|
};
|
|
44579
44595
|
path: {
|
|
44596
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44580
44597
|
id: string;
|
|
44581
44598
|
};
|
|
44582
44599
|
cookie?: never;
|
|
@@ -44661,7 +44678,7 @@ interface operations {
|
|
|
44661
44678
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44662
44679
|
};
|
|
44663
44680
|
};
|
|
44664
|
-
/** @description No OAuth client with that
|
|
44681
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44665
44682
|
404: {
|
|
44666
44683
|
headers: {
|
|
44667
44684
|
[name: string]: unknown;
|
|
@@ -44672,7 +44689,7 @@ interface operations {
|
|
|
44672
44689
|
* "error": {
|
|
44673
44690
|
* "statusCode": 404,
|
|
44674
44691
|
* "code": "request.not_found",
|
|
44675
|
-
* "message": "No OAuth client with that
|
|
44692
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44676
44693
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44677
44694
|
* "path": "/api/v1/oauth-clients/{id}/rotate-secret",
|
|
44678
44695
|
* "method": "POST"
|
|
@@ -44766,6 +44783,7 @@ interface operations {
|
|
|
44766
44783
|
"X-Canopy-Environment"?: string;
|
|
44767
44784
|
};
|
|
44768
44785
|
path: {
|
|
44786
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44769
44787
|
id: string;
|
|
44770
44788
|
};
|
|
44771
44789
|
cookie?: never;
|
|
@@ -44847,7 +44865,7 @@ interface operations {
|
|
|
44847
44865
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44848
44866
|
};
|
|
44849
44867
|
};
|
|
44850
|
-
/** @description No OAuth client with that
|
|
44868
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
44851
44869
|
404: {
|
|
44852
44870
|
headers: {
|
|
44853
44871
|
[name: string]: unknown;
|
|
@@ -44858,7 +44876,7 @@ interface operations {
|
|
|
44858
44876
|
* "error": {
|
|
44859
44877
|
* "statusCode": 404,
|
|
44860
44878
|
* "code": "request.not_found",
|
|
44861
|
-
* "message": "No OAuth client with that
|
|
44879
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
44862
44880
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44863
44881
|
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
44864
44882
|
* "method": "GET"
|
|
@@ -44883,6 +44901,7 @@ interface operations {
|
|
|
44883
44901
|
"X-Canopy-Environment"?: string;
|
|
44884
44902
|
};
|
|
44885
44903
|
path: {
|
|
44904
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
44886
44905
|
id: string;
|
|
44887
44906
|
};
|
|
44888
44907
|
cookie?: never;
|
|
@@ -44967,7 +44986,7 @@ interface operations {
|
|
|
44967
44986
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
44968
44987
|
};
|
|
44969
44988
|
};
|
|
44970
|
-
/** @description No OAuth client with that
|
|
44989
|
+
/** @description No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
44971
44990
|
404: {
|
|
44972
44991
|
headers: {
|
|
44973
44992
|
[name: string]: unknown;
|
|
@@ -44978,7 +44997,7 @@ interface operations {
|
|
|
44978
44997
|
* "error": {
|
|
44979
44998
|
* "statusCode": 404,
|
|
44980
44999
|
* "code": "request.not_found",
|
|
44981
|
-
* "message": "No OAuth client with that
|
|
45000
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
44982
45001
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
44983
45002
|
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
44984
45003
|
* "method": "POST"
|
|
@@ -45061,6 +45080,7 @@ interface operations {
|
|
|
45061
45080
|
"X-Canopy-Environment"?: string;
|
|
45062
45081
|
};
|
|
45063
45082
|
path: {
|
|
45083
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
45064
45084
|
id: string;
|
|
45065
45085
|
assignmentId: string;
|
|
45066
45086
|
};
|
|
@@ -45138,7 +45158,7 @@ interface operations {
|
|
|
45138
45158
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
45139
45159
|
};
|
|
45140
45160
|
};
|
|
45141
|
-
/** @description No OAuth client with that
|
|
45161
|
+
/** @description No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
45142
45162
|
404: {
|
|
45143
45163
|
headers: {
|
|
45144
45164
|
[name: string]: unknown;
|
|
@@ -45149,7 +45169,7 @@ interface operations {
|
|
|
45149
45169
|
* "error": {
|
|
45150
45170
|
* "statusCode": 404,
|
|
45151
45171
|
* "code": "request.not_found",
|
|
45152
|
-
* "message": "No OAuth client with that
|
|
45172
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
45153
45173
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
45154
45174
|
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
45155
45175
|
* "method": "DELETE"
|
|
@@ -45192,6 +45212,7 @@ interface operations {
|
|
|
45192
45212
|
"X-Canopy-Environment"?: string;
|
|
45193
45213
|
};
|
|
45194
45214
|
path: {
|
|
45215
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
45195
45216
|
id: string;
|
|
45196
45217
|
assignmentId: string;
|
|
45197
45218
|
};
|
|
@@ -45277,7 +45298,7 @@ interface operations {
|
|
|
45277
45298
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
45278
45299
|
};
|
|
45279
45300
|
};
|
|
45280
|
-
/** @description No OAuth client with that
|
|
45301
|
+
/** @description No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
45281
45302
|
404: {
|
|
45282
45303
|
headers: {
|
|
45283
45304
|
[name: string]: unknown;
|
|
@@ -45288,7 +45309,7 @@ interface operations {
|
|
|
45288
45309
|
* "error": {
|
|
45289
45310
|
* "statusCode": 404,
|
|
45290
45311
|
* "code": "request.not_found",
|
|
45291
|
-
* "message": "No OAuth client with that
|
|
45312
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
45292
45313
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
45293
45314
|
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
45294
45315
|
* "method": "PATCH"
|
|
@@ -45338,6 +45359,7 @@ interface operations {
|
|
|
45338
45359
|
"X-Canopy-Environment"?: string;
|
|
45339
45360
|
};
|
|
45340
45361
|
path: {
|
|
45362
|
+
/** @description The OAuth client's `client_id`. The `id` field of a client response is a different value and answers `404` here. */
|
|
45341
45363
|
id: string;
|
|
45342
45364
|
};
|
|
45343
45365
|
cookie?: never;
|
|
@@ -45430,7 +45452,7 @@ interface operations {
|
|
|
45430
45452
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
45431
45453
|
};
|
|
45432
45454
|
};
|
|
45433
|
-
/** @description No OAuth client with that
|
|
45455
|
+
/** @description No OAuth client with that `client_id` exists in this Environment */
|
|
45434
45456
|
404: {
|
|
45435
45457
|
headers: {
|
|
45436
45458
|
[name: string]: unknown;
|
|
@@ -45441,7 +45463,7 @@ interface operations {
|
|
|
45441
45463
|
* "error": {
|
|
45442
45464
|
* "statusCode": 404,
|
|
45443
45465
|
* "code": "request.not_found",
|
|
45444
|
-
* "message": "No OAuth client with that
|
|
45466
|
+
* "message": "No OAuth client with that `client_id` exists in this Environment",
|
|
45445
45467
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
45446
45468
|
* "path": "/api/v1/oauth-clients/{id}/grants",
|
|
45447
45469
|
* "method": "GET"
|
package/package.json
CHANGED