@canopy-io/node 0.23.0 → 0.23.1

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/dist/index.d.cts CHANGED
@@ -1349,7 +1349,7 @@ interface paths {
1349
1349
  put?: never;
1350
1350
  /**
1351
1351
  * Grant a role at a node beneath the organization
1352
- * @description Grants `role_id` to `identity_id` at `node_id`, the organization node or one beneath it. The identity must be a member of the organization (`409 organization.membership_required` otherwise). Requires `rbac.manage_assignments` at the node, `canopy:organization.manage` at the organization, or `canopy:access.manage` at the node or above it, within the grant ceiling. Emits `assignment.created`.
1352
+ * @description Grants `role_id` to `identity_id` at `node_id`, the organization node or one beneath it. The identity must be a member of the organization (`409 organization.membership_required` otherwise). Requires `rbac.manage_assignments` at the node, `canopy:organization.manage` at the organization, or `canopy:access.manage` at the node or above it for a node beneath the organization (at the organization node it takes `canopy:organization.manage`), within the grant ceiling. Emits `assignment.created`.
1353
1353
  */
1354
1354
  post: operations["ApiOrganizationAccessController_createAssignment"];
1355
1355
  delete?: never;
@@ -1370,7 +1370,7 @@ interface paths {
1370
1370
  post?: never;
1371
1371
  /**
1372
1372
  * Take a grant in the organization away
1373
- * @description Removes an assignment at the organization node or beneath it; the membership stays. Never bounded by the grant ceiling, but the last administrator's role at the organization node cannot be removed (`409 organization.last_admin`). Requires the same as creating one.
1373
+ * @description Removes an assignment at the organization node or beneath it; the membership stays. Never bounded by the grant ceiling, but the last administrator's role at the organization node cannot be removed (`409 organization.last_admin`). Send the assignment's `version` as `If-Match` to refuse the removal if someone changed it first (`409 assignment.version_mismatch`). An integration's grant is removed through the integration's own routes. Requires the same as creating one.
1374
1374
  */
1375
1375
  delete: operations["ApiOrganizationAccessController_removeAssignment"];
1376
1376
  options?: never;
@@ -1834,7 +1834,7 @@ interface paths {
1834
1834
  post?: never;
1835
1835
  /**
1836
1836
  * Remove a member from an organization
1837
- * @description Removes the member from this organization: the membership is deactivated and every role assignment they hold at the organization's nodes goes with it, and nothing else; the identity and its memberships in other organizations are untouched. Returns `404` when the identity is not an active member and `409` when they are the last administrator. Responds `204 No Content`, requires the `rbac.manage_assignments` permission at the organization, and emits `organization.member.removed`.
1837
+ * @description Removes the member from this organization: the membership is deactivated and every role assignment they hold at the organization's nodes goes with it, and nothing else; the identity and its memberships in other organizations are untouched. Returns `404` when the identity is not an active member and `409` when they are the last administrator. Responds `204 No Content`, requires `hierarchy.manage` at the organization or `canopy:organization.manage` at the organization node, and emits `organization.member.removed`.
1838
1838
  */
1839
1839
  delete: operations["ApiOrganizationsController_removeMember"];
1840
1840
  options?: never;
@@ -1877,7 +1877,7 @@ interface paths {
1877
1877
  put?: never;
1878
1878
  /**
1879
1879
  * Invite a member into an organization
1880
- * @description Invites an email into the organization. `role_id` is held on acceptance at `node_id`, the organization node (the default) or an office or team beneath it, for the `effective_from` to `effective_to` window when given; with no `role_id` the invitation admits a member holding nothing, which only the organization node allows (`400 invite.malformed_assignment` beneath it). Acceptance creates what is missing in one transaction: the identity, its Environment membership, the organization membership and the role. For someone who already holds an active membership in this Environment the invitation is a request to join (`intent: grant`): accepting is their consent, proven by their password or their own sign-in. Requires the `identity.manage` permission, or `canopy:organization.manage` at the organization or `canopy:access.manage` at the place for the organization's own administrators, and emits `invite.created`.
1880
+ * @description Invites an email into the organization. `role_id` is held on acceptance at `node_id`, the organization node (the default) or an office or team beneath it, for the `effective_from` to `effective_to` window when given; with no `role_id` the invitation admits a member holding nothing, which only the organization node allows (`400 invite.malformed_assignment` beneath it). Acceptance creates what is missing in one transaction: the identity, its Environment membership, the organization membership and the role. For someone who already holds an active membership in this Environment the invitation is a request to join (`intent: grant`): accepting is their consent, proven by their password or their own sign-in. Requires the `identity.manage` permission, or for the organization's own administrators `canopy:organization.manage` at the organization or `canopy:access.manage` at a place beneath it (an invitation to the organization node takes `canopy:organization.manage`), and emits `invite.created`.
1881
1881
  */
1882
1882
  post: operations["ApiOrganizationsController_createInvite"];
1883
1883
  delete?: never;
@@ -1895,7 +1895,7 @@ interface paths {
1895
1895
  };
1896
1896
  /**
1897
1897
  * List the roles an organization may assign
1898
- * @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.
1898
+ * @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; false for a holder of `canopy:access.manage` alone, whose grants are beneath the organization node), 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.
1899
1899
  */
1900
1900
  get: operations["ApiOrganizationsController_listRoles"];
1901
1901
  put?: never;
@@ -1957,7 +1957,7 @@ interface paths {
1957
1957
  head?: never;
1958
1958
  /**
1959
1959
  * Change an organization's SSO connection
1960
- * @description Changes the connection's configuration (any field of the create body except `type`) and, with `default_role_id`, the membership role. Refused with `409` (`organization.sso_connection_not_owned`) on a developer-managed connection. Requires `hierarchy.manage` or `canopy:organization.manage` at the organization.
1960
+ * @description Changes the connection's configuration (any field of the create body except `type`) and, with `default_role_id`, the membership role. The settings live on the connection and the role on the organization's binding, each with its own version: `If-Match` names the one the request changes, so a request changing both with `If-Match` is refused with `400`. Refused with `409` (`organization.sso_connection_not_owned`) on a developer-managed connection. Requires `hierarchy.manage` or `canopy:organization.manage` at the organization.
1961
1961
  */
1962
1962
  patch: operations["ApiOrganizationSsoConnectionController_update"];
1963
1963
  trace?: never;
@@ -4953,6 +4953,8 @@ interface components {
4953
4953
  is_active: boolean;
4954
4954
  /** Format: date-time */
4955
4955
  created_at: string;
4956
+ /** @description Optimistic-lock version of the profile and status. Send it as `If-Match` when editing the profile to refuse a change made over a newer one. Signing in, codes, credentials and second factors leave it unchanged. */
4957
+ version: number;
4956
4958
  };
4957
4959
  IdentityRoleDto: {
4958
4960
  /** @description ID of the user_role_assignments row connecting this identity, role, and node — needed to target this specific assignment for update/remove */
@@ -5039,6 +5041,8 @@ interface components {
5039
5041
  is_active: boolean;
5040
5042
  /** Format: date-time */
5041
5043
  created_at: string;
5044
+ /** @description Optimistic-lock version of the profile and status. Send it as `If-Match` when editing the profile to refuse a change made over a newer one. Signing in, codes, credentials and second factors leave it unchanged. */
5045
+ version: number;
5042
5046
  /** @description The social provider accounts the identity signs in with, oldest first. Linked and unlinked by the identity on its security page. */
5043
5047
  social_links: components["schemas"]["IdentitySocialLinkResponseDto"][];
5044
5048
  };
@@ -5060,6 +5064,8 @@ interface components {
5060
5064
  created_at: string;
5061
5065
  /** Format: date-time */
5062
5066
  updated_at: string;
5067
+ /** @description Optimistic-lock version of the profile and status. Send it as `If-Match` when editing the profile to refuse a change made over a newer one. Signing in, codes, credentials and second factors leave it unchanged. */
5068
+ version: number;
5063
5069
  };
5064
5070
  UpdateIdentityDto: {
5065
5071
  first_name?: string;
@@ -5991,6 +5997,8 @@ interface components {
5991
5997
  default_role?: components["schemas"]["OrganizationSsoRoleSummaryDto"] | null;
5992
5998
  /** Format: date-time */
5993
5999
  created_at: string;
6000
+ /** @description The binding's optimistic-lock version. Send it as `If-Match` when changing the arrival role. */
6001
+ version: number;
5994
6002
  };
5995
6003
  BindOrganizationSsoConnectionDto: {
5996
6004
  /** @description An end-user SSO connection already bound to the organization's Environment. */
@@ -6218,6 +6226,8 @@ interface components {
6218
6226
  connection: components["schemas"]["SsoConnectionResponseDto"];
6219
6227
  /** @description The membership role a sign-in joins with. `null` until chosen; activation requires one. */
6220
6228
  default_role?: components["schemas"]["OrganizationSsoConnectionRoleDto"] | null;
6229
+ /** @description The version of the organization's binding to the connection, which holds the arrival role. Send it as `If-Match` on an update that changes `default_role_id` alone; the connection's own `version` goes with any other change. */
6230
+ binding_version: number;
6221
6231
  /** @description True when the organization set the connection up itself; false when the developer manages it from the Console, in which case its configuration, activation, and removal are refused here. */
6222
6232
  owned_by_organization: boolean;
6223
6233
  service_provider: components["schemas"]["ServiceProviderDetailsResponseDto"];
@@ -6593,6 +6603,8 @@ interface components {
6593
6603
  member_count: number;
6594
6604
  /** Format: date-time */
6595
6605
  created_at: string;
6606
+ /** @description Optimistic-lock version. Send it as `If-Match` when mapping the group or clearing its mapping, to refuse a change made over a newer one. */
6607
+ version: number;
6596
6608
  };
6597
6609
  MapOrganizationScimGroupDto: {
6598
6610
  /** @description The role to grant members of this group. Must be one the application owner has made available to this organization. */
@@ -6967,7 +6979,7 @@ interface components {
6967
6979
  * @description Narrow to rows for one Environment. Implies the Environment's parent Application. Omit to include all Environments.
6968
6980
  */
6969
6981
  environment_id?: string;
6970
- /** @description Full-text query against actor_label, resource_label (trigram), and metadata (GIN). */
6982
+ /** @description Full-text query against action, actor_label, resource_label (trigram), and metadata (GIN). */
6971
6983
  q?: string;
6972
6984
  /**
6973
6985
  * @description Export wire format. `csv` for spreadsheet review (metadata folded into one JSON column); `ndjson` for SIEM ingestion (one JSON object per line, metadata nested). Defaults to `csv`.
@@ -7109,6 +7121,8 @@ interface components {
7109
7121
  effective: components["schemas"]["EffectiveBrandingDto"];
7110
7122
  /** @description Whether the Account's plan removes the attribution mark. When false, the mark stays whatever the customer sets. */
7111
7123
  brand_removal_available: boolean;
7124
+ /** @description The Environment's optimistic-lock version; send it back as `If-Match` on PATCH. Any change to the Environment moves it. */
7125
+ version: number;
7112
7126
  };
7113
7127
  UpdateEnvironmentBrandingDto: {
7114
7128
  /** @description The product name hosted pages and the organization admin portal show: in the browser tab title, beside the logo when `logo_kind` is `icon`, as a full logo's alt text, and in place of a logo when none is set. Null clears it, and the pages then show no name. */
@@ -7614,6 +7628,8 @@ interface components {
7614
7628
  name: string;
7615
7629
  /** Format: date-time */
7616
7630
  created_at: string;
7631
+ /** @description Optimistic-lock version. Send it as `If-Match` on a rename to refuse one made over a newer change. */
7632
+ version: number;
7617
7633
  };
7618
7634
  CreatePublishableKeyDto: {
7619
7635
  /**
@@ -7633,6 +7649,8 @@ interface components {
7633
7649
  model: "flat" | "hierarchy";
7634
7650
  /** @description Whether the organizations container is on. Independent of `model`: flat and hierarchy both run inside it. */
7635
7651
  organizations_enabled: boolean;
7652
+ /** @description The Environment's version. Send it as `If-Match` when changing the access model or the organizations container. */
7653
+ version: number;
7636
7654
  };
7637
7655
  SetAccessModelDto: {
7638
7656
  /** @enum {string} */
@@ -8319,6 +8337,8 @@ interface components {
8319
8337
  expires_at?: string | null;
8320
8338
  /** Format: date-time */
8321
8339
  created_at: string;
8340
+ /** @description Optimistic-lock version. Send it as `If-Match` when activating or deactivating the key to refuse a change made over a newer one. */
8341
+ version: number;
8322
8342
  };
8323
8343
  CreateApiKeyDto: {
8324
8344
  /** @description API key name */
@@ -8360,6 +8380,8 @@ interface components {
8360
8380
  expires_at?: string | null;
8361
8381
  /** Format: date-time */
8362
8382
  created_at: string;
8383
+ /** @description Optimistic-lock version. Send it as `If-Match` when activating or deactivating the key to refuse a change made over a newer one. */
8384
+ version: number;
8363
8385
  };
8364
8386
  UpdateApiKeyDto: {
8365
8387
  /** @description Whether the key is active. Set `false` to deactivate (the key stops authenticating immediately, reversibly); set `true` to reactivate. */
@@ -11943,6 +11965,8 @@ interface operations {
11943
11965
  parameters: {
11944
11966
  query?: never;
11945
11967
  header?: {
11968
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
11969
+ "If-Match"?: string;
11946
11970
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
11947
11971
  "X-Canopy-Environment"?: string;
11948
11972
  };
@@ -11968,7 +11992,7 @@ interface operations {
11968
11992
  };
11969
11993
  };
11970
11994
  };
11971
- /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
11995
+ /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
11972
11996
  400: {
11973
11997
  headers: {
11974
11998
  [name: string]: unknown;
@@ -11979,7 +12003,7 @@ interface operations {
11979
12003
  * "error": {
11980
12004
  * "statusCode": 400,
11981
12005
  * "code": null,
11982
- * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
12006
+ * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
11983
12007
  * "timestamp": "2026-04-20T12:00:00.000Z",
11984
12008
  * "path": "/api/v1/identities/{id}",
11985
12009
  * "method": "PATCH"
@@ -12052,6 +12076,27 @@ interface operations {
12052
12076
  "application/json": components["schemas"]["ErrorResponseDto"];
12053
12077
  };
12054
12078
  };
12079
+ /** @description The identity changed since the version sent in `If-Match` was read (`version_mismatch`, with the identity as it now stands in `data.current`) */
12080
+ 409: {
12081
+ headers: {
12082
+ [name: string]: unknown;
12083
+ };
12084
+ content: {
12085
+ /**
12086
+ * @example {
12087
+ * "error": {
12088
+ * "statusCode": 409,
12089
+ * "code": null,
12090
+ * "message": "The identity changed since the version sent in `If-Match` was read (`version_mismatch`, with the identity as it now stands in `data.current`)",
12091
+ * "timestamp": "2026-04-20T12:00:00.000Z",
12092
+ * "path": "/api/v1/identities/{id}",
12093
+ * "method": "PATCH"
12094
+ * }
12095
+ * }
12096
+ */
12097
+ "application/json": components["schemas"]["ErrorResponseDto"];
12098
+ };
12099
+ };
12055
12100
  };
12056
12101
  };
12057
12102
  ApiIdentitiesController_getIdentityDetail: {
@@ -16190,7 +16235,7 @@ interface operations {
16190
16235
  };
16191
16236
  };
16192
16237
  };
16193
- /** @description The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`) */
16238
+ /** @description The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`); or its `If-Match` header names no version (`if_match.invalid`) */
16194
16239
  400: {
16195
16240
  headers: {
16196
16241
  [name: string]: unknown;
@@ -16201,7 +16246,7 @@ interface operations {
16201
16246
  * "error": {
16202
16247
  * "statusCode": 400,
16203
16248
  * "code": null,
16204
- * "message": "The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`)",
16249
+ * "message": "The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`); or its `If-Match` header names no version (`if_match.invalid`)",
16205
16250
  * "timestamp": "2026-04-20T12:00:00.000Z",
16206
16251
  * "path": "/api/v1/organizations/{id}/me",
16207
16252
  * "method": "GET"
@@ -16687,7 +16732,7 @@ interface operations {
16687
16732
  };
16688
16733
  };
16689
16734
  };
16690
- /** @description The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`) */
16735
+ /** @description The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`); or its `If-Match` header names no version (`if_match.invalid`) */
16691
16736
  400: {
16692
16737
  headers: {
16693
16738
  [name: string]: unknown;
@@ -16698,7 +16743,7 @@ interface operations {
16698
16743
  * "error": {
16699
16744
  * "statusCode": 400,
16700
16745
  * "code": null,
16701
- * "message": "The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`)",
16746
+ * "message": "The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`); or its `If-Match` header names no version (`if_match.invalid`)",
16702
16747
  * "timestamp": "2026-04-20T12:00:00.000Z",
16703
16748
  * "path": "/api/v1/organizations/{id}/me",
16704
16749
  * "method": "GET"
@@ -16799,7 +16844,7 @@ interface operations {
16799
16844
  };
16800
16845
  };
16801
16846
  };
16802
- /** @description The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`) */
16847
+ /** @description The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`); or its `If-Match` header names no version (`if_match.invalid`) */
16803
16848
  400: {
16804
16849
  headers: {
16805
16850
  [name: string]: unknown;
@@ -16810,7 +16855,7 @@ interface operations {
16810
16855
  * "error": {
16811
16856
  * "statusCode": 400,
16812
16857
  * "code": null,
16813
- * "message": "The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`)",
16858
+ * "message": "The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`); or its `If-Match` header names no version (`if_match.invalid`)",
16814
16859
  * "timestamp": "2026-04-20T12:00:00.000Z",
16815
16860
  * "path": "/api/v1/organizations/{id}/me",
16816
16861
  * "method": "GET"
@@ -17149,6 +17194,8 @@ interface operations {
17149
17194
  parameters: {
17150
17195
  query?: never;
17151
17196
  header?: {
17197
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
17198
+ "If-Match"?: string;
17152
17199
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
17153
17200
  "X-Canopy-Environment"?: string;
17154
17201
  };
@@ -17167,7 +17214,7 @@ interface operations {
17167
17214
  };
17168
17215
  content?: never;
17169
17216
  };
17170
- /** @description The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`) */
17217
+ /** @description The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`); or its `If-Match` header names no version (`if_match.invalid`) */
17171
17218
  400: {
17172
17219
  headers: {
17173
17220
  [name: string]: unknown;
@@ -17178,7 +17225,7 @@ interface operations {
17178
17225
  * "error": {
17179
17226
  * "statusCode": 400,
17180
17227
  * "code": null,
17181
- * "message": "The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`)",
17228
+ * "message": "The request sent both an `X-API-Key` and an `Authorization` header (send one), or its `X-Canopy-Environment` header is missing for an account key (`api_key.environment_required`), names no Environment of the key's Account (`api_key.environment_not_found`), or names another Environment than an Environment key's own (`api_key.environment_mismatch`); or its `If-Match` header names no version (`if_match.invalid`)",
17182
17229
  * "timestamp": "2026-04-20T12:00:00.000Z",
17183
17230
  * "path": "/api/v1/organizations/{id}/me",
17184
17231
  * "method": "GET"
@@ -17251,7 +17298,7 @@ interface operations {
17251
17298
  "application/json": components["schemas"]["ErrorResponseDto"];
17252
17299
  };
17253
17300
  };
17254
- /** @description The member is the organization's last administrator (`organization.last_admin`); make someone else one first */
17301
+ /** @description The assignment changed since the version sent in `If-Match` was read (`assignment.version_mismatch`), or it is the last administrator's role at the organization node (`organization.last_admin`) */
17255
17302
  409: {
17256
17303
  headers: {
17257
17304
  [name: string]: unknown;
@@ -17262,7 +17309,7 @@ interface operations {
17262
17309
  * "error": {
17263
17310
  * "statusCode": 409,
17264
17311
  * "code": null,
17265
- * "message": "The member is the organization's last administrator (`organization.last_admin`); make someone else one first",
17312
+ * "message": "The assignment changed since the version sent in `If-Match` was read (`assignment.version_mismatch`), or it is the last administrator's role at the organization node (`organization.last_admin`)",
17266
17313
  * "timestamp": "2026-04-20T12:00:00.000Z",
17267
17314
  * "path": "/api/v1/organizations/{id}/assignments/{assignmentId}",
17268
17315
  * "method": "DELETE"
@@ -22328,6 +22375,8 @@ interface operations {
22328
22375
  parameters: {
22329
22376
  query?: never;
22330
22377
  header?: {
22378
+ /** @description Optimistic-lock version of the record the request changes: `binding_version` from the read for a change of `default_role_id` alone, the connection's `version` for any other change. The server rejects with 409 if that record has changed since. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
22379
+ "If-Match"?: string;
22331
22380
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
22332
22381
  "X-Canopy-Environment"?: string;
22333
22382
  };
@@ -22353,7 +22402,7 @@ interface operations {
22353
22402
  };
22354
22403
  };
22355
22404
  };
22356
- /** @description The configuration is malformed, or the role is not an active, assignable role in the organization's Environment; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
22405
+ /** @description The configuration is malformed, or the role is not an active, assignable role in the organization's Environment; or the request changes both the connection's settings and `default_role_id` with an `If-Match`, which names one version (`organization.sso_connection_if_match_ambiguous`); or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
22357
22406
  400: {
22358
22407
  headers: {
22359
22408
  [name: string]: unknown;
@@ -22364,7 +22413,7 @@ interface operations {
22364
22413
  * "error": {
22365
22414
  * "statusCode": 400,
22366
22415
  * "code": null,
22367
- * "message": "The configuration is malformed, or the role is not an active, assignable role in the organization's Environment; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
22416
+ * "message": "The configuration is malformed, or the role is not an active, assignable role in the organization's Environment; or the request changes both the connection's settings and `default_role_id` with an `If-Match`, which names one version (`organization.sso_connection_if_match_ambiguous`); or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
22368
22417
  * "timestamp": "2026-04-20T12:00:00.000Z",
22369
22418
  * "path": "/api/v1/organizations/{id}/sso-connection",
22370
22419
  * "method": "PATCH"
@@ -22437,7 +22486,7 @@ interface operations {
22437
22486
  "application/json": components["schemas"]["ErrorResponseDto"];
22438
22487
  };
22439
22488
  };
22440
- /** @description The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console */
22489
+ /** @description The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; or the record the request changes moved on since the version sent in `If-Match` was read (`version_mismatch`): the connection, in `data.current`, or for a change of `default_role_id` alone the organization's binding, in `data.current` */
22441
22490
  409: {
22442
22491
  headers: {
22443
22492
  [name: string]: unknown;
@@ -22448,7 +22497,7 @@ interface operations {
22448
22497
  * "error": {
22449
22498
  * "statusCode": 409,
22450
22499
  * "code": null,
22451
- * "message": "The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console",
22500
+ * "message": "The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; or the record the request changes moved on since the version sent in `If-Match` was read (`version_mismatch`): the connection, in `data.current`, or for a change of `default_role_id` alone the organization's binding, in `data.current`",
22452
22501
  * "timestamp": "2026-04-20T12:00:00.000Z",
22453
22502
  * "path": "/api/v1/organizations/{id}/sso-connection",
22454
22503
  * "method": "PATCH"
@@ -22464,6 +22513,8 @@ interface operations {
22464
22513
  parameters: {
22465
22514
  query?: never;
22466
22515
  header?: {
22516
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
22517
+ "If-Match"?: string;
22467
22518
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
22468
22519
  "X-Canopy-Environment"?: string;
22469
22520
  };
@@ -22485,7 +22536,7 @@ interface operations {
22485
22536
  };
22486
22537
  };
22487
22538
  };
22488
- /** @description The organization id is malformed; the connection is missing the fields its protocol needs; the organization has no verified domain yet; no arrival role is chosen; or (for the organization's own administrator) no test sign-in has passed since the provider settings last changed; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
22539
+ /** @description The organization id is malformed; the connection is missing the fields its protocol needs; the organization has no verified domain yet; no arrival role is chosen; or (for the organization's own administrator) no test sign-in has passed since the provider settings last changed; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
22489
22540
  400: {
22490
22541
  headers: {
22491
22542
  [name: string]: unknown;
@@ -22496,7 +22547,7 @@ interface operations {
22496
22547
  * "error": {
22497
22548
  * "statusCode": 400,
22498
22549
  * "code": null,
22499
- * "message": "The organization id is malformed; the connection is missing the fields its protocol needs; the organization has no verified domain yet; no arrival role is chosen; or (for the organization's own administrator) no test sign-in has passed since the provider settings last changed; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
22550
+ * "message": "The organization id is malformed; the connection is missing the fields its protocol needs; the organization has no verified domain yet; no arrival role is chosen; or (for the organization's own administrator) no test sign-in has passed since the provider settings last changed; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
22500
22551
  * "timestamp": "2026-04-20T12:00:00.000Z",
22501
22552
  * "path": "/api/v1/organizations/{id}/sso-connection/activate",
22502
22553
  * "method": "POST"
@@ -22569,7 +22620,7 @@ interface operations {
22569
22620
  "application/json": components["schemas"]["ErrorResponseDto"];
22570
22621
  };
22571
22622
  };
22572
- /** @description The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console */
22623
+ /** @description The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; or the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`) */
22573
22624
  409: {
22574
22625
  headers: {
22575
22626
  [name: string]: unknown;
@@ -22580,7 +22631,7 @@ interface operations {
22580
22631
  * "error": {
22581
22632
  * "statusCode": 409,
22582
22633
  * "code": null,
22583
- * "message": "The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console",
22634
+ * "message": "The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; or the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`)",
22584
22635
  * "timestamp": "2026-04-20T12:00:00.000Z",
22585
22636
  * "path": "/api/v1/organizations/{id}/sso-connection/activate",
22586
22637
  * "method": "POST"
@@ -22596,6 +22647,8 @@ interface operations {
22596
22647
  parameters: {
22597
22648
  query?: never;
22598
22649
  header?: {
22650
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
22651
+ "If-Match"?: string;
22599
22652
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
22600
22653
  "X-Canopy-Environment"?: string;
22601
22654
  };
@@ -22617,7 +22670,7 @@ interface operations {
22617
22670
  };
22618
22671
  };
22619
22672
  };
22620
- /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
22673
+ /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
22621
22674
  400: {
22622
22675
  headers: {
22623
22676
  [name: string]: unknown;
@@ -22628,7 +22681,7 @@ interface operations {
22628
22681
  * "error": {
22629
22682
  * "statusCode": 400,
22630
22683
  * "code": null,
22631
- * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
22684
+ * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
22632
22685
  * "timestamp": "2026-04-20T12:00:00.000Z",
22633
22686
  * "path": "/api/v1/organizations/{id}/sso-connection/disable",
22634
22687
  * "method": "POST"
@@ -22701,7 +22754,7 @@ interface operations {
22701
22754
  "application/json": components["schemas"]["ErrorResponseDto"];
22702
22755
  };
22703
22756
  };
22704
- /** @description The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console */
22757
+ /** @description The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; or the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`) */
22705
22758
  409: {
22706
22759
  headers: {
22707
22760
  [name: string]: unknown;
@@ -22712,7 +22765,7 @@ interface operations {
22712
22765
  * "error": {
22713
22766
  * "statusCode": 409,
22714
22767
  * "code": null,
22715
- * "message": "The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console",
22768
+ * "message": "The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; or the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`)",
22716
22769
  * "timestamp": "2026-04-20T12:00:00.000Z",
22717
22770
  * "path": "/api/v1/organizations/{id}/sso-connection/disable",
22718
22771
  * "method": "POST"
@@ -22728,6 +22781,8 @@ interface operations {
22728
22781
  parameters: {
22729
22782
  query?: never;
22730
22783
  header?: {
22784
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
22785
+ "If-Match"?: string;
22731
22786
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
22732
22787
  "X-Canopy-Environment"?: string;
22733
22788
  };
@@ -22753,7 +22808,7 @@ interface operations {
22753
22808
  };
22754
22809
  };
22755
22810
  };
22756
- /** @description The request failed validation or names neither a metadata URL nor a document; the connection is not SAML; or the metadata could not be fetched or read, is not identity-provider metadata, or is missing an issuer, sign-in URL or signing certificate; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
22811
+ /** @description The request failed validation or names neither a metadata URL nor a document; the connection is not SAML; or the metadata could not be fetched or read, is not identity-provider metadata, or is missing an issuer, sign-in URL or signing certificate; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
22757
22812
  400: {
22758
22813
  headers: {
22759
22814
  [name: string]: unknown;
@@ -22764,7 +22819,7 @@ interface operations {
22764
22819
  * "error": {
22765
22820
  * "statusCode": 400,
22766
22821
  * "code": null,
22767
- * "message": "The request failed validation or names neither a metadata URL nor a document; the connection is not SAML; or the metadata could not be fetched or read, is not identity-provider metadata, or is missing an issuer, sign-in URL or signing certificate; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
22822
+ * "message": "The request failed validation or names neither a metadata URL nor a document; the connection is not SAML; or the metadata could not be fetched or read, is not identity-provider metadata, or is missing an issuer, sign-in URL or signing certificate; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
22768
22823
  * "timestamp": "2026-04-20T12:00:00.000Z",
22769
22824
  * "path": "/api/v1/organizations/{id}/sso-connection/import-metadata",
22770
22825
  * "method": "POST"
@@ -22837,7 +22892,7 @@ interface operations {
22837
22892
  "application/json": components["schemas"]["ErrorResponseDto"];
22838
22893
  };
22839
22894
  };
22840
- /** @description The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console */
22895
+ /** @description The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; or the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`) */
22841
22896
  409: {
22842
22897
  headers: {
22843
22898
  [name: string]: unknown;
@@ -22848,7 +22903,7 @@ interface operations {
22848
22903
  * "error": {
22849
22904
  * "statusCode": 409,
22850
22905
  * "code": null,
22851
- * "message": "The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console",
22906
+ * "message": "The organization has no SSO connection bound to it, or its connection is developer-managed and is changed from the Console; or the connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection in `data.current`)",
22852
22907
  * "timestamp": "2026-04-20T12:00:00.000Z",
22853
22908
  * "path": "/api/v1/organizations/{id}/sso-connection/import-metadata",
22854
22909
  * "method": "POST"
@@ -26660,6 +26715,8 @@ interface operations {
26660
26715
  parameters: {
26661
26716
  query?: never;
26662
26717
  header?: {
26718
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
26719
+ "If-Match"?: string;
26663
26720
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
26664
26721
  "X-Canopy-Environment"?: string;
26665
26722
  };
@@ -26686,7 +26743,7 @@ interface operations {
26686
26743
  };
26687
26744
  };
26688
26745
  };
26689
- /** @description The request failed validation, or the role is a system role or not one this organization's directory may grant; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
26746
+ /** @description The request failed validation, or the role is a system role or not one this organization's directory may grant; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
26690
26747
  400: {
26691
26748
  headers: {
26692
26749
  [name: string]: unknown;
@@ -26697,7 +26754,7 @@ interface operations {
26697
26754
  * "error": {
26698
26755
  * "statusCode": 400,
26699
26756
  * "code": null,
26700
- * "message": "The request failed validation, or the role is a system role or not one this organization's directory may grant; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
26757
+ * "message": "The request failed validation, or the role is a system role or not one this organization's directory may grant; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
26701
26758
  * "timestamp": "2026-04-20T12:00:00.000Z",
26702
26759
  * "path": "/api/v1/organizations/{id}/directory/groups/{groupId}/mapping",
26703
26760
  * "method": "PUT"
@@ -26770,7 +26827,7 @@ interface operations {
26770
26827
  "application/json": components["schemas"]["ErrorResponseDto"];
26771
26828
  };
26772
26829
  };
26773
- /** @description Another pushed group already grants the organization's membership role; clear that group's mapping first */
26830
+ /** @description Another pushed group already grants the organization's membership role; clear that group's mapping first. Or the group changed since the version sent in `If-Match` was read (`version_mismatch`, with the group in `data.current`) */
26774
26831
  409: {
26775
26832
  headers: {
26776
26833
  [name: string]: unknown;
@@ -26781,7 +26838,7 @@ interface operations {
26781
26838
  * "error": {
26782
26839
  * "statusCode": 409,
26783
26840
  * "code": null,
26784
- * "message": "Another pushed group already grants the organization's membership role; clear that group's mapping first",
26841
+ * "message": "Another pushed group already grants the organization's membership role; clear that group's mapping first. Or the group changed since the version sent in `If-Match` was read (`version_mismatch`, with the group in `data.current`)",
26785
26842
  * "timestamp": "2026-04-20T12:00:00.000Z",
26786
26843
  * "path": "/api/v1/organizations/{id}/directory/groups/{groupId}/mapping",
26787
26844
  * "method": "PUT"
@@ -26797,6 +26854,8 @@ interface operations {
26797
26854
  parameters: {
26798
26855
  query?: never;
26799
26856
  header?: {
26857
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
26858
+ "If-Match"?: string;
26800
26859
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
26801
26860
  "X-Canopy-Environment"?: string;
26802
26861
  };
@@ -26819,7 +26878,7 @@ interface operations {
26819
26878
  };
26820
26879
  };
26821
26880
  };
26822
- /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
26881
+ /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
26823
26882
  400: {
26824
26883
  headers: {
26825
26884
  [name: string]: unknown;
@@ -26830,7 +26889,7 @@ interface operations {
26830
26889
  * "error": {
26831
26890
  * "statusCode": 400,
26832
26891
  * "code": null,
26833
- * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
26892
+ * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
26834
26893
  * "timestamp": "2026-04-20T12:00:00.000Z",
26835
26894
  * "path": "/api/v1/organizations/{id}/directory/groups/{groupId}/mapping",
26836
26895
  * "method": "DELETE"
@@ -26903,6 +26962,27 @@ interface operations {
26903
26962
  "application/json": components["schemas"]["ErrorResponseDto"];
26904
26963
  };
26905
26964
  };
26965
+ /** @description The group changed since the version sent in `If-Match` was read (`version_mismatch`, with the group as it now stands in `data.current`) */
26966
+ 409: {
26967
+ headers: {
26968
+ [name: string]: unknown;
26969
+ };
26970
+ content: {
26971
+ /**
26972
+ * @example {
26973
+ * "error": {
26974
+ * "statusCode": 409,
26975
+ * "code": null,
26976
+ * "message": "The group changed since the version sent in `If-Match` was read (`version_mismatch`, with the group as it now stands in `data.current`)",
26977
+ * "timestamp": "2026-04-20T12:00:00.000Z",
26978
+ * "path": "/api/v1/organizations/{id}/directory/groups/{groupId}/mapping",
26979
+ * "method": "DELETE"
26980
+ * }
26981
+ * }
26982
+ */
26983
+ "application/json": components["schemas"]["ErrorResponseDto"];
26984
+ };
26985
+ };
26906
26986
  };
26907
26987
  };
26908
26988
  ApiRolesController_listRoles: {
@@ -29857,7 +29937,7 @@ interface operations {
29857
29937
  application_id?: string;
29858
29938
  /** @description Narrow to rows for one Environment. Implies the Environment's parent Application. Omit to include all Environments. */
29859
29939
  environment_id?: string;
29860
- /** @description Full-text query against actor_label, resource_label (trigram), and metadata (GIN). */
29940
+ /** @description Full-text query against action, actor_label, resource_label (trigram), and metadata (GIN). */
29861
29941
  q?: string;
29862
29942
  /** @description Opaque base64url cursor returned by the previous response. Omit for the first page. */
29863
29943
  cursor?: string;
@@ -30875,6 +30955,8 @@ interface operations {
30875
30955
  parameters: {
30876
30956
  query?: never;
30877
30957
  header?: {
30958
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
30959
+ "If-Match"?: string;
30878
30960
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
30879
30961
  "X-Canopy-Environment"?: string;
30880
30962
  };
@@ -30898,7 +30980,7 @@ interface operations {
30898
30980
  };
30899
30981
  };
30900
30982
  };
30901
- /** @description A value is malformed: the logo, favicon, terms and privacy links must be https URLs, the colors six-digit hex, the support link an https URL or a mailto: address, and the product name at most 60 characters; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
30983
+ /** @description A value is malformed: the logo, favicon, terms and privacy links must be https URLs, the colors six-digit hex, the support link an https URL or a mailto: address, and the product name at most 60 characters; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
30902
30984
  400: {
30903
30985
  headers: {
30904
30986
  [name: string]: unknown;
@@ -30909,7 +30991,7 @@ interface operations {
30909
30991
  * "error": {
30910
30992
  * "statusCode": 400,
30911
30993
  * "code": null,
30912
- * "message": "A value is malformed: the logo, favicon, terms and privacy links must be https URLs, the colors six-digit hex, the support link an https URL or a mailto: address, and the product name at most 60 characters; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
30994
+ * "message": "A value is malformed: the logo, favicon, terms and privacy links must be https URLs, the colors six-digit hex, the support link an https URL or a mailto: address, and the product name at most 60 characters; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
30913
30995
  * "timestamp": "2026-04-20T12:00:00.000Z",
30914
30996
  * "path": "/api/v1/branding",
30915
30997
  * "method": "PATCH"
@@ -30961,6 +31043,27 @@ interface operations {
30961
31043
  "application/json": components["schemas"]["ErrorResponseDto"];
30962
31044
  };
30963
31045
  };
31046
+ /** @description The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the branding as it now stands in `data.current`) */
31047
+ 409: {
31048
+ headers: {
31049
+ [name: string]: unknown;
31050
+ };
31051
+ content: {
31052
+ /**
31053
+ * @example {
31054
+ * "error": {
31055
+ * "statusCode": 409,
31056
+ * "code": null,
31057
+ * "message": "The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the branding as it now stands in `data.current`)",
31058
+ * "timestamp": "2026-04-20T12:00:00.000Z",
31059
+ * "path": "/api/v1/branding",
31060
+ * "method": "PATCH"
31061
+ * }
31062
+ * }
31063
+ */
31064
+ "application/json": components["schemas"]["ErrorResponseDto"];
31065
+ };
31066
+ };
30964
31067
  };
30965
31068
  };
30966
31069
  ApiTokenClaimsController_getTokenClaims: {
@@ -32545,7 +32648,10 @@ interface operations {
32545
32648
  ApiEnvironmentsController_import: {
32546
32649
  parameters: {
32547
32650
  query?: never;
32548
- header?: never;
32651
+ header?: {
32652
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
32653
+ "If-Match"?: string;
32654
+ };
32549
32655
  path: {
32550
32656
  id: string;
32551
32657
  };
@@ -32568,7 +32674,7 @@ interface operations {
32568
32674
  };
32569
32675
  };
32570
32676
  };
32571
- /** @description The request failed validation, or the payload cannot be applied: an unsupported `format_version`, an organizations setting that differs from the target Environment's, nested nodes in an Environment with organizations, not exactly one root node, a role or role template naming a permission key the payload lacks, orphaned or cyclic `parent_ref` chains, or duplicate keys. Its role templates must also be importable: a template named like one of the payload's roles (`role_template.name_taken`), more than one default admin or default member (`environment.import_duplicate_role_template_default`), a default admin without `canopy:organization.manage` (`role_template.admin_requires_organization_manage`), or no default admin while the target creates organizations at sign-up (`role_template.default_admin_required`); or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
32677
+ /** @description The request failed validation, or the payload cannot be applied: an unsupported `format_version`, an organizations setting that differs from the target Environment's, nested nodes in an Environment with organizations, not exactly one root node, a role or role template naming a permission key the payload lacks, orphaned or cyclic `parent_ref` chains, or duplicate keys. Its role templates must also be importable: a template named like one of the payload's roles (`role_template.name_taken`), more than one default admin or default member (`environment.import_duplicate_role_template_default`), a default admin without `canopy:organization.manage` (`role_template.admin_requires_organization_manage`), or no default admin while the target creates organizations at sign-up (`role_template.default_admin_required`); or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
32572
32678
  400: {
32573
32679
  headers: {
32574
32680
  [name: string]: unknown;
@@ -32579,7 +32685,7 @@ interface operations {
32579
32685
  * "error": {
32580
32686
  * "statusCode": 400,
32581
32687
  * "code": null,
32582
- * "message": "The request failed validation, or the payload cannot be applied: an unsupported `format_version`, an organizations setting that differs from the target Environment's, nested nodes in an Environment with organizations, not exactly one root node, a role or role template naming a permission key the payload lacks, orphaned or cyclic `parent_ref` chains, or duplicate keys. Its role templates must also be importable: a template named like one of the payload's roles (`role_template.name_taken`), more than one default admin or default member (`environment.import_duplicate_role_template_default`), a default admin without `canopy:organization.manage` (`role_template.admin_requires_organization_manage`), or no default admin while the target creates organizations at sign-up (`role_template.default_admin_required`); or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
32688
+ * "message": "The request failed validation, or the payload cannot be applied: an unsupported `format_version`, an organizations setting that differs from the target Environment's, nested nodes in an Environment with organizations, not exactly one root node, a role or role template naming a permission key the payload lacks, orphaned or cyclic `parent_ref` chains, or duplicate keys. Its role templates must also be importable: a template named like one of the payload's roles (`role_template.name_taken`), more than one default admin or default member (`environment.import_duplicate_role_template_default`), a default admin without `canopy:organization.manage` (`role_template.admin_requires_organization_manage`), or no default admin while the target creates organizations at sign-up (`role_template.default_admin_required`); or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
32583
32689
  * "timestamp": "2026-04-20T12:00:00.000Z",
32584
32690
  * "path": "/api/v1/environments/{id}/import",
32585
32691
  * "method": "POST"
@@ -32652,6 +32758,27 @@ interface operations {
32652
32758
  "application/json": components["schemas"]["ErrorResponseDto"];
32653
32759
  };
32654
32760
  };
32761
+ /** @description The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the Environment as it now stands in `data.current`) */
32762
+ 409: {
32763
+ headers: {
32764
+ [name: string]: unknown;
32765
+ };
32766
+ content: {
32767
+ /**
32768
+ * @example {
32769
+ * "error": {
32770
+ * "statusCode": 409,
32771
+ * "code": null,
32772
+ * "message": "The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the Environment as it now stands in `data.current`)",
32773
+ * "timestamp": "2026-04-20T12:00:00.000Z",
32774
+ * "path": "/api/v1/environments/{id}/import",
32775
+ * "method": "POST"
32776
+ * }
32777
+ * }
32778
+ */
32779
+ "application/json": components["schemas"]["ErrorResponseDto"];
32780
+ };
32781
+ };
32655
32782
  };
32656
32783
  };
32657
32784
  ApiAuthSettingsController_get: {
@@ -33705,6 +33832,8 @@ interface operations {
33705
33832
  parameters: {
33706
33833
  query?: never;
33707
33834
  header?: {
33835
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
33836
+ "If-Match"?: string;
33708
33837
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
33709
33838
  "X-Canopy-Environment"?: string;
33710
33839
  };
@@ -33730,7 +33859,7 @@ interface operations {
33730
33859
  };
33731
33860
  };
33732
33861
  };
33733
- /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
33862
+ /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
33734
33863
  400: {
33735
33864
  headers: {
33736
33865
  [name: string]: unknown;
@@ -33741,7 +33870,7 @@ interface operations {
33741
33870
  * "error": {
33742
33871
  * "statusCode": 400,
33743
33872
  * "code": null,
33744
- * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
33873
+ * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
33745
33874
  * "timestamp": "2026-04-20T12:00:00.000Z",
33746
33875
  * "path": "/api/v1/publishable-keys/{id}",
33747
33876
  * "method": "PATCH"
@@ -33814,6 +33943,27 @@ interface operations {
33814
33943
  "application/json": components["schemas"]["ErrorResponseDto"];
33815
33944
  };
33816
33945
  };
33946
+ /** @description The key changed since the version sent in `If-Match` was read (`version_mismatch`, with the key as it now stands in `data.current`) */
33947
+ 409: {
33948
+ headers: {
33949
+ [name: string]: unknown;
33950
+ };
33951
+ content: {
33952
+ /**
33953
+ * @example {
33954
+ * "error": {
33955
+ * "statusCode": 409,
33956
+ * "code": null,
33957
+ * "message": "The key changed since the version sent in `If-Match` was read (`version_mismatch`, with the key as it now stands in `data.current`)",
33958
+ * "timestamp": "2026-04-20T12:00:00.000Z",
33959
+ * "path": "/api/v1/publishable-keys/{id}",
33960
+ * "method": "PATCH"
33961
+ * }
33962
+ * }
33963
+ */
33964
+ "application/json": components["schemas"]["ErrorResponseDto"];
33965
+ };
33966
+ };
33817
33967
  };
33818
33968
  };
33819
33969
  ApiAccessModelController_get: {
@@ -33908,6 +34058,8 @@ interface operations {
33908
34058
  parameters: {
33909
34059
  query?: never;
33910
34060
  header?: {
34061
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
34062
+ "If-Match"?: string;
33911
34063
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
33912
34064
  "X-Canopy-Environment"?: string;
33913
34065
  };
@@ -33931,7 +34083,7 @@ interface operations {
33931
34083
  };
33932
34084
  };
33933
34085
  };
33934
- /** @description The request failed validation, or it asks for hierarchy to flat directly; call revert-to-flat instead; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
34086
+ /** @description The request failed validation, or it asks for hierarchy to flat directly; call revert-to-flat instead; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
33935
34087
  400: {
33936
34088
  headers: {
33937
34089
  [name: string]: unknown;
@@ -33942,7 +34094,7 @@ interface operations {
33942
34094
  * "error": {
33943
34095
  * "statusCode": 400,
33944
34096
  * "code": null,
33945
- * "message": "The request failed validation, or it asks for hierarchy to flat directly; call revert-to-flat instead; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
34097
+ * "message": "The request failed validation, or it asks for hierarchy to flat directly; call revert-to-flat instead; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
33946
34098
  * "timestamp": "2026-04-20T12:00:00.000Z",
33947
34099
  * "path": "/api/v1/access-model",
33948
34100
  * "method": "PUT"
@@ -33994,12 +34146,35 @@ interface operations {
33994
34146
  "application/json": components["schemas"]["ErrorResponseDto"];
33995
34147
  };
33996
34148
  };
34149
+ /** @description The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the Environment as it now stands in `data.current`) */
34150
+ 409: {
34151
+ headers: {
34152
+ [name: string]: unknown;
34153
+ };
34154
+ content: {
34155
+ /**
34156
+ * @example {
34157
+ * "error": {
34158
+ * "statusCode": 409,
34159
+ * "code": null,
34160
+ * "message": "The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the Environment as it now stands in `data.current`)",
34161
+ * "timestamp": "2026-04-20T12:00:00.000Z",
34162
+ * "path": "/api/v1/access-model",
34163
+ * "method": "PUT"
34164
+ * }
34165
+ * }
34166
+ */
34167
+ "application/json": components["schemas"]["ErrorResponseDto"];
34168
+ };
34169
+ };
33997
34170
  };
33998
34171
  };
33999
34172
  ApiAccessModelController_setOrganizations: {
34000
34173
  parameters: {
34001
34174
  query?: never;
34002
34175
  header?: {
34176
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
34177
+ "If-Match"?: string;
34003
34178
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
34004
34179
  "X-Canopy-Environment"?: string;
34005
34180
  };
@@ -34023,7 +34198,7 @@ interface operations {
34023
34198
  };
34024
34199
  };
34025
34200
  };
34026
- /** @description The request failed validation, or enabling was refused because the hierarchy schema is not rooted at "canopy:organization"; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
34201
+ /** @description The request failed validation, or enabling was refused because the hierarchy schema is not rooted at "canopy:organization"; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
34027
34202
  400: {
34028
34203
  headers: {
34029
34204
  [name: string]: unknown;
@@ -34034,7 +34209,7 @@ interface operations {
34034
34209
  * "error": {
34035
34210
  * "statusCode": 400,
34036
34211
  * "code": null,
34037
- * "message": "The request failed validation, or enabling was refused because the hierarchy schema is not rooted at \"canopy:organization\"; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
34212
+ * "message": "The request failed validation, or enabling was refused because the hierarchy schema is not rooted at \"canopy:organization\"; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
34038
34213
  * "timestamp": "2026-04-20T12:00:00.000Z",
34039
34214
  * "path": "/api/v1/access-model/organizations",
34040
34215
  * "method": "PUT"
@@ -34086,7 +34261,7 @@ interface operations {
34086
34261
  "application/json": components["schemas"]["ErrorResponseDto"];
34087
34262
  };
34088
34263
  };
34089
- /** @description Enable refused while nodes sit directly under the root or while an end-user SSO connection is the default of the Environment or of one of its OAuth clients; disable refused while organizations or a hierarchy schema remain */
34264
+ /** @description Enable refused while nodes sit directly under the root or while an end-user SSO connection is the default of the Environment or of one of its OAuth clients; disable refused while organizations or a hierarchy schema remain; or the Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the Environment in `data.current`) */
34090
34265
  409: {
34091
34266
  headers: {
34092
34267
  [name: string]: unknown;
@@ -34097,7 +34272,7 @@ interface operations {
34097
34272
  * "error": {
34098
34273
  * "statusCode": 409,
34099
34274
  * "code": null,
34100
- * "message": "Enable refused while nodes sit directly under the root or while an end-user SSO connection is the default of the Environment or of one of its OAuth clients; disable refused while organizations or a hierarchy schema remain",
34275
+ * "message": "Enable refused while nodes sit directly under the root or while an end-user SSO connection is the default of the Environment or of one of its OAuth clients; disable refused while organizations or a hierarchy schema remain; or the Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the Environment in `data.current`)",
34101
34276
  * "timestamp": "2026-04-20T12:00:00.000Z",
34102
34277
  * "path": "/api/v1/access-model/organizations",
34103
34278
  * "method": "PUT"
@@ -34113,6 +34288,8 @@ interface operations {
34113
34288
  parameters: {
34114
34289
  query?: never;
34115
34290
  header?: {
34291
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
34292
+ "If-Match"?: string;
34116
34293
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
34117
34294
  "X-Canopy-Environment"?: string;
34118
34295
  };
@@ -34132,7 +34309,7 @@ interface operations {
34132
34309
  };
34133
34310
  };
34134
34311
  };
34135
- /** @description The Environment already uses the flat access model, or administrators are still assigned at nodes in it; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
34312
+ /** @description The Environment already uses the flat access model, or administrators are still assigned at nodes in it; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
34136
34313
  400: {
34137
34314
  headers: {
34138
34315
  [name: string]: unknown;
@@ -34143,7 +34320,7 @@ interface operations {
34143
34320
  * "error": {
34144
34321
  * "statusCode": 400,
34145
34322
  * "code": null,
34146
- * "message": "The Environment already uses the flat access model, or administrators are still assigned at nodes in it; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
34323
+ * "message": "The Environment already uses the flat access model, or administrators are still assigned at nodes in it; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
34147
34324
  * "timestamp": "2026-04-20T12:00:00.000Z",
34148
34325
  * "path": "/api/v1/access-model/revert-to-flat",
34149
34326
  * "method": "POST"
@@ -34195,6 +34372,27 @@ interface operations {
34195
34372
  "application/json": components["schemas"]["ErrorResponseDto"];
34196
34373
  };
34197
34374
  };
34375
+ /** @description The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the Environment as it now stands in `data.current`) */
34376
+ 409: {
34377
+ headers: {
34378
+ [name: string]: unknown;
34379
+ };
34380
+ content: {
34381
+ /**
34382
+ * @example {
34383
+ * "error": {
34384
+ * "statusCode": 409,
34385
+ * "code": null,
34386
+ * "message": "The Environment changed since the version sent in `If-Match` was read (`version_mismatch`, with the Environment as it now stands in `data.current`)",
34387
+ * "timestamp": "2026-04-20T12:00:00.000Z",
34388
+ * "path": "/api/v1/access-model/revert-to-flat",
34389
+ * "method": "POST"
34390
+ * }
34391
+ * }
34392
+ */
34393
+ "application/json": components["schemas"]["ErrorResponseDto"];
34394
+ };
34395
+ };
34198
34396
  };
34199
34397
  };
34200
34398
  ApiSsoController_list: {
@@ -34745,7 +34943,10 @@ interface operations {
34745
34943
  ApiSsoController_activate: {
34746
34944
  parameters: {
34747
34945
  query?: never;
34748
- header?: never;
34946
+ header?: {
34947
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
34948
+ "If-Match"?: string;
34949
+ };
34749
34950
  path: {
34750
34951
  id: string;
34751
34952
  };
@@ -34764,7 +34965,7 @@ interface operations {
34764
34965
  };
34765
34966
  };
34766
34967
  };
34767
- /** @description The connection id is malformed, the connection is missing a field its protocol requires (SAML: entity ID, SSO URL, signing cert; OIDC: discovery URL, client ID, client secret), or an organization it is bound to holds no verified domain or has no arrival role; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
34968
+ /** @description The connection id is malformed, the connection is missing a field its protocol requires (SAML: entity ID, SSO URL, signing cert; OIDC: discovery URL, client ID, client secret), or an organization it is bound to holds no verified domain or has no arrival role; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
34768
34969
  400: {
34769
34970
  headers: {
34770
34971
  [name: string]: unknown;
@@ -34775,7 +34976,7 @@ interface operations {
34775
34976
  * "error": {
34776
34977
  * "statusCode": 400,
34777
34978
  * "code": null,
34778
- * "message": "The connection id is malformed, the connection is missing a field its protocol requires (SAML: entity ID, SSO URL, signing cert; OIDC: discovery URL, client ID, client secret), or an organization it is bound to holds no verified domain or has no arrival role; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
34979
+ * "message": "The connection id is malformed, the connection is missing a field its protocol requires (SAML: entity ID, SSO URL, signing cert; OIDC: discovery URL, client ID, client secret), or an organization it is bound to holds no verified domain or has no arrival role; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
34779
34980
  * "timestamp": "2026-04-20T12:00:00.000Z",
34780
34981
  * "path": "/api/v1/sso/connections/{id}/activate",
34781
34982
  * "method": "POST"
@@ -34848,12 +35049,36 @@ interface operations {
34848
35049
  "application/json": components["schemas"]["ErrorResponseDto"];
34849
35050
  };
34850
35051
  };
35052
+ /** @description The connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection as it now stands in `data.current`) */
35053
+ 409: {
35054
+ headers: {
35055
+ [name: string]: unknown;
35056
+ };
35057
+ content: {
35058
+ /**
35059
+ * @example {
35060
+ * "error": {
35061
+ * "statusCode": 409,
35062
+ * "code": null,
35063
+ * "message": "The connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection as it now stands in `data.current`)",
35064
+ * "timestamp": "2026-04-20T12:00:00.000Z",
35065
+ * "path": "/api/v1/sso/connections/{id}/activate",
35066
+ * "method": "POST"
35067
+ * }
35068
+ * }
35069
+ */
35070
+ "application/json": components["schemas"]["ErrorResponseDto"];
35071
+ };
35072
+ };
34851
35073
  };
34852
35074
  };
34853
35075
  ApiSsoController_disable: {
34854
35076
  parameters: {
34855
35077
  query?: never;
34856
- header?: never;
35078
+ header?: {
35079
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
35080
+ "If-Match"?: string;
35081
+ };
34857
35082
  path: {
34858
35083
  id: string;
34859
35084
  };
@@ -34872,7 +35097,7 @@ interface operations {
34872
35097
  };
34873
35098
  };
34874
35099
  };
34875
- /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
35100
+ /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
34876
35101
  400: {
34877
35102
  headers: {
34878
35103
  [name: string]: unknown;
@@ -34883,7 +35108,7 @@ interface operations {
34883
35108
  * "error": {
34884
35109
  * "statusCode": 400,
34885
35110
  * "code": null,
34886
- * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
35111
+ * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
34887
35112
  * "timestamp": "2026-04-20T12:00:00.000Z",
34888
35113
  * "path": "/api/v1/sso/connections/{id}/disable",
34889
35114
  * "method": "POST"
@@ -34956,6 +35181,27 @@ interface operations {
34956
35181
  "application/json": components["schemas"]["ErrorResponseDto"];
34957
35182
  };
34958
35183
  };
35184
+ /** @description The connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection as it now stands in `data.current`) */
35185
+ 409: {
35186
+ headers: {
35187
+ [name: string]: unknown;
35188
+ };
35189
+ content: {
35190
+ /**
35191
+ * @example {
35192
+ * "error": {
35193
+ * "statusCode": 409,
35194
+ * "code": null,
35195
+ * "message": "The connection changed since the version sent in `If-Match` was read (`version_mismatch`, with the connection as it now stands in `data.current`)",
35196
+ * "timestamp": "2026-04-20T12:00:00.000Z",
35197
+ * "path": "/api/v1/sso/connections/{id}/disable",
35198
+ * "method": "POST"
35199
+ * }
35200
+ * }
35201
+ */
35202
+ "application/json": components["schemas"]["ErrorResponseDto"];
35203
+ };
35204
+ };
34959
35205
  };
34960
35206
  };
34961
35207
  ApiSsoController_listOAuthClientLinks: {
@@ -37953,6 +38199,8 @@ interface operations {
37953
38199
  parameters: {
37954
38200
  query?: never;
37955
38201
  header?: {
38202
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
38203
+ "If-Match"?: string;
37956
38204
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
37957
38205
  "X-Canopy-Environment"?: string;
37958
38206
  };
@@ -37978,7 +38226,7 @@ interface operations {
37978
38226
  };
37979
38227
  };
37980
38228
  };
37981
- /** @description The request failed validation, the role is a system role, or the role is not one this directory may grant; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
38229
+ /** @description The request failed validation, the role is a system role, or the role is not one this directory may grant; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
37982
38230
  400: {
37983
38231
  headers: {
37984
38232
  [name: string]: unknown;
@@ -37989,7 +38237,7 @@ interface operations {
37989
38237
  * "error": {
37990
38238
  * "statusCode": 400,
37991
38239
  * "code": null,
37992
- * "message": "The request failed validation, the role is a system role, or the role is not one this directory may grant; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
38240
+ * "message": "The request failed validation, the role is a system role, or the role is not one this directory may grant; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
37993
38241
  * "timestamp": "2026-04-20T12:00:00.000Z",
37994
38242
  * "path": "/api/v1/scim-groups/{id}/mapping",
37995
38243
  * "method": "PUT"
@@ -38062,7 +38310,7 @@ interface operations {
38062
38310
  "application/json": components["schemas"]["ErrorResponseDto"];
38063
38311
  };
38064
38312
  };
38065
- /** @description Another group already grants the organization's membership role; clear that group's mapping first */
38313
+ /** @description Another group already grants the organization's membership role; clear that group's mapping first. Or the group changed since the version sent in `If-Match` was read (`version_mismatch`, with the group in `data.current`) */
38066
38314
  409: {
38067
38315
  headers: {
38068
38316
  [name: string]: unknown;
@@ -38073,7 +38321,7 @@ interface operations {
38073
38321
  * "error": {
38074
38322
  * "statusCode": 409,
38075
38323
  * "code": null,
38076
- * "message": "Another group already grants the organization's membership role; clear that group's mapping first",
38324
+ * "message": "Another group already grants the organization's membership role; clear that group's mapping first. Or the group changed since the version sent in `If-Match` was read (`version_mismatch`, with the group in `data.current`)",
38077
38325
  * "timestamp": "2026-04-20T12:00:00.000Z",
38078
38326
  * "path": "/api/v1/scim-groups/{id}/mapping",
38079
38327
  * "method": "PUT"
@@ -38089,6 +38337,8 @@ interface operations {
38089
38337
  parameters: {
38090
38338
  query?: never;
38091
38339
  header?: {
38340
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
38341
+ "If-Match"?: string;
38092
38342
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
38093
38343
  "X-Canopy-Environment"?: string;
38094
38344
  };
@@ -38106,7 +38356,7 @@ interface operations {
38106
38356
  };
38107
38357
  content?: never;
38108
38358
  };
38109
- /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
38359
+ /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
38110
38360
  400: {
38111
38361
  headers: {
38112
38362
  [name: string]: unknown;
@@ -38117,7 +38367,7 @@ interface operations {
38117
38367
  * "error": {
38118
38368
  * "statusCode": 400,
38119
38369
  * "code": null,
38120
- * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
38370
+ * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
38121
38371
  * "timestamp": "2026-04-20T12:00:00.000Z",
38122
38372
  * "path": "/api/v1/scim-groups/{id}/mapping",
38123
38373
  * "method": "DELETE"
@@ -38190,6 +38440,27 @@ interface operations {
38190
38440
  "application/json": components["schemas"]["ErrorResponseDto"];
38191
38441
  };
38192
38442
  };
38443
+ /** @description The group changed since the version sent in `If-Match` was read (`version_mismatch`, with the group as it now stands in `data.current`) */
38444
+ 409: {
38445
+ headers: {
38446
+ [name: string]: unknown;
38447
+ };
38448
+ content: {
38449
+ /**
38450
+ * @example {
38451
+ * "error": {
38452
+ * "statusCode": 409,
38453
+ * "code": null,
38454
+ * "message": "The group changed since the version sent in `If-Match` was read (`version_mismatch`, with the group as it now stands in `data.current`)",
38455
+ * "timestamp": "2026-04-20T12:00:00.000Z",
38456
+ * "path": "/api/v1/scim-groups/{id}/mapping",
38457
+ * "method": "DELETE"
38458
+ * }
38459
+ * }
38460
+ */
38461
+ "application/json": components["schemas"]["ErrorResponseDto"];
38462
+ };
38463
+ };
38193
38464
  };
38194
38465
  };
38195
38466
  ApiAdminRolesController_list: {
@@ -42447,6 +42718,8 @@ interface operations {
42447
42718
  parameters: {
42448
42719
  query?: never;
42449
42720
  header?: {
42721
+ /** @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. Leave it out to skip the check; a header that names no version (not a whole number) is refused with 400 `if_match.invalid`. */
42722
+ "If-Match"?: string;
42450
42723
  /** @description The id of the Environment this request acts in. Required with an account API key, which belongs to the Account and names its Environment per request; an Environment key may send it only to name its own Environment. A missing header for an account key answers `400` (`api_key.environment_required`), one naming no Environment of the key's Account `400` (`api_key.environment_not_found`), and one naming another Environment than an Environment key's own `400` (`api_key.environment_mismatch`). */
42451
42724
  "X-Canopy-Environment"?: string;
42452
42725
  };
@@ -42472,7 +42745,7 @@ interface operations {
42472
42745
  };
42473
42746
  };
42474
42747
  };
42475
- /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own */
42748
+ /** @description The request failed validation: a body field, a query parameter or an id in the path is missing, malformed or out of range; or the request sent both an `X-API-Key` and an `Authorization` header, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`) */
42476
42749
  400: {
42477
42750
  headers: {
42478
42751
  [name: string]: unknown;
@@ -42483,7 +42756,7 @@ interface operations {
42483
42756
  * "error": {
42484
42757
  * "statusCode": 400,
42485
42758
  * "code": null,
42486
- * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own",
42759
+ * "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, or its `X-Canopy-Environment` header is missing for an account key, names no Environment of the key's Account, or names another Environment than an Environment key's own; or its `If-Match` header names no version (`if_match.invalid`)",
42487
42760
  * "timestamp": "2026-04-20T12:00:00.000Z",
42488
42761
  * "path": "/api/v1/api-keys/{id}",
42489
42762
  * "method": "PATCH"
@@ -42556,6 +42829,27 @@ interface operations {
42556
42829
  "application/json": components["schemas"]["ErrorResponseDto"];
42557
42830
  };
42558
42831
  };
42832
+ /** @description The key changed since the version sent in `If-Match` was read (`version_mismatch`, with the key as it now stands, less its secret, in `data.current`) */
42833
+ 409: {
42834
+ headers: {
42835
+ [name: string]: unknown;
42836
+ };
42837
+ content: {
42838
+ /**
42839
+ * @example {
42840
+ * "error": {
42841
+ * "statusCode": 409,
42842
+ * "code": null,
42843
+ * "message": "The key changed since the version sent in `If-Match` was read (`version_mismatch`, with the key as it now stands, less its secret, in `data.current`)",
42844
+ * "timestamp": "2026-04-20T12:00:00.000Z",
42845
+ * "path": "/api/v1/api-keys/{id}",
42846
+ * "method": "PATCH"
42847
+ * }
42848
+ * }
42849
+ */
42850
+ "application/json": components["schemas"]["ErrorResponseDto"];
42851
+ };
42852
+ };
42559
42853
  };
42560
42854
  };
42561
42855
  ApiApiKeysController_rotateSecret: {
@@ -44575,7 +44869,12 @@ declare class Identities {
44575
44869
  list(query?: QueryParams<"ApiIdentitiesController_listIdentities">): Paginator<IdentityItem>;
44576
44870
  get(id: string): Promise<ResponseBody<"ApiIdentitiesController_getIdentity">>;
44577
44871
  create(input: RequestBody<"ApiIdentitiesController_createIdentity">): Promise<ResponseBody<"ApiIdentitiesController_createIdentity">>;
44578
- update(id: string, input: RequestBody<"ApiIdentitiesController_updateIdentity">): Promise<ResponseBody<"ApiIdentitiesController_updateIdentity">>;
44872
+ /**
44873
+ * Pass `ifMatch` with the identity's current `version` to make a
44874
+ * read-modify-write safe: a concurrent edit answers 409 instead of being
44875
+ * silently overwritten.
44876
+ */
44877
+ update(id: string, input: RequestBody<"ApiIdentitiesController_updateIdentity">, options?: ConcurrencyOptions): Promise<ResponseBody<"ApiIdentitiesController_updateIdentity">>;
44579
44878
  /**
44580
44879
  * Takes the identity out of this key's Environment: its membership here is
44581
44880
  * deactivated and its role assignments here are dropped. The identity and