@canopy-io/node 0.22.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.ts 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;
@@ -1530,7 +1530,7 @@ interface paths {
1530
1530
  post: operations["ApiOrganizationsController_createOrganization"];
1531
1531
  /**
1532
1532
  * Delete every organization
1533
- * @description Deletes every live organization in the Environment the way the single delete does: memberships and every assignment beneath each organization are removed, pending invitations bound to the organization or its tree are revoked, and each organization is soft-deleted with its subtree. Member identities are untouched. This is the step before switching the container off, so unlike the other organization routes it does not require the organizations plan feature: an account that has moved to a plan without it can still empty the container and switch it off. Responds `204 No Content`, requires the `hierarchy.manage` permission, and emits `organization.deleted_all` with the counts.
1533
+ * @description Deletes every live organization in the Environment the way the single delete does: memberships and every assignment beneath each organization are removed, pending invitations bound to the organization or its tree are revoked, and each organization is soft-deleted with its subtree. Member identities are untouched. This is the step before switching the container off. Responds `204 No Content`, requires the `hierarchy.manage` permission, and emits `organization.deleted_all` with the counts.
1534
1534
  */
1535
1535
  delete: operations["ApiOrganizationsController_deleteAllOrganizations"];
1536
1536
  options?: never;
@@ -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;
@@ -4698,8 +4698,8 @@ interface paths {
4698
4698
  cookie?: never;
4699
4699
  };
4700
4700
  /**
4701
- * List the purchasable Pro prices
4702
- * @description Returns `monthly` and `annual` Pro prices in the smallest currency unit, resolved from Stripe by lookup key, with `annual_savings_percent` derived from the pair rather than stated so it cannot disagree with them. Either price is null when no active Stripe price carries its lookup key; the dialog renders the cycle it has. Amounts come from Stripe so the dialog cannot advertise a price different from the charge.
4701
+ * List the purchasable plan prices
4702
+ * @description Returns `monthly` and `annual` prices for `starter` and `pro` in the smallest currency unit, resolved from Stripe by lookup key, with `annual_savings_percent` derived from the pair rather than stated so it cannot disagree with them. Either price is null when no active Stripe price carries its lookup key; the dialog renders the cycle it has. Amounts come from Stripe so the dialog cannot advertise a price different from the charge.
4703
4703
  */
4704
4704
  get: operations["ApiBillingController_getPlanPrices"];
4705
4705
  put?: never;
@@ -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;
@@ -5660,6 +5666,10 @@ interface components {
5660
5666
  has_hierarchy: boolean;
5661
5667
  /** @description Whether the organization may create its own integrations: the Environment's `organization_integrations_enabled` is on, it has a default audience, which every integration's token names, and `organization_integration_role_ids` names at least one role */
5662
5668
  integrations_enabled: boolean;
5669
+ /** @description Whether the Account's plan includes single sign-on. Without it the organization's connection and domain routes answer `403 plan_feature_unavailable`. */
5670
+ plan_includes_sso: boolean;
5671
+ /** @description Whether the Account's plan includes directory sync. Without it the organization's directory routes answer `403 plan_feature_unavailable`. */
5672
+ plan_includes_scim: boolean;
5663
5673
  };
5664
5674
  RoleResponseDto: {
5665
5675
  id: string;
@@ -5987,6 +5997,8 @@ interface components {
5987
5997
  default_role?: components["schemas"]["OrganizationSsoRoleSummaryDto"] | null;
5988
5998
  /** Format: date-time */
5989
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;
5990
6002
  };
5991
6003
  BindOrganizationSsoConnectionDto: {
5992
6004
  /** @description An end-user SSO connection already bound to the organization's Environment. */
@@ -6214,6 +6226,8 @@ interface components {
6214
6226
  connection: components["schemas"]["SsoConnectionResponseDto"];
6215
6227
  /** @description The membership role a sign-in joins with. `null` until chosen; activation requires one. */
6216
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;
6217
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. */
6218
6232
  owned_by_organization: boolean;
6219
6233
  service_provider: components["schemas"]["ServiceProviderDetailsResponseDto"];
@@ -6589,6 +6603,8 @@ interface components {
6589
6603
  member_count: number;
6590
6604
  /** Format: date-time */
6591
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;
6592
6608
  };
6593
6609
  MapOrganizationScimGroupDto: {
6594
6610
  /** @description The role to grant members of this group. Must be one the application owner has made available to this organization. */
@@ -6963,7 +6979,7 @@ interface components {
6963
6979
  * @description Narrow to rows for one Environment. Implies the Environment's parent Application. Omit to include all Environments.
6964
6980
  */
6965
6981
  environment_id?: string;
6966
- /** @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). */
6967
6983
  q?: string;
6968
6984
  /**
6969
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`.
@@ -7105,6 +7121,8 @@ interface components {
7105
7121
  effective: components["schemas"]["EffectiveBrandingDto"];
7106
7122
  /** @description Whether the Account's plan removes the attribution mark. When false, the mark stays whatever the customer sets. */
7107
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;
7108
7126
  };
7109
7127
  UpdateEnvironmentBrandingDto: {
7110
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. */
@@ -7610,6 +7628,8 @@ interface components {
7610
7628
  name: string;
7611
7629
  /** Format: date-time */
7612
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;
7613
7633
  };
7614
7634
  CreatePublishableKeyDto: {
7615
7635
  /**
@@ -7629,6 +7649,8 @@ interface components {
7629
7649
  model: "flat" | "hierarchy";
7630
7650
  /** @description Whether the organizations container is on. Independent of `model`: flat and hierarchy both run inside it. */
7631
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;
7632
7654
  };
7633
7655
  SetAccessModelDto: {
7634
7656
  /** @enum {string} */
@@ -8315,6 +8337,8 @@ interface components {
8315
8337
  expires_at?: string | null;
8316
8338
  /** Format: date-time */
8317
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;
8318
8342
  };
8319
8343
  CreateApiKeyDto: {
8320
8344
  /** @description API key name */
@@ -8356,6 +8380,8 @@ interface components {
8356
8380
  expires_at?: string | null;
8357
8381
  /** Format: date-time */
8358
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;
8359
8385
  };
8360
8386
  UpdateApiKeyDto: {
8361
8387
  /** @description Whether the key is active. Set `false` to deactivate (the key stops authenticating immediately, reversibly); set `true` to reactivate. */
@@ -8385,6 +8411,21 @@ interface components {
8385
8411
  [key: string]: unknown;
8386
8412
  };
8387
8413
  };
8414
+ SubscriptionDiscountDto: {
8415
+ /** @description The promotion code the discount came from. */
8416
+ code: string | null;
8417
+ /** @description Amount off each invoice, in the currency's minor unit. */
8418
+ amount_off: number | null;
8419
+ /** @description Percentage off each invoice. */
8420
+ percent_off: number | null;
8421
+ /** @description Currency of `amount_off`. */
8422
+ currency: string | null;
8423
+ /**
8424
+ * Format: date-time
8425
+ * @description When the discount ends; null if it does not end.
8426
+ */
8427
+ ends_at: string | null;
8428
+ };
8388
8429
  SubscriptionResponseDto: {
8389
8430
  id: string;
8390
8431
  account_id: string;
@@ -8392,7 +8433,7 @@ interface components {
8392
8433
  * @description Current subscription plan code.
8393
8434
  * @enum {string}
8394
8435
  */
8395
- plan_code: "free" | "pro" | "enterprise";
8436
+ plan_code: "free" | "starter" | "pro" | "enterprise";
8396
8437
  /**
8397
8438
  * @description Lifecycle state. `active` is the happy path; `past_due` and `cancelled` should surface a banner / disable upgrade affordances in the dashboard.
8398
8439
  * @enum {string}
@@ -8415,6 +8456,15 @@ interface components {
8415
8456
  current_period_end?: string | null;
8416
8457
  /** @description True when the subscription is scheduled to cancel at `current_period_end`. Stripe webhook flips `status` to `cancelled` when the period closes. */
8417
8458
  cancel_at_period_end: boolean;
8459
+ /**
8460
+ * @description The lower paid plan the subscription moves to at `current_period_end`, or null. Undone with `DELETE /billing/scheduled-downgrade`.
8461
+ * @enum {string|null}
8462
+ */
8463
+ scheduled_plan_code?: "starter" | "pro" | null;
8464
+ /** @description The promotion code the subscription was started with, kept after its discount ends. */
8465
+ promotion_code?: string | null;
8466
+ /** @description The discount the subscription carries now, read from Stripe. */
8467
+ discount?: components["schemas"]["SubscriptionDiscountDto"] | null;
8418
8468
  /**
8419
8469
  * Format: date-time
8420
8470
  * @description When the current trial started (UTC ISO).
@@ -8427,9 +8477,14 @@ interface components {
8427
8477
  trial_ends_at?: string | null;
8428
8478
  /**
8429
8479
  * Format: date-time
8430
- * @description Timestamp of the most recent payment attempt (success or failure), synced from Stripe webhooks. Drives the dunning banner's grace-period countdown.
8480
+ * @description Timestamp of the most recent payment attempt (success or failure), synced from Stripe webhooks.
8431
8481
  */
8432
8482
  last_payment_attempt_at?: string | null;
8483
+ /**
8484
+ * Format: date-time
8485
+ * @description When paid features are revoked if the failed payment is not settled (UTC ISO), counted from when the subscription went past due. Null unless it is past due.
8486
+ */
8487
+ grace_ends_at?: string | null;
8433
8488
  /**
8434
8489
  * @description Count of consecutive failed payment attempts on the current open invoice. Resets to 0 on a successful charge. Renders the `N of 4 attempts` copy in the dunning banner.
8435
8490
  * @example 0
@@ -8443,16 +8498,18 @@ interface components {
8443
8498
  interval?: string | null;
8444
8499
  };
8445
8500
  DimensionUsageDto: {
8446
- /** @description Plan-defined ceiling for this dimension. */
8447
- limit: number;
8501
+ /** @description Plan-defined ceiling for this dimension. Null for no limit. */
8502
+ limit: number | null;
8448
8503
  /** @description Current usage count toward the limit. */
8449
8504
  used: number;
8450
- /** @description Used / limit, capped at 1.0. 0 when limit is 0 (feature disabled). */
8505
+ /** @description Used / limit, capped at 1.0. 0 when limit is 0 (feature disabled) or null (no limit). */
8451
8506
  percent: number;
8452
8507
  };
8453
8508
  UsageDimensionsDto: {
8454
8509
  /** @description Accepted dashboard seats + pending invites vs limit. */
8455
8510
  dashboard_seats?: components["schemas"]["DimensionUsageDto"];
8511
+ /** @description Live organizations across the Account's Environments vs limit. */
8512
+ organizations?: components["schemas"]["DimensionUsageDto"];
8456
8513
  /** @description Distinct identities that completed an authentication during the current UTC calendar month, counted from `mau_monthly_active_identities` — written on the authentication path itself, so the figure is current rather than waiting on a nightly job. */
8457
8514
  mau?: components["schemas"]["DimensionUsageDto"];
8458
8515
  /** @description API keys and machine clients that successfully authenticated during the current UTC calendar month. */
@@ -8467,8 +8524,6 @@ interface components {
8467
8524
  scim?: boolean;
8468
8525
  /** @description External audit-log destinations. */
8469
8526
  audit_destinations?: boolean;
8470
- /** @description Tenant organizations (the organizations container). */
8471
- organizations?: boolean;
8472
8527
  };
8473
8528
  UsageSummaryResponseDto: {
8474
8529
  account_id: string;
@@ -8476,7 +8531,7 @@ interface components {
8476
8531
  * @description The Account's current subscription plan. Drives the limit values returned per dimension.
8477
8532
  * @enum {string}
8478
8533
  */
8479
- current_plan: "free" | "pro" | "enterprise";
8534
+ current_plan: "free" | "starter" | "pro" | "enterprise";
8480
8535
  dimensions: components["schemas"]["UsageDimensionsDto"];
8481
8536
  features: components["schemas"]["PlanFeaturesDto"];
8482
8537
  };
@@ -8489,14 +8544,20 @@ interface components {
8489
8544
  /** @description ISO 4217 currency code (e.g. `usd`). */
8490
8545
  currency: string;
8491
8546
  };
8492
- PlanPricesResponseDto: {
8493
- /** @description Pro billed monthly. Null when no active price carries the `pro_monthly` lookup key. */
8547
+ PlanCyclePricesDto: {
8548
+ /** @description The plan billed monthly. Null when no active price carries the `<plan_code>_monthly` lookup key. */
8494
8549
  monthly?: components["schemas"]["PlanPriceDto"] | null;
8495
- /** @description Pro billed annually. Null when no active price carries the `pro_annual` lookup key. */
8550
+ /** @description The plan billed annually. Null when no active price carries the `<plan_code>_annual` lookup key. */
8496
8551
  annual?: components["schemas"]["PlanPriceDto"] | null;
8497
8552
  /** @description What annual saves against twelve monthly payments, rounded to a whole percent — derived from the two prices above rather than stated, so it cannot disagree with them. Null when either price is missing. */
8498
8553
  annual_savings_percent?: number | null;
8499
8554
  };
8555
+ PlanPricesResponseDto: {
8556
+ /** @description Starter's prices. */
8557
+ starter: components["schemas"]["PlanCyclePricesDto"];
8558
+ /** @description Pro's prices. */
8559
+ pro: components["schemas"]["PlanCyclePricesDto"];
8560
+ };
8500
8561
  InvoiceResponseDto: {
8501
8562
  /** @description Stripe invoice id (`in_…`). */
8502
8563
  id: string;
@@ -11904,6 +11965,8 @@ interface operations {
11904
11965
  parameters: {
11905
11966
  query?: never;
11906
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;
11907
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`). */
11908
11971
  "X-Canopy-Environment"?: string;
11909
11972
  };
@@ -11929,7 +11992,7 @@ interface operations {
11929
11992
  };
11930
11993
  };
11931
11994
  };
11932
- /** @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`) */
11933
11996
  400: {
11934
11997
  headers: {
11935
11998
  [name: string]: unknown;
@@ -11940,7 +12003,7 @@ interface operations {
11940
12003
  * "error": {
11941
12004
  * "statusCode": 400,
11942
12005
  * "code": null,
11943
- * "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`)",
11944
12007
  * "timestamp": "2026-04-20T12:00:00.000Z",
11945
12008
  * "path": "/api/v1/identities/{id}",
11946
12009
  * "method": "PATCH"
@@ -12013,6 +12076,27 @@ interface operations {
12013
12076
  "application/json": components["schemas"]["ErrorResponseDto"];
12014
12077
  };
12015
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
+ };
12016
12100
  };
12017
12101
  };
12018
12102
  ApiIdentitiesController_getIdentityDetail: {
@@ -16151,7 +16235,7 @@ interface operations {
16151
16235
  };
16152
16236
  };
16153
16237
  };
16154
- /** @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`) */
16155
16239
  400: {
16156
16240
  headers: {
16157
16241
  [name: string]: unknown;
@@ -16162,7 +16246,7 @@ interface operations {
16162
16246
  * "error": {
16163
16247
  * "statusCode": 400,
16164
16248
  * "code": null,
16165
- * "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`)",
16166
16250
  * "timestamp": "2026-04-20T12:00:00.000Z",
16167
16251
  * "path": "/api/v1/organizations/{id}/me",
16168
16252
  * "method": "GET"
@@ -16648,7 +16732,7 @@ interface operations {
16648
16732
  };
16649
16733
  };
16650
16734
  };
16651
- /** @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`) */
16652
16736
  400: {
16653
16737
  headers: {
16654
16738
  [name: string]: unknown;
@@ -16659,7 +16743,7 @@ interface operations {
16659
16743
  * "error": {
16660
16744
  * "statusCode": 400,
16661
16745
  * "code": null,
16662
- * "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`)",
16663
16747
  * "timestamp": "2026-04-20T12:00:00.000Z",
16664
16748
  * "path": "/api/v1/organizations/{id}/me",
16665
16749
  * "method": "GET"
@@ -16760,7 +16844,7 @@ interface operations {
16760
16844
  };
16761
16845
  };
16762
16846
  };
16763
- /** @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`) */
16764
16848
  400: {
16765
16849
  headers: {
16766
16850
  [name: string]: unknown;
@@ -16771,7 +16855,7 @@ interface operations {
16771
16855
  * "error": {
16772
16856
  * "statusCode": 400,
16773
16857
  * "code": null,
16774
- * "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`)",
16775
16859
  * "timestamp": "2026-04-20T12:00:00.000Z",
16776
16860
  * "path": "/api/v1/organizations/{id}/me",
16777
16861
  * "method": "GET"
@@ -17110,6 +17194,8 @@ interface operations {
17110
17194
  parameters: {
17111
17195
  query?: never;
17112
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;
17113
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`). */
17114
17200
  "X-Canopy-Environment"?: string;
17115
17201
  };
@@ -17128,7 +17214,7 @@ interface operations {
17128
17214
  };
17129
17215
  content?: never;
17130
17216
  };
17131
- /** @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`) */
17132
17218
  400: {
17133
17219
  headers: {
17134
17220
  [name: string]: unknown;
@@ -17139,7 +17225,7 @@ interface operations {
17139
17225
  * "error": {
17140
17226
  * "statusCode": 400,
17141
17227
  * "code": null,
17142
- * "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`)",
17143
17229
  * "timestamp": "2026-04-20T12:00:00.000Z",
17144
17230
  * "path": "/api/v1/organizations/{id}/me",
17145
17231
  * "method": "GET"
@@ -17212,7 +17298,7 @@ interface operations {
17212
17298
  "application/json": components["schemas"]["ErrorResponseDto"];
17213
17299
  };
17214
17300
  };
17215
- /** @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`) */
17216
17302
  409: {
17217
17303
  headers: {
17218
17304
  [name: string]: unknown;
@@ -17223,7 +17309,7 @@ interface operations {
17223
17309
  * "error": {
17224
17310
  * "statusCode": 409,
17225
17311
  * "code": null,
17226
- * "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`)",
17227
17313
  * "timestamp": "2026-04-20T12:00:00.000Z",
17228
17314
  * "path": "/api/v1/organizations/{id}/assignments/{assignmentId}",
17229
17315
  * "method": "DELETE"
@@ -19343,7 +19429,7 @@ interface operations {
19343
19429
  "application/json": components["schemas"]["ErrorResponseDto"];
19344
19430
  };
19345
19431
  };
19346
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
19432
+ /** @description The caller lacks the permission this route checks, or the request turns `require_sso` on and the Account's plan does not include SSO (`plan_feature_unavailable`) */
19347
19433
  403: {
19348
19434
  headers: {
19349
19435
  [name: string]: unknown;
@@ -19354,10 +19440,10 @@ interface operations {
19354
19440
  * "error": {
19355
19441
  * "statusCode": 403,
19356
19442
  * "code": null,
19357
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
19443
+ * "message": "The caller lacks the permission this route checks, or the request turns `require_sso` on and the Account's plan does not include SSO (`plan_feature_unavailable`)",
19358
19444
  * "timestamp": "2026-04-20T12:00:00.000Z",
19359
- * "path": "/api/v1/organizations",
19360
- * "method": "GET"
19445
+ * "path": "/api/v1/organizations/{id}/policy",
19446
+ * "method": "PATCH"
19361
19447
  * }
19362
19448
  * }
19363
19449
  */
@@ -19600,7 +19686,7 @@ interface operations {
19600
19686
  "application/json": components["schemas"]["ErrorResponseDto"];
19601
19687
  };
19602
19688
  };
19603
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
19689
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
19604
19690
  403: {
19605
19691
  headers: {
19606
19692
  [name: string]: unknown;
@@ -19611,10 +19697,10 @@ interface operations {
19611
19697
  * "error": {
19612
19698
  * "statusCode": 403,
19613
19699
  * "code": null,
19614
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
19700
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
19615
19701
  * "timestamp": "2026-04-20T12:00:00.000Z",
19616
- * "path": "/api/v1/organizations",
19617
- * "method": "GET"
19702
+ * "path": "/api/v1/organizations/{id}/policy/sso-recovery-codes",
19703
+ * "method": "POST"
19618
19704
  * }
19619
19705
  * }
19620
19706
  */
@@ -19711,7 +19797,7 @@ interface operations {
19711
19797
  "application/json": components["schemas"]["ErrorResponseDto"];
19712
19798
  };
19713
19799
  };
19714
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
19800
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
19715
19801
  403: {
19716
19802
  headers: {
19717
19803
  [name: string]: unknown;
@@ -19722,10 +19808,10 @@ interface operations {
19722
19808
  * "error": {
19723
19809
  * "statusCode": 403,
19724
19810
  * "code": null,
19725
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
19811
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
19726
19812
  * "timestamp": "2026-04-20T12:00:00.000Z",
19727
- * "path": "/api/v1/organizations",
19728
- * "method": "GET"
19813
+ * "path": "/api/v1/organizations/{id}/sso-connection/test",
19814
+ * "method": "POST"
19729
19815
  * }
19730
19816
  * }
19731
19817
  */
@@ -19823,7 +19909,7 @@ interface operations {
19823
19909
  "application/json": components["schemas"]["ErrorResponseDto"];
19824
19910
  };
19825
19911
  };
19826
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
19912
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
19827
19913
  403: {
19828
19914
  headers: {
19829
19915
  [name: string]: unknown;
@@ -19834,9 +19920,9 @@ interface operations {
19834
19920
  * "error": {
19835
19921
  * "statusCode": 403,
19836
19922
  * "code": null,
19837
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
19923
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
19838
19924
  * "timestamp": "2026-04-20T12:00:00.000Z",
19839
- * "path": "/api/v1/organizations",
19925
+ * "path": "/api/v1/organizations/{id}/sso-connection/test/{testId}",
19840
19926
  * "method": "GET"
19841
19927
  * }
19842
19928
  * }
@@ -19934,7 +20020,7 @@ interface operations {
19934
20020
  "application/json": components["schemas"]["ErrorResponseDto"];
19935
20021
  };
19936
20022
  };
19937
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
20023
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
19938
20024
  403: {
19939
20025
  headers: {
19940
20026
  [name: string]: unknown;
@@ -19945,9 +20031,9 @@ interface operations {
19945
20031
  * "error": {
19946
20032
  * "statusCode": 403,
19947
20033
  * "code": null,
19948
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
20034
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
19949
20035
  * "timestamp": "2026-04-20T12:00:00.000Z",
19950
- * "path": "/api/v1/organizations",
20036
+ * "path": "/api/v1/organizations/{id}/domains",
19951
20037
  * "method": "GET"
19952
20038
  * }
19953
20039
  * }
@@ -20049,7 +20135,7 @@ interface operations {
20049
20135
  "application/json": components["schemas"]["ErrorResponseDto"];
20050
20136
  };
20051
20137
  };
20052
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
20138
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
20053
20139
  403: {
20054
20140
  headers: {
20055
20141
  [name: string]: unknown;
@@ -20060,10 +20146,10 @@ interface operations {
20060
20146
  * "error": {
20061
20147
  * "statusCode": 403,
20062
20148
  * "code": null,
20063
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
20149
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
20064
20150
  * "timestamp": "2026-04-20T12:00:00.000Z",
20065
- * "path": "/api/v1/organizations",
20066
- * "method": "GET"
20151
+ * "path": "/api/v1/organizations/{id}/domains",
20152
+ * "method": "POST"
20067
20153
  * }
20068
20154
  * }
20069
20155
  */
@@ -20182,7 +20268,7 @@ interface operations {
20182
20268
  "application/json": components["schemas"]["ErrorResponseDto"];
20183
20269
  };
20184
20270
  };
20185
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
20271
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
20186
20272
  403: {
20187
20273
  headers: {
20188
20274
  [name: string]: unknown;
@@ -20193,10 +20279,10 @@ interface operations {
20193
20279
  * "error": {
20194
20280
  * "statusCode": 403,
20195
20281
  * "code": null,
20196
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
20282
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
20197
20283
  * "timestamp": "2026-04-20T12:00:00.000Z",
20198
- * "path": "/api/v1/organizations",
20199
- * "method": "GET"
20284
+ * "path": "/api/v1/organizations/{id}/domains/{domain}/verify",
20285
+ * "method": "POST"
20200
20286
  * }
20201
20287
  * }
20202
20288
  */
@@ -20332,7 +20418,7 @@ interface operations {
20332
20418
  "application/json": components["schemas"]["ErrorResponseDto"];
20333
20419
  };
20334
20420
  };
20335
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
20421
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
20336
20422
  403: {
20337
20423
  headers: {
20338
20424
  [name: string]: unknown;
@@ -20343,10 +20429,10 @@ interface operations {
20343
20429
  * "error": {
20344
20430
  * "statusCode": 403,
20345
20431
  * "code": null,
20346
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
20432
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
20347
20433
  * "timestamp": "2026-04-20T12:00:00.000Z",
20348
- * "path": "/api/v1/organizations",
20349
- * "method": "GET"
20434
+ * "path": "/api/v1/organizations/{id}/domains/{domain}",
20435
+ * "method": "DELETE"
20350
20436
  * }
20351
20437
  * }
20352
20438
  */
@@ -20443,7 +20529,7 @@ interface operations {
20443
20529
  "application/json": components["schemas"]["ErrorResponseDto"];
20444
20530
  };
20445
20531
  };
20446
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
20532
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
20447
20533
  403: {
20448
20534
  headers: {
20449
20535
  [name: string]: unknown;
@@ -20454,9 +20540,9 @@ interface operations {
20454
20540
  * "error": {
20455
20541
  * "statusCode": 403,
20456
20542
  * "code": null,
20457
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
20543
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
20458
20544
  * "timestamp": "2026-04-20T12:00:00.000Z",
20459
- * "path": "/api/v1/organizations",
20545
+ * "path": "/api/v1/organizations/{id}/sso-connections",
20460
20546
  * "method": "GET"
20461
20547
  * }
20462
20548
  * }
@@ -20558,7 +20644,7 @@ interface operations {
20558
20644
  "application/json": components["schemas"]["ErrorResponseDto"];
20559
20645
  };
20560
20646
  };
20561
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
20647
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
20562
20648
  403: {
20563
20649
  headers: {
20564
20650
  [name: string]: unknown;
@@ -20569,10 +20655,10 @@ interface operations {
20569
20655
  * "error": {
20570
20656
  * "statusCode": 403,
20571
20657
  * "code": null,
20572
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
20658
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
20573
20659
  * "timestamp": "2026-04-20T12:00:00.000Z",
20574
- * "path": "/api/v1/organizations",
20575
- * "method": "GET"
20660
+ * "path": "/api/v1/organizations/{id}/sso-connections",
20661
+ * "method": "POST"
20576
20662
  * }
20577
20663
  * }
20578
20664
  */
@@ -20687,7 +20773,7 @@ interface operations {
20687
20773
  "application/json": components["schemas"]["ErrorResponseDto"];
20688
20774
  };
20689
20775
  };
20690
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
20776
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
20691
20777
  403: {
20692
20778
  headers: {
20693
20779
  [name: string]: unknown;
@@ -20698,10 +20784,10 @@ interface operations {
20698
20784
  * "error": {
20699
20785
  * "statusCode": 403,
20700
20786
  * "code": null,
20701
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
20787
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
20702
20788
  * "timestamp": "2026-04-20T12:00:00.000Z",
20703
- * "path": "/api/v1/organizations",
20704
- * "method": "GET"
20789
+ * "path": "/api/v1/organizations/{id}/sso-connections/{connectionId}",
20790
+ * "method": "DELETE"
20705
20791
  * }
20706
20792
  * }
20707
20793
  */
@@ -21956,7 +22042,7 @@ interface operations {
21956
22042
  "application/json": components["schemas"]["ErrorResponseDto"];
21957
22043
  };
21958
22044
  };
21959
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
22045
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
21960
22046
  403: {
21961
22047
  headers: {
21962
22048
  [name: string]: unknown;
@@ -21967,7 +22053,7 @@ interface operations {
21967
22053
  * "error": {
21968
22054
  * "statusCode": 403,
21969
22055
  * "code": null,
21970
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
22056
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
21971
22057
  * "timestamp": "2026-04-20T12:00:00.000Z",
21972
22058
  * "path": "/api/v1/organizations/{id}/sso-connection",
21973
22059
  * "method": "GET"
@@ -22092,7 +22178,7 @@ interface operations {
22092
22178
  "application/json": components["schemas"]["ErrorResponseDto"];
22093
22179
  };
22094
22180
  };
22095
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
22181
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
22096
22182
  403: {
22097
22183
  headers: {
22098
22184
  [name: string]: unknown;
@@ -22103,7 +22189,7 @@ interface operations {
22103
22189
  * "error": {
22104
22190
  * "statusCode": 403,
22105
22191
  * "code": null,
22106
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
22192
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
22107
22193
  * "timestamp": "2026-04-20T12:00:00.000Z",
22108
22194
  * "path": "/api/v1/organizations/{id}/sso-connection",
22109
22195
  * "method": "GET"
@@ -22220,7 +22306,7 @@ interface operations {
22220
22306
  "application/json": components["schemas"]["ErrorResponseDto"];
22221
22307
  };
22222
22308
  };
22223
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
22309
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
22224
22310
  403: {
22225
22311
  headers: {
22226
22312
  [name: string]: unknown;
@@ -22231,7 +22317,7 @@ interface operations {
22231
22317
  * "error": {
22232
22318
  * "statusCode": 403,
22233
22319
  * "code": null,
22234
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
22320
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
22235
22321
  * "timestamp": "2026-04-20T12:00:00.000Z",
22236
22322
  * "path": "/api/v1/organizations/{id}/sso-connection",
22237
22323
  * "method": "GET"
@@ -22289,6 +22375,8 @@ interface operations {
22289
22375
  parameters: {
22290
22376
  query?: never;
22291
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;
22292
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`). */
22293
22381
  "X-Canopy-Environment"?: string;
22294
22382
  };
@@ -22314,7 +22402,7 @@ interface operations {
22314
22402
  };
22315
22403
  };
22316
22404
  };
22317
- /** @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 */
22318
22406
  400: {
22319
22407
  headers: {
22320
22408
  [name: string]: unknown;
@@ -22325,7 +22413,7 @@ interface operations {
22325
22413
  * "error": {
22326
22414
  * "statusCode": 400,
22327
22415
  * "code": null,
22328
- * "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",
22329
22417
  * "timestamp": "2026-04-20T12:00:00.000Z",
22330
22418
  * "path": "/api/v1/organizations/{id}/sso-connection",
22331
22419
  * "method": "PATCH"
@@ -22356,7 +22444,7 @@ interface operations {
22356
22444
  "application/json": components["schemas"]["ErrorResponseDto"];
22357
22445
  };
22358
22446
  };
22359
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
22447
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
22360
22448
  403: {
22361
22449
  headers: {
22362
22450
  [name: string]: unknown;
@@ -22367,7 +22455,7 @@ interface operations {
22367
22455
  * "error": {
22368
22456
  * "statusCode": 403,
22369
22457
  * "code": null,
22370
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
22458
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
22371
22459
  * "timestamp": "2026-04-20T12:00:00.000Z",
22372
22460
  * "path": "/api/v1/organizations/{id}/sso-connection",
22373
22461
  * "method": "GET"
@@ -22398,7 +22486,7 @@ interface operations {
22398
22486
  "application/json": components["schemas"]["ErrorResponseDto"];
22399
22487
  };
22400
22488
  };
22401
- /** @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` */
22402
22490
  409: {
22403
22491
  headers: {
22404
22492
  [name: string]: unknown;
@@ -22409,7 +22497,7 @@ interface operations {
22409
22497
  * "error": {
22410
22498
  * "statusCode": 409,
22411
22499
  * "code": null,
22412
- * "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`",
22413
22501
  * "timestamp": "2026-04-20T12:00:00.000Z",
22414
22502
  * "path": "/api/v1/organizations/{id}/sso-connection",
22415
22503
  * "method": "PATCH"
@@ -22425,6 +22513,8 @@ interface operations {
22425
22513
  parameters: {
22426
22514
  query?: never;
22427
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;
22428
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`). */
22429
22519
  "X-Canopy-Environment"?: string;
22430
22520
  };
@@ -22446,7 +22536,7 @@ interface operations {
22446
22536
  };
22447
22537
  };
22448
22538
  };
22449
- /** @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`) */
22450
22540
  400: {
22451
22541
  headers: {
22452
22542
  [name: string]: unknown;
@@ -22457,7 +22547,7 @@ interface operations {
22457
22547
  * "error": {
22458
22548
  * "statusCode": 400,
22459
22549
  * "code": null,
22460
- * "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`)",
22461
22551
  * "timestamp": "2026-04-20T12:00:00.000Z",
22462
22552
  * "path": "/api/v1/organizations/{id}/sso-connection/activate",
22463
22553
  * "method": "POST"
@@ -22488,7 +22578,7 @@ interface operations {
22488
22578
  "application/json": components["schemas"]["ErrorResponseDto"];
22489
22579
  };
22490
22580
  };
22491
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
22581
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
22492
22582
  403: {
22493
22583
  headers: {
22494
22584
  [name: string]: unknown;
@@ -22499,7 +22589,7 @@ interface operations {
22499
22589
  * "error": {
22500
22590
  * "statusCode": 403,
22501
22591
  * "code": null,
22502
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
22592
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
22503
22593
  * "timestamp": "2026-04-20T12:00:00.000Z",
22504
22594
  * "path": "/api/v1/organizations/{id}/sso-connection",
22505
22595
  * "method": "GET"
@@ -22530,7 +22620,7 @@ interface operations {
22530
22620
  "application/json": components["schemas"]["ErrorResponseDto"];
22531
22621
  };
22532
22622
  };
22533
- /** @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`) */
22534
22624
  409: {
22535
22625
  headers: {
22536
22626
  [name: string]: unknown;
@@ -22541,7 +22631,7 @@ interface operations {
22541
22631
  * "error": {
22542
22632
  * "statusCode": 409,
22543
22633
  * "code": null,
22544
- * "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`)",
22545
22635
  * "timestamp": "2026-04-20T12:00:00.000Z",
22546
22636
  * "path": "/api/v1/organizations/{id}/sso-connection/activate",
22547
22637
  * "method": "POST"
@@ -22557,6 +22647,8 @@ interface operations {
22557
22647
  parameters: {
22558
22648
  query?: never;
22559
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;
22560
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`). */
22561
22653
  "X-Canopy-Environment"?: string;
22562
22654
  };
@@ -22578,7 +22670,7 @@ interface operations {
22578
22670
  };
22579
22671
  };
22580
22672
  };
22581
- /** @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`) */
22582
22674
  400: {
22583
22675
  headers: {
22584
22676
  [name: string]: unknown;
@@ -22589,7 +22681,7 @@ interface operations {
22589
22681
  * "error": {
22590
22682
  * "statusCode": 400,
22591
22683
  * "code": null,
22592
- * "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`)",
22593
22685
  * "timestamp": "2026-04-20T12:00:00.000Z",
22594
22686
  * "path": "/api/v1/organizations/{id}/sso-connection/disable",
22595
22687
  * "method": "POST"
@@ -22620,7 +22712,7 @@ interface operations {
22620
22712
  "application/json": components["schemas"]["ErrorResponseDto"];
22621
22713
  };
22622
22714
  };
22623
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
22715
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
22624
22716
  403: {
22625
22717
  headers: {
22626
22718
  [name: string]: unknown;
@@ -22631,7 +22723,7 @@ interface operations {
22631
22723
  * "error": {
22632
22724
  * "statusCode": 403,
22633
22725
  * "code": null,
22634
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
22726
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
22635
22727
  * "timestamp": "2026-04-20T12:00:00.000Z",
22636
22728
  * "path": "/api/v1/organizations/{id}/sso-connection",
22637
22729
  * "method": "GET"
@@ -22662,7 +22754,7 @@ interface operations {
22662
22754
  "application/json": components["schemas"]["ErrorResponseDto"];
22663
22755
  };
22664
22756
  };
22665
- /** @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`) */
22666
22758
  409: {
22667
22759
  headers: {
22668
22760
  [name: string]: unknown;
@@ -22673,7 +22765,7 @@ interface operations {
22673
22765
  * "error": {
22674
22766
  * "statusCode": 409,
22675
22767
  * "code": null,
22676
- * "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`)",
22677
22769
  * "timestamp": "2026-04-20T12:00:00.000Z",
22678
22770
  * "path": "/api/v1/organizations/{id}/sso-connection/disable",
22679
22771
  * "method": "POST"
@@ -22689,6 +22781,8 @@ interface operations {
22689
22781
  parameters: {
22690
22782
  query?: never;
22691
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;
22692
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`). */
22693
22787
  "X-Canopy-Environment"?: string;
22694
22788
  };
@@ -22714,7 +22808,7 @@ interface operations {
22714
22808
  };
22715
22809
  };
22716
22810
  };
22717
- /** @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`) */
22718
22812
  400: {
22719
22813
  headers: {
22720
22814
  [name: string]: unknown;
@@ -22725,7 +22819,7 @@ interface operations {
22725
22819
  * "error": {
22726
22820
  * "statusCode": 400,
22727
22821
  * "code": null,
22728
- * "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`)",
22729
22823
  * "timestamp": "2026-04-20T12:00:00.000Z",
22730
22824
  * "path": "/api/v1/organizations/{id}/sso-connection/import-metadata",
22731
22825
  * "method": "POST"
@@ -22756,7 +22850,7 @@ interface operations {
22756
22850
  "application/json": components["schemas"]["ErrorResponseDto"];
22757
22851
  };
22758
22852
  };
22759
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
22853
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
22760
22854
  403: {
22761
22855
  headers: {
22762
22856
  [name: string]: unknown;
@@ -22767,7 +22861,7 @@ interface operations {
22767
22861
  * "error": {
22768
22862
  * "statusCode": 403,
22769
22863
  * "code": null,
22770
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
22864
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
22771
22865
  * "timestamp": "2026-04-20T12:00:00.000Z",
22772
22866
  * "path": "/api/v1/organizations/{id}/sso-connection",
22773
22867
  * "method": "GET"
@@ -22798,7 +22892,7 @@ interface operations {
22798
22892
  "application/json": components["schemas"]["ErrorResponseDto"];
22799
22893
  };
22800
22894
  };
22801
- /** @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`) */
22802
22896
  409: {
22803
22897
  headers: {
22804
22898
  [name: string]: unknown;
@@ -22809,7 +22903,7 @@ interface operations {
22809
22903
  * "error": {
22810
22904
  * "statusCode": 409,
22811
22905
  * "code": null,
22812
- * "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`)",
22813
22907
  * "timestamp": "2026-04-20T12:00:00.000Z",
22814
22908
  * "path": "/api/v1/organizations/{id}/sso-connection/import-metadata",
22815
22909
  * "method": "POST"
@@ -22888,7 +22982,7 @@ interface operations {
22888
22982
  "application/json": components["schemas"]["ErrorResponseDto"];
22889
22983
  };
22890
22984
  };
22891
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
22985
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
22892
22986
  403: {
22893
22987
  headers: {
22894
22988
  [name: string]: unknown;
@@ -22899,7 +22993,7 @@ interface operations {
22899
22993
  * "error": {
22900
22994
  * "statusCode": 403,
22901
22995
  * "code": null,
22902
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
22996
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
22903
22997
  * "timestamp": "2026-04-20T12:00:00.000Z",
22904
22998
  * "path": "/api/v1/organizations/{id}/sso-connection",
22905
22999
  * "method": "GET"
@@ -23020,7 +23114,7 @@ interface operations {
23020
23114
  "application/json": components["schemas"]["ErrorResponseDto"];
23021
23115
  };
23022
23116
  };
23023
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
23117
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
23024
23118
  403: {
23025
23119
  headers: {
23026
23120
  [name: string]: unknown;
@@ -23031,7 +23125,7 @@ interface operations {
23031
23125
  * "error": {
23032
23126
  * "statusCode": 403,
23033
23127
  * "code": null,
23034
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
23128
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
23035
23129
  * "timestamp": "2026-04-20T12:00:00.000Z",
23036
23130
  * "path": "/api/v1/organizations/{id}/sso-connection",
23037
23131
  * "method": "GET"
@@ -23131,7 +23225,7 @@ interface operations {
23131
23225
  "application/json": components["schemas"]["ErrorResponseDto"];
23132
23226
  };
23133
23227
  };
23134
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
23228
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`) */
23135
23229
  403: {
23136
23230
  headers: {
23137
23231
  [name: string]: unknown;
@@ -23142,7 +23236,7 @@ interface operations {
23142
23236
  * "error": {
23143
23237
  * "statusCode": 403,
23144
23238
  * "code": null,
23145
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
23239
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SSO (`plan_feature_unavailable`)",
23146
23240
  * "timestamp": "2026-04-20T12:00:00.000Z",
23147
23241
  * "path": "/api/v1/organizations/{id}/sso-connection",
23148
23242
  * "method": "GET"
@@ -23263,7 +23357,7 @@ interface operations {
23263
23357
  "application/json": components["schemas"]["ErrorResponseDto"];
23264
23358
  };
23265
23359
  };
23266
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
23360
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
23267
23361
  403: {
23268
23362
  headers: {
23269
23363
  [name: string]: unknown;
@@ -23274,7 +23368,7 @@ interface operations {
23274
23368
  * "error": {
23275
23369
  * "statusCode": 403,
23276
23370
  * "code": null,
23277
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
23371
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
23278
23372
  * "timestamp": "2026-04-20T12:00:00.000Z",
23279
23373
  * "path": "/api/v1/organizations/{id}/directory",
23280
23374
  * "method": "GET"
@@ -23374,7 +23468,7 @@ interface operations {
23374
23468
  "application/json": components["schemas"]["ErrorResponseDto"];
23375
23469
  };
23376
23470
  };
23377
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
23471
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
23378
23472
  403: {
23379
23473
  headers: {
23380
23474
  [name: string]: unknown;
@@ -23385,7 +23479,7 @@ interface operations {
23385
23479
  * "error": {
23386
23480
  * "statusCode": 403,
23387
23481
  * "code": null,
23388
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
23482
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
23389
23483
  * "timestamp": "2026-04-20T12:00:00.000Z",
23390
23484
  * "path": "/api/v1/organizations/{id}/directory",
23391
23485
  * "method": "GET"
@@ -23502,7 +23596,7 @@ interface operations {
23502
23596
  "application/json": components["schemas"]["ErrorResponseDto"];
23503
23597
  };
23504
23598
  };
23505
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
23599
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
23506
23600
  403: {
23507
23601
  headers: {
23508
23602
  [name: string]: unknown;
@@ -23513,7 +23607,7 @@ interface operations {
23513
23607
  * "error": {
23514
23608
  * "statusCode": 403,
23515
23609
  * "code": null,
23516
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
23610
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
23517
23611
  * "timestamp": "2026-04-20T12:00:00.000Z",
23518
23612
  * "path": "/api/v1/organizations/{id}/directory",
23519
23613
  * "method": "GET"
@@ -23613,7 +23707,7 @@ interface operations {
23613
23707
  "application/json": components["schemas"]["ErrorResponseDto"];
23614
23708
  };
23615
23709
  };
23616
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
23710
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
23617
23711
  403: {
23618
23712
  headers: {
23619
23713
  [name: string]: unknown;
@@ -23624,7 +23718,7 @@ interface operations {
23624
23718
  * "error": {
23625
23719
  * "statusCode": 403,
23626
23720
  * "code": null,
23627
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
23721
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
23628
23722
  * "timestamp": "2026-04-20T12:00:00.000Z",
23629
23723
  * "path": "/api/v1/organizations/{id}/directory",
23630
23724
  * "method": "GET"
@@ -23728,7 +23822,7 @@ interface operations {
23728
23822
  "application/json": components["schemas"]["ErrorResponseDto"];
23729
23823
  };
23730
23824
  };
23731
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
23825
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
23732
23826
  403: {
23733
23827
  headers: {
23734
23828
  [name: string]: unknown;
@@ -23739,7 +23833,7 @@ interface operations {
23739
23833
  * "error": {
23740
23834
  * "statusCode": 403,
23741
23835
  * "code": null,
23742
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
23836
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
23743
23837
  * "timestamp": "2026-04-20T12:00:00.000Z",
23744
23838
  * "path": "/api/v1/organizations/{id}/directory",
23745
23839
  * "method": "GET"
@@ -23865,7 +23959,7 @@ interface operations {
23865
23959
  "application/json": components["schemas"]["ErrorResponseDto"];
23866
23960
  };
23867
23961
  };
23868
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
23962
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
23869
23963
  403: {
23870
23964
  headers: {
23871
23965
  [name: string]: unknown;
@@ -23876,7 +23970,7 @@ interface operations {
23876
23970
  * "error": {
23877
23971
  * "statusCode": 403,
23878
23972
  * "code": null,
23879
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
23973
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
23880
23974
  * "timestamp": "2026-04-20T12:00:00.000Z",
23881
23975
  * "path": "/api/v1/organizations/{id}/directory",
23882
23976
  * "method": "GET"
@@ -23994,7 +24088,7 @@ interface operations {
23994
24088
  "application/json": components["schemas"]["ErrorResponseDto"];
23995
24089
  };
23996
24090
  };
23997
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
24091
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
23998
24092
  403: {
23999
24093
  headers: {
24000
24094
  [name: string]: unknown;
@@ -24005,7 +24099,7 @@ interface operations {
24005
24099
  * "error": {
24006
24100
  * "statusCode": 403,
24007
24101
  * "code": null,
24008
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
24102
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
24009
24103
  * "timestamp": "2026-04-20T12:00:00.000Z",
24010
24104
  * "path": "/api/v1/organizations/{id}/directory",
24011
24105
  * "method": "GET"
@@ -24105,7 +24199,7 @@ interface operations {
24105
24199
  "application/json": components["schemas"]["ErrorResponseDto"];
24106
24200
  };
24107
24201
  };
24108
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
24202
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
24109
24203
  403: {
24110
24204
  headers: {
24111
24205
  [name: string]: unknown;
@@ -24116,7 +24210,7 @@ interface operations {
24116
24210
  * "error": {
24117
24211
  * "statusCode": 403,
24118
24212
  * "code": null,
24119
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
24213
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
24120
24214
  * "timestamp": "2026-04-20T12:00:00.000Z",
24121
24215
  * "path": "/api/v1/organizations/{id}/directory",
24122
24216
  * "method": "GET"
@@ -24216,7 +24310,7 @@ interface operations {
24216
24310
  "application/json": components["schemas"]["ErrorResponseDto"];
24217
24311
  };
24218
24312
  };
24219
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
24313
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
24220
24314
  403: {
24221
24315
  headers: {
24222
24316
  [name: string]: unknown;
@@ -24227,7 +24321,7 @@ interface operations {
24227
24321
  * "error": {
24228
24322
  * "statusCode": 403,
24229
24323
  * "code": null,
24230
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
24324
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
24231
24325
  * "timestamp": "2026-04-20T12:00:00.000Z",
24232
24326
  * "path": "/api/v1/organizations/{id}/directory",
24233
24327
  * "method": "GET"
@@ -24331,7 +24425,7 @@ interface operations {
24331
24425
  "application/json": components["schemas"]["ErrorResponseDto"];
24332
24426
  };
24333
24427
  };
24334
- /** @description Only the application owner may change this list. An organization's own administrator can read it, not change it. */
24428
+ /** @description Only the application owner may change this list. An organization's own administrator can read it, not change it, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
24335
24429
  403: {
24336
24430
  headers: {
24337
24431
  [name: string]: unknown;
@@ -24342,7 +24436,7 @@ interface operations {
24342
24436
  * "error": {
24343
24437
  * "statusCode": 403,
24344
24438
  * "code": null,
24345
- * "message": "Only the application owner may change this list. An organization's own administrator can read it, not change it.",
24439
+ * "message": "Only the application owner may change this list. An organization's own administrator can read it, not change it, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
24346
24440
  * "timestamp": "2026-04-20T12:00:00.000Z",
24347
24441
  * "path": "/api/v1/organizations/{id}/directory/grantable-roles",
24348
24442
  * "method": "PUT"
@@ -26573,7 +26667,7 @@ interface operations {
26573
26667
  "application/json": components["schemas"]["ErrorResponseDto"];
26574
26668
  };
26575
26669
  };
26576
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
26670
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
26577
26671
  403: {
26578
26672
  headers: {
26579
26673
  [name: string]: unknown;
@@ -26584,7 +26678,7 @@ interface operations {
26584
26678
  * "error": {
26585
26679
  * "statusCode": 403,
26586
26680
  * "code": null,
26587
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
26681
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
26588
26682
  * "timestamp": "2026-04-20T12:00:00.000Z",
26589
26683
  * "path": "/api/v1/organizations/{id}/directory/groups",
26590
26684
  * "method": "GET"
@@ -26621,6 +26715,8 @@ interface operations {
26621
26715
  parameters: {
26622
26716
  query?: never;
26623
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;
26624
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`). */
26625
26721
  "X-Canopy-Environment"?: string;
26626
26722
  };
@@ -26647,7 +26743,7 @@ interface operations {
26647
26743
  };
26648
26744
  };
26649
26745
  };
26650
- /** @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`) */
26651
26747
  400: {
26652
26748
  headers: {
26653
26749
  [name: string]: unknown;
@@ -26658,7 +26754,7 @@ interface operations {
26658
26754
  * "error": {
26659
26755
  * "statusCode": 400,
26660
26756
  * "code": null,
26661
- * "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`)",
26662
26758
  * "timestamp": "2026-04-20T12:00:00.000Z",
26663
26759
  * "path": "/api/v1/organizations/{id}/directory/groups/{groupId}/mapping",
26664
26760
  * "method": "PUT"
@@ -26689,7 +26785,7 @@ interface operations {
26689
26785
  "application/json": components["schemas"]["ErrorResponseDto"];
26690
26786
  };
26691
26787
  };
26692
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
26788
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
26693
26789
  403: {
26694
26790
  headers: {
26695
26791
  [name: string]: unknown;
@@ -26700,7 +26796,7 @@ interface operations {
26700
26796
  * "error": {
26701
26797
  * "statusCode": 403,
26702
26798
  * "code": null,
26703
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
26799
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
26704
26800
  * "timestamp": "2026-04-20T12:00:00.000Z",
26705
26801
  * "path": "/api/v1/organizations/{id}/directory/groups",
26706
26802
  * "method": "GET"
@@ -26731,7 +26827,7 @@ interface operations {
26731
26827
  "application/json": components["schemas"]["ErrorResponseDto"];
26732
26828
  };
26733
26829
  };
26734
- /** @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`) */
26735
26831
  409: {
26736
26832
  headers: {
26737
26833
  [name: string]: unknown;
@@ -26742,7 +26838,7 @@ interface operations {
26742
26838
  * "error": {
26743
26839
  * "statusCode": 409,
26744
26840
  * "code": null,
26745
- * "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`)",
26746
26842
  * "timestamp": "2026-04-20T12:00:00.000Z",
26747
26843
  * "path": "/api/v1/organizations/{id}/directory/groups/{groupId}/mapping",
26748
26844
  * "method": "PUT"
@@ -26758,6 +26854,8 @@ interface operations {
26758
26854
  parameters: {
26759
26855
  query?: never;
26760
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;
26761
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`). */
26762
26860
  "X-Canopy-Environment"?: string;
26763
26861
  };
@@ -26780,7 +26878,7 @@ interface operations {
26780
26878
  };
26781
26879
  };
26782
26880
  };
26783
- /** @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`) */
26784
26882
  400: {
26785
26883
  headers: {
26786
26884
  [name: string]: unknown;
@@ -26791,7 +26889,7 @@ interface operations {
26791
26889
  * "error": {
26792
26890
  * "statusCode": 400,
26793
26891
  * "code": null,
26794
- * "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`)",
26795
26893
  * "timestamp": "2026-04-20T12:00:00.000Z",
26796
26894
  * "path": "/api/v1/organizations/{id}/directory/groups/{groupId}/mapping",
26797
26895
  * "method": "DELETE"
@@ -26822,7 +26920,7 @@ interface operations {
26822
26920
  "application/json": components["schemas"]["ErrorResponseDto"];
26823
26921
  };
26824
26922
  };
26825
- /** @description This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa) */
26923
+ /** @description The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`) */
26826
26924
  403: {
26827
26925
  headers: {
26828
26926
  [name: string]: unknown;
@@ -26833,7 +26931,7 @@ interface operations {
26833
26931
  * "error": {
26834
26932
  * "statusCode": 403,
26835
26933
  * "code": null,
26836
- * "message": "This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)",
26934
+ * "message": "The caller lacks the permission this route checks, or the Account's plan does not include SCIM (`plan_feature_unavailable`)",
26837
26935
  * "timestamp": "2026-04-20T12:00:00.000Z",
26838
26936
  * "path": "/api/v1/organizations/{id}/directory/groups",
26839
26937
  * "method": "GET"
@@ -26864,6 +26962,27 @@ interface operations {
26864
26962
  "application/json": components["schemas"]["ErrorResponseDto"];
26865
26963
  };
26866
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
+ };
26867
26986
  };
26868
26987
  };
26869
26988
  ApiRolesController_listRoles: {
@@ -29818,7 +29937,7 @@ interface operations {
29818
29937
  application_id?: string;
29819
29938
  /** @description Narrow to rows for one Environment. Implies the Environment's parent Application. Omit to include all Environments. */
29820
29939
  environment_id?: string;
29821
- /** @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). */
29822
29941
  q?: string;
29823
29942
  /** @description Opaque base64url cursor returned by the previous response. Omit for the first page. */
29824
29943
  cursor?: string;
@@ -30836,6 +30955,8 @@ interface operations {
30836
30955
  parameters: {
30837
30956
  query?: never;
30838
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;
30839
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`). */
30840
30961
  "X-Canopy-Environment"?: string;
30841
30962
  };
@@ -30859,7 +30980,7 @@ interface operations {
30859
30980
  };
30860
30981
  };
30861
30982
  };
30862
- /** @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`) */
30863
30984
  400: {
30864
30985
  headers: {
30865
30986
  [name: string]: unknown;
@@ -30870,7 +30991,7 @@ interface operations {
30870
30991
  * "error": {
30871
30992
  * "statusCode": 400,
30872
30993
  * "code": null,
30873
- * "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`)",
30874
30995
  * "timestamp": "2026-04-20T12:00:00.000Z",
30875
30996
  * "path": "/api/v1/branding",
30876
30997
  * "method": "PATCH"
@@ -30922,6 +31043,27 @@ interface operations {
30922
31043
  "application/json": components["schemas"]["ErrorResponseDto"];
30923
31044
  };
30924
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
+ };
30925
31067
  };
30926
31068
  };
30927
31069
  ApiTokenClaimsController_getTokenClaims: {
@@ -32506,7 +32648,10 @@ interface operations {
32506
32648
  ApiEnvironmentsController_import: {
32507
32649
  parameters: {
32508
32650
  query?: never;
32509
- 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
+ };
32510
32655
  path: {
32511
32656
  id: string;
32512
32657
  };
@@ -32529,7 +32674,7 @@ interface operations {
32529
32674
  };
32530
32675
  };
32531
32676
  };
32532
- /** @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`) */
32533
32678
  400: {
32534
32679
  headers: {
32535
32680
  [name: string]: unknown;
@@ -32540,7 +32685,7 @@ interface operations {
32540
32685
  * "error": {
32541
32686
  * "statusCode": 400,
32542
32687
  * "code": null,
32543
- * "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`)",
32544
32689
  * "timestamp": "2026-04-20T12:00:00.000Z",
32545
32690
  * "path": "/api/v1/environments/{id}/import",
32546
32691
  * "method": "POST"
@@ -32613,6 +32758,27 @@ interface operations {
32613
32758
  "application/json": components["schemas"]["ErrorResponseDto"];
32614
32759
  };
32615
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
+ };
32616
32782
  };
32617
32783
  };
32618
32784
  ApiAuthSettingsController_get: {
@@ -33666,6 +33832,8 @@ interface operations {
33666
33832
  parameters: {
33667
33833
  query?: never;
33668
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;
33669
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`). */
33670
33838
  "X-Canopy-Environment"?: string;
33671
33839
  };
@@ -33691,7 +33859,7 @@ interface operations {
33691
33859
  };
33692
33860
  };
33693
33861
  };
33694
- /** @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`) */
33695
33863
  400: {
33696
33864
  headers: {
33697
33865
  [name: string]: unknown;
@@ -33702,7 +33870,7 @@ interface operations {
33702
33870
  * "error": {
33703
33871
  * "statusCode": 400,
33704
33872
  * "code": null,
33705
- * "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`)",
33706
33874
  * "timestamp": "2026-04-20T12:00:00.000Z",
33707
33875
  * "path": "/api/v1/publishable-keys/{id}",
33708
33876
  * "method": "PATCH"
@@ -33775,6 +33943,27 @@ interface operations {
33775
33943
  "application/json": components["schemas"]["ErrorResponseDto"];
33776
33944
  };
33777
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
+ };
33778
33967
  };
33779
33968
  };
33780
33969
  ApiAccessModelController_get: {
@@ -33869,6 +34058,8 @@ interface operations {
33869
34058
  parameters: {
33870
34059
  query?: never;
33871
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;
33872
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`). */
33873
34064
  "X-Canopy-Environment"?: string;
33874
34065
  };
@@ -33892,7 +34083,7 @@ interface operations {
33892
34083
  };
33893
34084
  };
33894
34085
  };
33895
- /** @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`) */
33896
34087
  400: {
33897
34088
  headers: {
33898
34089
  [name: string]: unknown;
@@ -33903,7 +34094,7 @@ interface operations {
33903
34094
  * "error": {
33904
34095
  * "statusCode": 400,
33905
34096
  * "code": null,
33906
- * "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`)",
33907
34098
  * "timestamp": "2026-04-20T12:00:00.000Z",
33908
34099
  * "path": "/api/v1/access-model",
33909
34100
  * "method": "PUT"
@@ -33955,12 +34146,35 @@ interface operations {
33955
34146
  "application/json": components["schemas"]["ErrorResponseDto"];
33956
34147
  };
33957
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
+ };
33958
34170
  };
33959
34171
  };
33960
34172
  ApiAccessModelController_setOrganizations: {
33961
34173
  parameters: {
33962
34174
  query?: never;
33963
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;
33964
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`). */
33965
34179
  "X-Canopy-Environment"?: string;
33966
34180
  };
@@ -33984,7 +34198,7 @@ interface operations {
33984
34198
  };
33985
34199
  };
33986
34200
  };
33987
- /** @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`) */
33988
34202
  400: {
33989
34203
  headers: {
33990
34204
  [name: string]: unknown;
@@ -33995,7 +34209,7 @@ interface operations {
33995
34209
  * "error": {
33996
34210
  * "statusCode": 400,
33997
34211
  * "code": null,
33998
- * "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`)",
33999
34213
  * "timestamp": "2026-04-20T12:00:00.000Z",
34000
34214
  * "path": "/api/v1/access-model/organizations",
34001
34215
  * "method": "PUT"
@@ -34026,7 +34240,7 @@ interface operations {
34026
34240
  "application/json": components["schemas"]["ErrorResponseDto"];
34027
34241
  };
34028
34242
  };
34029
- /** @description The caller does not hold `hierarchy.manage`, or the request turns the container on and the account's plan does not include organizations (`plan_feature_unavailable`; turning it off is never plan-gated) */
34243
+ /** @description The caller does not hold `hierarchy.manage` */
34030
34244
  403: {
34031
34245
  headers: {
34032
34246
  [name: string]: unknown;
@@ -34037,7 +34251,7 @@ interface operations {
34037
34251
  * "error": {
34038
34252
  * "statusCode": 403,
34039
34253
  * "code": null,
34040
- * "message": "The caller does not hold `hierarchy.manage`, or the request turns the container on and the account's plan does not include organizations (`plan_feature_unavailable`; turning it off is never plan-gated)",
34254
+ * "message": "The caller does not hold `hierarchy.manage`",
34041
34255
  * "timestamp": "2026-04-20T12:00:00.000Z",
34042
34256
  * "path": "/api/v1/access-model/organizations",
34043
34257
  * "method": "PUT"
@@ -34047,7 +34261,7 @@ interface operations {
34047
34261
  "application/json": components["schemas"]["ErrorResponseDto"];
34048
34262
  };
34049
34263
  };
34050
- /** @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`) */
34051
34265
  409: {
34052
34266
  headers: {
34053
34267
  [name: string]: unknown;
@@ -34058,7 +34272,7 @@ interface operations {
34058
34272
  * "error": {
34059
34273
  * "statusCode": 409,
34060
34274
  * "code": null,
34061
- * "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`)",
34062
34276
  * "timestamp": "2026-04-20T12:00:00.000Z",
34063
34277
  * "path": "/api/v1/access-model/organizations",
34064
34278
  * "method": "PUT"
@@ -34074,6 +34288,8 @@ interface operations {
34074
34288
  parameters: {
34075
34289
  query?: never;
34076
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;
34077
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`). */
34078
34294
  "X-Canopy-Environment"?: string;
34079
34295
  };
@@ -34093,7 +34309,7 @@ interface operations {
34093
34309
  };
34094
34310
  };
34095
34311
  };
34096
- /** @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`) */
34097
34313
  400: {
34098
34314
  headers: {
34099
34315
  [name: string]: unknown;
@@ -34104,7 +34320,7 @@ interface operations {
34104
34320
  * "error": {
34105
34321
  * "statusCode": 400,
34106
34322
  * "code": null,
34107
- * "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`)",
34108
34324
  * "timestamp": "2026-04-20T12:00:00.000Z",
34109
34325
  * "path": "/api/v1/access-model/revert-to-flat",
34110
34326
  * "method": "POST"
@@ -34156,6 +34372,27 @@ interface operations {
34156
34372
  "application/json": components["schemas"]["ErrorResponseDto"];
34157
34373
  };
34158
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
+ };
34159
34396
  };
34160
34397
  };
34161
34398
  ApiSsoController_list: {
@@ -34706,7 +34943,10 @@ interface operations {
34706
34943
  ApiSsoController_activate: {
34707
34944
  parameters: {
34708
34945
  query?: never;
34709
- 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
+ };
34710
34950
  path: {
34711
34951
  id: string;
34712
34952
  };
@@ -34725,7 +34965,7 @@ interface operations {
34725
34965
  };
34726
34966
  };
34727
34967
  };
34728
- /** @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`) */
34729
34969
  400: {
34730
34970
  headers: {
34731
34971
  [name: string]: unknown;
@@ -34736,7 +34976,7 @@ interface operations {
34736
34976
  * "error": {
34737
34977
  * "statusCode": 400,
34738
34978
  * "code": null,
34739
- * "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`)",
34740
34980
  * "timestamp": "2026-04-20T12:00:00.000Z",
34741
34981
  * "path": "/api/v1/sso/connections/{id}/activate",
34742
34982
  * "method": "POST"
@@ -34809,12 +35049,36 @@ interface operations {
34809
35049
  "application/json": components["schemas"]["ErrorResponseDto"];
34810
35050
  };
34811
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
+ };
34812
35073
  };
34813
35074
  };
34814
35075
  ApiSsoController_disable: {
34815
35076
  parameters: {
34816
35077
  query?: never;
34817
- 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
+ };
34818
35082
  path: {
34819
35083
  id: string;
34820
35084
  };
@@ -34833,7 +35097,7 @@ interface operations {
34833
35097
  };
34834
35098
  };
34835
35099
  };
34836
- /** @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`) */
34837
35101
  400: {
34838
35102
  headers: {
34839
35103
  [name: string]: unknown;
@@ -34844,7 +35108,7 @@ interface operations {
34844
35108
  * "error": {
34845
35109
  * "statusCode": 400,
34846
35110
  * "code": null,
34847
- * "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`)",
34848
35112
  * "timestamp": "2026-04-20T12:00:00.000Z",
34849
35113
  * "path": "/api/v1/sso/connections/{id}/disable",
34850
35114
  * "method": "POST"
@@ -34917,6 +35181,27 @@ interface operations {
34917
35181
  "application/json": components["schemas"]["ErrorResponseDto"];
34918
35182
  };
34919
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
+ };
34920
35205
  };
34921
35206
  };
34922
35207
  ApiSsoController_listOAuthClientLinks: {
@@ -37914,6 +38199,8 @@ interface operations {
37914
38199
  parameters: {
37915
38200
  query?: never;
37916
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;
37917
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`). */
37918
38205
  "X-Canopy-Environment"?: string;
37919
38206
  };
@@ -37939,7 +38226,7 @@ interface operations {
37939
38226
  };
37940
38227
  };
37941
38228
  };
37942
- /** @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`) */
37943
38230
  400: {
37944
38231
  headers: {
37945
38232
  [name: string]: unknown;
@@ -37950,7 +38237,7 @@ interface operations {
37950
38237
  * "error": {
37951
38238
  * "statusCode": 400,
37952
38239
  * "code": null,
37953
- * "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`)",
37954
38241
  * "timestamp": "2026-04-20T12:00:00.000Z",
37955
38242
  * "path": "/api/v1/scim-groups/{id}/mapping",
37956
38243
  * "method": "PUT"
@@ -38023,7 +38310,7 @@ interface operations {
38023
38310
  "application/json": components["schemas"]["ErrorResponseDto"];
38024
38311
  };
38025
38312
  };
38026
- /** @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`) */
38027
38314
  409: {
38028
38315
  headers: {
38029
38316
  [name: string]: unknown;
@@ -38034,7 +38321,7 @@ interface operations {
38034
38321
  * "error": {
38035
38322
  * "statusCode": 409,
38036
38323
  * "code": null,
38037
- * "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`)",
38038
38325
  * "timestamp": "2026-04-20T12:00:00.000Z",
38039
38326
  * "path": "/api/v1/scim-groups/{id}/mapping",
38040
38327
  * "method": "PUT"
@@ -38050,6 +38337,8 @@ interface operations {
38050
38337
  parameters: {
38051
38338
  query?: never;
38052
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;
38053
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`). */
38054
38343
  "X-Canopy-Environment"?: string;
38055
38344
  };
@@ -38067,7 +38356,7 @@ interface operations {
38067
38356
  };
38068
38357
  content?: never;
38069
38358
  };
38070
- /** @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`) */
38071
38360
  400: {
38072
38361
  headers: {
38073
38362
  [name: string]: unknown;
@@ -38078,7 +38367,7 @@ interface operations {
38078
38367
  * "error": {
38079
38368
  * "statusCode": 400,
38080
38369
  * "code": null,
38081
- * "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`)",
38082
38371
  * "timestamp": "2026-04-20T12:00:00.000Z",
38083
38372
  * "path": "/api/v1/scim-groups/{id}/mapping",
38084
38373
  * "method": "DELETE"
@@ -38151,6 +38440,27 @@ interface operations {
38151
38440
  "application/json": components["schemas"]["ErrorResponseDto"];
38152
38441
  };
38153
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
+ };
38154
38464
  };
38155
38465
  };
38156
38466
  ApiAdminRolesController_list: {
@@ -42408,6 +42718,8 @@ interface operations {
42408
42718
  parameters: {
42409
42719
  query?: never;
42410
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;
42411
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`). */
42412
42724
  "X-Canopy-Environment"?: string;
42413
42725
  };
@@ -42433,7 +42745,7 @@ interface operations {
42433
42745
  };
42434
42746
  };
42435
42747
  };
42436
- /** @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`) */
42437
42749
  400: {
42438
42750
  headers: {
42439
42751
  [name: string]: unknown;
@@ -42444,7 +42756,7 @@ interface operations {
42444
42756
  * "error": {
42445
42757
  * "statusCode": 400,
42446
42758
  * "code": null,
42447
- * "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`)",
42448
42760
  * "timestamp": "2026-04-20T12:00:00.000Z",
42449
42761
  * "path": "/api/v1/api-keys/{id}",
42450
42762
  * "method": "PATCH"
@@ -42517,6 +42829,27 @@ interface operations {
42517
42829
  "application/json": components["schemas"]["ErrorResponseDto"];
42518
42830
  };
42519
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
+ };
42520
42853
  };
42521
42854
  };
42522
42855
  ApiApiKeysController_rotateSecret: {
@@ -43966,7 +44299,7 @@ interface operations {
43966
44299
  };
43967
44300
  requestBody?: never;
43968
44301
  responses: {
43969
- /** @description The plan's feature map alone (`sso`, `scim`, `audit_destinations`, `organizations`), honoring the effective grace-period plan and Enterprise overrides. Membership-gated rather than `billing.view`: every member's dashboard needs it to decide which surfaces to render. */
44302
+ /** @description The plan's feature map alone (`sso`, `scim`, `audit_destinations`), honoring the effective grace-period plan and Enterprise overrides. Membership-gated rather than `billing.view`: every member's dashboard needs it to decide which surfaces to render. */
43970
44303
  200: {
43971
44304
  headers: {
43972
44305
  [name: string]: unknown;
@@ -44051,7 +44384,7 @@ interface operations {
44051
44384
  };
44052
44385
  requestBody?: never;
44053
44386
  responses: {
44054
- /** @description The Pro monthly and annual prices as Stripe holds them, plus the annual saving derived from the two. Read by the upgrade dialog, which offers both cycles to an Account that has no subscription yet and so has no per-account price to read. Enterprise is absent — those are contracted individually and never bought through this flow. */
44387
+ /** @description The monthly and annual prices of Starter and Pro as Stripe holds them, plus the annual saving derived from each pair. Read by the upgrade dialog, which offers both cycles to an Account that has no subscription yet and so has no per-account price to read. Enterprise is absent — those are contracted individually and never bought through this flow. */
44055
44388
  200: {
44056
44389
  headers: {
44057
44390
  [name: string]: unknown;
@@ -44536,7 +44869,12 @@ declare class Identities {
44536
44869
  list(query?: QueryParams<"ApiIdentitiesController_listIdentities">): Paginator<IdentityItem>;
44537
44870
  get(id: string): Promise<ResponseBody<"ApiIdentitiesController_getIdentity">>;
44538
44871
  create(input: RequestBody<"ApiIdentitiesController_createIdentity">): Promise<ResponseBody<"ApiIdentitiesController_createIdentity">>;
44539
- 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">>;
44540
44878
  /**
44541
44879
  * Takes the identity out of this key's Environment: its membership here is
44542
44880
  * deactivated and its role assignments here are dropped. The identity and