@workos/openapi-spec 0.144.0 → 0.145.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.
@@ -11261,6 +11261,131 @@ paths:
11261
11261
  summary: List data integrations
11262
11262
  tags:
11263
11263
  - pipes
11264
+ /data-integrations/finish:
11265
+ post:
11266
+ description: >-
11267
+ Saves a connection that was started with `code_challenge`. After the
11268
+ user authorizes, WorkOS redirects them to `return_to` with a
11269
+ `connect_code` and `state`. Call this endpoint from your server with
11270
+ that `connect_code` and the `code_verifier` behind the challenge to save
11271
+ the connected account.
11272
+ operationId: DataIntegrationsController_finishConnection
11273
+ parameters: []
11274
+ requestBody:
11275
+ required: true
11276
+ content:
11277
+ application/json:
11278
+ schema:
11279
+ type: object
11280
+ properties:
11281
+ connect_code:
11282
+ type: string
11283
+ pattern: ^[A-Za-z0-9_-]{43}$
11284
+ description: >-
11285
+ The `connect_code` WorkOS added to `return_to` when the user
11286
+ finished authorizing. It can be used once and expires 90
11287
+ seconds after the redirect.
11288
+ example: Q3n0bWh2b0tqZ1VtV2ZsYkJ3cE9aV0J6T1hGb1lYaGo
11289
+ code_verifier:
11290
+ type: string
11291
+ pattern: ^[A-Za-z0-9._~-]{43,128}$
11292
+ description: >-
11293
+ The code verifier `code_challenge` was derived from: 43 to
11294
+ 128 characters from `A-Z`, `a-z`, `0-9`, `-`, `.`, `_` and
11295
+ `~`. A wrong verifier uses up the `connect_code`, and the
11296
+ user has to connect again.
11297
+ example: dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
11298
+ state:
11299
+ type: string
11300
+ description: >-
11301
+ The `state` WorkOS added to `return_to` alongside
11302
+ `connect_code`. Optional; it is only used to correlate the
11303
+ request in logs.
11304
+ example: q2czJKmVAraSBg8xFpT7M9uR
11305
+ required:
11306
+ - connect_code
11307
+ - code_verifier
11308
+ responses:
11309
+ '200':
11310
+ description: OK
11311
+ content:
11312
+ application/json:
11313
+ schema:
11314
+ $ref: '#/components/schemas/DataIntegrationFinishConnectionResponse'
11315
+ '400':
11316
+ description: >-
11317
+ The connection could not be completed, and the user must connect
11318
+ again. `invalid_connect_code` when the `connect_code` is unknown,
11319
+ expired, already used, or from another environment, or the
11320
+ `code_verifier` does not match the `code_challenge`. Other codes
11321
+ report why saving the connection failed, such as `target_deleted`
11322
+ when the connected account being reauthorized was deleted in the
11323
+ meantime. A malformed request body returns validation messages
11324
+ instead.
11325
+ content:
11326
+ application/json:
11327
+ schema:
11328
+ anyOf:
11329
+ - type: object
11330
+ properties:
11331
+ code:
11332
+ type: string
11333
+ enum:
11334
+ - invalid_connect_code
11335
+ - authorization_code_exchange_error
11336
+ - authorization_state_expired
11337
+ - auth_method_mismatch
11338
+ - concurrent_request
11339
+ - connected_account_limit_reached
11340
+ - connected_account_not_found
11341
+ - installation_failed
11342
+ - invalid_authorization_url
11343
+ - invalid_client_id
11344
+ - invalid_data_integration
11345
+ - missing_access_token
11346
+ - missing_code
11347
+ - multiple_connections_unavailable
11348
+ - provider_error
11349
+ - reauthorization_needed
11350
+ - target_deleted
11351
+ - unexpected_response_format
11352
+ description: The error code identifying the type of error.
11353
+ example: invalid_connect_code
11354
+ message:
11355
+ type: string
11356
+ description: A human-readable description of the error.
11357
+ example: Request could not be processed.
11358
+ required:
11359
+ - code
11360
+ - message
11361
+ - type: object
11362
+ properties:
11363
+ message:
11364
+ oneOf:
11365
+ - type: string
11366
+ - type: array
11367
+ items:
11368
+ type: string
11369
+ required:
11370
+ - message
11371
+ '401':
11372
+ description: Unauthorized
11373
+ '403':
11374
+ description: Forbidden
11375
+ content:
11376
+ application/json:
11377
+ schema:
11378
+ type: object
11379
+ properties:
11380
+ message:
11381
+ type: string
11382
+ description: A human-readable description of the error.
11383
+ example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
11384
+ required:
11385
+ - message
11386
+ summary: Finish connection
11387
+ tags:
11388
+ - pipes
11264
11389
  /data-integrations/{slug}:
11265
11390
  get:
11266
11391
  description: Retrieves the user-owned data integration by its slug.
@@ -11939,8 +12064,34 @@ paths:
11939
12064
  return_to:
11940
12065
  type: string
11941
12066
  format: uri
11942
- description: The URL to redirect the user to after authorization.
12067
+ description: >-
12068
+ The URL to redirect the user to after authorization.
12069
+ Required with `code_challenge`, and must then exactly match
12070
+ a redirect URI registered on one of the environment's
12071
+ applications. Loopback URLs match on any port; wildcard
12072
+ redirect URIs are not honored, and a `return_to` with a
12073
+ query string or fragment never matches.
11943
12074
  example: https://example.com/callback
12075
+ code_challenge:
12076
+ type: string
12077
+ pattern: ^[A-Za-z0-9_-]{43}$
12078
+ description: >-
12079
+ A PKCE-style code challenge: the base64url-encoded SHA-256
12080
+ of a `code_verifier` your app keeps. When set, the
12081
+ connection isn't saved when the user finishes authorizing.
12082
+ Instead, the user is redirected to `return_to` with a
12083
+ `connect_code` and `state`, and your app must call [Finish
12084
+ connection](/reference/pipes/connected-account/finish-connection)
12085
+ with the `connect_code` and `code_verifier` within 90
12086
+ seconds to save it.
12087
+ example: E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM
12088
+ code_challenge_method:
12089
+ type: string
12090
+ description: >-
12091
+ The method used to derive `code_challenge`. Only `S256` is
12092
+ supported, and it is the default. Requires `code_challenge`.
12093
+ example: S256
12094
+ const: S256
11944
12095
  config:
11945
12096
  type: object
11946
12097
  additionalProperties:
@@ -11984,20 +12135,43 @@ paths:
11984
12135
  schema:
11985
12136
  $ref: '#/components/schemas/DataIntegrationAuthorizeUrlResponse'
11986
12137
  '400':
11987
- description: Bad Request
12138
+ description: >-
12139
+ The request was invalid. With `code_challenge`: `invalid_return_to`
12140
+ when `return_to` is missing or does not exactly match a registered
12141
+ redirect URI, `return_to_requires_exact_match` when only a wildcard
12142
+ redirect URI matches it, and `connect_finish_unavailable` when
12143
+ `code_challenge` is not available for the environment.
11988
12144
  content:
11989
12145
  application/json:
11990
12146
  schema:
11991
- type: object
11992
- properties:
11993
- message:
11994
- oneOf:
11995
- - type: string
11996
- - type: array
11997
- items:
11998
- type: string
11999
- required:
12000
- - message
12147
+ anyOf:
12148
+ - type: object
12149
+ properties:
12150
+ code:
12151
+ type: string
12152
+ enum:
12153
+ - invalid_return_to
12154
+ - return_to_requires_exact_match
12155
+ - connect_finish_unavailable
12156
+ description: The error code identifying the type of error.
12157
+ example: invalid_return_to
12158
+ message:
12159
+ type: string
12160
+ description: A human-readable description of the error.
12161
+ example: Request could not be processed.
12162
+ required:
12163
+ - code
12164
+ - message
12165
+ - type: object
12166
+ properties:
12167
+ message:
12168
+ oneOf:
12169
+ - type: string
12170
+ - type: array
12171
+ items:
12172
+ type: string
12173
+ required:
12174
+ - message
12001
12175
  '401':
12002
12176
  description: Unauthorized
12003
12177
  '403':
@@ -16497,10 +16671,7 @@ paths:
16497
16671
  - user:email
16498
16672
  auth_method: oauth
16499
16673
  api_key_last_4: null
16500
- client_id: 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc
16501
- client_secret_last_4: cdef
16502
- config:
16503
- instance_url: https://example.my.salesforce.com
16674
+ config: {}
16504
16675
  state: connected
16505
16676
  established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
16506
16677
  state_reason: null
@@ -16722,10 +16893,7 @@ paths:
16722
16893
  - user:email
16723
16894
  auth_method: oauth
16724
16895
  api_key_last_4: null
16725
- client_id: 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc
16726
- client_secret_last_4: cdef
16727
- config:
16728
- instance_url: https://example.my.salesforce.com
16896
+ config: {}
16729
16897
  state: connected
16730
16898
  established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
16731
16899
  state_reason: null
@@ -16989,10 +17157,7 @@ paths:
16989
17157
  - user:email
16990
17158
  auth_method: oauth
16991
17159
  api_key_last_4: null
16992
- client_id: 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc
16993
- client_secret_last_4: cdef
16994
- config:
16995
- instance_url: https://example.my.salesforce.com
17160
+ config: {}
16996
17161
  state: connected
16997
17162
  established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
16998
17163
  state_reason: null
@@ -17160,10 +17325,7 @@ paths:
17160
17325
  - user:email
17161
17326
  auth_method: oauth
17162
17327
  api_key_last_4: null
17163
- client_id: 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc
17164
- client_secret_last_4: cdef
17165
- config:
17166
- instance_url: https://example.my.salesforce.com
17328
+ config: {}
17167
17329
  state: connected
17168
17330
  established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
17169
17331
  state_reason: null
@@ -47745,6 +47907,229 @@ components:
47745
47907
  - object
47746
47908
  - data
47747
47909
  - list_metadata
47910
+ ConnectedAccount:
47911
+ type: object
47912
+ properties:
47913
+ object:
47914
+ type: string
47915
+ description: Distinguishes the connected account object.
47916
+ const: connected_account
47917
+ id:
47918
+ type: string
47919
+ description: The unique identifier of the connected account.
47920
+ example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
47921
+ connection_role:
47922
+ type: string
47923
+ enum:
47924
+ - compatibility
47925
+ - standard
47926
+ description: >-
47927
+ Whether this row is the compatibility connection visible to
47928
+ undeclared clients or a standard peer for plural-aware clients. The
47929
+ role does not indicate preference or creation order.
47930
+ example: compatibility
47931
+ account_identifier:
47932
+ type:
47933
+ - string
47934
+ - 'null'
47935
+ description: >-
47936
+ A best-effort identifier for the provider account this connection
47937
+ points at. It is correlation metadata, not the connection identifier
47938
+ or a selector.
47939
+ example: workspace_123
47940
+ account_display_name:
47941
+ type:
47942
+ - string
47943
+ - 'null'
47944
+ description: >-
47945
+ A mutable, non-unique display name for the provider account
47946
+ connection.
47947
+ example: Acme production
47948
+ user_id:
47949
+ type:
47950
+ - string
47951
+ - 'null'
47952
+ description: >-
47953
+ The [User](/reference/authkit/user) identifier associated with this
47954
+ connection.
47955
+ example: user_01EHZNVPK3SFK441A1RGBFSHRT
47956
+ organization_id:
47957
+ type:
47958
+ - string
47959
+ - 'null'
47960
+ description: >-
47961
+ The [Organization](/reference/organization) identifier associated
47962
+ with this connection, or `null` if not scoped to an organization.
47963
+ example: null
47964
+ scopes:
47965
+ type: array
47966
+ items:
47967
+ type: string
47968
+ description: The OAuth scopes granted for this connection.
47969
+ example:
47970
+ - repo
47971
+ - user:email
47972
+ auth_method:
47973
+ type: string
47974
+ enum:
47975
+ - oauth
47976
+ - api_key
47977
+ - client_credentials
47978
+ description: >-
47979
+ The authentication method used for this connection (`oauth`,
47980
+ `api_key`, or `client_credentials`). Defaults to `oauth` if absent.
47981
+ example: oauth
47982
+ api_key_last_4:
47983
+ type:
47984
+ - string
47985
+ - 'null'
47986
+ description: >-
47987
+ The last four characters of the API key, or `null` for OAuth
47988
+ connections.
47989
+ example: null
47990
+ client_id:
47991
+ type:
47992
+ - string
47993
+ - 'null'
47994
+ description: >-
47995
+ The client ID supplied for this connection. Only present when
47996
+ `auth_method` is `client_credentials`.
47997
+ example: 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc
47998
+ client_secret_last_4:
47999
+ type:
48000
+ - string
48001
+ - 'null'
48002
+ description: >-
48003
+ The last four characters of the client secret supplied for this
48004
+ connection, or `null` when it can't be read. Only present when
48005
+ `auth_method` is `client_credentials`.
48006
+ example: cdef
48007
+ config:
48008
+ type: object
48009
+ additionalProperties:
48010
+ type: string
48011
+ description: >-
48012
+ The connection-level configuration values stored for this connection
48013
+ — the fields the provider declares at `installation` scope,
48014
+ excluding secret and undeclared fields. Returned for every
48015
+ authentication method; empty when no stored values can be disclosed.
48016
+ example:
48017
+ instance_url: https://example.my.salesforce.com
48018
+ state:
48019
+ type: string
48020
+ enum:
48021
+ - connected
48022
+ - needs_reauthorization
48023
+ - disconnected
48024
+ description: >-
48025
+ The state of the connected account:
48026
+
48027
+ - `connected`: The connection is active and tokens are valid.
48028
+
48029
+ - `needs_reauthorization`: The user needs to reauthorize the
48030
+ connection, typically because required scopes have changed.
48031
+ `state_reason` explains why when WorkOS invalidated the connection
48032
+ itself.
48033
+
48034
+ - `disconnected`: The connection has been disconnected.
48035
+ example: connected
48036
+ established_by_user_id:
48037
+ type:
48038
+ - string
48039
+ - 'null'
48040
+ description: >-
48041
+ The [User](/reference/authkit/user) whose authorization established
48042
+ this connection. `null` when the connection is developer-managed or
48043
+ its establisher is unknown, and when the establishing member lost
48044
+ access to the organization — in which case `state_reason` is
48045
+ `establishing_member_membership_ended`.
48046
+ example: user_01EHZNVPK3SFK441A1RGBFSHRT
48047
+ state_reason:
48048
+ description: >-
48049
+ Why WorkOS put the connection in its current `state`, or `null` when
48050
+ there is no WorkOS-recorded reason:
48051
+
48052
+ - `establishing_member_membership_ended`: The member who established
48053
+ this organization-owned connection is no longer an active member of
48054
+ the organization, so its credentials were cleared. An organization
48055
+ admin must provide new credentials.
48056
+
48057
+
48058
+ Additional values may be added; treat an unrecognized value as an
48059
+ unknown reason.
48060
+ example: null
48061
+ oneOf:
48062
+ - type: string
48063
+ const: establishing_member_membership_ended
48064
+ - type: 'null'
48065
+ created_at:
48066
+ type: string
48067
+ description: The timestamp when the connection was created.
48068
+ example: '2024-01-16T14:20:00.000Z'
48069
+ updated_at:
48070
+ type: string
48071
+ description: The timestamp when the connection was last updated.
48072
+ example: '2024-01-16T14:20:00.000Z'
48073
+ warnings:
48074
+ type: array
48075
+ items:
48076
+ type: object
48077
+ properties:
48078
+ code:
48079
+ type: string
48080
+ const: duplicate_account_display_name
48081
+ message:
48082
+ type: string
48083
+ description: A human-readable explanation of the non-blocking warning.
48084
+ example: >-
48085
+ Another connection for this provider and owner has the same
48086
+ label.
48087
+ required:
48088
+ - code
48089
+ - message
48090
+ description: >-
48091
+ Non-blocking warnings about an explicitly supplied label. Only
48092
+ writes return it, and only when another connection already uses the
48093
+ label; reads omit it.
48094
+ required:
48095
+ - object
48096
+ - id
48097
+ - connection_role
48098
+ - account_identifier
48099
+ - account_display_name
48100
+ - user_id
48101
+ - organization_id
48102
+ - scopes
48103
+ - state
48104
+ - created_at
48105
+ - updated_at
48106
+ example:
48107
+ object: connected_account
48108
+ id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
48109
+ connection_role: compatibility
48110
+ account_identifier: workspace_123
48111
+ account_display_name: Acme production
48112
+ user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
48113
+ organization_id: null
48114
+ scopes:
48115
+ - repo
48116
+ - user:email
48117
+ auth_method: oauth
48118
+ api_key_last_4: null
48119
+ config: {}
48120
+ state: connected
48121
+ established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
48122
+ state_reason: null
48123
+ created_at: '2024-01-16T14:20:00.000Z'
48124
+ updated_at: '2024-01-16T14:20:00.000Z'
48125
+ DataIntegrationFinishConnectionResponse:
48126
+ type: object
48127
+ properties:
48128
+ connected_account:
48129
+ $ref: '#/components/schemas/ConnectedAccount'
48130
+ description: The connected account that was saved.
48131
+ required:
48132
+ - connected_account
47748
48133
  DataIntegrationAuthorizeUrlResponse:
47749
48134
  type: object
47750
48135
  properties:
@@ -47753,6 +48138,15 @@ components:
47753
48138
  description: The OAuth authorization URL to redirect the user to.
47754
48139
  example: >-
47755
48140
  https://api.workos.com/data-integrations/q2czJKmVAraSBg8xFpT7M9uR/authorize-redirect
48141
+ completion:
48142
+ type: string
48143
+ description: >-
48144
+ `finish_required` when the request included `code_challenge`: the
48145
+ connection will be held until your app finishes it. Omitted
48146
+ otherwise. If you sent `code_challenge` and this is missing, don't
48147
+ redirect the user.
48148
+ example: finish_required
48149
+ const: finish_required
47756
48150
  required:
47757
48151
  - url
47758
48152
  AuthMethodMismatchError:
@@ -48131,202 +48525,6 @@ components:
48131
48525
  required:
48132
48526
  - active
48133
48527
  - error
48134
- ConnectedAccount:
48135
- type: object
48136
- properties:
48137
- object:
48138
- type: string
48139
- description: Distinguishes the connected account object.
48140
- const: connected_account
48141
- id:
48142
- type: string
48143
- description: The unique identifier of the connected account.
48144
- example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
48145
- connection_role:
48146
- type: string
48147
- enum:
48148
- - compatibility
48149
- - standard
48150
- description: >-
48151
- Whether this row is the compatibility connection visible to
48152
- undeclared clients or a standard peer for plural-aware clients. The
48153
- role does not indicate preference or creation order.
48154
- example: compatibility
48155
- account_identifier:
48156
- type:
48157
- - string
48158
- - 'null'
48159
- description: >-
48160
- A best-effort identifier for the provider account this connection
48161
- points at. It is correlation metadata, not the connection identifier
48162
- or a selector.
48163
- example: workspace_123
48164
- account_display_name:
48165
- type:
48166
- - string
48167
- - 'null'
48168
- description: >-
48169
- A mutable, non-unique display name for the provider account
48170
- connection.
48171
- example: Acme production
48172
- user_id:
48173
- type:
48174
- - string
48175
- - 'null'
48176
- description: >-
48177
- The [User](/reference/authkit/user) identifier associated with this
48178
- connection.
48179
- example: user_01EHZNVPK3SFK441A1RGBFSHRT
48180
- organization_id:
48181
- type:
48182
- - string
48183
- - 'null'
48184
- description: >-
48185
- The [Organization](/reference/organization) identifier associated
48186
- with this connection, or `null` if not scoped to an organization.
48187
- example: null
48188
- scopes:
48189
- type: array
48190
- items:
48191
- type: string
48192
- description: The OAuth scopes granted for this connection.
48193
- example:
48194
- - repo
48195
- - user:email
48196
- auth_method:
48197
- type: string
48198
- enum:
48199
- - oauth
48200
- - api_key
48201
- - client_credentials
48202
- description: >-
48203
- The authentication method used for this connection (`oauth`,
48204
- `api_key`, or `client_credentials`). Defaults to `oauth` if absent.
48205
- example: oauth
48206
- api_key_last_4:
48207
- type:
48208
- - string
48209
- - 'null'
48210
- description: >-
48211
- The last four characters of the API key, or `null` for OAuth
48212
- connections.
48213
- example: null
48214
- client_id:
48215
- type:
48216
- - string
48217
- - 'null'
48218
- description: >-
48219
- The client ID supplied for this connection. Only present when
48220
- `auth_method` is `client_credentials`.
48221
- example: 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc
48222
- client_secret_last_4:
48223
- type:
48224
- - string
48225
- - 'null'
48226
- description: >-
48227
- The last four characters of the client secret supplied for this
48228
- connection, or `null` when it can't be read. Only present when
48229
- `auth_method` is `client_credentials`.
48230
- example: cdef
48231
- config:
48232
- type: object
48233
- additionalProperties:
48234
- type: string
48235
- description: >-
48236
- The connection-level configuration values stored for this connection
48237
- — the fields the provider declares at `installation` scope,
48238
- excluding secret and undeclared fields. Returned for every
48239
- authentication method; empty when no stored values can be disclosed.
48240
- example:
48241
- instance_url: https://example.my.salesforce.com
48242
- state:
48243
- type: string
48244
- enum:
48245
- - connected
48246
- - needs_reauthorization
48247
- - disconnected
48248
- description: >-
48249
- The state of the connected account:
48250
-
48251
- - `connected`: The connection is active and tokens are valid.
48252
-
48253
- - `needs_reauthorization`: The user needs to reauthorize the
48254
- connection, typically because required scopes have changed.
48255
- `state_reason` explains why when WorkOS invalidated the connection
48256
- itself.
48257
-
48258
- - `disconnected`: The connection has been disconnected.
48259
- example: connected
48260
- established_by_user_id:
48261
- type:
48262
- - string
48263
- - 'null'
48264
- description: >-
48265
- The [User](/reference/authkit/user) whose authorization established
48266
- this connection. `null` when the connection is developer-managed or
48267
- its establisher is unknown, and when the establishing member lost
48268
- access to the organization — in which case `state_reason` is
48269
- `establishing_member_membership_ended`.
48270
- example: user_01EHZNVPK3SFK441A1RGBFSHRT
48271
- state_reason:
48272
- description: >-
48273
- Why WorkOS put the connection in its current `state`, or `null` when
48274
- there is no WorkOS-recorded reason:
48275
-
48276
- - `establishing_member_membership_ended`: The member who established
48277
- this organization-owned connection is no longer an active member of
48278
- the organization, so its credentials were cleared. An organization
48279
- admin must provide new credentials.
48280
-
48281
-
48282
- Additional values may be added; treat an unrecognized value as an
48283
- unknown reason.
48284
- example: null
48285
- oneOf:
48286
- - type: string
48287
- const: establishing_member_membership_ended
48288
- - type: 'null'
48289
- created_at:
48290
- type: string
48291
- description: The timestamp when the connection was created.
48292
- example: '2024-01-16T14:20:00.000Z'
48293
- updated_at:
48294
- type: string
48295
- description: The timestamp when the connection was last updated.
48296
- example: '2024-01-16T14:20:00.000Z'
48297
- warnings:
48298
- type: array
48299
- items:
48300
- type: object
48301
- properties:
48302
- code:
48303
- type: string
48304
- const: duplicate_account_display_name
48305
- message:
48306
- type: string
48307
- description: A human-readable explanation of the non-blocking warning.
48308
- example: >-
48309
- Another connection for this provider and owner has the same
48310
- label.
48311
- required:
48312
- - code
48313
- - message
48314
- description: >-
48315
- Non-blocking warnings about an explicitly supplied label. Only
48316
- writes return it, and only when another connection already uses the
48317
- label; reads omit it.
48318
- required:
48319
- - object
48320
- - id
48321
- - connection_role
48322
- - account_identifier
48323
- - account_display_name
48324
- - user_id
48325
- - organization_id
48326
- - scopes
48327
- - state
48328
- - created_at
48329
- - updated_at
48330
48528
  DataIntegrationsListResponse:
48331
48529
  type: object
48332
48530
  properties:
@@ -48446,6 +48644,29 @@ components:
48446
48644
  deprecated: true
48447
48645
  description: Use updated_at instead.
48448
48646
  connected_account:
48647
+ example: &ref_42
48648
+ object: connected_account
48649
+ id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
48650
+ connection_role: compatibility
48651
+ account_identifier: workspace_123
48652
+ account_display_name: Acme production
48653
+ user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
48654
+ organization_id: null
48655
+ scopes:
48656
+ - repo
48657
+ - user:email
48658
+ auth_method: oauth
48659
+ api_key_last_4: null
48660
+ config: {}
48661
+ state: connected
48662
+ established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
48663
+ state_reason: null
48664
+ created_at: '2024-01-16T14:20:00.000Z'
48665
+ updated_at: '2024-01-16T14:20:00.000Z'
48666
+ userlandUserId: user_01EHZNVPK3SFK441A1RGBFSHRT
48667
+ organizationId: null
48668
+ createdAt: '2024-01-16T14:20:00.000Z'
48669
+ updatedAt: '2024-01-16T14:20:00.000Z'
48449
48670
  description: >-
48450
48671
  The user's compatibility [connected
48451
48672
  account](/reference/pipes/connected-account) for this
@@ -48912,6 +49133,7 @@ components:
48912
49133
  - organizationId
48913
49134
  - createdAt
48914
49135
  - updatedAt
49136
+ example: *ref_42
48915
49137
  description: >-
48916
49138
  The user's connected accounts for this provider in the
48917
49139
  requested ownership context. This contains only the