@workos/openapi-spec 0.123.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.
@@ -9266,6 +9301,16 @@ export interface components {
9266
9301
  * @enum {string}
9267
9302
  */
9268
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;
9269
9314
  /**
9270
9315
  * Format: date-time
9271
9316
  * @description An ISO 8601 timestamp.
@@ -18572,12 +18617,25 @@ export interface components {
18572
18617
  /**
18573
18618
  * @description The state of the connected account:
18574
18619
  * - `connected`: The connection is active and tokens are valid.
18575
- * - `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.
18576
18621
  * - `disconnected`: The connection has been disconnected.
18577
18622
  * @example connected
18578
18623
  * @enum {string}
18579
18624
  */
18580
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;
18581
18639
  /**
18582
18640
  * @description The timestamp when the connection was created.
18583
18641
  * @example 2024-01-16T14:20:00.000Z
@@ -18778,12 +18836,25 @@ export interface components {
18778
18836
  /**
18779
18837
  * @description The state of the connected account:
18780
18838
  * - `connected`: The connection is active and tokens are valid.
18781
- * - `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.
18782
18840
  * - `disconnected`: The connection has been disconnected.
18783
18841
  * @example connected
18784
18842
  * @enum {string}
18785
18843
  */
18786
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;
18787
18858
  /**
18788
18859
  * @description The timestamp when the connection was created.
18789
18860
  * @example 2024-01-16T14:20:00.000Z
@@ -18894,12 +18965,25 @@ export interface components {
18894
18965
  /**
18895
18966
  * @description The state of the connected account:
18896
18967
  * - `connected`: The connection is active and tokens are valid.
18897
- * - `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.
18898
18969
  * - `disconnected`: The connection has been disconnected.
18899
18970
  * @example connected
18900
18971
  * @enum {string}
18901
18972
  */
18902
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;
18903
18987
  /**
18904
18988
  * @description The timestamp when the connection was created.
18905
18989
  * @example 2024-01-16T14:20:00.000Z
@@ -19011,12 +19095,25 @@ export interface components {
19011
19095
  /**
19012
19096
  * @description The state of the connected account:
19013
19097
  * - `connected`: The connection is active and tokens are valid.
19014
- * - `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.
19015
19099
  * - `disconnected`: The connection has been disconnected.
19016
19100
  * @example connected
19017
19101
  * @enum {string}
19018
19102
  */
19019
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;
19020
19117
  /**
19021
19118
  * @description The timestamp when the connection was created.
19022
19119
  * @example 2024-01-16T14:20:00.000Z
@@ -19032,7 +19129,7 @@ export interface components {
19032
19129
  /**
19033
19130
  * Format: password
19034
19131
  * @description An ephemeral link to initiate the Admin Portal.
19035
- * @example https://setup.workos.com?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
19132
+ * @example https://setup.workos.com/init?apiToken=01EHZNVPK3SFK441A1RGBFSHRT
19036
19133
  */
19037
19134
  link: string;
19038
19135
  };
@@ -22287,6 +22384,26 @@ export interface operations {
22287
22384
  };
22288
22385
  };
22289
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
+ };
22290
22407
  /** @description Not Found */
22291
22408
  404: {
22292
22409
  headers: {
@@ -22371,6 +22488,26 @@ export interface operations {
22371
22488
  };
22372
22489
  };
22373
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
+ };
22374
22511
  /** @description Not Found */
22375
22512
  404: {
22376
22513
  headers: {
@@ -22428,6 +22565,26 @@ export interface operations {
22428
22565
  "application/json": components["schemas"]["AuditLogSchemaJson"];
22429
22566
  };
22430
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
+ };
22431
22588
  /** @description Unprocessable Entity */
22432
22589
  422: {
22433
22590
  headers: {
@@ -22449,7 +22606,7 @@ export interface operations {
22449
22606
  parameters: {
22450
22607
  query?: never;
22451
22608
  header?: {
22452
- /** @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. */
22453
22610
  "idempotency-key"?: string;
22454
22611
  };
22455
22612
  path?: never;
@@ -22520,6 +22677,26 @@ export interface operations {
22520
22677
  };
22521
22678
  };
22522
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
+ };
22523
22700
  /** @description Not Found */
22524
22701
  404: {
22525
22702
  headers: {
@@ -22671,6 +22848,26 @@ export interface operations {
22671
22848
  };
22672
22849
  };
22673
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
+ };
22674
22871
  };
22675
22872
  };
22676
22873
  AuditLogExportsController_export: {
@@ -22704,6 +22901,26 @@ export interface operations {
22704
22901
  "application/json": components["schemas"]["AuditLogExportJson"];
22705
22902
  };
22706
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
+ };
22707
22924
  /** @description Audit Log Export not found. */
22708
22925
  404: {
22709
22926
  headers: {
@@ -23242,6 +23459,26 @@ export interface operations {
23242
23459
  "application/json": components["schemas"]["GroupRoleAssignmentList"];
23243
23460
  };
23244
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
+ };
23245
23482
  /** @description Forbidden */
23246
23483
  403: {
23247
23484
  headers: {
@@ -23299,6 +23536,26 @@ export interface operations {
23299
23536
  "application/json": components["schemas"]["GroupRoleAssignmentList"];
23300
23537
  };
23301
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
+ };
23302
23559
  /** @description Forbidden */
23303
23560
  403: {
23304
23561
  headers: {
@@ -23371,6 +23628,26 @@ export interface operations {
23371
23628
  "application/json": components["schemas"]["GroupRoleAssignment"];
23372
23629
  };
23373
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
+ };
23374
23651
  /** @description Forbidden */
23375
23652
  403: {
23376
23653
  headers: {
@@ -23531,6 +23808,26 @@ export interface operations {
23531
23808
  "application/json": components["schemas"]["GroupRoleAssignment"];
23532
23809
  };
23533
23810
  };
23811
+ 402: {
23812
+ headers: {
23813
+ [name: string]: unknown;
23814
+ };
23815
+ content: {
23816
+ "application/json": {
23817
+ /**
23818
+ * @description The error code identifying the type of error.
23819
+ * @example production_feature_requires_billing
23820
+ * @constant
23821
+ */
23822
+ code: "production_feature_requires_billing";
23823
+ /**
23824
+ * @description A human-readable description of the error.
23825
+ * @example Request could not be processed.
23826
+ */
23827
+ message: string;
23828
+ };
23829
+ };
23830
+ };
23534
23831
  /** @description Forbidden */
23535
23832
  403: {
23536
23833
  headers: {
@@ -23641,6 +23938,26 @@ export interface operations {
23641
23938
  "application/json": components["schemas"]["AuthorizationCheck"];
23642
23939
  };
23643
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
+ };
23644
23961
  /** @description Forbidden */
23645
23962
  403: {
23646
23963
  headers: {
@@ -23747,6 +24064,26 @@ export interface operations {
23747
24064
  };
23748
24065
  };
23749
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
+ };
23750
24087
  /** @description Forbidden */
23751
24088
  403: {
23752
24089
  headers: {
@@ -23826,6 +24163,26 @@ export interface operations {
23826
24163
  "application/json": components["schemas"]["AuthorizationPermissionList"];
23827
24164
  };
23828
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
+ };
23829
24186
  /** @description Forbidden */
23830
24187
  403: {
23831
24188
  headers: {
@@ -23907,6 +24264,26 @@ export interface operations {
23907
24264
  "application/json": components["schemas"]["AuthorizationPermissionList"];
23908
24265
  };
23909
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
+ };
23910
24287
  /** @description Forbidden */
23911
24288
  403: {
23912
24289
  headers: {
@@ -23990,6 +24367,26 @@ export interface operations {
23990
24367
  "application/json": components["schemas"]["UserRoleAssignmentList"];
23991
24368
  };
23992
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
+ };
23993
24390
  /** @description Forbidden */
23994
24391
  403: {
23995
24392
  headers: {
@@ -24069,6 +24466,26 @@ export interface operations {
24069
24466
  "application/json": components["schemas"]["UserRoleAssignment"];
24070
24467
  };
24071
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
+ };
24072
24489
  /** @description Forbidden */
24073
24490
  403: {
24074
24491
  headers: {
@@ -25203,6 +25620,26 @@ export interface operations {
25203
25620
  "application/json": components["schemas"]["AuthorizationResource"];
25204
25621
  };
25205
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
+ };
25206
25643
  /** @description Forbidden */
25207
25644
  403: {
25208
25645
  headers: {
@@ -25449,6 +25886,26 @@ export interface operations {
25449
25886
  };
25450
25887
  };
25451
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
+ };
25452
25909
  /** @description Forbidden */
25453
25910
  403: {
25454
25911
  headers: {
@@ -25575,6 +26032,26 @@ export interface operations {
25575
26032
  };
25576
26033
  };
25577
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
+ };
25578
26055
  /** @description Forbidden */
25579
26056
  403: {
25580
26057
  headers: {
@@ -25658,6 +26135,26 @@ export interface operations {
25658
26135
  "application/json": components["schemas"]["UserRoleAssignmentList"];
25659
26136
  };
25660
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
+ };
25661
26158
  /** @description Forbidden */
25662
26159
  403: {
25663
26160
  headers: {
@@ -26098,6 +26595,26 @@ export interface operations {
26098
26595
  };
26099
26596
  };
26100
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
+ };
26101
26618
  /** @description Forbidden */
26102
26619
  403: {
26103
26620
  headers: {
@@ -26238,6 +26755,26 @@ export interface operations {
26238
26755
  };
26239
26756
  };
26240
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
+ };
26241
26778
  /** @description Forbidden */
26242
26779
  403: {
26243
26780
  headers: {
@@ -26338,6 +26875,26 @@ export interface operations {
26338
26875
  "application/json": components["schemas"]["AuthorizationResource"];
26339
26876
  };
26340
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
+ };
26341
26898
  /** @description Forbidden */
26342
26899
  403: {
26343
26900
  headers: {
@@ -26591,6 +27148,26 @@ export interface operations {
26591
27148
  };
26592
27149
  };
26593
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
+ };
26594
27171
  /** @description Forbidden */
26595
27172
  403: {
26596
27173
  headers: {
@@ -26713,6 +27290,26 @@ export interface operations {
26713
27290
  };
26714
27291
  };
26715
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
+ };
26716
27313
  /** @description Forbidden */
26717
27314
  403: {
26718
27315
  headers: {
@@ -26792,6 +27389,26 @@ export interface operations {
26792
27389
  "application/json": components["schemas"]["UserRoleAssignmentList"];
26793
27390
  };
26794
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
+ };
26795
27412
  /** @description Forbidden */
26796
27413
  403: {
26797
27414
  headers: {
@@ -30177,7 +30794,10 @@ export interface operations {
30177
30794
  DataIntegrationsController_createApiKeyConnection: {
30178
30795
  parameters: {
30179
30796
  query?: never;
30180
- 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
+ };
30181
30801
  path: {
30182
30802
  /** @description The identifier of the integration. */
30183
30803
  slug: string;
@@ -30314,7 +30934,7 @@ export interface operations {
30314
30934
  };
30315
30935
  };
30316
30936
  };
30317
- /** @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. */
30318
30938
  409: {
30319
30939
  headers: {
30320
30940
  [name: string]: unknown;
@@ -30324,9 +30944,9 @@ export interface operations {
30324
30944
  /**
30325
30945
  * @description The error code identifying the type of error.
30326
30946
  * @example connected_account_limit_reached
30327
- * @constant
30947
+ * @enum {string}
30328
30948
  */
30329
- code: "connected_account_limit_reached";
30949
+ code: "connected_account_limit_reached" | "idempotency_key_conflict";
30330
30950
  /**
30331
30951
  * @description A human-readable description of the error.
30332
30952
  * @example Request could not be processed.
@@ -30893,7 +31513,10 @@ export interface operations {
30893
31513
  DataIntegrationsController_createClientCredentialsConnection: {
30894
31514
  parameters: {
30895
31515
  query?: never;
30896
- 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
+ };
30897
31520
  path: {
30898
31521
  /** @description The identifier of the integration. */
30899
31522
  slug: string;
@@ -31043,7 +31666,7 @@ export interface operations {
31043
31666
  };
31044
31667
  };
31045
31668
  };
31046
- /** @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. */
31047
31670
  409: {
31048
31671
  headers: {
31049
31672
  [name: string]: unknown;
@@ -31053,9 +31676,9 @@ export interface operations {
31053
31676
  /**
31054
31677
  * @description The error code identifying the type of error.
31055
31678
  * @example connected_account_limit_reached
31056
- * @constant
31679
+ * @enum {string}
31057
31680
  */
31058
- code: "connected_account_limit_reached";
31681
+ code: "connected_account_limit_reached" | "idempotency_key_conflict";
31059
31682
  /**
31060
31683
  * @description A human-readable description of the error.
31061
31684
  * @example Request could not be processed.
@@ -32524,6 +33147,26 @@ export interface operations {
32524
33147
  };
32525
33148
  };
32526
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
+ };
32527
33170
  };
32528
33171
  };
32529
33172
  FeatureFlagsController_enableFlag: {
@@ -32635,6 +33278,26 @@ export interface operations {
32635
33278
  };
32636
33279
  };
32637
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
+ };
32638
33301
  };
32639
33302
  };
32640
33303
  FlagTargetsController_createTarget: {
@@ -33508,6 +34171,26 @@ export interface operations {
33508
34171
  "application/json": components["schemas"]["AuditLogsRetentionJson"];
33509
34172
  };
33510
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
+ };
33511
34194
  /** @description Not Found */
33512
34195
  404: {
33513
34196
  headers: {
@@ -33550,6 +34233,26 @@ export interface operations {
33550
34233
  "application/json": components["schemas"]["AuditLogsRetentionJson"];
33551
34234
  };
33552
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
+ };
33553
34256
  /** @description Not Found */
33554
34257
  404: {
33555
34258
  headers: {
@@ -34554,6 +35257,8 @@ export interface operations {
34554
35257
  * "instance_url": "https://example.my.salesforce.com"
34555
35258
  * },
34556
35259
  * "state": "connected",
35260
+ * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35261
+ * "state_reason": null,
34557
35262
  * "created_at": "2024-01-16T14:20:00.000Z",
34558
35263
  * "updated_at": "2024-01-16T14:20:00.000Z"
34559
35264
  * }
@@ -34661,6 +35366,8 @@ export interface operations {
34661
35366
  * "instance_url": "https://example.my.salesforce.com"
34662
35367
  * },
34663
35368
  * "state": "connected",
35369
+ * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35370
+ * "state_reason": null,
34664
35371
  * "created_at": "2024-01-16T14:20:00.000Z",
34665
35372
  * "updated_at": "2024-01-16T14:20:00.000Z"
34666
35373
  * }
@@ -34768,7 +35475,10 @@ export interface operations {
34768
35475
  DataIntegrationsOrganizationController_createOrganizationDataInstallation: {
34769
35476
  parameters: {
34770
35477
  query?: never;
34771
- 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
+ };
34772
35482
  path: {
34773
35483
  /** @description An [Organization](/reference/organization) identifier. */
34774
35484
  organization_id: string;
@@ -34810,6 +35520,8 @@ export interface operations {
34810
35520
  * "instance_url": "https://example.my.salesforce.com"
34811
35521
  * },
34812
35522
  * "state": "connected",
35523
+ * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35524
+ * "state_reason": null,
34813
35525
  * "created_at": "2024-01-16T14:20:00.000Z",
34814
35526
  * "updated_at": "2024-01-16T14:20:00.000Z"
34815
35527
  * }
@@ -34866,7 +35578,7 @@ export interface operations {
34866
35578
  };
34867
35579
  };
34868
35580
  };
34869
- /** @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. */
34870
35582
  409: {
34871
35583
  headers: {
34872
35584
  [name: string]: unknown;
@@ -34876,9 +35588,9 @@ export interface operations {
34876
35588
  /**
34877
35589
  * @description The error code identifying the type of error.
34878
35590
  * @example connected_account_limit_reached
34879
- * @constant
35591
+ * @enum {string}
34880
35592
  */
34881
- code: "connected_account_limit_reached";
35593
+ code: "connected_account_limit_reached" | "idempotency_key_conflict";
34882
35594
  /**
34883
35595
  * @description A human-readable description of the error.
34884
35596
  * @example Request could not be processed.
@@ -35125,6 +35837,8 @@ export interface operations {
35125
35837
  * "instance_url": "https://example.my.salesforce.com"
35126
35838
  * },
35127
35839
  * "state": "connected",
35840
+ * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35841
+ * "state_reason": null,
35128
35842
  * "created_at": "2024-01-16T14:20:00.000Z",
35129
35843
  * "updated_at": "2024-01-16T14:20:00.000Z",
35130
35844
  * "userlandUserId": null,
@@ -35153,6 +35867,8 @@ export interface operations {
35153
35867
  * "instance_url": "https://example.my.salesforce.com"
35154
35868
  * },
35155
35869
  * "state": "connected",
35870
+ * "established_by_user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
35871
+ * "state_reason": null,
35156
35872
  * "created_at": "2024-01-16T14:20:00.000Z",
35157
35873
  * "updated_at": "2024-01-16T14:20:00.000Z",
35158
35874
  * "userlandUserId": null,
@@ -35456,6 +36172,26 @@ export interface operations {
35456
36172
  };
35457
36173
  content?: never;
35458
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
+ };
35459
36195
  /** @description Forbidden */
35460
36196
  403: {
35461
36197
  headers: {
@@ -35595,70 +36331,218 @@ export interface operations {
35595
36331
  };
35596
36332
  };
35597
36333
  };
35598
- 503: {
35599
- headers: {
35600
- [name: string]: unknown;
35601
- };
35602
- content: {
35603
- "application/json": {
35604
- /**
35605
- * @description The error code identifying the type of error.
35606
- * @example concurrent_request
35607
- * @constant
35608
- */
35609
- code: "concurrent_request";
35610
- /**
35611
- * @description A human-readable description of the error.
35612
- * @example Request could not be processed.
35613
- */
35614
- message: string;
35615
- };
35616
- };
35617
- };
35618
- };
35619
- };
35620
- TeamsController_createTeam: {
35621
- parameters: {
35622
- query?: never;
35623
- header?: never;
35624
- path?: never;
35625
- cookie?: never;
35626
- };
35627
- requestBody: {
35628
- content: {
35629
- "application/json": components["schemas"]["CreateTeamDto"];
35630
- };
35631
- };
35632
- responses: {
35633
- /** @description Created */
35634
- 201: {
35635
- headers: {
35636
- [name: string]: unknown;
35637
- };
35638
- content: {
35639
- "application/json": components["schemas"]["Team"];
35640
- };
35641
- };
35642
- 409: {
35643
- headers: {
35644
- [name: string]: unknown;
35645
- };
35646
- content: {
35647
- "application/json": {
35648
- /**
35649
- * @description The error code identifying the type of error.
35650
- * @example user_already_exists
35651
- * @constant
35652
- */
35653
- code: "user_already_exists";
35654
- /**
35655
- * @description A human-readable description of the error.
35656
- * @example Request could not be processed.
35657
- */
35658
- message: string;
35659
- };
35660
- };
35661
- };
36334
+ 503: {
36335
+ headers: {
36336
+ [name: string]: unknown;
36337
+ };
36338
+ content: {
36339
+ "application/json": {
36340
+ /**
36341
+ * @description The error code identifying the type of error.
36342
+ * @example concurrent_request
36343
+ * @constant
36344
+ */
36345
+ code: "concurrent_request";
36346
+ /**
36347
+ * @description A human-readable description of the error.
36348
+ * @example Request could not be processed.
36349
+ */
36350
+ message: string;
36351
+ };
36352
+ };
36353
+ };
36354
+ };
36355
+ };
36356
+ TeamsController_createTeam: {
36357
+ parameters: {
36358
+ query?: never;
36359
+ header?: never;
36360
+ path?: never;
36361
+ cookie?: never;
36362
+ };
36363
+ requestBody: {
36364
+ content: {
36365
+ "application/json": components["schemas"]["CreateTeamDto"];
36366
+ };
36367
+ };
36368
+ responses: {
36369
+ /** @description Created */
36370
+ 201: {
36371
+ headers: {
36372
+ [name: string]: unknown;
36373
+ };
36374
+ content: {
36375
+ "application/json": components["schemas"]["Team"];
36376
+ };
36377
+ };
36378
+ 409: {
36379
+ headers: {
36380
+ [name: string]: unknown;
36381
+ };
36382
+ content: {
36383
+ "application/json": {
36384
+ /**
36385
+ * @description The error code identifying the type of error.
36386
+ * @example user_already_exists
36387
+ * @constant
36388
+ */
36389
+ code: "user_already_exists";
36390
+ /**
36391
+ * @description A human-readable description of the error.
36392
+ * @example Request could not be processed.
36393
+ */
36394
+ message: string;
36395
+ };
36396
+ };
36397
+ };
36398
+ /** @description Unprocessable Entity */
36399
+ 422: {
36400
+ headers: {
36401
+ [name: string]: unknown;
36402
+ };
36403
+ content: {
36404
+ "application/json": {
36405
+ /**
36406
+ * @description A human-readable description of the error.
36407
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
36408
+ */
36409
+ message: string;
36410
+ };
36411
+ };
36412
+ };
36413
+ };
36414
+ };
36415
+ TeamsController_getTeam: {
36416
+ parameters: {
36417
+ query?: never;
36418
+ header?: never;
36419
+ path: {
36420
+ /** @description The ID of the team. */
36421
+ team_id: string;
36422
+ };
36423
+ cookie?: never;
36424
+ };
36425
+ requestBody?: never;
36426
+ responses: {
36427
+ /** @description OK */
36428
+ 200: {
36429
+ headers: {
36430
+ [name: string]: unknown;
36431
+ };
36432
+ content: {
36433
+ "application/json": components["schemas"]["Team"];
36434
+ };
36435
+ };
36436
+ /** @description Not Found */
36437
+ 404: {
36438
+ headers: {
36439
+ [name: string]: unknown;
36440
+ };
36441
+ content: {
36442
+ "application/json": {
36443
+ /**
36444
+ * @description The error code identifying the type of error.
36445
+ * @example team_not_found
36446
+ * @constant
36447
+ */
36448
+ code: "team_not_found";
36449
+ /**
36450
+ * @description A human-readable description of the error.
36451
+ * @example Request could not be processed.
36452
+ */
36453
+ message: string;
36454
+ };
36455
+ };
36456
+ };
36457
+ };
36458
+ };
36459
+ PortalSessionsController_create: {
36460
+ parameters: {
36461
+ query?: never;
36462
+ header?: never;
36463
+ path?: never;
36464
+ cookie?: never;
36465
+ };
36466
+ requestBody: {
36467
+ content: {
36468
+ "application/json": components["schemas"]["GenerateLinkDto"];
36469
+ };
36470
+ };
36471
+ responses: {
36472
+ /** @description Created */
36473
+ 201: {
36474
+ headers: {
36475
+ [name: string]: unknown;
36476
+ };
36477
+ content: {
36478
+ "application/json": components["schemas"]["PortalLinkResponse"];
36479
+ };
36480
+ };
36481
+ /** @description Bad Request */
36482
+ 400: {
36483
+ headers: {
36484
+ [name: string]: unknown;
36485
+ };
36486
+ content: {
36487
+ "application/json": {
36488
+ /**
36489
+ * @description A human-readable description of the error.
36490
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
36491
+ */
36492
+ message: string;
36493
+ };
36494
+ };
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
+ };
36516
+ /** @description Forbidden */
36517
+ 403: {
36518
+ headers: {
36519
+ [name: string]: unknown;
36520
+ };
36521
+ content: {
36522
+ "application/json": {
36523
+ /**
36524
+ * @description A human-readable description of the error.
36525
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
36526
+ */
36527
+ message: string;
36528
+ };
36529
+ };
36530
+ };
36531
+ /** @description Not Found */
36532
+ 404: {
36533
+ headers: {
36534
+ [name: string]: unknown;
36535
+ };
36536
+ content: {
36537
+ "application/json": {
36538
+ /**
36539
+ * @description A human-readable description of the error.
36540
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
36541
+ */
36542
+ message: string;
36543
+ };
36544
+ };
36545
+ };
35662
36546
  /** @description Unprocessable Entity */
35663
36547
  422: {
35664
36548
  headers: {
@@ -35676,51 +36560,7 @@ export interface operations {
35676
36560
  };
35677
36561
  };
35678
36562
  };
35679
- TeamsController_getTeam: {
35680
- parameters: {
35681
- query?: never;
35682
- header?: never;
35683
- path: {
35684
- /** @description The ID of the team. */
35685
- team_id: string;
35686
- };
35687
- cookie?: never;
35688
- };
35689
- requestBody?: never;
35690
- responses: {
35691
- /** @description OK */
35692
- 200: {
35693
- headers: {
35694
- [name: string]: unknown;
35695
- };
35696
- content: {
35697
- "application/json": components["schemas"]["Team"];
35698
- };
35699
- };
35700
- /** @description Not Found */
35701
- 404: {
35702
- headers: {
35703
- [name: string]: unknown;
35704
- };
35705
- content: {
35706
- "application/json": {
35707
- /**
35708
- * @description The error code identifying the type of error.
35709
- * @example team_not_found
35710
- * @constant
35711
- */
35712
- code: "team_not_found";
35713
- /**
35714
- * @description A human-readable description of the error.
35715
- * @example Request could not be processed.
35716
- */
35717
- message: string;
35718
- };
35719
- };
35720
- };
35721
- };
35722
- };
35723
- PortalSessionsController_create: {
36563
+ PortalSessionsController_revokeLink: {
35724
36564
  parameters: {
35725
36565
  query?: never;
35726
36566
  header?: never;
@@ -35729,48 +36569,16 @@ export interface operations {
35729
36569
  };
35730
36570
  requestBody: {
35731
36571
  content: {
35732
- "application/json": components["schemas"]["GenerateLinkDto"];
36572
+ "application/json": components["schemas"]["RevokeLinkDto"];
35733
36573
  };
35734
36574
  };
35735
36575
  responses: {
35736
- /** @description Created */
35737
- 201: {
35738
- headers: {
35739
- [name: string]: unknown;
35740
- };
35741
- content: {
35742
- "application/json": components["schemas"]["PortalLinkResponse"];
35743
- };
35744
- };
35745
- /** @description Bad Request */
35746
- 400: {
35747
- headers: {
35748
- [name: string]: unknown;
35749
- };
35750
- content: {
35751
- "application/json": {
35752
- /**
35753
- * @description A human-readable description of the error.
35754
- * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
35755
- */
35756
- message: string;
35757
- };
35758
- };
35759
- };
35760
- /** @description Forbidden */
35761
- 403: {
36576
+ /** @description OK */
36577
+ 200: {
35762
36578
  headers: {
35763
36579
  [name: string]: unknown;
35764
36580
  };
35765
- content: {
35766
- "application/json": {
35767
- /**
35768
- * @description A human-readable description of the error.
35769
- * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
35770
- */
35771
- message: string;
35772
- };
35773
- };
36581
+ content?: never;
35774
36582
  };
35775
36583
  /** @description Not Found */
35776
36584
  404: {
@@ -35875,6 +36683,26 @@ export interface operations {
35875
36683
  };
35876
36684
  };
35877
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
+ };
35878
36706
  };
35879
36707
  };
35880
36708
  RadarStandaloneController_updateRadarAttempt: {
@@ -35928,6 +36756,26 @@ export interface operations {
35928
36756
  };
35929
36757
  };
35930
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
+ };
35931
36779
  /** @description Not Found */
35932
36780
  404: {
35933
36781
  headers: {
@@ -36007,6 +36855,26 @@ export interface operations {
36007
36855
  };
36008
36856
  };
36009
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
+ };
36010
36878
  };
36011
36879
  };
36012
36880
  RadarStandaloneController_deleteRadarListEntry: {
@@ -38324,6 +39192,26 @@ export interface operations {
38324
39192
  };
38325
39193
  };
38326
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
+ };
38327
39215
  /** @description Not Found */
38328
39216
  404: {
38329
39217
  headers: {
@@ -38646,6 +39534,26 @@ export interface operations {
38646
39534
  };
38647
39535
  };
38648
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
+ };
38649
39557
  /** @description Not Found */
38650
39558
  404: {
38651
39559
  headers: {
@@ -42400,7 +43308,10 @@ export interface operations {
42400
43308
  /** @description An [Organization](/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
42401
43309
  organization_id?: string;
42402
43310
  };
42403
- 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
+ };
42404
43315
  path: {
42405
43316
  /** @description A [User](/reference/authkit/user) identifier. */
42406
43317
  user_id: string;
@@ -42458,7 +43369,7 @@ export interface operations {
42458
43369
  };
42459
43370
  };
42460
43371
  };
42461
- /** @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. */
42462
43373
  409: {
42463
43374
  headers: {
42464
43375
  [name: string]: unknown;
@@ -42468,9 +43379,9 @@ export interface operations {
42468
43379
  /**
42469
43380
  * @description The error code identifying the type of error.
42470
43381
  * @example connected_account_limit_reached
42471
- * @constant
43382
+ * @enum {string}
42472
43383
  */
42473
- code: "connected_account_limit_reached";
43384
+ code: "connected_account_limit_reached" | "idempotency_key_conflict";
42474
43385
  /**
42475
43386
  * @description A human-readable description of the error.
42476
43387
  * @example Request could not be processed.
@@ -42901,6 +43812,26 @@ export interface operations {
42901
43812
  };
42902
43813
  };
42903
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
+ };
42904
43835
  /** @description Not Found */
42905
43836
  404: {
42906
43837
  headers: {