@canopy-io/node 0.14.0 → 0.15.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 +29 -0
- package/dist/index.cjs +86 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3192 -218
- package/dist/index.d.ts +3192 -218
- package/dist/index.js +86 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1104,7 +1104,7 @@ interface paths {
|
|
|
1104
1104
|
};
|
|
1105
1105
|
/**
|
|
1106
1106
|
* What the caller administers in an organization
|
|
1107
|
-
* @description The authority read a customer's admin screen renders from: whether the caller holds `canopy:organization.manage` at the organization node (`administers_organization`), the topmost nodes where they hold `canopy:access.manage` inside it (`access_roots`, each with its name, type and the path of names from the organization down to it; the organization node itself when they administer the organization), the same for the structure
|
|
1107
|
+
* @description The authority read a customer's admin screen renders from: whether the caller holds `canopy:organization.manage` at the organization node (`administers_organization`), the topmost nodes where they hold `canopy:access.manage` inside it (`access_roots`, each with its name, type and the path of names from the organization down to it; the organization node itself when they administer the organization), the same for the structure key (empty until it ships), the organization node in `roles_roots` when they may shape the organization's own roles (`canopy:roles.manage` there, or administering the organization), and whether the Environment's schema allows nodes beneath an organization (`has_hierarchy`). Computed from assignments at or beneath the organization node only, so a role held above every organization does not count. The developer's key answers as administering the whole organization. Refused with `403` for a caller holding nothing inside the organization.
|
|
1108
1108
|
*/
|
|
1109
1109
|
get: operations["ApiOrganizationAccessController_me"];
|
|
1110
1110
|
put?: never;
|
|
@@ -1274,7 +1274,7 @@ interface paths {
|
|
|
1274
1274
|
put?: never;
|
|
1275
1275
|
/**
|
|
1276
1276
|
* Create an organization
|
|
1277
|
-
* @description Creates an organization from a `name` (slug auto-derived, display-only) with optional `description`, `metadata`, and `external_id` (your own id for it, unique per Environment; a repeat answers `409 organization.external_id_conflict`, so create-then-store is idempotent). The Environment must have organizations enabled (`409 organization.not_enabled` otherwise); the container is independent of the access model, so flat and hierarchy Environments both hold organizations. Requires the `hierarchy.manage` permission and emits `organization.created
|
|
1277
|
+
* @description Creates an organization from a `name` (slug auto-derived, display-only) with optional `description`, `metadata`, and `external_id` (your own id for it, unique per Environment; a repeat answers `409 organization.external_id_conflict`, so create-then-store is idempotent). The Environment must have organizations enabled (`409 organization.not_enabled` otherwise); the container is independent of the access model, so flat and hierarchy Environments both hold organizations. The organization receives a role of its own for each of the Environment's organization role templates, in the same transaction. `initial_member` names its first administrator, who holds the copy of the default admin template: an identity of the Environment (`identity_id`) becomes a member, or an `email` is invited. Send one of the two (`400 organization.initial_member_invalid`); without a default admin template it answers `400 role_template.default_admin_missing`, and an unknown identity `404 identity.not_found`. In the Console, naming one also requires the `env_identities.manage` capability, and `production_identities.access` in a production Environment. Requires the `hierarchy.manage` permission and emits `organization.created`, a `role.created` per copied role, and the member or invite event.
|
|
1278
1278
|
*/
|
|
1279
1279
|
post: operations["ApiOrganizationsController_createOrganization"];
|
|
1280
1280
|
/**
|
|
@@ -1334,11 +1334,31 @@ interface paths {
|
|
|
1334
1334
|
head?: never;
|
|
1335
1335
|
/**
|
|
1336
1336
|
* Update an organization's authentication policy
|
|
1337
|
-
* @description Sets the organization's own authentication policy. A field set to `null` inherits the Environment again. The policy can only tighten the Environment's settings: `mfa_required` can be true where the Environment leaves MFA optional, `mfa_factor_allowlist` must be a subset of the Environment's, `mfa_after_sso` can be `require` where the Environment exempts, and `require_sso` refuses password and code logins for members. Returns `400` (`organization.policy_loosens`) when a value would loosen the Environment, `409` when `If-Match` does not match the policy version. Requires the `hierarchy.manage` permission at the organization and emits `organization.policy.updated`.
|
|
1337
|
+
* @description Sets the organization's own authentication policy. A field set to `null` inherits the Environment again. The policy can only tighten the Environment's settings: `mfa_required` can be true where the Environment leaves MFA optional, `mfa_factor_allowlist` must be a subset of the Environment's, `mfa_after_sso` can be `require` where the Environment exempts, and `require_sso` refuses password and code logins for members. `staff_entry` is the organization's own decision: `refused` turns away the Environment's staff (a role at the Environment root), records each attempt, and ends the sessions staff have inside at their next refresh. Returns `400` (`organization.policy_loosens`) when a value would loosen the Environment, `409` when `If-Match` does not match the policy version. Requires the `hierarchy.manage` permission at the organization and emits `organization.policy.updated`.
|
|
1338
1338
|
*/
|
|
1339
1339
|
patch: operations["ApiOrganizationsController_updatePolicy"];
|
|
1340
1340
|
trace?: never;
|
|
1341
1341
|
};
|
|
1342
|
+
"/api/v1/organizations/{id}/staff-activity": {
|
|
1343
|
+
parameters: {
|
|
1344
|
+
query?: never;
|
|
1345
|
+
header?: never;
|
|
1346
|
+
path?: never;
|
|
1347
|
+
cookie?: never;
|
|
1348
|
+
};
|
|
1349
|
+
/**
|
|
1350
|
+
* List staff entries into an organization
|
|
1351
|
+
* @description One page of the Environment's staff (identities holding a role at the Environment root) entering this organization, and of the attempts it refused while its policy's `staff_entry` was `refused`, newest first. Each row names the staff member and the roles they hold at the root, which is what they could do inside. `kind` narrows to `entered` or `refused`; `q` searches the staff member's email and the role names; `sort_by` is `created` (the default, newest first) or `actor`. Requires the `hierarchy.view` permission or `canopy:organization.manage` at the organization.
|
|
1352
|
+
*/
|
|
1353
|
+
get: operations["ApiOrganizationsController_listStaffActivity"];
|
|
1354
|
+
put?: never;
|
|
1355
|
+
post?: never;
|
|
1356
|
+
delete?: never;
|
|
1357
|
+
options?: never;
|
|
1358
|
+
head?: never;
|
|
1359
|
+
patch?: never;
|
|
1360
|
+
trace?: never;
|
|
1361
|
+
};
|
|
1342
1362
|
"/api/v1/organizations/{id}/policy/sso-recovery-codes": {
|
|
1343
1363
|
parameters: {
|
|
1344
1364
|
query?: never;
|
|
@@ -1604,11 +1624,15 @@ interface paths {
|
|
|
1604
1624
|
};
|
|
1605
1625
|
/**
|
|
1606
1626
|
* List the roles an organization may assign
|
|
1607
|
-
* @description The active, assignable roles
|
|
1627
|
+
* @description The active, assignable roles the organization can use, the Environment's and its own, for choosing a member's role or an invitation's and for the organization's roles page. Each carries `grantable`, whether the caller may grant it at the organization node under the grant ceiling (always true for the developer's key), and `holder_count`, how many people in the organization hold it at its node or beneath. System roles are left out, since they cannot be assigned. Requires `hierarchy.view`, or `canopy:organization.manage`, `canopy:access.manage` or `canopy:roles.manage` at the organization node. The response is an unpaginated `{ items }` array.
|
|
1608
1628
|
*/
|
|
1609
1629
|
get: operations["ApiOrganizationsController_listRoles"];
|
|
1610
1630
|
put?: never;
|
|
1611
|
-
|
|
1631
|
+
/**
|
|
1632
|
+
* Create an organization's own role
|
|
1633
|
+
* @description Creates a role the organization owns, with its permissions, held only at the organization node or beneath it. The name is unique within the organization and may not repeat one of the Environment's roles (`409 role.name_taken`). An identity may give only permissions it holds at the organization node (`403 organization.role_permission_not_held`, with the keys in `data`). An organization owns at most 50 roles (`409 organization.role_limit`). `copy_from_role_id` records the role it was copied from. Requires `rbac.manage_roles` or the organization's roles delegation.
|
|
1634
|
+
*/
|
|
1635
|
+
post: operations["ApiOrganizationRolesController_create"];
|
|
1612
1636
|
delete?: never;
|
|
1613
1637
|
options?: never;
|
|
1614
1638
|
head?: never;
|
|
@@ -1923,6 +1947,234 @@ interface paths {
|
|
|
1923
1947
|
patch?: never;
|
|
1924
1948
|
trace?: never;
|
|
1925
1949
|
};
|
|
1950
|
+
"/api/v1/organizations/{id}/oauth-clients": {
|
|
1951
|
+
parameters: {
|
|
1952
|
+
query?: never;
|
|
1953
|
+
header?: never;
|
|
1954
|
+
path?: never;
|
|
1955
|
+
cookie?: never;
|
|
1956
|
+
};
|
|
1957
|
+
/**
|
|
1958
|
+
* List an organization's integrations
|
|
1959
|
+
* @description Lists the integrations an organization owns: machine OAuth clients it created for its own systems, pinned to it. A client the developer pinned to the organization from the Console or `/api/v1/oauth-clients` is not listed. Each row carries the roles it holds. Search with `q`; sort by `name`, `last_active` (when each last obtained a token) or `created`. Needs `canopy:organization.manage` at the organization, or the developer's key, and the Environment's `organization_integrations_enabled` on.
|
|
1960
|
+
*/
|
|
1961
|
+
get: operations["ApiOrganizationIntegrationsController_list"];
|
|
1962
|
+
put?: never;
|
|
1963
|
+
/**
|
|
1964
|
+
* Create an integration
|
|
1965
|
+
* @description Creates a machine OAuth client owned by the organization and pinned to it, with the `client_credentials` grant and the `permissions` scope. Its tokens name the organization and the Environment's default audience. The `client_secret` is returned in this response only. Refused while the Environment has no default audience (`409 organization.integration_audience_missing`), once the organization holds as many as it may (`409 organization.integration_limit`), for a name another of its integrations has (`409 organization.integration_name_taken`), and past the plan's machine-credential allowance (`409 plan_limit_exceeded`).
|
|
1966
|
+
*/
|
|
1967
|
+
post: operations["ApiOrganizationIntegrationsController_create"];
|
|
1968
|
+
delete?: never;
|
|
1969
|
+
options?: never;
|
|
1970
|
+
head?: never;
|
|
1971
|
+
patch?: never;
|
|
1972
|
+
trace?: never;
|
|
1973
|
+
};
|
|
1974
|
+
"/api/v1/organizations/{id}/oauth-client-roles": {
|
|
1975
|
+
parameters: {
|
|
1976
|
+
query?: never;
|
|
1977
|
+
header?: never;
|
|
1978
|
+
path?: never;
|
|
1979
|
+
cookie?: never;
|
|
1980
|
+
};
|
|
1981
|
+
/**
|
|
1982
|
+
* List the roles an organization may give its integrations
|
|
1983
|
+
* @description Lists the roles an integration may hold: the Environment's `organization_integration_role_ids`, less any role that has since gained `canopy:organization.manage`, `canopy:access.manage` or `canopy:roles.manage`. The granting administrator's own ceiling still applies at each node.
|
|
1984
|
+
*/
|
|
1985
|
+
get: operations["ApiOrganizationIntegrationsController_roles"];
|
|
1986
|
+
put?: never;
|
|
1987
|
+
post?: never;
|
|
1988
|
+
delete?: never;
|
|
1989
|
+
options?: never;
|
|
1990
|
+
head?: never;
|
|
1991
|
+
patch?: never;
|
|
1992
|
+
trace?: never;
|
|
1993
|
+
};
|
|
1994
|
+
"/api/v1/organizations/{id}/oauth-clients/{clientId}": {
|
|
1995
|
+
parameters: {
|
|
1996
|
+
query?: never;
|
|
1997
|
+
header?: never;
|
|
1998
|
+
path?: never;
|
|
1999
|
+
cookie?: never;
|
|
2000
|
+
};
|
|
2001
|
+
/**
|
|
2002
|
+
* Get one of an organization's integrations
|
|
2003
|
+
* @description Returns one integration by its `client_id`, with `connection`: the token endpoint, the audience its tokens name (the Environment's default) and how long each token lasts. The secret is never returned.
|
|
2004
|
+
*/
|
|
2005
|
+
get: operations["ApiOrganizationIntegrationsController_get"];
|
|
2006
|
+
put?: never;
|
|
2007
|
+
post?: never;
|
|
2008
|
+
/**
|
|
2009
|
+
* Delete an integration
|
|
2010
|
+
* @description Deletes an integration and every role it holds. Its next token request is refused; a token already issued lasts until it expires.
|
|
2011
|
+
*/
|
|
2012
|
+
delete: operations["ApiOrganizationIntegrationsController_remove"];
|
|
2013
|
+
options?: never;
|
|
2014
|
+
head?: never;
|
|
2015
|
+
/**
|
|
2016
|
+
* Rename, disable or enable an integration
|
|
2017
|
+
* @description Changes an integration's `name` or `is_active`. Send `If-Match` with the integration's `version` to refuse a stale write (`409 version_mismatch`). A disabled integration is refused new tokens straight away; a token already issued lasts until it expires.
|
|
2018
|
+
*/
|
|
2019
|
+
patch: operations["ApiOrganizationIntegrationsController_update"];
|
|
2020
|
+
trace?: never;
|
|
2021
|
+
};
|
|
2022
|
+
"/api/v1/organizations/{id}/oauth-clients/{clientId}/rotate-secret": {
|
|
2023
|
+
parameters: {
|
|
2024
|
+
query?: never;
|
|
2025
|
+
header?: never;
|
|
2026
|
+
path?: never;
|
|
2027
|
+
cookie?: never;
|
|
2028
|
+
};
|
|
2029
|
+
get?: never;
|
|
2030
|
+
put?: never;
|
|
2031
|
+
/**
|
|
2032
|
+
* Rotate an integration's secret
|
|
2033
|
+
* @description Mints a new `client_secret`, returned in this response only. The replaced secret keeps working for 24 hours (`previous_secret_expires_at`); `expire_previous: "now"` stops it at once, for a secret that has leaked.
|
|
2034
|
+
*/
|
|
2035
|
+
post: operations["ApiOrganizationIntegrationsController_rotateSecret"];
|
|
2036
|
+
delete?: never;
|
|
2037
|
+
options?: never;
|
|
2038
|
+
head?: never;
|
|
2039
|
+
patch?: never;
|
|
2040
|
+
trace?: never;
|
|
2041
|
+
};
|
|
2042
|
+
"/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments": {
|
|
2043
|
+
parameters: {
|
|
2044
|
+
query?: never;
|
|
2045
|
+
header?: never;
|
|
2046
|
+
path?: never;
|
|
2047
|
+
cookie?: never;
|
|
2048
|
+
};
|
|
2049
|
+
/**
|
|
2050
|
+
* List an integration's roles
|
|
2051
|
+
* @description One page of the roles an integration holds, each with its role and node.
|
|
2052
|
+
*/
|
|
2053
|
+
get: operations["ApiOrganizationIntegrationsController_listAssignments"];
|
|
2054
|
+
put?: never;
|
|
2055
|
+
/**
|
|
2056
|
+
* Give an integration a role
|
|
2057
|
+
* @description Gives an integration a role at a node inside its organization. The role must be one the organization may give integrations (`403 organization.integration_role_not_grantable`) and within the granting administrator's ceiling (`403 assignment.grant_ceiling`); a node outside the organization answers `409 oauth.client_outside_organization`.
|
|
2058
|
+
*/
|
|
2059
|
+
post: operations["ApiOrganizationIntegrationsController_assign"];
|
|
2060
|
+
delete?: never;
|
|
2061
|
+
options?: never;
|
|
2062
|
+
head?: never;
|
|
2063
|
+
patch?: never;
|
|
2064
|
+
trace?: never;
|
|
2065
|
+
};
|
|
2066
|
+
"/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments/{assignmentId}": {
|
|
2067
|
+
parameters: {
|
|
2068
|
+
query?: never;
|
|
2069
|
+
header?: never;
|
|
2070
|
+
path?: never;
|
|
2071
|
+
cookie?: never;
|
|
2072
|
+
};
|
|
2073
|
+
get?: never;
|
|
2074
|
+
put?: never;
|
|
2075
|
+
post?: never;
|
|
2076
|
+
/**
|
|
2077
|
+
* Take one of an integration's roles away
|
|
2078
|
+
* @description Removes one of an integration's assignments.
|
|
2079
|
+
*/
|
|
2080
|
+
delete: operations["ApiOrganizationIntegrationsController_removeAssignment"];
|
|
2081
|
+
options?: never;
|
|
2082
|
+
head?: never;
|
|
2083
|
+
/**
|
|
2084
|
+
* Change one of an integration's roles
|
|
2085
|
+
* @description Changes the role or window of one of an integration's assignments, under the same rules as giving one. Send `If-Match` with the assignment's `version`; a stale one answers `409 assignment.version_mismatch`.
|
|
2086
|
+
*/
|
|
2087
|
+
patch: operations["ApiOrganizationIntegrationsController_updateAssignment"];
|
|
2088
|
+
trace?: never;
|
|
2089
|
+
};
|
|
2090
|
+
"/api/v1/organizations/{id}/roles/usage": {
|
|
2091
|
+
parameters: {
|
|
2092
|
+
query?: never;
|
|
2093
|
+
header?: never;
|
|
2094
|
+
path?: never;
|
|
2095
|
+
cookie?: never;
|
|
2096
|
+
};
|
|
2097
|
+
/**
|
|
2098
|
+
* Count an organization's own roles
|
|
2099
|
+
* @description How many roles the organization owns, and the most it may own. Read by the developer's key (`rbac.view_roles`) or a tenant administrator holding `canopy:roles.manage` (or `canopy:organization.manage`) at the organization node.
|
|
2100
|
+
*/
|
|
2101
|
+
get: operations["ApiOrganizationRolesController_usage"];
|
|
2102
|
+
put?: never;
|
|
2103
|
+
post?: never;
|
|
2104
|
+
delete?: never;
|
|
2105
|
+
options?: never;
|
|
2106
|
+
head?: never;
|
|
2107
|
+
patch?: never;
|
|
2108
|
+
trace?: never;
|
|
2109
|
+
};
|
|
2110
|
+
"/api/v1/organizations/{id}/permissions": {
|
|
2111
|
+
parameters: {
|
|
2112
|
+
query?: never;
|
|
2113
|
+
header?: never;
|
|
2114
|
+
path?: never;
|
|
2115
|
+
cookie?: never;
|
|
2116
|
+
};
|
|
2117
|
+
/**
|
|
2118
|
+
* List the permissions a role editor may attach
|
|
2119
|
+
* @description The Environment's permissions, each with `attachable`: whether the caller may put it into one of the organization's roles. An identity may attach only keys it holds at the organization node (`canopy:organization.manage` counts as holding `canopy:access.manage` and `canopy:roles.manage`); the developer's key may attach any. Requires `rbac.manage_roles` or the organization's roles delegation.
|
|
2120
|
+
*/
|
|
2121
|
+
get: operations["ApiOrganizationRolesController_permissions"];
|
|
2122
|
+
put?: never;
|
|
2123
|
+
post?: never;
|
|
2124
|
+
delete?: never;
|
|
2125
|
+
options?: never;
|
|
2126
|
+
head?: never;
|
|
2127
|
+
patch?: never;
|
|
2128
|
+
trace?: never;
|
|
2129
|
+
};
|
|
2130
|
+
"/api/v1/organizations/{id}/roles/{roleId}": {
|
|
2131
|
+
parameters: {
|
|
2132
|
+
query?: never;
|
|
2133
|
+
header?: never;
|
|
2134
|
+
path?: never;
|
|
2135
|
+
cookie?: never;
|
|
2136
|
+
};
|
|
2137
|
+
/**
|
|
2138
|
+
* Get one role an organization can use
|
|
2139
|
+
* @description One role the organization can use, its own or the Environment's, with the permissions it carries. Requires `rbac.view_roles` or the organization's roles delegation.
|
|
2140
|
+
*/
|
|
2141
|
+
get: operations["ApiOrganizationRolesController_get"];
|
|
2142
|
+
put?: never;
|
|
2143
|
+
post?: never;
|
|
2144
|
+
/**
|
|
2145
|
+
* Delete an organization's own role
|
|
2146
|
+
* @description Deletes a role the organization owns. Everyone holding it loses it, and the pending invitations that offer it are revoked. Refused while it is a role directory sync or single sign-on gives new people, or the role the organization's last administrator holds (`409 organization.last_admin`). The Environment's roles are refused (`403 organization.role_not_owned`). Send `If-Match` with the role's `version` to refuse a stale delete. Requires `rbac.manage_roles` or the organization's roles delegation.
|
|
2147
|
+
*/
|
|
2148
|
+
delete: operations["ApiOrganizationRolesController_remove"];
|
|
2149
|
+
options?: never;
|
|
2150
|
+
head?: never;
|
|
2151
|
+
/**
|
|
2152
|
+
* Rename or describe an organization's own role
|
|
2153
|
+
* @description Changes the name or description of a role the organization owns. The Environment's roles are refused (`403 organization.role_not_owned`). Send `If-Match` with the role's `version` to refuse a stale write (`409 version_mismatch`). Requires `rbac.manage_roles` or the organization's roles delegation.
|
|
2154
|
+
*/
|
|
2155
|
+
patch: operations["ApiOrganizationRolesController_update"];
|
|
2156
|
+
trace?: never;
|
|
2157
|
+
};
|
|
2158
|
+
"/api/v1/organizations/{id}/roles/{roleId}/permissions": {
|
|
2159
|
+
parameters: {
|
|
2160
|
+
query?: never;
|
|
2161
|
+
header?: never;
|
|
2162
|
+
path?: never;
|
|
2163
|
+
cookie?: never;
|
|
2164
|
+
};
|
|
2165
|
+
get?: never;
|
|
2166
|
+
/**
|
|
2167
|
+
* Replace an organization role's permissions
|
|
2168
|
+
* @description Replaces the permissions of a role the organization owns. A permission the role already carries may stay or go; one being added must be held by the caller at the organization node when the caller is an identity (`403 organization.role_permission_not_held`). Adding `canopy:roles.manage` to a role held beneath the organization node is refused (`400 rbac.roles_manage_below_organization`), and so is taking `canopy:organization.manage` off the role the organization's last administrator holds (`409 organization.last_admin`). The role's `version` moves with the change; send `If-Match` to refuse a stale write. Requires `rbac.manage_roles` or the organization's roles delegation.
|
|
2169
|
+
*/
|
|
2170
|
+
put: operations["ApiOrganizationRolesController_setPermissions"];
|
|
2171
|
+
post?: never;
|
|
2172
|
+
delete?: never;
|
|
2173
|
+
options?: never;
|
|
2174
|
+
head?: never;
|
|
2175
|
+
patch?: never;
|
|
2176
|
+
trace?: never;
|
|
2177
|
+
};
|
|
1926
2178
|
"/api/v1/organizations/{id}/directory/groups": {
|
|
1927
2179
|
parameters: {
|
|
1928
2180
|
query?: never;
|
|
@@ -1982,7 +2234,7 @@ interface paths {
|
|
|
1982
2234
|
put?: never;
|
|
1983
2235
|
/**
|
|
1984
2236
|
* Create a custom role
|
|
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
|
|
2237
|
+
* @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 role.name_taken`, and so does an organization's role named like one of the Environment's, or an Environment role named like any organization's own role. An Environment role named like an organization role template returns `409 role.name_used_by_template`, as every organization copies the template into a role of that name. Requires the `rbac.manage_roles` permission and emits a `role.created` audit event.
|
|
1986
2238
|
*/
|
|
1987
2239
|
post: operations["ApiRolesController_createRole"];
|
|
1988
2240
|
delete?: never;
|
|
@@ -2007,14 +2259,14 @@ interface paths {
|
|
|
2007
2259
|
post?: never;
|
|
2008
2260
|
/**
|
|
2009
2261
|
* Delete a role
|
|
2010
|
-
* @description Deletes a custom role by `id`; dependent role-assignment and role-permission rows are removed by database cascade. System roles are protected and return `403`, and a missing role returns `404`. Supports optimistic concurrency via the `If-Match` header (`409` on a version mismatch). Responds `204 No Content` and requires the `rbac.manage_roles` permission.
|
|
2262
|
+
* @description Deletes a custom role by `id`; dependent role-assignment and role-permission rows are removed by database cascade. System roles are protected and return `403`, and a missing role returns `404`. Supports optimistic concurrency via the `If-Match` header (`409` on a version mismatch). An organization's last administrator's role at its node cannot be deleted (`409 organization.last_admin`). Responds `204 No Content` and requires the `rbac.manage_roles` permission.
|
|
2011
2263
|
*/
|
|
2012
2264
|
delete: operations["ApiRolesController_deleteRole"];
|
|
2013
2265
|
options?: never;
|
|
2014
2266
|
head?: never;
|
|
2015
2267
|
/**
|
|
2016
2268
|
* Update a role
|
|
2017
|
-
* @description Updates a role's `name`, `description`, and/or `is_active` flag by `id`. Setting `is_active` to `false` hides the role from pickers, refuses new assignments to it, and withholds its permissions from every current holder until it is set back to `true`; the assignments themselves are kept. A name that collides with another role in the Environment returns `409`, and a missing role returns `404`. Supports optimistic concurrency via the `If-Match` header carrying the role's current version (`409` on a version mismatch). Requires the `rbac.manage_roles` permission.
|
|
2269
|
+
* @description Updates a role's `name`, `description`, and/or `is_active` flag by `id`. Setting `is_active` to `false` hides the role from pickers, refuses new assignments to it, and withholds its permissions from every current holder until it is set back to `true`; the assignments themselves are kept. A name that collides with another role in the Environment, or an Environment role renamed like any organization's own role, returns `409 role.name_taken`, as does an Environment role renamed like an organization role template (`role.name_used_by_template`), and a missing role returns `404`. Disabling the role an organization's last administrator holds at its node returns `409 organization.last_admin`. Supports optimistic concurrency via the `If-Match` header carrying the role's current version (`409` on a version mismatch). Requires the `rbac.manage_roles` permission.
|
|
2018
2270
|
*/
|
|
2019
2271
|
patch: operations["ApiRolesController_updateRole"];
|
|
2020
2272
|
trace?: never;
|
|
@@ -2033,7 +2285,7 @@ interface paths {
|
|
|
2033
2285
|
get: operations["ApiRolesController_getRolePermissions"];
|
|
2034
2286
|
/**
|
|
2035
2287
|
* Replace permissions on a role
|
|
2036
|
-
* @description Replaces the role's entire permission set with the supplied `permission_keys` (a full overwrite, not a merge). Every key must exist in the Environment's catalog or the call returns `404`, and `system`-source permissions cannot be attached to a custom role (`400`). Returns `200` with a `{ message }` confirmation, requires the `rbac.manage_roles` permission, and emits a `role.permissions_updated` audit event.
|
|
2288
|
+
* @description Replaces the role's entire permission set with the supplied `permission_keys` (a full overwrite, not a merge). Every key must exist in the Environment's catalog or the call returns `404`, and `system`-source permissions cannot be attached to a custom role (`400`). Taking `canopy:organization.manage` off the role an organization's last administrator holds at its node returns `409 organization.last_admin`. Returns `200` with a `{ message }` confirmation, requires the `rbac.manage_roles` permission, and emits a `role.permissions_updated` audit event.
|
|
2037
2289
|
*/
|
|
2038
2290
|
put: operations["ApiRolesController_setRolePermissions"];
|
|
2039
2291
|
post?: never;
|
|
@@ -2502,7 +2754,7 @@ interface paths {
|
|
|
2502
2754
|
head?: never;
|
|
2503
2755
|
/**
|
|
2504
2756
|
* Update OAuth client
|
|
2505
|
-
* @description Updates an OAuth client's mutable fields (`name`, `redirect_uris`, `post_logout_redirect_uris`, `backchannel_logout_uri`, `scopes`, `is_active`, `invite_redirect_url`, `initiate_login_uri`), scoped to the current Environment. A `scopes` value outside `openid`, `profile`, `email`, `org` and `permissions` is refused with `400` (`oauth.client_scope_unknown`). Returns the updated client, or `404` when the client is not found in this Environment. The secret is not rotated here.
|
|
2757
|
+
* @description Updates an OAuth client's mutable fields (`name`, `redirect_uris`, `post_logout_redirect_uris`, `backchannel_logout_uri`, `scopes`, `is_active`, `invite_redirect_url`, `initiate_login_uri`), scoped to the current Environment. A `scopes` value outside `openid`, `profile`, `email`, `org` and `permissions` is refused with `400` (`oauth.client_scope_unknown`). Returns the updated client, or `404` when the client is not found in this Environment. Send `If-Match` with the client's `version` to refuse a stale write (`409 version_mismatch`). The secret is not rotated here.
|
|
2506
2758
|
*/
|
|
2507
2759
|
patch: operations["ApiOAuthClientsController_update"];
|
|
2508
2760
|
trace?: never;
|
|
@@ -2518,7 +2770,7 @@ interface paths {
|
|
|
2518
2770
|
put?: never;
|
|
2519
2771
|
/**
|
|
2520
2772
|
* Rotate an OAuth client's secret
|
|
2521
|
-
* @description Rotates the OAuth client's `client_secret`, generating and hashing a new secret
|
|
2773
|
+
* @description Rotates the OAuth client's `client_secret`, generating and hashing a new secret. The replaced secret keeps working for 24 hours (`previous_secret_expires_at` says until when) so the systems using it can move over; send `expire_previous: "now"` to stop it at once, for a secret that has leaked. Rotating again inside the overlap replaces the secret still in its overlap. The new raw secret is returned in this response only and cannot be retrieved again. Returns `404` when the client is not found in the current Environment.
|
|
2522
2774
|
*/
|
|
2523
2775
|
post: operations["ApiOAuthClientsController_rotateSecret"];
|
|
2524
2776
|
delete?: never;
|
|
@@ -3322,10 +3574,12 @@ interface components {
|
|
|
3322
3574
|
access_roots: components["schemas"]["OrganizationAuthorityRootDto"][];
|
|
3323
3575
|
/** @description The same for `canopy:structure.manage`, a key no role carries yet; always empty */
|
|
3324
3576
|
structure_roots: components["schemas"]["OrganizationAuthorityRootDto"][];
|
|
3325
|
-
/** @description The
|
|
3577
|
+
/** @description The organization node when the caller may shape its own roles: they hold `canopy:roles.manage` there, or `administers_organization`. The key is held at the organization node only, so this is never a node beneath it; empty otherwise */
|
|
3326
3578
|
roles_roots: components["schemas"]["OrganizationAuthorityRootDto"][];
|
|
3327
3579
|
/** @description Whether the Environment's schema allows nodes beneath an organization; false in a flat Environment, where the organization is its only node */
|
|
3328
3580
|
has_hierarchy: boolean;
|
|
3581
|
+
/** @description Whether the organization may create its own integrations: the Environment's `organization_integrations_enabled` is on, it has a default audience, which every integration's token names, and `organization_integration_role_ids` names at least one role */
|
|
3582
|
+
integrations_enabled: boolean;
|
|
3329
3583
|
};
|
|
3330
3584
|
RoleResponseDto: {
|
|
3331
3585
|
id: string;
|
|
@@ -3339,6 +3593,8 @@ interface components {
|
|
|
3339
3593
|
organization_node_id?: string | null;
|
|
3340
3594
|
/** @description The name of the organization this role belongs to. Populated on list responses; null for an Environment role. */
|
|
3341
3595
|
organization_name?: string | null;
|
|
3596
|
+
/** @description The organization role template this role was copied from; null for a role made by hand, or once its template is deleted. */
|
|
3597
|
+
template_id?: string | null;
|
|
3342
3598
|
description?: string | null;
|
|
3343
3599
|
is_system_role: boolean;
|
|
3344
3600
|
system_key?: string | null;
|
|
@@ -3353,6 +3609,8 @@ interface components {
|
|
|
3353
3609
|
permission_count?: number;
|
|
3354
3610
|
/** @description Number of distinct identities assigned this role. Populated on list responses; omitted on single-role responses where the join isn't computed. */
|
|
3355
3611
|
member_count?: number;
|
|
3612
|
+
/** @description Whether the role carries `canopy:organization.manage`, `canopy:access.manage` or `canopy:roles.manage`, which an organization's integration may never hold. Populated on list responses. */
|
|
3613
|
+
administers?: boolean;
|
|
3356
3614
|
};
|
|
3357
3615
|
OrganizationMemberCandidateResponseDto: {
|
|
3358
3616
|
identity: components["schemas"]["AssignmentIdentityDto"];
|
|
@@ -3394,6 +3652,12 @@ interface components {
|
|
|
3394
3652
|
/** @description Optimistic-lock version. Send back as the `If-Match` header when updating or deleting to detect concurrent edits. */
|
|
3395
3653
|
version: number;
|
|
3396
3654
|
};
|
|
3655
|
+
OrganizationInitialMemberDto: {
|
|
3656
|
+
/** @description An identity of this Environment, who becomes a member holding the organization's copy of the default admin role template. */
|
|
3657
|
+
identity_id?: string;
|
|
3658
|
+
/** @description An email invited to the organization with its copy of the default admin role template. Send this or `identity_id`, not both. */
|
|
3659
|
+
email?: string;
|
|
3660
|
+
};
|
|
3397
3661
|
CreateOrganizationDto: {
|
|
3398
3662
|
/** @description Organization name. The slug is auto-derived from it at create and never changes afterwards. */
|
|
3399
3663
|
name: string;
|
|
@@ -3403,6 +3667,8 @@ interface components {
|
|
|
3403
3667
|
metadata?: Record<string, unknown>;
|
|
3404
3668
|
/** @description Your own id for this organization (the account id in your database), unique per Environment. Look the organization up with `GET /api/v1/organizations?external_id=...`; a second create with the same value answers 409, so create-then-store is idempotent. */
|
|
3405
3669
|
external_id?: string;
|
|
3670
|
+
/** @description The organization's first administrator. Needs a default admin role template; refused with `400 role_template.default_admin_missing` while there is none. */
|
|
3671
|
+
initial_member?: components["schemas"]["OrganizationInitialMemberDto"];
|
|
3406
3672
|
};
|
|
3407
3673
|
UpdateOrganizationDto: {
|
|
3408
3674
|
/** @description New organization name. The slug does not change. */
|
|
@@ -3433,6 +3699,11 @@ interface components {
|
|
|
3433
3699
|
/** @description The methods the organization keeps of the Environment's, or null to inherit them all. */
|
|
3434
3700
|
allowed_sign_in_methods?: ("password" | "email_otp" | "sso")[] | null;
|
|
3435
3701
|
require_sso: boolean;
|
|
3702
|
+
/**
|
|
3703
|
+
* @description Whether the Environment's staff (identities holding a role at the Environment root) may enter this organization. `allowed` until the organization refuses them.
|
|
3704
|
+
* @enum {string}
|
|
3705
|
+
*/
|
|
3706
|
+
staff_entry: "allowed" | "refused";
|
|
3436
3707
|
/** @description The Environment's own settings, the floor this organization's policy tightens from. */
|
|
3437
3708
|
environment: components["schemas"]["EffectiveOrganizationPolicyDto"];
|
|
3438
3709
|
/** @description The policy the organization's members sign in under. */
|
|
@@ -3460,6 +3731,29 @@ interface components {
|
|
|
3460
3731
|
allowed_sign_in_methods?: ("password" | "email_otp" | "sso")[] | null;
|
|
3461
3732
|
/** @description Members must sign in through SSO. Password and email-code logins are refused for the organization's members and for any email whose domain routes to a connection bound to this organization. */
|
|
3462
3733
|
require_sso?: boolean;
|
|
3734
|
+
/**
|
|
3735
|
+
* @description Whether the Environment's staff (identities holding a role at the Environment root) may enter this organization. `refused` refuses each entry, records it in the organization's activity, and ends the sessions staff already have inside at their next refresh.
|
|
3736
|
+
* @enum {string}
|
|
3737
|
+
*/
|
|
3738
|
+
staff_entry?: "allowed" | "refused";
|
|
3739
|
+
};
|
|
3740
|
+
OrganizationStaffActivityResponseDto: {
|
|
3741
|
+
id: string;
|
|
3742
|
+
/**
|
|
3743
|
+
* @description `entered` when the staff member entered, `refused` when the organization refused them.
|
|
3744
|
+
* @enum {string}
|
|
3745
|
+
*/
|
|
3746
|
+
kind: "entered" | "refused";
|
|
3747
|
+
/** @description The audit action: `organization.operator.entered` or `organization.operator.refused`. */
|
|
3748
|
+
action: string;
|
|
3749
|
+
/** @description The staff member's email. */
|
|
3750
|
+
actor_label?: Record<string, unknown> | null;
|
|
3751
|
+
/** @description The roles the staff member holds at the Environment root: what they could do inside. */
|
|
3752
|
+
role_names: string[];
|
|
3753
|
+
/** @description Why an attempt was refused: `staff_entry_refused` while the organization refuses staff. Null on an entry. */
|
|
3754
|
+
detail?: Record<string, unknown> | null;
|
|
3755
|
+
/** Format: date-time */
|
|
3756
|
+
created_at: string;
|
|
3463
3757
|
};
|
|
3464
3758
|
OrganizationSsoRecoveryCodesResponseDto: {
|
|
3465
3759
|
/** @description The new codes, shown once. The previous generation stops working the moment these are minted. */
|
|
@@ -3670,6 +3964,8 @@ interface components {
|
|
|
3670
3964
|
organization_node_id?: string | null;
|
|
3671
3965
|
/** @description The name of the organization this role belongs to. Populated on list responses; null for an Environment role. */
|
|
3672
3966
|
organization_name?: string | null;
|
|
3967
|
+
/** @description The organization role template this role was copied from; null for a role made by hand, or once its template is deleted. */
|
|
3968
|
+
template_id?: string | null;
|
|
3673
3969
|
description?: string | null;
|
|
3674
3970
|
is_system_role: boolean;
|
|
3675
3971
|
system_key?: string | null;
|
|
@@ -3684,8 +3980,14 @@ interface components {
|
|
|
3684
3980
|
permission_count?: number;
|
|
3685
3981
|
/** @description Number of distinct identities assigned this role. Populated on list responses; omitted on single-role responses where the join isn't computed. */
|
|
3686
3982
|
member_count?: number;
|
|
3983
|
+
/** @description Whether the role carries `canopy:organization.manage`, `canopy:access.manage` or `canopy:roles.manage`, which an organization's integration may never hold. Populated on list responses. */
|
|
3984
|
+
administers?: boolean;
|
|
3687
3985
|
/** @description Whether the caller may grant this role at the organization node under the grant ceiling: for an identity, it holds every permission the role carries there; always true for the developer's key and Console users */
|
|
3688
3986
|
grantable: boolean;
|
|
3987
|
+
/** @description How many people in the organization hold this role at the organization node or anywhere beneath it, each counted once */
|
|
3988
|
+
holder_count: number;
|
|
3989
|
+
/** @description Whether this is the organization's copy of the default member role template: the role an add or invite form offers first */
|
|
3990
|
+
is_default_member: boolean;
|
|
3689
3991
|
};
|
|
3690
3992
|
SsoConnectionTestSummaryDto: {
|
|
3691
3993
|
test_id: string;
|
|
@@ -3944,32 +4246,220 @@ interface components {
|
|
|
3944
4246
|
/** @description The role somebody arrives with when no mapped group says otherwise. Required unless the list is empty, and must be one of `role_ids`. */
|
|
3945
4247
|
default_role_id?: string | null;
|
|
3946
4248
|
};
|
|
3947
|
-
|
|
4249
|
+
OrganizationIntegrationConnectionDto: {
|
|
4250
|
+
/** @description Where the integration posts `client_credentials`. */
|
|
4251
|
+
token_endpoint: string;
|
|
4252
|
+
/** @description The audience its tokens name: the Environment's default audience. */
|
|
4253
|
+
audience: string | null;
|
|
4254
|
+
/** @description How long each token lasts, in seconds. */
|
|
4255
|
+
token_lifetime_seconds: number;
|
|
4256
|
+
};
|
|
4257
|
+
OrganizationIntegrationResponseDto: {
|
|
3948
4258
|
id: string;
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
/** @description
|
|
3956
|
-
|
|
4259
|
+
/** @description The ID a system sends to obtain a token. */
|
|
4260
|
+
client_id: string;
|
|
4261
|
+
name: string;
|
|
4262
|
+
/** @description Disabled integrations are refused new tokens. */
|
|
4263
|
+
is_active: boolean;
|
|
4264
|
+
organization_node_id: string;
|
|
4265
|
+
/** @description The name of the administrator who created it; null when a developer key created it or the identity is gone. */
|
|
4266
|
+
created_by_name: string | null;
|
|
4267
|
+
/**
|
|
4268
|
+
* Format: date-time
|
|
4269
|
+
* @description When it last obtained a token.
|
|
4270
|
+
*/
|
|
4271
|
+
last_token_at?: string | null;
|
|
4272
|
+
/**
|
|
4273
|
+
* Format: date-time
|
|
4274
|
+
* @description While a rotation is in its overlap, when the replaced secret stops working.
|
|
4275
|
+
*/
|
|
4276
|
+
previous_secret_expires_at?: string | null;
|
|
4277
|
+
/**
|
|
4278
|
+
* Format: date-time
|
|
4279
|
+
* @description When the secret was last rotated. Null until the first rotation.
|
|
4280
|
+
*/
|
|
4281
|
+
secret_rotated_at?: string | null;
|
|
4282
|
+
/** @description Optimistic-lock version. Send it in `If-Match` on an update to refuse a stale write. */
|
|
4283
|
+
version: number;
|
|
3957
4284
|
/** Format: date-time */
|
|
3958
4285
|
created_at: string;
|
|
4286
|
+
/** @description Every role it holds, on list rows. */
|
|
4287
|
+
roles?: components["schemas"]["AssignmentResponseDto"][];
|
|
4288
|
+
/** @description How to connect, on the single read. */
|
|
4289
|
+
connection?: components["schemas"]["OrganizationIntegrationConnectionDto"];
|
|
3959
4290
|
};
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
4291
|
+
OrganizationIntegrationCreatedResponseDto: {
|
|
4292
|
+
id: string;
|
|
4293
|
+
/** @description The ID a system sends to obtain a token. */
|
|
4294
|
+
client_id: string;
|
|
4295
|
+
name: string;
|
|
4296
|
+
/** @description Disabled integrations are refused new tokens. */
|
|
4297
|
+
is_active: boolean;
|
|
4298
|
+
organization_node_id: string;
|
|
4299
|
+
/** @description The name of the administrator who created it; null when a developer key created it or the identity is gone. */
|
|
4300
|
+
created_by_name: string | null;
|
|
4301
|
+
/**
|
|
4302
|
+
* Format: date-time
|
|
4303
|
+
* @description When it last obtained a token.
|
|
4304
|
+
*/
|
|
4305
|
+
last_token_at?: string | null;
|
|
4306
|
+
/**
|
|
4307
|
+
* Format: date-time
|
|
4308
|
+
* @description While a rotation is in its overlap, when the replaced secret stops working.
|
|
4309
|
+
*/
|
|
4310
|
+
previous_secret_expires_at?: string | null;
|
|
4311
|
+
/**
|
|
4312
|
+
* Format: date-time
|
|
4313
|
+
* @description When the secret was last rotated. Null until the first rotation.
|
|
4314
|
+
*/
|
|
4315
|
+
secret_rotated_at?: string | null;
|
|
4316
|
+
/** @description Optimistic-lock version. Send it in `If-Match` on an update to refuse a stale write. */
|
|
4317
|
+
version: number;
|
|
4318
|
+
/** Format: date-time */
|
|
4319
|
+
created_at: string;
|
|
4320
|
+
/** @description Every role it holds, on list rows. */
|
|
4321
|
+
roles?: components["schemas"]["AssignmentResponseDto"][];
|
|
4322
|
+
/** @description How to connect, on the single read. */
|
|
4323
|
+
connection?: components["schemas"]["OrganizationIntegrationConnectionDto"];
|
|
4324
|
+
/** @description The secret, shown in this response only. */
|
|
4325
|
+
client_secret: string;
|
|
3963
4326
|
};
|
|
3964
|
-
|
|
3965
|
-
/** @description
|
|
4327
|
+
CreateOrganizationIntegrationDto: {
|
|
4328
|
+
/** @description Its name, unique among the organization's integrations. */
|
|
3966
4329
|
name: string;
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
4330
|
+
};
|
|
4331
|
+
UpdateOrganizationIntegrationDto: {
|
|
4332
|
+
name?: string;
|
|
4333
|
+
/** @description `false` refuses it new tokens straight away; a token already issued lasts until it expires. */
|
|
4334
|
+
is_active?: boolean;
|
|
4335
|
+
};
|
|
4336
|
+
OAuthClientSecretRotatedResponseDto: {
|
|
4337
|
+
client_id: string;
|
|
4338
|
+
/** @description New client secret — shown only once */
|
|
4339
|
+
client_secret: string;
|
|
4340
|
+
/**
|
|
4341
|
+
* Format: date-time
|
|
4342
|
+
* @description When the replaced secret stops working: 24 hours after the rotation, or `null` when the rotation was made with `expire_previous: "now"`.
|
|
4343
|
+
*/
|
|
4344
|
+
previous_secret_expires_at?: string | null;
|
|
4345
|
+
};
|
|
4346
|
+
RotateOAuthClientSecretDto: {
|
|
4347
|
+
/**
|
|
4348
|
+
* @description `window` (the default) keeps the replaced secret working for 24 hours so the systems using it can move to the new one. `now` stops it the moment the rotation lands, for a secret that has leaked.
|
|
4349
|
+
* @enum {string}
|
|
4350
|
+
*/
|
|
4351
|
+
expire_previous?: "now" | "window";
|
|
4352
|
+
};
|
|
4353
|
+
CreateOAuthClientAssignmentDto: {
|
|
4354
|
+
/** @description The node the role is held at. */
|
|
4355
|
+
node_id: string;
|
|
4356
|
+
/** @description The role the client holds there. */
|
|
4357
|
+
role_id: string;
|
|
4358
|
+
/** @description When the role starts to apply. Omitted, from now. */
|
|
4359
|
+
effective_from?: string;
|
|
4360
|
+
/** @description When the role stops applying. Omitted, never. */
|
|
4361
|
+
effective_to?: string;
|
|
4362
|
+
};
|
|
4363
|
+
OrganizationRoleUsageResponseDto: {
|
|
4364
|
+
/** @description Roles the organization owns */
|
|
4365
|
+
count: number;
|
|
4366
|
+
/** @description The most roles one organization may own */
|
|
4367
|
+
limit: number;
|
|
4368
|
+
};
|
|
4369
|
+
AttachablePermissionResponseDto: {
|
|
4370
|
+
id: string;
|
|
4371
|
+
application_id: string;
|
|
4372
|
+
key: string;
|
|
4373
|
+
name: string;
|
|
4374
|
+
description?: string | null;
|
|
4375
|
+
category?: string | null;
|
|
4376
|
+
/** @enum {string} */
|
|
4377
|
+
source: "system" | "custom";
|
|
4378
|
+
/** Format: date-time */
|
|
4379
|
+
created_at: string;
|
|
4380
|
+
/** @description Optimistic-lock version. Send back as the `If-Match` header when updating to detect concurrent edits. */
|
|
4381
|
+
version: number;
|
|
4382
|
+
/** @description Whether the caller may put this permission into a role here: for an identity, it holds the key at the organization node; always true for the developer's key */
|
|
4383
|
+
attachable: boolean;
|
|
4384
|
+
};
|
|
4385
|
+
CreateOrganizationRoleDto: {
|
|
4386
|
+
/** @description Unique within the organization, and not the name of one of the Environment's roles */
|
|
4387
|
+
name: string;
|
|
4388
|
+
description?: Record<string, unknown> | null;
|
|
4389
|
+
/** @description The permission keys the role carries. A caller signed in as an identity may give only keys it holds at the organization node */
|
|
4390
|
+
permission_keys: string[];
|
|
4391
|
+
/** @description The role this one was copied from, recorded for provenance: one of the Environment's or the organization's own. The permissions are the ones sent in `permission_keys` */
|
|
4392
|
+
copy_from_role_id?: string;
|
|
4393
|
+
};
|
|
4394
|
+
OrganizationRoleDetailResponseDto: {
|
|
4395
|
+
id: string;
|
|
4396
|
+
name: string;
|
|
4397
|
+
/**
|
|
4398
|
+
* @description `environment`: assignable in every organization. `organization`: belongs to the organization `organization_node_id` names and is held only inside it.
|
|
4399
|
+
* @enum {string}
|
|
4400
|
+
*/
|
|
4401
|
+
scope: "environment" | "organization";
|
|
4402
|
+
/** @description The organization this role belongs to; null for an Environment role. */
|
|
4403
|
+
organization_node_id?: string | null;
|
|
4404
|
+
/** @description The name of the organization this role belongs to. Populated on list responses; null for an Environment role. */
|
|
4405
|
+
organization_name?: string | null;
|
|
4406
|
+
/** @description The organization role template this role was copied from; null for a role made by hand, or once its template is deleted. */
|
|
4407
|
+
template_id?: string | null;
|
|
4408
|
+
description?: string | null;
|
|
4409
|
+
is_system_role: boolean;
|
|
4410
|
+
system_key?: string | null;
|
|
4411
|
+
is_active: boolean;
|
|
4412
|
+
/** Format: date-time */
|
|
4413
|
+
created_at: string;
|
|
4414
|
+
/** Format: date-time */
|
|
4415
|
+
updated_at: string;
|
|
4416
|
+
/** @description Optimistic-lock version. Send back as the `If-Match` header when updating to detect concurrent edits. */
|
|
4417
|
+
version: number;
|
|
4418
|
+
/** @description Number of permissions currently assigned to this role. Populated on list responses; omitted on single-role responses where the join isn't computed. */
|
|
4419
|
+
permission_count?: number;
|
|
4420
|
+
/** @description Number of distinct identities assigned this role. Populated on list responses; omitted on single-role responses where the join isn't computed. */
|
|
4421
|
+
member_count?: number;
|
|
4422
|
+
/** @description Whether the role carries `canopy:organization.manage`, `canopy:access.manage` or `canopy:roles.manage`, which an organization's integration may never hold. Populated on list responses. */
|
|
4423
|
+
administers?: boolean;
|
|
4424
|
+
permissions: components["schemas"]["PermissionResponseDto"][];
|
|
4425
|
+
/** @description How many people in the organization hold this role at the organization node or anywhere beneath it, each counted once */
|
|
4426
|
+
holder_count: number;
|
|
4427
|
+
/** @description How many of the organization's pending invitations offer this role; deleting the role revokes them */
|
|
4428
|
+
pending_invite_count: number;
|
|
4429
|
+
};
|
|
4430
|
+
UpdateOrganizationRoleDto: {
|
|
4431
|
+
name?: string;
|
|
4432
|
+
description?: Record<string, unknown> | null;
|
|
4433
|
+
};
|
|
4434
|
+
SetRolePermissionsDto: {
|
|
4435
|
+
permission_keys: string[];
|
|
4436
|
+
};
|
|
4437
|
+
ScimGroupResponseDto: {
|
|
4438
|
+
id: string;
|
|
4439
|
+
external_id?: string | null;
|
|
4440
|
+
display_name: string;
|
|
4441
|
+
/** @description Mapped role id, or null while the group is unmapped. */
|
|
4442
|
+
role_id?: string | null;
|
|
4443
|
+
/** @description Placement node id for the mapped role, or null. */
|
|
4444
|
+
application_node_id?: string | null;
|
|
4445
|
+
/** @description Current IdP-asserted member count. */
|
|
4446
|
+
member_count: number;
|
|
4447
|
+
/** Format: date-time */
|
|
4448
|
+
created_at: string;
|
|
4449
|
+
};
|
|
4450
|
+
MapOrganizationScimGroupDto: {
|
|
4451
|
+
/** @description The role to grant members of this group. Must be one the application owner has made available to this organization. */
|
|
4452
|
+
role_id: string;
|
|
4453
|
+
};
|
|
4454
|
+
CreateRoleDto: {
|
|
4455
|
+
/** @description Role name, unique among the Environment's roles, or among the organization's own when `organization_id` is set */
|
|
4456
|
+
name: string;
|
|
4457
|
+
/** @description Role description */
|
|
4458
|
+
description?: string;
|
|
4459
|
+
/** @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. */
|
|
4460
|
+
organization_id?: string;
|
|
4461
|
+
/** @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. */
|
|
4462
|
+
copy_from_role_id?: string;
|
|
3973
4463
|
};
|
|
3974
4464
|
UpdateRoleDto: {
|
|
3975
4465
|
/** @description Updated role name */
|
|
@@ -3982,9 +4472,6 @@ interface components {
|
|
|
3982
4472
|
MessageResponseDto: {
|
|
3983
4473
|
message: string;
|
|
3984
4474
|
};
|
|
3985
|
-
SetRolePermissionsDto: {
|
|
3986
|
-
permission_keys: string[];
|
|
3987
|
-
};
|
|
3988
4475
|
AssignmentsSummaryDto: {
|
|
3989
4476
|
active_count: number;
|
|
3990
4477
|
scheduled_count: number;
|
|
@@ -4405,6 +4892,28 @@ interface components {
|
|
|
4405
4892
|
/** @description The route in the client's application that starts a sign-in (OpenID Connect `initiate_login_uri`), offered as **Sign in** on hosted pages that end with nothing to return to. */
|
|
4406
4893
|
initiate_login_uri?: string | null;
|
|
4407
4894
|
is_active: boolean;
|
|
4895
|
+
/**
|
|
4896
|
+
* @description `developer`: managed here. `organization`: an integration its organization created from its own routes; it is managed there too.
|
|
4897
|
+
* @enum {string}
|
|
4898
|
+
*/
|
|
4899
|
+
owner: "developer" | "organization";
|
|
4900
|
+
/**
|
|
4901
|
+
* Format: date-time
|
|
4902
|
+
* @description When a machine client last obtained a token.
|
|
4903
|
+
*/
|
|
4904
|
+
last_token_at?: string | null;
|
|
4905
|
+
/**
|
|
4906
|
+
* Format: date-time
|
|
4907
|
+
* @description While a rotation is in its overlap, when the replaced secret stops working.
|
|
4908
|
+
*/
|
|
4909
|
+
previous_secret_expires_at?: string | null;
|
|
4910
|
+
/**
|
|
4911
|
+
* Format: date-time
|
|
4912
|
+
* @description When the secret was last rotated. Null until the first rotation.
|
|
4913
|
+
*/
|
|
4914
|
+
secret_rotated_at?: string | null;
|
|
4915
|
+
/** @description Optimistic-lock version. Send it in `If-Match` on an update to refuse a stale write. */
|
|
4916
|
+
version: number;
|
|
4408
4917
|
/** Format: date-time */
|
|
4409
4918
|
created_at: string;
|
|
4410
4919
|
/**
|
|
@@ -4469,6 +4978,28 @@ interface components {
|
|
|
4469
4978
|
/** @description The route in the client's application that starts a sign-in (OpenID Connect `initiate_login_uri`), offered as **Sign in** on hosted pages that end with nothing to return to. */
|
|
4470
4979
|
initiate_login_uri?: string | null;
|
|
4471
4980
|
is_active: boolean;
|
|
4981
|
+
/**
|
|
4982
|
+
* @description `developer`: managed here. `organization`: an integration its organization created from its own routes; it is managed there too.
|
|
4983
|
+
* @enum {string}
|
|
4984
|
+
*/
|
|
4985
|
+
owner: "developer" | "organization";
|
|
4986
|
+
/**
|
|
4987
|
+
* Format: date-time
|
|
4988
|
+
* @description When a machine client last obtained a token.
|
|
4989
|
+
*/
|
|
4990
|
+
last_token_at?: string | null;
|
|
4991
|
+
/**
|
|
4992
|
+
* Format: date-time
|
|
4993
|
+
* @description While a rotation is in its overlap, when the replaced secret stops working.
|
|
4994
|
+
*/
|
|
4995
|
+
previous_secret_expires_at?: string | null;
|
|
4996
|
+
/**
|
|
4997
|
+
* Format: date-time
|
|
4998
|
+
* @description When the secret was last rotated. Null until the first rotation.
|
|
4999
|
+
*/
|
|
5000
|
+
secret_rotated_at?: string | null;
|
|
5001
|
+
/** @description Optimistic-lock version. Send it in `If-Match` on an update to refuse a stale write. */
|
|
5002
|
+
version: number;
|
|
4472
5003
|
/** Format: date-time */
|
|
4473
5004
|
created_at: string;
|
|
4474
5005
|
/**
|
|
@@ -4499,21 +5030,6 @@ interface components {
|
|
|
4499
5030
|
/** @description The route in your application that starts a sign-in (OpenID Connect `initiate_login_uri`): it should send the person to Canopy's `/oauth/authorize`. Canopy's hosted pages that end with nothing to return to, such as an accepted invitation or a verified email, offer it as **Sign in**. Absolute `http` or `https` URL; `null` clears it. */
|
|
4500
5031
|
initiate_login_uri?: string | null;
|
|
4501
5032
|
};
|
|
4502
|
-
OAuthClientSecretRotatedResponseDto: {
|
|
4503
|
-
client_id: string;
|
|
4504
|
-
/** @description New client secret — shown only once */
|
|
4505
|
-
client_secret: string;
|
|
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
|
-
};
|
|
4517
5033
|
ApiKeyCreatedResponseDto: {
|
|
4518
5034
|
id: string;
|
|
4519
5035
|
name: string;
|
|
@@ -5236,6 +5752,13 @@ interface components {
|
|
|
5236
5752
|
* @description The role whose permissions it started from, when it was created as a copy.
|
|
5237
5753
|
*/
|
|
5238
5754
|
copied_from_role_id?: string;
|
|
5755
|
+
/** @description Every permission key the role carries, when it was created with its permissions in one act (an organization's own role). */
|
|
5756
|
+
permission_keys?: string[];
|
|
5757
|
+
/**
|
|
5758
|
+
* Format: uuid
|
|
5759
|
+
* @description The organization role template it was copied from, when the organization received it from one.
|
|
5760
|
+
*/
|
|
5761
|
+
template_id?: string;
|
|
5239
5762
|
};
|
|
5240
5763
|
};
|
|
5241
5764
|
};
|
|
@@ -5269,6 +5792,8 @@ interface components {
|
|
|
5269
5792
|
metadata: {
|
|
5270
5793
|
/** @description The role's name. */
|
|
5271
5794
|
name: string;
|
|
5795
|
+
/** @description How many pending invitations offering the role were revoked with it. */
|
|
5796
|
+
invites_revoked: number;
|
|
5272
5797
|
};
|
|
5273
5798
|
};
|
|
5274
5799
|
};
|
|
@@ -5481,6 +6006,8 @@ interface components {
|
|
|
5481
6006
|
sso_bindings_removed: number;
|
|
5482
6007
|
/** @description SSO connections it owned, deleted with it. */
|
|
5483
6008
|
sso_connections_removed: number;
|
|
6009
|
+
/** @description Machine clients pinned to it, its integrations among them, deleted with it. */
|
|
6010
|
+
machine_clients_removed: number;
|
|
5484
6011
|
};
|
|
5485
6012
|
};
|
|
5486
6013
|
};
|
|
@@ -5506,6 +6033,8 @@ interface components {
|
|
|
5506
6033
|
sso_bindings_removed: number;
|
|
5507
6034
|
/** @description SSO connections it owned, deleted with it. */
|
|
5508
6035
|
sso_connections_removed: number;
|
|
6036
|
+
/** @description Machine clients pinned to it, its integrations among them, deleted with it. */
|
|
6037
|
+
machine_clients_removed: number;
|
|
5509
6038
|
};
|
|
5510
6039
|
};
|
|
5511
6040
|
};
|
|
@@ -5658,6 +6187,11 @@ interface components {
|
|
|
5658
6187
|
allowed_sign_in_methods: ("password" | "email_otp" | "sso")[] | null;
|
|
5659
6188
|
/** @description Whether members must sign in with SSO. */
|
|
5660
6189
|
require_sso: boolean;
|
|
6190
|
+
/**
|
|
6191
|
+
* @description Whether the Environment's staff (a role at the Environment root) may enter the organization.
|
|
6192
|
+
* @enum {string}
|
|
6193
|
+
*/
|
|
6194
|
+
staff_entry: "allowed" | "refused";
|
|
5661
6195
|
};
|
|
5662
6196
|
};
|
|
5663
6197
|
};
|
|
@@ -6912,7 +7446,7 @@ interface operations {
|
|
|
6912
7446
|
};
|
|
6913
7447
|
};
|
|
6914
7448
|
};
|
|
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 */
|
|
7449
|
+
/** @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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
6916
7450
|
400: {
|
|
6917
7451
|
headers: {
|
|
6918
7452
|
[name: string]: unknown;
|
|
@@ -6923,7 +7457,7 @@ interface operations {
|
|
|
6923
7457
|
* "error": {
|
|
6924
7458
|
* "statusCode": 400,
|
|
6925
7459
|
* "code": null,
|
|
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",
|
|
7460
|
+
* "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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
6927
7461
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
6928
7462
|
* "path": "/api/v1/identities",
|
|
6929
7463
|
* "method": "POST"
|
|
@@ -11967,7 +12501,7 @@ interface operations {
|
|
|
11967
12501
|
};
|
|
11968
12502
|
};
|
|
11969
12503
|
};
|
|
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 */
|
|
12504
|
+
/** @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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
11971
12505
|
400: {
|
|
11972
12506
|
headers: {
|
|
11973
12507
|
[name: string]: unknown;
|
|
@@ -11978,7 +12512,7 @@ interface operations {
|
|
|
11978
12512
|
* "error": {
|
|
11979
12513
|
* "statusCode": 400,
|
|
11980
12514
|
* "code": null,
|
|
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",
|
|
12515
|
+
* "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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
11982
12516
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
11983
12517
|
* "path": "/api/v1/organizations/{id}/assignments",
|
|
11984
12518
|
* "method": "POST"
|
|
@@ -12230,7 +12764,7 @@ interface operations {
|
|
|
12230
12764
|
};
|
|
12231
12765
|
};
|
|
12232
12766
|
};
|
|
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 */
|
|
12767
|
+
/** @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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
12234
12768
|
400: {
|
|
12235
12769
|
headers: {
|
|
12236
12770
|
[name: string]: unknown;
|
|
@@ -12241,7 +12775,7 @@ interface operations {
|
|
|
12241
12775
|
* "error": {
|
|
12242
12776
|
* "statusCode": 400,
|
|
12243
12777
|
* "code": null,
|
|
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",
|
|
12778
|
+
* "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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
12245
12779
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
12246
12780
|
* "path": "/api/v1/organizations/{id}/assignments/{assignmentId}",
|
|
12247
12781
|
* "method": "PATCH"
|
|
@@ -12460,7 +12994,7 @@ interface operations {
|
|
|
12460
12994
|
};
|
|
12461
12995
|
};
|
|
12462
12996
|
};
|
|
12463
|
-
/** @description The request failed validation
|
|
12997
|
+
/** @description The request failed validation, `initial_member` names both or neither of `identity_id` and `email` (`organization.initial_member_invalid`), no role template is the default admin (`role_template.default_admin_missing`), or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
12464
12998
|
400: {
|
|
12465
12999
|
headers: {
|
|
12466
13000
|
[name: string]: unknown;
|
|
@@ -12471,7 +13005,7 @@ interface operations {
|
|
|
12471
13005
|
* "error": {
|
|
12472
13006
|
* "statusCode": 400,
|
|
12473
13007
|
* "code": null,
|
|
12474
|
-
* "message": "The request failed validation
|
|
13008
|
+
* "message": "The request failed validation, `initial_member` names both or neither of `identity_id` and `email` (`organization.initial_member_invalid`), no role template is the default admin (`role_template.default_admin_missing`), or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
12475
13009
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
12476
13010
|
* "path": "/api/v1/organizations",
|
|
12477
13011
|
* "method": "POST"
|
|
@@ -12523,6 +13057,27 @@ interface operations {
|
|
|
12523
13057
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
12524
13058
|
};
|
|
12525
13059
|
};
|
|
13060
|
+
/** @description `initial_member.identity_id` is not an identity of this Environment (`identity.not_found`) */
|
|
13061
|
+
404: {
|
|
13062
|
+
headers: {
|
|
13063
|
+
[name: string]: unknown;
|
|
13064
|
+
};
|
|
13065
|
+
content: {
|
|
13066
|
+
/**
|
|
13067
|
+
* @example {
|
|
13068
|
+
* "error": {
|
|
13069
|
+
* "statusCode": 404,
|
|
13070
|
+
* "code": null,
|
|
13071
|
+
* "message": "`initial_member.identity_id` is not an identity of this Environment (`identity.not_found`)",
|
|
13072
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
13073
|
+
* "path": "/api/v1/organizations",
|
|
13074
|
+
* "method": "POST"
|
|
13075
|
+
* }
|
|
13076
|
+
* }
|
|
13077
|
+
*/
|
|
13078
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13079
|
+
};
|
|
13080
|
+
};
|
|
12526
13081
|
/** @description Organizations are not enabled on this Environment, another organization already holds this external_id, or the plan's organization limit is reached */
|
|
12527
13082
|
409: {
|
|
12528
13083
|
headers: {
|
|
@@ -13243,9 +13798,22 @@ interface operations {
|
|
|
13243
13798
|
};
|
|
13244
13799
|
};
|
|
13245
13800
|
};
|
|
13246
|
-
|
|
13801
|
+
ApiOrganizationsController_listStaffActivity: {
|
|
13247
13802
|
parameters: {
|
|
13248
|
-
query?:
|
|
13803
|
+
query?: {
|
|
13804
|
+
/** @description Page number (1-based) */
|
|
13805
|
+
page?: number;
|
|
13806
|
+
/** @description Items per page (1-100, default 20) */
|
|
13807
|
+
take?: number;
|
|
13808
|
+
/** @description Search the staff member's email and the role names */
|
|
13809
|
+
q?: string;
|
|
13810
|
+
/** @description Sort column: `created` (when) or `actor` (the staff member's email). Defaults to `created`, newest first. */
|
|
13811
|
+
sort_by?: "created" | "actor";
|
|
13812
|
+
/** @description Sort direction */
|
|
13813
|
+
order?: "asc" | "desc";
|
|
13814
|
+
/** @description Only entries (`entered`) or only refused attempts (`refused`). Omit for both. */
|
|
13815
|
+
kind?: "entered" | "refused";
|
|
13816
|
+
};
|
|
13249
13817
|
header?: never;
|
|
13250
13818
|
path: {
|
|
13251
13819
|
id: string;
|
|
@@ -13254,18 +13822,19 @@ interface operations {
|
|
|
13254
13822
|
};
|
|
13255
13823
|
requestBody?: never;
|
|
13256
13824
|
responses: {
|
|
13257
|
-
/** @description
|
|
13258
|
-
|
|
13825
|
+
/** @description Paginated list */
|
|
13826
|
+
200: {
|
|
13259
13827
|
headers: {
|
|
13260
13828
|
[name: string]: unknown;
|
|
13261
13829
|
};
|
|
13262
13830
|
content: {
|
|
13263
13831
|
"application/json": {
|
|
13264
|
-
|
|
13832
|
+
items: components["schemas"]["OrganizationStaffActivityResponseDto"][];
|
|
13833
|
+
pagination: components["schemas"]["PageMetaDto"];
|
|
13265
13834
|
};
|
|
13266
13835
|
};
|
|
13267
13836
|
};
|
|
13268
|
-
/** @description The
|
|
13837
|
+
/** @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 */
|
|
13269
13838
|
400: {
|
|
13270
13839
|
headers: {
|
|
13271
13840
|
[name: string]: unknown;
|
|
@@ -13276,10 +13845,10 @@ interface operations {
|
|
|
13276
13845
|
* "error": {
|
|
13277
13846
|
* "statusCode": 400,
|
|
13278
13847
|
* "code": null,
|
|
13279
|
-
* "message": "The
|
|
13848
|
+
* "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",
|
|
13280
13849
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
13281
|
-
* "path": "/api/v1/organizations/{id}/
|
|
13282
|
-
* "method": "
|
|
13850
|
+
* "path": "/api/v1/organizations/{id}/staff-activity",
|
|
13851
|
+
* "method": "GET"
|
|
13283
13852
|
* }
|
|
13284
13853
|
* }
|
|
13285
13854
|
*/
|
|
@@ -13341,8 +13910,8 @@ interface operations {
|
|
|
13341
13910
|
* "code": null,
|
|
13342
13911
|
* "message": "Organization not found",
|
|
13343
13912
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
13344
|
-
* "path": "/api/v1/organizations/{id}/
|
|
13345
|
-
* "method": "
|
|
13913
|
+
* "path": "/api/v1/organizations/{id}/staff-activity",
|
|
13914
|
+
* "method": "GET"
|
|
13346
13915
|
* }
|
|
13347
13916
|
* }
|
|
13348
13917
|
*/
|
|
@@ -13351,7 +13920,7 @@ interface operations {
|
|
|
13351
13920
|
};
|
|
13352
13921
|
};
|
|
13353
13922
|
};
|
|
13354
|
-
|
|
13923
|
+
ApiOrganizationsController_regenerateSsoRecoveryCodes: {
|
|
13355
13924
|
parameters: {
|
|
13356
13925
|
query?: never;
|
|
13357
13926
|
header?: never;
|
|
@@ -13362,18 +13931,18 @@ interface operations {
|
|
|
13362
13931
|
};
|
|
13363
13932
|
requestBody?: never;
|
|
13364
13933
|
responses: {
|
|
13365
|
-
/** @description A
|
|
13934
|
+
/** @description A new batch of codes, shown once. The previous batch stops working. */
|
|
13366
13935
|
201: {
|
|
13367
13936
|
headers: {
|
|
13368
13937
|
[name: string]: unknown;
|
|
13369
13938
|
};
|
|
13370
13939
|
content: {
|
|
13371
13940
|
"application/json": {
|
|
13372
|
-
data: components["schemas"]["
|
|
13941
|
+
data: components["schemas"]["OrganizationSsoRecoveryCodesResponseDto"];
|
|
13373
13942
|
};
|
|
13374
13943
|
};
|
|
13375
13944
|
};
|
|
13376
|
-
/** @description The organization id is malformed
|
|
13945
|
+
/** @description The organization id is malformed, or the organization does not require SSO, so it holds no recovery codes; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
13377
13946
|
400: {
|
|
13378
13947
|
headers: {
|
|
13379
13948
|
[name: string]: unknown;
|
|
@@ -13384,9 +13953,9 @@ interface operations {
|
|
|
13384
13953
|
* "error": {
|
|
13385
13954
|
* "statusCode": 400,
|
|
13386
13955
|
* "code": null,
|
|
13387
|
-
* "message": "The organization id is malformed
|
|
13956
|
+
* "message": "The organization id is malformed, or the organization does not require SSO, so it holds no recovery codes; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
13388
13957
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
13389
|
-
* "path": "/api/v1/organizations/{id}/sso-
|
|
13958
|
+
* "path": "/api/v1/organizations/{id}/policy/sso-recovery-codes",
|
|
13390
13959
|
* "method": "POST"
|
|
13391
13960
|
* }
|
|
13392
13961
|
* }
|
|
@@ -13449,7 +14018,7 @@ interface operations {
|
|
|
13449
14018
|
* "code": null,
|
|
13450
14019
|
* "message": "Organization not found",
|
|
13451
14020
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
13452
|
-
* "path": "/api/v1/organizations/{id}/sso-
|
|
14021
|
+
* "path": "/api/v1/organizations/{id}/policy/sso-recovery-codes",
|
|
13453
14022
|
* "method": "POST"
|
|
13454
14023
|
* }
|
|
13455
14024
|
* }
|
|
@@ -13459,20 +14028,19 @@ interface operations {
|
|
|
13459
14028
|
};
|
|
13460
14029
|
};
|
|
13461
14030
|
};
|
|
13462
|
-
|
|
14031
|
+
ApiOrganizationsController_startTestSignIn: {
|
|
13463
14032
|
parameters: {
|
|
13464
14033
|
query?: never;
|
|
13465
14034
|
header?: never;
|
|
13466
14035
|
path: {
|
|
13467
14036
|
id: string;
|
|
13468
|
-
testId: string;
|
|
13469
14037
|
};
|
|
13470
14038
|
cookie?: never;
|
|
13471
14039
|
};
|
|
13472
14040
|
requestBody?: never;
|
|
13473
14041
|
responses: {
|
|
13474
|
-
/** @description
|
|
13475
|
-
|
|
14042
|
+
/** @description A test sign-in was created. Open `start_url` in a browser to run the identity-provider round-trip; poll the test until it completes. */
|
|
14043
|
+
201: {
|
|
13476
14044
|
headers: {
|
|
13477
14045
|
[name: string]: unknown;
|
|
13478
14046
|
};
|
|
@@ -13482,7 +14050,7 @@ interface operations {
|
|
|
13482
14050
|
};
|
|
13483
14051
|
};
|
|
13484
14052
|
};
|
|
13485
|
-
/** @description
|
|
14053
|
+
/** @description The organization id is malformed; the organization has no SSO connection bound to it; or the connection is not an end-user connection bound to this Environment with every field its protocol needs; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
13486
14054
|
400: {
|
|
13487
14055
|
headers: {
|
|
13488
14056
|
[name: string]: unknown;
|
|
@@ -13493,10 +14061,10 @@ interface operations {
|
|
|
13493
14061
|
* "error": {
|
|
13494
14062
|
* "statusCode": 400,
|
|
13495
14063
|
* "code": null,
|
|
13496
|
-
* "message": "
|
|
14064
|
+
* "message": "The organization id is malformed; the organization has no SSO connection bound to it; or the connection is not an end-user connection bound to this Environment with every field its protocol needs; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
13497
14065
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
13498
|
-
* "path": "/api/v1/organizations/{id}/sso-connection/test
|
|
13499
|
-
* "method": "
|
|
14066
|
+
* "path": "/api/v1/organizations/{id}/sso-connection/test",
|
|
14067
|
+
* "method": "POST"
|
|
13500
14068
|
* }
|
|
13501
14069
|
* }
|
|
13502
14070
|
*/
|
|
@@ -13545,7 +14113,7 @@ interface operations {
|
|
|
13545
14113
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13546
14114
|
};
|
|
13547
14115
|
};
|
|
13548
|
-
/** @description
|
|
14116
|
+
/** @description Organization not found */
|
|
13549
14117
|
404: {
|
|
13550
14118
|
headers: {
|
|
13551
14119
|
[name: string]: unknown;
|
|
@@ -13556,10 +14124,10 @@ interface operations {
|
|
|
13556
14124
|
* "error": {
|
|
13557
14125
|
* "statusCode": 404,
|
|
13558
14126
|
* "code": null,
|
|
13559
|
-
* "message": "
|
|
14127
|
+
* "message": "Organization not found",
|
|
13560
14128
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
13561
|
-
* "path": "/api/v1/organizations/{id}/sso-connection/test
|
|
13562
|
-
* "method": "
|
|
14129
|
+
* "path": "/api/v1/organizations/{id}/sso-connection/test",
|
|
14130
|
+
* "method": "POST"
|
|
13563
14131
|
* }
|
|
13564
14132
|
* }
|
|
13565
14133
|
*/
|
|
@@ -13568,29 +14136,30 @@ interface operations {
|
|
|
13568
14136
|
};
|
|
13569
14137
|
};
|
|
13570
14138
|
};
|
|
13571
|
-
|
|
14139
|
+
ApiOrganizationsController_getTestSignIn: {
|
|
13572
14140
|
parameters: {
|
|
13573
14141
|
query?: never;
|
|
13574
14142
|
header?: never;
|
|
13575
14143
|
path: {
|
|
13576
14144
|
id: string;
|
|
14145
|
+
testId: string;
|
|
13577
14146
|
};
|
|
13578
14147
|
cookie?: never;
|
|
13579
14148
|
};
|
|
13580
14149
|
requestBody?: never;
|
|
13581
14150
|
responses: {
|
|
13582
|
-
/** @description
|
|
14151
|
+
/** @description The test sign-in, pending or with its outcome. */
|
|
13583
14152
|
200: {
|
|
13584
14153
|
headers: {
|
|
13585
14154
|
[name: string]: unknown;
|
|
13586
14155
|
};
|
|
13587
14156
|
content: {
|
|
13588
14157
|
"application/json": {
|
|
13589
|
-
|
|
14158
|
+
data: components["schemas"]["SsoTestSignInResponseDto"];
|
|
13590
14159
|
};
|
|
13591
14160
|
};
|
|
13592
14161
|
};
|
|
13593
|
-
/** @description
|
|
14162
|
+
/** @description An id in the path is malformed, or the organization has no SSO connection bound to it; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
13594
14163
|
400: {
|
|
13595
14164
|
headers: {
|
|
13596
14165
|
[name: string]: unknown;
|
|
@@ -13601,9 +14170,9 @@ interface operations {
|
|
|
13601
14170
|
* "error": {
|
|
13602
14171
|
* "statusCode": 400,
|
|
13603
14172
|
* "code": null,
|
|
13604
|
-
* "message": "
|
|
14173
|
+
* "message": "An id in the path is malformed, or the organization has no SSO connection bound to it; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
13605
14174
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
13606
|
-
* "path": "/api/v1/organizations/{id}/
|
|
14175
|
+
* "path": "/api/v1/organizations/{id}/sso-connection/test/{testId}",
|
|
13607
14176
|
* "method": "GET"
|
|
13608
14177
|
* }
|
|
13609
14178
|
* }
|
|
@@ -13653,7 +14222,115 @@ interface operations {
|
|
|
13653
14222
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13654
14223
|
};
|
|
13655
14224
|
};
|
|
13656
|
-
/** @description
|
|
14225
|
+
/** @description The organization or its bound connection does not exist, or there is no such test sign-in or it has expired */
|
|
14226
|
+
404: {
|
|
14227
|
+
headers: {
|
|
14228
|
+
[name: string]: unknown;
|
|
14229
|
+
};
|
|
14230
|
+
content: {
|
|
14231
|
+
/**
|
|
14232
|
+
* @example {
|
|
14233
|
+
* "error": {
|
|
14234
|
+
* "statusCode": 404,
|
|
14235
|
+
* "code": null,
|
|
14236
|
+
* "message": "The organization or its bound connection does not exist, or there is no such test sign-in or it has expired",
|
|
14237
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
14238
|
+
* "path": "/api/v1/organizations/{id}/sso-connection/test/{testId}",
|
|
14239
|
+
* "method": "GET"
|
|
14240
|
+
* }
|
|
14241
|
+
* }
|
|
14242
|
+
*/
|
|
14243
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14244
|
+
};
|
|
14245
|
+
};
|
|
14246
|
+
};
|
|
14247
|
+
};
|
|
14248
|
+
ApiOrganizationsController_listDomains: {
|
|
14249
|
+
parameters: {
|
|
14250
|
+
query?: never;
|
|
14251
|
+
header?: never;
|
|
14252
|
+
path: {
|
|
14253
|
+
id: string;
|
|
14254
|
+
};
|
|
14255
|
+
cookie?: never;
|
|
14256
|
+
};
|
|
14257
|
+
requestBody?: never;
|
|
14258
|
+
responses: {
|
|
14259
|
+
/** @description Every domain the organization is claiming or has verified for its end-user SSO, with the DNS TXT record and verification status. */
|
|
14260
|
+
200: {
|
|
14261
|
+
headers: {
|
|
14262
|
+
[name: string]: unknown;
|
|
14263
|
+
};
|
|
14264
|
+
content: {
|
|
14265
|
+
"application/json": {
|
|
14266
|
+
items: components["schemas"]["SsoDomainResponseDto"][];
|
|
14267
|
+
};
|
|
14268
|
+
};
|
|
14269
|
+
};
|
|
14270
|
+
/** @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 */
|
|
14271
|
+
400: {
|
|
14272
|
+
headers: {
|
|
14273
|
+
[name: string]: unknown;
|
|
14274
|
+
};
|
|
14275
|
+
content: {
|
|
14276
|
+
/**
|
|
14277
|
+
* @example {
|
|
14278
|
+
* "error": {
|
|
14279
|
+
* "statusCode": 400,
|
|
14280
|
+
* "code": null,
|
|
14281
|
+
* "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",
|
|
14282
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
14283
|
+
* "path": "/api/v1/organizations/{id}/domains",
|
|
14284
|
+
* "method": "GET"
|
|
14285
|
+
* }
|
|
14286
|
+
* }
|
|
14287
|
+
*/
|
|
14288
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14289
|
+
};
|
|
14290
|
+
};
|
|
14291
|
+
/** @description Invalid or expired token */
|
|
14292
|
+
401: {
|
|
14293
|
+
headers: {
|
|
14294
|
+
[name: string]: unknown;
|
|
14295
|
+
};
|
|
14296
|
+
content: {
|
|
14297
|
+
/**
|
|
14298
|
+
* @example {
|
|
14299
|
+
* "error": {
|
|
14300
|
+
* "statusCode": 401,
|
|
14301
|
+
* "code": null,
|
|
14302
|
+
* "message": "Invalid or expired token",
|
|
14303
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
14304
|
+
* "path": "/api/v1/organizations",
|
|
14305
|
+
* "method": "GET"
|
|
14306
|
+
* }
|
|
14307
|
+
* }
|
|
14308
|
+
*/
|
|
14309
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14310
|
+
};
|
|
14311
|
+
};
|
|
14312
|
+
/** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
|
|
14313
|
+
403: {
|
|
14314
|
+
headers: {
|
|
14315
|
+
[name: string]: unknown;
|
|
14316
|
+
};
|
|
14317
|
+
content: {
|
|
14318
|
+
/**
|
|
14319
|
+
* @example {
|
|
14320
|
+
* "error": {
|
|
14321
|
+
* "statusCode": 403,
|
|
14322
|
+
* "code": null,
|
|
14323
|
+
* "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
|
|
14324
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
14325
|
+
* "path": "/api/v1/organizations",
|
|
14326
|
+
* "method": "GET"
|
|
14327
|
+
* }
|
|
14328
|
+
* }
|
|
14329
|
+
*/
|
|
14330
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14331
|
+
};
|
|
14332
|
+
};
|
|
14333
|
+
/** @description Organization not found */
|
|
13657
14334
|
404: {
|
|
13658
14335
|
headers: {
|
|
13659
14336
|
[name: string]: unknown;
|
|
@@ -14561,7 +15238,7 @@ interface operations {
|
|
|
14561
15238
|
};
|
|
14562
15239
|
};
|
|
14563
15240
|
};
|
|
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 */
|
|
15241
|
+
/** @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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
14565
15242
|
400: {
|
|
14566
15243
|
headers: {
|
|
14567
15244
|
[name: string]: unknown;
|
|
@@ -14572,7 +15249,7 @@ interface operations {
|
|
|
14572
15249
|
* "error": {
|
|
14573
15250
|
* "statusCode": 400,
|
|
14574
15251
|
* "code": null,
|
|
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",
|
|
15252
|
+
* "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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
14576
15253
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
14577
15254
|
* "path": "/api/v1/organizations/{id}/members",
|
|
14578
15255
|
* "method": "POST"
|
|
@@ -15068,7 +15745,7 @@ interface operations {
|
|
|
15068
15745
|
};
|
|
15069
15746
|
};
|
|
15070
15747
|
};
|
|
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 */
|
|
15748
|
+
/** @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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
15072
15749
|
400: {
|
|
15073
15750
|
headers: {
|
|
15074
15751
|
[name: string]: unknown;
|
|
@@ -15079,7 +15756,7 @@ interface operations {
|
|
|
15079
15756
|
* "error": {
|
|
15080
15757
|
* "statusCode": 400,
|
|
15081
15758
|
* "code": null,
|
|
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",
|
|
15759
|
+
* "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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
15083
15760
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
15084
15761
|
* "path": "/api/v1/organizations/{id}/invites",
|
|
15085
15762
|
* "method": "POST"
|
|
@@ -15283,6 +15960,139 @@ interface operations {
|
|
|
15283
15960
|
};
|
|
15284
15961
|
};
|
|
15285
15962
|
};
|
|
15963
|
+
ApiOrganizationRolesController_create: {
|
|
15964
|
+
parameters: {
|
|
15965
|
+
query?: never;
|
|
15966
|
+
header?: never;
|
|
15967
|
+
path: {
|
|
15968
|
+
id: string;
|
|
15969
|
+
};
|
|
15970
|
+
cookie?: never;
|
|
15971
|
+
};
|
|
15972
|
+
requestBody: {
|
|
15973
|
+
content: {
|
|
15974
|
+
"application/json": components["schemas"]["CreateOrganizationRoleDto"];
|
|
15975
|
+
};
|
|
15976
|
+
};
|
|
15977
|
+
responses: {
|
|
15978
|
+
/** @description The role, created */
|
|
15979
|
+
201: {
|
|
15980
|
+
headers: {
|
|
15981
|
+
[name: string]: unknown;
|
|
15982
|
+
};
|
|
15983
|
+
content: {
|
|
15984
|
+
"application/json": {
|
|
15985
|
+
data: components["schemas"]["RoleResponseDto"];
|
|
15986
|
+
};
|
|
15987
|
+
};
|
|
15988
|
+
};
|
|
15989
|
+
/** @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 */
|
|
15990
|
+
400: {
|
|
15991
|
+
headers: {
|
|
15992
|
+
[name: string]: unknown;
|
|
15993
|
+
};
|
|
15994
|
+
content: {
|
|
15995
|
+
/**
|
|
15996
|
+
* @example {
|
|
15997
|
+
* "error": {
|
|
15998
|
+
* "statusCode": 400,
|
|
15999
|
+
* "code": null,
|
|
16000
|
+
* "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",
|
|
16001
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
16002
|
+
* "path": "/api/v1/organizations/{id}/roles",
|
|
16003
|
+
* "method": "POST"
|
|
16004
|
+
* }
|
|
16005
|
+
* }
|
|
16006
|
+
*/
|
|
16007
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16008
|
+
};
|
|
16009
|
+
};
|
|
16010
|
+
/** @description Invalid or expired token */
|
|
16011
|
+
401: {
|
|
16012
|
+
headers: {
|
|
16013
|
+
[name: string]: unknown;
|
|
16014
|
+
};
|
|
16015
|
+
content: {
|
|
16016
|
+
/**
|
|
16017
|
+
* @example {
|
|
16018
|
+
* "error": {
|
|
16019
|
+
* "statusCode": 401,
|
|
16020
|
+
* "code": null,
|
|
16021
|
+
* "message": "Invalid or expired token",
|
|
16022
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
16023
|
+
* "path": "/api/v1/organizations/{id}/roles",
|
|
16024
|
+
* "method": "POST"
|
|
16025
|
+
* }
|
|
16026
|
+
* }
|
|
16027
|
+
*/
|
|
16028
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16029
|
+
};
|
|
16030
|
+
};
|
|
16031
|
+
/** @description The caller may not shape this organization's roles, a permission being added is one the caller does not hold at the organization node (`organization.role_permission_not_held`), or the role is one of the Environment's (`organization.role_not_owned`) */
|
|
16032
|
+
403: {
|
|
16033
|
+
headers: {
|
|
16034
|
+
[name: string]: unknown;
|
|
16035
|
+
};
|
|
16036
|
+
content: {
|
|
16037
|
+
/**
|
|
16038
|
+
* @example {
|
|
16039
|
+
* "error": {
|
|
16040
|
+
* "statusCode": 403,
|
|
16041
|
+
* "code": null,
|
|
16042
|
+
* "message": "The caller may not shape this organization's roles, a permission being added is one the caller does not hold at the organization node (`organization.role_permission_not_held`), or the role is one of the Environment's (`organization.role_not_owned`)",
|
|
16043
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
16044
|
+
* "path": "/api/v1/organizations/{id}/roles",
|
|
16045
|
+
* "method": "POST"
|
|
16046
|
+
* }
|
|
16047
|
+
* }
|
|
16048
|
+
*/
|
|
16049
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16050
|
+
};
|
|
16051
|
+
};
|
|
16052
|
+
/** @description No such organization, or no such role among the ones the organization can use */
|
|
16053
|
+
404: {
|
|
16054
|
+
headers: {
|
|
16055
|
+
[name: string]: unknown;
|
|
16056
|
+
};
|
|
16057
|
+
content: {
|
|
16058
|
+
/**
|
|
16059
|
+
* @example {
|
|
16060
|
+
* "error": {
|
|
16061
|
+
* "statusCode": 404,
|
|
16062
|
+
* "code": null,
|
|
16063
|
+
* "message": "No such organization, or no such role among the ones the organization can use",
|
|
16064
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
16065
|
+
* "path": "/api/v1/organizations/{id}/roles",
|
|
16066
|
+
* "method": "POST"
|
|
16067
|
+
* }
|
|
16068
|
+
* }
|
|
16069
|
+
*/
|
|
16070
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16071
|
+
};
|
|
16072
|
+
};
|
|
16073
|
+
/** @description The organization or the Environment already has a role by that name (`role.name_taken`), or the organization has reached its role limit (`organization.role_limit`) */
|
|
16074
|
+
409: {
|
|
16075
|
+
headers: {
|
|
16076
|
+
[name: string]: unknown;
|
|
16077
|
+
};
|
|
16078
|
+
content: {
|
|
16079
|
+
/**
|
|
16080
|
+
* @example {
|
|
16081
|
+
* "error": {
|
|
16082
|
+
* "statusCode": 409,
|
|
16083
|
+
* "code": null,
|
|
16084
|
+
* "message": "The organization or the Environment already has a role by that name (`role.name_taken`), or the organization has reached its role limit (`organization.role_limit`)",
|
|
16085
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
16086
|
+
* "path": "/api/v1/organizations/{id}/roles",
|
|
16087
|
+
* "method": "POST"
|
|
16088
|
+
* }
|
|
16089
|
+
* }
|
|
16090
|
+
*/
|
|
16091
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16092
|
+
};
|
|
16093
|
+
};
|
|
16094
|
+
};
|
|
16095
|
+
};
|
|
15286
16096
|
ApiOrganizationsController_revokeInvite: {
|
|
15287
16097
|
parameters: {
|
|
15288
16098
|
query?: never;
|
|
@@ -17226,34 +18036,2028 @@ interface operations {
|
|
|
17226
18036
|
};
|
|
17227
18037
|
};
|
|
17228
18038
|
};
|
|
17229
|
-
ApiOrganizationDirectoryController_rotateToken: {
|
|
18039
|
+
ApiOrganizationDirectoryController_rotateToken: {
|
|
18040
|
+
parameters: {
|
|
18041
|
+
query?: never;
|
|
18042
|
+
header?: never;
|
|
18043
|
+
path: {
|
|
18044
|
+
id: string;
|
|
18045
|
+
tokenId: string;
|
|
18046
|
+
};
|
|
18047
|
+
cookie?: never;
|
|
18048
|
+
};
|
|
18049
|
+
requestBody: {
|
|
18050
|
+
content: {
|
|
18051
|
+
"application/json": components["schemas"]["CreateScimTokenDto"];
|
|
18052
|
+
};
|
|
18053
|
+
};
|
|
18054
|
+
responses: {
|
|
18055
|
+
/** @description Replacement token created */
|
|
18056
|
+
201: {
|
|
18057
|
+
headers: {
|
|
18058
|
+
[name: string]: unknown;
|
|
18059
|
+
};
|
|
18060
|
+
content: {
|
|
18061
|
+
"application/json": {
|
|
18062
|
+
data: components["schemas"]["ScimTokenCreatedResponseDto"];
|
|
18063
|
+
};
|
|
18064
|
+
};
|
|
18065
|
+
};
|
|
18066
|
+
/** @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 */
|
|
18067
|
+
400: {
|
|
18068
|
+
headers: {
|
|
18069
|
+
[name: string]: unknown;
|
|
18070
|
+
};
|
|
18071
|
+
content: {
|
|
18072
|
+
/**
|
|
18073
|
+
* @example {
|
|
18074
|
+
* "error": {
|
|
18075
|
+
* "statusCode": 400,
|
|
18076
|
+
* "code": null,
|
|
18077
|
+
* "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",
|
|
18078
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18079
|
+
* "path": "/api/v1/organizations/{id}/directory/tokens/{tokenId}/rotate",
|
|
18080
|
+
* "method": "POST"
|
|
18081
|
+
* }
|
|
18082
|
+
* }
|
|
18083
|
+
*/
|
|
18084
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18085
|
+
};
|
|
18086
|
+
};
|
|
18087
|
+
/** @description Invalid or expired token */
|
|
18088
|
+
401: {
|
|
18089
|
+
headers: {
|
|
18090
|
+
[name: string]: unknown;
|
|
18091
|
+
};
|
|
18092
|
+
content: {
|
|
18093
|
+
/**
|
|
18094
|
+
* @example {
|
|
18095
|
+
* "error": {
|
|
18096
|
+
* "statusCode": 401,
|
|
18097
|
+
* "code": null,
|
|
18098
|
+
* "message": "Invalid or expired token",
|
|
18099
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18100
|
+
* "path": "/api/v1/organizations/{id}/directory",
|
|
18101
|
+
* "method": "GET"
|
|
18102
|
+
* }
|
|
18103
|
+
* }
|
|
18104
|
+
*/
|
|
18105
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18106
|
+
};
|
|
18107
|
+
};
|
|
18108
|
+
/** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
|
|
18109
|
+
403: {
|
|
18110
|
+
headers: {
|
|
18111
|
+
[name: string]: unknown;
|
|
18112
|
+
};
|
|
18113
|
+
content: {
|
|
18114
|
+
/**
|
|
18115
|
+
* @example {
|
|
18116
|
+
* "error": {
|
|
18117
|
+
* "statusCode": 403,
|
|
18118
|
+
* "code": null,
|
|
18119
|
+
* "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
|
|
18120
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18121
|
+
* "path": "/api/v1/organizations/{id}/directory",
|
|
18122
|
+
* "method": "GET"
|
|
18123
|
+
* }
|
|
18124
|
+
* }
|
|
18125
|
+
*/
|
|
18126
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18127
|
+
};
|
|
18128
|
+
};
|
|
18129
|
+
/** @description The organization does not exist, it has no directory connection, or the connection has no directory-sync token with that id */
|
|
18130
|
+
404: {
|
|
18131
|
+
headers: {
|
|
18132
|
+
[name: string]: unknown;
|
|
18133
|
+
};
|
|
18134
|
+
content: {
|
|
18135
|
+
/**
|
|
18136
|
+
* @example {
|
|
18137
|
+
* "error": {
|
|
18138
|
+
* "statusCode": 404,
|
|
18139
|
+
* "code": null,
|
|
18140
|
+
* "message": "The organization does not exist, it has no directory connection, or the connection has no directory-sync token with that id",
|
|
18141
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18142
|
+
* "path": "/api/v1/organizations/{id}/directory/tokens/{tokenId}/rotate",
|
|
18143
|
+
* "method": "POST"
|
|
18144
|
+
* }
|
|
18145
|
+
* }
|
|
18146
|
+
*/
|
|
18147
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18148
|
+
};
|
|
18149
|
+
};
|
|
18150
|
+
};
|
|
18151
|
+
};
|
|
18152
|
+
ApiOrganizationDirectoryController_revokeToken: {
|
|
18153
|
+
parameters: {
|
|
18154
|
+
query?: never;
|
|
18155
|
+
header?: never;
|
|
18156
|
+
path: {
|
|
18157
|
+
id: string;
|
|
18158
|
+
tokenId: string;
|
|
18159
|
+
};
|
|
18160
|
+
cookie?: never;
|
|
18161
|
+
};
|
|
18162
|
+
requestBody?: never;
|
|
18163
|
+
responses: {
|
|
18164
|
+
/** @description Token revoked — provisioning requests using it stop validating immediately */
|
|
18165
|
+
204: {
|
|
18166
|
+
headers: {
|
|
18167
|
+
[name: string]: unknown;
|
|
18168
|
+
};
|
|
18169
|
+
content?: never;
|
|
18170
|
+
};
|
|
18171
|
+
/** @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 */
|
|
18172
|
+
400: {
|
|
18173
|
+
headers: {
|
|
18174
|
+
[name: string]: unknown;
|
|
18175
|
+
};
|
|
18176
|
+
content: {
|
|
18177
|
+
/**
|
|
18178
|
+
* @example {
|
|
18179
|
+
* "error": {
|
|
18180
|
+
* "statusCode": 400,
|
|
18181
|
+
* "code": null,
|
|
18182
|
+
* "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",
|
|
18183
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18184
|
+
* "path": "/api/v1/organizations/{id}/directory/tokens/{tokenId}",
|
|
18185
|
+
* "method": "DELETE"
|
|
18186
|
+
* }
|
|
18187
|
+
* }
|
|
18188
|
+
*/
|
|
18189
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18190
|
+
};
|
|
18191
|
+
};
|
|
18192
|
+
/** @description Invalid or expired token */
|
|
18193
|
+
401: {
|
|
18194
|
+
headers: {
|
|
18195
|
+
[name: string]: unknown;
|
|
18196
|
+
};
|
|
18197
|
+
content: {
|
|
18198
|
+
/**
|
|
18199
|
+
* @example {
|
|
18200
|
+
* "error": {
|
|
18201
|
+
* "statusCode": 401,
|
|
18202
|
+
* "code": null,
|
|
18203
|
+
* "message": "Invalid or expired token",
|
|
18204
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18205
|
+
* "path": "/api/v1/organizations/{id}/directory",
|
|
18206
|
+
* "method": "GET"
|
|
18207
|
+
* }
|
|
18208
|
+
* }
|
|
18209
|
+
*/
|
|
18210
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18211
|
+
};
|
|
18212
|
+
};
|
|
18213
|
+
/** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
|
|
18214
|
+
403: {
|
|
18215
|
+
headers: {
|
|
18216
|
+
[name: string]: unknown;
|
|
18217
|
+
};
|
|
18218
|
+
content: {
|
|
18219
|
+
/**
|
|
18220
|
+
* @example {
|
|
18221
|
+
* "error": {
|
|
18222
|
+
* "statusCode": 403,
|
|
18223
|
+
* "code": null,
|
|
18224
|
+
* "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
|
|
18225
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18226
|
+
* "path": "/api/v1/organizations/{id}/directory",
|
|
18227
|
+
* "method": "GET"
|
|
18228
|
+
* }
|
|
18229
|
+
* }
|
|
18230
|
+
*/
|
|
18231
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18232
|
+
};
|
|
18233
|
+
};
|
|
18234
|
+
/** @description The organization does not exist, or it has no directory connection */
|
|
18235
|
+
404: {
|
|
18236
|
+
headers: {
|
|
18237
|
+
[name: string]: unknown;
|
|
18238
|
+
};
|
|
18239
|
+
content: {
|
|
18240
|
+
/**
|
|
18241
|
+
* @example {
|
|
18242
|
+
* "error": {
|
|
18243
|
+
* "statusCode": 404,
|
|
18244
|
+
* "code": null,
|
|
18245
|
+
* "message": "The organization does not exist, or it has no directory connection",
|
|
18246
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18247
|
+
* "path": "/api/v1/organizations/{id}/directory/tokens/{tokenId}",
|
|
18248
|
+
* "method": "DELETE"
|
|
18249
|
+
* }
|
|
18250
|
+
* }
|
|
18251
|
+
*/
|
|
18252
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18253
|
+
};
|
|
18254
|
+
};
|
|
18255
|
+
};
|
|
18256
|
+
};
|
|
18257
|
+
ApiOrganizationDirectoryController_activity: {
|
|
18258
|
+
parameters: {
|
|
18259
|
+
query?: never;
|
|
18260
|
+
header?: never;
|
|
18261
|
+
path: {
|
|
18262
|
+
id: string;
|
|
18263
|
+
};
|
|
18264
|
+
cookie?: never;
|
|
18265
|
+
};
|
|
18266
|
+
requestBody?: never;
|
|
18267
|
+
responses: {
|
|
18268
|
+
/** @description The organization's own directory events (provisioning, group mapping, and changes to its connection, tokens and allowed roles), newest first */
|
|
18269
|
+
200: {
|
|
18270
|
+
headers: {
|
|
18271
|
+
[name: string]: unknown;
|
|
18272
|
+
};
|
|
18273
|
+
content: {
|
|
18274
|
+
"application/json": {
|
|
18275
|
+
items: components["schemas"]["ScimActivityResponseDto"][];
|
|
18276
|
+
};
|
|
18277
|
+
};
|
|
18278
|
+
};
|
|
18279
|
+
/** @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 */
|
|
18280
|
+
400: {
|
|
18281
|
+
headers: {
|
|
18282
|
+
[name: string]: unknown;
|
|
18283
|
+
};
|
|
18284
|
+
content: {
|
|
18285
|
+
/**
|
|
18286
|
+
* @example {
|
|
18287
|
+
* "error": {
|
|
18288
|
+
* "statusCode": 400,
|
|
18289
|
+
* "code": null,
|
|
18290
|
+
* "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",
|
|
18291
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18292
|
+
* "path": "/api/v1/organizations/{id}/directory/activity",
|
|
18293
|
+
* "method": "GET"
|
|
18294
|
+
* }
|
|
18295
|
+
* }
|
|
18296
|
+
*/
|
|
18297
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18298
|
+
};
|
|
18299
|
+
};
|
|
18300
|
+
/** @description Invalid or expired token */
|
|
18301
|
+
401: {
|
|
18302
|
+
headers: {
|
|
18303
|
+
[name: string]: unknown;
|
|
18304
|
+
};
|
|
18305
|
+
content: {
|
|
18306
|
+
/**
|
|
18307
|
+
* @example {
|
|
18308
|
+
* "error": {
|
|
18309
|
+
* "statusCode": 401,
|
|
18310
|
+
* "code": null,
|
|
18311
|
+
* "message": "Invalid or expired token",
|
|
18312
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18313
|
+
* "path": "/api/v1/organizations/{id}/directory",
|
|
18314
|
+
* "method": "GET"
|
|
18315
|
+
* }
|
|
18316
|
+
* }
|
|
18317
|
+
*/
|
|
18318
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18319
|
+
};
|
|
18320
|
+
};
|
|
18321
|
+
/** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
|
|
18322
|
+
403: {
|
|
18323
|
+
headers: {
|
|
18324
|
+
[name: string]: unknown;
|
|
18325
|
+
};
|
|
18326
|
+
content: {
|
|
18327
|
+
/**
|
|
18328
|
+
* @example {
|
|
18329
|
+
* "error": {
|
|
18330
|
+
* "statusCode": 403,
|
|
18331
|
+
* "code": null,
|
|
18332
|
+
* "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
|
|
18333
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18334
|
+
* "path": "/api/v1/organizations/{id}/directory",
|
|
18335
|
+
* "method": "GET"
|
|
18336
|
+
* }
|
|
18337
|
+
* }
|
|
18338
|
+
*/
|
|
18339
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18340
|
+
};
|
|
18341
|
+
};
|
|
18342
|
+
/** @description The organization does not exist, or it has no directory connection */
|
|
18343
|
+
404: {
|
|
18344
|
+
headers: {
|
|
18345
|
+
[name: string]: unknown;
|
|
18346
|
+
};
|
|
18347
|
+
content: {
|
|
18348
|
+
/**
|
|
18349
|
+
* @example {
|
|
18350
|
+
* "error": {
|
|
18351
|
+
* "statusCode": 404,
|
|
18352
|
+
* "code": null,
|
|
18353
|
+
* "message": "The organization does not exist, or it has no directory connection",
|
|
18354
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18355
|
+
* "path": "/api/v1/organizations/{id}/directory/activity",
|
|
18356
|
+
* "method": "GET"
|
|
18357
|
+
* }
|
|
18358
|
+
* }
|
|
18359
|
+
*/
|
|
18360
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18361
|
+
};
|
|
18362
|
+
};
|
|
18363
|
+
};
|
|
18364
|
+
};
|
|
18365
|
+
ApiOrganizationDirectoryController_listGrantableRoles: {
|
|
18366
|
+
parameters: {
|
|
18367
|
+
query?: never;
|
|
18368
|
+
header?: never;
|
|
18369
|
+
path: {
|
|
18370
|
+
id: string;
|
|
18371
|
+
};
|
|
18372
|
+
cookie?: never;
|
|
18373
|
+
};
|
|
18374
|
+
requestBody?: never;
|
|
18375
|
+
responses: {
|
|
18376
|
+
/** @description Grantable roles returned */
|
|
18377
|
+
200: {
|
|
18378
|
+
headers: {
|
|
18379
|
+
[name: string]: unknown;
|
|
18380
|
+
};
|
|
18381
|
+
content: {
|
|
18382
|
+
"application/json": {
|
|
18383
|
+
items: components["schemas"]["DirectoryGrantableRoleResponseDto"][];
|
|
18384
|
+
};
|
|
18385
|
+
};
|
|
18386
|
+
};
|
|
18387
|
+
/** @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 */
|
|
18388
|
+
400: {
|
|
18389
|
+
headers: {
|
|
18390
|
+
[name: string]: unknown;
|
|
18391
|
+
};
|
|
18392
|
+
content: {
|
|
18393
|
+
/**
|
|
18394
|
+
* @example {
|
|
18395
|
+
* "error": {
|
|
18396
|
+
* "statusCode": 400,
|
|
18397
|
+
* "code": null,
|
|
18398
|
+
* "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",
|
|
18399
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18400
|
+
* "path": "/api/v1/organizations/{id}/directory/grantable-roles",
|
|
18401
|
+
* "method": "GET"
|
|
18402
|
+
* }
|
|
18403
|
+
* }
|
|
18404
|
+
*/
|
|
18405
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18406
|
+
};
|
|
18407
|
+
};
|
|
18408
|
+
/** @description Invalid or expired token */
|
|
18409
|
+
401: {
|
|
18410
|
+
headers: {
|
|
18411
|
+
[name: string]: unknown;
|
|
18412
|
+
};
|
|
18413
|
+
content: {
|
|
18414
|
+
/**
|
|
18415
|
+
* @example {
|
|
18416
|
+
* "error": {
|
|
18417
|
+
* "statusCode": 401,
|
|
18418
|
+
* "code": null,
|
|
18419
|
+
* "message": "Invalid or expired token",
|
|
18420
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18421
|
+
* "path": "/api/v1/organizations/{id}/directory",
|
|
18422
|
+
* "method": "GET"
|
|
18423
|
+
* }
|
|
18424
|
+
* }
|
|
18425
|
+
*/
|
|
18426
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18427
|
+
};
|
|
18428
|
+
};
|
|
18429
|
+
/** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
|
|
18430
|
+
403: {
|
|
18431
|
+
headers: {
|
|
18432
|
+
[name: string]: unknown;
|
|
18433
|
+
};
|
|
18434
|
+
content: {
|
|
18435
|
+
/**
|
|
18436
|
+
* @example {
|
|
18437
|
+
* "error": {
|
|
18438
|
+
* "statusCode": 403,
|
|
18439
|
+
* "code": null,
|
|
18440
|
+
* "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
|
|
18441
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18442
|
+
* "path": "/api/v1/organizations/{id}/directory",
|
|
18443
|
+
* "method": "GET"
|
|
18444
|
+
* }
|
|
18445
|
+
* }
|
|
18446
|
+
*/
|
|
18447
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18448
|
+
};
|
|
18449
|
+
};
|
|
18450
|
+
/** @description Organization not found */
|
|
18451
|
+
404: {
|
|
18452
|
+
headers: {
|
|
18453
|
+
[name: string]: unknown;
|
|
18454
|
+
};
|
|
18455
|
+
content: {
|
|
18456
|
+
/**
|
|
18457
|
+
* @example {
|
|
18458
|
+
* "error": {
|
|
18459
|
+
* "statusCode": 404,
|
|
18460
|
+
* "code": null,
|
|
18461
|
+
* "message": "Organization not found",
|
|
18462
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18463
|
+
* "path": "/api/v1/organizations/{id}/directory/grantable-roles",
|
|
18464
|
+
* "method": "GET"
|
|
18465
|
+
* }
|
|
18466
|
+
* }
|
|
18467
|
+
*/
|
|
18468
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18469
|
+
};
|
|
18470
|
+
};
|
|
18471
|
+
};
|
|
18472
|
+
};
|
|
18473
|
+
ApiOrganizationDirectoryController_setGrantableRoles: {
|
|
18474
|
+
parameters: {
|
|
18475
|
+
query?: never;
|
|
18476
|
+
header?: never;
|
|
18477
|
+
path: {
|
|
18478
|
+
id: string;
|
|
18479
|
+
};
|
|
18480
|
+
cookie?: never;
|
|
18481
|
+
};
|
|
18482
|
+
requestBody: {
|
|
18483
|
+
content: {
|
|
18484
|
+
"application/json": components["schemas"]["SetDirectoryGrantableRolesDto"];
|
|
18485
|
+
};
|
|
18486
|
+
};
|
|
18487
|
+
responses: {
|
|
18488
|
+
/** @description Grantable roles replaced */
|
|
18489
|
+
200: {
|
|
18490
|
+
headers: {
|
|
18491
|
+
[name: string]: unknown;
|
|
18492
|
+
};
|
|
18493
|
+
content: {
|
|
18494
|
+
"application/json": {
|
|
18495
|
+
items: components["schemas"]["DirectoryGrantableRoleResponseDto"][];
|
|
18496
|
+
};
|
|
18497
|
+
};
|
|
18498
|
+
};
|
|
18499
|
+
/** @description The request failed validation, the default role is missing or not on the list, or the list names a system role; or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
18500
|
+
400: {
|
|
18501
|
+
headers: {
|
|
18502
|
+
[name: string]: unknown;
|
|
18503
|
+
};
|
|
18504
|
+
content: {
|
|
18505
|
+
/**
|
|
18506
|
+
* @example {
|
|
18507
|
+
* "error": {
|
|
18508
|
+
* "statusCode": 400,
|
|
18509
|
+
* "code": null,
|
|
18510
|
+
* "message": "The request failed validation, the default role is missing or not on the list, or the list names a system role; or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
18511
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18512
|
+
* "path": "/api/v1/organizations/{id}/directory/grantable-roles",
|
|
18513
|
+
* "method": "PUT"
|
|
18514
|
+
* }
|
|
18515
|
+
* }
|
|
18516
|
+
*/
|
|
18517
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18518
|
+
};
|
|
18519
|
+
};
|
|
18520
|
+
/** @description Invalid or expired token */
|
|
18521
|
+
401: {
|
|
18522
|
+
headers: {
|
|
18523
|
+
[name: string]: unknown;
|
|
18524
|
+
};
|
|
18525
|
+
content: {
|
|
18526
|
+
/**
|
|
18527
|
+
* @example {
|
|
18528
|
+
* "error": {
|
|
18529
|
+
* "statusCode": 401,
|
|
18530
|
+
* "code": null,
|
|
18531
|
+
* "message": "Invalid or expired token",
|
|
18532
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18533
|
+
* "path": "/api/v1/organizations/{id}/directory",
|
|
18534
|
+
* "method": "GET"
|
|
18535
|
+
* }
|
|
18536
|
+
* }
|
|
18537
|
+
*/
|
|
18538
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18539
|
+
};
|
|
18540
|
+
};
|
|
18541
|
+
/** @description Only the application owner may change this list. An organization's own administrator can read it, not change it. */
|
|
18542
|
+
403: {
|
|
18543
|
+
headers: {
|
|
18544
|
+
[name: string]: unknown;
|
|
18545
|
+
};
|
|
18546
|
+
content: {
|
|
18547
|
+
/**
|
|
18548
|
+
* @example {
|
|
18549
|
+
* "error": {
|
|
18550
|
+
* "statusCode": 403,
|
|
18551
|
+
* "code": null,
|
|
18552
|
+
* "message": "Only the application owner may change this list. An organization's own administrator can read it, not change it.",
|
|
18553
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18554
|
+
* "path": "/api/v1/organizations/{id}/directory/grantable-roles",
|
|
18555
|
+
* "method": "PUT"
|
|
18556
|
+
* }
|
|
18557
|
+
* }
|
|
18558
|
+
*/
|
|
18559
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18560
|
+
};
|
|
18561
|
+
};
|
|
18562
|
+
/** @description The organization, or a role the list names, does not exist in this Environment */
|
|
18563
|
+
404: {
|
|
18564
|
+
headers: {
|
|
18565
|
+
[name: string]: unknown;
|
|
18566
|
+
};
|
|
18567
|
+
content: {
|
|
18568
|
+
/**
|
|
18569
|
+
* @example {
|
|
18570
|
+
* "error": {
|
|
18571
|
+
* "statusCode": 404,
|
|
18572
|
+
* "code": null,
|
|
18573
|
+
* "message": "The organization, or a role the list names, does not exist in this Environment",
|
|
18574
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18575
|
+
* "path": "/api/v1/organizations/{id}/directory/grantable-roles",
|
|
18576
|
+
* "method": "PUT"
|
|
18577
|
+
* }
|
|
18578
|
+
* }
|
|
18579
|
+
*/
|
|
18580
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18581
|
+
};
|
|
18582
|
+
};
|
|
18583
|
+
/** @description The list cannot be emptied while the organization's directory is connected; remove the directory first */
|
|
18584
|
+
409: {
|
|
18585
|
+
headers: {
|
|
18586
|
+
[name: string]: unknown;
|
|
18587
|
+
};
|
|
18588
|
+
content: {
|
|
18589
|
+
/**
|
|
18590
|
+
* @example {
|
|
18591
|
+
* "error": {
|
|
18592
|
+
* "statusCode": 409,
|
|
18593
|
+
* "code": null,
|
|
18594
|
+
* "message": "The list cannot be emptied while the organization's directory is connected; remove the directory first",
|
|
18595
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18596
|
+
* "path": "/api/v1/organizations/{id}/directory/grantable-roles",
|
|
18597
|
+
* "method": "PUT"
|
|
18598
|
+
* }
|
|
18599
|
+
* }
|
|
18600
|
+
*/
|
|
18601
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18602
|
+
};
|
|
18603
|
+
};
|
|
18604
|
+
};
|
|
18605
|
+
};
|
|
18606
|
+
ApiOrganizationIntegrationsController_list: {
|
|
18607
|
+
parameters: {
|
|
18608
|
+
query?: {
|
|
18609
|
+
/** @description Page number (1-based) */
|
|
18610
|
+
page?: number;
|
|
18611
|
+
/** @description Items per page (1-100, default 20) */
|
|
18612
|
+
take?: number;
|
|
18613
|
+
/** @description Search integration names */
|
|
18614
|
+
q?: string;
|
|
18615
|
+
/** @description Sort column. Defaults to `created`, newest first. `last_active` orders by when each last obtained a token. */
|
|
18616
|
+
sort_by?: "name" | "last_active" | "created";
|
|
18617
|
+
/** @description Sort direction */
|
|
18618
|
+
order?: "asc" | "desc";
|
|
18619
|
+
};
|
|
18620
|
+
header?: never;
|
|
18621
|
+
path: {
|
|
18622
|
+
id: string;
|
|
18623
|
+
};
|
|
18624
|
+
cookie?: never;
|
|
18625
|
+
};
|
|
18626
|
+
requestBody?: never;
|
|
18627
|
+
responses: {
|
|
18628
|
+
/** @description One page of the organization's integrations */
|
|
18629
|
+
200: {
|
|
18630
|
+
headers: {
|
|
18631
|
+
[name: string]: unknown;
|
|
18632
|
+
};
|
|
18633
|
+
content: {
|
|
18634
|
+
"application/json": {
|
|
18635
|
+
items: components["schemas"]["OrganizationIntegrationResponseDto"][];
|
|
18636
|
+
pagination: components["schemas"]["PageMetaDto"];
|
|
18637
|
+
};
|
|
18638
|
+
};
|
|
18639
|
+
};
|
|
18640
|
+
/** @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 */
|
|
18641
|
+
400: {
|
|
18642
|
+
headers: {
|
|
18643
|
+
[name: string]: unknown;
|
|
18644
|
+
};
|
|
18645
|
+
content: {
|
|
18646
|
+
/**
|
|
18647
|
+
* @example {
|
|
18648
|
+
* "error": {
|
|
18649
|
+
* "statusCode": 400,
|
|
18650
|
+
* "code": null,
|
|
18651
|
+
* "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",
|
|
18652
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18653
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
18654
|
+
* "method": "GET"
|
|
18655
|
+
* }
|
|
18656
|
+
* }
|
|
18657
|
+
*/
|
|
18658
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18659
|
+
};
|
|
18660
|
+
};
|
|
18661
|
+
/** @description Invalid or expired token */
|
|
18662
|
+
401: {
|
|
18663
|
+
headers: {
|
|
18664
|
+
[name: string]: unknown;
|
|
18665
|
+
};
|
|
18666
|
+
content: {
|
|
18667
|
+
/**
|
|
18668
|
+
* @example {
|
|
18669
|
+
* "error": {
|
|
18670
|
+
* "statusCode": 401,
|
|
18671
|
+
* "code": null,
|
|
18672
|
+
* "message": "Invalid or expired token",
|
|
18673
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18674
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
18675
|
+
* "method": "GET"
|
|
18676
|
+
* }
|
|
18677
|
+
* }
|
|
18678
|
+
*/
|
|
18679
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18680
|
+
};
|
|
18681
|
+
};
|
|
18682
|
+
/** @description The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`) */
|
|
18683
|
+
403: {
|
|
18684
|
+
headers: {
|
|
18685
|
+
[name: string]: unknown;
|
|
18686
|
+
};
|
|
18687
|
+
content: {
|
|
18688
|
+
/**
|
|
18689
|
+
* @example {
|
|
18690
|
+
* "error": {
|
|
18691
|
+
* "statusCode": 403,
|
|
18692
|
+
* "code": null,
|
|
18693
|
+
* "message": "The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`)",
|
|
18694
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18695
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
18696
|
+
* "method": "GET"
|
|
18697
|
+
* }
|
|
18698
|
+
* }
|
|
18699
|
+
*/
|
|
18700
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18701
|
+
};
|
|
18702
|
+
};
|
|
18703
|
+
/** @description Organization not found */
|
|
18704
|
+
404: {
|
|
18705
|
+
headers: {
|
|
18706
|
+
[name: string]: unknown;
|
|
18707
|
+
};
|
|
18708
|
+
content: {
|
|
18709
|
+
/**
|
|
18710
|
+
* @example {
|
|
18711
|
+
* "error": {
|
|
18712
|
+
* "statusCode": 404,
|
|
18713
|
+
* "code": null,
|
|
18714
|
+
* "message": "Organization not found",
|
|
18715
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18716
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
18717
|
+
* "method": "GET"
|
|
18718
|
+
* }
|
|
18719
|
+
* }
|
|
18720
|
+
*/
|
|
18721
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18722
|
+
};
|
|
18723
|
+
};
|
|
18724
|
+
};
|
|
18725
|
+
};
|
|
18726
|
+
ApiOrganizationIntegrationsController_create: {
|
|
18727
|
+
parameters: {
|
|
18728
|
+
query?: never;
|
|
18729
|
+
header?: never;
|
|
18730
|
+
path: {
|
|
18731
|
+
id: string;
|
|
18732
|
+
};
|
|
18733
|
+
cookie?: never;
|
|
18734
|
+
};
|
|
18735
|
+
requestBody: {
|
|
18736
|
+
content: {
|
|
18737
|
+
"application/json": components["schemas"]["CreateOrganizationIntegrationDto"];
|
|
18738
|
+
};
|
|
18739
|
+
};
|
|
18740
|
+
responses: {
|
|
18741
|
+
/** @description The integration, with its secret shown once */
|
|
18742
|
+
201: {
|
|
18743
|
+
headers: {
|
|
18744
|
+
[name: string]: unknown;
|
|
18745
|
+
};
|
|
18746
|
+
content: {
|
|
18747
|
+
"application/json": {
|
|
18748
|
+
data: components["schemas"]["OrganizationIntegrationCreatedResponseDto"];
|
|
18749
|
+
};
|
|
18750
|
+
};
|
|
18751
|
+
};
|
|
18752
|
+
/** @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 */
|
|
18753
|
+
400: {
|
|
18754
|
+
headers: {
|
|
18755
|
+
[name: string]: unknown;
|
|
18756
|
+
};
|
|
18757
|
+
content: {
|
|
18758
|
+
/**
|
|
18759
|
+
* @example {
|
|
18760
|
+
* "error": {
|
|
18761
|
+
* "statusCode": 400,
|
|
18762
|
+
* "code": null,
|
|
18763
|
+
* "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",
|
|
18764
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18765
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
18766
|
+
* "method": "POST"
|
|
18767
|
+
* }
|
|
18768
|
+
* }
|
|
18769
|
+
*/
|
|
18770
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18771
|
+
};
|
|
18772
|
+
};
|
|
18773
|
+
/** @description Invalid or expired token */
|
|
18774
|
+
401: {
|
|
18775
|
+
headers: {
|
|
18776
|
+
[name: string]: unknown;
|
|
18777
|
+
};
|
|
18778
|
+
content: {
|
|
18779
|
+
/**
|
|
18780
|
+
* @example {
|
|
18781
|
+
* "error": {
|
|
18782
|
+
* "statusCode": 401,
|
|
18783
|
+
* "code": null,
|
|
18784
|
+
* "message": "Invalid or expired token",
|
|
18785
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18786
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
18787
|
+
* "method": "GET"
|
|
18788
|
+
* }
|
|
18789
|
+
* }
|
|
18790
|
+
*/
|
|
18791
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18792
|
+
};
|
|
18793
|
+
};
|
|
18794
|
+
/** @description The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`) */
|
|
18795
|
+
403: {
|
|
18796
|
+
headers: {
|
|
18797
|
+
[name: string]: unknown;
|
|
18798
|
+
};
|
|
18799
|
+
content: {
|
|
18800
|
+
/**
|
|
18801
|
+
* @example {
|
|
18802
|
+
* "error": {
|
|
18803
|
+
* "statusCode": 403,
|
|
18804
|
+
* "code": null,
|
|
18805
|
+
* "message": "The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`)",
|
|
18806
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18807
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
18808
|
+
* "method": "POST"
|
|
18809
|
+
* }
|
|
18810
|
+
* }
|
|
18811
|
+
*/
|
|
18812
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18813
|
+
};
|
|
18814
|
+
};
|
|
18815
|
+
/** @description Organization not found */
|
|
18816
|
+
404: {
|
|
18817
|
+
headers: {
|
|
18818
|
+
[name: string]: unknown;
|
|
18819
|
+
};
|
|
18820
|
+
content: {
|
|
18821
|
+
/**
|
|
18822
|
+
* @example {
|
|
18823
|
+
* "error": {
|
|
18824
|
+
* "statusCode": 404,
|
|
18825
|
+
* "code": null,
|
|
18826
|
+
* "message": "Organization not found",
|
|
18827
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18828
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
18829
|
+
* "method": "POST"
|
|
18830
|
+
* }
|
|
18831
|
+
* }
|
|
18832
|
+
*/
|
|
18833
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18834
|
+
};
|
|
18835
|
+
};
|
|
18836
|
+
/** @description The Environment has no default audience, the organization already holds as many integrations as it may, another of its integrations has this name, or the plan's machine-credential allowance is reached */
|
|
18837
|
+
409: {
|
|
18838
|
+
headers: {
|
|
18839
|
+
[name: string]: unknown;
|
|
18840
|
+
};
|
|
18841
|
+
content: {
|
|
18842
|
+
/**
|
|
18843
|
+
* @example {
|
|
18844
|
+
* "error": {
|
|
18845
|
+
* "statusCode": 409,
|
|
18846
|
+
* "code": null,
|
|
18847
|
+
* "message": "The Environment has no default audience, the organization already holds as many integrations as it may, another of its integrations has this name, or the plan's machine-credential allowance is reached",
|
|
18848
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18849
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
18850
|
+
* "method": "POST"
|
|
18851
|
+
* }
|
|
18852
|
+
* }
|
|
18853
|
+
*/
|
|
18854
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18855
|
+
};
|
|
18856
|
+
};
|
|
18857
|
+
};
|
|
18858
|
+
};
|
|
18859
|
+
ApiOrganizationIntegrationsController_roles: {
|
|
18860
|
+
parameters: {
|
|
18861
|
+
query?: never;
|
|
18862
|
+
header?: never;
|
|
18863
|
+
path: {
|
|
18864
|
+
id: string;
|
|
18865
|
+
};
|
|
18866
|
+
cookie?: never;
|
|
18867
|
+
};
|
|
18868
|
+
requestBody?: never;
|
|
18869
|
+
responses: {
|
|
18870
|
+
/** @description The roles an integration may be given */
|
|
18871
|
+
200: {
|
|
18872
|
+
headers: {
|
|
18873
|
+
[name: string]: unknown;
|
|
18874
|
+
};
|
|
18875
|
+
content: {
|
|
18876
|
+
"application/json": {
|
|
18877
|
+
items: components["schemas"]["RoleResponseDto"][];
|
|
18878
|
+
};
|
|
18879
|
+
};
|
|
18880
|
+
};
|
|
18881
|
+
/** @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 */
|
|
18882
|
+
400: {
|
|
18883
|
+
headers: {
|
|
18884
|
+
[name: string]: unknown;
|
|
18885
|
+
};
|
|
18886
|
+
content: {
|
|
18887
|
+
/**
|
|
18888
|
+
* @example {
|
|
18889
|
+
* "error": {
|
|
18890
|
+
* "statusCode": 400,
|
|
18891
|
+
* "code": null,
|
|
18892
|
+
* "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",
|
|
18893
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18894
|
+
* "path": "/api/v1/organizations/{id}/oauth-client-roles",
|
|
18895
|
+
* "method": "GET"
|
|
18896
|
+
* }
|
|
18897
|
+
* }
|
|
18898
|
+
*/
|
|
18899
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18900
|
+
};
|
|
18901
|
+
};
|
|
18902
|
+
/** @description Invalid or expired token */
|
|
18903
|
+
401: {
|
|
18904
|
+
headers: {
|
|
18905
|
+
[name: string]: unknown;
|
|
18906
|
+
};
|
|
18907
|
+
content: {
|
|
18908
|
+
/**
|
|
18909
|
+
* @example {
|
|
18910
|
+
* "error": {
|
|
18911
|
+
* "statusCode": 401,
|
|
18912
|
+
* "code": null,
|
|
18913
|
+
* "message": "Invalid or expired token",
|
|
18914
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18915
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
18916
|
+
* "method": "GET"
|
|
18917
|
+
* }
|
|
18918
|
+
* }
|
|
18919
|
+
*/
|
|
18920
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18921
|
+
};
|
|
18922
|
+
};
|
|
18923
|
+
/** @description The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`) */
|
|
18924
|
+
403: {
|
|
18925
|
+
headers: {
|
|
18926
|
+
[name: string]: unknown;
|
|
18927
|
+
};
|
|
18928
|
+
content: {
|
|
18929
|
+
/**
|
|
18930
|
+
* @example {
|
|
18931
|
+
* "error": {
|
|
18932
|
+
* "statusCode": 403,
|
|
18933
|
+
* "code": null,
|
|
18934
|
+
* "message": "The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`)",
|
|
18935
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18936
|
+
* "path": "/api/v1/organizations/{id}/oauth-client-roles",
|
|
18937
|
+
* "method": "GET"
|
|
18938
|
+
* }
|
|
18939
|
+
* }
|
|
18940
|
+
*/
|
|
18941
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18942
|
+
};
|
|
18943
|
+
};
|
|
18944
|
+
/** @description Organization not found */
|
|
18945
|
+
404: {
|
|
18946
|
+
headers: {
|
|
18947
|
+
[name: string]: unknown;
|
|
18948
|
+
};
|
|
18949
|
+
content: {
|
|
18950
|
+
/**
|
|
18951
|
+
* @example {
|
|
18952
|
+
* "error": {
|
|
18953
|
+
* "statusCode": 404,
|
|
18954
|
+
* "code": null,
|
|
18955
|
+
* "message": "Organization not found",
|
|
18956
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18957
|
+
* "path": "/api/v1/organizations/{id}/oauth-client-roles",
|
|
18958
|
+
* "method": "GET"
|
|
18959
|
+
* }
|
|
18960
|
+
* }
|
|
18961
|
+
*/
|
|
18962
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18963
|
+
};
|
|
18964
|
+
};
|
|
18965
|
+
};
|
|
18966
|
+
};
|
|
18967
|
+
ApiOrganizationIntegrationsController_get: {
|
|
18968
|
+
parameters: {
|
|
18969
|
+
query?: never;
|
|
18970
|
+
header?: never;
|
|
18971
|
+
path: {
|
|
18972
|
+
id: string;
|
|
18973
|
+
clientId: string;
|
|
18974
|
+
};
|
|
18975
|
+
cookie?: never;
|
|
18976
|
+
};
|
|
18977
|
+
requestBody?: never;
|
|
18978
|
+
responses: {
|
|
18979
|
+
/** @description The integration */
|
|
18980
|
+
200: {
|
|
18981
|
+
headers: {
|
|
18982
|
+
[name: string]: unknown;
|
|
18983
|
+
};
|
|
18984
|
+
content: {
|
|
18985
|
+
"application/json": {
|
|
18986
|
+
data: components["schemas"]["OrganizationIntegrationResponseDto"];
|
|
18987
|
+
};
|
|
18988
|
+
};
|
|
18989
|
+
};
|
|
18990
|
+
/** @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 */
|
|
18991
|
+
400: {
|
|
18992
|
+
headers: {
|
|
18993
|
+
[name: string]: unknown;
|
|
18994
|
+
};
|
|
18995
|
+
content: {
|
|
18996
|
+
/**
|
|
18997
|
+
* @example {
|
|
18998
|
+
* "error": {
|
|
18999
|
+
* "statusCode": 400,
|
|
19000
|
+
* "code": null,
|
|
19001
|
+
* "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",
|
|
19002
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19003
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}",
|
|
19004
|
+
* "method": "GET"
|
|
19005
|
+
* }
|
|
19006
|
+
* }
|
|
19007
|
+
*/
|
|
19008
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19009
|
+
};
|
|
19010
|
+
};
|
|
19011
|
+
/** @description Invalid or expired token */
|
|
19012
|
+
401: {
|
|
19013
|
+
headers: {
|
|
19014
|
+
[name: string]: unknown;
|
|
19015
|
+
};
|
|
19016
|
+
content: {
|
|
19017
|
+
/**
|
|
19018
|
+
* @example {
|
|
19019
|
+
* "error": {
|
|
19020
|
+
* "statusCode": 401,
|
|
19021
|
+
* "code": null,
|
|
19022
|
+
* "message": "Invalid or expired token",
|
|
19023
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19024
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
19025
|
+
* "method": "GET"
|
|
19026
|
+
* }
|
|
19027
|
+
* }
|
|
19028
|
+
*/
|
|
19029
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19030
|
+
};
|
|
19031
|
+
};
|
|
19032
|
+
/** @description The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`) */
|
|
19033
|
+
403: {
|
|
19034
|
+
headers: {
|
|
19035
|
+
[name: string]: unknown;
|
|
19036
|
+
};
|
|
19037
|
+
content: {
|
|
19038
|
+
/**
|
|
19039
|
+
* @example {
|
|
19040
|
+
* "error": {
|
|
19041
|
+
* "statusCode": 403,
|
|
19042
|
+
* "code": null,
|
|
19043
|
+
* "message": "The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`)",
|
|
19044
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19045
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}",
|
|
19046
|
+
* "method": "GET"
|
|
19047
|
+
* }
|
|
19048
|
+
* }
|
|
19049
|
+
*/
|
|
19050
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19051
|
+
};
|
|
19052
|
+
};
|
|
19053
|
+
/** @description No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it */
|
|
19054
|
+
404: {
|
|
19055
|
+
headers: {
|
|
19056
|
+
[name: string]: unknown;
|
|
19057
|
+
};
|
|
19058
|
+
content: {
|
|
19059
|
+
/**
|
|
19060
|
+
* @example {
|
|
19061
|
+
* "error": {
|
|
19062
|
+
* "statusCode": 404,
|
|
19063
|
+
* "code": null,
|
|
19064
|
+
* "message": "No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it",
|
|
19065
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19066
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}",
|
|
19067
|
+
* "method": "GET"
|
|
19068
|
+
* }
|
|
19069
|
+
* }
|
|
19070
|
+
*/
|
|
19071
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19072
|
+
};
|
|
19073
|
+
};
|
|
19074
|
+
};
|
|
19075
|
+
};
|
|
19076
|
+
ApiOrganizationIntegrationsController_remove: {
|
|
19077
|
+
parameters: {
|
|
19078
|
+
query?: never;
|
|
19079
|
+
header?: never;
|
|
19080
|
+
path: {
|
|
19081
|
+
id: string;
|
|
19082
|
+
clientId: string;
|
|
19083
|
+
};
|
|
19084
|
+
cookie?: never;
|
|
19085
|
+
};
|
|
19086
|
+
requestBody?: never;
|
|
19087
|
+
responses: {
|
|
19088
|
+
/** @description Integration deleted */
|
|
19089
|
+
204: {
|
|
19090
|
+
headers: {
|
|
19091
|
+
[name: string]: unknown;
|
|
19092
|
+
};
|
|
19093
|
+
content?: never;
|
|
19094
|
+
};
|
|
19095
|
+
/** @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 */
|
|
19096
|
+
400: {
|
|
19097
|
+
headers: {
|
|
19098
|
+
[name: string]: unknown;
|
|
19099
|
+
};
|
|
19100
|
+
content: {
|
|
19101
|
+
/**
|
|
19102
|
+
* @example {
|
|
19103
|
+
* "error": {
|
|
19104
|
+
* "statusCode": 400,
|
|
19105
|
+
* "code": null,
|
|
19106
|
+
* "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",
|
|
19107
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19108
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}",
|
|
19109
|
+
* "method": "DELETE"
|
|
19110
|
+
* }
|
|
19111
|
+
* }
|
|
19112
|
+
*/
|
|
19113
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19114
|
+
};
|
|
19115
|
+
};
|
|
19116
|
+
/** @description Invalid or expired token */
|
|
19117
|
+
401: {
|
|
19118
|
+
headers: {
|
|
19119
|
+
[name: string]: unknown;
|
|
19120
|
+
};
|
|
19121
|
+
content: {
|
|
19122
|
+
/**
|
|
19123
|
+
* @example {
|
|
19124
|
+
* "error": {
|
|
19125
|
+
* "statusCode": 401,
|
|
19126
|
+
* "code": null,
|
|
19127
|
+
* "message": "Invalid or expired token",
|
|
19128
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19129
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
19130
|
+
* "method": "GET"
|
|
19131
|
+
* }
|
|
19132
|
+
* }
|
|
19133
|
+
*/
|
|
19134
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19135
|
+
};
|
|
19136
|
+
};
|
|
19137
|
+
/** @description The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`) */
|
|
19138
|
+
403: {
|
|
19139
|
+
headers: {
|
|
19140
|
+
[name: string]: unknown;
|
|
19141
|
+
};
|
|
19142
|
+
content: {
|
|
19143
|
+
/**
|
|
19144
|
+
* @example {
|
|
19145
|
+
* "error": {
|
|
19146
|
+
* "statusCode": 403,
|
|
19147
|
+
* "code": null,
|
|
19148
|
+
* "message": "The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`)",
|
|
19149
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19150
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}",
|
|
19151
|
+
* "method": "DELETE"
|
|
19152
|
+
* }
|
|
19153
|
+
* }
|
|
19154
|
+
*/
|
|
19155
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19156
|
+
};
|
|
19157
|
+
};
|
|
19158
|
+
/** @description No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it */
|
|
19159
|
+
404: {
|
|
19160
|
+
headers: {
|
|
19161
|
+
[name: string]: unknown;
|
|
19162
|
+
};
|
|
19163
|
+
content: {
|
|
19164
|
+
/**
|
|
19165
|
+
* @example {
|
|
19166
|
+
* "error": {
|
|
19167
|
+
* "statusCode": 404,
|
|
19168
|
+
* "code": null,
|
|
19169
|
+
* "message": "No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it",
|
|
19170
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19171
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}",
|
|
19172
|
+
* "method": "DELETE"
|
|
19173
|
+
* }
|
|
19174
|
+
* }
|
|
19175
|
+
*/
|
|
19176
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19177
|
+
};
|
|
19178
|
+
};
|
|
19179
|
+
};
|
|
19180
|
+
};
|
|
19181
|
+
ApiOrganizationIntegrationsController_update: {
|
|
19182
|
+
parameters: {
|
|
19183
|
+
query?: never;
|
|
19184
|
+
header?: {
|
|
19185
|
+
/** @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. */
|
|
19186
|
+
"If-Match"?: string;
|
|
19187
|
+
};
|
|
19188
|
+
path: {
|
|
19189
|
+
id: string;
|
|
19190
|
+
clientId: string;
|
|
19191
|
+
};
|
|
19192
|
+
cookie?: never;
|
|
19193
|
+
};
|
|
19194
|
+
requestBody: {
|
|
19195
|
+
content: {
|
|
19196
|
+
"application/json": components["schemas"]["UpdateOrganizationIntegrationDto"];
|
|
19197
|
+
};
|
|
19198
|
+
};
|
|
19199
|
+
responses: {
|
|
19200
|
+
/** @description The integration as it now stands */
|
|
19201
|
+
200: {
|
|
19202
|
+
headers: {
|
|
19203
|
+
[name: string]: unknown;
|
|
19204
|
+
};
|
|
19205
|
+
content: {
|
|
19206
|
+
"application/json": {
|
|
19207
|
+
data: components["schemas"]["OrganizationIntegrationResponseDto"];
|
|
19208
|
+
};
|
|
19209
|
+
};
|
|
19210
|
+
};
|
|
19211
|
+
/** @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 */
|
|
19212
|
+
400: {
|
|
19213
|
+
headers: {
|
|
19214
|
+
[name: string]: unknown;
|
|
19215
|
+
};
|
|
19216
|
+
content: {
|
|
19217
|
+
/**
|
|
19218
|
+
* @example {
|
|
19219
|
+
* "error": {
|
|
19220
|
+
* "statusCode": 400,
|
|
19221
|
+
* "code": null,
|
|
19222
|
+
* "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",
|
|
19223
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19224
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}",
|
|
19225
|
+
* "method": "PATCH"
|
|
19226
|
+
* }
|
|
19227
|
+
* }
|
|
19228
|
+
*/
|
|
19229
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19230
|
+
};
|
|
19231
|
+
};
|
|
19232
|
+
/** @description Invalid or expired token */
|
|
19233
|
+
401: {
|
|
19234
|
+
headers: {
|
|
19235
|
+
[name: string]: unknown;
|
|
19236
|
+
};
|
|
19237
|
+
content: {
|
|
19238
|
+
/**
|
|
19239
|
+
* @example {
|
|
19240
|
+
* "error": {
|
|
19241
|
+
* "statusCode": 401,
|
|
19242
|
+
* "code": null,
|
|
19243
|
+
* "message": "Invalid or expired token",
|
|
19244
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19245
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
19246
|
+
* "method": "GET"
|
|
19247
|
+
* }
|
|
19248
|
+
* }
|
|
19249
|
+
*/
|
|
19250
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19251
|
+
};
|
|
19252
|
+
};
|
|
19253
|
+
/** @description The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`) */
|
|
19254
|
+
403: {
|
|
19255
|
+
headers: {
|
|
19256
|
+
[name: string]: unknown;
|
|
19257
|
+
};
|
|
19258
|
+
content: {
|
|
19259
|
+
/**
|
|
19260
|
+
* @example {
|
|
19261
|
+
* "error": {
|
|
19262
|
+
* "statusCode": 403,
|
|
19263
|
+
* "code": null,
|
|
19264
|
+
* "message": "The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`)",
|
|
19265
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19266
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}",
|
|
19267
|
+
* "method": "PATCH"
|
|
19268
|
+
* }
|
|
19269
|
+
* }
|
|
19270
|
+
*/
|
|
19271
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19272
|
+
};
|
|
19273
|
+
};
|
|
19274
|
+
/** @description No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it */
|
|
19275
|
+
404: {
|
|
19276
|
+
headers: {
|
|
19277
|
+
[name: string]: unknown;
|
|
19278
|
+
};
|
|
19279
|
+
content: {
|
|
19280
|
+
/**
|
|
19281
|
+
* @example {
|
|
19282
|
+
* "error": {
|
|
19283
|
+
* "statusCode": 404,
|
|
19284
|
+
* "code": null,
|
|
19285
|
+
* "message": "No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it",
|
|
19286
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19287
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}",
|
|
19288
|
+
* "method": "PATCH"
|
|
19289
|
+
* }
|
|
19290
|
+
* }
|
|
19291
|
+
*/
|
|
19292
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19293
|
+
};
|
|
19294
|
+
};
|
|
19295
|
+
/** @description Another of the organization's integrations has this name (`organization.integration_name_taken`), or the integration was modified since the version named in If-Match was read (`version_mismatch`) */
|
|
19296
|
+
409: {
|
|
19297
|
+
headers: {
|
|
19298
|
+
[name: string]: unknown;
|
|
19299
|
+
};
|
|
19300
|
+
content: {
|
|
19301
|
+
/**
|
|
19302
|
+
* @example {
|
|
19303
|
+
* "error": {
|
|
19304
|
+
* "statusCode": 409,
|
|
19305
|
+
* "code": null,
|
|
19306
|
+
* "message": "Another of the organization's integrations has this name (`organization.integration_name_taken`), or the integration was modified since the version named in If-Match was read (`version_mismatch`)",
|
|
19307
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19308
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}",
|
|
19309
|
+
* "method": "PATCH"
|
|
19310
|
+
* }
|
|
19311
|
+
* }
|
|
19312
|
+
*/
|
|
19313
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19314
|
+
};
|
|
19315
|
+
};
|
|
19316
|
+
};
|
|
19317
|
+
};
|
|
19318
|
+
ApiOrganizationIntegrationsController_rotateSecret: {
|
|
19319
|
+
parameters: {
|
|
19320
|
+
query?: never;
|
|
19321
|
+
header?: never;
|
|
19322
|
+
path: {
|
|
19323
|
+
id: string;
|
|
19324
|
+
clientId: string;
|
|
19325
|
+
};
|
|
19326
|
+
cookie?: never;
|
|
19327
|
+
};
|
|
19328
|
+
requestBody: {
|
|
19329
|
+
content: {
|
|
19330
|
+
"application/json": components["schemas"]["RotateOAuthClientSecretDto"];
|
|
19331
|
+
};
|
|
19332
|
+
};
|
|
19333
|
+
responses: {
|
|
19334
|
+
/** @description The new secret, shown once */
|
|
19335
|
+
200: {
|
|
19336
|
+
headers: {
|
|
19337
|
+
[name: string]: unknown;
|
|
19338
|
+
};
|
|
19339
|
+
content: {
|
|
19340
|
+
"application/json": {
|
|
19341
|
+
data: components["schemas"]["OAuthClientSecretRotatedResponseDto"];
|
|
19342
|
+
};
|
|
19343
|
+
};
|
|
19344
|
+
};
|
|
19345
|
+
/** @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 */
|
|
19346
|
+
400: {
|
|
19347
|
+
headers: {
|
|
19348
|
+
[name: string]: unknown;
|
|
19349
|
+
};
|
|
19350
|
+
content: {
|
|
19351
|
+
/**
|
|
19352
|
+
* @example {
|
|
19353
|
+
* "error": {
|
|
19354
|
+
* "statusCode": 400,
|
|
19355
|
+
* "code": null,
|
|
19356
|
+
* "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",
|
|
19357
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19358
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/rotate-secret",
|
|
19359
|
+
* "method": "POST"
|
|
19360
|
+
* }
|
|
19361
|
+
* }
|
|
19362
|
+
*/
|
|
19363
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19364
|
+
};
|
|
19365
|
+
};
|
|
19366
|
+
/** @description Invalid or expired token */
|
|
19367
|
+
401: {
|
|
19368
|
+
headers: {
|
|
19369
|
+
[name: string]: unknown;
|
|
19370
|
+
};
|
|
19371
|
+
content: {
|
|
19372
|
+
/**
|
|
19373
|
+
* @example {
|
|
19374
|
+
* "error": {
|
|
19375
|
+
* "statusCode": 401,
|
|
19376
|
+
* "code": null,
|
|
19377
|
+
* "message": "Invalid or expired token",
|
|
19378
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19379
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
19380
|
+
* "method": "GET"
|
|
19381
|
+
* }
|
|
19382
|
+
* }
|
|
19383
|
+
*/
|
|
19384
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19385
|
+
};
|
|
19386
|
+
};
|
|
19387
|
+
/** @description The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`) */
|
|
19388
|
+
403: {
|
|
19389
|
+
headers: {
|
|
19390
|
+
[name: string]: unknown;
|
|
19391
|
+
};
|
|
19392
|
+
content: {
|
|
19393
|
+
/**
|
|
19394
|
+
* @example {
|
|
19395
|
+
* "error": {
|
|
19396
|
+
* "statusCode": 403,
|
|
19397
|
+
* "code": null,
|
|
19398
|
+
* "message": "The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`)",
|
|
19399
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19400
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/rotate-secret",
|
|
19401
|
+
* "method": "POST"
|
|
19402
|
+
* }
|
|
19403
|
+
* }
|
|
19404
|
+
*/
|
|
19405
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19406
|
+
};
|
|
19407
|
+
};
|
|
19408
|
+
/** @description No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it */
|
|
19409
|
+
404: {
|
|
19410
|
+
headers: {
|
|
19411
|
+
[name: string]: unknown;
|
|
19412
|
+
};
|
|
19413
|
+
content: {
|
|
19414
|
+
/**
|
|
19415
|
+
* @example {
|
|
19416
|
+
* "error": {
|
|
19417
|
+
* "statusCode": 404,
|
|
19418
|
+
* "code": null,
|
|
19419
|
+
* "message": "No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it",
|
|
19420
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19421
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/rotate-secret",
|
|
19422
|
+
* "method": "POST"
|
|
19423
|
+
* }
|
|
19424
|
+
* }
|
|
19425
|
+
*/
|
|
19426
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19427
|
+
};
|
|
19428
|
+
};
|
|
19429
|
+
};
|
|
19430
|
+
};
|
|
19431
|
+
ApiOrganizationIntegrationsController_listAssignments: {
|
|
19432
|
+
parameters: {
|
|
19433
|
+
query?: {
|
|
19434
|
+
/** @description Page number (1-based) */
|
|
19435
|
+
page?: number;
|
|
19436
|
+
/** @description Items per page (1-100, default 20) */
|
|
19437
|
+
take?: number;
|
|
19438
|
+
/** @description Search term */
|
|
19439
|
+
q?: string;
|
|
19440
|
+
/** @description Column to sort by. Allowed values depend on the endpoint. */
|
|
19441
|
+
sort_by?: string;
|
|
19442
|
+
/** @description Sort direction */
|
|
19443
|
+
order?: "asc" | "desc";
|
|
19444
|
+
};
|
|
19445
|
+
header?: never;
|
|
19446
|
+
path: {
|
|
19447
|
+
id: string;
|
|
19448
|
+
clientId: string;
|
|
19449
|
+
};
|
|
19450
|
+
cookie?: never;
|
|
19451
|
+
};
|
|
19452
|
+
requestBody?: never;
|
|
19453
|
+
responses: {
|
|
19454
|
+
/** @description One page of the integration's roles */
|
|
19455
|
+
200: {
|
|
19456
|
+
headers: {
|
|
19457
|
+
[name: string]: unknown;
|
|
19458
|
+
};
|
|
19459
|
+
content: {
|
|
19460
|
+
"application/json": {
|
|
19461
|
+
items: components["schemas"]["AssignmentResponseDto"][];
|
|
19462
|
+
pagination: components["schemas"]["PageMetaDto"];
|
|
19463
|
+
};
|
|
19464
|
+
};
|
|
19465
|
+
};
|
|
19466
|
+
/** @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 */
|
|
19467
|
+
400: {
|
|
19468
|
+
headers: {
|
|
19469
|
+
[name: string]: unknown;
|
|
19470
|
+
};
|
|
19471
|
+
content: {
|
|
19472
|
+
/**
|
|
19473
|
+
* @example {
|
|
19474
|
+
* "error": {
|
|
19475
|
+
* "statusCode": 400,
|
|
19476
|
+
* "code": null,
|
|
19477
|
+
* "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",
|
|
19478
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19479
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments",
|
|
19480
|
+
* "method": "GET"
|
|
19481
|
+
* }
|
|
19482
|
+
* }
|
|
19483
|
+
*/
|
|
19484
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19485
|
+
};
|
|
19486
|
+
};
|
|
19487
|
+
/** @description Invalid or expired token */
|
|
19488
|
+
401: {
|
|
19489
|
+
headers: {
|
|
19490
|
+
[name: string]: unknown;
|
|
19491
|
+
};
|
|
19492
|
+
content: {
|
|
19493
|
+
/**
|
|
19494
|
+
* @example {
|
|
19495
|
+
* "error": {
|
|
19496
|
+
* "statusCode": 401,
|
|
19497
|
+
* "code": null,
|
|
19498
|
+
* "message": "Invalid or expired token",
|
|
19499
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19500
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
19501
|
+
* "method": "GET"
|
|
19502
|
+
* }
|
|
19503
|
+
* }
|
|
19504
|
+
*/
|
|
19505
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19506
|
+
};
|
|
19507
|
+
};
|
|
19508
|
+
/** @description The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`) */
|
|
19509
|
+
403: {
|
|
19510
|
+
headers: {
|
|
19511
|
+
[name: string]: unknown;
|
|
19512
|
+
};
|
|
19513
|
+
content: {
|
|
19514
|
+
/**
|
|
19515
|
+
* @example {
|
|
19516
|
+
* "error": {
|
|
19517
|
+
* "statusCode": 403,
|
|
19518
|
+
* "code": null,
|
|
19519
|
+
* "message": "The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`)",
|
|
19520
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19521
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments",
|
|
19522
|
+
* "method": "GET"
|
|
19523
|
+
* }
|
|
19524
|
+
* }
|
|
19525
|
+
*/
|
|
19526
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19527
|
+
};
|
|
19528
|
+
};
|
|
19529
|
+
/** @description No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it */
|
|
19530
|
+
404: {
|
|
19531
|
+
headers: {
|
|
19532
|
+
[name: string]: unknown;
|
|
19533
|
+
};
|
|
19534
|
+
content: {
|
|
19535
|
+
/**
|
|
19536
|
+
* @example {
|
|
19537
|
+
* "error": {
|
|
19538
|
+
* "statusCode": 404,
|
|
19539
|
+
* "code": null,
|
|
19540
|
+
* "message": "No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it",
|
|
19541
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19542
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments",
|
|
19543
|
+
* "method": "GET"
|
|
19544
|
+
* }
|
|
19545
|
+
* }
|
|
19546
|
+
*/
|
|
19547
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19548
|
+
};
|
|
19549
|
+
};
|
|
19550
|
+
};
|
|
19551
|
+
};
|
|
19552
|
+
ApiOrganizationIntegrationsController_assign: {
|
|
19553
|
+
parameters: {
|
|
19554
|
+
query?: never;
|
|
19555
|
+
header?: never;
|
|
19556
|
+
path: {
|
|
19557
|
+
id: string;
|
|
19558
|
+
clientId: string;
|
|
19559
|
+
};
|
|
19560
|
+
cookie?: never;
|
|
19561
|
+
};
|
|
19562
|
+
requestBody: {
|
|
19563
|
+
content: {
|
|
19564
|
+
"application/json": components["schemas"]["CreateOAuthClientAssignmentDto"];
|
|
19565
|
+
};
|
|
19566
|
+
};
|
|
19567
|
+
responses: {
|
|
19568
|
+
/** @description The new assignment */
|
|
19569
|
+
201: {
|
|
19570
|
+
headers: {
|
|
19571
|
+
[name: string]: unknown;
|
|
19572
|
+
};
|
|
19573
|
+
content: {
|
|
19574
|
+
"application/json": {
|
|
19575
|
+
data: components["schemas"]["AssignmentResponseDto"];
|
|
19576
|
+
};
|
|
19577
|
+
};
|
|
19578
|
+
};
|
|
19579
|
+
/** @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 */
|
|
19580
|
+
400: {
|
|
19581
|
+
headers: {
|
|
19582
|
+
[name: string]: unknown;
|
|
19583
|
+
};
|
|
19584
|
+
content: {
|
|
19585
|
+
/**
|
|
19586
|
+
* @example {
|
|
19587
|
+
* "error": {
|
|
19588
|
+
* "statusCode": 400,
|
|
19589
|
+
* "code": null,
|
|
19590
|
+
* "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",
|
|
19591
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19592
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments",
|
|
19593
|
+
* "method": "POST"
|
|
19594
|
+
* }
|
|
19595
|
+
* }
|
|
19596
|
+
*/
|
|
19597
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19598
|
+
};
|
|
19599
|
+
};
|
|
19600
|
+
/** @description Invalid or expired token */
|
|
19601
|
+
401: {
|
|
19602
|
+
headers: {
|
|
19603
|
+
[name: string]: unknown;
|
|
19604
|
+
};
|
|
19605
|
+
content: {
|
|
19606
|
+
/**
|
|
19607
|
+
* @example {
|
|
19608
|
+
* "error": {
|
|
19609
|
+
* "statusCode": 401,
|
|
19610
|
+
* "code": null,
|
|
19611
|
+
* "message": "Invalid or expired token",
|
|
19612
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19613
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
19614
|
+
* "method": "GET"
|
|
19615
|
+
* }
|
|
19616
|
+
* }
|
|
19617
|
+
*/
|
|
19618
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19619
|
+
};
|
|
19620
|
+
};
|
|
19621
|
+
/** @description The caller may not manage this organization or grant this role at this node (`assignment.grant_ceiling`), the role is not one an integration may hold (`organization.integration_role_not_grantable`), or the Environment does not let organizations create integrations (`organization.integrations_disabled`) */
|
|
19622
|
+
403: {
|
|
19623
|
+
headers: {
|
|
19624
|
+
[name: string]: unknown;
|
|
19625
|
+
};
|
|
19626
|
+
content: {
|
|
19627
|
+
/**
|
|
19628
|
+
* @example {
|
|
19629
|
+
* "error": {
|
|
19630
|
+
* "statusCode": 403,
|
|
19631
|
+
* "code": null,
|
|
19632
|
+
* "message": "The caller may not manage this organization or grant this role at this node (`assignment.grant_ceiling`), the role is not one an integration may hold (`organization.integration_role_not_grantable`), or the Environment does not let organizations create integrations (`organization.integrations_disabled`)",
|
|
19633
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19634
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments",
|
|
19635
|
+
* "method": "POST"
|
|
19636
|
+
* }
|
|
19637
|
+
* }
|
|
19638
|
+
*/
|
|
19639
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19640
|
+
};
|
|
19641
|
+
};
|
|
19642
|
+
/** @description No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it, the node or role does not exist in it, or the assignment is not one this integration holds */
|
|
19643
|
+
404: {
|
|
19644
|
+
headers: {
|
|
19645
|
+
[name: string]: unknown;
|
|
19646
|
+
};
|
|
19647
|
+
content: {
|
|
19648
|
+
/**
|
|
19649
|
+
* @example {
|
|
19650
|
+
* "error": {
|
|
19651
|
+
* "statusCode": 404,
|
|
19652
|
+
* "code": null,
|
|
19653
|
+
* "message": "No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it, the node or role does not exist in it, or the assignment is not one this integration holds",
|
|
19654
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19655
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments",
|
|
19656
|
+
* "method": "POST"
|
|
19657
|
+
* }
|
|
19658
|
+
* }
|
|
19659
|
+
*/
|
|
19660
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19661
|
+
};
|
|
19662
|
+
};
|
|
19663
|
+
/** @description The node is outside the organization (`oauth.client_outside_organization`), or the integration already holds this role there */
|
|
19664
|
+
409: {
|
|
19665
|
+
headers: {
|
|
19666
|
+
[name: string]: unknown;
|
|
19667
|
+
};
|
|
19668
|
+
content: {
|
|
19669
|
+
/**
|
|
19670
|
+
* @example {
|
|
19671
|
+
* "error": {
|
|
19672
|
+
* "statusCode": 409,
|
|
19673
|
+
* "code": null,
|
|
19674
|
+
* "message": "The node is outside the organization (`oauth.client_outside_organization`), or the integration already holds this role there",
|
|
19675
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19676
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments",
|
|
19677
|
+
* "method": "POST"
|
|
19678
|
+
* }
|
|
19679
|
+
* }
|
|
19680
|
+
*/
|
|
19681
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19682
|
+
};
|
|
19683
|
+
};
|
|
19684
|
+
};
|
|
19685
|
+
};
|
|
19686
|
+
ApiOrganizationIntegrationsController_removeAssignment: {
|
|
19687
|
+
parameters: {
|
|
19688
|
+
query?: never;
|
|
19689
|
+
header?: never;
|
|
19690
|
+
path: {
|
|
19691
|
+
id: string;
|
|
19692
|
+
clientId: string;
|
|
19693
|
+
assignmentId: string;
|
|
19694
|
+
};
|
|
19695
|
+
cookie?: never;
|
|
19696
|
+
};
|
|
19697
|
+
requestBody?: never;
|
|
19698
|
+
responses: {
|
|
19699
|
+
/** @description Assignment removed */
|
|
19700
|
+
204: {
|
|
19701
|
+
headers: {
|
|
19702
|
+
[name: string]: unknown;
|
|
19703
|
+
};
|
|
19704
|
+
content?: never;
|
|
19705
|
+
};
|
|
19706
|
+
/** @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 */
|
|
19707
|
+
400: {
|
|
19708
|
+
headers: {
|
|
19709
|
+
[name: string]: unknown;
|
|
19710
|
+
};
|
|
19711
|
+
content: {
|
|
19712
|
+
/**
|
|
19713
|
+
* @example {
|
|
19714
|
+
* "error": {
|
|
19715
|
+
* "statusCode": 400,
|
|
19716
|
+
* "code": null,
|
|
19717
|
+
* "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",
|
|
19718
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19719
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments/{assignmentId}",
|
|
19720
|
+
* "method": "DELETE"
|
|
19721
|
+
* }
|
|
19722
|
+
* }
|
|
19723
|
+
*/
|
|
19724
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19725
|
+
};
|
|
19726
|
+
};
|
|
19727
|
+
/** @description Invalid or expired token */
|
|
19728
|
+
401: {
|
|
19729
|
+
headers: {
|
|
19730
|
+
[name: string]: unknown;
|
|
19731
|
+
};
|
|
19732
|
+
content: {
|
|
19733
|
+
/**
|
|
19734
|
+
* @example {
|
|
19735
|
+
* "error": {
|
|
19736
|
+
* "statusCode": 401,
|
|
19737
|
+
* "code": null,
|
|
19738
|
+
* "message": "Invalid or expired token",
|
|
19739
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19740
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
19741
|
+
* "method": "GET"
|
|
19742
|
+
* }
|
|
19743
|
+
* }
|
|
19744
|
+
*/
|
|
19745
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19746
|
+
};
|
|
19747
|
+
};
|
|
19748
|
+
/** @description The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`) */
|
|
19749
|
+
403: {
|
|
19750
|
+
headers: {
|
|
19751
|
+
[name: string]: unknown;
|
|
19752
|
+
};
|
|
19753
|
+
content: {
|
|
19754
|
+
/**
|
|
19755
|
+
* @example {
|
|
19756
|
+
* "error": {
|
|
19757
|
+
* "statusCode": 403,
|
|
19758
|
+
* "code": null,
|
|
19759
|
+
* "message": "The caller may not manage this organization, or the Environment does not let organizations create integrations (`organization.integrations_disabled`)",
|
|
19760
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19761
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments/{assignmentId}",
|
|
19762
|
+
* "method": "DELETE"
|
|
19763
|
+
* }
|
|
19764
|
+
* }
|
|
19765
|
+
*/
|
|
19766
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19767
|
+
};
|
|
19768
|
+
};
|
|
19769
|
+
/** @description No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it, the node or role does not exist in it, or the assignment is not one this integration holds */
|
|
19770
|
+
404: {
|
|
19771
|
+
headers: {
|
|
19772
|
+
[name: string]: unknown;
|
|
19773
|
+
};
|
|
19774
|
+
content: {
|
|
19775
|
+
/**
|
|
19776
|
+
* @example {
|
|
19777
|
+
* "error": {
|
|
19778
|
+
* "statusCode": 404,
|
|
19779
|
+
* "code": null,
|
|
19780
|
+
* "message": "No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it, the node or role does not exist in it, or the assignment is not one this integration holds",
|
|
19781
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19782
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments/{assignmentId}",
|
|
19783
|
+
* "method": "DELETE"
|
|
19784
|
+
* }
|
|
19785
|
+
* }
|
|
19786
|
+
*/
|
|
19787
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19788
|
+
};
|
|
19789
|
+
};
|
|
19790
|
+
};
|
|
19791
|
+
};
|
|
19792
|
+
ApiOrganizationIntegrationsController_updateAssignment: {
|
|
19793
|
+
parameters: {
|
|
19794
|
+
query?: never;
|
|
19795
|
+
header?: {
|
|
19796
|
+
/** @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. */
|
|
19797
|
+
"If-Match"?: string;
|
|
19798
|
+
};
|
|
19799
|
+
path: {
|
|
19800
|
+
id: string;
|
|
19801
|
+
clientId: string;
|
|
19802
|
+
assignmentId: string;
|
|
19803
|
+
};
|
|
19804
|
+
cookie?: never;
|
|
19805
|
+
};
|
|
19806
|
+
requestBody: {
|
|
19807
|
+
content: {
|
|
19808
|
+
"application/json": components["schemas"]["UpdateAssignmentDto"];
|
|
19809
|
+
};
|
|
19810
|
+
};
|
|
19811
|
+
responses: {
|
|
19812
|
+
/** @description The assignment as it now stands */
|
|
19813
|
+
200: {
|
|
19814
|
+
headers: {
|
|
19815
|
+
[name: string]: unknown;
|
|
19816
|
+
};
|
|
19817
|
+
content: {
|
|
19818
|
+
"application/json": {
|
|
19819
|
+
data: components["schemas"]["AssignmentResponseDto"];
|
|
19820
|
+
};
|
|
19821
|
+
};
|
|
19822
|
+
};
|
|
19823
|
+
/** @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 */
|
|
19824
|
+
400: {
|
|
19825
|
+
headers: {
|
|
19826
|
+
[name: string]: unknown;
|
|
19827
|
+
};
|
|
19828
|
+
content: {
|
|
19829
|
+
/**
|
|
19830
|
+
* @example {
|
|
19831
|
+
* "error": {
|
|
19832
|
+
* "statusCode": 400,
|
|
19833
|
+
* "code": null,
|
|
19834
|
+
* "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",
|
|
19835
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19836
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments/{assignmentId}",
|
|
19837
|
+
* "method": "PATCH"
|
|
19838
|
+
* }
|
|
19839
|
+
* }
|
|
19840
|
+
*/
|
|
19841
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19842
|
+
};
|
|
19843
|
+
};
|
|
19844
|
+
/** @description Invalid or expired token */
|
|
19845
|
+
401: {
|
|
19846
|
+
headers: {
|
|
19847
|
+
[name: string]: unknown;
|
|
19848
|
+
};
|
|
19849
|
+
content: {
|
|
19850
|
+
/**
|
|
19851
|
+
* @example {
|
|
19852
|
+
* "error": {
|
|
19853
|
+
* "statusCode": 401,
|
|
19854
|
+
* "code": null,
|
|
19855
|
+
* "message": "Invalid or expired token",
|
|
19856
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19857
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients",
|
|
19858
|
+
* "method": "GET"
|
|
19859
|
+
* }
|
|
19860
|
+
* }
|
|
19861
|
+
*/
|
|
19862
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19863
|
+
};
|
|
19864
|
+
};
|
|
19865
|
+
/** @description The caller may not manage this organization or grant this role at this node (`assignment.grant_ceiling`), the role is not one an integration may hold (`organization.integration_role_not_grantable`), or the Environment does not let organizations create integrations (`organization.integrations_disabled`) */
|
|
19866
|
+
403: {
|
|
19867
|
+
headers: {
|
|
19868
|
+
[name: string]: unknown;
|
|
19869
|
+
};
|
|
19870
|
+
content: {
|
|
19871
|
+
/**
|
|
19872
|
+
* @example {
|
|
19873
|
+
* "error": {
|
|
19874
|
+
* "statusCode": 403,
|
|
19875
|
+
* "code": null,
|
|
19876
|
+
* "message": "The caller may not manage this organization or grant this role at this node (`assignment.grant_ceiling`), the role is not one an integration may hold (`organization.integration_role_not_grantable`), or the Environment does not let organizations create integrations (`organization.integrations_disabled`)",
|
|
19877
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19878
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments/{assignmentId}",
|
|
19879
|
+
* "method": "PATCH"
|
|
19880
|
+
* }
|
|
19881
|
+
* }
|
|
19882
|
+
*/
|
|
19883
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19884
|
+
};
|
|
19885
|
+
};
|
|
19886
|
+
/** @description No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it, the node or role does not exist in it, or the assignment is not one this integration holds */
|
|
19887
|
+
404: {
|
|
19888
|
+
headers: {
|
|
19889
|
+
[name: string]: unknown;
|
|
19890
|
+
};
|
|
19891
|
+
content: {
|
|
19892
|
+
/**
|
|
19893
|
+
* @example {
|
|
19894
|
+
* "error": {
|
|
19895
|
+
* "statusCode": 404,
|
|
19896
|
+
* "code": null,
|
|
19897
|
+
* "message": "No organization with that id exists in this Environment, or no integration with that `client_id` belongs to it, the node or role does not exist in it, or the assignment is not one this integration holds",
|
|
19898
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19899
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments/{assignmentId}",
|
|
19900
|
+
* "method": "PATCH"
|
|
19901
|
+
* }
|
|
19902
|
+
* }
|
|
19903
|
+
*/
|
|
19904
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19905
|
+
};
|
|
19906
|
+
};
|
|
19907
|
+
/** @description The assignment changed since it was read (`assignment.version_mismatch`) */
|
|
19908
|
+
409: {
|
|
19909
|
+
headers: {
|
|
19910
|
+
[name: string]: unknown;
|
|
19911
|
+
};
|
|
19912
|
+
content: {
|
|
19913
|
+
/**
|
|
19914
|
+
* @example {
|
|
19915
|
+
* "error": {
|
|
19916
|
+
* "statusCode": 409,
|
|
19917
|
+
* "code": null,
|
|
19918
|
+
* "message": "The assignment changed since it was read (`assignment.version_mismatch`)",
|
|
19919
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19920
|
+
* "path": "/api/v1/organizations/{id}/oauth-clients/{clientId}/assignments/{assignmentId}",
|
|
19921
|
+
* "method": "PATCH"
|
|
19922
|
+
* }
|
|
19923
|
+
* }
|
|
19924
|
+
*/
|
|
19925
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19926
|
+
};
|
|
19927
|
+
};
|
|
19928
|
+
};
|
|
19929
|
+
};
|
|
19930
|
+
ApiOrganizationRolesController_usage: {
|
|
19931
|
+
parameters: {
|
|
19932
|
+
query?: never;
|
|
19933
|
+
header?: never;
|
|
19934
|
+
path: {
|
|
19935
|
+
id: string;
|
|
19936
|
+
};
|
|
19937
|
+
cookie?: never;
|
|
19938
|
+
};
|
|
19939
|
+
requestBody?: never;
|
|
19940
|
+
responses: {
|
|
19941
|
+
/** @description The organization's role count and limit */
|
|
19942
|
+
200: {
|
|
19943
|
+
headers: {
|
|
19944
|
+
[name: string]: unknown;
|
|
19945
|
+
};
|
|
19946
|
+
content: {
|
|
19947
|
+
"application/json": {
|
|
19948
|
+
data: components["schemas"]["OrganizationRoleUsageResponseDto"];
|
|
19949
|
+
};
|
|
19950
|
+
};
|
|
19951
|
+
};
|
|
19952
|
+
/** @description The request sent both an `X-API-Key` and an `Authorization` header; send one */
|
|
19953
|
+
400: {
|
|
19954
|
+
headers: {
|
|
19955
|
+
[name: string]: unknown;
|
|
19956
|
+
};
|
|
19957
|
+
content: {
|
|
19958
|
+
/**
|
|
19959
|
+
* @example {
|
|
19960
|
+
* "error": {
|
|
19961
|
+
* "statusCode": 400,
|
|
19962
|
+
* "code": null,
|
|
19963
|
+
* "message": "The request sent both an `X-API-Key` and an `Authorization` header; send one",
|
|
19964
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19965
|
+
* "path": "/api/v1/organizations/{id}/roles/usage",
|
|
19966
|
+
* "method": "GET"
|
|
19967
|
+
* }
|
|
19968
|
+
* }
|
|
19969
|
+
*/
|
|
19970
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19971
|
+
};
|
|
19972
|
+
};
|
|
19973
|
+
/** @description Invalid or expired token */
|
|
19974
|
+
401: {
|
|
19975
|
+
headers: {
|
|
19976
|
+
[name: string]: unknown;
|
|
19977
|
+
};
|
|
19978
|
+
content: {
|
|
19979
|
+
/**
|
|
19980
|
+
* @example {
|
|
19981
|
+
* "error": {
|
|
19982
|
+
* "statusCode": 401,
|
|
19983
|
+
* "code": null,
|
|
19984
|
+
* "message": "Invalid or expired token",
|
|
19985
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19986
|
+
* "path": "/api/v1/organizations/{id}/roles",
|
|
19987
|
+
* "method": "POST"
|
|
19988
|
+
* }
|
|
19989
|
+
* }
|
|
19990
|
+
*/
|
|
19991
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
19992
|
+
};
|
|
19993
|
+
};
|
|
19994
|
+
/** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
|
|
19995
|
+
403: {
|
|
19996
|
+
headers: {
|
|
19997
|
+
[name: string]: unknown;
|
|
19998
|
+
};
|
|
19999
|
+
content: {
|
|
20000
|
+
/**
|
|
20001
|
+
* @example {
|
|
20002
|
+
* "error": {
|
|
20003
|
+
* "statusCode": 403,
|
|
20004
|
+
* "code": null,
|
|
20005
|
+
* "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
|
|
20006
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
20007
|
+
* "path": "/api/v1/organizations/{id}/roles/usage",
|
|
20008
|
+
* "method": "GET"
|
|
20009
|
+
* }
|
|
20010
|
+
* }
|
|
20011
|
+
*/
|
|
20012
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
20013
|
+
};
|
|
20014
|
+
};
|
|
20015
|
+
/** @description Organization not found */
|
|
20016
|
+
404: {
|
|
20017
|
+
headers: {
|
|
20018
|
+
[name: string]: unknown;
|
|
20019
|
+
};
|
|
20020
|
+
content: {
|
|
20021
|
+
/**
|
|
20022
|
+
* @example {
|
|
20023
|
+
* "error": {
|
|
20024
|
+
* "statusCode": 404,
|
|
20025
|
+
* "code": null,
|
|
20026
|
+
* "message": "Organization not found",
|
|
20027
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
20028
|
+
* "path": "/api/v1/organizations/{id}/roles/usage",
|
|
20029
|
+
* "method": "GET"
|
|
20030
|
+
* }
|
|
20031
|
+
* }
|
|
20032
|
+
*/
|
|
20033
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
20034
|
+
};
|
|
20035
|
+
};
|
|
20036
|
+
};
|
|
20037
|
+
};
|
|
20038
|
+
ApiOrganizationRolesController_permissions: {
|
|
17230
20039
|
parameters: {
|
|
17231
20040
|
query?: never;
|
|
17232
20041
|
header?: never;
|
|
17233
20042
|
path: {
|
|
17234
20043
|
id: string;
|
|
17235
|
-
tokenId: string;
|
|
17236
20044
|
};
|
|
17237
20045
|
cookie?: never;
|
|
17238
20046
|
};
|
|
17239
|
-
requestBody
|
|
17240
|
-
content: {
|
|
17241
|
-
"application/json": components["schemas"]["CreateScimTokenDto"];
|
|
17242
|
-
};
|
|
17243
|
-
};
|
|
20047
|
+
requestBody?: never;
|
|
17244
20048
|
responses: {
|
|
17245
|
-
/** @description
|
|
17246
|
-
|
|
20049
|
+
/** @description Every permission, flagged attachable or not */
|
|
20050
|
+
200: {
|
|
17247
20051
|
headers: {
|
|
17248
20052
|
[name: string]: unknown;
|
|
17249
20053
|
};
|
|
17250
20054
|
content: {
|
|
17251
20055
|
"application/json": {
|
|
17252
|
-
|
|
20056
|
+
items: components["schemas"]["AttachablePermissionResponseDto"][];
|
|
17253
20057
|
};
|
|
17254
20058
|
};
|
|
17255
20059
|
};
|
|
17256
|
-
/** @description The request
|
|
20060
|
+
/** @description The request sent both an `X-API-Key` and an `Authorization` header; send one */
|
|
17257
20061
|
400: {
|
|
17258
20062
|
headers: {
|
|
17259
20063
|
[name: string]: unknown;
|
|
@@ -17264,10 +20068,10 @@ interface operations {
|
|
|
17264
20068
|
* "error": {
|
|
17265
20069
|
* "statusCode": 400,
|
|
17266
20070
|
* "code": null,
|
|
17267
|
-
* "message": "The request
|
|
20071
|
+
* "message": "The request sent both an `X-API-Key` and an `Authorization` header; send one",
|
|
17268
20072
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17269
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17270
|
-
* "method": "
|
|
20073
|
+
* "path": "/api/v1/organizations/{id}/roles/usage",
|
|
20074
|
+
* "method": "GET"
|
|
17271
20075
|
* }
|
|
17272
20076
|
* }
|
|
17273
20077
|
*/
|
|
@@ -17287,8 +20091,8 @@ interface operations {
|
|
|
17287
20091
|
* "code": null,
|
|
17288
20092
|
* "message": "Invalid or expired token",
|
|
17289
20093
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17290
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17291
|
-
* "method": "
|
|
20094
|
+
* "path": "/api/v1/organizations/{id}/roles",
|
|
20095
|
+
* "method": "POST"
|
|
17292
20096
|
* }
|
|
17293
20097
|
* }
|
|
17294
20098
|
*/
|
|
@@ -17308,7 +20112,7 @@ interface operations {
|
|
|
17308
20112
|
* "code": null,
|
|
17309
20113
|
* "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
|
|
17310
20114
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17311
|
-
* "path": "/api/v1/organizations/{id}/
|
|
20115
|
+
* "path": "/api/v1/organizations/{id}/roles/usage",
|
|
17312
20116
|
* "method": "GET"
|
|
17313
20117
|
* }
|
|
17314
20118
|
* }
|
|
@@ -17316,7 +20120,7 @@ interface operations {
|
|
|
17316
20120
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17317
20121
|
};
|
|
17318
20122
|
};
|
|
17319
|
-
/** @description
|
|
20123
|
+
/** @description Organization not found */
|
|
17320
20124
|
404: {
|
|
17321
20125
|
headers: {
|
|
17322
20126
|
[name: string]: unknown;
|
|
@@ -17327,10 +20131,10 @@ interface operations {
|
|
|
17327
20131
|
* "error": {
|
|
17328
20132
|
* "statusCode": 404,
|
|
17329
20133
|
* "code": null,
|
|
17330
|
-
* "message": "
|
|
20134
|
+
* "message": "Organization not found",
|
|
17331
20135
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17332
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17333
|
-
* "method": "
|
|
20136
|
+
* "path": "/api/v1/organizations/{id}/permissions",
|
|
20137
|
+
* "method": "GET"
|
|
17334
20138
|
* }
|
|
17335
20139
|
* }
|
|
17336
20140
|
*/
|
|
@@ -17339,24 +20143,28 @@ interface operations {
|
|
|
17339
20143
|
};
|
|
17340
20144
|
};
|
|
17341
20145
|
};
|
|
17342
|
-
|
|
20146
|
+
ApiOrganizationRolesController_get: {
|
|
17343
20147
|
parameters: {
|
|
17344
20148
|
query?: never;
|
|
17345
20149
|
header?: never;
|
|
17346
20150
|
path: {
|
|
17347
20151
|
id: string;
|
|
17348
|
-
|
|
20152
|
+
roleId: string;
|
|
17349
20153
|
};
|
|
17350
20154
|
cookie?: never;
|
|
17351
20155
|
};
|
|
17352
20156
|
requestBody?: never;
|
|
17353
20157
|
responses: {
|
|
17354
|
-
/** @description
|
|
17355
|
-
|
|
20158
|
+
/** @description The role and its permissions */
|
|
20159
|
+
200: {
|
|
17356
20160
|
headers: {
|
|
17357
20161
|
[name: string]: unknown;
|
|
17358
20162
|
};
|
|
17359
|
-
content
|
|
20163
|
+
content: {
|
|
20164
|
+
"application/json": {
|
|
20165
|
+
data: components["schemas"]["OrganizationRoleDetailResponseDto"];
|
|
20166
|
+
};
|
|
20167
|
+
};
|
|
17360
20168
|
};
|
|
17361
20169
|
/** @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 */
|
|
17362
20170
|
400: {
|
|
@@ -17371,8 +20179,8 @@ interface operations {
|
|
|
17371
20179
|
* "code": null,
|
|
17372
20180
|
* "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",
|
|
17373
20181
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17374
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17375
|
-
* "method": "
|
|
20182
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}",
|
|
20183
|
+
* "method": "GET"
|
|
17376
20184
|
* }
|
|
17377
20185
|
* }
|
|
17378
20186
|
*/
|
|
@@ -17392,8 +20200,8 @@ interface operations {
|
|
|
17392
20200
|
* "code": null,
|
|
17393
20201
|
* "message": "Invalid or expired token",
|
|
17394
20202
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17395
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17396
|
-
* "method": "
|
|
20203
|
+
* "path": "/api/v1/organizations/{id}/roles",
|
|
20204
|
+
* "method": "POST"
|
|
17397
20205
|
* }
|
|
17398
20206
|
* }
|
|
17399
20207
|
*/
|
|
@@ -17413,7 +20221,7 @@ interface operations {
|
|
|
17413
20221
|
* "code": null,
|
|
17414
20222
|
* "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
|
|
17415
20223
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17416
|
-
* "path": "/api/v1/organizations/{id}/
|
|
20224
|
+
* "path": "/api/v1/organizations/{id}/roles/usage",
|
|
17417
20225
|
* "method": "GET"
|
|
17418
20226
|
* }
|
|
17419
20227
|
* }
|
|
@@ -17421,7 +20229,7 @@ interface operations {
|
|
|
17421
20229
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17422
20230
|
};
|
|
17423
20231
|
};
|
|
17424
|
-
/** @description
|
|
20232
|
+
/** @description No such organization, or no such role among the ones the organization can use */
|
|
17425
20233
|
404: {
|
|
17426
20234
|
headers: {
|
|
17427
20235
|
[name: string]: unknown;
|
|
@@ -17432,10 +20240,10 @@ interface operations {
|
|
|
17432
20240
|
* "error": {
|
|
17433
20241
|
* "statusCode": 404,
|
|
17434
20242
|
* "code": null,
|
|
17435
|
-
* "message": "
|
|
20243
|
+
* "message": "No such organization, or no such role among the ones the organization can use",
|
|
17436
20244
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17437
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17438
|
-
* "method": "
|
|
20245
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}",
|
|
20246
|
+
* "method": "GET"
|
|
17439
20247
|
* }
|
|
17440
20248
|
* }
|
|
17441
20249
|
*/
|
|
@@ -17444,27 +20252,27 @@ interface operations {
|
|
|
17444
20252
|
};
|
|
17445
20253
|
};
|
|
17446
20254
|
};
|
|
17447
|
-
|
|
20255
|
+
ApiOrganizationRolesController_remove: {
|
|
17448
20256
|
parameters: {
|
|
17449
20257
|
query?: never;
|
|
17450
|
-
header?:
|
|
20258
|
+
header?: {
|
|
20259
|
+
/** @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. */
|
|
20260
|
+
"If-Match"?: string;
|
|
20261
|
+
};
|
|
17451
20262
|
path: {
|
|
17452
20263
|
id: string;
|
|
20264
|
+
roleId: string;
|
|
17453
20265
|
};
|
|
17454
20266
|
cookie?: never;
|
|
17455
20267
|
};
|
|
17456
20268
|
requestBody?: never;
|
|
17457
20269
|
responses: {
|
|
17458
|
-
/** @description The
|
|
17459
|
-
|
|
20270
|
+
/** @description The role is deleted */
|
|
20271
|
+
204: {
|
|
17460
20272
|
headers: {
|
|
17461
20273
|
[name: string]: unknown;
|
|
17462
20274
|
};
|
|
17463
|
-
content
|
|
17464
|
-
"application/json": {
|
|
17465
|
-
items: components["schemas"]["ScimActivityResponseDto"][];
|
|
17466
|
-
};
|
|
17467
|
-
};
|
|
20275
|
+
content?: never;
|
|
17468
20276
|
};
|
|
17469
20277
|
/** @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 */
|
|
17470
20278
|
400: {
|
|
@@ -17479,8 +20287,8 @@ interface operations {
|
|
|
17479
20287
|
* "code": null,
|
|
17480
20288
|
* "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",
|
|
17481
20289
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17482
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17483
|
-
* "method": "
|
|
20290
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}",
|
|
20291
|
+
* "method": "DELETE"
|
|
17484
20292
|
* }
|
|
17485
20293
|
* }
|
|
17486
20294
|
*/
|
|
@@ -17500,15 +20308,15 @@ interface operations {
|
|
|
17500
20308
|
* "code": null,
|
|
17501
20309
|
* "message": "Invalid or expired token",
|
|
17502
20310
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17503
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17504
|
-
* "method": "
|
|
20311
|
+
* "path": "/api/v1/organizations/{id}/roles",
|
|
20312
|
+
* "method": "POST"
|
|
17505
20313
|
* }
|
|
17506
20314
|
* }
|
|
17507
20315
|
*/
|
|
17508
20316
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17509
20317
|
};
|
|
17510
20318
|
};
|
|
17511
|
-
/** @description
|
|
20319
|
+
/** @description The caller may not shape this organization's roles, a permission being added is one the caller does not hold at the organization node (`organization.role_permission_not_held`), or the role is one of the Environment's (`organization.role_not_owned`) */
|
|
17512
20320
|
403: {
|
|
17513
20321
|
headers: {
|
|
17514
20322
|
[name: string]: unknown;
|
|
@@ -17519,17 +20327,17 @@ interface operations {
|
|
|
17519
20327
|
* "error": {
|
|
17520
20328
|
* "statusCode": 403,
|
|
17521
20329
|
* "code": null,
|
|
17522
|
-
* "message": "
|
|
20330
|
+
* "message": "The caller may not shape this organization's roles, a permission being added is one the caller does not hold at the organization node (`organization.role_permission_not_held`), or the role is one of the Environment's (`organization.role_not_owned`)",
|
|
17523
20331
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17524
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17525
|
-
* "method": "
|
|
20332
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}",
|
|
20333
|
+
* "method": "DELETE"
|
|
17526
20334
|
* }
|
|
17527
20335
|
* }
|
|
17528
20336
|
*/
|
|
17529
20337
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17530
20338
|
};
|
|
17531
20339
|
};
|
|
17532
|
-
/** @description
|
|
20340
|
+
/** @description No such organization, or no such role among the ones the organization can use */
|
|
17533
20341
|
404: {
|
|
17534
20342
|
headers: {
|
|
17535
20343
|
[name: string]: unknown;
|
|
@@ -17540,10 +20348,31 @@ interface operations {
|
|
|
17540
20348
|
* "error": {
|
|
17541
20349
|
* "statusCode": 404,
|
|
17542
20350
|
* "code": null,
|
|
17543
|
-
* "message": "
|
|
20351
|
+
* "message": "No such organization, or no such role among the ones the organization can use",
|
|
17544
20352
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17545
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17546
|
-
* "method": "
|
|
20353
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}",
|
|
20354
|
+
* "method": "DELETE"
|
|
20355
|
+
* }
|
|
20356
|
+
* }
|
|
20357
|
+
*/
|
|
20358
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
20359
|
+
};
|
|
20360
|
+
};
|
|
20361
|
+
/** @description The role is the one directory sync or single sign-on gives new people (`scim.grantable_default_in_use`, `role.idp_arrival_role_in_use`), the organization's last administrator holds it (`organization.last_admin`), or it changed since the version named in If-Match (`version_mismatch`) */
|
|
20362
|
+
409: {
|
|
20363
|
+
headers: {
|
|
20364
|
+
[name: string]: unknown;
|
|
20365
|
+
};
|
|
20366
|
+
content: {
|
|
20367
|
+
/**
|
|
20368
|
+
* @example {
|
|
20369
|
+
* "error": {
|
|
20370
|
+
* "statusCode": 409,
|
|
20371
|
+
* "code": null,
|
|
20372
|
+
* "message": "The role is the one directory sync or single sign-on gives new people (`scim.grantable_default_in_use`, `role.idp_arrival_role_in_use`), the organization's last administrator holds it (`organization.last_admin`), or it changed since the version named in If-Match (`version_mismatch`)",
|
|
20373
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
20374
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}",
|
|
20375
|
+
* "method": "DELETE"
|
|
17547
20376
|
* }
|
|
17548
20377
|
* }
|
|
17549
20378
|
*/
|
|
@@ -17552,25 +20381,33 @@ interface operations {
|
|
|
17552
20381
|
};
|
|
17553
20382
|
};
|
|
17554
20383
|
};
|
|
17555
|
-
|
|
20384
|
+
ApiOrganizationRolesController_update: {
|
|
17556
20385
|
parameters: {
|
|
17557
20386
|
query?: never;
|
|
17558
|
-
header?:
|
|
20387
|
+
header?: {
|
|
20388
|
+
/** @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. */
|
|
20389
|
+
"If-Match"?: string;
|
|
20390
|
+
};
|
|
17559
20391
|
path: {
|
|
17560
20392
|
id: string;
|
|
20393
|
+
roleId: string;
|
|
17561
20394
|
};
|
|
17562
20395
|
cookie?: never;
|
|
17563
20396
|
};
|
|
17564
|
-
requestBody
|
|
20397
|
+
requestBody: {
|
|
20398
|
+
content: {
|
|
20399
|
+
"application/json": components["schemas"]["UpdateOrganizationRoleDto"];
|
|
20400
|
+
};
|
|
20401
|
+
};
|
|
17565
20402
|
responses: {
|
|
17566
|
-
/** @description
|
|
20403
|
+
/** @description The role, changed */
|
|
17567
20404
|
200: {
|
|
17568
20405
|
headers: {
|
|
17569
20406
|
[name: string]: unknown;
|
|
17570
20407
|
};
|
|
17571
20408
|
content: {
|
|
17572
20409
|
"application/json": {
|
|
17573
|
-
|
|
20410
|
+
data: components["schemas"]["RoleResponseDto"];
|
|
17574
20411
|
};
|
|
17575
20412
|
};
|
|
17576
20413
|
};
|
|
@@ -17587,8 +20424,8 @@ interface operations {
|
|
|
17587
20424
|
* "code": null,
|
|
17588
20425
|
* "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",
|
|
17589
20426
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17590
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17591
|
-
* "method": "
|
|
20427
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}",
|
|
20428
|
+
* "method": "PATCH"
|
|
17592
20429
|
* }
|
|
17593
20430
|
* }
|
|
17594
20431
|
*/
|
|
@@ -17608,15 +20445,15 @@ interface operations {
|
|
|
17608
20445
|
* "code": null,
|
|
17609
20446
|
* "message": "Invalid or expired token",
|
|
17610
20447
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17611
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17612
|
-
* "method": "
|
|
20448
|
+
* "path": "/api/v1/organizations/{id}/roles",
|
|
20449
|
+
* "method": "POST"
|
|
17613
20450
|
* }
|
|
17614
20451
|
* }
|
|
17615
20452
|
*/
|
|
17616
20453
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17617
20454
|
};
|
|
17618
20455
|
};
|
|
17619
|
-
/** @description
|
|
20456
|
+
/** @description The caller may not shape this organization's roles, a permission being added is one the caller does not hold at the organization node (`organization.role_permission_not_held`), or the role is one of the Environment's (`organization.role_not_owned`) */
|
|
17620
20457
|
403: {
|
|
17621
20458
|
headers: {
|
|
17622
20459
|
[name: string]: unknown;
|
|
@@ -17627,17 +20464,17 @@ interface operations {
|
|
|
17627
20464
|
* "error": {
|
|
17628
20465
|
* "statusCode": 403,
|
|
17629
20466
|
* "code": null,
|
|
17630
|
-
* "message": "
|
|
20467
|
+
* "message": "The caller may not shape this organization's roles, a permission being added is one the caller does not hold at the organization node (`organization.role_permission_not_held`), or the role is one of the Environment's (`organization.role_not_owned`)",
|
|
17631
20468
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17632
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17633
|
-
* "method": "
|
|
20469
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}",
|
|
20470
|
+
* "method": "PATCH"
|
|
17634
20471
|
* }
|
|
17635
20472
|
* }
|
|
17636
20473
|
*/
|
|
17637
20474
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17638
20475
|
};
|
|
17639
20476
|
};
|
|
17640
|
-
/** @description
|
|
20477
|
+
/** @description No such organization, or no such role among the ones the organization can use */
|
|
17641
20478
|
404: {
|
|
17642
20479
|
headers: {
|
|
17643
20480
|
[name: string]: unknown;
|
|
@@ -17648,10 +20485,31 @@ interface operations {
|
|
|
17648
20485
|
* "error": {
|
|
17649
20486
|
* "statusCode": 404,
|
|
17650
20487
|
* "code": null,
|
|
17651
|
-
* "message": "
|
|
20488
|
+
* "message": "No such organization, or no such role among the ones the organization can use",
|
|
17652
20489
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17653
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17654
|
-
* "method": "
|
|
20490
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}",
|
|
20491
|
+
* "method": "PATCH"
|
|
20492
|
+
* }
|
|
20493
|
+
* }
|
|
20494
|
+
*/
|
|
20495
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
20496
|
+
};
|
|
20497
|
+
};
|
|
20498
|
+
/** @description The organization or the Environment already has a role by that name (`role.name_taken`), or the role changed since the version named in If-Match (`version_mismatch`) */
|
|
20499
|
+
409: {
|
|
20500
|
+
headers: {
|
|
20501
|
+
[name: string]: unknown;
|
|
20502
|
+
};
|
|
20503
|
+
content: {
|
|
20504
|
+
/**
|
|
20505
|
+
* @example {
|
|
20506
|
+
* "error": {
|
|
20507
|
+
* "statusCode": 409,
|
|
20508
|
+
* "code": null,
|
|
20509
|
+
* "message": "The organization or the Environment already has a role by that name (`role.name_taken`), or the role changed since the version named in If-Match (`version_mismatch`)",
|
|
20510
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
20511
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}",
|
|
20512
|
+
* "method": "PATCH"
|
|
17655
20513
|
* }
|
|
17656
20514
|
* }
|
|
17657
20515
|
*/
|
|
@@ -17660,33 +20518,37 @@ interface operations {
|
|
|
17660
20518
|
};
|
|
17661
20519
|
};
|
|
17662
20520
|
};
|
|
17663
|
-
|
|
20521
|
+
ApiOrganizationRolesController_setPermissions: {
|
|
17664
20522
|
parameters: {
|
|
17665
20523
|
query?: never;
|
|
17666
|
-
header?:
|
|
20524
|
+
header?: {
|
|
20525
|
+
/** @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. */
|
|
20526
|
+
"If-Match"?: string;
|
|
20527
|
+
};
|
|
17667
20528
|
path: {
|
|
17668
20529
|
id: string;
|
|
20530
|
+
roleId: string;
|
|
17669
20531
|
};
|
|
17670
20532
|
cookie?: never;
|
|
17671
20533
|
};
|
|
17672
20534
|
requestBody: {
|
|
17673
20535
|
content: {
|
|
17674
|
-
"application/json": components["schemas"]["
|
|
20536
|
+
"application/json": components["schemas"]["SetRolePermissionsDto"];
|
|
17675
20537
|
};
|
|
17676
20538
|
};
|
|
17677
20539
|
responses: {
|
|
17678
|
-
/** @description
|
|
20540
|
+
/** @description The role's permissions, as they now stand */
|
|
17679
20541
|
200: {
|
|
17680
20542
|
headers: {
|
|
17681
20543
|
[name: string]: unknown;
|
|
17682
20544
|
};
|
|
17683
20545
|
content: {
|
|
17684
20546
|
"application/json": {
|
|
17685
|
-
items: components["schemas"]["
|
|
20547
|
+
items: components["schemas"]["PermissionResponseDto"][];
|
|
17686
20548
|
};
|
|
17687
20549
|
};
|
|
17688
20550
|
};
|
|
17689
|
-
/** @description The request failed validation
|
|
20551
|
+
/** @description The request failed validation: a body field or an id in the path is missing, malformed or out of range, or a role carrying `canopy:roles.manage` is already held beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
17690
20552
|
400: {
|
|
17691
20553
|
headers: {
|
|
17692
20554
|
[name: string]: unknown;
|
|
@@ -17697,9 +20559,9 @@ interface operations {
|
|
|
17697
20559
|
* "error": {
|
|
17698
20560
|
* "statusCode": 400,
|
|
17699
20561
|
* "code": null,
|
|
17700
|
-
* "message": "The request failed validation
|
|
20562
|
+
* "message": "The request failed validation: a body field or an id in the path is missing, malformed or out of range, or a role carrying `canopy:roles.manage` is already held beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
17701
20563
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17702
|
-
* "path": "/api/v1/organizations/{id}/
|
|
20564
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}/permissions",
|
|
17703
20565
|
* "method": "PUT"
|
|
17704
20566
|
* }
|
|
17705
20567
|
* }
|
|
@@ -17720,15 +20582,15 @@ interface operations {
|
|
|
17720
20582
|
* "code": null,
|
|
17721
20583
|
* "message": "Invalid or expired token",
|
|
17722
20584
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17723
|
-
* "path": "/api/v1/organizations/{id}/
|
|
17724
|
-
* "method": "
|
|
20585
|
+
* "path": "/api/v1/organizations/{id}/roles",
|
|
20586
|
+
* "method": "POST"
|
|
17725
20587
|
* }
|
|
17726
20588
|
* }
|
|
17727
20589
|
*/
|
|
17728
20590
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17729
20591
|
};
|
|
17730
20592
|
};
|
|
17731
|
-
/** @description
|
|
20593
|
+
/** @description The caller may not shape this organization's roles, a permission being added is one the caller does not hold at the organization node (`organization.role_permission_not_held`), or the role is one of the Environment's (`organization.role_not_owned`) */
|
|
17732
20594
|
403: {
|
|
17733
20595
|
headers: {
|
|
17734
20596
|
[name: string]: unknown;
|
|
@@ -17739,9 +20601,9 @@ interface operations {
|
|
|
17739
20601
|
* "error": {
|
|
17740
20602
|
* "statusCode": 403,
|
|
17741
20603
|
* "code": null,
|
|
17742
|
-
* "message": "
|
|
20604
|
+
* "message": "The caller may not shape this organization's roles, a permission being added is one the caller does not hold at the organization node (`organization.role_permission_not_held`), or the role is one of the Environment's (`organization.role_not_owned`)",
|
|
17743
20605
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17744
|
-
* "path": "/api/v1/organizations/{id}/
|
|
20606
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}/permissions",
|
|
17745
20607
|
* "method": "PUT"
|
|
17746
20608
|
* }
|
|
17747
20609
|
* }
|
|
@@ -17749,7 +20611,7 @@ interface operations {
|
|
|
17749
20611
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17750
20612
|
};
|
|
17751
20613
|
};
|
|
17752
|
-
/** @description
|
|
20614
|
+
/** @description No such organization, or no such role among the ones the organization can use */
|
|
17753
20615
|
404: {
|
|
17754
20616
|
headers: {
|
|
17755
20617
|
[name: string]: unknown;
|
|
@@ -17760,9 +20622,9 @@ interface operations {
|
|
|
17760
20622
|
* "error": {
|
|
17761
20623
|
* "statusCode": 404,
|
|
17762
20624
|
* "code": null,
|
|
17763
|
-
* "message": "
|
|
20625
|
+
* "message": "No such organization, or no such role among the ones the organization can use",
|
|
17764
20626
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17765
|
-
* "path": "/api/v1/organizations/{id}/
|
|
20627
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}/permissions",
|
|
17766
20628
|
* "method": "PUT"
|
|
17767
20629
|
* }
|
|
17768
20630
|
* }
|
|
@@ -17770,7 +20632,7 @@ interface operations {
|
|
|
17770
20632
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17771
20633
|
};
|
|
17772
20634
|
};
|
|
17773
|
-
/** @description The
|
|
20635
|
+
/** @description The role changed since the version named in If-Match (`version_mismatch`), or the change would take `canopy:organization.manage` from the organization's last administrator (`organization.last_admin`) */
|
|
17774
20636
|
409: {
|
|
17775
20637
|
headers: {
|
|
17776
20638
|
[name: string]: unknown;
|
|
@@ -17781,9 +20643,9 @@ interface operations {
|
|
|
17781
20643
|
* "error": {
|
|
17782
20644
|
* "statusCode": 409,
|
|
17783
20645
|
* "code": null,
|
|
17784
|
-
* "message": "The
|
|
20646
|
+
* "message": "The role changed since the version named in If-Match (`version_mismatch`), or the change would take `canopy:organization.manage` from the organization's last administrator (`organization.last_admin`)",
|
|
17785
20647
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
17786
|
-
* "path": "/api/v1/organizations/{id}/
|
|
20648
|
+
* "path": "/api/v1/organizations/{id}/roles/{roleId}/permissions",
|
|
17787
20649
|
* "method": "PUT"
|
|
17788
20650
|
* }
|
|
17789
20651
|
* }
|
|
@@ -18379,7 +21241,7 @@ interface operations {
|
|
|
18379
21241
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18380
21242
|
};
|
|
18381
21243
|
};
|
|
18382
|
-
/** @description
|
|
21244
|
+
/** @description The name is taken in the role's tier, or by the other tier: an organization's role named like an Environment role, or an Environment role named like any organization's own role (`role.name_taken`); or an Environment role would take an organization role template's name (`role.name_used_by_template`) */
|
|
18383
21245
|
409: {
|
|
18384
21246
|
headers: {
|
|
18385
21247
|
[name: string]: unknown;
|
|
@@ -18390,7 +21252,7 @@ interface operations {
|
|
|
18390
21252
|
* "error": {
|
|
18391
21253
|
* "statusCode": 409,
|
|
18392
21254
|
* "code": null,
|
|
18393
|
-
* "message": "
|
|
21255
|
+
* "message": "The name is taken in the role's tier, or by the other tier: an organization's role named like an Environment role, or an Environment role named like any organization's own role (`role.name_taken`); or an Environment role would take an organization role template's name (`role.name_used_by_template`)",
|
|
18394
21256
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18395
21257
|
* "path": "/api/v1/roles",
|
|
18396
21258
|
* "method": "POST"
|
|
@@ -18615,7 +21477,7 @@ interface operations {
|
|
|
18615
21477
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18616
21478
|
};
|
|
18617
21479
|
};
|
|
18618
|
-
/** @description The role changed since the If-Match version, it is the role people arrive with through an organization's directory,
|
|
21480
|
+
/** @description The role changed since the If-Match version, it is the role people arrive with through an organization's directory, it is one the Environment lets identity providers grant, or it is the role an organization's last administrator holds (`organization.last_admin`) */
|
|
18619
21481
|
409: {
|
|
18620
21482
|
headers: {
|
|
18621
21483
|
[name: string]: unknown;
|
|
@@ -18626,7 +21488,7 @@ interface operations {
|
|
|
18626
21488
|
* "error": {
|
|
18627
21489
|
* "statusCode": 409,
|
|
18628
21490
|
* "code": null,
|
|
18629
|
-
* "message": "The role changed since the If-Match version, it is the role people arrive with through an organization's directory,
|
|
21491
|
+
* "message": "The role changed since the If-Match version, it is the role people arrive with through an organization's directory, it is one the Environment lets identity providers grant, or it is the role an organization's last administrator holds (`organization.last_admin`)",
|
|
18630
21492
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18631
21493
|
* "path": "/api/v1/roles/{id}",
|
|
18632
21494
|
* "method": "DELETE"
|
|
@@ -18751,7 +21613,7 @@ interface operations {
|
|
|
18751
21613
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18752
21614
|
};
|
|
18753
21615
|
};
|
|
18754
|
-
/** @description The role changed since the If-Match version,
|
|
21616
|
+
/** @description The role changed since the If-Match version, another role in the Environment or any organization's own role already has that name (`role.name_taken`), an Environment role would take an organization role template's name (`role.name_used_by_template`), or disabling it would leave an organization without an administrator (`organization.last_admin`) */
|
|
18755
21617
|
409: {
|
|
18756
21618
|
headers: {
|
|
18757
21619
|
[name: string]: unknown;
|
|
@@ -18762,7 +21624,7 @@ interface operations {
|
|
|
18762
21624
|
* "error": {
|
|
18763
21625
|
* "statusCode": 409,
|
|
18764
21626
|
* "code": null,
|
|
18765
|
-
* "message": "The role changed since the If-Match version,
|
|
21627
|
+
* "message": "The role changed since the If-Match version, another role in the Environment or any organization's own role already has that name (`role.name_taken`), an Environment role would take an organization role template's name (`role.name_used_by_template`), or disabling it would leave an organization without an administrator (`organization.last_admin`)",
|
|
18766
21628
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
18767
21629
|
* "path": "/api/v1/roles/{id}",
|
|
18768
21630
|
* "method": "PATCH"
|
|
@@ -18992,6 +21854,27 @@ interface operations {
|
|
|
18992
21854
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18993
21855
|
};
|
|
18994
21856
|
};
|
|
21857
|
+
/** @description The change would take `canopy:organization.manage` off the role an organization's last administrator holds at its node (`organization.last_admin`) */
|
|
21858
|
+
409: {
|
|
21859
|
+
headers: {
|
|
21860
|
+
[name: string]: unknown;
|
|
21861
|
+
};
|
|
21862
|
+
content: {
|
|
21863
|
+
/**
|
|
21864
|
+
* @example {
|
|
21865
|
+
* "error": {
|
|
21866
|
+
* "statusCode": 409,
|
|
21867
|
+
* "code": null,
|
|
21868
|
+
* "message": "The change would take `canopy:organization.manage` off the role an organization's last administrator holds at its node (`organization.last_admin`)",
|
|
21869
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
21870
|
+
* "path": "/api/v1/roles/{id}/permissions",
|
|
21871
|
+
* "method": "PUT"
|
|
21872
|
+
* }
|
|
21873
|
+
* }
|
|
21874
|
+
*/
|
|
21875
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
21876
|
+
};
|
|
21877
|
+
};
|
|
18995
21878
|
};
|
|
18996
21879
|
};
|
|
18997
21880
|
ApiAssignmentsController_listAppWideAssignments: {
|
|
@@ -19206,7 +22089,7 @@ interface operations {
|
|
|
19206
22089
|
};
|
|
19207
22090
|
};
|
|
19208
22091
|
};
|
|
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 */
|
|
22092
|
+
/** @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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
19210
22093
|
400: {
|
|
19211
22094
|
headers: {
|
|
19212
22095
|
[name: string]: unknown;
|
|
@@ -19217,7 +22100,7 @@ interface operations {
|
|
|
19217
22100
|
* "error": {
|
|
19218
22101
|
* "statusCode": 400,
|
|
19219
22102
|
* "code": null,
|
|
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",
|
|
22103
|
+
* "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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
19221
22104
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19222
22105
|
* "path": "/api/v1/assignments",
|
|
19223
22106
|
* "method": "POST"
|
|
@@ -19467,7 +22350,7 @@ interface operations {
|
|
|
19467
22350
|
};
|
|
19468
22351
|
};
|
|
19469
22352
|
};
|
|
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 */
|
|
22353
|
+
/** @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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
19471
22354
|
400: {
|
|
19472
22355
|
headers: {
|
|
19473
22356
|
[name: string]: unknown;
|
|
@@ -19478,7 +22361,7 @@ interface operations {
|
|
|
19478
22361
|
* "error": {
|
|
19479
22362
|
* "statusCode": 400,
|
|
19480
22363
|
* "code": null,
|
|
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",
|
|
22364
|
+
* "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 a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
19482
22365
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
19483
22366
|
* "path": "/api/v1/assignments/{id}",
|
|
19484
22367
|
* "method": "PATCH"
|
|
@@ -21778,6 +24661,8 @@ interface operations {
|
|
|
21778
24661
|
sort_by?: "name" | "created";
|
|
21779
24662
|
/** @description Sort direction */
|
|
21780
24663
|
order?: "asc" | "desc";
|
|
24664
|
+
/** @description Only clients of this kind: `web` (people sign in through it) or `machine` (a principal of its own). Omitted, both. */
|
|
24665
|
+
client_kind?: "web" | "machine";
|
|
21781
24666
|
};
|
|
21782
24667
|
header?: never;
|
|
21783
24668
|
path?: never;
|
|
@@ -21996,7 +24881,10 @@ interface operations {
|
|
|
21996
24881
|
ApiOAuthClientsController_summary: {
|
|
21997
24882
|
parameters: {
|
|
21998
24883
|
query?: {
|
|
24884
|
+
/** @description Count only clients whose name contains this */
|
|
21999
24885
|
q?: string;
|
|
24886
|
+
/** @description Count only clients of this kind. Omitted, both. */
|
|
24887
|
+
client_kind?: "web" | "machine";
|
|
22000
24888
|
};
|
|
22001
24889
|
header?: never;
|
|
22002
24890
|
path?: never;
|
|
@@ -22295,7 +25183,10 @@ interface operations {
|
|
|
22295
25183
|
ApiOAuthClientsController_update: {
|
|
22296
25184
|
parameters: {
|
|
22297
25185
|
query?: never;
|
|
22298
|
-
header?:
|
|
25186
|
+
header?: {
|
|
25187
|
+
/** @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. */
|
|
25188
|
+
"If-Match"?: string;
|
|
25189
|
+
};
|
|
22299
25190
|
path: {
|
|
22300
25191
|
id: string;
|
|
22301
25192
|
};
|
|
@@ -22402,6 +25293,27 @@ interface operations {
|
|
|
22402
25293
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
22403
25294
|
};
|
|
22404
25295
|
};
|
|
25296
|
+
/** @description The client was modified since the version named in If-Match was read (`version_mismatch`). Read it again and reapply the change */
|
|
25297
|
+
409: {
|
|
25298
|
+
headers: {
|
|
25299
|
+
[name: string]: unknown;
|
|
25300
|
+
};
|
|
25301
|
+
content: {
|
|
25302
|
+
/**
|
|
25303
|
+
* @example {
|
|
25304
|
+
* "error": {
|
|
25305
|
+
* "statusCode": 409,
|
|
25306
|
+
* "code": null,
|
|
25307
|
+
* "message": "The client was modified since the version named in If-Match was read (`version_mismatch`). Read it again and reapply the change",
|
|
25308
|
+
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
25309
|
+
* "path": "/api/v1/oauth-clients/{id}",
|
|
25310
|
+
* "method": "PATCH"
|
|
25311
|
+
* }
|
|
25312
|
+
* }
|
|
25313
|
+
*/
|
|
25314
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
25315
|
+
};
|
|
25316
|
+
};
|
|
22405
25317
|
};
|
|
22406
25318
|
};
|
|
22407
25319
|
ApiOAuthClientsController_rotateSecret: {
|
|
@@ -22413,7 +25325,11 @@ interface operations {
|
|
|
22413
25325
|
};
|
|
22414
25326
|
cookie?: never;
|
|
22415
25327
|
};
|
|
22416
|
-
requestBody
|
|
25328
|
+
requestBody: {
|
|
25329
|
+
content: {
|
|
25330
|
+
"application/json": components["schemas"]["RotateOAuthClientSecretDto"];
|
|
25331
|
+
};
|
|
25332
|
+
};
|
|
22417
25333
|
responses: {
|
|
22418
25334
|
/** @description OAuth client secret rotated — the new secret is only shown once */
|
|
22419
25335
|
200: {
|
|
@@ -22426,7 +25342,7 @@ interface operations {
|
|
|
22426
25342
|
};
|
|
22427
25343
|
};
|
|
22428
25344
|
};
|
|
22429
|
-
/** @description The request sent both an `X-API-Key` and an `Authorization` header
|
|
25345
|
+
/** @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 */
|
|
22430
25346
|
400: {
|
|
22431
25347
|
headers: {
|
|
22432
25348
|
[name: string]: unknown;
|
|
@@ -22437,10 +25353,10 @@ interface operations {
|
|
|
22437
25353
|
* "error": {
|
|
22438
25354
|
* "statusCode": 400,
|
|
22439
25355
|
* "code": null,
|
|
22440
|
-
* "message": "The request sent both an `X-API-Key` and an `Authorization` header
|
|
25356
|
+
* "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",
|
|
22441
25357
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22442
|
-
* "path": "/api/v1/oauth-clients/{id}",
|
|
22443
|
-
* "method": "
|
|
25358
|
+
* "path": "/api/v1/oauth-clients/{id}/rotate-secret",
|
|
25359
|
+
* "method": "POST"
|
|
22444
25360
|
* }
|
|
22445
25361
|
* }
|
|
22446
25362
|
*/
|
|
@@ -22546,7 +25462,7 @@ interface operations {
|
|
|
22546
25462
|
};
|
|
22547
25463
|
};
|
|
22548
25464
|
};
|
|
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 */
|
|
25465
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`), or a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
22550
25466
|
400: {
|
|
22551
25467
|
headers: {
|
|
22552
25468
|
[name: string]: unknown;
|
|
@@ -22557,7 +25473,7 @@ interface operations {
|
|
|
22557
25473
|
* "error": {
|
|
22558
25474
|
* "statusCode": 400,
|
|
22559
25475
|
* "code": null,
|
|
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",
|
|
25476
|
+
* "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`), or a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
22561
25477
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22562
25478
|
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
22563
25479
|
* "method": "GET"
|
|
@@ -22658,7 +25574,7 @@ interface operations {
|
|
|
22658
25574
|
};
|
|
22659
25575
|
};
|
|
22660
25576
|
};
|
|
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 */
|
|
25577
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`), or a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
22662
25578
|
400: {
|
|
22663
25579
|
headers: {
|
|
22664
25580
|
[name: string]: unknown;
|
|
@@ -22669,7 +25585,7 @@ interface operations {
|
|
|
22669
25585
|
* "error": {
|
|
22670
25586
|
* "statusCode": 400,
|
|
22671
25587
|
* "code": null,
|
|
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",
|
|
25588
|
+
* "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`), or a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
22673
25589
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22674
25590
|
* "path": "/api/v1/oauth-clients/{id}/assignments",
|
|
22675
25591
|
* "method": "POST"
|
|
@@ -22805,7 +25721,7 @@ interface operations {
|
|
|
22805
25721
|
};
|
|
22806
25722
|
content?: never;
|
|
22807
25723
|
};
|
|
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 */
|
|
25724
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`), or a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
22809
25725
|
400: {
|
|
22810
25726
|
headers: {
|
|
22811
25727
|
[name: string]: unknown;
|
|
@@ -22816,7 +25732,7 @@ interface operations {
|
|
|
22816
25732
|
* "error": {
|
|
22817
25733
|
* "statusCode": 400,
|
|
22818
25734
|
* "code": null,
|
|
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",
|
|
25735
|
+
* "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`), or a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
22820
25736
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22821
25737
|
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
22822
25738
|
* "method": "DELETE"
|
|
@@ -22942,7 +25858,7 @@ interface operations {
|
|
|
22942
25858
|
};
|
|
22943
25859
|
};
|
|
22944
25860
|
};
|
|
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 */
|
|
25861
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`), or a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
22946
25862
|
400: {
|
|
22947
25863
|
headers: {
|
|
22948
25864
|
[name: string]: unknown;
|
|
@@ -22953,7 +25869,7 @@ interface operations {
|
|
|
22953
25869
|
* "error": {
|
|
22954
25870
|
* "statusCode": 400,
|
|
22955
25871
|
* "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",
|
|
25872
|
+
* "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`), or a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
22957
25873
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
22958
25874
|
* "path": "/api/v1/oauth-clients/{id}/assignments/{assignmentId}",
|
|
22959
25875
|
* "method": "PATCH"
|
|
@@ -23081,7 +25997,7 @@ interface operations {
|
|
|
23081
25997
|
};
|
|
23082
25998
|
};
|
|
23083
25999
|
};
|
|
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 */
|
|
26000
|
+
/** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; the client is a web client (`oauth.client_not_machine`); the role is a system role (`rbac.system_role_not_assignable`) or inactive; the role belongs to another organization (`rbac.role_outside_organization`), or a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header */
|
|
23085
26001
|
400: {
|
|
23086
26002
|
headers: {
|
|
23087
26003
|
[name: string]: unknown;
|
|
@@ -23092,7 +26008,7 @@ interface operations {
|
|
|
23092
26008
|
* "error": {
|
|
23093
26009
|
* "statusCode": 400,
|
|
23094
26010
|
* "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",
|
|
26011
|
+
* "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`), or a role carrying `canopy:roles.manage` is placed beneath the organization node (`rbac.roles_manage_below_organization`); the window runs backwards (`auth.effective_date_invalid`); or the request sent both an `X-API-Key` and an `Authorization` header",
|
|
23096
26012
|
* "timestamp": "2026-04-20T12:00:00.000Z",
|
|
23097
26013
|
* "path": "/api/v1/oauth-clients/{id}/grants",
|
|
23098
26014
|
* "method": "GET"
|
|
@@ -24062,6 +26978,21 @@ declare class Organizations {
|
|
|
24062
26978
|
revokeDirectoryToken(id: string, tokenId: string): Promise<void>;
|
|
24063
26979
|
/** The organization's own provisioning events, newest first. */
|
|
24064
26980
|
listDirectoryActivity(id: string): Promise<ResponseBody<"ApiOrganizationDirectoryController_activity">>;
|
|
26981
|
+
/**
|
|
26982
|
+
* Every time your staff entered the organization or were refused, newest
|
|
26983
|
+
* first: who, with which roles held at the Environment root, and why a
|
|
26984
|
+
* refusal happened (`staff_entry_refused` while the organization's policy
|
|
26985
|
+
* says `staff_entry: "refused"`).
|
|
26986
|
+
*
|
|
26987
|
+
* Paginated (20 per page by default, `take` up to 100), so this returns a
|
|
26988
|
+
* `Paginator`. `kind` narrows to `entered` or `refused`; `q` searches who
|
|
26989
|
+
* and the role names; `sort_by` is `created` (the default) or `actor`.
|
|
26990
|
+
*
|
|
26991
|
+
* ```ts
|
|
26992
|
+
* for await (const entry of canopy.organizations.listStaffActivity(id)) { … }
|
|
26993
|
+
* ```
|
|
26994
|
+
*/
|
|
26995
|
+
listStaffActivity(id: string, query?: QueryParams<"ApiOrganizationsController_listStaffActivity">): Paginator<OrganizationStaffActivityItem>;
|
|
24065
26996
|
/**
|
|
24066
26997
|
* The groups the provider has pushed, each with its role mapping.
|
|
24067
26998
|
*
|
|
@@ -24088,6 +27019,8 @@ type OrganizationMemberItem = ItemOf$2<ResponseBody<"ApiOrganizationsController_
|
|
|
24088
27019
|
type OrganizationInviteItem = ItemOf$2<ResponseBody<"ApiOrganizationsController_listInvites">>;
|
|
24089
27020
|
/** One pushed group from an organization's directory. */
|
|
24090
27021
|
type OrganizationDirectoryGroupItem = ItemOf$2<ResponseBody<"ApiOrganizationDirectoryGroupsController_list">>;
|
|
27022
|
+
/** One staff entry into an organization, or one refusal. */
|
|
27023
|
+
type OrganizationStaffActivityItem = ItemOf$2<ResponseBody<"ApiOrganizationsController_listStaffActivity">>;
|
|
24091
27024
|
type ItemOf$2<T> = T extends {
|
|
24092
27025
|
items: (infer Item)[];
|
|
24093
27026
|
} ? Item : never;
|
|
@@ -24426,6 +27359,32 @@ declare class LocalAuthorizer {
|
|
|
24426
27359
|
accessibleNodes(identityId: string, permission: string, options?: {
|
|
24427
27360
|
maxNodes?: number;
|
|
24428
27361
|
} & SubjectOptions): Promise<AccessibleNodes>;
|
|
27362
|
+
/**
|
|
27363
|
+
* Whether the identity holds the permission anywhere at or beneath a node,
|
|
27364
|
+
* and where: the question a menu inside an organization asks ("show
|
|
27365
|
+
* Invoices to someone who approves invoices for any team in Acme"), which
|
|
27366
|
+
* `app_wide` cannot answer because it covers the whole Environment.
|
|
27367
|
+
*
|
|
27368
|
+
* `roots` is `[subtreeRootId]` when a grant at the node or above it reaches
|
|
27369
|
+
* the whole subtree; otherwise the topmost granted nodes inside it, the
|
|
27370
|
+
* ones no other granted node inside it already covers. A list query filters
|
|
27371
|
+
* by "beneath one of these".
|
|
27372
|
+
*
|
|
27373
|
+
* **A read for menus and lists, never a guard.** Holding the permission
|
|
27374
|
+
* somewhere in the subtree says nothing about the record a write touches:
|
|
27375
|
+
* check the node the action writes to, with `evaluate`. No `scope` value
|
|
27376
|
+
* asks this question, on purpose.
|
|
27377
|
+
*
|
|
27378
|
+
* Computed from the same cached grant roots and tree a check uses. A grant
|
|
27379
|
+
* or a subtree root the readable hierarchy does not contain raises
|
|
27380
|
+
* `authorizer.hierarchy_incomplete`, as a check at such a node does.
|
|
27381
|
+
*/
|
|
27382
|
+
holdsAnywhereUnder(identityId: string, permission: string, subtreeRootId: string, subject?: SubjectOptions): Promise<{
|
|
27383
|
+
held: boolean;
|
|
27384
|
+
roots: string[];
|
|
27385
|
+
}>;
|
|
27386
|
+
/** The node and every ancestor up to the root, nearest first. */
|
|
27387
|
+
private lineage;
|
|
24429
27388
|
/**
|
|
24430
27389
|
* Every permission the identity holds at the node, by grant or by
|
|
24431
27390
|
* inheritance: the list a screen renders its controls from, answered from
|
|
@@ -24850,6 +27809,14 @@ interface CanopyTokenClaims {
|
|
|
24850
27809
|
* organizations. Minted with `org_id` and `org_roles`.
|
|
24851
27810
|
*/
|
|
24852
27811
|
org_role_ids?: string[];
|
|
27812
|
+
/**
|
|
27813
|
+
* `"all"` on a staff token: the identity holds a role at the Environment
|
|
27814
|
+
* root, so it reaches every organization and may enter any that allows
|
|
27815
|
+
* staff. Present whether or not the session has entered one (`org_id`),
|
|
27816
|
+
* absent on every member's token. Read it through {@link orgContext} once
|
|
27817
|
+
* the session is inside an organization.
|
|
27818
|
+
*/
|
|
27819
|
+
org_scope?: "all";
|
|
24853
27820
|
[claim: string]: unknown;
|
|
24854
27821
|
}
|
|
24855
27822
|
/** What one call to {@link TokenVerifier.verify} may widen. */
|
|
@@ -24873,6 +27840,13 @@ interface CanopyOrgContext {
|
|
|
24873
27840
|
orgRoles: string[];
|
|
24874
27841
|
/** 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
27842
|
orgRoleIds: string[];
|
|
27843
|
+
/**
|
|
27844
|
+
* True for your staff inside a customer's organization (`org_scope:
|
|
27845
|
+
* "all"`): the roles are the ones they hold at the Environment root, and
|
|
27846
|
+
* the organization sees the entry in its staff activity. Worth showing in
|
|
27847
|
+
* your interface, so neither side mistakes a staff session for a member's.
|
|
27848
|
+
*/
|
|
27849
|
+
staff: boolean;
|
|
24876
27850
|
}
|
|
24877
27851
|
/**
|
|
24878
27852
|
* The organization context of a verified token, or `null` when it has none.
|
|
@@ -25007,4 +27981,4 @@ type WebhookEventData<Name extends WebhookEventName> = WebhookEvent<Name>["data"
|
|
|
25007
27981
|
*/
|
|
25008
27982
|
declare function isWebhookEvent<Name extends WebhookEventName>(delivery: WebhookDelivery, name: Name): delivery is WebhookEvent<Name>;
|
|
25009
27983
|
|
|
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 };
|
|
27984
|
+
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, type OrganizationStaffActivityItem, 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 };
|