@canopy-io/node 0.21.0 → 0.23.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 +12 -0
- package/README.md +39 -0
- package/dist/index.cjs +127 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +330 -147
- package/dist/index.d.ts +330 -147
- package/dist/index.js +124 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1530,7 +1530,7 @@ interface paths {
|
|
|
1530
1530
|
post: operations["ApiOrganizationsController_createOrganization"];
|
|
1531
1531
|
/**
|
|
1532
1532
|
* Delete every organization
|
|
1533
|
-
* @description Deletes every live organization in the Environment the way the single delete does: memberships and every assignment beneath each organization are removed, pending invitations bound to the organization or its tree are revoked, and each organization is soft-deleted with its subtree. Member identities are untouched. This is the step before switching the container off
|
|
1533
|
+
* @description Deletes every live organization in the Environment the way the single delete does: memberships and every assignment beneath each organization are removed, pending invitations bound to the organization or its tree are revoked, and each organization is soft-deleted with its subtree. Member identities are untouched. This is the step before switching the container off. Responds `204 No Content`, requires the `hierarchy.manage` permission, and emits `organization.deleted_all` with the counts.
|
|
1534
1534
|
*/
|
|
1535
1535
|
delete: operations["ApiOrganizationsController_deleteAllOrganizations"];
|
|
1536
1536
|
options?: never;
|
|
@@ -3965,7 +3965,7 @@ interface paths {
|
|
|
3965
3965
|
put?: never;
|
|
3966
3966
|
/**
|
|
3967
3967
|
* Create an operational-administrator role
|
|
3968
|
-
* @description Creates an active custom administrator role (`is_system` false) with the given `scope` (`account` or `environment`), which cannot be changed later. Duplicate keys in `capabilities` are removed. Every key must be a catalog capability that a role may carry (owner-only keys are refused) and must match the role's `scope`, otherwise the request answers `400`. The name must be unique in the Account (`409`). Requires `admin_governance.manage`, and the creation is recorded in the audit log. An Account holds at most 50 administrator roles (`409`, `admin_role.limit`). An API key may only put in a role, or grant a role carrying, capabilities its own scopes cover; anything beyond answers `403` (`admin_role.capability_beyond_key`) naming them in `error.data.capabilities`. Two capabilities are beyond every key whatever it holds, because the person given one hands out authority without the key's bound: `admin_governance.manage` (any role) and `api_keys.manage` (a full-access Environment key).
|
|
3968
|
+
* @description Creates an active custom administrator role (`is_system` false) with the given `scope` (`account` or `environment`), which cannot be changed later. Duplicate keys in `capabilities` are removed. Every key must be a catalog capability that a role may carry (owner-only keys are refused) and must match the role's `scope`, otherwise the request answers `400`. The name must be unique in the Account (`409`). Requires `admin_governance.manage`, and the creation is recorded in the audit log. An Account holds at most 50 administrator roles (`409`, `admin_role.limit`). An API key may only put in a role, or grant a role carrying, capabilities its own scopes cover; anything beyond answers `403` (`admin_role.capability_beyond_key`) naming them in `error.data.capabilities`. Two capabilities are beyond every key whatever it holds, because the person given one hands out authority without the key's bound: `admin_governance.manage` (any role) and `api_keys.manage` (a full-access Environment key). A developer's MCP client, when its approval names only some capabilities, is held to them the same way, and never hands out those two (`403`, `admin_role.capability_beyond_mcp_grant`).
|
|
3969
3969
|
*/
|
|
3970
3970
|
post: operations["ApiAdminRolesController_create"];
|
|
3971
3971
|
delete?: never;
|
|
@@ -4017,7 +4017,7 @@ interface paths {
|
|
|
4017
4017
|
head?: never;
|
|
4018
4018
|
/**
|
|
4019
4019
|
* Update an operational-administrator role
|
|
4020
|
-
* @description Changes a custom role's `name`, `description` or `is_active`, or replaces its whole `capabilities` set. New capabilities are checked against the catalog and the role's existing `scope`, which cannot change. System roles answer `403`, and a name already used by another role in the Account answers `409`. Send the role's `version` in `If-Match` to refuse a stale edit: a mismatch answers `409` with the current role in `error.data.current`, and without the header the check is skipped. Requires `admin_governance.manage`, and the change is recorded in the audit log. An API key changes only a role within its own ceiling, and may only give it, capabilities its own scopes cover; anything beyond answers `403` (`admin_role.capability_beyond_key`) naming them in `error.data.capabilities`. Two capabilities are beyond every key whatever it holds, because the person given one hands out authority without the key's bound: `admin_governance.manage` (any role) and `api_keys.manage` (a full-access Environment key).
|
|
4020
|
+
* @description Changes a custom role's `name`, `description` or `is_active`, or replaces its whole `capabilities` set. New capabilities are checked against the catalog and the role's existing `scope`, which cannot change. System roles answer `403`, and a name already used by another role in the Account answers `409`. Send the role's `version` in `If-Match` to refuse a stale edit: a mismatch answers `409` with the current role in `error.data.current`, and without the header the check is skipped. Requires `admin_governance.manage`, and the change is recorded in the audit log. An API key changes only a role within its own ceiling, and may only give it, capabilities its own scopes cover; anything beyond answers `403` (`admin_role.capability_beyond_key`) naming them in `error.data.capabilities`. Two capabilities are beyond every key whatever it holds, because the person given one hands out authority without the key's bound: `admin_governance.manage` (any role) and `api_keys.manage` (a full-access Environment key). A developer's MCP client, when its approval names only some capabilities, is held to them the same way, and never hands out those two (`403`, `admin_role.capability_beyond_mcp_grant`).
|
|
4021
4021
|
*/
|
|
4022
4022
|
patch: operations["ApiAdminRolesController_update"];
|
|
4023
4023
|
trace?: never;
|
|
@@ -4036,7 +4036,7 @@ interface paths {
|
|
|
4036
4036
|
get: operations["ApiAdminRolesController_listGrantableRoles"];
|
|
4037
4037
|
/**
|
|
4038
4038
|
* Set the identity roles an administrator role may grant in an Environment
|
|
4039
|
-
* @description Replaces the full list of identity roles that this administrator role may grant in one Environment, and returns the stored IDs with duplicates removed. Sending an empty `roleIds` clears the list. Every ID must be a role in that Environment (`400`), and both the administrator role and the Environment must belong to the Account (`404`). Requires `admin_governance.manage`, and the change is recorded in the audit log with the roles added and removed. An API key changes this only on a role within its own ceiling (`403`, `admin_role.capability_beyond_key`).
|
|
4039
|
+
* @description Replaces the full list of identity roles that this administrator role may grant in one Environment, and returns the stored IDs with duplicates removed. Sending an empty `roleIds` clears the list. Every ID must be a role in that Environment (`400`), and both the administrator role and the Environment must belong to the Account (`404`). Requires `admin_governance.manage`, and the change is recorded in the audit log with the roles added and removed. An API key changes this only on a role within its own ceiling (`403`, `admin_role.capability_beyond_key`), and a bounded MCP client only on one within its approval (`admin_role.capability_beyond_mcp_grant`).
|
|
4040
4040
|
*/
|
|
4041
4041
|
put: operations["ApiAdminRolesController_setGrantableRoles"];
|
|
4042
4042
|
post?: never;
|
|
@@ -4061,7 +4061,7 @@ interface paths {
|
|
|
4061
4061
|
put?: never;
|
|
4062
4062
|
/**
|
|
4063
4063
|
* Grant an operational administrator
|
|
4064
|
-
* @description Grants an administrator role to a user who must be an active member of the Account (`400` otherwise). The grant must match the role's scope: an `account` role needs `scopeType` `account` with no `environmentId` or `nodeId`, and an `environment` role needs an `environmentId` with `scopeType` `environment`, or `node` plus a `nodeId` in that Environment. Answers `404` when the role, Environment or node is not in the Account, `400` when `effectiveFrom` is not before `effectiveTo`, and `409` when the same grant is already live in an overlapping window. Requires `admin_governance.manage`, and the grant is recorded in the audit log. An API key may only put in a role, or grant a role carrying, capabilities its own scopes cover; anything beyond answers `403` (`admin_role.capability_beyond_key`) naming them in `error.data.capabilities`. Two capabilities are beyond every key whatever it holds, because the person given one hands out authority without the key's bound: `admin_governance.manage` (any role) and `api_keys.manage` (a full-access Environment key).
|
|
4064
|
+
* @description Grants an administrator role to a user who must be an active member of the Account (`400` otherwise). The grant must match the role's scope: an `account` role needs `scopeType` `account` with no `environmentId` or `nodeId`, and an `environment` role needs an `environmentId` with `scopeType` `environment`, or `node` plus a `nodeId` in that Environment. Answers `404` when the role, Environment or node is not in the Account, `400` when `effectiveFrom` is not before `effectiveTo`, and `409` when the same grant is already live in an overlapping window. Requires `admin_governance.manage`, and the grant is recorded in the audit log. An API key may only put in a role, or grant a role carrying, capabilities its own scopes cover; anything beyond answers `403` (`admin_role.capability_beyond_key`) naming them in `error.data.capabilities`. Two capabilities are beyond every key whatever it holds, because the person given one hands out authority without the key's bound: `admin_governance.manage` (any role) and `api_keys.manage` (a full-access Environment key). A developer's MCP client, when its approval names only some capabilities, is held to them the same way, and never hands out those two (`403`, `admin_role.capability_beyond_mcp_grant`).
|
|
4065
4065
|
*/
|
|
4066
4066
|
post: operations["ApiAdminAssignmentsController_create"];
|
|
4067
4067
|
delete?: never;
|
|
@@ -4313,7 +4313,7 @@ interface paths {
|
|
|
4313
4313
|
head?: never;
|
|
4314
4314
|
/**
|
|
4315
4315
|
* Update OAuth client
|
|
4316
|
-
* @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`), scoped to the current Environment. A `scopes` value outside `openid`, `profile`, `email`, `org` and `permissions` is refused with `400` (`oauth.client_scope_unknown`). Returns the updated client, or `404` when the client is not found in this Environment. Send `If-Match` with the client's `version` to refuse a stale write (`409 version_mismatch`). The secret is not rotated here.
|
|
4316
|
+
* @description Updates an OAuth client's mutable fields (`name`, `redirect_uris`, `post_logout_redirect_uris`, `backchannel_logout_uri`, `scopes`, `is_active`, `invite_redirect_url`, `initiate_login_uri`; for a machine client `allowed_audiences` and `token_exchange`, which adds or removes the token-exchange grant in its `grant_types`), scoped to the current Environment. A `scopes` value outside `openid`, `profile`, `email`, `org` and `permissions` is refused with `400` (`oauth.client_scope_unknown`). Returns the updated client, or `404` when the client is not found in this Environment. Send `If-Match` with the client's `version` to refuse a stale write (`409 version_mismatch`). The secret is not rotated here.
|
|
4317
4317
|
*/
|
|
4318
4318
|
patch: operations["ApiOAuthClientsController_update"];
|
|
4319
4319
|
trace?: never;
|
|
@@ -4698,8 +4698,8 @@ interface paths {
|
|
|
4698
4698
|
cookie?: never;
|
|
4699
4699
|
};
|
|
4700
4700
|
/**
|
|
4701
|
-
* List the purchasable
|
|
4702
|
-
* @description Returns `monthly` and `annual`
|
|
4701
|
+
* List the purchasable plan prices
|
|
4702
|
+
* @description Returns `monthly` and `annual` prices for `starter` and `pro` in the smallest currency unit, resolved from Stripe by lookup key, with `annual_savings_percent` derived from the pair rather than stated so it cannot disagree with them. Either price is null when no active Stripe price carries its lookup key; the dialog renders the cycle it has. Amounts come from Stripe so the dialog cannot advertise a price different from the charge.
|
|
4703
4703
|
*/
|
|
4704
4704
|
get: operations["ApiBillingController_getPlanPrices"];
|
|
4705
4705
|
put?: never;
|
|
@@ -4839,10 +4839,12 @@ interface components {
|
|
|
4839
4839
|
effective_node_id?: string | null;
|
|
4840
4840
|
/** @description Ids of the roles whose assignments produced a node-scoped allow. Always empty for `scope_evaluated: "app_wide"`, whose answer is not tied to a node, and for a deny. */
|
|
4841
4841
|
granting_roles: string[];
|
|
4842
|
-
/** @description Why the check was refused: `NO_ROLE_ASSIGNMENT`, `PERMISSION_NOT_GRANTED`, `NODE_SCOPE_VIOLATION`, `ROLE_EXPIRED`, `IDENTITY_INACTIVE`, `IDENTITY_NOT_ENV_MEMBER`, `ORGANIZATION_MEMBERSHIP_INACTIVE` (assignments sit on the lineage inside an organization the identity's membership in is deactivated, so none count),
|
|
4842
|
+
/** @description Why the check was refused: `NO_ROLE_ASSIGNMENT`, `PERMISSION_NOT_GRANTED`, `NODE_SCOPE_VIOLATION`, `ROLE_EXPIRED`, `IDENTITY_INACTIVE`, `IDENTITY_NOT_ENV_MEMBER`, `ORGANIZATION_MEMBERSHIP_INACTIVE` (assignments sit on the lineage inside an organization the identity's membership in is deactivated, so none count), `DENIED` (a deny at the node or above it refuses the permission, whatever grants allow), `ACTING_CLIENT_INACTIVE` (`acting_client_id` names no active machine client of this Environment) or `ACTING_CLIENT_NOT_GRANTED` (the identity holds the permission there but the acting client does not). Null on an allow. */
|
|
4843
4843
|
denial_reason?: string | null;
|
|
4844
4844
|
/** @description The deny that refused, when `denial_reason` is `DENIED`; null otherwise. */
|
|
4845
4845
|
deny_id?: string | null;
|
|
4846
|
+
/** @description Whether the acting client holds the permission there, when the check named `acting_client_id`; null otherwise. `allowed` is true only when the identity and the client both allow. */
|
|
4847
|
+
acting_client_allowed?: boolean | null;
|
|
4846
4848
|
};
|
|
4847
4849
|
EvaluatePermissionDto: {
|
|
4848
4850
|
/** @description Identity ID (from the `identities` table — the end user being evaluated, not an admin). */
|
|
@@ -4855,6 +4857,8 @@ interface components {
|
|
|
4855
4857
|
scope: "node" | "app_wide";
|
|
4856
4858
|
/** @description Required when `scope` is `node`; must be omitted when `scope` is `app_wide`. */
|
|
4857
4859
|
node_id?: string;
|
|
4860
|
+
/** @description The `client_id` of the machine client acting for the identity, from a delegated token's `act.sub`. When set, the check allows only when the identity and the client both hold the permission there; `acting_client_allowed` carries the client's half. */
|
|
4861
|
+
acting_client_id?: string;
|
|
4858
4862
|
};
|
|
4859
4863
|
EvaluateCheckDto: {
|
|
4860
4864
|
/** @description Identity ID (from the `identities` table — the end user being evaluated, not an admin). */
|
|
@@ -4867,6 +4871,8 @@ interface components {
|
|
|
4867
4871
|
scope: "node" | "app_wide";
|
|
4868
4872
|
/** @description Required when `scope` is `node`; must be omitted when `scope` is `app_wide`. */
|
|
4869
4873
|
node_id?: string;
|
|
4874
|
+
/** @description The `client_id` of the machine client acting for the identity, from a delegated token's `act.sub`. When set, the check allows only when the identity and the client both hold the permission there; `acting_client_allowed` carries the client's half. */
|
|
4875
|
+
acting_client_id?: string;
|
|
4870
4876
|
};
|
|
4871
4877
|
BulkEvaluatePermissionDto: {
|
|
4872
4878
|
/** @description Between 1 and 100 checks. More is refused with a 400. */
|
|
@@ -5654,6 +5660,10 @@ interface components {
|
|
|
5654
5660
|
has_hierarchy: boolean;
|
|
5655
5661
|
/** @description Whether the organization may create its own integrations: the Environment's `organization_integrations_enabled` is on, it has a default audience, which every integration's token names, and `organization_integration_role_ids` names at least one role */
|
|
5656
5662
|
integrations_enabled: boolean;
|
|
5663
|
+
/** @description Whether the Account's plan includes single sign-on. Without it the organization's connection and domain routes answer `403 plan_feature_unavailable`. */
|
|
5664
|
+
plan_includes_sso: boolean;
|
|
5665
|
+
/** @description Whether the Account's plan includes directory sync. Without it the organization's directory routes answer `403 plan_feature_unavailable`. */
|
|
5666
|
+
plan_includes_scim: boolean;
|
|
5657
5667
|
};
|
|
5658
5668
|
RoleResponseDto: {
|
|
5659
5669
|
id: string;
|
|
@@ -6840,6 +6850,12 @@ interface components {
|
|
|
6840
6850
|
* @enum {string|null}
|
|
6841
6851
|
*/
|
|
6842
6852
|
channel?: "mcp" | null;
|
|
6853
|
+
/** @description The MCP client a developer approved, when it made the change for the actor through the account MCP server. NULL otherwise, including a change made through MCP with an API key, which acts as the key. */
|
|
6854
|
+
mcp_client_id?: string | null;
|
|
6855
|
+
/** @description That client's name as it gave it when the change was made. Unverified. */
|
|
6856
|
+
mcp_client_name?: string | null;
|
|
6857
|
+
/** @description The developer's approval of that client the change was made under. */
|
|
6858
|
+
mcp_grant_id?: string | null;
|
|
6843
6859
|
/** @description Snapshot label of the actor at write time (email for users / identities, label otherwise). NULL on rows written before the Slice 2 deploy. */
|
|
6844
6860
|
actor_label?: string | null;
|
|
6845
6861
|
/** @description Snapshot label of the affected resource at write time. NULL on rows written before the Slice 2 deploy. */
|
|
@@ -6978,6 +6994,12 @@ interface components {
|
|
|
6978
6994
|
* @enum {string|null}
|
|
6979
6995
|
*/
|
|
6980
6996
|
channel?: "mcp" | null;
|
|
6997
|
+
/** @description The MCP client a developer approved, when it made the change for the actor through the account MCP server. NULL otherwise, including a change made through MCP with an API key, which acts as the key. */
|
|
6998
|
+
mcp_client_id?: string | null;
|
|
6999
|
+
/** @description That client's name as it gave it when the change was made. Unverified. */
|
|
7000
|
+
mcp_client_name?: string | null;
|
|
7001
|
+
/** @description The developer's approval of that client the change was made under. */
|
|
7002
|
+
mcp_grant_id?: string | null;
|
|
6981
7003
|
/** @description Snapshot label of the actor at write time (email for users / identities, label otherwise). NULL on rows written before the Slice 2 deploy. */
|
|
6982
7004
|
actor_label?: string | null;
|
|
6983
7005
|
/** @description Snapshot label of the affected resource at write time. NULL on rows written before the Slice 2 deploy. */
|
|
@@ -8267,6 +8289,8 @@ interface components {
|
|
|
8267
8289
|
is_active?: boolean;
|
|
8268
8290
|
/** @description A machine client's audiences, replaced whole. A web client takes none (`400 oauth.web_client_audiences_invalid`). */
|
|
8269
8291
|
allowed_audiences?: string[];
|
|
8292
|
+
/** @description Machine clients only: whether the client may exchange a person's access token for one it acts for them with (`urn:ietf:params:oauth:grant-type:token-exchange`). Off until turned on. */
|
|
8293
|
+
token_exchange?: boolean;
|
|
8270
8294
|
/** @description Where Canopy delivers a signed logout token when a session this client issued tokens for ends. `null` stops the notifications. */
|
|
8271
8295
|
backchannel_logout_uri?: string | null;
|
|
8272
8296
|
invite_redirect_url?: string | null;
|
|
@@ -8365,6 +8389,21 @@ interface components {
|
|
|
8365
8389
|
[key: string]: unknown;
|
|
8366
8390
|
};
|
|
8367
8391
|
};
|
|
8392
|
+
SubscriptionDiscountDto: {
|
|
8393
|
+
/** @description The promotion code the discount came from. */
|
|
8394
|
+
code: string | null;
|
|
8395
|
+
/** @description Amount off each invoice, in the currency's minor unit. */
|
|
8396
|
+
amount_off: number | null;
|
|
8397
|
+
/** @description Percentage off each invoice. */
|
|
8398
|
+
percent_off: number | null;
|
|
8399
|
+
/** @description Currency of `amount_off`. */
|
|
8400
|
+
currency: string | null;
|
|
8401
|
+
/**
|
|
8402
|
+
* Format: date-time
|
|
8403
|
+
* @description When the discount ends; null if it does not end.
|
|
8404
|
+
*/
|
|
8405
|
+
ends_at: string | null;
|
|
8406
|
+
};
|
|
8368
8407
|
SubscriptionResponseDto: {
|
|
8369
8408
|
id: string;
|
|
8370
8409
|
account_id: string;
|
|
@@ -8372,7 +8411,7 @@ interface components {
|
|
|
8372
8411
|
* @description Current subscription plan code.
|
|
8373
8412
|
* @enum {string}
|
|
8374
8413
|
*/
|
|
8375
|
-
plan_code: "free" | "pro" | "enterprise";
|
|
8414
|
+
plan_code: "free" | "starter" | "pro" | "enterprise";
|
|
8376
8415
|
/**
|
|
8377
8416
|
* @description Lifecycle state. `active` is the happy path; `past_due` and `cancelled` should surface a banner / disable upgrade affordances in the dashboard.
|
|
8378
8417
|
* @enum {string}
|
|
@@ -8395,6 +8434,15 @@ interface components {
|
|
|
8395
8434
|
current_period_end?: string | null;
|
|
8396
8435
|
/** @description True when the subscription is scheduled to cancel at `current_period_end`. Stripe webhook flips `status` to `cancelled` when the period closes. */
|
|
8397
8436
|
cancel_at_period_end: boolean;
|
|
8437
|
+
/**
|
|
8438
|
+
* @description The lower paid plan the subscription moves to at `current_period_end`, or null. Undone with `DELETE /billing/scheduled-downgrade`.
|
|
8439
|
+
* @enum {string|null}
|
|
8440
|
+
*/
|
|
8441
|
+
scheduled_plan_code?: "starter" | "pro" | null;
|
|
8442
|
+
/** @description The promotion code the subscription was started with, kept after its discount ends. */
|
|
8443
|
+
promotion_code?: string | null;
|
|
8444
|
+
/** @description The discount the subscription carries now, read from Stripe. */
|
|
8445
|
+
discount?: components["schemas"]["SubscriptionDiscountDto"] | null;
|
|
8398
8446
|
/**
|
|
8399
8447
|
* Format: date-time
|
|
8400
8448
|
* @description When the current trial started (UTC ISO).
|
|
@@ -8407,9 +8455,14 @@ interface components {
|
|
|
8407
8455
|
trial_ends_at?: string | null;
|
|
8408
8456
|
/**
|
|
8409
8457
|
* Format: date-time
|
|
8410
|
-
* @description Timestamp of the most recent payment attempt (success or failure), synced from Stripe webhooks.
|
|
8458
|
+
* @description Timestamp of the most recent payment attempt (success or failure), synced from Stripe webhooks.
|
|
8411
8459
|
*/
|
|
8412
8460
|
last_payment_attempt_at?: string | null;
|
|
8461
|
+
/**
|
|
8462
|
+
* Format: date-time
|
|
8463
|
+
* @description When paid features are revoked if the failed payment is not settled (UTC ISO), counted from when the subscription went past due. Null unless it is past due.
|
|
8464
|
+
*/
|
|
8465
|
+
grace_ends_at?: string | null;
|
|
8413
8466
|
/**
|
|
8414
8467
|
* @description Count of consecutive failed payment attempts on the current open invoice. Resets to 0 on a successful charge. Renders the `N of 4 attempts` copy in the dunning banner.
|
|
8415
8468
|
* @example 0
|
|
@@ -8423,16 +8476,18 @@ interface components {
|
|
|
8423
8476
|
interval?: string | null;
|
|
8424
8477
|
};
|
|
8425
8478
|
DimensionUsageDto: {
|
|
8426
|
-
/** @description Plan-defined ceiling for this dimension. */
|
|
8427
|
-
limit: number;
|
|
8479
|
+
/** @description Plan-defined ceiling for this dimension. Null for no limit. */
|
|
8480
|
+
limit: number | null;
|
|
8428
8481
|
/** @description Current usage count toward the limit. */
|
|
8429
8482
|
used: number;
|
|
8430
|
-
/** @description Used / limit, capped at 1.0. 0 when limit is 0 (feature disabled). */
|
|
8483
|
+
/** @description Used / limit, capped at 1.0. 0 when limit is 0 (feature disabled) or null (no limit). */
|
|
8431
8484
|
percent: number;
|
|
8432
8485
|
};
|
|
8433
8486
|
UsageDimensionsDto: {
|
|
8434
8487
|
/** @description Accepted dashboard seats + pending invites vs limit. */
|
|
8435
8488
|
dashboard_seats?: components["schemas"]["DimensionUsageDto"];
|
|
8489
|
+
/** @description Live organizations across the Account's Environments vs limit. */
|
|
8490
|
+
organizations?: components["schemas"]["DimensionUsageDto"];
|
|
8436
8491
|
/** @description Distinct identities that completed an authentication during the current UTC calendar month, counted from `mau_monthly_active_identities` — written on the authentication path itself, so the figure is current rather than waiting on a nightly job. */
|
|
8437
8492
|
mau?: components["schemas"]["DimensionUsageDto"];
|
|
8438
8493
|
/** @description API keys and machine clients that successfully authenticated during the current UTC calendar month. */
|
|
@@ -8447,8 +8502,6 @@ interface components {
|
|
|
8447
8502
|
scim?: boolean;
|
|
8448
8503
|
/** @description External audit-log destinations. */
|
|
8449
8504
|
audit_destinations?: boolean;
|
|
8450
|
-
/** @description Tenant organizations (the organizations container). */
|
|
8451
|
-
organizations?: boolean;
|
|
8452
8505
|
};
|
|
8453
8506
|
UsageSummaryResponseDto: {
|
|
8454
8507
|
account_id: string;
|
|
@@ -8456,7 +8509,7 @@ interface components {
|
|
|
8456
8509
|
* @description The Account's current subscription plan. Drives the limit values returned per dimension.
|
|
8457
8510
|
* @enum {string}
|
|
8458
8511
|
*/
|
|
8459
|
-
current_plan: "free" | "pro" | "enterprise";
|
|
8512
|
+
current_plan: "free" | "starter" | "pro" | "enterprise";
|
|
8460
8513
|
dimensions: components["schemas"]["UsageDimensionsDto"];
|
|
8461
8514
|
features: components["schemas"]["PlanFeaturesDto"];
|
|
8462
8515
|
};
|
|
@@ -8469,14 +8522,20 @@ interface components {
|
|
|
8469
8522
|
/** @description ISO 4217 currency code (e.g. `usd`). */
|
|
8470
8523
|
currency: string;
|
|
8471
8524
|
};
|
|
8472
|
-
|
|
8473
|
-
/** @description
|
|
8525
|
+
PlanCyclePricesDto: {
|
|
8526
|
+
/** @description The plan billed monthly. Null when no active price carries the `<plan_code>_monthly` lookup key. */
|
|
8474
8527
|
monthly?: components["schemas"]["PlanPriceDto"] | null;
|
|
8475
|
-
/** @description
|
|
8528
|
+
/** @description The plan billed annually. Null when no active price carries the `<plan_code>_annual` lookup key. */
|
|
8476
8529
|
annual?: components["schemas"]["PlanPriceDto"] | null;
|
|
8477
8530
|
/** @description What annual saves against twelve monthly payments, rounded to a whole percent — derived from the two prices above rather than stated, so it cannot disagree with them. Null when either price is missing. */
|
|
8478
8531
|
annual_savings_percent?: number | null;
|
|
8479
8532
|
};
|
|
8533
|
+
PlanPricesResponseDto: {
|
|
8534
|
+
/** @description Starter's prices. */
|
|
8535
|
+
starter: components["schemas"]["PlanCyclePricesDto"];
|
|
8536
|
+
/** @description Pro's prices. */
|
|
8537
|
+
pro: components["schemas"]["PlanCyclePricesDto"];
|
|
8538
|
+
};
|
|
8480
8539
|
InvoiceResponseDto: {
|
|
8481
8540
|
/** @description Stripe invoice id (`in_…`). */
|
|
8482
8541
|
id: string;
|
|
@@ -19323,7 +19382,7 @@ interface operations {
|
|
|
19323
19382
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19324
19383
|
};
|
|
19325
19384
|
};
|
|
19326
|
-
/** @description
|
|
19385
|
+
/** @description The caller lacks the permission this route checks, or the request turns `require_sso` on and the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
19327
19386
|
403: {
|
|
19328
19387
|
headers: {
|
|
19329
19388
|
[name: string]: unknown;
|
|
@@ -19334,10 +19393,10 @@ interface operations {
|
|
|
19334
19393
|
* "error": {
|
|
19335
19394
|
* "statusCode": 403,
|
|
19336
19395
|
* "code": null,
|
|
19337
|
-
* "message": "
|
|
19396
|
+
* "message": "The caller lacks the permission this route checks, or the request turns `require_sso` on and the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
19338
19397
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19339
|
-
* "path": "/api/v1/organizations",
|
|
19340
|
-
* "method": "
|
|
19398
|
+
* "path": "/api/v1/organizations/{id}/policy",
|
|
19399
|
+
* "method": "PATCH"
|
|
19341
19400
|
* }
|
|
19342
19401
|
* }
|
|
19343
19402
|
*/
|
|
@@ -19580,7 +19639,7 @@ interface operations {
|
|
|
19580
19639
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19581
19640
|
};
|
|
19582
19641
|
};
|
|
19583
|
-
/** @description
|
|
19642
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
19584
19643
|
403: {
|
|
19585
19644
|
headers: {
|
|
19586
19645
|
[name: string]: unknown;
|
|
@@ -19591,10 +19650,10 @@ interface operations {
|
|
|
19591
19650
|
* "error": {
|
|
19592
19651
|
* "statusCode": 403,
|
|
19593
19652
|
* "code": null,
|
|
19594
|
-
* "message": "
|
|
19653
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
19595
19654
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19596
|
-
* "path": "/api/v1/organizations",
|
|
19597
|
-
* "method": "
|
|
19655
|
+
* "path": "/api/v1/organizations/{id}/policy/sso-recovery-codes",
|
|
19656
|
+
* "method": "POST"
|
|
19598
19657
|
* }
|
|
19599
19658
|
* }
|
|
19600
19659
|
*/
|
|
@@ -19691,7 +19750,7 @@ interface operations {
|
|
|
19691
19750
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19692
19751
|
};
|
|
19693
19752
|
};
|
|
19694
|
-
/** @description
|
|
19753
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
19695
19754
|
403: {
|
|
19696
19755
|
headers: {
|
|
19697
19756
|
[name: string]: unknown;
|
|
@@ -19702,10 +19761,10 @@ interface operations {
|
|
|
19702
19761
|
* "error": {
|
|
19703
19762
|
* "statusCode": 403,
|
|
19704
19763
|
* "code": null,
|
|
19705
|
-
* "message": "
|
|
19764
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
19706
19765
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19707
|
-
* "path": "/api/v1/organizations",
|
|
19708
|
-
* "method": "
|
|
19766
|
+
* "path": "/api/v1/organizations/{id}/sso-connection/test",
|
|
19767
|
+
* "method": "POST"
|
|
19709
19768
|
* }
|
|
19710
19769
|
* }
|
|
19711
19770
|
*/
|
|
@@ -19803,7 +19862,7 @@ interface operations {
|
|
|
19803
19862
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19804
19863
|
};
|
|
19805
19864
|
};
|
|
19806
|
-
/** @description
|
|
19865
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
19807
19866
|
403: {
|
|
19808
19867
|
headers: {
|
|
19809
19868
|
[name: string]: unknown;
|
|
@@ -19814,9 +19873,9 @@ interface operations {
|
|
|
19814
19873
|
* "error": {
|
|
19815
19874
|
* "statusCode": 403,
|
|
19816
19875
|
* "code": null,
|
|
19817
|
-
* "message": "
|
|
19876
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
19818
19877
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19819
|
-
* "path": "/api/v1/organizations",
|
|
19878
|
+
* "path": "/api/v1/organizations/{id}/sso-connection/test/{testId}",
|
|
19820
19879
|
* "method": "GET"
|
|
19821
19880
|
* }
|
|
19822
19881
|
* }
|
|
@@ -19914,7 +19973,7 @@ interface operations {
|
|
|
19914
19973
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19915
19974
|
};
|
|
19916
19975
|
};
|
|
19917
|
-
/** @description
|
|
19976
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
19918
19977
|
403: {
|
|
19919
19978
|
headers: {
|
|
19920
19979
|
[name: string]: unknown;
|
|
@@ -19925,9 +19984,9 @@ interface operations {
|
|
|
19925
19984
|
* "error": {
|
|
19926
19985
|
* "statusCode": 403,
|
|
19927
19986
|
* "code": null,
|
|
19928
|
-
* "message": "
|
|
19987
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
19929
19988
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19930
|
-
* "path": "/api/v1/organizations",
|
|
19989
|
+
* "path": "/api/v1/organizations/{id}/domains",
|
|
19931
19990
|
* "method": "GET"
|
|
19932
19991
|
* }
|
|
19933
19992
|
* }
|
|
@@ -20029,7 +20088,7 @@ interface operations {
|
|
|
20029
20088
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
20030
20089
|
};
|
|
20031
20090
|
};
|
|
20032
|
-
/** @description
|
|
20091
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
20033
20092
|
403: {
|
|
20034
20093
|
headers: {
|
|
20035
20094
|
[name: string]: unknown;
|
|
@@ -20040,10 +20099,10 @@ interface operations {
|
|
|
20040
20099
|
* "error": {
|
|
20041
20100
|
* "statusCode": 403,
|
|
20042
20101
|
* "code": null,
|
|
20043
|
-
* "message": "
|
|
20102
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
20044
20103
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
20045
|
-
* "path": "/api/v1/organizations",
|
|
20046
|
-
* "method": "
|
|
20104
|
+
* "path": "/api/v1/organizations/{id}/domains",
|
|
20105
|
+
* "method": "POST"
|
|
20047
20106
|
* }
|
|
20048
20107
|
* }
|
|
20049
20108
|
*/
|
|
@@ -20162,7 +20221,7 @@ interface operations {
|
|
|
20162
20221
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
20163
20222
|
};
|
|
20164
20223
|
};
|
|
20165
|
-
/** @description
|
|
20224
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
20166
20225
|
403: {
|
|
20167
20226
|
headers: {
|
|
20168
20227
|
[name: string]: unknown;
|
|
@@ -20173,10 +20232,10 @@ interface operations {
|
|
|
20173
20232
|
* "error": {
|
|
20174
20233
|
* "statusCode": 403,
|
|
20175
20234
|
* "code": null,
|
|
20176
|
-
* "message": "
|
|
20235
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
20177
20236
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
20178
|
-
* "path": "/api/v1/organizations",
|
|
20179
|
-
* "method": "
|
|
20237
|
+
* "path": "/api/v1/organizations/{id}/domains/{domain}/verify",
|
|
20238
|
+
* "method": "POST"
|
|
20180
20239
|
* }
|
|
20181
20240
|
* }
|
|
20182
20241
|
*/
|
|
@@ -20312,7 +20371,7 @@ interface operations {
|
|
|
20312
20371
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
20313
20372
|
};
|
|
20314
20373
|
};
|
|
20315
|
-
/** @description
|
|
20374
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
20316
20375
|
403: {
|
|
20317
20376
|
headers: {
|
|
20318
20377
|
[name: string]: unknown;
|
|
@@ -20323,10 +20382,10 @@ interface operations {
|
|
|
20323
20382
|
* "error": {
|
|
20324
20383
|
* "statusCode": 403,
|
|
20325
20384
|
* "code": null,
|
|
20326
|
-
* "message": "
|
|
20385
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
20327
20386
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
20328
|
-
* "path": "/api/v1/organizations",
|
|
20329
|
-
* "method": "
|
|
20387
|
+
* "path": "/api/v1/organizations/{id}/domains/{domain}",
|
|
20388
|
+
* "method": "DELETE"
|
|
20330
20389
|
* }
|
|
20331
20390
|
* }
|
|
20332
20391
|
*/
|
|
@@ -20423,7 +20482,7 @@ interface operations {
|
|
|
20423
20482
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
20424
20483
|
};
|
|
20425
20484
|
};
|
|
20426
|
-
/** @description
|
|
20485
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
20427
20486
|
403: {
|
|
20428
20487
|
headers: {
|
|
20429
20488
|
[name: string]: unknown;
|
|
@@ -20434,9 +20493,9 @@ interface operations {
|
|
|
20434
20493
|
* "error": {
|
|
20435
20494
|
* "statusCode": 403,
|
|
20436
20495
|
* "code": null,
|
|
20437
|
-
* "message": "
|
|
20496
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
20438
20497
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
20439
|
-
* "path": "/api/v1/organizations",
|
|
20498
|
+
* "path": "/api/v1/organizations/{id}/sso-connections",
|
|
20440
20499
|
* "method": "GET"
|
|
20441
20500
|
* }
|
|
20442
20501
|
* }
|
|
@@ -20538,7 +20597,7 @@ interface operations {
|
|
|
20538
20597
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
20539
20598
|
};
|
|
20540
20599
|
};
|
|
20541
|
-
/** @description
|
|
20600
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
20542
20601
|
403: {
|
|
20543
20602
|
headers: {
|
|
20544
20603
|
[name: string]: unknown;
|
|
@@ -20549,10 +20608,10 @@ interface operations {
|
|
|
20549
20608
|
* "error": {
|
|
20550
20609
|
* "statusCode": 403,
|
|
20551
20610
|
* "code": null,
|
|
20552
|
-
* "message": "
|
|
20611
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
20553
20612
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
20554
|
-
* "path": "/api/v1/organizations",
|
|
20555
|
-
* "method": "
|
|
20613
|
+
* "path": "/api/v1/organizations/{id}/sso-connections",
|
|
20614
|
+
* "method": "POST"
|
|
20556
20615
|
* }
|
|
20557
20616
|
* }
|
|
20558
20617
|
*/
|
|
@@ -20667,7 +20726,7 @@ interface operations {
|
|
|
20667
20726
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
20668
20727
|
};
|
|
20669
20728
|
};
|
|
20670
|
-
/** @description
|
|
20729
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
20671
20730
|
403: {
|
|
20672
20731
|
headers: {
|
|
20673
20732
|
[name: string]: unknown;
|
|
@@ -20678,10 +20737,10 @@ interface operations {
|
|
|
20678
20737
|
* "error": {
|
|
20679
20738
|
* "statusCode": 403,
|
|
20680
20739
|
* "code": null,
|
|
20681
|
-
* "message": "
|
|
20740
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
20682
20741
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
20683
|
-
* "path": "/api/v1/organizations",
|
|
20684
|
-
* "method": "
|
|
20742
|
+
* "path": "/api/v1/organizations/{id}/sso-connections/{connectionId}",
|
|
20743
|
+
* "method": "DELETE"
|
|
20685
20744
|
* }
|
|
20686
20745
|
* }
|
|
20687
20746
|
*/
|
|
@@ -21936,7 +21995,7 @@ interface operations {
|
|
|
21936
21995
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
21937
21996
|
};
|
|
21938
21997
|
};
|
|
21939
|
-
/** @description
|
|
21998
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
21940
21999
|
403: {
|
|
21941
22000
|
headers: {
|
|
21942
22001
|
[name: string]: unknown;
|
|
@@ -21947,7 +22006,7 @@ interface operations {
|
|
|
21947
22006
|
* "error": {
|
|
21948
22007
|
* "statusCode": 403,
|
|
21949
22008
|
* "code": null,
|
|
21950
|
-
* "message": "
|
|
22009
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
21951
22010
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
21952
22011
|
* "path": "/api/v1/organizations/{id}/sso-connection",
|
|
21953
22012
|
* "method": "GET"
|
|
@@ -22072,7 +22131,7 @@ interface operations {
|
|
|
22072
22131
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22073
22132
|
};
|
|
22074
22133
|
};
|
|
22075
|
-
/** @description
|
|
22134
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
22076
22135
|
403: {
|
|
22077
22136
|
headers: {
|
|
22078
22137
|
[name: string]: unknown;
|
|
@@ -22083,7 +22142,7 @@ interface operations {
|
|
|
22083
22142
|
* "error": {
|
|
22084
22143
|
* "statusCode": 403,
|
|
22085
22144
|
* "code": null,
|
|
22086
|
-
* "message": "
|
|
22145
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
22087
22146
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22088
22147
|
* "path": "/api/v1/organizations/{id}/sso-connection",
|
|
22089
22148
|
* "method": "GET"
|
|
@@ -22200,7 +22259,7 @@ interface operations {
|
|
|
22200
22259
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22201
22260
|
};
|
|
22202
22261
|
};
|
|
22203
|
-
/** @description
|
|
22262
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
22204
22263
|
403: {
|
|
22205
22264
|
headers: {
|
|
22206
22265
|
[name: string]: unknown;
|
|
@@ -22211,7 +22270,7 @@ interface operations {
|
|
|
22211
22270
|
* "error": {
|
|
22212
22271
|
* "statusCode": 403,
|
|
22213
22272
|
* "code": null,
|
|
22214
|
-
* "message": "
|
|
22273
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
22215
22274
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22216
22275
|
* "path": "/api/v1/organizations/{id}/sso-connection",
|
|
22217
22276
|
* "method": "GET"
|
|
@@ -22336,7 +22395,7 @@ interface operations {
|
|
|
22336
22395
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22337
22396
|
};
|
|
22338
22397
|
};
|
|
22339
|
-
/** @description
|
|
22398
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
22340
22399
|
403: {
|
|
22341
22400
|
headers: {
|
|
22342
22401
|
[name: string]: unknown;
|
|
@@ -22347,7 +22406,7 @@ interface operations {
|
|
|
22347
22406
|
* "error": {
|
|
22348
22407
|
* "statusCode": 403,
|
|
22349
22408
|
* "code": null,
|
|
22350
|
-
* "message": "
|
|
22409
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
22351
22410
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22352
22411
|
* "path": "/api/v1/organizations/{id}/sso-connection",
|
|
22353
22412
|
* "method": "GET"
|
|
@@ -22468,7 +22527,7 @@ interface operations {
|
|
|
22468
22527
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22469
22528
|
};
|
|
22470
22529
|
};
|
|
22471
|
-
/** @description
|
|
22530
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
22472
22531
|
403: {
|
|
22473
22532
|
headers: {
|
|
22474
22533
|
[name: string]: unknown;
|
|
@@ -22479,7 +22538,7 @@ interface operations {
|
|
|
22479
22538
|
* "error": {
|
|
22480
22539
|
* "statusCode": 403,
|
|
22481
22540
|
* "code": null,
|
|
22482
|
-
* "message": "
|
|
22541
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
22483
22542
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22484
22543
|
* "path": "/api/v1/organizations/{id}/sso-connection",
|
|
22485
22544
|
* "method": "GET"
|
|
@@ -22600,7 +22659,7 @@ interface operations {
|
|
|
22600
22659
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22601
22660
|
};
|
|
22602
22661
|
};
|
|
22603
|
-
/** @description
|
|
22662
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
22604
22663
|
403: {
|
|
22605
22664
|
headers: {
|
|
22606
22665
|
[name: string]: unknown;
|
|
@@ -22611,7 +22670,7 @@ interface operations {
|
|
|
22611
22670
|
* "error": {
|
|
22612
22671
|
* "statusCode": 403,
|
|
22613
22672
|
* "code": null,
|
|
22614
|
-
* "message": "
|
|
22673
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
22615
22674
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22616
22675
|
* "path": "/api/v1/organizations/{id}/sso-connection",
|
|
22617
22676
|
* "method": "GET"
|
|
@@ -22736,7 +22795,7 @@ interface operations {
|
|
|
22736
22795
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22737
22796
|
};
|
|
22738
22797
|
};
|
|
22739
|
-
/** @description
|
|
22798
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
22740
22799
|
403: {
|
|
22741
22800
|
headers: {
|
|
22742
22801
|
[name: string]: unknown;
|
|
@@ -22747,7 +22806,7 @@ interface operations {
|
|
|
22747
22806
|
* "error": {
|
|
22748
22807
|
* "statusCode": 403,
|
|
22749
22808
|
* "code": null,
|
|
22750
|
-
* "message": "
|
|
22809
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
22751
22810
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22752
22811
|
* "path": "/api/v1/organizations/{id}/sso-connection",
|
|
22753
22812
|
* "method": "GET"
|
|
@@ -22868,7 +22927,7 @@ interface operations {
|
|
|
22868
22927
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22869
22928
|
};
|
|
22870
22929
|
};
|
|
22871
|
-
/** @description
|
|
22930
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
22872
22931
|
403: {
|
|
22873
22932
|
headers: {
|
|
22874
22933
|
[name: string]: unknown;
|
|
@@ -22879,7 +22938,7 @@ interface operations {
|
|
|
22879
22938
|
* "error": {
|
|
22880
22939
|
* "statusCode": 403,
|
|
22881
22940
|
* "code": null,
|
|
22882
|
-
* "message": "
|
|
22941
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
22883
22942
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22884
22943
|
* "path": "/api/v1/organizations/{id}/sso-connection",
|
|
22885
22944
|
* "method": "GET"
|
|
@@ -23000,7 +23059,7 @@ interface operations {
|
|
|
23000
23059
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23001
23060
|
};
|
|
23002
23061
|
};
|
|
23003
|
-
/** @description
|
|
23062
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
23004
23063
|
403: {
|
|
23005
23064
|
headers: {
|
|
23006
23065
|
[name: string]: unknown;
|
|
@@ -23011,7 +23070,7 @@ interface operations {
|
|
|
23011
23070
|
* "error": {
|
|
23012
23071
|
* "statusCode": 403,
|
|
23013
23072
|
* "code": null,
|
|
23014
|
-
* "message": "
|
|
23073
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
23015
23074
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23016
23075
|
* "path": "/api/v1/organizations/{id}/sso-connection",
|
|
23017
23076
|
* "method": "GET"
|
|
@@ -23111,7 +23170,7 @@ interface operations {
|
|
|
23111
23170
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23112
23171
|
};
|
|
23113
23172
|
};
|
|
23114
|
-
/** @description
|
|
23173
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
|
|
23115
23174
|
403: {
|
|
23116
23175
|
headers: {
|
|
23117
23176
|
[name: string]: unknown;
|
|
@@ -23122,7 +23181,7 @@ interface operations {
|
|
|
23122
23181
|
* "error": {
|
|
23123
23182
|
* "statusCode": 403,
|
|
23124
23183
|
* "code": null,
|
|
23125
|
-
* "message": "
|
|
23184
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
|
|
23126
23185
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23127
23186
|
* "path": "/api/v1/organizations/{id}/sso-connection",
|
|
23128
23187
|
* "method": "GET"
|
|
@@ -23243,7 +23302,7 @@ interface operations {
|
|
|
23243
23302
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23244
23303
|
};
|
|
23245
23304
|
};
|
|
23246
|
-
/** @description
|
|
23305
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
|
|
23247
23306
|
403: {
|
|
23248
23307
|
headers: {
|
|
23249
23308
|
[name: string]: unknown;
|
|
@@ -23254,7 +23313,7 @@ interface operations {
|
|
|
23254
23313
|
* "error": {
|
|
23255
23314
|
* "statusCode": 403,
|
|
23256
23315
|
* "code": null,
|
|
23257
|
-
* "message": "
|
|
23316
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
|
|
23258
23317
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23259
23318
|
* "path": "/api/v1/organizations/{id}/directory",
|
|
23260
23319
|
* "method": "GET"
|
|
@@ -23354,7 +23413,7 @@ interface operations {
|
|
|
23354
23413
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23355
23414
|
};
|
|
23356
23415
|
};
|
|
23357
|
-
/** @description
|
|
23416
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
|
|
23358
23417
|
403: {
|
|
23359
23418
|
headers: {
|
|
23360
23419
|
[name: string]: unknown;
|
|
@@ -23365,7 +23424,7 @@ interface operations {
|
|
|
23365
23424
|
* "error": {
|
|
23366
23425
|
* "statusCode": 403,
|
|
23367
23426
|
* "code": null,
|
|
23368
|
-
* "message": "
|
|
23427
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
|
|
23369
23428
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23370
23429
|
* "path": "/api/v1/organizations/{id}/directory",
|
|
23371
23430
|
* "method": "GET"
|
|
@@ -23482,7 +23541,7 @@ interface operations {
|
|
|
23482
23541
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23483
23542
|
};
|
|
23484
23543
|
};
|
|
23485
|
-
/** @description
|
|
23544
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
|
|
23486
23545
|
403: {
|
|
23487
23546
|
headers: {
|
|
23488
23547
|
[name: string]: unknown;
|
|
@@ -23493,7 +23552,7 @@ interface operations {
|
|
|
23493
23552
|
* "error": {
|
|
23494
23553
|
* "statusCode": 403,
|
|
23495
23554
|
* "code": null,
|
|
23496
|
-
* "message": "
|
|
23555
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
|
|
23497
23556
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23498
23557
|
* "path": "/api/v1/organizations/{id}/directory",
|
|
23499
23558
|
* "method": "GET"
|
|
@@ -23593,7 +23652,7 @@ interface operations {
|
|
|
23593
23652
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23594
23653
|
};
|
|
23595
23654
|
};
|
|
23596
|
-
/** @description
|
|
23655
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
|
|
23597
23656
|
403: {
|
|
23598
23657
|
headers: {
|
|
23599
23658
|
[name: string]: unknown;
|
|
@@ -23604,7 +23663,7 @@ interface operations {
|
|
|
23604
23663
|
* "error": {
|
|
23605
23664
|
* "statusCode": 403,
|
|
23606
23665
|
* "code": null,
|
|
23607
|
-
* "message": "
|
|
23666
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
|
|
23608
23667
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23609
23668
|
* "path": "/api/v1/organizations/{id}/directory",
|
|
23610
23669
|
* "method": "GET"
|
|
@@ -23708,7 +23767,7 @@ interface operations {
|
|
|
23708
23767
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23709
23768
|
};
|
|
23710
23769
|
};
|
|
23711
|
-
/** @description
|
|
23770
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
|
|
23712
23771
|
403: {
|
|
23713
23772
|
headers: {
|
|
23714
23773
|
[name: string]: unknown;
|
|
@@ -23719,7 +23778,7 @@ interface operations {
|
|
|
23719
23778
|
* "error": {
|
|
23720
23779
|
* "statusCode": 403,
|
|
23721
23780
|
* "code": null,
|
|
23722
|
-
* "message": "
|
|
23781
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
|
|
23723
23782
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23724
23783
|
* "path": "/api/v1/organizations/{id}/directory",
|
|
23725
23784
|
* "method": "GET"
|
|
@@ -23845,7 +23904,7 @@ interface operations {
|
|
|
23845
23904
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23846
23905
|
};
|
|
23847
23906
|
};
|
|
23848
|
-
/** @description
|
|
23907
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
|
|
23849
23908
|
403: {
|
|
23850
23909
|
headers: {
|
|
23851
23910
|
[name: string]: unknown;
|
|
@@ -23856,7 +23915,7 @@ interface operations {
|
|
|
23856
23915
|
* "error": {
|
|
23857
23916
|
* "statusCode": 403,
|
|
23858
23917
|
* "code": null,
|
|
23859
|
-
* "message": "
|
|
23918
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
|
|
23860
23919
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23861
23920
|
* "path": "/api/v1/organizations/{id}/directory",
|
|
23862
23921
|
* "method": "GET"
|
|
@@ -23974,7 +24033,7 @@ interface operations {
|
|
|
23974
24033
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23975
24034
|
};
|
|
23976
24035
|
};
|
|
23977
|
-
/** @description
|
|
24036
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
|
|
23978
24037
|
403: {
|
|
23979
24038
|
headers: {
|
|
23980
24039
|
[name: string]: unknown;
|
|
@@ -23985,7 +24044,7 @@ interface operations {
|
|
|
23985
24044
|
* "error": {
|
|
23986
24045
|
* "statusCode": 403,
|
|
23987
24046
|
* "code": null,
|
|
23988
|
-
* "message": "
|
|
24047
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
|
|
23989
24048
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23990
24049
|
* "path": "/api/v1/organizations/{id}/directory",
|
|
23991
24050
|
* "method": "GET"
|
|
@@ -24085,7 +24144,7 @@ interface operations {
|
|
|
24085
24144
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
24086
24145
|
};
|
|
24087
24146
|
};
|
|
24088
|
-
/** @description
|
|
24147
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
|
|
24089
24148
|
403: {
|
|
24090
24149
|
headers: {
|
|
24091
24150
|
[name: string]: unknown;
|
|
@@ -24096,7 +24155,7 @@ interface operations {
|
|
|
24096
24155
|
* "error": {
|
|
24097
24156
|
* "statusCode": 403,
|
|
24098
24157
|
* "code": null,
|
|
24099
|
-
* "message": "
|
|
24158
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
|
|
24100
24159
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
24101
24160
|
* "path": "/api/v1/organizations/{id}/directory",
|
|
24102
24161
|
* "method": "GET"
|
|
@@ -24196,7 +24255,7 @@ interface operations {
|
|
|
24196
24255
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
24197
24256
|
};
|
|
24198
24257
|
};
|
|
24199
|
-
/** @description
|
|
24258
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
|
|
24200
24259
|
403: {
|
|
24201
24260
|
headers: {
|
|
24202
24261
|
[name: string]: unknown;
|
|
@@ -24207,7 +24266,7 @@ interface operations {
|
|
|
24207
24266
|
* "error": {
|
|
24208
24267
|
* "statusCode": 403,
|
|
24209
24268
|
* "code": null,
|
|
24210
|
-
* "message": "
|
|
24269
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
|
|
24211
24270
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
24212
24271
|
* "path": "/api/v1/organizations/{id}/directory",
|
|
24213
24272
|
* "method": "GET"
|
|
@@ -24311,7 +24370,7 @@ interface operations {
|
|
|
24311
24370
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
24312
24371
|
};
|
|
24313
24372
|
};
|
|
24314
|
-
/** @description Only the application owner may change this list. An organization's own administrator can read it, not change it
|
|
24373
|
+
/** @description Only the application owner may change this list. An organization's own administrator can read it, not change it, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
|
|
24315
24374
|
403: {
|
|
24316
24375
|
headers: {
|
|
24317
24376
|
[name: string]: unknown;
|
|
@@ -24322,7 +24381,7 @@ interface operations {
|
|
|
24322
24381
|
* "error": {
|
|
24323
24382
|
* "statusCode": 403,
|
|
24324
24383
|
* "code": null,
|
|
24325
|
-
* "message": "Only the application owner may change this list. An organization's own administrator can read it, not change it
|
|
24384
|
+
* "message": "Only the application owner may change this list. An organization's own administrator can read it, not change it, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
|
|
24326
24385
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
24327
24386
|
* "path": "/api/v1/organizations/{id}/directory/grantable-roles",
|
|
24328
24387
|
* "method": "PUT"
|
|
@@ -26553,7 +26612,7 @@ interface operations {
|
|
|
26553
26612
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
26554
26613
|
};
|
|
26555
26614
|
};
|
|
26556
|
-
/** @description
|
|
26615
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
|
|
26557
26616
|
403: {
|
|
26558
26617
|
headers: {
|
|
26559
26618
|
[name: string]: unknown;
|
|
@@ -26564,7 +26623,7 @@ interface operations {
|
|
|
26564
26623
|
* "error": {
|
|
26565
26624
|
* "statusCode": 403,
|
|
26566
26625
|
* "code": null,
|
|
26567
|
-
* "message": "
|
|
26626
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
|
|
26568
26627
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
26569
26628
|
* "path": "/api/v1/organizations/{id}/directory/groups",
|
|
26570
26629
|
* "method": "GET"
|
|
@@ -26669,7 +26728,7 @@ interface operations {
|
|
|
26669
26728
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
26670
26729
|
};
|
|
26671
26730
|
};
|
|
26672
|
-
/** @description
|
|
26731
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
|
|
26673
26732
|
403: {
|
|
26674
26733
|
headers: {
|
|
26675
26734
|
[name: string]: unknown;
|
|
@@ -26680,7 +26739,7 @@ interface operations {
|
|
|
26680
26739
|
* "error": {
|
|
26681
26740
|
* "statusCode": 403,
|
|
26682
26741
|
* "code": null,
|
|
26683
|
-
* "message": "
|
|
26742
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
|
|
26684
26743
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
26685
26744
|
* "path": "/api/v1/organizations/{id}/directory/groups",
|
|
26686
26745
|
* "method": "GET"
|
|
@@ -26802,7 +26861,7 @@ interface operations {
|
|
|
26802
26861
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
26803
26862
|
};
|
|
26804
26863
|
};
|
|
26805
|
-
/** @description
|
|
26864
|
+
/** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
|
|
26806
26865
|
403: {
|
|
26807
26866
|
headers: {
|
|
26808
26867
|
[name: string]: unknown;
|
|
@@ -26813,7 +26872,7 @@ interface operations {
|
|
|
26813
26872
|
* "error": {
|
|
26814
26873
|
* "statusCode": 403,
|
|
26815
26874
|
* "code": null,
|
|
26816
|
-
* "message": "
|
|
26875
|
+
* "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
|
|
26817
26876
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
26818
26877
|
* "path": "/api/v1/organizations/{id}/directory/groups",
|
|
26819
26878
|
* "method": "GET"
|
|
@@ -34006,7 +34065,7 @@ interface operations {
|
|
|
34006
34065
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
34007
34066
|
};
|
|
34008
34067
|
};
|
|
34009
|
-
/** @description The caller does not hold `hierarchy.manage
|
|
34068
|
+
/** @description The caller does not hold `hierarchy.manage` */
|
|
34010
34069
|
403: {
|
|
34011
34070
|
headers: {
|
|
34012
34071
|
[name: string]: unknown;
|
|
@@ -34017,7 +34076,7 @@ interface operations {
|
|
|
34017
34076
|
* "error": {
|
|
34018
34077
|
* "statusCode": 403,
|
|
34019
34078
|
* "code": null,
|
|
34020
|
-
* "message": "The caller does not hold `hierarchy.manage
|
|
34079
|
+
* "message": "The caller does not hold `hierarchy.manage`",
|
|
34021
34080
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
34022
34081
|
* "path": "/api/v1/access-model/organizations",
|
|
34023
34082
|
* "method": "PUT"
|
|
@@ -38284,7 +38343,7 @@ interface operations {
|
|
|
38284
38343
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
38285
38344
|
};
|
|
38286
38345
|
};
|
|
38287
|
-
/** @description An API key's scopes do not cover every capability the role carries (`admin_role.capability_beyond_key`, `error.data.capabilities` naming them), or the caller lacks the permission this operation checks */
|
|
38346
|
+
/** @description An API key's scopes, or a bounded MCP client's approval, do not cover every capability the role carries (`admin_role.capability_beyond_key`, `admin_role.capability_beyond_mcp_grant`, `error.data.capabilities` naming them), or the caller lacks the permission this operation checks */
|
|
38288
38347
|
403: {
|
|
38289
38348
|
headers: {
|
|
38290
38349
|
[name: string]: unknown;
|
|
@@ -38295,7 +38354,7 @@ interface operations {
|
|
|
38295
38354
|
* "error": {
|
|
38296
38355
|
* "statusCode": 403,
|
|
38297
38356
|
* "code": null,
|
|
38298
|
-
* "message": "An API key's scopes do not cover every capability the role carries (`admin_role.capability_beyond_key`, `error.data.capabilities` naming them), or the caller lacks the permission this operation checks",
|
|
38357
|
+
* "message": "An API key's scopes, or a bounded MCP client's approval, do not cover every capability the role carries (`admin_role.capability_beyond_key`, `admin_role.capability_beyond_mcp_grant`, `error.data.capabilities` naming them), or the caller lacks the permission this operation checks",
|
|
38299
38358
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
38300
38359
|
* "path": "/api/v1/admin-roles",
|
|
38301
38360
|
* "method": "POST"
|
|
@@ -38719,7 +38778,7 @@ interface operations {
|
|
|
38719
38778
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
38720
38779
|
};
|
|
38721
38780
|
};
|
|
38722
|
-
/** @description The role is a system administrator role, which cannot be modified, or an API key's scopes do not cover every capability the role carries or would carry (`admin_role.capability_beyond_key`), or the caller lacks the permission this operation checks */
|
|
38781
|
+
/** @description The role is a system administrator role, which cannot be modified, or an API key's scopes, or a bounded MCP client's approval, do not cover every capability the role carries or would carry (`admin_role.capability_beyond_key`, `admin_role.capability_beyond_mcp_grant`), or the caller lacks the permission this operation checks */
|
|
38723
38782
|
403: {
|
|
38724
38783
|
headers: {
|
|
38725
38784
|
[name: string]: unknown;
|
|
@@ -38730,7 +38789,7 @@ interface operations {
|
|
|
38730
38789
|
* "error": {
|
|
38731
38790
|
* "statusCode": 403,
|
|
38732
38791
|
* "code": null,
|
|
38733
|
-
* "message": "The role is a system administrator role, which cannot be modified, or an API key's scopes do not cover every capability the role carries or would carry (`admin_role.capability_beyond_key`), or the caller lacks the permission this operation checks",
|
|
38792
|
+
* "message": "The role is a system administrator role, which cannot be modified, or an API key's scopes, or a bounded MCP client's approval, do not cover every capability the role carries or would carry (`admin_role.capability_beyond_key`, `admin_role.capability_beyond_mcp_grant`), or the caller lacks the permission this operation checks",
|
|
38734
38793
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
38735
38794
|
* "path": "/api/v1/admin-roles/{adminRoleId}",
|
|
38736
38795
|
* "method": "PATCH"
|
|
@@ -38963,7 +39022,7 @@ interface operations {
|
|
|
38963
39022
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
38964
39023
|
};
|
|
38965
39024
|
};
|
|
38966
|
-
/** @description An API key's scopes do not cover every capability the role carries (`admin_role.capability_beyond_key`, `error.data.capabilities` naming them), or the caller lacks the permission this operation checks */
|
|
39025
|
+
/** @description An API key's scopes, or a bounded MCP client's approval, do not cover every capability the role carries (`admin_role.capability_beyond_key`, `admin_role.capability_beyond_mcp_grant`, `error.data.capabilities` naming them), or the caller lacks the permission this operation checks */
|
|
38967
39026
|
403: {
|
|
38968
39027
|
headers: {
|
|
38969
39028
|
[name: string]: unknown;
|
|
@@ -38974,7 +39033,7 @@ interface operations {
|
|
|
38974
39033
|
* "error": {
|
|
38975
39034
|
* "statusCode": 403,
|
|
38976
39035
|
* "code": null,
|
|
38977
|
-
* "message": "An API key's scopes do not cover every capability the role carries (`admin_role.capability_beyond_key`, `error.data.capabilities` naming them), or the caller lacks the permission this operation checks",
|
|
39036
|
+
* "message": "An API key's scopes, or a bounded MCP client's approval, do not cover every capability the role carries (`admin_role.capability_beyond_key`, `admin_role.capability_beyond_mcp_grant`, `error.data.capabilities` naming them), or the caller lacks the permission this operation checks",
|
|
38978
39037
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
38979
39038
|
* "path": "/api/v1/admin-roles/{adminRoleId}/grantable-roles",
|
|
38980
39039
|
* "method": "PUT"
|
|
@@ -39176,7 +39235,7 @@ interface operations {
|
|
|
39176
39235
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
39177
39236
|
};
|
|
39178
39237
|
};
|
|
39179
|
-
/** @description An API key's scopes do not cover every capability the role carries (`admin_role.capability_beyond_key`, `error.data.capabilities` naming them), or the caller lacks the permission this operation checks */
|
|
39238
|
+
/** @description An API key's scopes, or a bounded MCP client's approval, do not cover every capability the role carries (`admin_role.capability_beyond_key`, `admin_role.capability_beyond_mcp_grant`, `error.data.capabilities` naming them), or the caller lacks the permission this operation checks */
|
|
39180
39239
|
403: {
|
|
39181
39240
|
headers: {
|
|
39182
39241
|
[name: string]: unknown;
|
|
@@ -39187,7 +39246,7 @@ interface operations {
|
|
|
39187
39246
|
* "error": {
|
|
39188
39247
|
* "statusCode": 403,
|
|
39189
39248
|
* "code": null,
|
|
39190
|
-
* "message": "An API key's scopes do not cover every capability the role carries (`admin_role.capability_beyond_key`, `error.data.capabilities` naming them), or the caller lacks the permission this operation checks",
|
|
39249
|
+
* "message": "An API key's scopes, or a bounded MCP client's approval, do not cover every capability the role carries (`admin_role.capability_beyond_key`, `admin_role.capability_beyond_mcp_grant`, `error.data.capabilities` naming them), or the caller lacks the permission this operation checks",
|
|
39191
39250
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
39192
39251
|
* "path": "/api/v1/admin-assignments",
|
|
39193
39252
|
* "method": "POST"
|
|
@@ -40659,7 +40718,7 @@ interface operations {
|
|
|
40659
40718
|
};
|
|
40660
40719
|
};
|
|
40661
40720
|
};
|
|
40662
|
-
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range, `backchannel_logout_uri` names an address Canopy's servers will not call, `initiate_login_uri` is malformed or not `https` (loopback hosts excepted), `scopes` names a scope Canopy does not issue (`oauth.client_scope_unknown`), a machine client names an `organization_node_id` that is not a live organization of this Environment (`oauth.client_organization_invalid`), takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`) or is asked to be public (`oauth.machine_client_public_invalid`), a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`), or a confidential client registers a private-use scheme redirect (`oauth.redirect_uri_not_allowed_for_client`); 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 */
|
|
40721
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range, `backchannel_logout_uri` names an address Canopy's servers will not call, `initiate_login_uri` is malformed or not `https` (loopback hosts excepted), `scopes` names a scope Canopy does not issue (`oauth.client_scope_unknown`), a machine client names an `organization_node_id` that is not a live organization of this Environment (`oauth.client_organization_invalid`), takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`) or is asked to be public (`oauth.machine_client_public_invalid`), a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`) or `token_exchange` (`oauth.web_client_token_exchange_invalid`), or a confidential client registers a private-use scheme redirect (`oauth.redirect_uri_not_allowed_for_client`); 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 */
|
|
40663
40722
|
400: {
|
|
40664
40723
|
headers: {
|
|
40665
40724
|
[name: string]: unknown;
|
|
@@ -40670,7 +40729,7 @@ interface operations {
|
|
|
40670
40729
|
* "error": {
|
|
40671
40730
|
* "statusCode": 400,
|
|
40672
40731
|
* "code": null,
|
|
40673
|
-
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range, `backchannel_logout_uri` names an address Canopy's servers will not call, `initiate_login_uri` is malformed or not `https` (loopback hosts excepted), `scopes` names a scope Canopy does not issue (`oauth.client_scope_unknown`), a machine client names an `organization_node_id` that is not a live organization of this Environment (`oauth.client_organization_invalid`), takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`) or is asked to be public (`oauth.machine_client_public_invalid`), a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`), or a confidential client registers a private-use scheme redirect (`oauth.redirect_uri_not_allowed_for_client`); 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",
|
|
40732
|
+
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range, `backchannel_logout_uri` names an address Canopy's servers will not call, `initiate_login_uri` is malformed or not `https` (loopback hosts excepted), `scopes` names a scope Canopy does not issue (`oauth.client_scope_unknown`), a machine client names an `organization_node_id` that is not a live organization of this Environment (`oauth.client_organization_invalid`), takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`) or is asked to be public (`oauth.machine_client_public_invalid`), a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`) or `token_exchange` (`oauth.web_client_token_exchange_invalid`), or a confidential client registers a private-use scheme redirect (`oauth.redirect_uri_not_allowed_for_client`); 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",
|
|
40674
40733
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
40675
40734
|
* "path": "/api/v1/oauth-clients",
|
|
40676
40735
|
* "method": "POST"
|
|
@@ -41108,7 +41167,7 @@ interface operations {
|
|
|
41108
41167
|
};
|
|
41109
41168
|
};
|
|
41110
41169
|
};
|
|
41111
|
-
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range, `backchannel_logout_uri` names an address Canopy's servers will not call, `initiate_login_uri` is malformed or not `https` (loopback hosts excepted), `scopes` names a scope Canopy does not issue (`oauth.client_scope_unknown`), a machine client names an `organization_node_id` that is not a live organization of this Environment (`oauth.client_organization_invalid`), takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`) or is asked to be public (`oauth.machine_client_public_invalid`), a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`), or a confidential client registers a private-use scheme redirect (`oauth.redirect_uri_not_allowed_for_client`); 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`) */
|
|
41170
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range, `backchannel_logout_uri` names an address Canopy's servers will not call, `initiate_login_uri` is malformed or not `https` (loopback hosts excepted), `scopes` names a scope Canopy does not issue (`oauth.client_scope_unknown`), a machine client names an `organization_node_id` that is not a live organization of this Environment (`oauth.client_organization_invalid`), takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`) or is asked to be public (`oauth.machine_client_public_invalid`), a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`) or `token_exchange` (`oauth.web_client_token_exchange_invalid`), or a confidential client registers a private-use scheme redirect (`oauth.redirect_uri_not_allowed_for_client`); 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`) */
|
|
41112
41171
|
400: {
|
|
41113
41172
|
headers: {
|
|
41114
41173
|
[name: string]: unknown;
|
|
@@ -41119,7 +41178,7 @@ interface operations {
|
|
|
41119
41178
|
* "error": {
|
|
41120
41179
|
* "statusCode": 400,
|
|
41121
41180
|
* "code": null,
|
|
41122
|
-
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range, `backchannel_logout_uri` names an address Canopy's servers will not call, `initiate_login_uri` is malformed or not `https` (loopback hosts excepted), `scopes` names a scope Canopy does not issue (`oauth.client_scope_unknown`), a machine client names an `organization_node_id` that is not a live organization of this Environment (`oauth.client_organization_invalid`), takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`) or is asked to be public (`oauth.machine_client_public_invalid`), a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`), or a confidential client registers a private-use scheme redirect (`oauth.redirect_uri_not_allowed_for_client`); 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`)",
|
|
41181
|
+
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range, `backchannel_logout_uri` names an address Canopy's servers will not call, `initiate_login_uri` is malformed or not `https` (loopback hosts excepted), `scopes` names a scope Canopy does not issue (`oauth.client_scope_unknown`), a machine client names an `organization_node_id` that is not a live organization of this Environment (`oauth.client_organization_invalid`), takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`) or is asked to be public (`oauth.machine_client_public_invalid`), a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`) or `token_exchange` (`oauth.web_client_token_exchange_invalid`), or a confidential client registers a private-use scheme redirect (`oauth.redirect_uri_not_allowed_for_client`); 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`)",
|
|
41123
41182
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
41124
41183
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
41125
41184
|
* "method": "PATCH"
|
|
@@ -42191,7 +42250,7 @@ interface operations {
|
|
|
42191
42250
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
42192
42251
|
};
|
|
42193
42252
|
};
|
|
42194
|
-
/** @description The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key asking for more than it holds: `full_access`, or a scope outside its own (`api_key.access_exceeds_caller`) */
|
|
42253
|
+
/** @description The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key asking for more than it holds: `full_access`, or a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities asking for `full_access` or a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`) */
|
|
42195
42254
|
403: {
|
|
42196
42255
|
headers: {
|
|
42197
42256
|
[name: string]: unknown;
|
|
@@ -42202,7 +42261,7 @@ interface operations {
|
|
|
42202
42261
|
* "error": {
|
|
42203
42262
|
* "statusCode": 403,
|
|
42204
42263
|
* "code": null,
|
|
42205
|
-
* "message": "The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key asking for more than it holds: `full_access`, or a scope outside its own (`api_key.access_exceeds_caller`)",
|
|
42264
|
+
* "message": "The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key asking for more than it holds: `full_access`, or a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities asking for `full_access` or a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`)",
|
|
42206
42265
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
42207
42266
|
* "path": "/api/v1/api-keys",
|
|
42208
42267
|
* "method": "POST"
|
|
@@ -42340,7 +42399,7 @@ interface operations {
|
|
|
42340
42399
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
42341
42400
|
};
|
|
42342
42401
|
};
|
|
42343
|
-
/** @description The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`) */
|
|
42402
|
+
/** @description The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities acting on a `full_access` key or one holding a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`) */
|
|
42344
42403
|
403: {
|
|
42345
42404
|
headers: {
|
|
42346
42405
|
[name: string]: unknown;
|
|
@@ -42351,7 +42410,7 @@ interface operations {
|
|
|
42351
42410
|
* "error": {
|
|
42352
42411
|
* "statusCode": 403,
|
|
42353
42412
|
* "code": null,
|
|
42354
|
-
* "message": "The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`)",
|
|
42413
|
+
* "message": "The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities acting on a `full_access` key or one holding a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`)",
|
|
42355
42414
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
42356
42415
|
* "path": "/api/v1/api-keys/{id}",
|
|
42357
42416
|
* "method": "DELETE"
|
|
@@ -42455,7 +42514,7 @@ interface operations {
|
|
|
42455
42514
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
42456
42515
|
};
|
|
42457
42516
|
};
|
|
42458
|
-
/** @description The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`) */
|
|
42517
|
+
/** @description The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities acting on a `full_access` key or one holding a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`) */
|
|
42459
42518
|
403: {
|
|
42460
42519
|
headers: {
|
|
42461
42520
|
[name: string]: unknown;
|
|
@@ -42466,7 +42525,7 @@ interface operations {
|
|
|
42466
42525
|
* "error": {
|
|
42467
42526
|
* "statusCode": 403,
|
|
42468
42527
|
* "code": null,
|
|
42469
|
-
* "message": "The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`)",
|
|
42528
|
+
* "message": "The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities acting on a `full_access` key or one holding a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`)",
|
|
42470
42529
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
42471
42530
|
* "path": "/api/v1/api-keys/{id}",
|
|
42472
42531
|
* "method": "PATCH"
|
|
@@ -42566,7 +42625,7 @@ interface operations {
|
|
|
42566
42625
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
42567
42626
|
};
|
|
42568
42627
|
};
|
|
42569
|
-
/** @description The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`) */
|
|
42628
|
+
/** @description The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities acting on a `full_access` key or one holding a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`) */
|
|
42570
42629
|
403: {
|
|
42571
42630
|
headers: {
|
|
42572
42631
|
[name: string]: unknown;
|
|
@@ -42577,7 +42636,7 @@ interface operations {
|
|
|
42577
42636
|
* "error": {
|
|
42578
42637
|
* "statusCode": 403,
|
|
42579
42638
|
* "code": null,
|
|
42580
|
-
* "message": "The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`)",
|
|
42639
|
+
* "message": "The caller lacks `api_key.manage` (a scoped API key without that scope, or an admin without the Account capability that covers it), or is a scoped API key acting on a key with more access than its own: a `full_access` key, or one holding a scope outside its own (`api_key.access_exceeds_caller`), or is an MCP client whose approval names only some capabilities acting on a `full_access` key or one holding a scope that approval does not cover (`api_key.access_exceeds_mcp_grant`)",
|
|
42581
42640
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
42582
42641
|
* "path": "/api/v1/api-keys/{id}/rotate-secret",
|
|
42583
42642
|
* "method": "POST"
|
|
@@ -43946,7 +44005,7 @@ interface operations {
|
|
|
43946
44005
|
};
|
|
43947
44006
|
requestBody?: never;
|
|
43948
44007
|
responses: {
|
|
43949
|
-
/** @description The plan's feature map alone (`sso`, `scim`, `audit_destinations
|
|
44008
|
+
/** @description The plan's feature map alone (`sso`, `scim`, `audit_destinations`), honoring the effective grace-period plan and Enterprise overrides. Membership-gated rather than `billing.view`: every member's dashboard needs it to decide which surfaces to render. */
|
|
43950
44009
|
200: {
|
|
43951
44010
|
headers: {
|
|
43952
44011
|
[name: string]: unknown;
|
|
@@ -44031,7 +44090,7 @@ interface operations {
|
|
|
44031
44090
|
};
|
|
44032
44091
|
requestBody?: never;
|
|
44033
44092
|
responses: {
|
|
44034
|
-
/** @description The
|
|
44093
|
+
/** @description The monthly and annual prices of Starter and Pro as Stripe holds them, plus the annual saving derived from each pair. Read by the upgrade dialog, which offers both cycles to an Account that has no subscription yet and so has no per-account price to read. Enterprise is absent — those are contracted individually and never bought through this flow. */
|
|
44035
44094
|
200: {
|
|
44036
44095
|
headers: {
|
|
44037
44096
|
[name: string]: unknown;
|
|
@@ -44940,8 +44999,11 @@ declare const DEFAULT_MAX_NODES = 10000;
|
|
|
44940
44999
|
* - `denied`: a deny refuses the permission, at the node or above it, or,
|
|
44941
45000
|
* for `app_wide`, over every grant in effect. No grant beneath a deny
|
|
44942
45001
|
* undoes it.
|
|
45002
|
+
* - `acting_client_not_granted`: the identity holds the permission, but the
|
|
45003
|
+
* machine client acting for it (`acting_client_id`) does not. A delegated
|
|
45004
|
+
* token reaches only what both hold.
|
|
44943
45005
|
*/
|
|
44944
|
-
type LocalDenialReason = "permission_not_held" | "outside_grants" | "expired" | "not_yet_effective" | "node_missing" | "denied";
|
|
45006
|
+
type LocalDenialReason = "permission_not_held" | "outside_grants" | "expired" | "not_yet_effective" | "node_missing" | "denied" | "acting_client_not_granted";
|
|
44945
45007
|
/** The answer to a check: the verdict, and why when it is no. */
|
|
44946
45008
|
interface LocalDecision {
|
|
44947
45009
|
allowed: boolean;
|
|
@@ -45023,6 +45085,13 @@ interface LocalAuthorizationQuery {
|
|
|
45023
45085
|
* the verified token's `type` claim, never off the request.
|
|
45024
45086
|
*/
|
|
45025
45087
|
principal_type?: PrincipalType;
|
|
45088
|
+
/**
|
|
45089
|
+
* The machine client acting for the identity, from a verified `delegated`
|
|
45090
|
+
* token's `act.sub` (its `client_id`; see `delegation()`). When set, the
|
|
45091
|
+
* check allows only when the identity and the client both hold the
|
|
45092
|
+
* permission there. Read it off the verified token, never off the request.
|
|
45093
|
+
*/
|
|
45094
|
+
acting_client_id?: string;
|
|
45026
45095
|
permission: string;
|
|
45027
45096
|
/** Defaults to `node`, which is the strict question. */
|
|
45028
45097
|
scope?: "node" | "app_wide";
|
|
@@ -45219,6 +45288,7 @@ declare class LocalAuthorizer {
|
|
|
45219
45288
|
*/
|
|
45220
45289
|
permissionsAtMany(identityId: string, nodeIds: readonly string[], subject?: SubjectOptions): Promise<Map<string, string[]>>;
|
|
45221
45290
|
private decide;
|
|
45291
|
+
private decideFor;
|
|
45222
45292
|
/**
|
|
45223
45293
|
* Whether one of the grants stands clear of every deny root: none at its
|
|
45224
45294
|
* node or above it. A grant with a deny strictly beneath it still reaches
|
|
@@ -45525,6 +45595,77 @@ declare function tokenErrorStatus(error: unknown): FailureStatus;
|
|
|
45525
45595
|
*/
|
|
45526
45596
|
declare function authorizationErrorStatus(error: unknown): FailureStatus;
|
|
45527
45597
|
|
|
45598
|
+
/** The RFC 8693 grant a machine client exchanges a person's token with. */
|
|
45599
|
+
declare const TOKEN_EXCHANGE_GRANT = "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
45600
|
+
/** The only token type Canopy exchanges, and the only one it issues. */
|
|
45601
|
+
declare const ACCESS_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:access_token";
|
|
45602
|
+
interface ExchangeTokenOptions {
|
|
45603
|
+
/** The machine client's `client_id`. Its token exchange switch must be on. */
|
|
45604
|
+
clientId: string;
|
|
45605
|
+
/** The machine client's secret. Keep it on the server; never in a browser. */
|
|
45606
|
+
clientSecret: string;
|
|
45607
|
+
/**
|
|
45608
|
+
* The signed-in person's access token, issued by the same Environment. The
|
|
45609
|
+
* person must still be signed in and a member, and, for a client pinned to
|
|
45610
|
+
* an organization, inside that organization.
|
|
45611
|
+
*/
|
|
45612
|
+
subjectToken: string;
|
|
45613
|
+
/**
|
|
45614
|
+
* The API the new token is for: the Environment's default audience when
|
|
45615
|
+
* omitted, or one in the client's allowed audiences.
|
|
45616
|
+
*/
|
|
45617
|
+
audience?: string;
|
|
45618
|
+
/** Space-separated scopes, from the client's own. */
|
|
45619
|
+
scope?: string;
|
|
45620
|
+
/**
|
|
45621
|
+
* The origin that serves the Environment's token endpoint: Canopy's hosted
|
|
45622
|
+
* origin (or `CANOPY_BASE_URL`) by default, or your custom auth domain
|
|
45623
|
+
* when the Environment has one.
|
|
45624
|
+
*/
|
|
45625
|
+
baseUrl?: string;
|
|
45626
|
+
signal?: AbortSignal;
|
|
45627
|
+
/** Injectable for tests and for runtimes with a non-global fetch. */
|
|
45628
|
+
fetch?: typeof globalThis.fetch;
|
|
45629
|
+
}
|
|
45630
|
+
/** A delegated token, ready to send as `Authorization: Bearer`. */
|
|
45631
|
+
interface ExchangedToken {
|
|
45632
|
+
accessToken: string;
|
|
45633
|
+
tokenType: "Bearer";
|
|
45634
|
+
/** Seconds until it expires: the machine-token lifetime or the person's remaining time, whichever is shorter. */
|
|
45635
|
+
expiresIn: number;
|
|
45636
|
+
/** The scopes it was granted, space-separated, when any were. */
|
|
45637
|
+
scope?: string;
|
|
45638
|
+
/** Always `urn:ietf:params:oauth:token-type:access_token`. */
|
|
45639
|
+
issuedTokenType: string;
|
|
45640
|
+
}
|
|
45641
|
+
/**
|
|
45642
|
+
* Exchange a signed-in person's access token for one that lets a machine
|
|
45643
|
+
* client act for them (RFC 8693 token exchange).
|
|
45644
|
+
*
|
|
45645
|
+
* The token that comes back is `delegated`: `sub` is the person, `act.sub`
|
|
45646
|
+
* the client, and it reaches only what both hold. It has no refresh token;
|
|
45647
|
+
* exchange again when it expires. Canopy's own API refuses it: it is for your
|
|
45648
|
+
* API, which verifies it with `alsoAllow: ["delegated"]` and authorizes it
|
|
45649
|
+
* with both principals (`acting_client_id`).
|
|
45650
|
+
*
|
|
45651
|
+
* ```ts
|
|
45652
|
+
* const { accessToken } = await exchangeToken({
|
|
45653
|
+
* clientId: process.env.AGENT_CLIENT_ID!,
|
|
45654
|
+
* clientSecret: process.env.AGENT_CLIENT_SECRET!,
|
|
45655
|
+
* subjectToken: personAccessToken,
|
|
45656
|
+
* audience: "https://api.example.com",
|
|
45657
|
+
* });
|
|
45658
|
+
* ```
|
|
45659
|
+
*
|
|
45660
|
+
* A refusal throws `CanopyError` with the OAuth error as its code
|
|
45661
|
+
* (`oauth.invalid_grant` when the person signed out or is no longer a
|
|
45662
|
+
* member, `oauth.unauthorized_client` when the client's token exchange
|
|
45663
|
+
* switch is off, `oauth.invalid_request` with `retryAfterMs` when it asked
|
|
45664
|
+
* too often). A request that never got an answer throws
|
|
45665
|
+
* `CanopyConnectionError`.
|
|
45666
|
+
*/
|
|
45667
|
+
declare function exchangeToken(options: ExchangeTokenOptions): Promise<ExchangedToken>;
|
|
45668
|
+
|
|
45528
45669
|
interface TokenVerifierOptions {
|
|
45529
45670
|
/**
|
|
45530
45671
|
* The Environment whose tokens are accepted. Every Environment is its own
|
|
@@ -45556,12 +45697,13 @@ interface TokenVerifierOptions {
|
|
|
45556
45697
|
*/
|
|
45557
45698
|
audience?: string;
|
|
45558
45699
|
/**
|
|
45559
|
-
* The audience a machine client's
|
|
45560
|
-
* identifier your API answers to
|
|
45561
|
-
*
|
|
45700
|
+
* The audience a machine client's token must name, `service` or
|
|
45701
|
+
* `delegated`: the identifier your API answers to
|
|
45702
|
+
* (`https://api.example.com`), the one the client asked for with
|
|
45703
|
+
* `audience` or the Environment's default audience.
|
|
45562
45704
|
*
|
|
45563
|
-
* A
|
|
45564
|
-
* client, so `audience` never applies to it. Admitting
|
|
45705
|
+
* A machine client's token always carries `aud`, and it names the API
|
|
45706
|
+
* rather than a client, so `audience` never applies to it. Admitting one
|
|
45565
45707
|
* without this throws `token.audience_unverified`, so a token minted for
|
|
45566
45708
|
* another of your APIs is never accepted by accident.
|
|
45567
45709
|
*/
|
|
@@ -45599,7 +45741,8 @@ interface TokenVerifierOptions {
|
|
|
45599
45741
|
* `["identity"]`: the people who sign in to your application.
|
|
45600
45742
|
*
|
|
45601
45743
|
* Canopy also signs tokens for machine clients (`service`, obtained with
|
|
45602
|
-
* the `client_credentials` grant
|
|
45744
|
+
* the `client_credentials` grant, and `delegated`, a client acting for a
|
|
45745
|
+
* person after a token exchange), its own administrators (`user`), its
|
|
45603
45746
|
* staff (`platform`) and, for some flows, API keys (`api_key`), all with the
|
|
45604
45747
|
* same keys and issuer. A backend that serves your end users should accept
|
|
45605
45748
|
* none of them, so they are refused unless you name them here, or admit
|
|
@@ -45621,16 +45764,27 @@ interface TokenVerifierOptions {
|
|
|
45621
45764
|
interface CanopyTokenClaims {
|
|
45622
45765
|
/**
|
|
45623
45766
|
* The principal this token acts as: an identity's id, or, on a `service`
|
|
45624
|
-
* token, the machine client's `client_id`.
|
|
45767
|
+
* token, the machine client's `client_id`. On a `delegated` token it is
|
|
45768
|
+
* the person the client acts for; the client is `act.sub`.
|
|
45625
45769
|
*/
|
|
45626
45770
|
sub: string;
|
|
45627
|
-
/** Which kind of principal `sub` is. */
|
|
45628
|
-
type: "user" | "identity" | "service" | "api_key" | "platform";
|
|
45771
|
+
/** Which kind of principal `sub` is, or `delegated` for a client acting for one. */
|
|
45772
|
+
type: "user" | "identity" | "service" | "delegated" | "api_key" | "platform";
|
|
45773
|
+
/**
|
|
45774
|
+
* How a machine client's token was obtained: `client_credentials` on a
|
|
45775
|
+
* `service` token, `token-exchange` on a `delegated` one. Absent on every
|
|
45776
|
+
* other type.
|
|
45777
|
+
*/
|
|
45778
|
+
gty?: "client_credentials" | "token-exchange";
|
|
45629
45779
|
/**
|
|
45630
|
-
*
|
|
45631
|
-
*
|
|
45780
|
+
* On a `delegated` token, the machine client acting for `sub`: its
|
|
45781
|
+
* `client_id`. A delegated token reaches only what both hold, so authorize
|
|
45782
|
+
* it with both (`acting_client_id` on an evaluate); read the pair through
|
|
45783
|
+
* {@link delegation}.
|
|
45632
45784
|
*/
|
|
45633
|
-
|
|
45785
|
+
act?: {
|
|
45786
|
+
sub: string;
|
|
45787
|
+
};
|
|
45634
45788
|
/** The OAuth client the token was issued to; on a `service` token, `sub`. */
|
|
45635
45789
|
client_id?: string;
|
|
45636
45790
|
iss: string;
|
|
@@ -45749,6 +45903,34 @@ interface CanopyOrgContext {
|
|
|
45749
45903
|
* ```
|
|
45750
45904
|
*/
|
|
45751
45905
|
declare function orgContext(claims: CanopyTokenClaims): CanopyOrgContext | null;
|
|
45906
|
+
/** Who a `delegated` token names: the person, and the client acting for them. */
|
|
45907
|
+
interface CanopyDelegation {
|
|
45908
|
+
/** The identity the client acts for: the token's `sub`. */
|
|
45909
|
+
identityId: string;
|
|
45910
|
+
/** The machine client acting for them: its `client_id`, the token's `act.sub`. */
|
|
45911
|
+
actingClientId: string;
|
|
45912
|
+
}
|
|
45913
|
+
/**
|
|
45914
|
+
* The two principals a verified `delegated` token names, or `null` for any
|
|
45915
|
+
* other token.
|
|
45916
|
+
*
|
|
45917
|
+
* A machine client obtains a delegated token by exchanging a signed-in
|
|
45918
|
+
* person's access token. It reaches only what both hold, so authorize it with
|
|
45919
|
+
* both: pass `actingClientId` as `acting_client_id` to
|
|
45920
|
+
* {@link LocalAuthorizer.evaluate} or to the API's evaluate.
|
|
45921
|
+
*
|
|
45922
|
+
* ```ts
|
|
45923
|
+
* const claims = await verifier.verify(token, { alsoAllow: ["delegated"] });
|
|
45924
|
+
* const acting = delegation(claims);
|
|
45925
|
+
* const decision = await authorizer.evaluate({
|
|
45926
|
+
* identity_id: claims.sub,
|
|
45927
|
+
* permission: "deals.read",
|
|
45928
|
+
* node_id: dealNodeId,
|
|
45929
|
+
* ...(acting ? { acting_client_id: acting.actingClientId } : {}),
|
|
45930
|
+
* });
|
|
45931
|
+
* ```
|
|
45932
|
+
*/
|
|
45933
|
+
declare function delegation(claims: CanopyTokenClaims): CanopyDelegation | null;
|
|
45752
45934
|
declare class TokenVerifier {
|
|
45753
45935
|
private readonly issuer;
|
|
45754
45936
|
private readonly audience;
|
|
@@ -45795,8 +45977,9 @@ declare class TokenVerifier {
|
|
|
45795
45977
|
* ignoring it would accept a token minted for a different client. So it
|
|
45796
45978
|
* throws and names the option.
|
|
45797
45979
|
*
|
|
45798
|
-
* A
|
|
45799
|
-
* is held to `serviceAudience` alone,
|
|
45980
|
+
* A machine client's token (`service` or `delegated`) names the API it was
|
|
45981
|
+
* minted for, never a client, so it is held to `serviceAudience` alone,
|
|
45982
|
+
* which it must name.
|
|
45800
45983
|
*/
|
|
45801
45984
|
private assertAudience;
|
|
45802
45985
|
/**
|
|
@@ -45927,4 +46110,4 @@ declare const WEBHOOK_TIMESTAMP_TOLERANCE_SECONDS = 300;
|
|
|
45927
46110
|
*/
|
|
45928
46111
|
declare function verifyWebhookSignature(input: VerifyWebhookSignatureInput): Promise<boolean>;
|
|
45929
46112
|
|
|
45930
|
-
export { type AccessibleNodes, type AppliedChange, type AssignmentItem, Assignments, type AuthorizationChange, type CallOptions, Canopy, CanopyAuthorizerError, CanopyClient, type CanopyClientOptions, CanopyConnectionError, CanopyError, type CanopyErrorBody, type CanopyOrgContext, type CanopyTokenClaims, CanopyTokenError, type Collection, type ConcurrencyOptions, type ConditionalResult, type CursorPagination, DEFAULT_MAX_NODES, type FailureStatus, Identities, type IdentityAssignmentItem, type IdentityItem, type IdentitySessionItem, type InvalidatedSubject, type LocalAuthorizationQuery, LocalAuthorizer, type LocalAuthorizerOptions, type LocalAuthorizerStats, type LocalDecision, type LocalDecisionEvent, type LocalDenialReason, MAX_TTL_MS, type OffsetPagination, type OperationId, type OrganizationDirectoryGroupItem, type OrganizationInviteItem, type OrganizationItem, type OrganizationMemberItem, type OrganizationStaffActivityItem, Organizations, type PageFetcher, type PageParams, type PaginateOptions, type Pagination, Paginator, type PartialSuccess, type PermissionItem, Permissions, type PrincipalType, type QueryParams, type ReplayChangesOptions, type ReplayChangesResult, type RequestBody, type RequestOptions, type ResponseBody, type RoleItem, Roles, type Schema, type SubjectOptions, TokenVerifier, type TokenVerifierOptions, type VerifyCallOptions, type VerifyWebhookSignatureInput, WEBHOOK_TIMESTAMP_TOLERANCE_SECONDS, type WebhookDelivery, type WebhookEvent, type WebhookEventData, type WebhookEventName, type WebhookHeaders, authorizationErrorStatus, type components, isCanopyAuthorizerError, isCanopyConnectionError, isCanopyError, isCanopyTokenError, isCursorPagination, isWebhookEvent, type operations, orgContext, paginate, type paths, tokenErrorStatus, verifyWebhookSignature, withConcurrency };
|
|
46113
|
+
export { ACCESS_TOKEN_TYPE, type AccessibleNodes, type AppliedChange, type AssignmentItem, Assignments, type AuthorizationChange, type CallOptions, Canopy, CanopyAuthorizerError, CanopyClient, type CanopyClientOptions, CanopyConnectionError, type CanopyDelegation, CanopyError, type CanopyErrorBody, type CanopyOrgContext, type CanopyTokenClaims, CanopyTokenError, type Collection, type ConcurrencyOptions, type ConditionalResult, type CursorPagination, DEFAULT_MAX_NODES, type ExchangeTokenOptions, type ExchangedToken, type FailureStatus, Identities, type IdentityAssignmentItem, type IdentityItem, type IdentitySessionItem, type InvalidatedSubject, type LocalAuthorizationQuery, LocalAuthorizer, type LocalAuthorizerOptions, type LocalAuthorizerStats, type LocalDecision, type LocalDecisionEvent, type LocalDenialReason, MAX_TTL_MS, type OffsetPagination, type OperationId, type OrganizationDirectoryGroupItem, type OrganizationInviteItem, type OrganizationItem, type OrganizationMemberItem, type OrganizationStaffActivityItem, Organizations, type PageFetcher, type PageParams, type PaginateOptions, type Pagination, Paginator, type PartialSuccess, type PermissionItem, Permissions, type PrincipalType, type QueryParams, type ReplayChangesOptions, type ReplayChangesResult, type RequestBody, type RequestOptions, type ResponseBody, type RoleItem, Roles, type Schema, type SubjectOptions, TOKEN_EXCHANGE_GRANT, TokenVerifier, type TokenVerifierOptions, type VerifyCallOptions, type VerifyWebhookSignatureInput, WEBHOOK_TIMESTAMP_TOLERANCE_SECONDS, type WebhookDelivery, type WebhookEvent, type WebhookEventData, type WebhookEventName, type WebhookHeaders, authorizationErrorStatus, type components, delegation, exchangeToken, isCanopyAuthorizerError, isCanopyConnectionError, isCanopyError, isCanopyTokenError, isCursorPagination, isWebhookEvent, type operations, orgContext, paginate, type paths, tokenErrorStatus, verifyWebhookSignature, withConcurrency };
|