@workos/openapi-spec 0.120.0 → 0.122.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
@@ -5558,6 +5558,16 @@ export interface components {
5558
5558
  custom_provider?: components["schemas"]["UpdateCustomProviderDefinitionDto"];
5559
5559
  };
5560
5560
  CreateOrganizationConnectedAccountDto: {
5561
+ /**
5562
+ * @description A mutable, non-unique connection label; null clears it. Not an account identifier.
5563
+ * @example Acme production
5564
+ */
5565
+ account_display_name?: string | null;
5566
+ /**
5567
+ * @description A developer-attested account identifier; null clears it.
5568
+ * @example workspace_123
5569
+ */
5570
+ account_identifier?: string | null;
5561
5571
  /**
5562
5572
  * @description The OAuth access token for the connected account.
5563
5573
  * @example gho_16C7e42F292c6912E7710c838347Ae178B4a
@@ -5601,6 +5611,16 @@ export interface components {
5601
5611
  connection_intent?: "add";
5602
5612
  };
5603
5613
  OrganizationConnectedAccountDto: {
5614
+ /**
5615
+ * @description A mutable, non-unique connection label; null clears it. Not an account identifier.
5616
+ * @example Acme production
5617
+ */
5618
+ account_display_name?: string | null;
5619
+ /**
5620
+ * @description A developer-attested account identifier; null clears it.
5621
+ * @example workspace_123
5622
+ */
5623
+ account_identifier?: string | null;
5604
5624
  /**
5605
5625
  * @description The OAuth access token for the connected account.
5606
5626
  * @example gho_16C7e42F292c6912E7710c838347Ae178B4a
@@ -5638,6 +5658,16 @@ export interface components {
5638
5658
  user_id: string;
5639
5659
  };
5640
5660
  CreateConnectedAccountDto: {
5661
+ /**
5662
+ * @description A mutable, non-unique connection label; null clears it. Not an account identifier.
5663
+ * @example Acme production
5664
+ */
5665
+ account_display_name?: string | null;
5666
+ /**
5667
+ * @description A developer-attested account identifier; null clears it.
5668
+ * @example workspace_123
5669
+ */
5670
+ account_identifier?: string | null;
5641
5671
  /**
5642
5672
  * @description The OAuth access token for the connected account.
5643
5673
  * @example gho_16C7e42F292c6912E7710c838347Ae178B4a
@@ -5676,6 +5706,16 @@ export interface components {
5676
5706
  connection_intent?: "add";
5677
5707
  };
5678
5708
  ConnectedAccountDto: {
5709
+ /**
5710
+ * @description A mutable, non-unique connection label; null clears it. Not an account identifier.
5711
+ * @example Acme production
5712
+ */
5713
+ account_display_name?: string | null;
5714
+ /**
5715
+ * @description A developer-attested account identifier; null clears it.
5716
+ * @example workspace_123
5717
+ */
5718
+ account_identifier?: string | null;
5679
5719
  /**
5680
5720
  * @description The OAuth access token for the connected account.
5681
5721
  * @example gho_16C7e42F292c6912E7710c838347Ae178B4a
@@ -18448,7 +18488,7 @@ export interface components {
18448
18488
  */
18449
18489
  error: "not_installed" | "needs_reauthorization";
18450
18490
  };
18451
- ConnectedAccount: {
18491
+ ConnectedAccountWriteResponse: {
18452
18492
  /**
18453
18493
  * @description Distinguishes the connected account object.
18454
18494
  * @constant
@@ -18542,6 +18582,16 @@ export interface components {
18542
18582
  * @example 2024-01-16T14:20:00.000Z
18543
18583
  */
18544
18584
  updated_at: string;
18585
+ /** @description Non-blocking warnings about an explicitly supplied label, omitted when no duplicate exists. Reads do not include this field. */
18586
+ warnings?: {
18587
+ /** @constant */
18588
+ code: "duplicate_account_display_name";
18589
+ /**
18590
+ * @description A human-readable explanation of the non-blocking warning.
18591
+ * @example Another connection for this provider and owner has the same label.
18592
+ */
18593
+ message: string;
18594
+ }[];
18545
18595
  };
18546
18596
  DataIntegrationsListResponse: {
18547
18597
  /**
@@ -18877,6 +18927,101 @@ export interface components {
18877
18927
  }[];
18878
18928
  }[];
18879
18929
  };
18930
+ ConnectedAccount: {
18931
+ /**
18932
+ * @description Distinguishes the connected account object.
18933
+ * @constant
18934
+ */
18935
+ object: "connected_account";
18936
+ /**
18937
+ * @description The unique identifier of the connected account.
18938
+ * @example data_installation_01EHZNVPK3SFK441A1RGBFSHRT
18939
+ */
18940
+ id: string;
18941
+ /**
18942
+ * @description Whether this row is the compatibility connection visible to undeclared clients or a standard peer for plural-aware clients. The role does not indicate preference or creation order.
18943
+ * @example compatibility
18944
+ * @enum {string}
18945
+ */
18946
+ connection_role: "compatibility" | "standard";
18947
+ /**
18948
+ * @description A best-effort identifier for the provider account this connection points at. It is correlation metadata, not the connection identifier or a selector.
18949
+ * @example workspace_123
18950
+ */
18951
+ account_identifier: string | null;
18952
+ /**
18953
+ * @description A mutable, non-unique display name for the provider account connection.
18954
+ * @example Acme production
18955
+ */
18956
+ account_display_name: string | null;
18957
+ /**
18958
+ * @description The [User](/reference/authkit/user) identifier associated with this connection.
18959
+ * @example user_01EHZNVPK3SFK441A1RGBFSHRT
18960
+ */
18961
+ user_id: string | null;
18962
+ /**
18963
+ * @description The [Organization](/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization.
18964
+ * @example null
18965
+ */
18966
+ organization_id: string | null;
18967
+ /**
18968
+ * @description The OAuth scopes granted for this connection.
18969
+ * @example [
18970
+ * "repo",
18971
+ * "user:email"
18972
+ * ]
18973
+ */
18974
+ scopes: string[];
18975
+ /**
18976
+ * @description The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent.
18977
+ * @example oauth
18978
+ * @enum {string}
18979
+ */
18980
+ auth_method?: "oauth" | "api_key" | "client_credentials";
18981
+ /**
18982
+ * @description The last four characters of the API key, or `null` for OAuth connections.
18983
+ * @example null
18984
+ */
18985
+ api_key_last_4?: string | null;
18986
+ /**
18987
+ * @description The client ID supplied for this connection. Only present when `auth_method` is `client_credentials`.
18988
+ * @example 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc
18989
+ */
18990
+ client_id?: string | null;
18991
+ /**
18992
+ * @description The last four characters of the client secret supplied for this connection, or `null` when it can't be read. Only present when `auth_method` is `client_credentials`.
18993
+ * @example cdef
18994
+ */
18995
+ client_secret_last_4?: string | null;
18996
+ /**
18997
+ * @description The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding secret and undeclared fields. Returned for every authentication method; empty when no stored values can be disclosed.
18998
+ * @example {
18999
+ * "instance_url": "https://example.my.salesforce.com"
19000
+ * }
19001
+ */
19002
+ config?: {
19003
+ [key: string]: string;
19004
+ };
19005
+ /**
19006
+ * @description The state of the connected account:
19007
+ * - `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.
19009
+ * - `disconnected`: The connection has been disconnected.
19010
+ * @example connected
19011
+ * @enum {string}
19012
+ */
19013
+ state: "connected" | "needs_reauthorization" | "disconnected";
19014
+ /**
19015
+ * @description The timestamp when the connection was created.
19016
+ * @example 2024-01-16T14:20:00.000Z
19017
+ */
19018
+ created_at: string;
19019
+ /**
19020
+ * @description The timestamp when the connection was last updated.
19021
+ * @example 2024-01-16T14:20:00.000Z
19022
+ */
19023
+ updated_at: string;
19024
+ };
18880
19025
  PortalLinkResponse: {
18881
19026
  /**
18882
19027
  * Format: password
@@ -29802,6 +29947,16 @@ export interface operations {
29802
29947
  requestBody: {
29803
29948
  content: {
29804
29949
  "application/json": {
29950
+ /**
29951
+ * @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
29952
+ * @example Acme production
29953
+ */
29954
+ account_display_name?: string | null;
29955
+ /**
29956
+ * @description A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
29957
+ * @example workspace_123
29958
+ */
29959
+ account_identifier?: string | null;
29805
29960
  /**
29806
29961
  * @description A [User](/reference/authkit/user) identifier.
29807
29962
  * @example user_01EHZNVPK3SFK441A1RGBFSHRT
@@ -29824,6 +29979,16 @@ export interface operations {
29824
29979
  */
29825
29980
  secret: string;
29826
29981
  } | {
29982
+ /**
29983
+ * @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
29984
+ * @example Acme production
29985
+ */
29986
+ account_display_name?: string | null;
29987
+ /**
29988
+ * @description A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
29989
+ * @example workspace_123
29990
+ */
29991
+ account_identifier?: string | null;
29827
29992
  /**
29828
29993
  * @description A [User](/reference/authkit/user) identifier.
29829
29994
  * @example user_01EHZNVPK3SFK441A1RGBFSHRT
@@ -29857,6 +30022,16 @@ export interface operations {
29857
30022
  */
29858
30023
  connected_account_id: string;
29859
30024
  } | {
30025
+ /**
30026
+ * @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
30027
+ * @example Acme production
30028
+ */
30029
+ account_display_name?: string | null;
30030
+ /**
30031
+ * @description A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
30032
+ * @example workspace_123
30033
+ */
30034
+ account_identifier?: string | null;
29860
30035
  /**
29861
30036
  * @description A [User](/reference/authkit/user) identifier.
29862
30037
  * @example user_01EHZNVPK3SFK441A1RGBFSHRT
@@ -29898,8 +30073,8 @@ export interface operations {
29898
30073
  * "object": "connected_account",
29899
30074
  * "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
29900
30075
  * "connection_role": "compatibility",
29901
- * "account_identifier": null,
29902
- * "account_display_name": null,
30076
+ * "account_identifier": "workspace_123",
30077
+ * "account_display_name": "Acme production",
29903
30078
  * "user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
29904
30079
  * "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
29905
30080
  * "scopes": [],
@@ -29910,7 +30085,7 @@ export interface operations {
29910
30085
  * "updated_at": "2024-01-16T14:20:00.000Z"
29911
30086
  * }
29912
30087
  */
29913
- "application/json": components["schemas"]["ConnectedAccount"];
30088
+ "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
29914
30089
  };
29915
30090
  };
29916
30091
  /** @description Bad Request */
@@ -29920,11 +30095,7 @@ export interface operations {
29920
30095
  };
29921
30096
  content: {
29922
30097
  "application/json": {
29923
- /**
29924
- * @description A human-readable description of the error.
29925
- * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
29926
- */
29927
- message: string;
30098
+ message: string | string[];
29928
30099
  };
29929
30100
  };
29930
30101
  };
@@ -30010,6 +30181,16 @@ export interface operations {
30010
30181
  requestBody: {
30011
30182
  content: {
30012
30183
  "application/json": {
30184
+ /**
30185
+ * @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
30186
+ * @example Acme production
30187
+ */
30188
+ account_display_name?: string | null;
30189
+ /**
30190
+ * @description A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
30191
+ * @example workspace_123
30192
+ */
30193
+ account_identifier?: string | null;
30013
30194
  /**
30014
30195
  * @description A [User](/reference/authkit/user) identifier.
30015
30196
  * @example user_01EHZNVPK3SFK441A1RGBFSHRT
@@ -30052,8 +30233,8 @@ export interface operations {
30052
30233
  * "object": "connected_account",
30053
30234
  * "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
30054
30235
  * "connection_role": "standard",
30055
- * "account_identifier": null,
30056
- * "account_display_name": null,
30236
+ * "account_identifier": "workspace_123",
30237
+ * "account_display_name": "Acme production",
30057
30238
  * "user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
30058
30239
  * "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
30059
30240
  * "scopes": [],
@@ -30064,7 +30245,7 @@ export interface operations {
30064
30245
  * "updated_at": "2024-01-16T14:20:00.000Z"
30065
30246
  * }
30066
30247
  */
30067
- "application/json": components["schemas"]["ConnectedAccount"];
30248
+ "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
30068
30249
  };
30069
30250
  };
30070
30251
  /** @description The request is invalid, including a missing `connection_intent: add` or a supplied `connected_account_id`. */
@@ -30074,11 +30255,7 @@ export interface operations {
30074
30255
  };
30075
30256
  content: {
30076
30257
  "application/json": {
30077
- /**
30078
- * @description A human-readable description of the error.
30079
- * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
30080
- */
30081
- message: string;
30258
+ message: string | string[];
30082
30259
  };
30083
30260
  };
30084
30261
  };
@@ -30194,6 +30371,11 @@ export interface operations {
30194
30371
  requestBody: {
30195
30372
  content: {
30196
30373
  "application/json": {
30374
+ /**
30375
+ * @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
30376
+ * @example Acme production
30377
+ */
30378
+ account_display_name?: string | null;
30197
30379
  /**
30198
30380
  * @description The ID of the user to authorize. When `connection_owner` is `organization`, this is the user authorizing on behalf of the organization; they must be an active member of the organization and do not become the owner of the resulting connected account.
30199
30381
  * @example user_01EHZNVPK3SFK441A1RGBFSHRT
@@ -30226,6 +30408,11 @@ export interface operations {
30226
30408
  [key: string]: string;
30227
30409
  };
30228
30410
  } | {
30411
+ /**
30412
+ * @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
30413
+ * @example Acme production
30414
+ */
30415
+ account_display_name?: string | null;
30229
30416
  /**
30230
30417
  * @description The ID of the user to authorize. When `connection_owner` is `organization`, this is the user authorizing on behalf of the organization; they must be an active member of the organization and do not become the owner of the resulting connected account.
30231
30418
  * @example user_01EHZNVPK3SFK441A1RGBFSHRT
@@ -30264,6 +30451,11 @@ export interface operations {
30264
30451
  */
30265
30452
  connection_intent: "add";
30266
30453
  } | {
30454
+ /**
30455
+ * @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
30456
+ * @example Acme production
30457
+ */
30458
+ account_display_name?: string | null;
30267
30459
  /**
30268
30460
  * @description The ID of the user to authorize. When `connection_owner` is `organization`, this is the user authorizing on behalf of the organization; they must be an active member of the organization and do not become the owner of the resulting connected account.
30269
30461
  * @example user_01EHZNVPK3SFK441A1RGBFSHRT
@@ -30326,11 +30518,7 @@ export interface operations {
30326
30518
  };
30327
30519
  content: {
30328
30520
  "application/json": {
30329
- /**
30330
- * @description A human-readable description of the error.
30331
- * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
30332
- */
30333
- message: string;
30521
+ message: string | string[];
30334
30522
  };
30335
30523
  };
30336
30524
  };
@@ -30434,6 +30622,16 @@ export interface operations {
30434
30622
  requestBody: {
30435
30623
  content: {
30436
30624
  "application/json": {
30625
+ /**
30626
+ * @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
30627
+ * @example Acme production
30628
+ */
30629
+ account_display_name?: string | null;
30630
+ /**
30631
+ * @description A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
30632
+ * @example workspace_123
30633
+ */
30634
+ account_identifier?: string | null;
30437
30635
  /**
30438
30636
  * @description A [User](/reference/authkit/user) identifier.
30439
30637
  * @example user_01EHZNVPK3SFK441A1RGBFSHRT
@@ -30470,6 +30668,16 @@ export interface operations {
30470
30668
  [key: string]: string;
30471
30669
  };
30472
30670
  } | {
30671
+ /**
30672
+ * @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
30673
+ * @example Acme production
30674
+ */
30675
+ account_display_name?: string | null;
30676
+ /**
30677
+ * @description A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
30678
+ * @example workspace_123
30679
+ */
30680
+ account_identifier?: string | null;
30473
30681
  /**
30474
30682
  * @description A [User](/reference/authkit/user) identifier.
30475
30683
  * @example user_01EHZNVPK3SFK441A1RGBFSHRT
@@ -30517,6 +30725,16 @@ export interface operations {
30517
30725
  */
30518
30726
  connected_account_id: string;
30519
30727
  } | {
30728
+ /**
30729
+ * @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
30730
+ * @example Acme production
30731
+ */
30732
+ account_display_name?: string | null;
30733
+ /**
30734
+ * @description A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
30735
+ * @example workspace_123
30736
+ */
30737
+ account_identifier?: string | null;
30520
30738
  /**
30521
30739
  * @description A [User](/reference/authkit/user) identifier.
30522
30740
  * @example user_01EHZNVPK3SFK441A1RGBFSHRT
@@ -30572,8 +30790,8 @@ export interface operations {
30572
30790
  * "object": "connected_account",
30573
30791
  * "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
30574
30792
  * "connection_role": "compatibility",
30575
- * "account_identifier": null,
30576
- * "account_display_name": null,
30793
+ * "account_identifier": "workspace_123",
30794
+ * "account_display_name": "Acme production",
30577
30795
  * "user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
30578
30796
  * "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
30579
30797
  * "scopes": [],
@@ -30583,7 +30801,7 @@ export interface operations {
30583
30801
  * "updated_at": "2024-01-16T14:20:00.000Z"
30584
30802
  * }
30585
30803
  */
30586
- "application/json": components["schemas"]["ConnectedAccount"];
30804
+ "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
30587
30805
  };
30588
30806
  };
30589
30807
  /** @description Bad Request */
@@ -30593,11 +30811,7 @@ export interface operations {
30593
30811
  };
30594
30812
  content: {
30595
30813
  "application/json": {
30596
- /**
30597
- * @description A human-readable description of the error.
30598
- * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
30599
- */
30600
- message: string;
30814
+ message: string | string[];
30601
30815
  };
30602
30816
  };
30603
30817
  };
@@ -30683,6 +30897,16 @@ export interface operations {
30683
30897
  requestBody: {
30684
30898
  content: {
30685
30899
  "application/json": {
30900
+ /**
30901
+ * @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
30902
+ * @example Acme production
30903
+ */
30904
+ account_display_name?: string | null;
30905
+ /**
30906
+ * @description A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
30907
+ * @example workspace_123
30908
+ */
30909
+ account_identifier?: string | null;
30686
30910
  /**
30687
30911
  * @description A [User](/reference/authkit/user) identifier.
30688
30912
  * @example user_01EHZNVPK3SFK441A1RGBFSHRT
@@ -30739,8 +30963,8 @@ export interface operations {
30739
30963
  * "object": "connected_account",
30740
30964
  * "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
30741
30965
  * "connection_role": "standard",
30742
- * "account_identifier": null,
30743
- * "account_display_name": null,
30966
+ * "account_identifier": "workspace_123",
30967
+ * "account_display_name": "Acme production",
30744
30968
  * "user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
30745
30969
  * "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
30746
30970
  * "scopes": [],
@@ -30750,7 +30974,7 @@ export interface operations {
30750
30974
  * "updated_at": "2024-01-16T14:20:00.000Z"
30751
30975
  * }
30752
30976
  */
30753
- "application/json": components["schemas"]["ConnectedAccount"];
30977
+ "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
30754
30978
  };
30755
30979
  };
30756
30980
  /** @description The request is invalid, including a missing `connection_intent: add` or a supplied `connected_account_id`. */
@@ -30760,11 +30984,7 @@ export interface operations {
30760
30984
  };
30761
30985
  content: {
30762
30986
  "application/json": {
30763
- /**
30764
- * @description A human-readable description of the error.
30765
- * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
30766
- */
30767
- message: string;
30987
+ message: string | string[];
30768
30988
  };
30769
30989
  };
30770
30990
  };
@@ -34314,7 +34534,7 @@ export interface operations {
34314
34534
  * "user_id": null,
34315
34535
  * "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
34316
34536
  * "connection_role": "compatibility",
34317
- * "account_identifier": "acme-workspace",
34537
+ * "account_identifier": "workspace_123",
34318
34538
  * "account_display_name": "Acme production",
34319
34539
  * "scopes": [
34320
34540
  * "repo",
@@ -34421,7 +34641,7 @@ export interface operations {
34421
34641
  * "user_id": null,
34422
34642
  * "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
34423
34643
  * "connection_role": "compatibility",
34424
- * "account_identifier": "acme-workspace",
34644
+ * "account_identifier": "workspace_123",
34425
34645
  * "account_display_name": "Acme production",
34426
34646
  * "scopes": [
34427
34647
  * "repo",
@@ -34439,7 +34659,7 @@ export interface operations {
34439
34659
  * "updated_at": "2024-01-16T14:20:00.000Z"
34440
34660
  * }
34441
34661
  */
34442
- "application/json": components["schemas"]["ConnectedAccount"];
34662
+ "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
34443
34663
  };
34444
34664
  };
34445
34665
  /** @description The connected account selector is malformed. */
@@ -34570,7 +34790,7 @@ export interface operations {
34570
34790
  * "user_id": null,
34571
34791
  * "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
34572
34792
  * "connection_role": "compatibility",
34573
- * "account_identifier": "acme-workspace",
34793
+ * "account_identifier": "workspace_123",
34574
34794
  * "account_display_name": "Acme production",
34575
34795
  * "scopes": [
34576
34796
  * "repo",
@@ -34588,7 +34808,7 @@ export interface operations {
34588
34808
  * "updated_at": "2024-01-16T14:20:00.000Z"
34589
34809
  * }
34590
34810
  */
34591
- "application/json": components["schemas"]["ConnectedAccount"];
34811
+ "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
34592
34812
  };
34593
34813
  };
34594
34814
  /** @description The request is missing a valid API key. */
@@ -34885,7 +35105,7 @@ export interface operations {
34885
35105
  * "user_id": null,
34886
35106
  * "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
34887
35107
  * "connection_role": "compatibility",
34888
- * "account_identifier": "acme-workspace",
35108
+ * "account_identifier": "workspace_123",
34889
35109
  * "account_display_name": "Acme production",
34890
35110
  * "scopes": [
34891
35111
  * "repo",
@@ -34913,7 +35133,7 @@ export interface operations {
34913
35133
  * "user_id": null,
34914
35134
  * "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
34915
35135
  * "connection_role": "compatibility",
34916
- * "account_identifier": "acme-workspace",
35136
+ * "account_identifier": "workspace_123",
34917
35137
  * "account_display_name": "Acme production",
34918
35138
  * "scopes": [
34919
35139
  * "repo",
@@ -39287,6 +39507,27 @@ export interface operations {
39287
39507
  };
39288
39508
  };
39289
39509
  };
39510
+ /** @description Unprocessable Entity */
39511
+ 422: {
39512
+ headers: {
39513
+ [name: string]: unknown;
39514
+ };
39515
+ content: {
39516
+ "application/json": {
39517
+ /**
39518
+ * @description A human-readable description of the error.
39519
+ * @example This organization membership is managed by a directory and cannot be deleted. Remove the user from the directory in the identity provider instead.
39520
+ */
39521
+ message: string;
39522
+ /**
39523
+ * @description The error code identifying the type of error.
39524
+ * @example organization_membership_directory_managed
39525
+ * @constant
39526
+ */
39527
+ code: "organization_membership_directory_managed";
39528
+ };
39529
+ };
39530
+ };
39290
39531
  };
39291
39532
  };
39292
39533
  UserlandUserOrganizationMembershipsController_deactivate: {
@@ -42029,7 +42270,7 @@ export interface operations {
42029
42270
  [name: string]: unknown;
42030
42271
  };
42031
42272
  content: {
42032
- "application/json": components["schemas"]["ConnectedAccount"];
42273
+ "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
42033
42274
  };
42034
42275
  };
42035
42276
  /** @description The connected account selector is malformed. */
@@ -42174,7 +42415,7 @@ export interface operations {
42174
42415
  [name: string]: unknown;
42175
42416
  };
42176
42417
  content: {
42177
- "application/json": components["schemas"]["ConnectedAccount"];
42418
+ "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
42178
42419
  };
42179
42420
  };
42180
42421
  /** @description The request is missing a valid API key. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.120.0",
3
+ "version": "0.122.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",