@workos/openapi-spec 0.122.0 → 0.124.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -380,8 +380,6 @@ export interface paths {
380
380
  * This API supports idempotency which guarantees that performing the same operation multiple times will have the same result as if the operation were performed only once. This is handy in situations where you may need to retry a request due to a failure or prevent accidental duplicate requests from creating more than one resource.
381
381
  *
382
382
  * To achieve idempotency, you can add `Idempotency-Key` request header to a Create Event request with a unique string as the value. Each subsequent request matching this unique string will return the same response. We suggest using [v4 UUIDs](https://en.wikipedia.org/wiki/Universally_unique_identifier) for idempotency keys to avoid collisions.
383
- *
384
- * Idempotency keys expire after 24 hours. The API will generate a new response if you submit a request with an expired key.
385
383
  */
386
384
  post: operations["AuditLogEventsController_create"];
387
385
  delete?: never;
@@ -2441,6 +2439,26 @@ export interface paths {
2441
2439
  patch?: never;
2442
2440
  trace?: never;
2443
2441
  };
2442
+ "/portal/revoke_link": {
2443
+ parameters: {
2444
+ query?: never;
2445
+ header?: never;
2446
+ path?: never;
2447
+ cookie?: never;
2448
+ };
2449
+ get?: never;
2450
+ put?: never;
2451
+ /**
2452
+ * Revoke Portal Links
2453
+ * @description Revokes every Portal Link generated for the given organization with the given `external_user_id`, and immediately ends any Admin Portal sessions that were started from those links. Use this when an admin is deprovisioned from your application: unopened links stop working, and their already-open portal sessions are ended. Only links that were generated with an `external_user_id` can be revoked, so pass one to `generate_link` for every admin you may later need to deprovision.
2454
+ */
2455
+ post: operations["PortalSessionsController_revokeLink"];
2456
+ delete?: never;
2457
+ options?: never;
2458
+ head?: never;
2459
+ patch?: never;
2460
+ trace?: never;
2461
+ };
2444
2462
  "/radar/attempts": {
2445
2463
  parameters: {
2446
2464
  query?: never;
@@ -5763,6 +5781,11 @@ export interface components {
5763
5781
  * @example org_01EHZNVPK3SFK441A1RGBFSHRT
5764
5782
  */
5765
5783
  organization: string;
5784
+ /**
5785
+ * @description The ID of the user in your application the link is generated for. The link and any Admin Portal sessions started from it can later be revoked by this ID, for example when that user is deprovisioned from your application.
5786
+ * @example user_12345
5787
+ */
5788
+ external_user_id?: string;
5766
5789
  /**
5767
5790
  * @description The intent of the Admin Portal.
5768
5791
  * - `sso` - Launch Admin Portal for creating SSO connections
@@ -5784,6 +5807,18 @@ export interface components {
5784
5807
  */
5785
5808
  it_contact_emails?: string[];
5786
5809
  };
5810
+ RevokeLinkDto: {
5811
+ /**
5812
+ * @description An [Organization](/reference/organization) identifier.
5813
+ * @example org_01EHZNVPK3SFK441A1RGBFSHRT
5814
+ */
5815
+ organization: string;
5816
+ /**
5817
+ * @description The `external_user_id` the Portal Links were generated with for this organization. Every matching link is revoked, along with any Admin Portal sessions started from those links.
5818
+ * @example user_12345
5819
+ */
5820
+ external_user_id: string;
5821
+ };
5787
5822
  SendRadarSmsChallengeDto: {
5788
5823
  /**
5789
5824
  * @description The ID of the user to send the SMS challenge to.
@@ -6330,6 +6365,12 @@ export interface components {
6330
6365
  * @enum {string}
6331
6366
  */
6332
6367
  grant_type: "authorization_code" | "urn:ietf:params:oauth:grant-type:token-exchange";
6368
+ /**
6369
+ * Format: password
6370
+ * @description The PKCE code verifier matching the `code_challenge` sent with the authorization request. Required when the authorization request included a `code_challenge`. Must be sent in the request body.
6371
+ * @example code_verifier_value
6372
+ */
6373
+ code_verifier?: string;
6333
6374
  /**
6334
6375
  * @description The OIDC ID token to exchange. Required when `grant_type` is `urn:ietf:params:oauth:grant-type:token-exchange`. Must be sent in the request body.
6335
6376
  * @example eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjMifQ.example
@@ -9260,6 +9301,16 @@ export interface components {
9260
9301
  * @enum {string}
9261
9302
  */
9262
9303
  state: "connected" | "needs_reauthorization";
9304
+ /**
9305
+ * @description The ID of the User whose authorization established the connected account, or null when it is developer-managed, its establisher is unknown, or the establishing member left the organization. Historical events may omit this field.
9306
+ * @example user_01EHZNVPK3SFK441A1RGBFSHRT
9307
+ */
9308
+ established_by_user_id?: string | null;
9309
+ /**
9310
+ * @description Why WorkOS put the connected account in its current state, or null when there is no WorkOS-recorded reason. `establishing_member_membership_ended` means the member who established an organization-owned connection is no longer an active member. Additional values may be added. Historical events may omit this field.
9311
+ * @example null
9312
+ */
9313
+ state_reason?: "establishing_member_membership_ended" | null;
9263
9314
  /**
9264
9315
  * Format: date-time
9265
9316
  * @description An ISO 8601 timestamp.
@@ -18566,12 +18617,25 @@ export interface components {
18566
18617
  /**
18567
18618
  * @description The state of the connected account:
18568
18619
  * - `connected`: The connection is active and tokens are valid.
18569
- * - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed.
18620
+ * - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed. `state_reason` explains why when WorkOS invalidated the connection itself.
18570
18621
  * - `disconnected`: The connection has been disconnected.
18571
18622
  * @example connected
18572
18623
  * @enum {string}
18573
18624
  */
18574
18625
  state: "connected" | "needs_reauthorization" | "disconnected";
18626
+ /**
18627
+ * @description The [User](/reference/authkit/user) whose authorization established this connection. `null` when the connection is developer-managed or its establisher is unknown, and when the establishing member lost access to the organization — in which case `state_reason` is `establishing_member_membership_ended`.
18628
+ * @example user_01EHZNVPK3SFK441A1RGBFSHRT
18629
+ */
18630
+ established_by_user_id?: string | null;
18631
+ /**
18632
+ * @description Why WorkOS put the connection in its current `state`, or `null` when there is no WorkOS-recorded reason:
18633
+ * - `establishing_member_membership_ended`: The member who established this organization-owned connection is no longer an active member of the organization, so its credentials were cleared. An organization admin must provide new credentials.
18634
+ *
18635
+ * Additional values may be added; treat an unrecognized value as an unknown reason.
18636
+ * @example null
18637
+ */
18638
+ state_reason?: "establishing_member_membership_ended" | null;
18575
18639
  /**
18576
18640
  * @description The timestamp when the connection was created.
18577
18641
  * @example 2024-01-16T14:20:00.000Z
@@ -18772,12 +18836,25 @@ export interface components {
18772
18836
  /**
18773
18837
  * @description The state of the connected account:
18774
18838
  * - `connected`: The connection is active and tokens are valid.
18775
- * - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed.
18839
+ * - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed. `state_reason` explains why when WorkOS invalidated the connection itself.
18776
18840
  * - `disconnected`: The connection has been disconnected.
18777
18841
  * @example connected
18778
18842
  * @enum {string}
18779
18843
  */
18780
18844
  state: "connected" | "needs_reauthorization" | "disconnected";
18845
+ /**
18846
+ * @description The [User](/reference/authkit/user) whose authorization established this connection. `null` when the connection is developer-managed or its establisher is unknown, and when the establishing member lost access to the organization — in which case `state_reason` is `establishing_member_membership_ended`.
18847
+ * @example user_01EHZNVPK3SFK441A1RGBFSHRT
18848
+ */
18849
+ established_by_user_id?: string | null;
18850
+ /**
18851
+ * @description Why WorkOS put the connection in its current `state`, or `null` when there is no WorkOS-recorded reason:
18852
+ * - `establishing_member_membership_ended`: The member who established this organization-owned connection is no longer an active member of the organization, so its credentials were cleared. An organization admin must provide new credentials.
18853
+ *
18854
+ * Additional values may be added; treat an unrecognized value as an unknown reason.
18855
+ * @example null
18856
+ */
18857
+ state_reason?: "establishing_member_membership_ended" | null;
18781
18858
  /**
18782
18859
  * @description The timestamp when the connection was created.
18783
18860
  * @example 2024-01-16T14:20:00.000Z
@@ -18888,12 +18965,25 @@ export interface components {
18888
18965
  /**
18889
18966
  * @description The state of the connected account:
18890
18967
  * - `connected`: The connection is active and tokens are valid.
18891
- * - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed.
18968
+ * - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed. `state_reason` explains why when WorkOS invalidated the connection itself.
18892
18969
  * - `disconnected`: The connection has been disconnected.
18893
18970
  * @example connected
18894
18971
  * @enum {string}
18895
18972
  */
18896
18973
  state: "connected" | "needs_reauthorization" | "disconnected";
18974
+ /**
18975
+ * @description The [User](/reference/authkit/user) whose authorization established this connection. `null` when the connection is developer-managed or its establisher is unknown, and when the establishing member lost access to the organization — in which case `state_reason` is `establishing_member_membership_ended`.
18976
+ * @example user_01EHZNVPK3SFK441A1RGBFSHRT
18977
+ */
18978
+ established_by_user_id?: string | null;
18979
+ /**
18980
+ * @description Why WorkOS put the connection in its current `state`, or `null` when there is no WorkOS-recorded reason:
18981
+ * - `establishing_member_membership_ended`: The member who established this organization-owned connection is no longer an active member of the organization, so its credentials were cleared. An organization admin must provide new credentials.
18982
+ *
18983
+ * Additional values may be added; treat an unrecognized value as an unknown reason.
18984
+ * @example null
18985
+ */
18986
+ state_reason?: "establishing_member_membership_ended" | null;
18897
18987
  /**
18898
18988
  * @description The timestamp when the connection was created.
18899
18989
  * @example 2024-01-16T14:20:00.000Z
@@ -19005,12 +19095,25 @@ export interface components {
19005
19095
  /**
19006
19096
  * @description The state of the connected account:
19007
19097
  * - `connected`: The connection is active and tokens are valid.
19008
- * - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed.
19098
+ * - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed. `state_reason` explains why when WorkOS invalidated the connection itself.
19009
19099
  * - `disconnected`: The connection has been disconnected.
19010
19100
  * @example connected
19011
19101
  * @enum {string}
19012
19102
  */
19013
19103
  state: "connected" | "needs_reauthorization" | "disconnected";
19104
+ /**
19105
+ * @description The [User](/reference/authkit/user) whose authorization established this connection. `null` when the connection is developer-managed or its establisher is unknown, and when the establishing member lost access to the organization — in which case `state_reason` is `establishing_member_membership_ended`.
19106
+ * @example user_01EHZNVPK3SFK441A1RGBFSHRT
19107
+ */
19108
+ established_by_user_id?: string | null;
19109
+ /**
19110
+ * @description Why WorkOS put the connection in its current `state`, or `null` when there is no WorkOS-recorded reason:
19111
+ * - `establishing_member_membership_ended`: The member who established this organization-owned connection is no longer an active member of the organization, so its credentials were cleared. An organization admin must provide new credentials.
19112
+ *
19113
+ * Additional values may be added; treat an unrecognized value as an unknown reason.
19114
+ * @example null
19115
+ */
19116
+ state_reason?: "establishing_member_membership_ended" | null;
19014
19117
  /**
19015
19118
  * @description The timestamp when the connection was created.
19016
19119
  * @example 2024-01-16T14:20:00.000Z
@@ -19026,7 +19129,7 @@ export interface components {
19026
19129
  /**
19027
19130
  * Format: password
19028
19131
  * @description An ephemeral link to initiate the Admin Portal.
19029
- * @example https://setup.workos.com?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
19132
+ * @example https://setup.workos.com/init?apiToken=01EHZNVPK3SFK441A1RGBFSHRT
19030
19133
  */
19031
19134
  link: string;
19032
19135
  };
@@ -22281,6 +22384,26 @@ export interface operations {
22281
22384
  };
22282
22385
  };
22283
22386
  };
22387
+ 402: {
22388
+ headers: {
22389
+ [name: string]: unknown;
22390
+ };
22391
+ content: {
22392
+ "application/json": {
22393
+ /**
22394
+ * @description The error code identifying the type of error.
22395
+ * @example production_feature_requires_billing
22396
+ * @constant
22397
+ */
22398
+ code: "production_feature_requires_billing";
22399
+ /**
22400
+ * @description A human-readable description of the error.
22401
+ * @example Request could not be processed.
22402
+ */
22403
+ message: string;
22404
+ };
22405
+ };
22406
+ };
22284
22407
  /** @description Not Found */
22285
22408
  404: {
22286
22409
  headers: {
@@ -22365,6 +22488,26 @@ export interface operations {
22365
22488
  };
22366
22489
  };
22367
22490
  };
22491
+ 402: {
22492
+ headers: {
22493
+ [name: string]: unknown;
22494
+ };
22495
+ content: {
22496
+ "application/json": {
22497
+ /**
22498
+ * @description The error code identifying the type of error.
22499
+ * @example production_feature_requires_billing
22500
+ * @constant
22501
+ */
22502
+ code: "production_feature_requires_billing";
22503
+ /**
22504
+ * @description A human-readable description of the error.
22505
+ * @example Request could not be processed.
22506
+ */
22507
+ message: string;
22508
+ };
22509
+ };
22510
+ };
22368
22511
  /** @description Not Found */
22369
22512
  404: {
22370
22513
  headers: {
@@ -22422,6 +22565,26 @@ export interface operations {
22422
22565
  "application/json": components["schemas"]["AuditLogSchemaJson"];
22423
22566
  };
22424
22567
  };
22568
+ 402: {
22569
+ headers: {
22570
+ [name: string]: unknown;
22571
+ };
22572
+ content: {
22573
+ "application/json": {
22574
+ /**
22575
+ * @description The error code identifying the type of error.
22576
+ * @example production_feature_requires_billing
22577
+ * @constant
22578
+ */
22579
+ code: "production_feature_requires_billing";
22580
+ /**
22581
+ * @description A human-readable description of the error.
22582
+ * @example Request could not be processed.
22583
+ */
22584
+ message: string;
22585
+ };
22586
+ };
22587
+ };
22425
22588
  /** @description Unprocessable Entity */
22426
22589
  422: {
22427
22590
  headers: {
@@ -22443,7 +22606,7 @@ export interface operations {
22443
22606
  parameters: {
22444
22607
  query?: never;
22445
22608
  header?: {
22446
- /** @description A unique string to prevent duplicate requests. Each subsequent request matching this unique string will return the same response. We suggest using v4 UUIDs. Keys expire after 24 hours. */
22609
+ /** @description A unique string to prevent duplicate requests. Each subsequent request matching this unique string will return the same response. We suggest using v4 UUIDs. */
22447
22610
  "idempotency-key"?: string;
22448
22611
  };
22449
22612
  path?: never;
@@ -22514,6 +22677,26 @@ export interface operations {
22514
22677
  };
22515
22678
  };
22516
22679
  };
22680
+ 402: {
22681
+ headers: {
22682
+ [name: string]: unknown;
22683
+ };
22684
+ content: {
22685
+ "application/json": {
22686
+ /**
22687
+ * @description The error code identifying the type of error.
22688
+ * @example production_feature_requires_billing
22689
+ * @constant
22690
+ */
22691
+ code: "production_feature_requires_billing";
22692
+ /**
22693
+ * @description A human-readable description of the error.
22694
+ * @example Request could not be processed.
22695
+ */
22696
+ message: string;
22697
+ };
22698
+ };
22699
+ };
22517
22700
  /** @description Not Found */
22518
22701
  404: {
22519
22702
  headers: {
@@ -22665,6 +22848,26 @@ export interface operations {
22665
22848
  };
22666
22849
  };
22667
22850
  };
22851
+ 402: {
22852
+ headers: {
22853
+ [name: string]: unknown;
22854
+ };
22855
+ content: {
22856
+ "application/json": {
22857
+ /**
22858
+ * @description The error code identifying the type of error.
22859
+ * @example production_feature_requires_billing
22860
+ * @constant
22861
+ */
22862
+ code: "production_feature_requires_billing";
22863
+ /**
22864
+ * @description A human-readable description of the error.
22865
+ * @example Request could not be processed.
22866
+ */
22867
+ message: string;
22868
+ };
22869
+ };
22870
+ };
22668
22871
  };
22669
22872
  };
22670
22873
  AuditLogExportsController_export: {
@@ -22698,6 +22901,26 @@ export interface operations {
22698
22901
  "application/json": components["schemas"]["AuditLogExportJson"];
22699
22902
  };
22700
22903
  };
22904
+ 402: {
22905
+ headers: {
22906
+ [name: string]: unknown;
22907
+ };
22908
+ content: {
22909
+ "application/json": {
22910
+ /**
22911
+ * @description The error code identifying the type of error.
22912
+ * @example production_feature_requires_billing
22913
+ * @constant
22914
+ */
22915
+ code: "production_feature_requires_billing";
22916
+ /**
22917
+ * @description A human-readable description of the error.
22918
+ * @example Request could not be processed.
22919
+ */
22920
+ message: string;
22921
+ };
22922
+ };
22923
+ };
22701
22924
  /** @description Audit Log Export not found. */
22702
22925
  404: {
22703
22926
  headers: {
@@ -23236,6 +23459,26 @@ export interface operations {
23236
23459
  "application/json": components["schemas"]["GroupRoleAssignmentList"];
23237
23460
  };
23238
23461
  };
23462
+ 402: {
23463
+ headers: {
23464
+ [name: string]: unknown;
23465
+ };
23466
+ content: {
23467
+ "application/json": {
23468
+ /**
23469
+ * @description The error code identifying the type of error.
23470
+ * @example production_feature_requires_billing
23471
+ * @constant
23472
+ */
23473
+ code: "production_feature_requires_billing";
23474
+ /**
23475
+ * @description A human-readable description of the error.
23476
+ * @example Request could not be processed.
23477
+ */
23478
+ message: string;
23479
+ };
23480
+ };
23481
+ };
23239
23482
  /** @description Forbidden */
23240
23483
  403: {
23241
23484
  headers: {
@@ -23293,6 +23536,26 @@ export interface operations {
23293
23536
  "application/json": components["schemas"]["GroupRoleAssignmentList"];
23294
23537
  };
23295
23538
  };
23539
+ 402: {
23540
+ headers: {
23541
+ [name: string]: unknown;
23542
+ };
23543
+ content: {
23544
+ "application/json": {
23545
+ /**
23546
+ * @description The error code identifying the type of error.
23547
+ * @example production_feature_requires_billing
23548
+ * @constant
23549
+ */
23550
+ code: "production_feature_requires_billing";
23551
+ /**
23552
+ * @description A human-readable description of the error.
23553
+ * @example Request could not be processed.
23554
+ */
23555
+ message: string;
23556
+ };
23557
+ };
23558
+ };
23296
23559
  /** @description Forbidden */
23297
23560
  403: {
23298
23561
  headers: {
@@ -23365,6 +23628,26 @@ export interface operations {
23365
23628
  "application/json": components["schemas"]["GroupRoleAssignment"];
23366
23629
  };
23367
23630
  };
23631
+ 402: {
23632
+ headers: {
23633
+ [name: string]: unknown;
23634
+ };
23635
+ content: {
23636
+ "application/json": {
23637
+ /**
23638
+ * @description The error code identifying the type of error.
23639
+ * @example production_feature_requires_billing
23640
+ * @constant
23641
+ */
23642
+ code: "production_feature_requires_billing";
23643
+ /**
23644
+ * @description A human-readable description of the error.
23645
+ * @example Request could not be processed.
23646
+ */
23647
+ message: string;
23648
+ };
23649
+ };
23650
+ };
23368
23651
  /** @description Forbidden */
23369
23652
  403: {
23370
23653
  headers: {
@@ -23525,59 +23808,79 @@ export interface operations {
23525
23808
  "application/json": components["schemas"]["GroupRoleAssignment"];
23526
23809
  };
23527
23810
  };
23528
- /** @description Forbidden */
23529
- 403: {
23811
+ 402: {
23530
23812
  headers: {
23531
23813
  [name: string]: unknown;
23532
23814
  };
23533
23815
  content: {
23534
23816
  "application/json": {
23535
23817
  /**
23536
- * @description A human-readable description of the error.
23537
- * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
23818
+ * @description The error code identifying the type of error.
23819
+ * @example production_feature_requires_billing
23820
+ * @constant
23538
23821
  */
23539
- message: string;
23540
- };
23541
- };
23542
- };
23543
- /** @description Not Found */
23544
- 404: {
23545
- headers: {
23546
- [name: string]: unknown;
23547
- };
23548
- content: {
23549
- "application/json": {
23822
+ code: "production_feature_requires_billing";
23550
23823
  /**
23551
23824
  * @description A human-readable description of the error.
23552
- * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
23825
+ * @example Request could not be processed.
23553
23826
  */
23554
23827
  message: string;
23555
23828
  };
23556
23829
  };
23557
23830
  };
23558
- };
23559
- };
23560
- AuthorizationGroupRoleAssignmentsController_removeGroupRoleAssignment: {
23561
- parameters: {
23562
- query?: never;
23563
- header?: never;
23564
- path: {
23565
- /** @description The ID of the group. */
23566
- group_id: string;
23567
- /** @description The ID of the group role assignment to remove. */
23568
- role_assignment_id: string;
23569
- };
23570
- cookie?: never;
23571
- };
23572
- requestBody?: never;
23573
- responses: {
23574
- /** @description No Content */
23575
- 204: {
23576
- headers: {
23577
- [name: string]: unknown;
23578
- };
23579
- content?: never;
23580
- };
23831
+ /** @description Forbidden */
23832
+ 403: {
23833
+ headers: {
23834
+ [name: string]: unknown;
23835
+ };
23836
+ content: {
23837
+ "application/json": {
23838
+ /**
23839
+ * @description A human-readable description of the error.
23840
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
23841
+ */
23842
+ message: string;
23843
+ };
23844
+ };
23845
+ };
23846
+ /** @description Not Found */
23847
+ 404: {
23848
+ headers: {
23849
+ [name: string]: unknown;
23850
+ };
23851
+ content: {
23852
+ "application/json": {
23853
+ /**
23854
+ * @description A human-readable description of the error.
23855
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
23856
+ */
23857
+ message: string;
23858
+ };
23859
+ };
23860
+ };
23861
+ };
23862
+ };
23863
+ AuthorizationGroupRoleAssignmentsController_removeGroupRoleAssignment: {
23864
+ parameters: {
23865
+ query?: never;
23866
+ header?: never;
23867
+ path: {
23868
+ /** @description The ID of the group. */
23869
+ group_id: string;
23870
+ /** @description The ID of the group role assignment to remove. */
23871
+ role_assignment_id: string;
23872
+ };
23873
+ cookie?: never;
23874
+ };
23875
+ requestBody?: never;
23876
+ responses: {
23877
+ /** @description No Content */
23878
+ 204: {
23879
+ headers: {
23880
+ [name: string]: unknown;
23881
+ };
23882
+ content?: never;
23883
+ };
23581
23884
  /** @description Forbidden */
23582
23885
  403: {
23583
23886
  headers: {
@@ -23635,6 +23938,26 @@ export interface operations {
23635
23938
  "application/json": components["schemas"]["AuthorizationCheck"];
23636
23939
  };
23637
23940
  };
23941
+ 402: {
23942
+ headers: {
23943
+ [name: string]: unknown;
23944
+ };
23945
+ content: {
23946
+ "application/json": {
23947
+ /**
23948
+ * @description The error code identifying the type of error.
23949
+ * @example production_feature_requires_billing
23950
+ * @constant
23951
+ */
23952
+ code: "production_feature_requires_billing";
23953
+ /**
23954
+ * @description A human-readable description of the error.
23955
+ * @example Request could not be processed.
23956
+ */
23957
+ message: string;
23958
+ };
23959
+ };
23960
+ };
23638
23961
  /** @description Forbidden */
23639
23962
  403: {
23640
23963
  headers: {
@@ -23741,6 +24064,26 @@ export interface operations {
23741
24064
  };
23742
24065
  };
23743
24066
  };
24067
+ 402: {
24068
+ headers: {
24069
+ [name: string]: unknown;
24070
+ };
24071
+ content: {
24072
+ "application/json": {
24073
+ /**
24074
+ * @description The error code identifying the type of error.
24075
+ * @example production_feature_requires_billing
24076
+ * @constant
24077
+ */
24078
+ code: "production_feature_requires_billing";
24079
+ /**
24080
+ * @description A human-readable description of the error.
24081
+ * @example Request could not be processed.
24082
+ */
24083
+ message: string;
24084
+ };
24085
+ };
24086
+ };
23744
24087
  /** @description Forbidden */
23745
24088
  403: {
23746
24089
  headers: {
@@ -23820,6 +24163,26 @@ export interface operations {
23820
24163
  "application/json": components["schemas"]["AuthorizationPermissionList"];
23821
24164
  };
23822
24165
  };
24166
+ 402: {
24167
+ headers: {
24168
+ [name: string]: unknown;
24169
+ };
24170
+ content: {
24171
+ "application/json": {
24172
+ /**
24173
+ * @description The error code identifying the type of error.
24174
+ * @example production_feature_requires_billing
24175
+ * @constant
24176
+ */
24177
+ code: "production_feature_requires_billing";
24178
+ /**
24179
+ * @description A human-readable description of the error.
24180
+ * @example Request could not be processed.
24181
+ */
24182
+ message: string;
24183
+ };
24184
+ };
24185
+ };
23823
24186
  /** @description Forbidden */
23824
24187
  403: {
23825
24188
  headers: {
@@ -23901,6 +24264,26 @@ export interface operations {
23901
24264
  "application/json": components["schemas"]["AuthorizationPermissionList"];
23902
24265
  };
23903
24266
  };
24267
+ 402: {
24268
+ headers: {
24269
+ [name: string]: unknown;
24270
+ };
24271
+ content: {
24272
+ "application/json": {
24273
+ /**
24274
+ * @description The error code identifying the type of error.
24275
+ * @example production_feature_requires_billing
24276
+ * @constant
24277
+ */
24278
+ code: "production_feature_requires_billing";
24279
+ /**
24280
+ * @description A human-readable description of the error.
24281
+ * @example Request could not be processed.
24282
+ */
24283
+ message: string;
24284
+ };
24285
+ };
24286
+ };
23904
24287
  /** @description Forbidden */
23905
24288
  403: {
23906
24289
  headers: {
@@ -23984,6 +24367,26 @@ export interface operations {
23984
24367
  "application/json": components["schemas"]["UserRoleAssignmentList"];
23985
24368
  };
23986
24369
  };
24370
+ 402: {
24371
+ headers: {
24372
+ [name: string]: unknown;
24373
+ };
24374
+ content: {
24375
+ "application/json": {
24376
+ /**
24377
+ * @description The error code identifying the type of error.
24378
+ * @example production_feature_requires_billing
24379
+ * @constant
24380
+ */
24381
+ code: "production_feature_requires_billing";
24382
+ /**
24383
+ * @description A human-readable description of the error.
24384
+ * @example Request could not be processed.
24385
+ */
24386
+ message: string;
24387
+ };
24388
+ };
24389
+ };
23987
24390
  /** @description Forbidden */
23988
24391
  403: {
23989
24392
  headers: {
@@ -24063,6 +24466,26 @@ export interface operations {
24063
24466
  "application/json": components["schemas"]["UserRoleAssignment"];
24064
24467
  };
24065
24468
  };
24469
+ 402: {
24470
+ headers: {
24471
+ [name: string]: unknown;
24472
+ };
24473
+ content: {
24474
+ "application/json": {
24475
+ /**
24476
+ * @description The error code identifying the type of error.
24477
+ * @example production_feature_requires_billing
24478
+ * @constant
24479
+ */
24480
+ code: "production_feature_requires_billing";
24481
+ /**
24482
+ * @description A human-readable description of the error.
24483
+ * @example Request could not be processed.
24484
+ */
24485
+ message: string;
24486
+ };
24487
+ };
24488
+ };
24066
24489
  /** @description Forbidden */
24067
24490
  403: {
24068
24491
  headers: {
@@ -25197,6 +25620,26 @@ export interface operations {
25197
25620
  "application/json": components["schemas"]["AuthorizationResource"];
25198
25621
  };
25199
25622
  };
25623
+ 402: {
25624
+ headers: {
25625
+ [name: string]: unknown;
25626
+ };
25627
+ content: {
25628
+ "application/json": {
25629
+ /**
25630
+ * @description The error code identifying the type of error.
25631
+ * @example production_feature_requires_billing
25632
+ * @constant
25633
+ */
25634
+ code: "production_feature_requires_billing";
25635
+ /**
25636
+ * @description A human-readable description of the error.
25637
+ * @example Request could not be processed.
25638
+ */
25639
+ message: string;
25640
+ };
25641
+ };
25642
+ };
25200
25643
  /** @description Forbidden */
25201
25644
  403: {
25202
25645
  headers: {
@@ -25443,6 +25886,26 @@ export interface operations {
25443
25886
  };
25444
25887
  };
25445
25888
  };
25889
+ 402: {
25890
+ headers: {
25891
+ [name: string]: unknown;
25892
+ };
25893
+ content: {
25894
+ "application/json": {
25895
+ /**
25896
+ * @description The error code identifying the type of error.
25897
+ * @example production_feature_requires_billing
25898
+ * @constant
25899
+ */
25900
+ code: "production_feature_requires_billing";
25901
+ /**
25902
+ * @description A human-readable description of the error.
25903
+ * @example Request could not be processed.
25904
+ */
25905
+ message: string;
25906
+ };
25907
+ };
25908
+ };
25446
25909
  /** @description Forbidden */
25447
25910
  403: {
25448
25911
  headers: {
@@ -25569,6 +26032,26 @@ export interface operations {
25569
26032
  };
25570
26033
  };
25571
26034
  };
26035
+ 402: {
26036
+ headers: {
26037
+ [name: string]: unknown;
26038
+ };
26039
+ content: {
26040
+ "application/json": {
26041
+ /**
26042
+ * @description The error code identifying the type of error.
26043
+ * @example production_feature_requires_billing
26044
+ * @constant
26045
+ */
26046
+ code: "production_feature_requires_billing";
26047
+ /**
26048
+ * @description A human-readable description of the error.
26049
+ * @example Request could not be processed.
26050
+ */
26051
+ message: string;
26052
+ };
26053
+ };
26054
+ };
25572
26055
  /** @description Forbidden */
25573
26056
  403: {
25574
26057
  headers: {
@@ -25652,6 +26135,26 @@ export interface operations {
25652
26135
  "application/json": components["schemas"]["UserRoleAssignmentList"];
25653
26136
  };
25654
26137
  };
26138
+ 402: {
26139
+ headers: {
26140
+ [name: string]: unknown;
26141
+ };
26142
+ content: {
26143
+ "application/json": {
26144
+ /**
26145
+ * @description The error code identifying the type of error.
26146
+ * @example production_feature_requires_billing
26147
+ * @constant
26148
+ */
26149
+ code: "production_feature_requires_billing";
26150
+ /**
26151
+ * @description A human-readable description of the error.
26152
+ * @example Request could not be processed.
26153
+ */
26154
+ message: string;
26155
+ };
26156
+ };
26157
+ };
25655
26158
  /** @description Forbidden */
25656
26159
  403: {
25657
26160
  headers: {
@@ -26092,6 +26595,26 @@ export interface operations {
26092
26595
  };
26093
26596
  };
26094
26597
  };
26598
+ 402: {
26599
+ headers: {
26600
+ [name: string]: unknown;
26601
+ };
26602
+ content: {
26603
+ "application/json": {
26604
+ /**
26605
+ * @description The error code identifying the type of error.
26606
+ * @example production_feature_requires_billing
26607
+ * @constant
26608
+ */
26609
+ code: "production_feature_requires_billing";
26610
+ /**
26611
+ * @description A human-readable description of the error.
26612
+ * @example Request could not be processed.
26613
+ */
26614
+ message: string;
26615
+ };
26616
+ };
26617
+ };
26095
26618
  /** @description Forbidden */
26096
26619
  403: {
26097
26620
  headers: {
@@ -26232,6 +26755,26 @@ export interface operations {
26232
26755
  };
26233
26756
  };
26234
26757
  };
26758
+ 402: {
26759
+ headers: {
26760
+ [name: string]: unknown;
26761
+ };
26762
+ content: {
26763
+ "application/json": {
26764
+ /**
26765
+ * @description The error code identifying the type of error.
26766
+ * @example production_feature_requires_billing
26767
+ * @constant
26768
+ */
26769
+ code: "production_feature_requires_billing";
26770
+ /**
26771
+ * @description A human-readable description of the error.
26772
+ * @example Request could not be processed.
26773
+ */
26774
+ message: string;
26775
+ };
26776
+ };
26777
+ };
26235
26778
  /** @description Forbidden */
26236
26779
  403: {
26237
26780
  headers: {
@@ -26332,6 +26875,26 @@ export interface operations {
26332
26875
  "application/json": components["schemas"]["AuthorizationResource"];
26333
26876
  };
26334
26877
  };
26878
+ 402: {
26879
+ headers: {
26880
+ [name: string]: unknown;
26881
+ };
26882
+ content: {
26883
+ "application/json": {
26884
+ /**
26885
+ * @description The error code identifying the type of error.
26886
+ * @example production_feature_requires_billing
26887
+ * @constant
26888
+ */
26889
+ code: "production_feature_requires_billing";
26890
+ /**
26891
+ * @description A human-readable description of the error.
26892
+ * @example Request could not be processed.
26893
+ */
26894
+ message: string;
26895
+ };
26896
+ };
26897
+ };
26335
26898
  /** @description Forbidden */
26336
26899
  403: {
26337
26900
  headers: {
@@ -26585,6 +27148,26 @@ export interface operations {
26585
27148
  };
26586
27149
  };
26587
27150
  };
27151
+ 402: {
27152
+ headers: {
27153
+ [name: string]: unknown;
27154
+ };
27155
+ content: {
27156
+ "application/json": {
27157
+ /**
27158
+ * @description The error code identifying the type of error.
27159
+ * @example production_feature_requires_billing
27160
+ * @constant
27161
+ */
27162
+ code: "production_feature_requires_billing";
27163
+ /**
27164
+ * @description A human-readable description of the error.
27165
+ * @example Request could not be processed.
27166
+ */
27167
+ message: string;
27168
+ };
27169
+ };
27170
+ };
26588
27171
  /** @description Forbidden */
26589
27172
  403: {
26590
27173
  headers: {
@@ -26707,6 +27290,26 @@ export interface operations {
26707
27290
  };
26708
27291
  };
26709
27292
  };
27293
+ 402: {
27294
+ headers: {
27295
+ [name: string]: unknown;
27296
+ };
27297
+ content: {
27298
+ "application/json": {
27299
+ /**
27300
+ * @description The error code identifying the type of error.
27301
+ * @example production_feature_requires_billing
27302
+ * @constant
27303
+ */
27304
+ code: "production_feature_requires_billing";
27305
+ /**
27306
+ * @description A human-readable description of the error.
27307
+ * @example Request could not be processed.
27308
+ */
27309
+ message: string;
27310
+ };
27311
+ };
27312
+ };
26710
27313
  /** @description Forbidden */
26711
27314
  403: {
26712
27315
  headers: {
@@ -26786,6 +27389,26 @@ export interface operations {
26786
27389
  "application/json": components["schemas"]["UserRoleAssignmentList"];
26787
27390
  };
26788
27391
  };
27392
+ 402: {
27393
+ headers: {
27394
+ [name: string]: unknown;
27395
+ };
27396
+ content: {
27397
+ "application/json": {
27398
+ /**
27399
+ * @description The error code identifying the type of error.
27400
+ * @example production_feature_requires_billing
27401
+ * @constant
27402
+ */
27403
+ code: "production_feature_requires_billing";
27404
+ /**
27405
+ * @description A human-readable description of the error.
27406
+ * @example Request could not be processed.
27407
+ */
27408
+ message: string;
27409
+ };
27410
+ };
27411
+ };
26789
27412
  /** @description Forbidden */
26790
27413
  403: {
26791
27414
  headers: {
@@ -30171,7 +30794,10 @@ export interface operations {
30171
30794
  DataIntegrationsController_createApiKeyConnection: {
30172
30795
  parameters: {
30173
30796
  query?: never;
30174
- header?: never;
30797
+ header?: {
30798
+ /** @description Makes retries of this explicit add return the connection the first attempt created instead of creating another. Reuse the same key for every retry of one request. A matching retry within 24 hours returns the existing connection; reusing the key for a different owner, integration, or authentication method, or after 24 hours while that connection exists, returns 409 `idempotency_key_conflict`. If that connection was deleted, the key creates a new one. Requests without a key are not retry-safe. */
30799
+ "idempotency-key"?: string;
30800
+ };
30175
30801
  path: {
30176
30802
  /** @description The identifier of the integration. */
30177
30803
  slug: string;
@@ -30308,7 +30934,7 @@ export interface operations {
30308
30934
  };
30309
30935
  };
30310
30936
  };
30311
- /** @description `connected_account_limit_reached` when the provider and owner already have 25 connections. */
30937
+ /** @description `connected_account_limit_reached` when the provider and owner already have 25 connections, or `idempotency_key_conflict` when the `Idempotency-Key` was already used for a different connection request or its replay window has passed. */
30312
30938
  409: {
30313
30939
  headers: {
30314
30940
  [name: string]: unknown;
@@ -30318,9 +30944,9 @@ export interface operations {
30318
30944
  /**
30319
30945
  * @description The error code identifying the type of error.
30320
30946
  * @example connected_account_limit_reached
30321
- * @constant
30947
+ * @enum {string}
30322
30948
  */
30323
- code: "connected_account_limit_reached";
30949
+ code: "connected_account_limit_reached" | "idempotency_key_conflict";
30324
30950
  /**
30325
30951
  * @description A human-readable description of the error.
30326
30952
  * @example Request could not be processed.
@@ -30887,7 +31513,10 @@ export interface operations {
30887
31513
  DataIntegrationsController_createClientCredentialsConnection: {
30888
31514
  parameters: {
30889
31515
  query?: never;
30890
- header?: never;
31516
+ header?: {
31517
+ /** @description Makes retries of this explicit add return the connection the first attempt created instead of creating another. Reuse the same key for every retry of one request. A matching retry within 24 hours returns the existing connection; reusing the key for a different owner, integration, or authentication method, or after 24 hours while that connection exists, returns 409 `idempotency_key_conflict`. If that connection was deleted, the key creates a new one. Requests without a key are not retry-safe. */
31518
+ "idempotency-key"?: string;
31519
+ };
30891
31520
  path: {
30892
31521
  /** @description The identifier of the integration. */
30893
31522
  slug: string;
@@ -31037,7 +31666,7 @@ export interface operations {
31037
31666
  };
31038
31667
  };
31039
31668
  };
31040
- /** @description `connected_account_limit_reached` when the provider and owner already have 25 connections. */
31669
+ /** @description `connected_account_limit_reached` when the provider and owner already have 25 connections, or `idempotency_key_conflict` when the `Idempotency-Key` was already used for a different connection request or its replay window has passed. */
31041
31670
  409: {
31042
31671
  headers: {
31043
31672
  [name: string]: unknown;
@@ -31047,9 +31676,9 @@ export interface operations {
31047
31676
  /**
31048
31677
  * @description The error code identifying the type of error.
31049
31678
  * @example connected_account_limit_reached
31050
- * @constant
31679
+ * @enum {string}
31051
31680
  */
31052
- code: "connected_account_limit_reached";
31681
+ code: "connected_account_limit_reached" | "idempotency_key_conflict";
31053
31682
  /**
31054
31683
  * @description A human-readable description of the error.
31055
31684
  * @example Request could not be processed.
@@ -32518,6 +33147,26 @@ export interface operations {
32518
33147
  };
32519
33148
  };
32520
33149
  };
33150
+ 409: {
33151
+ headers: {
33152
+ [name: string]: unknown;
33153
+ };
33154
+ content: {
33155
+ "application/json": {
33156
+ /**
33157
+ * @description The error code identifying the type of error.
33158
+ * @example concurrent_flag_target_update
33159
+ * @constant
33160
+ */
33161
+ code: "concurrent_flag_target_update";
33162
+ /**
33163
+ * @description A human-readable description of the error.
33164
+ * @example Request could not be processed.
33165
+ */
33166
+ message: string;
33167
+ };
33168
+ };
33169
+ };
32521
33170
  };
32522
33171
  };
32523
33172
  FeatureFlagsController_enableFlag: {
@@ -32629,6 +33278,26 @@ export interface operations {
32629
33278
  };
32630
33279
  };
32631
33280
  };
33281
+ 409: {
33282
+ headers: {
33283
+ [name: string]: unknown;
33284
+ };
33285
+ content: {
33286
+ "application/json": {
33287
+ /**
33288
+ * @description The error code identifying the type of error.
33289
+ * @example concurrent_flag_target_update
33290
+ * @constant
33291
+ */
33292
+ code: "concurrent_flag_target_update";
33293
+ /**
33294
+ * @description A human-readable description of the error.
33295
+ * @example Request could not be processed.
33296
+ */
33297
+ message: string;
33298
+ };
33299
+ };
33300
+ };
32632
33301
  };
32633
33302
  };
32634
33303
  FlagTargetsController_createTarget: {
@@ -33502,6 +34171,26 @@ export interface operations {
33502
34171
  "application/json": components["schemas"]["AuditLogsRetentionJson"];
33503
34172
  };
33504
34173
  };
34174
+ 402: {
34175
+ headers: {
34176
+ [name: string]: unknown;
34177
+ };
34178
+ content: {
34179
+ "application/json": {
34180
+ /**
34181
+ * @description The error code identifying the type of error.
34182
+ * @example production_feature_requires_billing
34183
+ * @constant
34184
+ */
34185
+ code: "production_feature_requires_billing";
34186
+ /**
34187
+ * @description A human-readable description of the error.
34188
+ * @example Request could not be processed.
34189
+ */
34190
+ message: string;
34191
+ };
34192
+ };
34193
+ };
33505
34194
  /** @description Not Found */
33506
34195
  404: {
33507
34196
  headers: {
@@ -33544,6 +34233,26 @@ export interface operations {
33544
34233
  "application/json": components["schemas"]["AuditLogsRetentionJson"];
33545
34234
  };
33546
34235
  };
34236
+ 402: {
34237
+ headers: {
34238
+ [name: string]: unknown;
34239
+ };
34240
+ content: {
34241
+ "application/json": {
34242
+ /**
34243
+ * @description The error code identifying the type of error.
34244
+ * @example production_feature_requires_billing
34245
+ * @constant
34246
+ */
34247
+ code: "production_feature_requires_billing";
34248
+ /**
34249
+ * @description A human-readable description of the error.
34250
+ * @example Request could not be processed.
34251
+ */
34252
+ message: string;
34253
+ };
34254
+ };
34255
+ };
33547
34256
  /** @description Not Found */
33548
34257
  404: {
33549
34258
  headers: {
@@ -34548,6 +35257,8 @@ export interface operations {
34548
35257
  * "instance_url": "https://example.my.salesforce.com"
34549
35258
  * },
34550
35259
  * "state": "connected",
35260
+ * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35261
+ * "state_reason": null,
34551
35262
  * "created_at": "2024-01-16T14:20:00.000Z",
34552
35263
  * "updated_at": "2024-01-16T14:20:00.000Z"
34553
35264
  * }
@@ -34655,6 +35366,8 @@ export interface operations {
34655
35366
  * "instance_url": "https://example.my.salesforce.com"
34656
35367
  * },
34657
35368
  * "state": "connected",
35369
+ * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35370
+ * "state_reason": null,
34658
35371
  * "created_at": "2024-01-16T14:20:00.000Z",
34659
35372
  * "updated_at": "2024-01-16T14:20:00.000Z"
34660
35373
  * }
@@ -34762,7 +35475,10 @@ export interface operations {
34762
35475
  DataIntegrationsOrganizationController_createOrganizationDataInstallation: {
34763
35476
  parameters: {
34764
35477
  query?: never;
34765
- header?: never;
35478
+ header?: {
35479
+ /** @description Makes retries of this explicit add return the connection the first attempt created instead of creating another. Reuse the same key for every retry of one request. A matching retry within 24 hours returns the existing connection; reusing the key for a different owner, integration, or authentication method, or after 24 hours while that connection exists, returns 409 `idempotency_key_conflict`. If that connection was deleted, the key creates a new one. Requests without a key are not retry-safe. */
35480
+ "idempotency-key"?: string;
35481
+ };
34766
35482
  path: {
34767
35483
  /** @description An [Organization](/reference/organization) identifier. */
34768
35484
  organization_id: string;
@@ -34804,6 +35520,8 @@ export interface operations {
34804
35520
  * "instance_url": "https://example.my.salesforce.com"
34805
35521
  * },
34806
35522
  * "state": "connected",
35523
+ * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35524
+ * "state_reason": null,
34807
35525
  * "created_at": "2024-01-16T14:20:00.000Z",
34808
35526
  * "updated_at": "2024-01-16T14:20:00.000Z"
34809
35527
  * }
@@ -34860,7 +35578,7 @@ export interface operations {
34860
35578
  };
34861
35579
  };
34862
35580
  };
34863
- /** @description The compatibility connection already exists for this organization and integration, or `connected_account_limit_reached` when `connection_intent: add` would create a standard connection and the owner already has 25 connections. */
35581
+ /** @description The compatibility connection already exists for this organization and integration, `connected_account_limit_reached` when `connection_intent: add` would create a standard connection and the owner already has 25 connections, or `idempotency_key_conflict` when the `Idempotency-Key` was already used for a different connection request or its replay window has passed. */
34864
35582
  409: {
34865
35583
  headers: {
34866
35584
  [name: string]: unknown;
@@ -34870,9 +35588,9 @@ export interface operations {
34870
35588
  /**
34871
35589
  * @description The error code identifying the type of error.
34872
35590
  * @example connected_account_limit_reached
34873
- * @constant
35591
+ * @enum {string}
34874
35592
  */
34875
- code: "connected_account_limit_reached";
35593
+ code: "connected_account_limit_reached" | "idempotency_key_conflict";
34876
35594
  /**
34877
35595
  * @description A human-readable description of the error.
34878
35596
  * @example Request could not be processed.
@@ -35119,6 +35837,8 @@ export interface operations {
35119
35837
  * "instance_url": "https://example.my.salesforce.com"
35120
35838
  * },
35121
35839
  * "state": "connected",
35840
+ * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35841
+ * "state_reason": null,
35122
35842
  * "created_at": "2024-01-16T14:20:00.000Z",
35123
35843
  * "updated_at": "2024-01-16T14:20:00.000Z",
35124
35844
  * "userlandUserId": null,
@@ -35147,6 +35867,8 @@ export interface operations {
35147
35867
  * "instance_url": "https://example.my.salesforce.com"
35148
35868
  * },
35149
35869
  * "state": "connected",
35870
+ * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35871
+ * "state_reason": null,
35150
35872
  * "created_at": "2024-01-16T14:20:00.000Z",
35151
35873
  * "updated_at": "2024-01-16T14:20:00.000Z",
35152
35874
  * "userlandUserId": null,
@@ -35450,6 +36172,26 @@ export interface operations {
35450
36172
  };
35451
36173
  content?: never;
35452
36174
  };
36175
+ 402: {
36176
+ headers: {
36177
+ [name: string]: unknown;
36178
+ };
36179
+ content: {
36180
+ "application/json": {
36181
+ /**
36182
+ * @description The error code identifying the type of error.
36183
+ * @example production_feature_requires_billing
36184
+ * @constant
36185
+ */
36186
+ code: "production_feature_requires_billing";
36187
+ /**
36188
+ * @description A human-readable description of the error.
36189
+ * @example Request could not be processed.
36190
+ */
36191
+ message: string;
36192
+ };
36193
+ };
36194
+ };
35453
36195
  /** @description Forbidden */
35454
36196
  403: {
35455
36197
  headers: {
@@ -35751,6 +36493,26 @@ export interface operations {
35751
36493
  };
35752
36494
  };
35753
36495
  };
36496
+ 402: {
36497
+ headers: {
36498
+ [name: string]: unknown;
36499
+ };
36500
+ content: {
36501
+ "application/json": {
36502
+ /**
36503
+ * @description The error code identifying the type of error.
36504
+ * @example production_feature_requires_billing
36505
+ * @constant
36506
+ */
36507
+ code: "production_feature_requires_billing";
36508
+ /**
36509
+ * @description A human-readable description of the error.
36510
+ * @example Request could not be processed.
36511
+ */
36512
+ message: string;
36513
+ };
36514
+ };
36515
+ };
35754
36516
  /** @description Forbidden */
35755
36517
  403: {
35756
36518
  headers: {
@@ -35798,6 +36560,58 @@ export interface operations {
35798
36560
  };
35799
36561
  };
35800
36562
  };
36563
+ PortalSessionsController_revokeLink: {
36564
+ parameters: {
36565
+ query?: never;
36566
+ header?: never;
36567
+ path?: never;
36568
+ cookie?: never;
36569
+ };
36570
+ requestBody: {
36571
+ content: {
36572
+ "application/json": components["schemas"]["RevokeLinkDto"];
36573
+ };
36574
+ };
36575
+ responses: {
36576
+ /** @description OK */
36577
+ 200: {
36578
+ headers: {
36579
+ [name: string]: unknown;
36580
+ };
36581
+ content?: never;
36582
+ };
36583
+ /** @description Not Found */
36584
+ 404: {
36585
+ headers: {
36586
+ [name: string]: unknown;
36587
+ };
36588
+ content: {
36589
+ "application/json": {
36590
+ /**
36591
+ * @description A human-readable description of the error.
36592
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
36593
+ */
36594
+ message: string;
36595
+ };
36596
+ };
36597
+ };
36598
+ /** @description Unprocessable Entity */
36599
+ 422: {
36600
+ headers: {
36601
+ [name: string]: unknown;
36602
+ };
36603
+ content: {
36604
+ "application/json": {
36605
+ /**
36606
+ * @description A human-readable description of the error.
36607
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
36608
+ */
36609
+ message: string;
36610
+ };
36611
+ };
36612
+ };
36613
+ };
36614
+ };
35801
36615
  RadarStandaloneController_assess: {
35802
36616
  parameters: {
35803
36617
  query?: never;
@@ -35869,6 +36683,26 @@ export interface operations {
35869
36683
  };
35870
36684
  };
35871
36685
  };
36686
+ 402: {
36687
+ headers: {
36688
+ [name: string]: unknown;
36689
+ };
36690
+ content: {
36691
+ "application/json": {
36692
+ /**
36693
+ * @description The error code identifying the type of error.
36694
+ * @example production_feature_requires_billing
36695
+ * @constant
36696
+ */
36697
+ code: "production_feature_requires_billing";
36698
+ /**
36699
+ * @description A human-readable description of the error.
36700
+ * @example Request could not be processed.
36701
+ */
36702
+ message: string;
36703
+ };
36704
+ };
36705
+ };
35872
36706
  };
35873
36707
  };
35874
36708
  RadarStandaloneController_updateRadarAttempt: {
@@ -35922,6 +36756,26 @@ export interface operations {
35922
36756
  };
35923
36757
  };
35924
36758
  };
36759
+ 402: {
36760
+ headers: {
36761
+ [name: string]: unknown;
36762
+ };
36763
+ content: {
36764
+ "application/json": {
36765
+ /**
36766
+ * @description The error code identifying the type of error.
36767
+ * @example production_feature_requires_billing
36768
+ * @constant
36769
+ */
36770
+ code: "production_feature_requires_billing";
36771
+ /**
36772
+ * @description A human-readable description of the error.
36773
+ * @example Request could not be processed.
36774
+ */
36775
+ message: string;
36776
+ };
36777
+ };
36778
+ };
35925
36779
  /** @description Not Found */
35926
36780
  404: {
35927
36781
  headers: {
@@ -36001,6 +36855,26 @@ export interface operations {
36001
36855
  };
36002
36856
  };
36003
36857
  };
36858
+ 402: {
36859
+ headers: {
36860
+ [name: string]: unknown;
36861
+ };
36862
+ content: {
36863
+ "application/json": {
36864
+ /**
36865
+ * @description The error code identifying the type of error.
36866
+ * @example production_feature_requires_billing
36867
+ * @constant
36868
+ */
36869
+ code: "production_feature_requires_billing";
36870
+ /**
36871
+ * @description A human-readable description of the error.
36872
+ * @example Request could not be processed.
36873
+ */
36874
+ message: string;
36875
+ };
36876
+ };
36877
+ };
36004
36878
  };
36005
36879
  };
36006
36880
  RadarStandaloneController_deleteRadarListEntry: {
@@ -38318,6 +39192,26 @@ export interface operations {
38318
39192
  };
38319
39193
  };
38320
39194
  };
39195
+ 402: {
39196
+ headers: {
39197
+ [name: string]: unknown;
39198
+ };
39199
+ content: {
39200
+ "application/json": {
39201
+ /**
39202
+ * @description The error code identifying the type of error.
39203
+ * @example production_feature_requires_billing
39204
+ * @constant
39205
+ */
39206
+ code: "production_feature_requires_billing";
39207
+ /**
39208
+ * @description A human-readable description of the error.
39209
+ * @example Request could not be processed.
39210
+ */
39211
+ message: string;
39212
+ };
39213
+ };
39214
+ };
38321
39215
  /** @description Not Found */
38322
39216
  404: {
38323
39217
  headers: {
@@ -38640,6 +39534,26 @@ export interface operations {
38640
39534
  };
38641
39535
  };
38642
39536
  };
39537
+ 402: {
39538
+ headers: {
39539
+ [name: string]: unknown;
39540
+ };
39541
+ content: {
39542
+ "application/json": {
39543
+ /**
39544
+ * @description The error code identifying the type of error.
39545
+ * @example production_feature_requires_billing
39546
+ * @constant
39547
+ */
39548
+ code: "production_feature_requires_billing";
39549
+ /**
39550
+ * @description A human-readable description of the error.
39551
+ * @example Request could not be processed.
39552
+ */
39553
+ message: string;
39554
+ };
39555
+ };
39556
+ };
38643
39557
  /** @description Not Found */
38644
39558
  404: {
38645
39559
  headers: {
@@ -42394,7 +43308,10 @@ export interface operations {
42394
43308
  /** @description An [Organization](/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
42395
43309
  organization_id?: string;
42396
43310
  };
42397
- header?: never;
43311
+ header?: {
43312
+ /** @description Makes retries of this explicit add return the connection the first attempt created instead of creating another. Reuse the same key for every retry of one request. A matching retry within 24 hours returns the existing connection; reusing the key for a different owner, integration, or authentication method, or after 24 hours while that connection exists, returns 409 `idempotency_key_conflict`. If that connection was deleted, the key creates a new one. Requests without a key are not retry-safe. */
43313
+ "idempotency-key"?: string;
43314
+ };
42398
43315
  path: {
42399
43316
  /** @description A [User](/reference/authkit/user) identifier. */
42400
43317
  user_id: string;
@@ -42452,7 +43369,7 @@ export interface operations {
42452
43369
  };
42453
43370
  };
42454
43371
  };
42455
- /** @description The compatibility connection already exists for this user, integration, and organization, or `connected_account_limit_reached` when `connection_intent: add` would create a standard connection and the owner already has 25 connections. */
43372
+ /** @description The compatibility connection already exists for this user, integration, and organization, `connected_account_limit_reached` when `connection_intent: add` would create a standard connection and the owner already has 25 connections, or `idempotency_key_conflict` when the `Idempotency-Key` was already used for a different connection request or its replay window has passed. */
42456
43373
  409: {
42457
43374
  headers: {
42458
43375
  [name: string]: unknown;
@@ -42462,9 +43379,9 @@ export interface operations {
42462
43379
  /**
42463
43380
  * @description The error code identifying the type of error.
42464
43381
  * @example connected_account_limit_reached
42465
- * @constant
43382
+ * @enum {string}
42466
43383
  */
42467
- code: "connected_account_limit_reached";
43384
+ code: "connected_account_limit_reached" | "idempotency_key_conflict";
42468
43385
  /**
42469
43386
  * @description A human-readable description of the error.
42470
43387
  * @example Request could not be processed.
@@ -42895,6 +43812,26 @@ export interface operations {
42895
43812
  };
42896
43813
  };
42897
43814
  };
43815
+ 402: {
43816
+ headers: {
43817
+ [name: string]: unknown;
43818
+ };
43819
+ content: {
43820
+ "application/json": {
43821
+ /**
43822
+ * @description The error code identifying the type of error.
43823
+ * @example production_feature_requires_billing
43824
+ * @constant
43825
+ */
43826
+ code: "production_feature_requires_billing";
43827
+ /**
43828
+ * @description A human-readable description of the error.
43829
+ * @example Request could not be processed.
43830
+ */
43831
+ message: string;
43832
+ };
43833
+ };
43834
+ };
42898
43835
  /** @description Not Found */
42899
43836
  404: {
42900
43837
  headers: {