@workos/openapi-spec 0.141.0 → 0.142.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.
@@ -11539,7 +11539,7 @@ paths:
11539
11539
  content:
11540
11540
  application/json:
11541
11541
  schema:
11542
- $ref: '#/components/schemas/ConnectedAccountWriteResponse'
11542
+ $ref: '#/components/schemas/ConnectedAccount'
11543
11543
  example:
11544
11544
  object: connected_account
11545
11545
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
@@ -11780,7 +11780,7 @@ paths:
11780
11780
  content:
11781
11781
  application/json:
11782
11782
  schema:
11783
- $ref: '#/components/schemas/ConnectedAccountWriteResponse'
11783
+ $ref: '#/components/schemas/ConnectedAccount'
11784
11784
  example:
11785
11785
  object: connected_account
11786
11786
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
@@ -12217,7 +12217,7 @@ paths:
12217
12217
  content:
12218
12218
  application/json:
12219
12219
  schema:
12220
- $ref: '#/components/schemas/ConnectedAccountWriteResponse'
12220
+ $ref: '#/components/schemas/ConnectedAccount'
12221
12221
  example:
12222
12222
  object: connected_account
12223
12223
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
@@ -12473,7 +12473,7 @@ paths:
12473
12473
  content:
12474
12474
  application/json:
12475
12475
  schema:
12476
- $ref: '#/components/schemas/ConnectedAccountWriteResponse'
12476
+ $ref: '#/components/schemas/ConnectedAccount'
12477
12477
  example:
12478
12478
  object: connected_account
12479
12479
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
@@ -16707,7 +16707,7 @@ paths:
16707
16707
  content:
16708
16708
  application/json:
16709
16709
  schema:
16710
- $ref: '#/components/schemas/ConnectedAccountWriteResponse'
16710
+ $ref: '#/components/schemas/ConnectedAccount'
16711
16711
  example:
16712
16712
  object: connected_account
16713
16713
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
@@ -16974,7 +16974,7 @@ paths:
16974
16974
  content:
16975
16975
  application/json:
16976
16976
  schema:
16977
- $ref: '#/components/schemas/ConnectedAccountWriteResponse'
16977
+ $ref: '#/components/schemas/ConnectedAccount'
16978
16978
  example:
16979
16979
  object: connected_account
16980
16980
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
@@ -25838,7 +25838,7 @@ paths:
25838
25838
  content:
25839
25839
  application/json:
25840
25840
  schema:
25841
- $ref: '#/components/schemas/ConnectedAccountWriteResponse'
25841
+ $ref: '#/components/schemas/ConnectedAccount'
25842
25842
  '401':
25843
25843
  description: The request is missing a valid API key.
25844
25844
  '404':
@@ -26079,7 +26079,7 @@ paths:
26079
26079
  content:
26080
26080
  application/json:
26081
26081
  schema:
26082
- $ref: '#/components/schemas/ConnectedAccountWriteResponse'
26082
+ $ref: '#/components/schemas/ConnectedAccount'
26083
26083
  '400':
26084
26084
  description: The connected account selector is malformed.
26085
26085
  content:
@@ -48113,7 +48113,7 @@ components:
48113
48113
  required:
48114
48114
  - active
48115
48115
  - error
48116
- ConnectedAccountWriteResponse:
48116
+ ConnectedAccount:
48117
48117
  type: object
48118
48118
  properties:
48119
48119
  object:
@@ -48294,8 +48294,9 @@ components:
48294
48294
  - code
48295
48295
  - message
48296
48296
  description: >-
48297
- Non-blocking warnings about an explicitly supplied label, omitted
48298
- when no duplicate exists. Reads do not include this field.
48297
+ Non-blocking warnings about an explicitly supplied label. Only
48298
+ writes return it, and only when another connection already uses the
48299
+ label; reads omit it.
48299
48300
  required:
48300
48301
  - object
48301
48302
  - id
@@ -48605,6 +48606,29 @@ components:
48605
48606
  type: string
48606
48607
  description: The timestamp when the connection was last updated.
48607
48608
  example: '2024-01-16T14:20:00.000Z'
48609
+ warnings:
48610
+ type: array
48611
+ items:
48612
+ type: object
48613
+ properties:
48614
+ code:
48615
+ type: string
48616
+ const: duplicate_account_display_name
48617
+ message:
48618
+ type: string
48619
+ description: >-
48620
+ A human-readable explanation of the non-blocking
48621
+ warning.
48622
+ example: >-
48623
+ Another connection for this provider and owner
48624
+ has the same label.
48625
+ required:
48626
+ - code
48627
+ - message
48628
+ description: >-
48629
+ Non-blocking warnings about an explicitly supplied
48630
+ label. Only writes return it, and only when another
48631
+ connection already uses the label; reads omit it.
48608
48632
  userlandUserId:
48609
48633
  type:
48610
48634
  - string
@@ -48811,6 +48835,29 @@ components:
48811
48835
  type: string
48812
48836
  description: The timestamp when the connection was last updated.
48813
48837
  example: '2024-01-16T14:20:00.000Z'
48838
+ warnings:
48839
+ type: array
48840
+ items:
48841
+ type: object
48842
+ properties:
48843
+ code:
48844
+ type: string
48845
+ const: duplicate_account_display_name
48846
+ message:
48847
+ type: string
48848
+ description: >-
48849
+ A human-readable explanation of the non-blocking
48850
+ warning.
48851
+ example: >-
48852
+ Another connection for this provider and owner has
48853
+ the same label.
48854
+ required:
48855
+ - code
48856
+ - message
48857
+ description: >-
48858
+ Non-blocking warnings about an explicitly supplied
48859
+ label. Only writes return it, and only when another
48860
+ connection already uses the label; reads omit it.
48814
48861
  userlandUserId:
48815
48862
  type:
48816
48863
  - string
@@ -48878,181 +48925,6 @@ components:
48878
48925
  required:
48879
48926
  - object
48880
48927
  - data
48881
- ConnectedAccount:
48882
- type: object
48883
- properties:
48884
- object:
48885
- type: string
48886
- description: Distinguishes the connected account object.
48887
- const: connected_account
48888
- id:
48889
- type: string
48890
- description: The unique identifier of the connected account.
48891
- example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
48892
- connection_role:
48893
- type: string
48894
- enum:
48895
- - compatibility
48896
- - standard
48897
- description: >-
48898
- Whether this row is the compatibility connection visible to
48899
- undeclared clients or a standard peer for plural-aware clients. The
48900
- role does not indicate preference or creation order.
48901
- example: compatibility
48902
- account_identifier:
48903
- type:
48904
- - string
48905
- - 'null'
48906
- description: >-
48907
- A best-effort identifier for the provider account this connection
48908
- points at. It is correlation metadata, not the connection identifier
48909
- or a selector.
48910
- example: workspace_123
48911
- account_display_name:
48912
- type:
48913
- - string
48914
- - 'null'
48915
- description: >-
48916
- A mutable, non-unique display name for the provider account
48917
- connection.
48918
- example: Acme production
48919
- user_id:
48920
- type:
48921
- - string
48922
- - 'null'
48923
- description: >-
48924
- The [User](/reference/authkit/user) identifier associated with this
48925
- connection.
48926
- example: user_01EHZNVPK3SFK441A1RGBFSHRT
48927
- organization_id:
48928
- type:
48929
- - string
48930
- - 'null'
48931
- description: >-
48932
- The [Organization](/reference/organization) identifier associated
48933
- with this connection, or `null` if not scoped to an organization.
48934
- example: null
48935
- scopes:
48936
- type: array
48937
- items:
48938
- type: string
48939
- description: The OAuth scopes granted for this connection.
48940
- example:
48941
- - repo
48942
- - user:email
48943
- auth_method:
48944
- type: string
48945
- enum:
48946
- - oauth
48947
- - api_key
48948
- - client_credentials
48949
- description: >-
48950
- The authentication method used for this connection (`oauth`,
48951
- `api_key`, or `client_credentials`). Defaults to `oauth` if absent.
48952
- example: oauth
48953
- api_key_last_4:
48954
- type:
48955
- - string
48956
- - 'null'
48957
- description: >-
48958
- The last four characters of the API key, or `null` for OAuth
48959
- connections.
48960
- example: null
48961
- client_id:
48962
- type:
48963
- - string
48964
- - 'null'
48965
- description: >-
48966
- The client ID supplied for this connection. Only present when
48967
- `auth_method` is `client_credentials`.
48968
- example: 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc
48969
- client_secret_last_4:
48970
- type:
48971
- - string
48972
- - 'null'
48973
- description: >-
48974
- The last four characters of the client secret supplied for this
48975
- connection, or `null` when it can't be read. Only present when
48976
- `auth_method` is `client_credentials`.
48977
- example: cdef
48978
- config:
48979
- type: object
48980
- additionalProperties:
48981
- type: string
48982
- description: >-
48983
- The connection-level configuration values stored for this connection
48984
- — the fields the provider declares at `installation` scope,
48985
- excluding secret and undeclared fields. Returned for every
48986
- authentication method; empty when no stored values can be disclosed.
48987
- example:
48988
- instance_url: https://example.my.salesforce.com
48989
- state:
48990
- type: string
48991
- enum:
48992
- - connected
48993
- - needs_reauthorization
48994
- - disconnected
48995
- description: >-
48996
- The state of the connected account:
48997
-
48998
- - `connected`: The connection is active and tokens are valid.
48999
-
49000
- - `needs_reauthorization`: The user needs to reauthorize the
49001
- connection, typically because required scopes have changed.
49002
- `state_reason` explains why when WorkOS invalidated the connection
49003
- itself.
49004
-
49005
- - `disconnected`: The connection has been disconnected.
49006
- example: connected
49007
- established_by_user_id:
49008
- type:
49009
- - string
49010
- - 'null'
49011
- description: >-
49012
- The [User](/reference/authkit/user) whose authorization established
49013
- this connection. `null` when the connection is developer-managed or
49014
- its establisher is unknown, and when the establishing member lost
49015
- access to the organization — in which case `state_reason` is
49016
- `establishing_member_membership_ended`.
49017
- example: user_01EHZNVPK3SFK441A1RGBFSHRT
49018
- state_reason:
49019
- description: >-
49020
- Why WorkOS put the connection in its current `state`, or `null` when
49021
- there is no WorkOS-recorded reason:
49022
-
49023
- - `establishing_member_membership_ended`: The member who established
49024
- this organization-owned connection is no longer an active member of
49025
- the organization, so its credentials were cleared. An organization
49026
- admin must provide new credentials.
49027
-
49028
-
49029
- Additional values may be added; treat an unrecognized value as an
49030
- unknown reason.
49031
- example: null
49032
- oneOf:
49033
- - type: string
49034
- const: establishing_member_membership_ended
49035
- - type: 'null'
49036
- created_at:
49037
- type: string
49038
- description: The timestamp when the connection was created.
49039
- example: '2024-01-16T14:20:00.000Z'
49040
- updated_at:
49041
- type: string
49042
- description: The timestamp when the connection was last updated.
49043
- example: '2024-01-16T14:20:00.000Z'
49044
- required:
49045
- - object
49046
- - id
49047
- - connection_role
49048
- - account_identifier
49049
- - account_display_name
49050
- - user_id
49051
- - organization_id
49052
- - scopes
49053
- - state
49054
- - created_at
49055
- - updated_at
49056
48928
  PortalLinkResponse:
49057
48929
  type: object
49058
48930
  properties:
package/dist/types.d.ts CHANGED
@@ -18662,7 +18662,7 @@ export interface components {
18662
18662
  */
18663
18663
  error: "not_installed" | "needs_reauthorization";
18664
18664
  };
18665
- ConnectedAccountWriteResponse: {
18665
+ ConnectedAccount: {
18666
18666
  /**
18667
18667
  * @description Distinguishes the connected account object.
18668
18668
  * @constant
@@ -18769,7 +18769,7 @@ export interface components {
18769
18769
  * @example 2024-01-16T14:20:00.000Z
18770
18770
  */
18771
18771
  updated_at: string;
18772
- /** @description Non-blocking warnings about an explicitly supplied label, omitted when no duplicate exists. Reads do not include this field. */
18772
+ /** @description Non-blocking warnings about an explicitly supplied label. Only writes return it, and only when another connection already uses the label; reads omit it. */
18773
18773
  warnings?: {
18774
18774
  /** @constant */
18775
18775
  code: "duplicate_account_display_name";
@@ -18988,6 +18988,16 @@ export interface components {
18988
18988
  * @example 2024-01-16T14:20:00.000Z
18989
18989
  */
18990
18990
  updated_at: string;
18991
+ /** @description Non-blocking warnings about an explicitly supplied label. Only writes return it, and only when another connection already uses the label; reads omit it. */
18992
+ warnings?: {
18993
+ /** @constant */
18994
+ code: "duplicate_account_display_name";
18995
+ /**
18996
+ * @description A human-readable explanation of the non-blocking warning.
18997
+ * @example Another connection for this provider and owner has the same label.
18998
+ */
18999
+ message: string;
19000
+ }[];
18991
19001
  /**
18992
19002
  * @deprecated
18993
19003
  * @description Use `user_id` instead.
@@ -19117,6 +19127,16 @@ export interface components {
19117
19127
  * @example 2024-01-16T14:20:00.000Z
19118
19128
  */
19119
19129
  updated_at: string;
19130
+ /** @description Non-blocking warnings about an explicitly supplied label. Only writes return it, and only when another connection already uses the label; reads omit it. */
19131
+ warnings?: {
19132
+ /** @constant */
19133
+ code: "duplicate_account_display_name";
19134
+ /**
19135
+ * @description A human-readable explanation of the non-blocking warning.
19136
+ * @example Another connection for this provider and owner has the same label.
19137
+ */
19138
+ message: string;
19139
+ }[];
19120
19140
  /**
19121
19141
  * @deprecated
19122
19142
  * @description Use `user_id` instead.
@@ -19140,114 +19160,6 @@ export interface components {
19140
19160
  }[];
19141
19161
  }[];
19142
19162
  };
19143
- ConnectedAccount: {
19144
- /**
19145
- * @description Distinguishes the connected account object.
19146
- * @constant
19147
- */
19148
- object: "connected_account";
19149
- /**
19150
- * @description The unique identifier of the connected account.
19151
- * @example data_installation_01EHZNVPK3SFK441A1RGBFSHRT
19152
- */
19153
- id: string;
19154
- /**
19155
- * @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.
19156
- * @example compatibility
19157
- * @enum {string}
19158
- */
19159
- connection_role: "compatibility" | "standard";
19160
- /**
19161
- * @description A best-effort identifier for the provider account this connection points at. It is correlation metadata, not the connection identifier or a selector.
19162
- * @example workspace_123
19163
- */
19164
- account_identifier: string | null;
19165
- /**
19166
- * @description A mutable, non-unique display name for the provider account connection.
19167
- * @example Acme production
19168
- */
19169
- account_display_name: string | null;
19170
- /**
19171
- * @description The [User](/reference/authkit/user) identifier associated with this connection.
19172
- * @example user_01EHZNVPK3SFK441A1RGBFSHRT
19173
- */
19174
- user_id: string | null;
19175
- /**
19176
- * @description The [Organization](/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization.
19177
- * @example null
19178
- */
19179
- organization_id: string | null;
19180
- /**
19181
- * @description The OAuth scopes granted for this connection.
19182
- * @example [
19183
- * "repo",
19184
- * "user:email"
19185
- * ]
19186
- */
19187
- scopes: string[];
19188
- /**
19189
- * @description The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent.
19190
- * @example oauth
19191
- * @enum {string}
19192
- */
19193
- auth_method?: "oauth" | "api_key" | "client_credentials";
19194
- /**
19195
- * @description The last four characters of the API key, or `null` for OAuth connections.
19196
- * @example null
19197
- */
19198
- api_key_last_4?: string | null;
19199
- /**
19200
- * @description The client ID supplied for this connection. Only present when `auth_method` is `client_credentials`.
19201
- * @example 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc
19202
- */
19203
- client_id?: string | null;
19204
- /**
19205
- * @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`.
19206
- * @example cdef
19207
- */
19208
- client_secret_last_4?: string | null;
19209
- /**
19210
- * @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.
19211
- * @example {
19212
- * "instance_url": "https://example.my.salesforce.com"
19213
- * }
19214
- */
19215
- config?: {
19216
- [key: string]: string;
19217
- };
19218
- /**
19219
- * @description The state of the connected account:
19220
- * - `connected`: The connection is active and tokens are valid.
19221
- * - `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.
19222
- * - `disconnected`: The connection has been disconnected.
19223
- * @example connected
19224
- * @enum {string}
19225
- */
19226
- state: "connected" | "needs_reauthorization" | "disconnected";
19227
- /**
19228
- * @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`.
19229
- * @example user_01EHZNVPK3SFK441A1RGBFSHRT
19230
- */
19231
- established_by_user_id?: string | null;
19232
- /**
19233
- * @description Why WorkOS put the connection in its current `state`, or `null` when there is no WorkOS-recorded reason:
19234
- * - `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.
19235
- *
19236
- * Additional values may be added; treat an unrecognized value as an unknown reason.
19237
- * @example null
19238
- */
19239
- state_reason?: "establishing_member_membership_ended" | null;
19240
- /**
19241
- * @description The timestamp when the connection was created.
19242
- * @example 2024-01-16T14:20:00.000Z
19243
- */
19244
- created_at: string;
19245
- /**
19246
- * @description The timestamp when the connection was last updated.
19247
- * @example 2024-01-16T14:20:00.000Z
19248
- */
19249
- updated_at: string;
19250
- };
19251
19163
  PortalLinkResponse: {
19252
19164
  /**
19253
19165
  * Format: password
@@ -30911,7 +30823,7 @@ export interface operations {
30911
30823
  * "updated_at": "2024-01-16T14:20:00.000Z"
30912
30824
  * }
30913
30825
  */
30914
- "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
30826
+ "application/json": components["schemas"]["ConnectedAccount"];
30915
30827
  };
30916
30828
  };
30917
30829
  /** @description Bad Request */
@@ -31074,7 +30986,7 @@ export interface operations {
31074
30986
  * "updated_at": "2024-01-16T14:20:00.000Z"
31075
30987
  * }
31076
30988
  */
31077
- "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
30989
+ "application/json": components["schemas"]["ConnectedAccount"];
31078
30990
  };
31079
30991
  };
31080
30992
  /** @description The request is invalid, including a missing `connection_intent: add` or a supplied `connected_account_id`. */
@@ -31453,7 +31365,7 @@ export interface operations {
31453
31365
  * "updated_at": "2024-01-16T14:20:00.000Z"
31454
31366
  * }
31455
31367
  */
31456
- "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
31368
+ "application/json": components["schemas"]["ConnectedAccount"];
31457
31369
  };
31458
31370
  };
31459
31371
  /** @description Bad Request */
@@ -31629,7 +31541,7 @@ export interface operations {
31629
31541
  * "updated_at": "2024-01-16T14:20:00.000Z"
31630
31542
  * }
31631
31543
  */
31632
- "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
31544
+ "application/json": components["schemas"]["ConnectedAccount"];
31633
31545
  };
31634
31546
  };
31635
31547
  /** @description The request is invalid, including a missing `connection_intent: add` or a supplied `connected_account_id`. */
@@ -35398,7 +35310,7 @@ export interface operations {
35398
35310
  * "updated_at": "2024-01-16T14:20:00.000Z"
35399
35311
  * }
35400
35312
  */
35401
- "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
35313
+ "application/json": components["schemas"]["ConnectedAccount"];
35402
35314
  };
35403
35315
  };
35404
35316
  /** @description The connected account selector is malformed. */
@@ -35552,7 +35464,7 @@ export interface operations {
35552
35464
  * "updated_at": "2024-01-16T14:20:00.000Z"
35553
35465
  * }
35554
35466
  */
35555
- "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
35467
+ "application/json": components["schemas"]["ConnectedAccount"];
35556
35468
  };
35557
35469
  };
35558
35470
  /** @description The request is missing a valid API key. */
@@ -43261,7 +43173,7 @@ export interface operations {
43261
43173
  [name: string]: unknown;
43262
43174
  };
43263
43175
  content: {
43264
- "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
43176
+ "application/json": components["schemas"]["ConnectedAccount"];
43265
43177
  };
43266
43178
  };
43267
43179
  /** @description The connected account selector is malformed. */
@@ -43409,7 +43321,7 @@ export interface operations {
43409
43321
  [name: string]: unknown;
43410
43322
  };
43411
43323
  content: {
43412
- "application/json": components["schemas"]["ConnectedAccountWriteResponse"];
43324
+ "application/json": components["schemas"]["ConnectedAccount"];
43413
43325
  };
43414
43326
  };
43415
43327
  /** @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.141.0",
3
+ "version": "0.142.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",