@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.
@@ -10823,6 +10823,25 @@ paths:
10823
10823
  schema:
10824
10824
  type: object
10825
10825
  properties:
10826
+ account_display_name:
10827
+ type:
10828
+ - string
10829
+ - 'null'
10830
+ description: >-
10831
+ A mutable, non-unique label. Omit to preserve an existing
10832
+ label; null clears it. Labels are never account identifiers.
10833
+ maxLength: 255
10834
+ example: Acme production
10835
+ account_identifier:
10836
+ type:
10837
+ - string
10838
+ - 'null'
10839
+ minLength: 1
10840
+ description: >-
10841
+ A developer-attested provider account identifier, never
10842
+ inferred from a label or credential. Omit to preserve an
10843
+ existing identifier; null clears it.
10844
+ example: workspace_123
10826
10845
  user_id:
10827
10846
  type: string
10828
10847
  description: A [User](/reference/authkit/user) identifier.
@@ -10876,13 +10895,13 @@ paths:
10876
10895
  content:
10877
10896
  application/json:
10878
10897
  schema:
10879
- $ref: '#/components/schemas/ConnectedAccount'
10898
+ $ref: '#/components/schemas/ConnectedAccountWriteResponse'
10880
10899
  example:
10881
10900
  object: connected_account
10882
10901
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
10883
10902
  connection_role: standard
10884
- account_identifier: null
10885
- account_display_name: null
10903
+ account_identifier: workspace_123
10904
+ account_display_name: Acme production
10886
10905
  user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
10887
10906
  organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT
10888
10907
  scopes: []
@@ -10901,9 +10920,11 @@ paths:
10901
10920
  type: object
10902
10921
  properties:
10903
10922
  message:
10904
- type: string
10905
- description: A human-readable description of the error.
10906
- example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
10923
+ oneOf:
10924
+ - type: string
10925
+ - type: array
10926
+ items:
10927
+ type: string
10907
10928
  required:
10908
10929
  - message
10909
10930
  '401':
@@ -11037,6 +11058,26 @@ paths:
11037
11058
  oneOf:
11038
11059
  - type: object
11039
11060
  properties:
11061
+ account_display_name:
11062
+ type:
11063
+ - string
11064
+ - 'null'
11065
+ description: >-
11066
+ A mutable, non-unique label. Omit to preserve an
11067
+ existing label; null clears it. Labels are never account
11068
+ identifiers.
11069
+ maxLength: 255
11070
+ example: Acme production
11071
+ account_identifier:
11072
+ type:
11073
+ - string
11074
+ - 'null'
11075
+ minLength: 1
11076
+ description: >-
11077
+ A developer-attested provider account identifier, never
11078
+ inferred from a label or credential. Omit to preserve an
11079
+ existing identifier; null clears it.
11080
+ example: workspace_123
11040
11081
  user_id:
11041
11082
  type: string
11042
11083
  description: A [User](/reference/authkit/user) identifier.
@@ -11073,6 +11114,26 @@ paths:
11073
11114
  additionalProperties: false
11074
11115
  - type: object
11075
11116
  properties:
11117
+ account_display_name:
11118
+ type:
11119
+ - string
11120
+ - 'null'
11121
+ description: >-
11122
+ A mutable, non-unique label. Omit to preserve an
11123
+ existing label; null clears it. Labels are never account
11124
+ identifiers.
11125
+ maxLength: 255
11126
+ example: Acme production
11127
+ account_identifier:
11128
+ type:
11129
+ - string
11130
+ - 'null'
11131
+ minLength: 1
11132
+ description: >-
11133
+ A developer-attested provider account identifier, never
11134
+ inferred from a label or credential. Omit to preserve an
11135
+ existing identifier; null clears it.
11136
+ example: workspace_123
11076
11137
  user_id:
11077
11138
  type: string
11078
11139
  description: A [User](/reference/authkit/user) identifier.
@@ -11125,6 +11186,26 @@ paths:
11125
11186
  additionalProperties: false
11126
11187
  - type: object
11127
11188
  properties:
11189
+ account_display_name:
11190
+ type:
11191
+ - string
11192
+ - 'null'
11193
+ description: >-
11194
+ A mutable, non-unique label. Omit to preserve an
11195
+ existing label; null clears it. Labels are never account
11196
+ identifiers.
11197
+ maxLength: 255
11198
+ example: Acme production
11199
+ account_identifier:
11200
+ type:
11201
+ - string
11202
+ - 'null'
11203
+ minLength: 1
11204
+ description: >-
11205
+ A developer-attested provider account identifier, never
11206
+ inferred from a label or credential. Omit to preserve an
11207
+ existing identifier; null clears it.
11208
+ example: workspace_123
11128
11209
  user_id:
11129
11210
  type: string
11130
11211
  description: A [User](/reference/authkit/user) identifier.
@@ -11173,13 +11254,13 @@ paths:
11173
11254
  content:
11174
11255
  application/json:
11175
11256
  schema:
11176
- $ref: '#/components/schemas/ConnectedAccount'
11257
+ $ref: '#/components/schemas/ConnectedAccountWriteResponse'
11177
11258
  example:
11178
11259
  object: connected_account
11179
11260
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
11180
11261
  connection_role: compatibility
11181
- account_identifier: null
11182
- account_display_name: null
11262
+ account_identifier: workspace_123
11263
+ account_display_name: Acme production
11183
11264
  user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
11184
11265
  organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT
11185
11266
  scopes: []
@@ -11196,9 +11277,11 @@ paths:
11196
11277
  type: object
11197
11278
  properties:
11198
11279
  message:
11199
- type: string
11200
- description: A human-readable description of the error.
11201
- example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
11280
+ oneOf:
11281
+ - type: string
11282
+ - type: array
11283
+ items:
11284
+ type: string
11202
11285
  required:
11203
11286
  - message
11204
11287
  '401':
@@ -11292,6 +11375,16 @@ paths:
11292
11375
  oneOf:
11293
11376
  - type: object
11294
11377
  properties:
11378
+ account_display_name:
11379
+ type:
11380
+ - string
11381
+ - 'null'
11382
+ description: >-
11383
+ A mutable, non-unique label. Omit to preserve an
11384
+ existing label; null clears it. Labels are never account
11385
+ identifiers.
11386
+ maxLength: 255
11387
+ example: Acme production
11295
11388
  user_id:
11296
11389
  type: string
11297
11390
  description: >-
@@ -11342,6 +11435,16 @@ paths:
11342
11435
  additionalProperties: false
11343
11436
  - type: object
11344
11437
  properties:
11438
+ account_display_name:
11439
+ type:
11440
+ - string
11441
+ - 'null'
11442
+ description: >-
11443
+ A mutable, non-unique label. Omit to preserve an
11444
+ existing label; null clears it. Labels are never account
11445
+ identifiers.
11446
+ maxLength: 255
11447
+ example: Acme production
11345
11448
  user_id:
11346
11449
  type: string
11347
11450
  description: >-
@@ -11407,6 +11510,16 @@ paths:
11407
11510
  additionalProperties: false
11408
11511
  - type: object
11409
11512
  properties:
11513
+ account_display_name:
11514
+ type:
11515
+ - string
11516
+ - 'null'
11517
+ description: >-
11518
+ A mutable, non-unique label. Omit to preserve an
11519
+ existing label; null clears it. Labels are never account
11520
+ identifiers.
11521
+ maxLength: 255
11522
+ example: Acme production
11410
11523
  user_id:
11411
11524
  type: string
11412
11525
  description: >-
@@ -11485,9 +11598,11 @@ paths:
11485
11598
  type: object
11486
11599
  properties:
11487
11600
  message:
11488
- type: string
11489
- description: A human-readable description of the error.
11490
- example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
11601
+ oneOf:
11602
+ - type: string
11603
+ - type: array
11604
+ items:
11605
+ type: string
11491
11606
  required:
11492
11607
  - message
11493
11608
  '401':
@@ -11614,6 +11729,25 @@ paths:
11614
11729
  schema:
11615
11730
  type: object
11616
11731
  properties:
11732
+ account_display_name:
11733
+ type:
11734
+ - string
11735
+ - 'null'
11736
+ description: >-
11737
+ A mutable, non-unique label. Omit to preserve an existing
11738
+ label; null clears it. Labels are never account identifiers.
11739
+ maxLength: 255
11740
+ example: Acme production
11741
+ account_identifier:
11742
+ type:
11743
+ - string
11744
+ - 'null'
11745
+ minLength: 1
11746
+ description: >-
11747
+ A developer-attested provider account identifier, never
11748
+ inferred from a label or credential. Omit to preserve an
11749
+ existing identifier; null clears it.
11750
+ example: workspace_123
11617
11751
  user_id:
11618
11752
  type: string
11619
11753
  description: A [User](/reference/authkit/user) identifier.
@@ -11683,13 +11817,13 @@ paths:
11683
11817
  content:
11684
11818
  application/json:
11685
11819
  schema:
11686
- $ref: '#/components/schemas/ConnectedAccount'
11820
+ $ref: '#/components/schemas/ConnectedAccountWriteResponse'
11687
11821
  example:
11688
11822
  object: connected_account
11689
11823
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
11690
11824
  connection_role: standard
11691
- account_identifier: null
11692
- account_display_name: null
11825
+ account_identifier: workspace_123
11826
+ account_display_name: Acme production
11693
11827
  user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
11694
11828
  organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT
11695
11829
  scopes: []
@@ -11707,9 +11841,11 @@ paths:
11707
11841
  type: object
11708
11842
  properties:
11709
11843
  message:
11710
- type: string
11711
- description: A human-readable description of the error.
11712
- example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
11844
+ oneOf:
11845
+ - type: string
11846
+ - type: array
11847
+ items:
11848
+ type: string
11713
11849
  required:
11714
11850
  - message
11715
11851
  '401':
@@ -11843,6 +11979,26 @@ paths:
11843
11979
  oneOf:
11844
11980
  - type: object
11845
11981
  properties:
11982
+ account_display_name:
11983
+ type:
11984
+ - string
11985
+ - 'null'
11986
+ description: >-
11987
+ A mutable, non-unique label. Omit to preserve an
11988
+ existing label; null clears it. Labels are never account
11989
+ identifiers.
11990
+ maxLength: 255
11991
+ example: Acme production
11992
+ account_identifier:
11993
+ type:
11994
+ - string
11995
+ - 'null'
11996
+ minLength: 1
11997
+ description: >-
11998
+ A developer-attested provider account identifier, never
11999
+ inferred from a label or credential. Omit to preserve an
12000
+ existing identifier; null clears it.
12001
+ example: workspace_123
11846
12002
  user_id:
11847
12003
  type: string
11848
12004
  description: A [User](/reference/authkit/user) identifier.
@@ -11895,6 +12051,26 @@ paths:
11895
12051
  additionalProperties: false
11896
12052
  - type: object
11897
12053
  properties:
12054
+ account_display_name:
12055
+ type:
12056
+ - string
12057
+ - 'null'
12058
+ description: >-
12059
+ A mutable, non-unique label. Omit to preserve an
12060
+ existing label; null clears it. Labels are never account
12061
+ identifiers.
12062
+ maxLength: 255
12063
+ example: Acme production
12064
+ account_identifier:
12065
+ type:
12066
+ - string
12067
+ - 'null'
12068
+ minLength: 1
12069
+ description: >-
12070
+ A developer-attested provider account identifier, never
12071
+ inferred from a label or credential. Omit to preserve an
12072
+ existing identifier; null clears it.
12073
+ example: workspace_123
11898
12074
  user_id:
11899
12075
  type: string
11900
12076
  description: A [User](/reference/authkit/user) identifier.
@@ -11962,6 +12138,26 @@ paths:
11962
12138
  additionalProperties: false
11963
12139
  - type: object
11964
12140
  properties:
12141
+ account_display_name:
12142
+ type:
12143
+ - string
12144
+ - 'null'
12145
+ description: >-
12146
+ A mutable, non-unique label. Omit to preserve an
12147
+ existing label; null clears it. Labels are never account
12148
+ identifiers.
12149
+ maxLength: 255
12150
+ example: Acme production
12151
+ account_identifier:
12152
+ type:
12153
+ - string
12154
+ - 'null'
12155
+ minLength: 1
12156
+ description: >-
12157
+ A developer-attested provider account identifier, never
12158
+ inferred from a label or credential. Omit to preserve an
12159
+ existing identifier; null clears it.
12160
+ example: workspace_123
11965
12161
  user_id:
11966
12162
  type: string
11967
12163
  description: A [User](/reference/authkit/user) identifier.
@@ -12025,13 +12221,13 @@ paths:
12025
12221
  content:
12026
12222
  application/json:
12027
12223
  schema:
12028
- $ref: '#/components/schemas/ConnectedAccount'
12224
+ $ref: '#/components/schemas/ConnectedAccountWriteResponse'
12029
12225
  example:
12030
12226
  object: connected_account
12031
12227
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
12032
12228
  connection_role: compatibility
12033
- account_identifier: null
12034
- account_display_name: null
12229
+ account_identifier: workspace_123
12230
+ account_display_name: Acme production
12035
12231
  user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
12036
12232
  organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT
12037
12233
  scopes: []
@@ -12047,9 +12243,11 @@ paths:
12047
12243
  type: object
12048
12244
  properties:
12049
12245
  message:
12050
- type: string
12051
- description: A human-readable description of the error.
12052
- example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
12246
+ oneOf:
12247
+ - type: string
12248
+ - type: array
12249
+ items:
12250
+ type: string
12053
12251
  required:
12054
12252
  - message
12055
12253
  '401':
@@ -15954,7 +16152,7 @@ paths:
15954
16152
  user_id: null
15955
16153
  organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT
15956
16154
  connection_role: compatibility
15957
- account_identifier: acme-workspace
16155
+ account_identifier: workspace_123
15958
16156
  account_display_name: Acme production
15959
16157
  scopes:
15960
16158
  - repo
@@ -16155,14 +16353,14 @@ paths:
16155
16353
  content:
16156
16354
  application/json:
16157
16355
  schema:
16158
- $ref: '#/components/schemas/ConnectedAccount'
16356
+ $ref: '#/components/schemas/ConnectedAccountWriteResponse'
16159
16357
  example:
16160
16358
  object: connected_account
16161
16359
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
16162
16360
  user_id: null
16163
16361
  organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT
16164
16362
  connection_role: compatibility
16165
- account_identifier: acme-workspace
16363
+ account_identifier: workspace_123
16166
16364
  account_display_name: Acme production
16167
16365
  scopes:
16168
16366
  - repo
@@ -16416,14 +16614,14 @@ paths:
16416
16614
  content:
16417
16615
  application/json:
16418
16616
  schema:
16419
- $ref: '#/components/schemas/ConnectedAccount'
16617
+ $ref: '#/components/schemas/ConnectedAccountWriteResponse'
16420
16618
  example:
16421
16619
  object: connected_account
16422
16620
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
16423
16621
  user_id: null
16424
16622
  organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT
16425
16623
  connection_role: compatibility
16426
- account_identifier: acme-workspace
16624
+ account_identifier: workspace_123
16427
16625
  account_display_name: Acme production
16428
16626
  scopes:
16429
16627
  - repo
@@ -16592,7 +16790,7 @@ paths:
16592
16790
  user_id: null
16593
16791
  organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT
16594
16792
  connection_role: compatibility
16595
- account_identifier: acme-workspace
16793
+ account_identifier: workspace_123
16596
16794
  account_display_name: Acme production
16597
16795
  scopes:
16598
16796
  - repo
@@ -21581,6 +21779,28 @@ paths:
21581
21779
  example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
21582
21780
  required:
21583
21781
  - message
21782
+ '422':
21783
+ description: Unprocessable Entity
21784
+ content:
21785
+ application/json:
21786
+ schema:
21787
+ type: object
21788
+ properties:
21789
+ message:
21790
+ type: string
21791
+ description: A human-readable description of the error.
21792
+ example: >-
21793
+ This organization membership is managed by a directory and
21794
+ cannot be deleted. Remove the user from the directory in
21795
+ the identity provider instead.
21796
+ code:
21797
+ type: string
21798
+ description: The error code identifying the type of error.
21799
+ example: organization_membership_directory_managed
21800
+ const: organization_membership_directory_managed
21801
+ required:
21802
+ - message
21803
+ - code
21584
21804
  summary: Delete an organization membership
21585
21805
  tags:
21586
21806
  - user-management.organization-membership
@@ -25011,7 +25231,7 @@ paths:
25011
25231
  content:
25012
25232
  application/json:
25013
25233
  schema:
25014
- $ref: '#/components/schemas/ConnectedAccount'
25234
+ $ref: '#/components/schemas/ConnectedAccountWriteResponse'
25015
25235
  '401':
25016
25236
  description: The request is missing a valid API key.
25017
25237
  '404':
@@ -25248,7 +25468,7 @@ paths:
25248
25468
  content:
25249
25469
  application/json:
25250
25470
  schema:
25251
- $ref: '#/components/schemas/ConnectedAccount'
25471
+ $ref: '#/components/schemas/ConnectedAccountWriteResponse'
25252
25472
  '400':
25253
25473
  description: The connected account selector is malformed.
25254
25474
  content:
@@ -29465,6 +29685,21 @@ components:
29465
29685
  CreateOrganizationConnectedAccountDto:
29466
29686
  type: object
29467
29687
  properties:
29688
+ account_display_name:
29689
+ type:
29690
+ - string
29691
+ - 'null'
29692
+ description: >-
29693
+ A mutable, non-unique connection label; null clears it. Not an
29694
+ account identifier.
29695
+ maxLength: 255
29696
+ example: Acme production
29697
+ account_identifier:
29698
+ type:
29699
+ - string
29700
+ - 'null'
29701
+ description: A developer-attested account identifier; null clears it.
29702
+ example: workspace_123
29468
29703
  access_token:
29469
29704
  type: string
29470
29705
  description: The OAuth access token for the connected account.
@@ -29520,6 +29755,21 @@ components:
29520
29755
  OrganizationConnectedAccountDto:
29521
29756
  type: object
29522
29757
  properties:
29758
+ account_display_name:
29759
+ type:
29760
+ - string
29761
+ - 'null'
29762
+ description: >-
29763
+ A mutable, non-unique connection label; null clears it. Not an
29764
+ account identifier.
29765
+ maxLength: 255
29766
+ example: Acme production
29767
+ account_identifier:
29768
+ type:
29769
+ - string
29770
+ - 'null'
29771
+ description: A developer-attested account identifier; null clears it.
29772
+ example: workspace_123
29523
29773
  access_token:
29524
29774
  type: string
29525
29775
  description: The OAuth access token for the connected account.
@@ -29560,6 +29810,21 @@ components:
29560
29810
  CreateConnectedAccountDto:
29561
29811
  type: object
29562
29812
  properties:
29813
+ account_display_name:
29814
+ type:
29815
+ - string
29816
+ - 'null'
29817
+ description: >-
29818
+ A mutable, non-unique connection label; null clears it. Not an
29819
+ account identifier.
29820
+ maxLength: 255
29821
+ example: Acme production
29822
+ account_identifier:
29823
+ type:
29824
+ - string
29825
+ - 'null'
29826
+ description: A developer-attested account identifier; null clears it.
29827
+ example: workspace_123
29563
29828
  access_token:
29564
29829
  type: string
29565
29830
  description: The OAuth access token for the connected account.
@@ -29602,6 +29867,21 @@ components:
29602
29867
  ConnectedAccountDto:
29603
29868
  type: object
29604
29869
  properties:
29870
+ account_display_name:
29871
+ type:
29872
+ - string
29873
+ - 'null'
29874
+ description: >-
29875
+ A mutable, non-unique connection label; null clears it. Not an
29876
+ account identifier.
29877
+ maxLength: 255
29878
+ example: Acme production
29879
+ account_identifier:
29880
+ type:
29881
+ - string
29882
+ - 'null'
29883
+ description: A developer-attested account identifier; null clears it.
29884
+ example: workspace_123
29605
29885
  access_token:
29606
29886
  type: string
29607
29887
  description: The OAuth access token for the connected account.
@@ -46669,7 +46949,7 @@ components:
46669
46949
  required:
46670
46950
  - active
46671
46951
  - error
46672
- ConnectedAccount:
46952
+ ConnectedAccountWriteResponse:
46673
46953
  type: object
46674
46954
  properties:
46675
46955
  object:
@@ -46801,6 +47081,26 @@ components:
46801
47081
  type: string
46802
47082
  description: The timestamp when the connection was last updated.
46803
47083
  example: '2024-01-16T14:20:00.000Z'
47084
+ warnings:
47085
+ type: array
47086
+ items:
47087
+ type: object
47088
+ properties:
47089
+ code:
47090
+ type: string
47091
+ const: duplicate_account_display_name
47092
+ message:
47093
+ type: string
47094
+ description: A human-readable explanation of the non-blocking warning.
47095
+ example: >-
47096
+ Another connection for this provider and owner has the same
47097
+ label.
47098
+ required:
47099
+ - code
47100
+ - message
47101
+ description: >-
47102
+ Non-blocking warnings about an explicitly supplied label, omitted
47103
+ when no duplicate exists. Reads do not include this field.
46804
47104
  required:
46805
47105
  - object
46806
47106
  - id
@@ -47318,6 +47618,150 @@ components:
47318
47618
  required:
47319
47619
  - object
47320
47620
  - data
47621
+ ConnectedAccount:
47622
+ type: object
47623
+ properties:
47624
+ object:
47625
+ type: string
47626
+ description: Distinguishes the connected account object.
47627
+ const: connected_account
47628
+ id:
47629
+ type: string
47630
+ description: The unique identifier of the connected account.
47631
+ example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
47632
+ connection_role:
47633
+ type: string
47634
+ enum:
47635
+ - compatibility
47636
+ - standard
47637
+ description: >-
47638
+ Whether this row is the compatibility connection visible to
47639
+ undeclared clients or a standard peer for plural-aware clients. The
47640
+ role does not indicate preference or creation order.
47641
+ example: compatibility
47642
+ account_identifier:
47643
+ type:
47644
+ - string
47645
+ - 'null'
47646
+ description: >-
47647
+ A best-effort identifier for the provider account this connection
47648
+ points at. It is correlation metadata, not the connection identifier
47649
+ or a selector.
47650
+ example: workspace_123
47651
+ account_display_name:
47652
+ type:
47653
+ - string
47654
+ - 'null'
47655
+ description: >-
47656
+ A mutable, non-unique display name for the provider account
47657
+ connection.
47658
+ example: Acme production
47659
+ user_id:
47660
+ type:
47661
+ - string
47662
+ - 'null'
47663
+ description: >-
47664
+ The [User](/reference/authkit/user) identifier associated with this
47665
+ connection.
47666
+ example: user_01EHZNVPK3SFK441A1RGBFSHRT
47667
+ organization_id:
47668
+ type:
47669
+ - string
47670
+ - 'null'
47671
+ description: >-
47672
+ The [Organization](/reference/organization) identifier associated
47673
+ with this connection, or `null` if not scoped to an organization.
47674
+ example: null
47675
+ scopes:
47676
+ type: array
47677
+ items:
47678
+ type: string
47679
+ description: The OAuth scopes granted for this connection.
47680
+ example:
47681
+ - repo
47682
+ - user:email
47683
+ auth_method:
47684
+ type: string
47685
+ enum:
47686
+ - oauth
47687
+ - api_key
47688
+ - client_credentials
47689
+ description: >-
47690
+ The authentication method used for this connection (`oauth`,
47691
+ `api_key`, or `client_credentials`). Defaults to `oauth` if absent.
47692
+ example: oauth
47693
+ api_key_last_4:
47694
+ type:
47695
+ - string
47696
+ - 'null'
47697
+ description: >-
47698
+ The last four characters of the API key, or `null` for OAuth
47699
+ connections.
47700
+ example: null
47701
+ client_id:
47702
+ type:
47703
+ - string
47704
+ - 'null'
47705
+ description: >-
47706
+ The client ID supplied for this connection. Only present when
47707
+ `auth_method` is `client_credentials`.
47708
+ example: 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc
47709
+ client_secret_last_4:
47710
+ type:
47711
+ - string
47712
+ - 'null'
47713
+ description: >-
47714
+ The last four characters of the client secret supplied for this
47715
+ connection, or `null` when it can't be read. Only present when
47716
+ `auth_method` is `client_credentials`.
47717
+ example: cdef
47718
+ config:
47719
+ type: object
47720
+ additionalProperties:
47721
+ type: string
47722
+ description: >-
47723
+ The connection-level configuration values stored for this connection
47724
+ — the fields the provider declares at `installation` scope,
47725
+ excluding secret and undeclared fields. Returned for every
47726
+ authentication method; empty when no stored values can be disclosed.
47727
+ example:
47728
+ instance_url: https://example.my.salesforce.com
47729
+ state:
47730
+ type: string
47731
+ enum:
47732
+ - connected
47733
+ - needs_reauthorization
47734
+ - disconnected
47735
+ description: >-
47736
+ The state of the connected account:
47737
+
47738
+ - `connected`: The connection is active and tokens are valid.
47739
+
47740
+ - `needs_reauthorization`: The user needs to reauthorize the
47741
+ connection, typically because required scopes have changed.
47742
+
47743
+ - `disconnected`: The connection has been disconnected.
47744
+ example: connected
47745
+ created_at:
47746
+ type: string
47747
+ description: The timestamp when the connection was created.
47748
+ example: '2024-01-16T14:20:00.000Z'
47749
+ updated_at:
47750
+ type: string
47751
+ description: The timestamp when the connection was last updated.
47752
+ example: '2024-01-16T14:20:00.000Z'
47753
+ required:
47754
+ - object
47755
+ - id
47756
+ - connection_role
47757
+ - account_identifier
47758
+ - account_display_name
47759
+ - user_id
47760
+ - organization_id
47761
+ - scopes
47762
+ - state
47763
+ - created_at
47764
+ - updated_at
47321
47765
  PortalLinkResponse:
47322
47766
  type: object
47323
47767
  properties: