@workos/openapi-spec 0.102.0 → 0.104.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.
@@ -15014,7 +15014,7 @@ paths:
15014
15014
  content:
15015
15015
  application/json:
15016
15016
  schema:
15017
- $ref: '#/components/schemas/ConnectedAccountDto'
15017
+ $ref: '#/components/schemas/OrganizationConnectedAccountDto'
15018
15018
  responses:
15019
15019
  '201':
15020
15020
  description: The connected account was created successfully.
@@ -15044,8 +15044,21 @@ paths:
15044
15044
  updated_at: '2024-01-16T14:20:00.000Z'
15045
15045
  '401':
15046
15046
  description: The request is missing a valid API key.
15047
+ '403':
15048
+ description: The `user_id` is not an active member of the organization.
15049
+ content:
15050
+ application/json:
15051
+ schema:
15052
+ type: object
15053
+ properties:
15054
+ message:
15055
+ type: string
15056
+ description: A human-readable description of the error.
15057
+ example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
15058
+ required:
15059
+ - message
15047
15060
  '404':
15048
- description: The organization or data integration was not found.
15061
+ description: The organization, user, or data integration was not found.
15049
15062
  content:
15050
15063
  application/json:
15051
15064
  schema:
@@ -15187,7 +15200,7 @@ paths:
15187
15200
  content:
15188
15201
  application/json:
15189
15202
  schema:
15190
- $ref: '#/components/schemas/ConnectedAccountDto'
15203
+ $ref: '#/components/schemas/OrganizationConnectedAccountDto'
15191
15204
  responses:
15192
15205
  '200':
15193
15206
  description: The connected account was updated successfully.
@@ -15230,8 +15243,21 @@ paths:
15230
15243
  - message
15231
15244
  '401':
15232
15245
  description: The request is missing a valid API key.
15246
+ '403':
15247
+ description: The `user_id` is not an active member of the organization.
15248
+ content:
15249
+ application/json:
15250
+ schema:
15251
+ type: object
15252
+ properties:
15253
+ message:
15254
+ type: string
15255
+ description: A human-readable description of the error.
15256
+ example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
15257
+ required:
15258
+ - message
15233
15259
  '404':
15234
- description: The organization or connected account was not found.
15260
+ description: The organization, user, or connected account was not found.
15235
15261
  content:
15236
15262
  application/json:
15237
15263
  schema:
@@ -20274,7 +20300,7 @@ paths:
20274
20300
  summary: Create an organization membership
20275
20301
  tags:
20276
20302
  - user-management.organization-membership
20277
- x-mutually-exclusive-body-groups: &ref_16
20303
+ x-mutually-exclusive-body-groups: &ref_18
20278
20304
  role:
20279
20305
  optional: true
20280
20306
  variants:
@@ -20458,7 +20484,7 @@ paths:
20458
20484
  summary: Update an organization membership
20459
20485
  tags:
20460
20486
  - user-management.organization-membership
20461
- x-mutually-exclusive-body-groups: &ref_17
20487
+ x-mutually-exclusive-body-groups: &ref_19
20462
20488
  role:
20463
20489
  optional: true
20464
20490
  variants:
@@ -21778,7 +21804,7 @@ paths:
21778
21804
  summary: Create a user
21779
21805
  tags:
21780
21806
  - user-management.users
21781
- x-mutually-exclusive-body-groups: &ref_18
21807
+ x-mutually-exclusive-body-groups: &ref_20
21782
21808
  password:
21783
21809
  optional: true
21784
21810
  variants:
@@ -22071,7 +22097,7 @@ paths:
22071
22097
  summary: Update a user
22072
22098
  tags:
22073
22099
  - user-management.users
22074
- x-mutually-exclusive-body-groups: &ref_22
22100
+ x-mutually-exclusive-body-groups: &ref_24
22075
22101
  password:
22076
22102
  optional: true
22077
22103
  variants:
@@ -28155,7 +28181,7 @@ components:
28155
28181
  Updates to a custom provider's OAuth definition. Only valid for
28156
28182
  custom-provider integrations.
28157
28183
  $ref: '#/components/schemas/UpdateCustomProviderDefinitionDto'
28158
- ConnectedAccountDto:
28184
+ OrganizationConnectedAccountDto:
28159
28185
  type: object
28160
28186
  properties:
28161
28187
  access_token:
@@ -28175,7 +28201,7 @@ components:
28175
28201
  format: date-time
28176
28202
  scopes:
28177
28203
  description: The OAuth scopes granted for this connection.
28178
- example:
28204
+ example: &ref_16
28179
28205
  - repo
28180
28206
  - user:email
28181
28207
  type: array
@@ -28183,13 +28209,53 @@ components:
28183
28209
  type: string
28184
28210
  state:
28185
28211
  type: string
28186
- enum:
28212
+ enum: &ref_17
28187
28213
  - connected
28188
28214
  - needs_reauthorization
28189
28215
  description: >-
28190
28216
  Explicitly set the state of the connected account. When omitted, the
28191
28217
  state is derived from the token combination provided.
28192
28218
  example: connected
28219
+ user_id:
28220
+ type: string
28221
+ description: >-
28222
+ The [User](/reference/authkit/user) identifier of the organization
28223
+ member on whose behalf the connected account is being imported or
28224
+ updated. The user must be an active member of the organization.
28225
+ example: user_01EHZNVPK3SFK441A1RGBFSHRT
28226
+ required:
28227
+ - user_id
28228
+ ConnectedAccountDto:
28229
+ type: object
28230
+ properties:
28231
+ access_token:
28232
+ type: string
28233
+ description: The OAuth access token for the connected account.
28234
+ example: gho_16C7e42F292c6912E7710c838347Ae178B4a
28235
+ refresh_token:
28236
+ type: string
28237
+ description: The OAuth refresh token for the connected account.
28238
+ example: ghr_xxxxxxxxxxxxxxxxxxxx
28239
+ expires_at:
28240
+ type: string
28241
+ description: >-
28242
+ The ISO-8601 timestamp when the access token expires. Required when
28243
+ `access_token` is provided for tokens that expire.
28244
+ example: '2025-12-31T23:59:59.000Z'
28245
+ format: date-time
28246
+ scopes:
28247
+ description: The OAuth scopes granted for this connection.
28248
+ example: *ref_16
28249
+ type: array
28250
+ items:
28251
+ type: string
28252
+ state:
28253
+ type: string
28254
+ enum: *ref_17
28255
+ description: >-
28256
+ Explicitly set the state of the connected account. When omitted, the
28257
+ state is derived from the token combination provided.
28258
+ example: connected
28193
28259
  GenerateLinkDto:
28194
28260
  type: object
28195
28261
  properties:
@@ -28695,9 +28761,9 @@ components:
28695
28761
  x-exclude-from-lint: true
28696
28762
  required:
28697
28763
  - role_slug
28698
- x-mutually-exclusive-body-groups: *ref_16
28764
+ x-mutually-exclusive-body-groups: *ref_18
28699
28765
  UpdateUserlandUserOrganizationMembershipDto:
28700
- x-mutually-exclusive-body-groups: *ref_17
28766
+ x-mutually-exclusive-body-groups: *ref_19
28701
28767
  oneOf:
28702
28768
  - type: object
28703
28769
  not:
@@ -28823,7 +28889,7 @@ components:
28823
28889
  - 'null'
28824
28890
  additionalProperties: *ref_13
28825
28891
  maxProperties: 50
28826
- example: &ref_19
28892
+ example: &ref_21
28827
28893
  timezone: America/New_York
28828
28894
  description: >-
28829
28895
  Object containing metadata key/value pairs associated with the
@@ -28922,7 +28988,7 @@ components:
28922
28988
  example: $2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy
28923
28989
  password_hash_type:
28924
28990
  type: string
28925
- enum: &ref_20
28991
+ enum: &ref_22
28926
28992
  - bcrypt
28927
28993
  - firebase-scrypt
28928
28994
  - ssha
@@ -28937,7 +29003,7 @@ components:
28937
29003
  example: bcrypt
28938
29004
  password_salt_position:
28939
29005
  type: string
28940
- enum: &ref_21
29006
+ enum: &ref_23
28941
29007
  - prefix
28942
29008
  - suffix
28943
29009
  description: >-
@@ -28958,7 +29024,7 @@ components:
28958
29024
  x-exclude-from-lint: true
28959
29025
  required:
28960
29026
  - password
28961
- x-mutually-exclusive-body-groups: *ref_18
29027
+ x-mutually-exclusive-body-groups: *ref_20
28962
29028
  UpdateUserlandUserDto:
28963
29029
  allOf:
28964
29030
  - type: object
@@ -28990,7 +29056,7 @@ components:
28990
29056
  - 'null'
28991
29057
  additionalProperties: *ref_13
28992
29058
  maxProperties: 50
28993
- example: *ref_19
29059
+ example: *ref_21
28994
29060
  description: >-
28995
29061
  Object containing metadata key/value pairs associated with the
28996
29062
  user.
@@ -29072,7 +29138,7 @@ components:
29072
29138
  example: $2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy
29073
29139
  password_hash_type:
29074
29140
  type: string
29075
- enum: *ref_20
29141
+ enum: *ref_22
29076
29142
  description: >-
29077
29143
  The algorithm originally used to hash the password, used
29078
29144
  when providing a `password_hash`. Required with
@@ -29080,7 +29146,7 @@ components:
29080
29146
  example: bcrypt
29081
29147
  password_salt_position:
29082
29148
  type: string
29083
- enum: *ref_21
29149
+ enum: *ref_23
29084
29150
  description: >-
29085
29151
  The position of the salt relative to the password when the
29086
29152
  `password_hash` digest was computed: `prefix` for `hash(salt
@@ -29099,7 +29165,7 @@ components:
29099
29165
  x-exclude-from-lint: true
29100
29166
  required:
29101
29167
  - password
29102
- x-mutually-exclusive-body-groups: *ref_22
29168
+ x-mutually-exclusive-body-groups: *ref_24
29103
29169
  VerifyEmailAddressDto:
29104
29170
  type: object
29105
29171
  properties:
@@ -29208,7 +29274,7 @@ components:
29208
29274
  description: The events that the Webhook Endpoint is subscribed to.
29209
29275
  items:
29210
29276
  type: string
29211
- enum: &ref_23
29277
+ enum: &ref_25
29212
29278
  - agent.blueprint.created
29213
29279
  - agent.blueprint.deleted
29214
29280
  - agent.blueprint.updated
@@ -29339,7 +29405,7 @@ components:
29339
29405
  description: The events that the Webhook Endpoint is subscribed to.
29340
29406
  items:
29341
29407
  type: string
29342
- enum: *ref_23
29408
+ enum: *ref_25
29343
29409
  example:
29344
29410
  - user.created
29345
29411
  - dsync.user.created
@@ -32994,7 +33060,7 @@ components:
32994
33060
  description: >-
32995
33061
  An object containing the custom attribute mapping for the Directory
32996
33062
  Provider.
32997
- example: &ref_29
33063
+ example: &ref_31
32998
33064
  department: Engineering
32999
33065
  job_title: Software Engineer
33000
33066
  role:
@@ -33233,7 +33299,7 @@ components:
33233
33299
  type: object
33234
33300
  additionalProperties: {}
33235
33301
  description: The event payload.
33236
- example: &ref_24
33302
+ example: &ref_26
33237
33303
  id: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ
33238
33304
  directory_id: directory_01ECAZ4NV9QMV47GW873HDCX74
33239
33305
  organization_id: org_01EZTR6WYX1A0DSE2CYMGXQ24Y
@@ -33268,11 +33334,11 @@ components:
33268
33334
  - data
33269
33335
  - created_at
33270
33336
  description: An event emitted by WorkOS.
33271
- example: &ref_34
33337
+ example: &ref_36
33272
33338
  object: event
33273
33339
  id: event_01EHZNVPK3SFK441A1RGBFSHRT
33274
33340
  event: dsync.user.created
33275
- data: *ref_24
33341
+ data: *ref_26
33276
33342
  created_at: '2021-06-25T19:07:33.155Z'
33277
33343
  context: {}
33278
33344
  - oneOf:
@@ -33472,7 +33538,7 @@ components:
33472
33538
  description: >-
33473
33539
  Permission slugs forming the ceiling on what sessions
33474
33540
  minted from this blueprint may do.
33475
- example: &ref_25
33541
+ example: &ref_27
33476
33542
  - crm:read
33477
33543
  - email:send
33478
33544
  invocable_by:
@@ -33485,7 +33551,7 @@ components:
33485
33551
  description: >-
33486
33552
  Role slugs whose members may mint user-delegated
33487
33553
  sessions from this blueprint.
33488
- example: &ref_26
33554
+ example: &ref_28
33489
33555
  - manager
33490
33556
  organization_ids:
33491
33557
  type: array
@@ -33494,7 +33560,7 @@ components:
33494
33560
  description: >-
33495
33561
  Organizations in which autonomous sessions may be
33496
33562
  minted from this blueprint.
33497
- example: &ref_27
33563
+ example: &ref_29
33498
33564
  - org_01EHWNCE74X7JSDV0X3SZ3KJNY
33499
33565
  required:
33500
33566
  - role_slugs
@@ -33653,7 +33719,7 @@ components:
33653
33719
  description: >-
33654
33720
  Permission slugs forming the ceiling on what sessions
33655
33721
  minted from this blueprint may do.
33656
- example: *ref_25
33722
+ example: *ref_27
33657
33723
  invocable_by:
33658
33724
  type: object
33659
33725
  properties:
@@ -33664,7 +33730,7 @@ components:
33664
33730
  description: >-
33665
33731
  Role slugs whose members may mint user-delegated
33666
33732
  sessions from this blueprint.
33667
- example: *ref_26
33733
+ example: *ref_28
33668
33734
  organization_ids:
33669
33735
  type: array
33670
33736
  items:
@@ -33672,7 +33738,7 @@ components:
33672
33738
  description: >-
33673
33739
  Organizations in which autonomous sessions may be
33674
33740
  minted from this blueprint.
33675
- example: *ref_27
33741
+ example: *ref_29
33676
33742
  required:
33677
33743
  - role_slugs
33678
33744
  - organization_ids
@@ -34708,7 +34774,7 @@ components:
34708
34774
  items:
34709
34775
  type: string
34710
34776
  description: The permissions granted to the API key.
34711
- example: &ref_28
34777
+ example: &ref_30
34712
34778
  - users:read
34713
34779
  - users:write
34714
34780
  created_at:
@@ -34834,7 +34900,7 @@ components:
34834
34900
  items:
34835
34901
  type: string
34836
34902
  description: The permissions granted to the API key.
34837
- example: *ref_28
34903
+ example: *ref_30
34838
34904
  created_at:
34839
34905
  type: string
34840
34906
  description: The timestamp when the API key was created.
@@ -34958,7 +35024,7 @@ components:
34958
35024
  items:
34959
35025
  type: string
34960
35026
  description: The permissions granted to the API key.
34961
- example: *ref_28
35027
+ example: *ref_30
34962
35028
  created_at:
34963
35029
  type: string
34964
35030
  description: The timestamp when the API key was created.
@@ -37825,7 +37891,7 @@ components:
37825
37891
  description: >-
37826
37892
  An object containing the custom attribute mapping for
37827
37893
  the Directory Provider.
37828
- example: *ref_29
37894
+ example: *ref_31
37829
37895
  role:
37830
37896
  $ref: '#/components/schemas/SlimRole'
37831
37897
  roles:
@@ -38015,7 +38081,7 @@ components:
38015
38081
  description: >-
38016
38082
  Labels assigned to the Feature Flag for categorizing and
38017
38083
  filtering.
38018
- example: &ref_30
38084
+ example: &ref_32
38019
38085
  - reports
38020
38086
  enabled:
38021
38087
  type: boolean
@@ -38176,7 +38242,7 @@ components:
38176
38242
  description: >-
38177
38243
  Labels assigned to the Feature Flag for categorizing and
38178
38244
  filtering.
38179
- example: *ref_30
38245
+ example: *ref_32
38180
38246
  enabled:
38181
38247
  type: boolean
38182
38248
  description: >-
@@ -38336,7 +38402,7 @@ components:
38336
38402
  description: >-
38337
38403
  Labels assigned to the Feature Flag for categorizing and
38338
38404
  filtering.
38339
- example: *ref_30
38405
+ example: *ref_32
38340
38406
  enabled:
38341
38407
  type: boolean
38342
38408
  description: >-
@@ -38616,7 +38682,7 @@ components:
38616
38682
  description: >-
38617
38683
  Labels assigned to the Feature Flag for categorizing and
38618
38684
  filtering.
38619
- example: *ref_30
38685
+ example: *ref_32
38620
38686
  enabled:
38621
38687
  type: boolean
38622
38688
  description: >-
@@ -39604,7 +39670,7 @@ components:
39604
39670
  description: >-
39605
39671
  Object containing [metadata](/authkit/metadata)
39606
39672
  key/value pairs associated with the Organization.
39607
- example: &ref_31
39673
+ example: &ref_33
39608
39674
  tier: diamond
39609
39675
  propertyNames:
39610
39676
  maxLength: 40
@@ -39754,7 +39820,7 @@ components:
39754
39820
  description: >-
39755
39821
  Object containing [metadata](/authkit/metadata)
39756
39822
  key/value pairs associated with the Organization.
39757
- example: *ref_31
39823
+ example: *ref_33
39758
39824
  propertyNames:
39759
39825
  maxLength: 40
39760
39826
  maxProperties: 50
@@ -40581,7 +40647,7 @@ components:
40581
40647
  items:
40582
40648
  type: string
40583
40649
  description: The permissions granted by the role.
40584
- example: &ref_32
40650
+ example: &ref_34
40585
40651
  - users:read
40586
40652
  - users:write
40587
40653
  created_at:
@@ -40665,7 +40731,7 @@ components:
40665
40731
  items:
40666
40732
  type: string
40667
40733
  description: The permissions granted by the role.
40668
- example: *ref_32
40734
+ example: *ref_34
40669
40735
  created_at:
40670
40736
  format: date-time
40671
40737
  type: string
@@ -40747,7 +40813,7 @@ components:
40747
40813
  items:
40748
40814
  type: string
40749
40815
  description: The permissions granted by the role.
40750
- example: *ref_32
40816
+ example: *ref_34
40751
40817
  created_at:
40752
40818
  format: date-time
40753
40819
  type: string
@@ -40884,7 +40950,7 @@ components:
40884
40950
  description: >-
40885
40951
  Object containing [metadata](/authkit/metadata)
40886
40952
  key/value pairs associated with the Organization.
40887
- example: *ref_31
40953
+ example: *ref_33
40888
40954
  propertyNames:
40889
40955
  maxLength: 40
40890
40956
  maxProperties: 50
@@ -41877,6 +41943,7 @@ components:
41877
41943
  - auditLogEvents
41878
41944
  - connections
41879
41945
  - directoryUsers
41946
+ - scimLogs
41880
41947
  description: The type of resource being exported.
41881
41948
  example: users
41882
41949
  required:
@@ -41926,6 +41993,7 @@ components:
41926
41993
  - auditLogEvents
41927
41994
  - connections
41928
41995
  - directoryUsers
41996
+ - scimLogs
41929
41997
  description: The type of resource being exported.
41930
41998
  example: users
41931
41999
  required:
@@ -41975,6 +42043,7 @@ components:
41975
42043
  - auditLogEvents
41976
42044
  - connections
41977
42045
  - directoryUsers
42046
+ - scimLogs
41978
42047
  description: The type of resource being exported.
41979
42048
  example: users
41980
42049
  required:
@@ -42024,6 +42093,7 @@ components:
42024
42093
  - auditLogEvents
42025
42094
  - connections
42026
42095
  - directoryUsers
42096
+ - scimLogs
42027
42097
  description: The type of resource being exported.
42028
42098
  example: users
42029
42099
  required:
@@ -42076,7 +42146,7 @@ components:
42076
42146
  items:
42077
42147
  type: string
42078
42148
  description: The permissions granted by the role.
42079
- example: &ref_33
42149
+ example: &ref_35
42080
42150
  - users:read
42081
42151
  - users:write
42082
42152
  created_at:
@@ -42142,7 +42212,7 @@ components:
42142
42212
  items:
42143
42213
  type: string
42144
42214
  description: The permissions granted by the role.
42145
- example: *ref_33
42215
+ example: *ref_35
42146
42216
  created_at:
42147
42217
  format: date-time
42148
42218
  type: string
@@ -42206,7 +42276,7 @@ components:
42206
42276
  items:
42207
42277
  type: string
42208
42278
  description: The permissions granted by the role.
42209
- example: *ref_33
42279
+ example: *ref_35
42210
42280
  created_at:
42211
42281
  format: date-time
42212
42282
  type: string
@@ -43346,7 +43416,7 @@ components:
43346
43416
  - data
43347
43417
  - created_at
43348
43418
  - object
43349
- example: *ref_34
43419
+ example: *ref_36
43350
43420
  description: An event emitted by WorkOS.
43351
43421
  EventList:
43352
43422
  type: object
@@ -43381,7 +43451,7 @@ components:
43381
43451
  example:
43382
43452
  object: list
43383
43453
  data:
43384
- - *ref_34
43454
+ - *ref_36
43385
43455
  list_metadata:
43386
43456
  after: event_01EHZNVPK3SFK441A1RGBFSHRT
43387
43457
  JwtTemplate:
@@ -45342,7 +45412,7 @@ components:
45342
45412
  items:
45343
45413
  type: string
45344
45414
  description: The OAuth scopes granted for this connection.
45345
- example: &ref_35
45415
+ example: &ref_37
45346
45416
  - repo
45347
45417
  - user:email
45348
45418
  auth_method:
@@ -45392,7 +45462,7 @@ components:
45392
45462
  `installation` scope, excluding any it declares as
45393
45463
  secret. Only present when `auth_method` is
45394
45464
  `client_credentials`.
45395
- example: &ref_36
45465
+ example: &ref_38
45396
45466
  instance_url: https://example.my.salesforce.com
45397
45467
  state:
45398
45468
  type: string
@@ -45521,7 +45591,7 @@ components:
45521
45591
  items:
45522
45592
  type: string
45523
45593
  description: The OAuth scopes granted for this connection.
45524
- example: *ref_35
45594
+ example: *ref_37
45525
45595
  auth_method:
45526
45596
  type: string
45527
45597
  enum:
@@ -45568,7 +45638,7 @@ components:
45568
45638
  `installation` scope, excluding any it declares as
45569
45639
  secret. Only present when `auth_method` is
45570
45640
  `client_credentials`.
45571
- example: *ref_36
45641
+ example: *ref_38
45572
45642
  state:
45573
45643
  type: string
45574
45644
  enum:
package/dist/types.d.ts CHANGED
@@ -5529,6 +5529,43 @@ export interface components {
5529
5529
  /** @description Updates to a custom provider's OAuth definition. Only valid for custom-provider integrations. */
5530
5530
  custom_provider?: components["schemas"]["UpdateCustomProviderDefinitionDto"];
5531
5531
  };
5532
+ OrganizationConnectedAccountDto: {
5533
+ /**
5534
+ * @description The OAuth access token for the connected account.
5535
+ * @example gho_16C7e42F292c6912E7710c838347Ae178B4a
5536
+ */
5537
+ access_token?: string;
5538
+ /**
5539
+ * @description The OAuth refresh token for the connected account.
5540
+ * @example ghr_xxxxxxxxxxxxxxxxxxxx
5541
+ */
5542
+ refresh_token?: string;
5543
+ /**
5544
+ * Format: date-time
5545
+ * @description The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire.
5546
+ * @example 2025-12-31T23:59:59.000Z
5547
+ */
5548
+ expires_at?: string;
5549
+ /**
5550
+ * @description The OAuth scopes granted for this connection.
5551
+ * @example [
5552
+ * "repo",
5553
+ * "user:email"
5554
+ * ]
5555
+ */
5556
+ scopes?: string[];
5557
+ /**
5558
+ * @description Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided.
5559
+ * @example connected
5560
+ * @enum {string}
5561
+ */
5562
+ state?: "connected" | "needs_reauthorization";
5563
+ /**
5564
+ * @description The [User](/reference/authkit/user) identifier of the organization member on whose behalf the connected account is being imported or updated. The user must be an active member of the organization.
5565
+ * @example user_01EHZNVPK3SFK441A1RGBFSHRT
5566
+ */
5567
+ user_id: string;
5568
+ };
5532
5569
  ConnectedAccountDto: {
5533
5570
  /**
5534
5571
  * @description The OAuth access token for the connected account.
@@ -15837,7 +15874,7 @@ export interface components {
15837
15874
  * @example users
15838
15875
  * @enum {string}
15839
15876
  */
15840
- resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers";
15877
+ resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers" | "scimLogs";
15841
15878
  };
15842
15879
  /**
15843
15880
  * Format: date-time
@@ -15871,7 +15908,7 @@ export interface components {
15871
15908
  * @example users
15872
15909
  * @enum {string}
15873
15910
  */
15874
- resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers";
15911
+ resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers" | "scimLogs";
15875
15912
  };
15876
15913
  /**
15877
15914
  * Format: date-time
@@ -15905,7 +15942,7 @@ export interface components {
15905
15942
  * @example users
15906
15943
  * @enum {string}
15907
15944
  */
15908
- resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers";
15945
+ resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers" | "scimLogs";
15909
15946
  };
15910
15947
  /**
15911
15948
  * Format: date-time
@@ -15939,7 +15976,7 @@ export interface components {
15939
15976
  * @example users
15940
15977
  * @enum {string}
15941
15978
  */
15942
- resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers";
15979
+ resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers" | "scimLogs";
15943
15980
  };
15944
15981
  /**
15945
15982
  * Format: date-time
@@ -33247,7 +33284,7 @@ export interface operations {
33247
33284
  };
33248
33285
  requestBody: {
33249
33286
  content: {
33250
- "application/json": components["schemas"]["ConnectedAccountDto"];
33287
+ "application/json": components["schemas"]["OrganizationConnectedAccountDto"];
33251
33288
  };
33252
33289
  };
33253
33290
  responses: {
@@ -33307,7 +33344,22 @@ export interface operations {
33307
33344
  };
33308
33345
  content?: never;
33309
33346
  };
33310
- /** @description The organization or connected account was not found. */
33347
+ /** @description The `user_id` is not an active member of the organization. */
33348
+ 403: {
33349
+ headers: {
33350
+ [name: string]: unknown;
33351
+ };
33352
+ content: {
33353
+ "application/json": {
33354
+ /**
33355
+ * @description A human-readable description of the error.
33356
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
33357
+ */
33358
+ message: string;
33359
+ };
33360
+ };
33361
+ };
33362
+ /** @description The organization, user, or connected account was not found. */
33311
33363
  404: {
33312
33364
  headers: {
33313
33365
  [name: string]: unknown;
@@ -33381,7 +33433,7 @@ export interface operations {
33381
33433
  };
33382
33434
  requestBody: {
33383
33435
  content: {
33384
- "application/json": components["schemas"]["ConnectedAccountDto"];
33436
+ "application/json": components["schemas"]["OrganizationConnectedAccountDto"];
33385
33437
  };
33386
33438
  };
33387
33439
  responses: {
@@ -33426,7 +33478,22 @@ export interface operations {
33426
33478
  };
33427
33479
  content?: never;
33428
33480
  };
33429
- /** @description The organization or data integration was not found. */
33481
+ /** @description The `user_id` is not an active member of the organization. */
33482
+ 403: {
33483
+ headers: {
33484
+ [name: string]: unknown;
33485
+ };
33486
+ content: {
33487
+ "application/json": {
33488
+ /**
33489
+ * @description A human-readable description of the error.
33490
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
33491
+ */
33492
+ message: string;
33493
+ };
33494
+ };
33495
+ };
33496
+ /** @description The organization, user, or data integration was not found. */
33430
33497
  404: {
33431
33498
  headers: {
33432
33499
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.102.0",
3
+ "version": "0.104.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",
@@ -56,15 +56,15 @@
56
56
  "lodash": "^4.17.23"
57
57
  },
58
58
  "devDependencies": {
59
- "@types/node": "^26.6.0",
59
+ "@types/node": "^26.6.2",
60
60
  "@workos/oagen": "^0.30.2",
61
- "@workos/oagen-emitters": "^0.24.15",
61
+ "@workos/oagen-emitters": "^0.24.16",
62
62
  "diff2html": "^3.4.56",
63
63
  "husky": "^9.1.7",
64
64
  "js-yaml": "^5.4.2",
65
65
  "openapi-to-postmanv2": "^6.3.3",
66
66
  "tsdown": "^0.23.0",
67
- "tsx": "^4.23.13",
67
+ "tsx": "^4.23.15",
68
68
  "typescript": "^7.0.2"
69
69
  }
70
70
  }