@canopy-io/node 0.13.0 → 0.14.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 +50 -3
- package/dist/index.cjs +81 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1065 -98
- package/dist/index.d.ts +1065 -98
- package/dist/index.js +81 -31
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1976,13 +1976,13 @@ interface paths {
|
|
|
1976
1976
|
};
|
|
1977
1977
|
/**
|
|
1978
1978
|
* List roles
|
|
1979
|
-
* @description Returns the roles defined for the active Application within the current Environment as an unpaginated `{ items }` collection, each enriched with a `permission_count`. By default only active roles are returned; pass `include_inactive=true` to include deactivated roles, and filter by `type=system` or `type=custom`. Requires the `rbac.view_roles` permission.
|
|
1979
|
+
* @description Returns the roles defined for the active Application within the current Environment as an unpaginated `{ items }` collection, each enriched with a `permission_count`, its `scope` and `organization_node_id`. By default only the Environment's own roles are returned, the ones assignable in every organization; `organization_id` lists one organization's own roles, `scope=available` with it what can be held inside that organization (its own and the Environment's), and `scope=all` every role. By default only active roles are returned; pass `include_inactive=true` to include deactivated roles, and filter by `type=system` or `type=custom`. An `organization_id` that is not a live organization returns `404`. Requires the `rbac.view_roles` permission.
|
|
1980
1980
|
*/
|
|
1981
1981
|
get: operations["ApiRolesController_listRoles"];
|
|
1982
1982
|
put?: never;
|
|
1983
1983
|
/**
|
|
1984
1984
|
* Create a custom role
|
|
1985
|
-
* @description Creates a custom role in the active Application for the current Environment from a `name` and optional `description`. The new role is always non-system and starts with no permissions — attach permission keys via the role-permissions endpoint. A name
|
|
1985
|
+
* @description Creates a custom role in the active Application for the current Environment from a `name` and optional `description`. Without `organization_id` it is an Environment role, assignable in every organization; with it, the role belongs to that organization and can be held only at its node or beneath it (`400 rbac.role_outside_organization` elsewhere). The new role is always non-system and starts with no permissions, or with a copy of `copy_from_role_id`'s (an Environment role, or one of the same organization) — otherwise attach permission keys via the role-permissions endpoint. A name already used in the same tier (the Environment's roles, or that organization's own) returns `409`. Requires the `rbac.manage_roles` permission and emits a `role.created` audit event.
|
|
1986
1986
|
*/
|
|
1987
1987
|
post: operations["ApiRolesController_createRole"];
|
|
1988
1988
|
delete?: never;
|
|
@@ -2450,7 +2450,7 @@ interface paths {
|
|
|
2450
2450
|
put?: never;
|
|
2451
2451
|
/**
|
|
2452
2452
|
* Register a new OAuth client
|
|
2453
|
-
* @description Registers a new confidential OAuth client in the current Environment with the given `name`, `redirect_uris`, and optional `scopes` (defaulting to `openid profile email`), each one of `openid`, `profile`, `email`, `org` and `permissions`; any other value is refused with `400` (`oauth.client_scope_unknown`). Generates the `client_id` and a `client_secret` that is bcrypt-hashed at rest; the raw secret is returned in this response only and is never retrievable again. Responds `201 Created`.
|
|
2453
|
+
* @description Registers a new confidential OAuth client in the current Environment with the given `name`, `redirect_uris`, and optional `scopes` (defaulting to `openid profile email`), each one of `openid`, `profile`, `email`, `org` and `permissions`; any other value is refused with `400` (`oauth.client_scope_unknown`). With `client_kind: machine` it registers a machine client instead: a principal of its own that holds roles (see the assignments routes) and obtains tokens for itself, with an optional `organization_node_id` (the one organization it acts in), optional `allowed_audiences` and the `permissions` scope, the `client_credentials` grant only and no redirect URIs; it counts toward the plan's machine-credential allowance (`409 plan_limit_exceeded`). Generates the `client_id` and a `client_secret` that is bcrypt-hashed at rest; the raw secret is returned in this response only and is never retrievable again. Responds `201 Created`.
|
|
2454
2454
|
*/
|
|
2455
2455
|
post: operations["ApiOAuthClientsController_create"];
|
|
2456
2456
|
delete?: never;
|
|
@@ -2527,6 +2527,74 @@ interface paths {
|
|
|
2527
2527
|
patch?: never;
|
|
2528
2528
|
trace?: never;
|
|
2529
2529
|
};
|
|
2530
|
+
"/api/v1/oauth-clients/{id}/assignments": {
|
|
2531
|
+
parameters: {
|
|
2532
|
+
query?: never;
|
|
2533
|
+
header?: never;
|
|
2534
|
+
path?: never;
|
|
2535
|
+
cookie?: never;
|
|
2536
|
+
};
|
|
2537
|
+
/**
|
|
2538
|
+
* List a machine client's role assignments
|
|
2539
|
+
* @description Returns one page of the machine client's role assignments in the current Environment, each with its role and node, searched by role or node name with `q` and sorted with the standard options. `id` is the client's `client_id`. A web client answers `400` (`oauth.client_not_machine`): only a machine client holds roles.
|
|
2540
|
+
*/
|
|
2541
|
+
get: operations["ApiOAuthClientsController_listAssignments"];
|
|
2542
|
+
put?: never;
|
|
2543
|
+
/**
|
|
2544
|
+
* Assign a role to a machine client at a node
|
|
2545
|
+
* @description Gives the machine client `role_id` at `node_id`, optionally for a window (`effective_from`, `effective_to`), through the same grant writer and grant ceiling every assignment passes: the caller must hold `rbac.manage_assignments` at the node and may only grant roles they are allowed to. A client pinned to an organization holds roles only at or beneath that organization's node (`409 oauth.client_outside_organization`). Responds `201 Created` with the assignment.
|
|
2546
|
+
*/
|
|
2547
|
+
post: operations["ApiOAuthClientsController_assignRole"];
|
|
2548
|
+
delete?: never;
|
|
2549
|
+
options?: never;
|
|
2550
|
+
head?: never;
|
|
2551
|
+
patch?: never;
|
|
2552
|
+
trace?: never;
|
|
2553
|
+
};
|
|
2554
|
+
"/api/v1/oauth-clients/{id}/assignments/{assignmentId}": {
|
|
2555
|
+
parameters: {
|
|
2556
|
+
query?: never;
|
|
2557
|
+
header?: never;
|
|
2558
|
+
path?: never;
|
|
2559
|
+
cookie?: never;
|
|
2560
|
+
};
|
|
2561
|
+
get?: never;
|
|
2562
|
+
put?: never;
|
|
2563
|
+
post?: never;
|
|
2564
|
+
/**
|
|
2565
|
+
* Remove a machine client's assignment
|
|
2566
|
+
* @description Takes one of the machine client's assignments away; an assignment held by anyone else reads as `404`. Responds `204 No Content`.
|
|
2567
|
+
*/
|
|
2568
|
+
delete: operations["ApiOAuthClientsController_removeAssignment"];
|
|
2569
|
+
options?: never;
|
|
2570
|
+
head?: never;
|
|
2571
|
+
/**
|
|
2572
|
+
* Change a machine client's assignment
|
|
2573
|
+
* @description Changes the role or the window of one of the machine client's assignments; an assignment held by anyone else reads as `404`. Send `If-Match` with the assignment's `version` to refuse a stale write (`409 assignment.version_mismatch`).
|
|
2574
|
+
*/
|
|
2575
|
+
patch: operations["ApiOAuthClientsController_updateAssignment"];
|
|
2576
|
+
trace?: never;
|
|
2577
|
+
};
|
|
2578
|
+
"/api/v1/oauth-clients/{id}/grants": {
|
|
2579
|
+
parameters: {
|
|
2580
|
+
query?: never;
|
|
2581
|
+
header?: never;
|
|
2582
|
+
path?: never;
|
|
2583
|
+
cookie?: never;
|
|
2584
|
+
};
|
|
2585
|
+
/**
|
|
2586
|
+
* Get where a machine client holds each permission
|
|
2587
|
+
* @description Returns one page of where the machine client holds each permission: `(permission, node_id)` pairs at the nodes its active roles were granted at, not expanded through descendants, with `model_version` beside the page so an SDK can cache and evaluate locally. `id` is the client's `client_id`, the `sub` of its tokens. A deactivated client answers an empty page. `include=windows` returns every assignment with its window instead of only those in effect now.
|
|
2588
|
+
*/
|
|
2589
|
+
get: operations["ApiOAuthClientsController_getGrants"];
|
|
2590
|
+
put?: never;
|
|
2591
|
+
post?: never;
|
|
2592
|
+
delete?: never;
|
|
2593
|
+
options?: never;
|
|
2594
|
+
head?: never;
|
|
2595
|
+
patch?: never;
|
|
2596
|
+
trace?: never;
|
|
2597
|
+
};
|
|
2530
2598
|
"/api/v1/api-keys": {
|
|
2531
2599
|
parameters: {
|
|
2532
2600
|
query?: never;
|
|
@@ -2910,9 +2978,16 @@ interface components {
|
|
|
2910
2978
|
};
|
|
2911
2979
|
AssignmentResponseDto: {
|
|
2912
2980
|
id: string;
|
|
2913
|
-
|
|
2981
|
+
/** @description The identity holding the role; null when a machine client holds it. */
|
|
2982
|
+
identity_id: string | null;
|
|
2983
|
+
/** @description The machine OAuth client holding the role; null when a person holds it. */
|
|
2984
|
+
oauth_client_id: string | null;
|
|
2914
2985
|
application_node_id: string;
|
|
2915
2986
|
role_id: string;
|
|
2987
|
+
/** @description The role's name, when the read loaded it. */
|
|
2988
|
+
role_name: string | null;
|
|
2989
|
+
/** @description The node's name, when the read loaded it. */
|
|
2990
|
+
node_name: string | null;
|
|
2916
2991
|
/** Format: date-time */
|
|
2917
2992
|
effective_from?: string | null;
|
|
2918
2993
|
/** Format: date-time */
|
|
@@ -3254,8 +3329,16 @@ interface components {
|
|
|
3254
3329
|
};
|
|
3255
3330
|
RoleResponseDto: {
|
|
3256
3331
|
id: string;
|
|
3257
|
-
application_id: string;
|
|
3258
3332
|
name: string;
|
|
3333
|
+
/**
|
|
3334
|
+
* @description `environment`: assignable in every organization. `organization`: belongs to the organization `organization_node_id` names and is held only inside it.
|
|
3335
|
+
* @enum {string}
|
|
3336
|
+
*/
|
|
3337
|
+
scope: "environment" | "organization";
|
|
3338
|
+
/** @description The organization this role belongs to; null for an Environment role. */
|
|
3339
|
+
organization_node_id?: string | null;
|
|
3340
|
+
/** @description The name of the organization this role belongs to. Populated on list responses; null for an Environment role. */
|
|
3341
|
+
organization_name?: string | null;
|
|
3259
3342
|
description?: string | null;
|
|
3260
3343
|
is_system_role: boolean;
|
|
3261
3344
|
system_key?: string | null;
|
|
@@ -3577,8 +3660,16 @@ interface components {
|
|
|
3577
3660
|
};
|
|
3578
3661
|
OrganizationRoleResponseDto: {
|
|
3579
3662
|
id: string;
|
|
3580
|
-
application_id: string;
|
|
3581
3663
|
name: string;
|
|
3664
|
+
/**
|
|
3665
|
+
* @description `environment`: assignable in every organization. `organization`: belongs to the organization `organization_node_id` names and is held only inside it.
|
|
3666
|
+
* @enum {string}
|
|
3667
|
+
*/
|
|
3668
|
+
scope: "environment" | "organization";
|
|
3669
|
+
/** @description The organization this role belongs to; null for an Environment role. */
|
|
3670
|
+
organization_node_id?: string | null;
|
|
3671
|
+
/** @description The name of the organization this role belongs to. Populated on list responses; null for an Environment role. */
|
|
3672
|
+
organization_name?: string | null;
|
|
3582
3673
|
description?: string | null;
|
|
3583
3674
|
is_system_role: boolean;
|
|
3584
3675
|
system_key?: string | null;
|
|
@@ -3871,10 +3962,14 @@ interface components {
|
|
|
3871
3962
|
role_id: string;
|
|
3872
3963
|
};
|
|
3873
3964
|
CreateRoleDto: {
|
|
3874
|
-
/** @description Role name */
|
|
3965
|
+
/** @description Role name, unique among the Environment's roles, or among the organization's own when `organization_id` is set */
|
|
3875
3966
|
name: string;
|
|
3876
3967
|
/** @description Role description */
|
|
3877
3968
|
description?: string;
|
|
3969
|
+
/** @description The organization the role belongs to. Omitted, the role is an Environment role, assignable in every organization; set, it can be held only at the organization's node or beneath it. */
|
|
3970
|
+
organization_id?: string;
|
|
3971
|
+
/** @description Start from a copy of this role's permissions (and its description, when none is given). An Environment role, or a role of the same organization. The only way an organization gets its own version of a shared role. */
|
|
3972
|
+
copy_from_role_id?: string;
|
|
3878
3973
|
};
|
|
3879
3974
|
UpdateRoleDto: {
|
|
3880
3975
|
/** @description Updated role name */
|
|
@@ -4288,6 +4383,17 @@ interface components {
|
|
|
4288
4383
|
id: string;
|
|
4289
4384
|
client_id: string;
|
|
4290
4385
|
name: string;
|
|
4386
|
+
/**
|
|
4387
|
+
* @description `web`: a person signs in through it. `machine`: it holds roles of its own and obtains tokens for itself with `client_credentials`.
|
|
4388
|
+
* @enum {string}
|
|
4389
|
+
*/
|
|
4390
|
+
client_kind: "web" | "machine";
|
|
4391
|
+
/** @description The organization a machine client acts in: its tokens name it and its roles sit inside it. Null for a client that acts across the Environment, and for a web client. */
|
|
4392
|
+
organization_node_id?: string | null;
|
|
4393
|
+
/** @description That organization's name; null when the client has none. */
|
|
4394
|
+
organization_name?: string | null;
|
|
4395
|
+
/** @description The audiences a machine client may request a token for, beside the Environment's default. Empty for a web client. */
|
|
4396
|
+
allowed_audiences: string[];
|
|
4291
4397
|
redirect_uris: string[];
|
|
4292
4398
|
/** @description Where this client may send someone after RP-initiated logout, matched exactly. */
|
|
4293
4399
|
post_logout_redirect_uris: string[];
|
|
@@ -4311,9 +4417,25 @@ interface components {
|
|
|
4311
4417
|
};
|
|
4312
4418
|
CreateOAuthClientDto: {
|
|
4313
4419
|
name: string;
|
|
4314
|
-
|
|
4420
|
+
/**
|
|
4421
|
+
* @description `web` (when omitted): a person signs in through this client with the authorization code grant. `machine`: the client is a principal of its own that holds roles and obtains tokens for itself with the `client_credentials` grant, for the audiences it lists, inside at most one organization; it takes no redirect URIs or sign-in fields.
|
|
4422
|
+
* @enum {string}
|
|
4423
|
+
*/
|
|
4424
|
+
client_kind?: "web" | "machine";
|
|
4425
|
+
/** @description Machine clients only: the organization the client acts in. Its tokens name it and it may hold roles only inside it. Omitted, the client acts across the Environment. */
|
|
4426
|
+
organization_node_id?: string;
|
|
4427
|
+
/**
|
|
4428
|
+
* @description For a machine client: the audiences (your APIs' identifiers) it may request a token for with `audience`, beside the Environment's `m2m_default_audience`. The token's `aud` names the one asked for.
|
|
4429
|
+
* @example [
|
|
4430
|
+
* "https://api.example.com"
|
|
4431
|
+
* ]
|
|
4432
|
+
*/
|
|
4433
|
+
allowed_audiences?: string[];
|
|
4434
|
+
/** @description Required for a web client; a machine client has none. */
|
|
4435
|
+
redirect_uris?: string[];
|
|
4315
4436
|
/** @description Where this client may send someone after RP-initiated logout. Matched exactly, and separate from `redirect_uris`: receiving an authorization code and being a landing page after sign-out are different kinds of trust. */
|
|
4316
4437
|
post_logout_redirect_uris?: string[];
|
|
4438
|
+
/** @description What the client's tokens may carry. Omitted, a web client gets `openid`, `profile` and `email`; a machine client gets `permissions`, the only scope it may hold. */
|
|
4317
4439
|
scopes?: string[];
|
|
4318
4440
|
/** @description Where Canopy delivers a signed logout token, server to server, when a session this client issued tokens for ends. Omit it and the client is told nothing. */
|
|
4319
4441
|
backchannel_logout_uri?: string;
|
|
@@ -4325,6 +4447,17 @@ interface components {
|
|
|
4325
4447
|
id: string;
|
|
4326
4448
|
client_id: string;
|
|
4327
4449
|
name: string;
|
|
4450
|
+
/**
|
|
4451
|
+
* @description `web`: a person signs in through it. `machine`: it holds roles of its own and obtains tokens for itself with `client_credentials`.
|
|
4452
|
+
* @enum {string}
|
|
4453
|
+
*/
|
|
4454
|
+
client_kind: "web" | "machine";
|
|
4455
|
+
/** @description The organization a machine client acts in: its tokens name it and its roles sit inside it. Null for a client that acts across the Environment, and for a web client. */
|
|
4456
|
+
organization_node_id?: string | null;
|
|
4457
|
+
/** @description That organization's name; null when the client has none. */
|
|
4458
|
+
organization_name?: string | null;
|
|
4459
|
+
/** @description The audiences a machine client may request a token for, beside the Environment's default. Empty for a web client. */
|
|
4460
|
+
allowed_audiences: string[];
|
|
4328
4461
|
redirect_uris: string[];
|
|
4329
4462
|
/** @description Where this client may send someone after RP-initiated logout, matched exactly. */
|
|
4330
4463
|
post_logout_redirect_uris: string[];
|
|
@@ -4358,6 +4491,8 @@ interface components {
|
|
|
4358
4491
|
post_logout_redirect_uris?: string[];
|
|
4359
4492
|
scopes?: string[];
|
|
4360
4493
|
is_active?: boolean;
|
|
4494
|
+
/** @description A machine client's audiences, replaced whole. A web client takes none (`400 oauth.web_client_audiences_invalid`). */
|
|
4495
|
+
allowed_audiences?: string[];
|
|
4361
4496
|
/** @description Where Canopy delivers a signed logout token when a session this client issued tokens for ends. `null` stops the notifications. */
|
|
4362
4497
|
backchannel_logout_uri?: string | null;
|
|
4363
4498
|
invite_redirect_url?: string | null;
|
|
@@ -4369,6 +4504,16 @@ interface components {
|
|
|
4369
4504
|
/** @description New client secret — shown only once */
|
|
4370
4505
|
client_secret: string;
|
|
4371
4506
|
};
|
|
4507
|
+
CreateOAuthClientAssignmentDto: {
|
|
4508
|
+
/** @description The node the role is held at. */
|
|
4509
|
+
node_id: string;
|
|
4510
|
+
/** @description The role the client holds there. */
|
|
4511
|
+
role_id: string;
|
|
4512
|
+
/** @description When the role starts to apply. Omitted, from now. */
|
|
4513
|
+
effective_from?: string;
|
|
4514
|
+
/** @description When the role stops applying. Omitted, never. */
|
|
4515
|
+
effective_to?: string;
|
|
4516
|
+
};
|
|
4372
4517
|
ApiKeyCreatedResponseDto: {
|
|
4373
4518
|
id: string;
|
|
4374
4519
|
name: string;
|
|
@@ -4632,9 +4777,16 @@ interface components {
|
|
|
4632
4777
|
metadata: {
|
|
4633
4778
|
/**
|
|
4634
4779
|
* Format: uuid
|
|
4635
|
-
* @description The identity holding the assignment.
|
|
4780
|
+
* @description The identity holding the assignment; null when a machine client holds it.
|
|
4636
4781
|
*/
|
|
4637
|
-
identity_id: string;
|
|
4782
|
+
identity_id: string | null;
|
|
4783
|
+
/**
|
|
4784
|
+
* Format: uuid
|
|
4785
|
+
* @description The machine OAuth client holding the assignment; null when a person holds it.
|
|
4786
|
+
*/
|
|
4787
|
+
oauth_client_id: string | null;
|
|
4788
|
+
/** @description That machine client's `client_id`: its token's `sub`, the id its grants route takes and an SDK cache names it by. Null when a person holds the assignment. */
|
|
4789
|
+
client_id: string | null;
|
|
4638
4790
|
/**
|
|
4639
4791
|
* Format: uuid
|
|
4640
4792
|
* @description The hierarchy node the role is held at.
|
|
@@ -4663,9 +4815,16 @@ interface components {
|
|
|
4663
4815
|
metadata: {
|
|
4664
4816
|
/**
|
|
4665
4817
|
* Format: uuid
|
|
4666
|
-
* @description The identity holding the assignment.
|
|
4818
|
+
* @description The identity holding the assignment; null when a machine client holds it.
|
|
4667
4819
|
*/
|
|
4668
|
-
identity_id: string;
|
|
4820
|
+
identity_id: string | null;
|
|
4821
|
+
/**
|
|
4822
|
+
* Format: uuid
|
|
4823
|
+
* @description The machine OAuth client holding the assignment; null when a person holds it.
|
|
4824
|
+
*/
|
|
4825
|
+
oauth_client_id: string | null;
|
|
4826
|
+
/** @description That machine client's `client_id`: its token's `sub`, the id its grants route takes and an SDK cache names it by. Null when a person holds the assignment. */
|
|
4827
|
+
client_id: string | null;
|
|
4669
4828
|
/**
|
|
4670
4829
|
* Format: uuid
|
|
4671
4830
|
* @description The hierarchy node the role is held at.
|
|
@@ -4689,9 +4848,16 @@ interface components {
|
|
|
4689
4848
|
metadata: {
|
|
4690
4849
|
/**
|
|
4691
4850
|
* Format: uuid
|
|
4692
|
-
* @description The identity holding the assignment.
|
|
4851
|
+
* @description The identity holding the assignment; null when a machine client holds it.
|
|
4693
4852
|
*/
|
|
4694
|
-
identity_id: string;
|
|
4853
|
+
identity_id: string | null;
|
|
4854
|
+
/**
|
|
4855
|
+
* Format: uuid
|
|
4856
|
+
* @description The machine OAuth client holding the assignment; null when a person holds it.
|
|
4857
|
+
*/
|
|
4858
|
+
oauth_client_id: string | null;
|
|
4859
|
+
/** @description That machine client's `client_id`: its token's `sub`, the id its grants route takes and an SDK cache names it by. Null when a person holds the assignment. */
|
|
4860
|
+
client_id: string | null;
|
|
4695
4861
|
/**
|
|
4696
4862
|
* Format: uuid
|
|
4697
4863
|
* @description The hierarchy node the role is held at.
|
|
@@ -4746,9 +4912,16 @@ interface components {
|
|
|
4746
4912
|
affected: {
|
|
4747
4913
|
/**
|
|
4748
4914
|
* Format: uuid
|
|
4749
|
-
* @description The identity holding the assignment.
|
|
4915
|
+
* @description The identity holding the assignment; null when a machine client holds it.
|
|
4916
|
+
*/
|
|
4917
|
+
identity_id: string | null;
|
|
4918
|
+
/**
|
|
4919
|
+
* Format: uuid
|
|
4920
|
+
* @description The machine OAuth client holding the assignment; null when a person holds it.
|
|
4750
4921
|
*/
|
|
4751
|
-
|
|
4922
|
+
oauth_client_id?: string | null;
|
|
4923
|
+
/** @description That machine client's `client_id`: its token's `sub`, the id its grants route takes and an SDK cache names it by. Null when a person holds the assignment. */
|
|
4924
|
+
client_id?: string | null;
|
|
4752
4925
|
/**
|
|
4753
4926
|
* Format: uuid
|
|
4754
4927
|
* @description The hierarchy node the role is held at.
|
|
@@ -4792,9 +4965,9 @@ interface components {
|
|
|
4792
4965
|
affected: {
|
|
4793
4966
|
/**
|
|
4794
4967
|
* Format: uuid
|
|
4795
|
-
* @description The identity holding the assignment.
|
|
4968
|
+
* @description The identity holding the assignment; null when a machine client holds it.
|
|
4796
4969
|
*/
|
|
4797
|
-
identity_id: string;
|
|
4970
|
+
identity_id: string | null;
|
|
4798
4971
|
/**
|
|
4799
4972
|
* Format: uuid
|
|
4800
4973
|
* @description The hierarchy node the role is held at.
|
|
@@ -5058,6 +5231,11 @@ interface components {
|
|
|
5058
5231
|
metadata: {
|
|
5059
5232
|
/** @description The role's name. */
|
|
5060
5233
|
name: string;
|
|
5234
|
+
/**
|
|
5235
|
+
* Format: uuid
|
|
5236
|
+
* @description The role whose permissions it started from, when it was created as a copy.
|
|
5237
|
+
*/
|
|
5238
|
+
copied_from_role_id?: string;
|
|
5061
5239
|
};
|
|
5062
5240
|
};
|
|
5063
5241
|
};
|
|
@@ -6734,7 +6912,7 @@ interface operations {
|
|
|
6734
6912
|
};
|
|
6735
6913
|
};
|
|
6736
6914
|
};
|
|
6737
|
-
/** @description The request failed validation, the password appears in a known data breach (HaveIBeenPwned check), or the role named for the initial assignment is a system role that cannot be assigned; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
6915
|
+
/** @description The request failed validation, the password appears in a known data breach (HaveIBeenPwned check), or the role named for the initial assignment is a system role that cannot be assigned or an organization's own role placed outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
6738
6916
|
400: {
|
|
6739
6917
|
headers: {
|
|
6740
6918
|
[name: string]: unknown;
|
|
@@ -6745,7 +6923,7 @@ interface operations {
|
|
|
6745
6923
|
* "error": {
|
|
6746
6924
|
* "statusCode": 400,
|
|
6747
6925
|
* "code": null,
|
|
6748
|
-
* "message": "The request failed validation, the password appears in a known data breach (HaveIBeenPwned check), or the role named for the initial assignment is a system role that cannot be assigned; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
6926
|
+
* "message": "The request failed validation, the password appears in a known data breach (HaveIBeenPwned check), or the role named for the initial assignment is a system role that cannot be assigned or an organization's own role placed outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
6749
6927
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
6750
6928
|
* "path": "/api/v1/identities",
|
|
6751
6929
|
* "method": "POST"
|
|
@@ -11789,7 +11967,7 @@ interface operations {
|
|
|
11789
11967
|
};
|
|
11790
11968
|
};
|
|
11791
11969
|
};
|
|
11792
|
-
/** @description The request failed validation
|
|
11970
|
+
/** @description The request failed validation, the role is inactive or a system role, the window does not start before it ends, or an organization's own role is placed outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
11793
11971
|
400: {
|
|
11794
11972
|
headers: {
|
|
11795
11973
|
[name: string]: unknown;
|
|
@@ -11800,7 +11978,7 @@ interface operations {
|
|
|
11800
11978
|
* "error": {
|
|
11801
11979
|
* "statusCode": 400,
|
|
11802
11980
|
* "code": null,
|
|
11803
|
-
* "message": "The request failed validation
|
|
11981
|
+
* "message": "The request failed validation, the role is inactive or a system role, the window does not start before it ends, or an organization's own role is placed outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
11804
11982
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
11805
11983
|
* "path": "/api/v1/organizations/{id}/assignments",
|
|
11806
11984
|
* "method": "POST"
|
|
@@ -12052,7 +12230,7 @@ interface operations {
|
|
|
12052
12230
|
};
|
|
12053
12231
|
};
|
|
12054
12232
|
};
|
|
12055
|
-
/** @description The request failed validation
|
|
12233
|
+
/** @description The request failed validation, the new role is inactive or a system role, the window does not start before it ends, or an organization's own role would be held outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
12056
12234
|
400: {
|
|
12057
12235
|
headers: {
|
|
12058
12236
|
[name: string]: unknown;
|
|
@@ -12063,7 +12241,7 @@ interface operations {
|
|
|
12063
12241
|
* "error": {
|
|
12064
12242
|
* "statusCode": 400,
|
|
12065
12243
|
* "code": null,
|
|
12066
|
-
* "message": "The request failed validation
|
|
12244
|
+
* "message": "The request failed validation, the new role is inactive or a system role, the window does not start before it ends, or an organization's own role would be held outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
12067
12245
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
12068
12246
|
* "path": "/api/v1/organizations/{id}/assignments/{assignmentId}",
|
|
12069
12247
|
* "method": "PATCH"
|
|
@@ -14000,7 +14178,7 @@ interface operations {
|
|
|
14000
14178
|
};
|
|
14001
14179
|
};
|
|
14002
14180
|
};
|
|
14003
|
-
/** @description The request failed validation; the connection is not in the account, is not an end-user connection, or is not bound to the organization's Environment; or the role is not an active, assignable arrival role in that Environment; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
14181
|
+
/** @description The request failed validation; the connection is not in the account, is not an end-user connection, or is not bound to the organization's Environment; or the role is not an active, assignable arrival role in that Environment, or is another organization's own (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
14004
14182
|
400: {
|
|
14005
14183
|
headers: {
|
|
14006
14184
|
[name: string]: unknown;
|
|
@@ -14011,7 +14189,7 @@ interface operations {
|
|
|
14011
14189
|
* "error": {
|
|
14012
14190
|
* "statusCode": 400,
|
|
14013
14191
|
* "code": null,
|
|
14014
|
-
* "message": "The request failed validation; the connection is not in the account, is not an end-user connection, or is not bound to the organization's Environment; or the role is not an active, assignable arrival role in that Environment; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
14192
|
+
* "message": "The request failed validation; the connection is not in the account, is not an end-user connection, or is not bound to the organization's Environment; or the role is not an active, assignable arrival role in that Environment, or is another organization's own (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
14015
14193
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
14016
14194
|
* "path": "/api/v1/organizations/{id}/sso-connections",
|
|
14017
14195
|
* "method": "POST"
|
|
@@ -14383,7 +14561,7 @@ interface operations {
|
|
|
14383
14561
|
};
|
|
14384
14562
|
};
|
|
14385
14563
|
};
|
|
14386
|
-
/** @description The request failed validation, the role is a system role, which cannot be assigned, a place or dates came with no role (`invite.window_requires_role`), or the dates end before they start; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
14564
|
+
/** @description The request failed validation, the role is a system role, which cannot be assigned, a place or dates came with no role (`invite.window_requires_role`), or the dates end before they start; or an organization's own role is placed outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
14387
14565
|
400: {
|
|
14388
14566
|
headers: {
|
|
14389
14567
|
[name: string]: unknown;
|
|
@@ -14394,7 +14572,7 @@ interface operations {
|
|
|
14394
14572
|
* "error": {
|
|
14395
14573
|
* "statusCode": 400,
|
|
14396
14574
|
* "code": null,
|
|
14397
|
-
* "message": "The request failed validation, the role is a system role, which cannot be assigned, a place or dates came with no role (`invite.window_requires_role`), or the dates end before they start; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
14575
|
+
* "message": "The request failed validation, the role is a system role, which cannot be assigned, a place or dates came with no role (`invite.window_requires_role`), or the dates end before they start; or an organization's own role is placed outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
14398
14576
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
14399
14577
|
* "path": "/api/v1/organizations/{id}/members",
|
|
14400
14578
|
* "method": "POST"
|
|
@@ -14890,7 +15068,7 @@ interface operations {
|
|
|
14890
15068
|
};
|
|
14891
15069
|
};
|
|
14892
15070
|
};
|
|
14893
|
-
/** @description The request failed validation; a place beneath the organization was named with no role (`invite.malformed_assignment`); dates came with no role (`invite.window_requires_role`), end before they start, or have already ended (`invite.window_ended`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
15071
|
+
/** @description The request failed validation; a place beneath the organization was named with no role (`invite.malformed_assignment`); dates came with no role (`invite.window_requires_role`), end before they start, or have already ended (`invite.window_ended`); or an organization's own role is placed outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
14894
15072
|
400: {
|
|
14895
15073
|
headers: {
|
|
14896
15074
|
[name: string]: unknown;
|
|
@@ -14901,7 +15079,7 @@ interface operations {
|
|
|
14901
15079
|
* "error": {
|
|
14902
15080
|
* "statusCode": 400,
|
|
14903
15081
|
* "code": null,
|
|
14904
|
-
* "message": "The request failed validation; a place beneath the organization was named with no role (`invite.malformed_assignment`); dates came with no role (`invite.window_requires_role`), end before they start, or have already ended (`invite.window_ended`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
15082
|
+
* "message": "The request failed validation; a place beneath the organization was named with no role (`invite.malformed_assignment`); dates came with no role (`invite.window_requires_role`), end before they start, or have already ended (`invite.window_ended`); or an organization's own role is placed outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
14905
15083
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
14906
15084
|
* "path": "/api/v1/organizations/{id}/invites",
|
|
14907
15085
|
* "method": "POST"
|
|
@@ -17985,6 +18163,10 @@ interface operations {
|
|
|
17985
18163
|
include_inactive?: "true" | "false";
|
|
17986
18164
|
/** @description Filter by role origin. */
|
|
17987
18165
|
type?: "system" | "custom";
|
|
18166
|
+
/** @description Which roles: `environment` (the default) the Environment's own, assignable in every organization; `organization` one organization's own; `available` what can be held inside one organization, its own and the Environment's; `all` every role in the Environment. `organization` and `available` need `organization_id`. */
|
|
18167
|
+
scope?: "environment" | "organization" | "available" | "all";
|
|
18168
|
+
/** @description The organization whose roles to list. Alone, it lists that organization's own roles (`scope=organization`). */
|
|
18169
|
+
organization_id?: string;
|
|
17988
18170
|
};
|
|
17989
18171
|
header?: never;
|
|
17990
18172
|
path?: never;
|
|
@@ -18066,6 +18248,27 @@ interface operations {
|
|
|
18066
18248
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18067
18249
|
};
|
|
18068
18250
|
};
|
|
18251
|
+
/** @description `organization_id` is not a live organization in this Environment */
|
|
18252
|
+
404: {
|
|
18253
|
+
headers: {
|
|
18254
|
+
[name: string]: unknown;
|
|
18255
|
+
};
|
|
18256
|
+
content: {
|
|
18257
|
+
/**
|
|
18258
|
+
* @example {
|
|
18259
|
+
* "error": {
|
|
18260
|
+
* "statusCode": 404,
|
|
18261
|
+
* "code": null,
|
|
18262
|
+
* "message": "`organization_id` is not a live organization in this Environment",
|
|
18263
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18264
|
+
* "path": "/api/v1/roles",
|
|
18265
|
+
* "method": "GET"
|
|
18266
|
+
* }
|
|
18267
|
+
* }
|
|
18268
|
+
*/
|
|
18269
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18270
|
+
};
|
|
18271
|
+
};
|
|
18069
18272
|
};
|
|
18070
18273
|
};
|
|
18071
18274
|
ApiRolesController_createRole: {
|
|
@@ -18155,6 +18358,27 @@ interface operations {
|
|
|
18155
18358
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18156
18359
|
};
|
|
18157
18360
|
};
|
|
18361
|
+
/** @description `organization_id` is not a live organization in this Environment, or `copy_from_role_id` names no role that can be copied here (an Environment role, or one of the same organization) */
|
|
18362
|
+
404: {
|
|
18363
|
+
headers: {
|
|
18364
|
+
[name: string]: unknown;
|
|
18365
|
+
};
|
|
18366
|
+
content: {
|
|
18367
|
+
/**
|
|
18368
|
+
* @example {
|
|
18369
|
+
* "error": {
|
|
18370
|
+
* "statusCode": 404,
|
|
18371
|
+
* "code": null,
|
|
18372
|
+
* "message": "`organization_id` is not a live organization in this Environment, or `copy_from_role_id` names no role that can be copied here (an Environment role, or one of the same organization)",
|
|
18373
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18374
|
+
* "path": "/api/v1/roles",
|
|
18375
|
+
* "method": "POST"
|
|
18376
|
+
* }
|
|
18377
|
+
* }
|
|
18378
|
+
*/
|
|
18379
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18380
|
+
};
|
|
18381
|
+
};
|
|
18158
18382
|
/** @description Role name already exists */
|
|
18159
18383
|
409: {
|
|
18160
18384
|
headers: {
|
|
@@ -18982,7 +19206,7 @@ interface operations {
|
|
|
18982
19206
|
};
|
|
18983
19207
|
};
|
|
18984
19208
|
};
|
|
18985
|
-
/** @description The request failed validation, the role is a system role (system roles are reserved for platform administration), or `effective_from` is not before `effective_to`; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
19209
|
+
/** @description The request failed validation, the role is a system role (system roles are reserved for platform administration), or `effective_from` is not before `effective_to`; or an organization's own role is placed outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
18986
19210
|
400: {
|
|
18987
19211
|
headers: {
|
|
18988
19212
|
[name: string]: unknown;
|
|
@@ -18993,7 +19217,7 @@ interface operations {
|
|
|
18993
19217
|
* "error": {
|
|
18994
19218
|
* "statusCode": 400,
|
|
18995
19219
|
* "code": null,
|
|
18996
|
-
* "message": "The request failed validation, the role is a system role (system roles are reserved for platform administration), or `effective_from` is not before `effective_to`; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
19220
|
+
* "message": "The request failed validation, the role is a system role (system roles are reserved for platform administration), or `effective_from` is not before `effective_to`; or an organization's own role is placed outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
18997
19221
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18998
19222
|
* "path": "/api/v1/assignments",
|
|
18999
19223
|
* "method": "POST"
|
|
@@ -19243,7 +19467,7 @@ interface operations {
|
|
|
19243
19467
|
};
|
|
19244
19468
|
};
|
|
19245
19469
|
};
|
|
19246
|
-
/** @description The request failed validation, the role is inactive or a system role, or `effective_from` is not before `effective_to`; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
19470
|
+
/** @description The request failed validation, the role is inactive or a system role, or `effective_from` is not before `effective_to`; or an organization's own role is placed outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
19247
19471
|
400: {
|
|
19248
19472
|
headers: {
|
|
19249
19473
|
[name: string]: unknown;
|
|
@@ -19254,7 +19478,7 @@ interface operations {
|
|
|
19254
19478
|
* "error": {
|
|
19255
19479
|
* "statusCode": 400,
|
|
19256
19480
|
* "code": null,
|
|
19257
|
-
* "message": "The request failed validation, the role is inactive or a system role, or `effective_from` is not before `effective_to`; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
19481
|
+
* "message": "The request failed validation, the role is inactive or a system role, or `effective_from` is not before `effective_to`; or an organization's own role is placed outside that organization (`rbac.role_outside_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
19258
19482
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19259
19483
|
* "path": "/api/v1/assignments/{id}",
|
|
19260
19484
|
* "method": "PATCH"
|
|
@@ -21662,7 +21886,7 @@ interface operations {
|
|
|
21662
21886
|
};
|
|
21663
21887
|
};
|
|
21664
21888
|
};
|
|
21665
|
-
/** @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),
|
|
21889
|
+
/** @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`) or takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`), or a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
21666
21890
|
400: {
|
|
21667
21891
|
headers: {
|
|
21668
21892
|
[name: string]: unknown;
|
|
@@ -21673,7 +21897,7 @@ interface operations {
|
|
|
21673
21897
|
* "error": {
|
|
21674
21898
|
* "statusCode": 400,
|
|
21675
21899
|
* "code": null,
|
|
21676
|
-
* "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),
|
|
21900
|
+
* "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`) or takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`), or a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
21677
21901
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
21678
21902
|
* "path": "/api/v1/oauth-clients",
|
|
21679
21903
|
* "method": "POST"
|
|
@@ -21725,6 +21949,27 @@ interface operations {
|
|
|
21725
21949
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
21726
21950
|
};
|
|
21727
21951
|
};
|
|
21952
|
+
/** @description A machine client: the account has reached its plan's monthly limit on active machine credentials (`m2m_tokens`, API keys and machine clients together); `data` carries the limit, the usage and an upgrade URL */
|
|
21953
|
+
409: {
|
|
21954
|
+
headers: {
|
|
21955
|
+
[name: string]: unknown;
|
|
21956
|
+
};
|
|
21957
|
+
content: {
|
|
21958
|
+
/**
|
|
21959
|
+
* @example {
|
|
21960
|
+
* "error": {
|
|
21961
|
+
* "statusCode": 409,
|
|
21962
|
+
* "code": null,
|
|
21963
|
+
* "message": "A machine client: the account has reached its plan's monthly limit on active machine credentials (`m2m_tokens`, API keys and machine clients together); `data` carries the limit, the usage and an upgrade URL",
|
|
21964
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
21965
|
+
* "path": "/api/v1/oauth-clients",
|
|
21966
|
+
* "method": "POST"
|
|
21967
|
+
* }
|
|
21968
|
+
* }
|
|
21969
|
+
*/
|
|
21970
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
21971
|
+
};
|
|
21972
|
+
};
|
|
21728
21973
|
/** @description The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key. */
|
|
21729
21974
|
422: {
|
|
21730
21975
|
headers: {
|
|
@@ -22073,7 +22318,7 @@ interface operations {
|
|
|
22073
22318
|
};
|
|
22074
22319
|
};
|
|
22075
22320
|
};
|
|
22076
|
-
/** @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),
|
|
22321
|
+
/** @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`) or takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`), or a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
22077
22322
|
400: {
|
|
22078
22323
|
headers: {
|
|
22079
22324
|
[name: string]: unknown;
|
|
@@ -22084,7 +22329,7 @@ interface operations {
|
|
|
22084
22329
|
* "error": {
|
|
22085
22330
|
* "statusCode": 400,
|
|
22086
22331
|
* "code": null,
|
|
22087
|
-
* "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),
|
|
22332
|
+
* "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`) or takes a web client's field or a scope other than `permissions` (`oauth.machine_client_fields_invalid`), or a web client sends `allowed_audiences` (`oauth.web_client_audiences_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
22088
22333
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22089
22334
|
* "path": "/api/v1/oauth-clients/{id}",
|
|
22090
22335
|
* "method": "PATCH"
|
|
@@ -22267,22 +22512,24 @@ interface operations {
|
|
|
22267
22512
|
};
|
|
22268
22513
|
};
|
|
22269
22514
|
};
|
|
22270
|
-
|
|
22515
|
+
ApiOAuthClientsController_listAssignments: {
|
|
22271
22516
|
parameters: {
|
|
22272
22517
|
query?: {
|
|
22273
22518
|
/** @description Page number (1-based) */
|
|
22274
22519
|
page?: number;
|
|
22275
22520
|
/** @description Items per page (1-100, default 20) */
|
|
22276
22521
|
take?: number;
|
|
22277
|
-
/** @description Search
|
|
22522
|
+
/** @description Search role and node names */
|
|
22278
22523
|
q?: string;
|
|
22279
|
-
/** @description Sort column. Defaults to `created`,
|
|
22280
|
-
sort_by?: "
|
|
22524
|
+
/** @description Sort column. Defaults to `created`, oldest first. */
|
|
22525
|
+
sort_by?: "role" | "node" | "created";
|
|
22281
22526
|
/** @description Sort direction */
|
|
22282
22527
|
order?: "asc" | "desc";
|
|
22283
22528
|
};
|
|
22284
22529
|
header?: never;
|
|
22285
|
-
path
|
|
22530
|
+
path: {
|
|
22531
|
+
id: string;
|
|
22532
|
+
};
|
|
22286
22533
|
cookie?: never;
|
|
22287
22534
|
};
|
|
22288
22535
|
requestBody?: never;
|
|
@@ -22294,12 +22541,12 @@ interface operations {
|
|
|
22294
22541
|
};
|
|
22295
22542
|
content: {
|
|
22296
22543
|
"application/json": {
|
|
22297
|
-
items: components["schemas"]["
|
|
22544
|
+
items: components["schemas"]["AssignmentResponseDto"][];
|
|
22298
22545
|
pagination: components["schemas"]["PageMetaDto"];
|
|
22299
22546
|
};
|
|
22300
22547
|
};
|
|
22301
22548
|
};
|
|
22302
|
-
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
22549
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
22303
22550
|
400: {
|
|
22304
22551
|
headers: {
|
|
22305
22552
|
[name: string]: unknown;
|
|
@@ -22310,9 +22557,9 @@ interface operations {
|
|
|
22310
22557
|
* "error": {
|
|
22311
22558
|
* "statusCode": 400,
|
|
22312
22559
|
* "code": null,
|
|
22313
|
-
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
22560
|
+
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
22314
22561
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22315
|
-
* "path": "/api/v1/
|
|
22562
|
+
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
22316
22563
|
* "method": "GET"
|
|
22317
22564
|
* }
|
|
22318
22565
|
* }
|
|
@@ -22333,7 +22580,7 @@ interface operations {
|
|
|
22333
22580
|
* "code": null,
|
|
22334
22581
|
* "message": "Invalid or expired token",
|
|
22335
22582
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22336
|
-
* "path": "/api/v1/
|
|
22583
|
+
* "path": "/api/v1/oauth-clients",
|
|
22337
22584
|
* "method": "GET"
|
|
22338
22585
|
* }
|
|
22339
22586
|
* }
|
|
@@ -22354,7 +22601,28 @@ interface operations {
|
|
|
22354
22601
|
* "code": null,
|
|
22355
22602
|
* "message": "The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment",
|
|
22356
22603
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22357
|
-
* "path": "/api/v1/
|
|
22604
|
+
* "path": "/api/v1/oauth-clients",
|
|
22605
|
+
* "method": "GET"
|
|
22606
|
+
* }
|
|
22607
|
+
* }
|
|
22608
|
+
*/
|
|
22609
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22610
|
+
};
|
|
22611
|
+
};
|
|
22612
|
+
/** @description No OAuth client with that id exists in this Environment */
|
|
22613
|
+
404: {
|
|
22614
|
+
headers: {
|
|
22615
|
+
[name: string]: unknown;
|
|
22616
|
+
};
|
|
22617
|
+
content: {
|
|
22618
|
+
/**
|
|
22619
|
+
* @example {
|
|
22620
|
+
* "error": {
|
|
22621
|
+
* "statusCode": 404,
|
|
22622
|
+
* "code": null,
|
|
22623
|
+
* "message": "No OAuth client with that id exists in this Environment",
|
|
22624
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22625
|
+
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
22358
22626
|
* "method": "GET"
|
|
22359
22627
|
* }
|
|
22360
22628
|
* }
|
|
@@ -22364,31 +22632,33 @@ interface operations {
|
|
|
22364
22632
|
};
|
|
22365
22633
|
};
|
|
22366
22634
|
};
|
|
22367
|
-
|
|
22635
|
+
ApiOAuthClientsController_assignRole: {
|
|
22368
22636
|
parameters: {
|
|
22369
22637
|
query?: never;
|
|
22370
22638
|
header?: never;
|
|
22371
|
-
path
|
|
22639
|
+
path: {
|
|
22640
|
+
id: string;
|
|
22641
|
+
};
|
|
22372
22642
|
cookie?: never;
|
|
22373
22643
|
};
|
|
22374
22644
|
requestBody: {
|
|
22375
22645
|
content: {
|
|
22376
|
-
"application/json": components["schemas"]["
|
|
22646
|
+
"application/json": components["schemas"]["CreateOAuthClientAssignmentDto"];
|
|
22377
22647
|
};
|
|
22378
22648
|
};
|
|
22379
22649
|
responses: {
|
|
22380
|
-
/** @description
|
|
22650
|
+
/** @description Assignment created */
|
|
22381
22651
|
201: {
|
|
22382
22652
|
headers: {
|
|
22383
22653
|
[name: string]: unknown;
|
|
22384
22654
|
};
|
|
22385
22655
|
content: {
|
|
22386
22656
|
"application/json": {
|
|
22387
|
-
data: components["schemas"]["
|
|
22657
|
+
data: components["schemas"]["AssignmentResponseDto"];
|
|
22388
22658
|
};
|
|
22389
22659
|
};
|
|
22390
22660
|
};
|
|
22391
|
-
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
22661
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
22392
22662
|
400: {
|
|
22393
22663
|
headers: {
|
|
22394
22664
|
[name: string]: unknown;
|
|
@@ -22399,9 +22669,9 @@ interface operations {
|
|
|
22399
22669
|
* "error": {
|
|
22400
22670
|
* "statusCode": 400,
|
|
22401
22671
|
* "code": null,
|
|
22402
|
-
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
22672
|
+
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
22403
22673
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22404
|
-
* "path": "/api/v1/
|
|
22674
|
+
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
22405
22675
|
* "method": "POST"
|
|
22406
22676
|
* }
|
|
22407
22677
|
* }
|
|
@@ -22422,7 +22692,7 @@ interface operations {
|
|
|
22422
22692
|
* "code": null,
|
|
22423
22693
|
* "message": "Invalid or expired token",
|
|
22424
22694
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22425
|
-
* "path": "/api/v1/
|
|
22695
|
+
* "path": "/api/v1/oauth-clients",
|
|
22426
22696
|
* "method": "GET"
|
|
22427
22697
|
* }
|
|
22428
22698
|
* }
|
|
@@ -22430,7 +22700,7 @@ interface operations {
|
|
|
22430
22700
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22431
22701
|
};
|
|
22432
22702
|
};
|
|
22433
|
-
/** @description The caller lacks
|
|
22703
|
+
/** @description The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment */
|
|
22434
22704
|
403: {
|
|
22435
22705
|
headers: {
|
|
22436
22706
|
[name: string]: unknown;
|
|
@@ -22441,18 +22711,18 @@ interface operations {
|
|
|
22441
22711
|
* "error": {
|
|
22442
22712
|
* "statusCode": 403,
|
|
22443
22713
|
* "code": null,
|
|
22444
|
-
* "message": "The caller lacks
|
|
22714
|
+
* "message": "The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment",
|
|
22445
22715
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22446
|
-
* "path": "/api/v1/
|
|
22447
|
-
* "method": "
|
|
22716
|
+
* "path": "/api/v1/oauth-clients",
|
|
22717
|
+
* "method": "GET"
|
|
22448
22718
|
* }
|
|
22449
22719
|
* }
|
|
22450
22720
|
*/
|
|
22451
22721
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22452
22722
|
};
|
|
22453
22723
|
};
|
|
22454
|
-
/** @description
|
|
22455
|
-
|
|
22724
|
+
/** @description No OAuth client with that id exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
22725
|
+
404: {
|
|
22456
22726
|
headers: {
|
|
22457
22727
|
[name: string]: unknown;
|
|
22458
22728
|
};
|
|
@@ -22460,11 +22730,11 @@ interface operations {
|
|
|
22460
22730
|
/**
|
|
22461
22731
|
* @example {
|
|
22462
22732
|
* "error": {
|
|
22463
|
-
* "statusCode":
|
|
22733
|
+
* "statusCode": 404,
|
|
22464
22734
|
* "code": null,
|
|
22465
|
-
* "message": "
|
|
22735
|
+
* "message": "No OAuth client with that id exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
22466
22736
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22467
|
-
* "path": "/api/v1/
|
|
22737
|
+
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
22468
22738
|
* "method": "POST"
|
|
22469
22739
|
* }
|
|
22470
22740
|
* }
|
|
@@ -22472,8 +22742,8 @@ interface operations {
|
|
|
22472
22742
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22473
22743
|
};
|
|
22474
22744
|
};
|
|
22475
|
-
/** @description The `
|
|
22476
|
-
|
|
22745
|
+
/** @description The client already holds this role at this node (`rbac.assignment_conflict`), the client is pinned to an organization and the node is outside it (`oauth.client_outside_organization`), the caller's `If-Match` is stale (`assignment.version_mismatch`), or the change would leave an organization without an administrator (`organization.last_admin`) */
|
|
22746
|
+
409: {
|
|
22477
22747
|
headers: {
|
|
22478
22748
|
[name: string]: unknown;
|
|
22479
22749
|
};
|
|
@@ -22481,11 +22751,11 @@ interface operations {
|
|
|
22481
22751
|
/**
|
|
22482
22752
|
* @example {
|
|
22483
22753
|
* "error": {
|
|
22484
|
-
* "statusCode":
|
|
22754
|
+
* "statusCode": 409,
|
|
22485
22755
|
* "code": null,
|
|
22486
|
-
* "message": "The `
|
|
22756
|
+
* "message": "The client already holds this role at this node (`rbac.assignment_conflict`), the client is pinned to an organization and the node is outside it (`oauth.client_outside_organization`), the caller's `If-Match` is stale (`assignment.version_mismatch`), or the change would leave an organization without an administrator (`organization.last_admin`)",
|
|
22487
22757
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22488
|
-
* "path": "/api/v1/
|
|
22758
|
+
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
22489
22759
|
* "method": "POST"
|
|
22490
22760
|
* }
|
|
22491
22761
|
* }
|
|
@@ -22493,8 +22763,8 @@ interface operations {
|
|
|
22493
22763
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22494
22764
|
};
|
|
22495
22765
|
};
|
|
22496
|
-
/** @description
|
|
22497
|
-
|
|
22766
|
+
/** @description The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key. */
|
|
22767
|
+
422: {
|
|
22498
22768
|
headers: {
|
|
22499
22769
|
[name: string]: unknown;
|
|
22500
22770
|
};
|
|
@@ -22502,11 +22772,11 @@ interface operations {
|
|
|
22502
22772
|
/**
|
|
22503
22773
|
* @example {
|
|
22504
22774
|
* "error": {
|
|
22505
|
-
* "statusCode":
|
|
22775
|
+
* "statusCode": 422,
|
|
22506
22776
|
* "code": null,
|
|
22507
|
-
* "message": "
|
|
22777
|
+
* "message": "The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key.",
|
|
22508
22778
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22509
|
-
* "path": "/api/v1/
|
|
22779
|
+
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
22510
22780
|
* "method": "POST"
|
|
22511
22781
|
* }
|
|
22512
22782
|
* }
|
|
@@ -22516,25 +22786,26 @@ interface operations {
|
|
|
22516
22786
|
};
|
|
22517
22787
|
};
|
|
22518
22788
|
};
|
|
22519
|
-
|
|
22789
|
+
ApiOAuthClientsController_removeAssignment: {
|
|
22520
22790
|
parameters: {
|
|
22521
22791
|
query?: never;
|
|
22522
22792
|
header?: never;
|
|
22523
22793
|
path: {
|
|
22524
22794
|
id: string;
|
|
22795
|
+
assignmentId: string;
|
|
22525
22796
|
};
|
|
22526
22797
|
cookie?: never;
|
|
22527
22798
|
};
|
|
22528
22799
|
requestBody?: never;
|
|
22529
22800
|
responses: {
|
|
22530
|
-
/** @description
|
|
22801
|
+
/** @description Assignment removed */
|
|
22531
22802
|
204: {
|
|
22532
22803
|
headers: {
|
|
22533
22804
|
[name: string]: unknown;
|
|
22534
22805
|
};
|
|
22535
22806
|
content?: never;
|
|
22536
22807
|
};
|
|
22537
|
-
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
22808
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
22538
22809
|
400: {
|
|
22539
22810
|
headers: {
|
|
22540
22811
|
[name: string]: unknown;
|
|
@@ -22545,9 +22816,9 @@ interface operations {
|
|
|
22545
22816
|
* "error": {
|
|
22546
22817
|
* "statusCode": 400,
|
|
22547
22818
|
* "code": null,
|
|
22548
|
-
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
22819
|
+
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
22549
22820
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22550
|
-
* "path": "/api/v1/
|
|
22821
|
+
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
22551
22822
|
* "method": "DELETE"
|
|
22552
22823
|
* }
|
|
22553
22824
|
* }
|
|
@@ -22568,7 +22839,7 @@ interface operations {
|
|
|
22568
22839
|
* "code": null,
|
|
22569
22840
|
* "message": "Invalid or expired token",
|
|
22570
22841
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22571
|
-
* "path": "/api/v1/
|
|
22842
|
+
* "path": "/api/v1/oauth-clients",
|
|
22572
22843
|
* "method": "GET"
|
|
22573
22844
|
* }
|
|
22574
22845
|
* }
|
|
@@ -22576,7 +22847,636 @@ interface operations {
|
|
|
22576
22847
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22577
22848
|
};
|
|
22578
22849
|
};
|
|
22579
|
-
/** @description The caller lacks
|
|
22850
|
+
/** @description The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment */
|
|
22851
|
+
403: {
|
|
22852
|
+
headers: {
|
|
22853
|
+
[name: string]: unknown;
|
|
22854
|
+
};
|
|
22855
|
+
content: {
|
|
22856
|
+
/**
|
|
22857
|
+
* @example {
|
|
22858
|
+
* "error": {
|
|
22859
|
+
* "statusCode": 403,
|
|
22860
|
+
* "code": null,
|
|
22861
|
+
* "message": "The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment",
|
|
22862
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22863
|
+
* "path": "/api/v1/oauth-clients",
|
|
22864
|
+
* "method": "GET"
|
|
22865
|
+
* }
|
|
22866
|
+
* }
|
|
22867
|
+
*/
|
|
22868
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22869
|
+
};
|
|
22870
|
+
};
|
|
22871
|
+
/** @description No OAuth client with that id exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
22872
|
+
404: {
|
|
22873
|
+
headers: {
|
|
22874
|
+
[name: string]: unknown;
|
|
22875
|
+
};
|
|
22876
|
+
content: {
|
|
22877
|
+
/**
|
|
22878
|
+
* @example {
|
|
22879
|
+
* "error": {
|
|
22880
|
+
* "statusCode": 404,
|
|
22881
|
+
* "code": null,
|
|
22882
|
+
* "message": "No OAuth client with that id exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
22883
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22884
|
+
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
22885
|
+
* "method": "DELETE"
|
|
22886
|
+
* }
|
|
22887
|
+
* }
|
|
22888
|
+
*/
|
|
22889
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22890
|
+
};
|
|
22891
|
+
};
|
|
22892
|
+
/** @description The client already holds this role at this node (`rbac.assignment_conflict`), the client is pinned to an organization and the node is outside it (`oauth.client_outside_organization`), the caller's `If-Match` is stale (`assignment.version_mismatch`), or the change would leave an organization without an administrator (`organization.last_admin`) */
|
|
22893
|
+
409: {
|
|
22894
|
+
headers: {
|
|
22895
|
+
[name: string]: unknown;
|
|
22896
|
+
};
|
|
22897
|
+
content: {
|
|
22898
|
+
/**
|
|
22899
|
+
* @example {
|
|
22900
|
+
* "error": {
|
|
22901
|
+
* "statusCode": 409,
|
|
22902
|
+
* "code": null,
|
|
22903
|
+
* "message": "The client already holds this role at this node (`rbac.assignment_conflict`), the client is pinned to an organization and the node is outside it (`oauth.client_outside_organization`), the caller's `If-Match` is stale (`assignment.version_mismatch`), or the change would leave an organization without an administrator (`organization.last_admin`)",
|
|
22904
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22905
|
+
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
22906
|
+
* "method": "DELETE"
|
|
22907
|
+
* }
|
|
22908
|
+
* }
|
|
22909
|
+
*/
|
|
22910
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22911
|
+
};
|
|
22912
|
+
};
|
|
22913
|
+
};
|
|
22914
|
+
};
|
|
22915
|
+
ApiOAuthClientsController_updateAssignment: {
|
|
22916
|
+
parameters: {
|
|
22917
|
+
query?: never;
|
|
22918
|
+
header?: {
|
|
22919
|
+
/** @description Optimistic-lock version of the resource. Send the `version` field returned on read; the server rejects with 409 if the row has changed since. */
|
|
22920
|
+
"If-Match"?: string;
|
|
22921
|
+
};
|
|
22922
|
+
path: {
|
|
22923
|
+
id: string;
|
|
22924
|
+
assignmentId: string;
|
|
22925
|
+
};
|
|
22926
|
+
cookie?: never;
|
|
22927
|
+
};
|
|
22928
|
+
requestBody: {
|
|
22929
|
+
content: {
|
|
22930
|
+
"application/json": components["schemas"]["UpdateAssignmentDto"];
|
|
22931
|
+
};
|
|
22932
|
+
};
|
|
22933
|
+
responses: {
|
|
22934
|
+
/** @description Assignment updated */
|
|
22935
|
+
200: {
|
|
22936
|
+
headers: {
|
|
22937
|
+
[name: string]: unknown;
|
|
22938
|
+
};
|
|
22939
|
+
content: {
|
|
22940
|
+
"application/json": {
|
|
22941
|
+
data: components["schemas"]["AssignmentResponseDto"];
|
|
22942
|
+
};
|
|
22943
|
+
};
|
|
22944
|
+
};
|
|
22945
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
22946
|
+
400: {
|
|
22947
|
+
headers: {
|
|
22948
|
+
[name: string]: unknown;
|
|
22949
|
+
};
|
|
22950
|
+
content: {
|
|
22951
|
+
/**
|
|
22952
|
+
* @example {
|
|
22953
|
+
* "error": {
|
|
22954
|
+
* "statusCode": 400,
|
|
22955
|
+
* "code": null,
|
|
22956
|
+
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
22957
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22958
|
+
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
22959
|
+
* "method": "PATCH"
|
|
22960
|
+
* }
|
|
22961
|
+
* }
|
|
22962
|
+
*/
|
|
22963
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22964
|
+
};
|
|
22965
|
+
};
|
|
22966
|
+
/** @description Invalid or expired token */
|
|
22967
|
+
401: {
|
|
22968
|
+
headers: {
|
|
22969
|
+
[name: string]: unknown;
|
|
22970
|
+
};
|
|
22971
|
+
content: {
|
|
22972
|
+
/**
|
|
22973
|
+
* @example {
|
|
22974
|
+
* "error": {
|
|
22975
|
+
* "statusCode": 401,
|
|
22976
|
+
* "code": null,
|
|
22977
|
+
* "message": "Invalid or expired token",
|
|
22978
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22979
|
+
* "path": "/api/v1/oauth-clients",
|
|
22980
|
+
* "method": "GET"
|
|
22981
|
+
* }
|
|
22982
|
+
* }
|
|
22983
|
+
*/
|
|
22984
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22985
|
+
};
|
|
22986
|
+
};
|
|
22987
|
+
/** @description The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment */
|
|
22988
|
+
403: {
|
|
22989
|
+
headers: {
|
|
22990
|
+
[name: string]: unknown;
|
|
22991
|
+
};
|
|
22992
|
+
content: {
|
|
22993
|
+
/**
|
|
22994
|
+
* @example {
|
|
22995
|
+
* "error": {
|
|
22996
|
+
* "statusCode": 403,
|
|
22997
|
+
* "code": null,
|
|
22998
|
+
* "message": "The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment",
|
|
22999
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23000
|
+
* "path": "/api/v1/oauth-clients",
|
|
23001
|
+
* "method": "GET"
|
|
23002
|
+
* }
|
|
23003
|
+
* }
|
|
23004
|
+
*/
|
|
23005
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23006
|
+
};
|
|
23007
|
+
};
|
|
23008
|
+
/** @description No OAuth client with that id exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds */
|
|
23009
|
+
404: {
|
|
23010
|
+
headers: {
|
|
23011
|
+
[name: string]: unknown;
|
|
23012
|
+
};
|
|
23013
|
+
content: {
|
|
23014
|
+
/**
|
|
23015
|
+
* @example {
|
|
23016
|
+
* "error": {
|
|
23017
|
+
* "statusCode": 404,
|
|
23018
|
+
* "code": null,
|
|
23019
|
+
* "message": "No OAuth client with that id exists in this Environment, the node or role does not exist in it, or the assignment is not one this client holds",
|
|
23020
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23021
|
+
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
23022
|
+
* "method": "PATCH"
|
|
23023
|
+
* }
|
|
23024
|
+
* }
|
|
23025
|
+
*/
|
|
23026
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23027
|
+
};
|
|
23028
|
+
};
|
|
23029
|
+
/** @description The client already holds this role at this node (`rbac.assignment_conflict`), the client is pinned to an organization and the node is outside it (`oauth.client_outside_organization`), the caller's `If-Match` is stale (`assignment.version_mismatch`), or the change would leave an organization without an administrator (`organization.last_admin`) */
|
|
23030
|
+
409: {
|
|
23031
|
+
headers: {
|
|
23032
|
+
[name: string]: unknown;
|
|
23033
|
+
};
|
|
23034
|
+
content: {
|
|
23035
|
+
/**
|
|
23036
|
+
* @example {
|
|
23037
|
+
* "error": {
|
|
23038
|
+
* "statusCode": 409,
|
|
23039
|
+
* "code": null,
|
|
23040
|
+
* "message": "The client already holds this role at this node (`rbac.assignment_conflict`), the client is pinned to an organization and the node is outside it (`oauth.client_outside_organization`), the caller's `If-Match` is stale (`assignment.version_mismatch`), or the change would leave an organization without an administrator (`organization.last_admin`)",
|
|
23041
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23042
|
+
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
23043
|
+
* "method": "PATCH"
|
|
23044
|
+
* }
|
|
23045
|
+
* }
|
|
23046
|
+
*/
|
|
23047
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23048
|
+
};
|
|
23049
|
+
};
|
|
23050
|
+
};
|
|
23051
|
+
};
|
|
23052
|
+
ApiOAuthClientsController_getGrants: {
|
|
23053
|
+
parameters: {
|
|
23054
|
+
query?: {
|
|
23055
|
+
/** @description Page number (1-based) */
|
|
23056
|
+
page?: number;
|
|
23057
|
+
/** @description Items per page (1-100, default 20) */
|
|
23058
|
+
take?: number;
|
|
23059
|
+
/** @description `windows` adds `effective_from` and `effective_to` to every row and includes assignments outside their window, so the caller applies the window itself. */
|
|
23060
|
+
include?: "windows";
|
|
23061
|
+
};
|
|
23062
|
+
header?: never;
|
|
23063
|
+
path: {
|
|
23064
|
+
id: string;
|
|
23065
|
+
};
|
|
23066
|
+
cookie?: never;
|
|
23067
|
+
};
|
|
23068
|
+
requestBody?: never;
|
|
23069
|
+
responses: {
|
|
23070
|
+
/** @description One page of `(permission, node_id)` pairs: the nodes the client's active roles grant each permission at, in effect now unless `include=windows`, with `model_version` beside the page */
|
|
23071
|
+
200: {
|
|
23072
|
+
headers: {
|
|
23073
|
+
[name: string]: unknown;
|
|
23074
|
+
};
|
|
23075
|
+
content: {
|
|
23076
|
+
"application/json": {
|
|
23077
|
+
/** @description The version of the authorization model these rows describe. A client that evaluates from them refuses a version it does not know rather than guessing. */
|
|
23078
|
+
model_version: number;
|
|
23079
|
+
items: components["schemas"]["IdentityGrantResponseDto"][];
|
|
23080
|
+
pagination: components["schemas"]["PageMetaDto"];
|
|
23081
|
+
};
|
|
23082
|
+
};
|
|
23083
|
+
};
|
|
23084
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
23085
|
+
400: {
|
|
23086
|
+
headers: {
|
|
23087
|
+
[name: string]: unknown;
|
|
23088
|
+
};
|
|
23089
|
+
content: {
|
|
23090
|
+
/**
|
|
23091
|
+
* @example {
|
|
23092
|
+
* "error": {
|
|
23093
|
+
* "statusCode": 400,
|
|
23094
|
+
* "code": null,
|
|
23095
|
+
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
23096
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23097
|
+
* "path": "/api/v1/oauth-clients/{id}/grants",
|
|
23098
|
+
* "method": "GET"
|
|
23099
|
+
* }
|
|
23100
|
+
* }
|
|
23101
|
+
*/
|
|
23102
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23103
|
+
};
|
|
23104
|
+
};
|
|
23105
|
+
/** @description Invalid or expired token */
|
|
23106
|
+
401: {
|
|
23107
|
+
headers: {
|
|
23108
|
+
[name: string]: unknown;
|
|
23109
|
+
};
|
|
23110
|
+
content: {
|
|
23111
|
+
/**
|
|
23112
|
+
* @example {
|
|
23113
|
+
* "error": {
|
|
23114
|
+
* "statusCode": 401,
|
|
23115
|
+
* "code": null,
|
|
23116
|
+
* "message": "Invalid or expired token",
|
|
23117
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23118
|
+
* "path": "/api/v1/oauth-clients",
|
|
23119
|
+
* "method": "GET"
|
|
23120
|
+
* }
|
|
23121
|
+
* }
|
|
23122
|
+
*/
|
|
23123
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23124
|
+
};
|
|
23125
|
+
};
|
|
23126
|
+
/** @description The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment */
|
|
23127
|
+
403: {
|
|
23128
|
+
headers: {
|
|
23129
|
+
[name: string]: unknown;
|
|
23130
|
+
};
|
|
23131
|
+
content: {
|
|
23132
|
+
/**
|
|
23133
|
+
* @example {
|
|
23134
|
+
* "error": {
|
|
23135
|
+
* "statusCode": 403,
|
|
23136
|
+
* "code": null,
|
|
23137
|
+
* "message": "The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment",
|
|
23138
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23139
|
+
* "path": "/api/v1/oauth-clients",
|
|
23140
|
+
* "method": "GET"
|
|
23141
|
+
* }
|
|
23142
|
+
* }
|
|
23143
|
+
*/
|
|
23144
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23145
|
+
};
|
|
23146
|
+
};
|
|
23147
|
+
/** @description No OAuth client with that id exists in this Environment */
|
|
23148
|
+
404: {
|
|
23149
|
+
headers: {
|
|
23150
|
+
[name: string]: unknown;
|
|
23151
|
+
};
|
|
23152
|
+
content: {
|
|
23153
|
+
/**
|
|
23154
|
+
* @example {
|
|
23155
|
+
* "error": {
|
|
23156
|
+
* "statusCode": 404,
|
|
23157
|
+
* "code": null,
|
|
23158
|
+
* "message": "No OAuth client with that id exists in this Environment",
|
|
23159
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23160
|
+
* "path": "/api/v1/oauth-clients/{id}/grants",
|
|
23161
|
+
* "method": "GET"
|
|
23162
|
+
* }
|
|
23163
|
+
* }
|
|
23164
|
+
*/
|
|
23165
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23166
|
+
};
|
|
23167
|
+
};
|
|
23168
|
+
};
|
|
23169
|
+
};
|
|
23170
|
+
ApiApiKeysController_list: {
|
|
23171
|
+
parameters: {
|
|
23172
|
+
query?: {
|
|
23173
|
+
/** @description Page number (1-based) */
|
|
23174
|
+
page?: number;
|
|
23175
|
+
/** @description Items per page (1-100, default 20) */
|
|
23176
|
+
take?: number;
|
|
23177
|
+
/** @description Search key names */
|
|
23178
|
+
q?: string;
|
|
23179
|
+
/** @description Sort column. Defaults to `created`, newest first. */
|
|
23180
|
+
sort_by?: "name" | "created";
|
|
23181
|
+
/** @description Sort direction */
|
|
23182
|
+
order?: "asc" | "desc";
|
|
23183
|
+
};
|
|
23184
|
+
header?: never;
|
|
23185
|
+
path?: never;
|
|
23186
|
+
cookie?: never;
|
|
23187
|
+
};
|
|
23188
|
+
requestBody?: never;
|
|
23189
|
+
responses: {
|
|
23190
|
+
/** @description Paginated list */
|
|
23191
|
+
200: {
|
|
23192
|
+
headers: {
|
|
23193
|
+
[name: string]: unknown;
|
|
23194
|
+
};
|
|
23195
|
+
content: {
|
|
23196
|
+
"application/json": {
|
|
23197
|
+
items: components["schemas"]["ApiKeyResponseDto"][];
|
|
23198
|
+
pagination: components["schemas"]["PageMetaDto"];
|
|
23199
|
+
};
|
|
23200
|
+
};
|
|
23201
|
+
};
|
|
23202
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
23203
|
+
400: {
|
|
23204
|
+
headers: {
|
|
23205
|
+
[name: string]: unknown;
|
|
23206
|
+
};
|
|
23207
|
+
content: {
|
|
23208
|
+
/**
|
|
23209
|
+
* @example {
|
|
23210
|
+
* "error": {
|
|
23211
|
+
* "statusCode": 400,
|
|
23212
|
+
* "code": null,
|
|
23213
|
+
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
23214
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23215
|
+
* "path": "/api/v1/api-keys",
|
|
23216
|
+
* "method": "GET"
|
|
23217
|
+
* }
|
|
23218
|
+
* }
|
|
23219
|
+
*/
|
|
23220
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23221
|
+
};
|
|
23222
|
+
};
|
|
23223
|
+
/** @description Invalid or expired token */
|
|
23224
|
+
401: {
|
|
23225
|
+
headers: {
|
|
23226
|
+
[name: string]: unknown;
|
|
23227
|
+
};
|
|
23228
|
+
content: {
|
|
23229
|
+
/**
|
|
23230
|
+
* @example {
|
|
23231
|
+
* "error": {
|
|
23232
|
+
* "statusCode": 401,
|
|
23233
|
+
* "code": null,
|
|
23234
|
+
* "message": "Invalid or expired token",
|
|
23235
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23236
|
+
* "path": "/api/v1/api-keys",
|
|
23237
|
+
* "method": "GET"
|
|
23238
|
+
* }
|
|
23239
|
+
* }
|
|
23240
|
+
*/
|
|
23241
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23242
|
+
};
|
|
23243
|
+
};
|
|
23244
|
+
/** @description The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment */
|
|
23245
|
+
403: {
|
|
23246
|
+
headers: {
|
|
23247
|
+
[name: string]: unknown;
|
|
23248
|
+
};
|
|
23249
|
+
content: {
|
|
23250
|
+
/**
|
|
23251
|
+
* @example {
|
|
23252
|
+
* "error": {
|
|
23253
|
+
* "statusCode": 403,
|
|
23254
|
+
* "code": null,
|
|
23255
|
+
* "message": "The bearer token is not an admin or platform token, or the caller lacks the permission this operation checks: a scoped API key without that scope, an admin without the Account capability that covers it, or, for a node-scoped check, a node outside this Environment",
|
|
23256
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23257
|
+
* "path": "/api/v1/api-keys",
|
|
23258
|
+
* "method": "GET"
|
|
23259
|
+
* }
|
|
23260
|
+
* }
|
|
23261
|
+
*/
|
|
23262
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23263
|
+
};
|
|
23264
|
+
};
|
|
23265
|
+
};
|
|
23266
|
+
};
|
|
23267
|
+
ApiApiKeysController_create: {
|
|
23268
|
+
parameters: {
|
|
23269
|
+
query?: never;
|
|
23270
|
+
header?: never;
|
|
23271
|
+
path?: never;
|
|
23272
|
+
cookie?: never;
|
|
23273
|
+
};
|
|
23274
|
+
requestBody: {
|
|
23275
|
+
content: {
|
|
23276
|
+
"application/json": components["schemas"]["CreateApiKeyDto"];
|
|
23277
|
+
};
|
|
23278
|
+
};
|
|
23279
|
+
responses: {
|
|
23280
|
+
/** @description API key created — key value is only shown once */
|
|
23281
|
+
201: {
|
|
23282
|
+
headers: {
|
|
23283
|
+
[name: string]: unknown;
|
|
23284
|
+
};
|
|
23285
|
+
content: {
|
|
23286
|
+
"application/json": {
|
|
23287
|
+
data: components["schemas"]["ApiKeyCreatedResponseDto"];
|
|
23288
|
+
};
|
|
23289
|
+
};
|
|
23290
|
+
};
|
|
23291
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
23292
|
+
400: {
|
|
23293
|
+
headers: {
|
|
23294
|
+
[name: string]: unknown;
|
|
23295
|
+
};
|
|
23296
|
+
content: {
|
|
23297
|
+
/**
|
|
23298
|
+
* @example {
|
|
23299
|
+
* "error": {
|
|
23300
|
+
* "statusCode": 400,
|
|
23301
|
+
* "code": null,
|
|
23302
|
+
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
23303
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23304
|
+
* "path": "/api/v1/api-keys",
|
|
23305
|
+
* "method": "POST"
|
|
23306
|
+
* }
|
|
23307
|
+
* }
|
|
23308
|
+
*/
|
|
23309
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23310
|
+
};
|
|
23311
|
+
};
|
|
23312
|
+
/** @description Invalid or expired token */
|
|
23313
|
+
401: {
|
|
23314
|
+
headers: {
|
|
23315
|
+
[name: string]: unknown;
|
|
23316
|
+
};
|
|
23317
|
+
content: {
|
|
23318
|
+
/**
|
|
23319
|
+
* @example {
|
|
23320
|
+
* "error": {
|
|
23321
|
+
* "statusCode": 401,
|
|
23322
|
+
* "code": null,
|
|
23323
|
+
* "message": "Invalid or expired token",
|
|
23324
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23325
|
+
* "path": "/api/v1/api-keys",
|
|
23326
|
+
* "method": "GET"
|
|
23327
|
+
* }
|
|
23328
|
+
* }
|
|
23329
|
+
*/
|
|
23330
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23331
|
+
};
|
|
23332
|
+
};
|
|
23333
|
+
/** @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`) */
|
|
23334
|
+
403: {
|
|
23335
|
+
headers: {
|
|
23336
|
+
[name: string]: unknown;
|
|
23337
|
+
};
|
|
23338
|
+
content: {
|
|
23339
|
+
/**
|
|
23340
|
+
* @example {
|
|
23341
|
+
* "error": {
|
|
23342
|
+
* "statusCode": 403,
|
|
23343
|
+
* "code": null,
|
|
23344
|
+
* "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`)",
|
|
23345
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23346
|
+
* "path": "/api/v1/api-keys",
|
|
23347
|
+
* "method": "POST"
|
|
23348
|
+
* }
|
|
23349
|
+
* }
|
|
23350
|
+
*/
|
|
23351
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23352
|
+
};
|
|
23353
|
+
};
|
|
23354
|
+
/** @description The account has reached its plan's monthly limit on active machine credentials (`m2m_tokens`: API keys and machine clients); `data` carries the limit, the usage and an upgrade URL */
|
|
23355
|
+
409: {
|
|
23356
|
+
headers: {
|
|
23357
|
+
[name: string]: unknown;
|
|
23358
|
+
};
|
|
23359
|
+
content: {
|
|
23360
|
+
/**
|
|
23361
|
+
* @example {
|
|
23362
|
+
* "error": {
|
|
23363
|
+
* "statusCode": 409,
|
|
23364
|
+
* "code": null,
|
|
23365
|
+
* "message": "The account has reached its plan's monthly limit on active machine credentials (`m2m_tokens`: API keys and machine clients); `data` carries the limit, the usage and an upgrade URL",
|
|
23366
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23367
|
+
* "path": "/api/v1/api-keys",
|
|
23368
|
+
* "method": "POST"
|
|
23369
|
+
* }
|
|
23370
|
+
* }
|
|
23371
|
+
*/
|
|
23372
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23373
|
+
};
|
|
23374
|
+
};
|
|
23375
|
+
/** @description The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key. */
|
|
23376
|
+
422: {
|
|
23377
|
+
headers: {
|
|
23378
|
+
[name: string]: unknown;
|
|
23379
|
+
};
|
|
23380
|
+
content: {
|
|
23381
|
+
/**
|
|
23382
|
+
* @example {
|
|
23383
|
+
* "error": {
|
|
23384
|
+
* "statusCode": 422,
|
|
23385
|
+
* "code": null,
|
|
23386
|
+
* "message": "The `Idempotency-Key` was already used by this caller for a request with a different method, path or body. A replay must repeat the original request exactly; a new request takes a new key.",
|
|
23387
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23388
|
+
* "path": "/api/v1/api-keys",
|
|
23389
|
+
* "method": "POST"
|
|
23390
|
+
* }
|
|
23391
|
+
* }
|
|
23392
|
+
*/
|
|
23393
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23394
|
+
};
|
|
23395
|
+
};
|
|
23396
|
+
/** @description More than 20 create requests in a minute from this caller (`x-canopy-rate-limit`); retry after the window */
|
|
23397
|
+
429: {
|
|
23398
|
+
headers: {
|
|
23399
|
+
[name: string]: unknown;
|
|
23400
|
+
};
|
|
23401
|
+
content: {
|
|
23402
|
+
/**
|
|
23403
|
+
* @example {
|
|
23404
|
+
* "error": {
|
|
23405
|
+
* "statusCode": 429,
|
|
23406
|
+
* "code": null,
|
|
23407
|
+
* "message": "More than 20 create requests in a minute from this caller (`x-canopy-rate-limit`); retry after the window",
|
|
23408
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23409
|
+
* "path": "/api/v1/api-keys",
|
|
23410
|
+
* "method": "POST"
|
|
23411
|
+
* }
|
|
23412
|
+
* }
|
|
23413
|
+
*/
|
|
23414
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23415
|
+
};
|
|
23416
|
+
};
|
|
23417
|
+
};
|
|
23418
|
+
};
|
|
23419
|
+
ApiApiKeysController_delete: {
|
|
23420
|
+
parameters: {
|
|
23421
|
+
query?: never;
|
|
23422
|
+
header?: never;
|
|
23423
|
+
path: {
|
|
23424
|
+
id: string;
|
|
23425
|
+
};
|
|
23426
|
+
cookie?: never;
|
|
23427
|
+
};
|
|
23428
|
+
requestBody?: never;
|
|
23429
|
+
responses: {
|
|
23430
|
+
/** @description API key deleted */
|
|
23431
|
+
204: {
|
|
23432
|
+
headers: {
|
|
23433
|
+
[name: string]: unknown;
|
|
23434
|
+
};
|
|
23435
|
+
content?: never;
|
|
23436
|
+
};
|
|
23437
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
23438
|
+
400: {
|
|
23439
|
+
headers: {
|
|
23440
|
+
[name: string]: unknown;
|
|
23441
|
+
};
|
|
23442
|
+
content: {
|
|
23443
|
+
/**
|
|
23444
|
+
* @example {
|
|
23445
|
+
* "error": {
|
|
23446
|
+
* "statusCode": 400,
|
|
23447
|
+
* "code": null,
|
|
23448
|
+
* "message": "The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
23449
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23450
|
+
* "path": "/api/v1/api-keys/{id}",
|
|
23451
|
+
* "method": "DELETE"
|
|
23452
|
+
* }
|
|
23453
|
+
* }
|
|
23454
|
+
*/
|
|
23455
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23456
|
+
};
|
|
23457
|
+
};
|
|
23458
|
+
/** @description Invalid or expired token */
|
|
23459
|
+
401: {
|
|
23460
|
+
headers: {
|
|
23461
|
+
[name: string]: unknown;
|
|
23462
|
+
};
|
|
23463
|
+
content: {
|
|
23464
|
+
/**
|
|
23465
|
+
* @example {
|
|
23466
|
+
* "error": {
|
|
23467
|
+
* "statusCode": 401,
|
|
23468
|
+
* "code": null,
|
|
23469
|
+
* "message": "Invalid or expired token",
|
|
23470
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23471
|
+
* "path": "/api/v1/api-keys",
|
|
23472
|
+
* "method": "GET"
|
|
23473
|
+
* }
|
|
23474
|
+
* }
|
|
23475
|
+
*/
|
|
23476
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
23477
|
+
};
|
|
23478
|
+
};
|
|
23479
|
+
/** @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`) */
|
|
22580
23480
|
403: {
|
|
22581
23481
|
headers: {
|
|
22582
23482
|
[name: string]: unknown;
|
|
@@ -23400,8 +24300,27 @@ interface LocalAuthorizerOptions {
|
|
|
23400
24300
|
/** Injectable clock, for tests. */
|
|
23401
24301
|
now?: () => number;
|
|
23402
24302
|
}
|
|
24303
|
+
/**
|
|
24304
|
+
* Which kind of principal a subject id names. An identity is a person; a
|
|
24305
|
+
* `service` is a machine OAuth client acting for itself, whose id is its
|
|
24306
|
+
* `client_id` (the `sub` of its token). Both ids are UUIDs, so the kind is
|
|
24307
|
+
* stated rather than guessed: it decides where the grants are read from.
|
|
24308
|
+
*/
|
|
24309
|
+
type PrincipalType = "identity" | "service";
|
|
24310
|
+
/** Names the subject's kind on the calls that take a bare id. */
|
|
24311
|
+
interface SubjectOptions {
|
|
24312
|
+
/** Defaults to `identity`. */
|
|
24313
|
+
principalType?: PrincipalType;
|
|
24314
|
+
}
|
|
23403
24315
|
interface LocalAuthorizationQuery {
|
|
24316
|
+
/** The subject: an identity's id, or a machine client's `client_id`. */
|
|
23404
24317
|
identity_id: string;
|
|
24318
|
+
/**
|
|
24319
|
+
* What `identity_id` names. Defaults to `identity`; set `service` for a
|
|
24320
|
+
* machine client, whose grants are read from its own endpoint. Read it off
|
|
24321
|
+
* the verified token's `type` claim, never off the request.
|
|
24322
|
+
*/
|
|
24323
|
+
principal_type?: PrincipalType;
|
|
23405
24324
|
permission: string;
|
|
23406
24325
|
/** Defaults to `node`, which is the strict question. */
|
|
23407
24326
|
scope?: "node" | "app_wide";
|
|
@@ -23486,7 +24405,7 @@ declare class LocalAuthorizer {
|
|
|
23486
24405
|
* root the readable hierarchy does not contain raises
|
|
23487
24406
|
* `authorizer.hierarchy_incomplete`, as a check at such a node does.
|
|
23488
24407
|
*/
|
|
23489
|
-
grantRoots(identityId: string, permission: string): Promise<{
|
|
24408
|
+
grantRoots(identityId: string, permission: string, subject?: SubjectOptions): Promise<{
|
|
23490
24409
|
roots: string[];
|
|
23491
24410
|
envWide: boolean;
|
|
23492
24411
|
}>;
|
|
@@ -23506,19 +24425,19 @@ declare class LocalAuthorizer {
|
|
|
23506
24425
|
*/
|
|
23507
24426
|
accessibleNodes(identityId: string, permission: string, options?: {
|
|
23508
24427
|
maxNodes?: number;
|
|
23509
|
-
}): Promise<AccessibleNodes>;
|
|
24428
|
+
} & SubjectOptions): Promise<AccessibleNodes>;
|
|
23510
24429
|
/**
|
|
23511
24430
|
* Every permission the identity holds at the node, by grant or by
|
|
23512
24431
|
* inheritance: the list a screen renders its controls from, answered from
|
|
23513
24432
|
* the same cached grant roots and tree a check uses.
|
|
23514
24433
|
*/
|
|
23515
|
-
permissionsAt(identityId: string, nodeId: string): Promise<string[]>;
|
|
24434
|
+
permissionsAt(identityId: string, nodeId: string, subject?: SubjectOptions): Promise<string[]>;
|
|
23516
24435
|
/**
|
|
23517
24436
|
* {@link permissionsAt} for several nodes at once, as node → permissions:
|
|
23518
24437
|
* the rows of a list each with their own controls, answered from one read
|
|
23519
24438
|
* of the grant roots and one walk per node.
|
|
23520
24439
|
*/
|
|
23521
|
-
permissionsAtMany(identityId: string, nodeIds: readonly string[]): Promise<Map<string, string[]>>;
|
|
24440
|
+
permissionsAtMany(identityId: string, nodeIds: readonly string[], subject?: SubjectOptions): Promise<Map<string, string[]>>;
|
|
23522
24441
|
private decide;
|
|
23523
24442
|
/** Counters for observability — how much traffic the cache is actually saving. */
|
|
23524
24443
|
snapshot(): LocalAuthorizerStats;
|
|
@@ -23529,6 +24448,8 @@ declare class LocalAuthorizer {
|
|
|
23529
24448
|
* cached hierarchy and every other identity's entries stay warm. This is
|
|
23530
24449
|
* the shape an assignment webhook wants: the event names the identity
|
|
23531
24450
|
* whose authority moved, and nothing else needs to pay a refetch for it.
|
|
24451
|
+
* An event naming a machine client (`oauth_client_id`, with `identity_id`
|
|
24452
|
+
* null) passes that client's `client_id` with `principalType: "service"`.
|
|
23532
24453
|
*
|
|
23533
24454
|
* With no argument, everything goes: grants and the hierarchy tree. Not
|
|
23534
24455
|
* needed in normal operation, where entries expire on their own; useful in
|
|
@@ -23544,7 +24465,7 @@ declare class LocalAuthorizer {
|
|
|
23544
24465
|
* the TTL, and webhook-driven invalidation is a latency optimization on
|
|
23545
24466
|
* top of it — size the TTL to the revocation latency you can promise.
|
|
23546
24467
|
*/
|
|
23547
|
-
invalidate(identityId?: string): void;
|
|
24468
|
+
invalidate(identityId?: string, subject?: SubjectOptions): void;
|
|
23548
24469
|
/** Fire the decision hooks, after the verdict and without waiting on them. */
|
|
23549
24470
|
private announce;
|
|
23550
24471
|
/** The node and its ancestors, from the tree this client can read. */
|
|
@@ -23774,7 +24695,7 @@ declare function tokenErrorStatus(error: unknown): FailureStatus;
|
|
|
23774
24695
|
* when the endpoint is not served (an SDK newer than the API), or on a 4xx
|
|
23775
24696
|
* nobody anticipated. No retry fixes these.
|
|
23776
24697
|
* - `503` when Canopy did not answer, or answered 429 or 5xx.
|
|
23777
|
-
* - `403` when Canopy answered that the identity is not in this Environment.
|
|
24698
|
+
* - `403` when Canopy answered that the identity or machine client is not in this Environment.
|
|
23778
24699
|
*/
|
|
23779
24700
|
declare function authorizationErrorStatus(error: unknown): FailureStatus;
|
|
23780
24701
|
|
|
@@ -23807,6 +24728,17 @@ interface TokenVerifierOptions {
|
|
|
23807
24728
|
* minted for one client being replayed at another.
|
|
23808
24729
|
*/
|
|
23809
24730
|
audience?: string;
|
|
24731
|
+
/**
|
|
24732
|
+
* The audience a machine client's `service` token must name: the
|
|
24733
|
+
* identifier your API answers to (`https://api.example.com`), the one the
|
|
24734
|
+
* client asked for with `audience` or the Environment's default audience.
|
|
24735
|
+
*
|
|
24736
|
+
* A service token always carries `aud`, and it names the API rather than a
|
|
24737
|
+
* client, so `audience` never applies to it. Admitting a service token
|
|
24738
|
+
* without this throws `token.audience_unverified`, so a token minted for
|
|
24739
|
+
* another of your APIs is never accepted by accident.
|
|
24740
|
+
*/
|
|
24741
|
+
serviceAudience?: string;
|
|
23810
24742
|
/** Where the signing keys live. Defaults to `${issuer}/.well-known/jwks.json`. */
|
|
23811
24743
|
jwksUri?: string;
|
|
23812
24744
|
/** How long a fetched key set is reused. Defaults to 10 minutes. */
|
|
@@ -23839,10 +24771,12 @@ interface TokenVerifierOptions {
|
|
|
23839
24771
|
* The principal types accepted, matched against the `type` claim. Defaults to
|
|
23840
24772
|
* `["identity"]`: the people who sign in to your application.
|
|
23841
24773
|
*
|
|
23842
|
-
* Canopy also signs tokens for
|
|
23843
|
-
*
|
|
23844
|
-
*
|
|
23845
|
-
*
|
|
24774
|
+
* Canopy also signs tokens for machine clients (`service`, obtained with
|
|
24775
|
+
* the `client_credentials` grant), its own administrators (`user`), its
|
|
24776
|
+
* staff (`platform`) and, for some flows, API keys (`api_key`), all with the
|
|
24777
|
+
* same keys and issuer. A backend that serves your end users should accept
|
|
24778
|
+
* none of them, so they are refused unless you name them here, or admit
|
|
24779
|
+
* them for one call with {@link VerifyCallOptions.alsoAllow}.
|
|
23846
24780
|
*/
|
|
23847
24781
|
allowedTypes?: ReadonlyArray<CanopyTokenClaims["type"]>;
|
|
23848
24782
|
/** Injectable for tests and for runtimes with a non-global fetch. */
|
|
@@ -23855,10 +24789,20 @@ interface TokenVerifierOptions {
|
|
|
23855
24789
|
* anything added later reachable without a version bump.
|
|
23856
24790
|
*/
|
|
23857
24791
|
interface CanopyTokenClaims {
|
|
23858
|
-
/**
|
|
24792
|
+
/**
|
|
24793
|
+
* The principal this token acts as: an identity's id, or, on a `service`
|
|
24794
|
+
* token, the machine client's `client_id`.
|
|
24795
|
+
*/
|
|
23859
24796
|
sub: string;
|
|
23860
24797
|
/** Which kind of principal `sub` is. */
|
|
23861
|
-
type: "user" | "identity" | "api_key" | "platform";
|
|
24798
|
+
type: "user" | "identity" | "service" | "api_key" | "platform";
|
|
24799
|
+
/**
|
|
24800
|
+
* How a `service` token was obtained: always `client_credentials`. Absent
|
|
24801
|
+
* on every other type.
|
|
24802
|
+
*/
|
|
24803
|
+
gty?: "client_credentials";
|
|
24804
|
+
/** The OAuth client the token was issued to; on a `service` token, `sub`. */
|
|
24805
|
+
client_id?: string;
|
|
23862
24806
|
iss: string;
|
|
23863
24807
|
exp: number;
|
|
23864
24808
|
iat?: number;
|
|
@@ -23899,8 +24843,25 @@ interface CanopyTokenClaims {
|
|
|
23899
24843
|
* none at all.
|
|
23900
24844
|
*/
|
|
23901
24845
|
org_roles?: string[];
|
|
24846
|
+
/**
|
|
24847
|
+
* The ids of the roles in `org_roles`, in the same order. A role's name is
|
|
24848
|
+
* unique only within its tier (the Environment's roles, or one
|
|
24849
|
+
* organization's own), so the id is what identifies a role across
|
|
24850
|
+
* organizations. Minted with `org_id` and `org_roles`.
|
|
24851
|
+
*/
|
|
24852
|
+
org_role_ids?: string[];
|
|
23902
24853
|
[claim: string]: unknown;
|
|
23903
24854
|
}
|
|
24855
|
+
/** What one call to {@link TokenVerifier.verify} may widen. */
|
|
24856
|
+
interface VerifyCallOptions {
|
|
24857
|
+
/**
|
|
24858
|
+
* Principal types to accept for this call on top of `allowedTypes`, for a
|
|
24859
|
+
* route that admits them: typically `["service"]`, a machine client's
|
|
24860
|
+
* token, on a route built for machines. The verifier's own setting is
|
|
24861
|
+
* unchanged, so every other route keeps refusing them.
|
|
24862
|
+
*/
|
|
24863
|
+
alsoAllow?: ReadonlyArray<CanopyTokenClaims["type"]>;
|
|
24864
|
+
}
|
|
23904
24865
|
/**
|
|
23905
24866
|
* The organization context a verified token carries: which organization the
|
|
23906
24867
|
* session is acting in, and the roles it holds at that organization's node.
|
|
@@ -23910,6 +24871,8 @@ interface CanopyOrgContext {
|
|
|
23910
24871
|
orgId: string;
|
|
23911
24872
|
/** The roles' names (not ids) held at the organization node: what `org_roles` carries. Empty for a member holding none there. */
|
|
23912
24873
|
orgRoles: string[];
|
|
24874
|
+
/** The same roles' ids, in the same order: what `org_role_ids` carries. Compare by id, since a name is unique only within its tier. */
|
|
24875
|
+
orgRoleIds: string[];
|
|
23913
24876
|
}
|
|
23914
24877
|
/**
|
|
23915
24878
|
* The organization context of a verified token, or `null` when it has none.
|
|
@@ -23936,6 +24899,7 @@ declare function orgContext(claims: CanopyTokenClaims): CanopyOrgContext | null;
|
|
|
23936
24899
|
declare class TokenVerifier {
|
|
23937
24900
|
private readonly issuer;
|
|
23938
24901
|
private readonly audience;
|
|
24902
|
+
private readonly serviceAudience;
|
|
23939
24903
|
private readonly jwksUri;
|
|
23940
24904
|
private readonly jwksCacheMaxAgeMs;
|
|
23941
24905
|
private readonly jwksMinRefetchIntervalMs;
|
|
@@ -23960,7 +24924,7 @@ declare class TokenVerifier {
|
|
|
23960
24924
|
* Order matters: the signature is checked before any claim is believed, so
|
|
23961
24925
|
* nothing downstream ever reads an unverified payload.
|
|
23962
24926
|
*/
|
|
23963
|
-
verify(token: string): Promise<CanopyTokenClaims>;
|
|
24927
|
+
verify(token: string, options?: VerifyCallOptions): Promise<CanopyTokenClaims>;
|
|
23964
24928
|
/** Everything checked after the signature is known good. */
|
|
23965
24929
|
private assertClaims;
|
|
23966
24930
|
/**
|
|
@@ -23971,6 +24935,9 @@ declare class TokenVerifier {
|
|
|
23971
24935
|
* token being verified by something that never said which client it is, and
|
|
23972
24936
|
* ignoring it would accept a token minted for a different client. So it
|
|
23973
24937
|
* throws and names the option.
|
|
24938
|
+
*
|
|
24939
|
+
* A service token names the API it was minted for, never a client, so it
|
|
24940
|
+
* is held to `serviceAudience` alone, which it must name.
|
|
23974
24941
|
*/
|
|
23975
24942
|
private assertAudience;
|
|
23976
24943
|
/**
|
|
@@ -24040,4 +25007,4 @@ type WebhookEventData<Name extends WebhookEventName> = WebhookEvent<Name>["data"
|
|
|
24040
25007
|
*/
|
|
24041
25008
|
declare function isWebhookEvent<Name extends WebhookEventName>(delivery: WebhookDelivery, name: Name): delivery is WebhookEvent<Name>;
|
|
24042
25009
|
|
|
24043
|
-
export { type AccessibleNodes, type AssignmentItem, Assignments, 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 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, Organizations, type PageFetcher, type PageParams, type PaginateOptions, type Pagination, Paginator, type PartialSuccess, type PermissionItem, Permissions, type QueryParams, type RequestBody, type RequestOptions, type ResponseBody, type RoleItem, Roles, type Schema, TokenVerifier, type TokenVerifierOptions, type WebhookDelivery, type WebhookEvent, type WebhookEventData, type WebhookEventName, authorizationErrorStatus, type components, isCanopyAuthorizerError, isCanopyConnectionError, isCanopyError, isCanopyTokenError, isCursorPagination, isWebhookEvent, type operations, orgContext, paginate, type paths, tokenErrorStatus, withConcurrency };
|
|
25010
|
+
export { type AccessibleNodes, type AssignmentItem, Assignments, 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 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, Organizations, type PageFetcher, type PageParams, type PaginateOptions, type Pagination, Paginator, type PartialSuccess, type PermissionItem, Permissions, type PrincipalType, type QueryParams, type RequestBody, type RequestOptions, type ResponseBody, type RoleItem, Roles, type Schema, type SubjectOptions, TokenVerifier, type TokenVerifierOptions, type VerifyCallOptions, type WebhookDelivery, type WebhookEvent, type WebhookEventData, type WebhookEventName, authorizationErrorStatus, type components, isCanopyAuthorizerError, isCanopyConnectionError, isCanopyError, isCanopyTokenError, isCursorPagination, isWebhookEvent, type operations, orgContext, paginate, type paths, tokenErrorStatus, withConcurrency };
|