@workos/openapi-spec 0.161.0 → 0.162.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.
@@ -9107,6 +9107,374 @@ paths:
9107
9107
  summary: List Directories
9108
9108
  tags:
9109
9109
  - directories
9110
+ /directories/{directoryId}/groups:
9111
+ get:
9112
+ description: >-
9113
+ Get a list of the Directory Groups in a Directory, optionally filtered
9114
+ to the groups a Directory User belongs to.
9115
+ operationId: DirectoriesGroupsController_list
9116
+ parameters:
9117
+ - name: directoryId
9118
+ required: true
9119
+ in: path
9120
+ description: Unique identifier of the Directory.
9121
+ schema:
9122
+ type: string
9123
+ example: directory_01ECAZ4NV9QMV47GW873HDCX74
9124
+ - name: before
9125
+ required: false
9126
+ in: query
9127
+ description: >-
9128
+ An object ID that defines your place in the list. When the ID is not
9129
+ present, you are at the end of the list. For example, if you make a
9130
+ list request and receive 100 objects, ending with `"obj_123"`, your
9131
+ subsequent call can include `before="obj_123"` to fetch a new batch
9132
+ of objects before `"obj_123"`.
9133
+ schema:
9134
+ example: xxx_01HXYZ123456789ABCDEFGHIJ
9135
+ type: string
9136
+ - name: after
9137
+ required: false
9138
+ in: query
9139
+ description: >-
9140
+ An object ID that defines your place in the list. When the ID is not
9141
+ present, you are at the end of the list. For example, if you make a
9142
+ list request and receive 100 objects, ending with `"obj_123"`, your
9143
+ subsequent call can include `after="obj_123"` to fetch a new batch
9144
+ of objects after `"obj_123"`.
9145
+ schema:
9146
+ example: xxx_01HXYZ987654321KJIHGFEDCBA
9147
+ type: string
9148
+ - name: limit
9149
+ required: false
9150
+ in: query
9151
+ description: >-
9152
+ Upper limit on the number of objects to return, between `1` and
9153
+ `100`.
9154
+ schema:
9155
+ minimum: 1
9156
+ maximum: 100
9157
+ default: 10
9158
+ example: 10
9159
+ type: integer
9160
+ - name: order
9161
+ required: false
9162
+ in: query
9163
+ description: >-
9164
+ Order the results by the creation time. Supported values are `"asc"`
9165
+ (ascending), `"desc"` (descending), and `"normal"` (descending with
9166
+ reversed cursor semantics where `before` fetches older records and
9167
+ `after` fetches newer records). Defaults to `normal`.
9168
+ schema:
9169
+ $ref: '#/components/schemas/PaginationOrder'
9170
+ - name: user
9171
+ required: false
9172
+ in: query
9173
+ description: Filter Directory Groups to those this Directory User belongs to.
9174
+ schema:
9175
+ example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ
9176
+ type: string
9177
+ responses:
9178
+ '200':
9179
+ description: OK
9180
+ content:
9181
+ application/json:
9182
+ schema:
9183
+ allOf:
9184
+ - type: object
9185
+ properties:
9186
+ object:
9187
+ type: string
9188
+ description: Indicates this is a list response.
9189
+ const: list
9190
+ list_metadata:
9191
+ type: object
9192
+ properties:
9193
+ before:
9194
+ type:
9195
+ - string
9196
+ - 'null'
9197
+ description: >-
9198
+ An object ID that defines your place in the list.
9199
+ When the ID is not present, you are at the start
9200
+ of the list.
9201
+ example: directory_group_01HXYZ123456789ABCDEFGHIJ
9202
+ after:
9203
+ type:
9204
+ - string
9205
+ - 'null'
9206
+ description: >-
9207
+ An object ID that defines your place in the list.
9208
+ When the ID is not present, you are at the end of
9209
+ the list.
9210
+ example: directory_group_01HXYZ987654321KJIHGFEDCBA
9211
+ required:
9212
+ - before
9213
+ - after
9214
+ description: >-
9215
+ Pagination cursors for navigating between pages of
9216
+ results.
9217
+ - type: object
9218
+ properties:
9219
+ data:
9220
+ type: array
9221
+ description: The list of records for the current page.
9222
+ items:
9223
+ $ref: '#/components/schemas/DirectoryGroup'
9224
+ '403':
9225
+ description: Forbidden
9226
+ content:
9227
+ application/json:
9228
+ schema:
9229
+ $ref: '#/components/schemas/ErrorBody'
9230
+ '404':
9231
+ description: Not Found
9232
+ content:
9233
+ application/json:
9234
+ schema:
9235
+ $ref: '#/components/schemas/ErrorBody'
9236
+ '422':
9237
+ description: Unprocessable Entity
9238
+ content:
9239
+ application/json:
9240
+ schema:
9241
+ $ref: '#/components/schemas/ErrorBody'
9242
+ summary: List Groups for a Directory
9243
+ tags:
9244
+ - directory-groups
9245
+ /directories/{directoryId}/groups/{groupId}:
9246
+ get:
9247
+ description: Get the details of a Directory Group in a Directory.
9248
+ operationId: DirectoriesGroupsController_find
9249
+ parameters:
9250
+ - name: directoryId
9251
+ required: true
9252
+ in: path
9253
+ description: Unique identifier of the Directory.
9254
+ schema:
9255
+ type: string
9256
+ example: directory_01ECAZ4NV9QMV47GW873HDCX74
9257
+ - name: groupId
9258
+ required: true
9259
+ in: path
9260
+ description: Unique identifier for the Directory Group.
9261
+ schema:
9262
+ example: directory_group_01E1JJS84MFPPQ3G655FHTKX6Z
9263
+ type: string
9264
+ responses:
9265
+ '200':
9266
+ description: OK
9267
+ content:
9268
+ application/json:
9269
+ schema:
9270
+ $ref: '#/components/schemas/DirectoryGroup'
9271
+ '403':
9272
+ description: Forbidden
9273
+ content:
9274
+ application/json:
9275
+ schema:
9276
+ $ref: '#/components/schemas/ErrorBody'
9277
+ '404':
9278
+ description: Not Found
9279
+ content:
9280
+ application/json:
9281
+ schema:
9282
+ $ref: '#/components/schemas/ErrorBody'
9283
+ summary: Get a Group for a Directory
9284
+ tags:
9285
+ - directory-groups
9286
+ /directories/{directoryId}/users:
9287
+ get:
9288
+ description: >-
9289
+ Get a list of the Directory Users in a Directory, optionally filtered to
9290
+ the members of a Directory Group.
9291
+ operationId: DirectoriesUsersController_list
9292
+ parameters:
9293
+ - name: directoryId
9294
+ required: true
9295
+ in: path
9296
+ description: Unique identifier of the Directory.
9297
+ schema:
9298
+ type: string
9299
+ example: directory_01ECAZ4NV9QMV47GW873HDCX74
9300
+ - name: before
9301
+ required: false
9302
+ in: query
9303
+ description: >-
9304
+ An object ID that defines your place in the list. When the ID is not
9305
+ present, you are at the end of the list. For example, if you make a
9306
+ list request and receive 100 objects, ending with `"obj_123"`, your
9307
+ subsequent call can include `before="obj_123"` to fetch a new batch
9308
+ of objects before `"obj_123"`.
9309
+ schema:
9310
+ example: xxx_01HXYZ123456789ABCDEFGHIJ
9311
+ type: string
9312
+ - name: after
9313
+ required: false
9314
+ in: query
9315
+ description: >-
9316
+ An object ID that defines your place in the list. When the ID is not
9317
+ present, you are at the end of the list. For example, if you make a
9318
+ list request and receive 100 objects, ending with `"obj_123"`, your
9319
+ subsequent call can include `after="obj_123"` to fetch a new batch
9320
+ of objects after `"obj_123"`.
9321
+ schema:
9322
+ example: xxx_01HXYZ987654321KJIHGFEDCBA
9323
+ type: string
9324
+ - name: limit
9325
+ required: false
9326
+ in: query
9327
+ description: >-
9328
+ Upper limit on the number of objects to return, between `1` and
9329
+ `100`.
9330
+ schema:
9331
+ minimum: 1
9332
+ maximum: 100
9333
+ default: 10
9334
+ example: 10
9335
+ type: integer
9336
+ - name: order
9337
+ required: false
9338
+ in: query
9339
+ description: >-
9340
+ Order the results by the creation time. Supported values are `"asc"`
9341
+ (ascending), `"desc"` (descending), and `"normal"` (descending with
9342
+ reversed cursor semantics where `before` fetches older records and
9343
+ `after` fetches newer records). Defaults to `normal`.
9344
+ schema:
9345
+ $ref: '#/components/schemas/PaginationOrder'
9346
+ - name: group
9347
+ required: false
9348
+ in: query
9349
+ description: Filter Directory Users to the members of this Directory Group.
9350
+ schema:
9351
+ example: directory_group_01E64QTDNS0EGJ0FMCVY9BWGZT
9352
+ type: string
9353
+ - name: idp_id
9354
+ required: false
9355
+ in: query
9356
+ description: >-
9357
+ Filter Directory Users by the identity provider's unique identifier
9358
+ (`idp_id`).
9359
+ schema:
9360
+ example: '2836'
9361
+ type: string
9362
+ - name: email
9363
+ required: false
9364
+ in: query
9365
+ description: Filter Directory Users by their primary email address.
9366
+ schema:
9367
+ example: jane.doe@example.com
9368
+ type: string
9369
+ responses:
9370
+ '200':
9371
+ description: OK
9372
+ content:
9373
+ application/json:
9374
+ schema:
9375
+ allOf:
9376
+ - type: object
9377
+ properties:
9378
+ object:
9379
+ type: string
9380
+ description: Indicates this is a list response.
9381
+ const: list
9382
+ list_metadata:
9383
+ type: object
9384
+ properties:
9385
+ before:
9386
+ type:
9387
+ - string
9388
+ - 'null'
9389
+ description: >-
9390
+ An object ID that defines your place in the list.
9391
+ When the ID is not present, you are at the start
9392
+ of the list.
9393
+ example: directory_user_01HXYZ123456789ABCDEFGHIJ
9394
+ after:
9395
+ type:
9396
+ - string
9397
+ - 'null'
9398
+ description: >-
9399
+ An object ID that defines your place in the list.
9400
+ When the ID is not present, you are at the end of
9401
+ the list.
9402
+ example: directory_user_01HXYZ987654321KJIHGFEDCBA
9403
+ required:
9404
+ - before
9405
+ - after
9406
+ description: >-
9407
+ Pagination cursors for navigating between pages of
9408
+ results.
9409
+ - type: object
9410
+ properties:
9411
+ data:
9412
+ type: array
9413
+ description: The list of records for the current page.
9414
+ items:
9415
+ $ref: '#/components/schemas/DirectoryUser'
9416
+ '403':
9417
+ description: Forbidden
9418
+ content:
9419
+ application/json:
9420
+ schema:
9421
+ $ref: '#/components/schemas/ErrorBody'
9422
+ '404':
9423
+ description: Not Found
9424
+ content:
9425
+ application/json:
9426
+ schema:
9427
+ $ref: '#/components/schemas/ErrorBody'
9428
+ '422':
9429
+ description: Unprocessable Entity
9430
+ content:
9431
+ application/json:
9432
+ schema:
9433
+ $ref: '#/components/schemas/ErrorBody'
9434
+ summary: List Users for a Directory
9435
+ tags:
9436
+ - directory-users
9437
+ /directories/{directoryId}/users/{userId}:
9438
+ get:
9439
+ description: Get the details of a Directory User in a Directory.
9440
+ operationId: DirectoriesUsersController_find
9441
+ parameters:
9442
+ - name: directoryId
9443
+ required: true
9444
+ in: path
9445
+ description: Unique identifier of the Directory.
9446
+ schema:
9447
+ type: string
9448
+ example: directory_01ECAZ4NV9QMV47GW873HDCX74
9449
+ - name: userId
9450
+ required: true
9451
+ in: path
9452
+ description: Unique identifier for the Directory User.
9453
+ schema:
9454
+ example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ
9455
+ type: string
9456
+ responses:
9457
+ '200':
9458
+ description: OK
9459
+ content:
9460
+ application/json:
9461
+ schema:
9462
+ $ref: '#/components/schemas/DirectoryUser'
9463
+ '403':
9464
+ description: Forbidden
9465
+ content:
9466
+ application/json:
9467
+ schema:
9468
+ $ref: '#/components/schemas/ErrorBody'
9469
+ '404':
9470
+ description: Not Found
9471
+ content:
9472
+ application/json:
9473
+ schema:
9474
+ $ref: '#/components/schemas/ErrorBody'
9475
+ summary: Get a User for a Directory
9476
+ tags:
9477
+ - directory-users
9110
9478
  /directories/{id}:
9111
9479
  get:
9112
9480
  description: Get the details of an existing directory.
@@ -9241,9 +9609,11 @@ paths:
9241
9609
  - directories
9242
9610
  /directory_groups:
9243
9611
  get:
9612
+ deprecated: true
9244
9613
  description: >-
9245
9614
  Get a list of all of existing directory groups matching the criteria
9246
- specified.
9615
+ specified. Deprecated: use `GET /directories/{directoryId}/groups`
9616
+ instead.
9247
9617
  operationId: DirectoryGroupsController_list
9248
9618
  parameters:
9249
9619
  - name: before
@@ -9340,7 +9710,10 @@ paths:
9340
9710
  - directory-groups
9341
9711
  /directory_groups/{id}:
9342
9712
  get:
9343
- description: Get the details of an existing Directory Group.
9713
+ deprecated: true
9714
+ description: >-
9715
+ Get the details of an existing Directory Group. Deprecated: use `GET
9716
+ /directories/{directoryId}/groups/{groupId}` instead.
9344
9717
  operationId: DirectoryGroupsController_find
9345
9718
  parameters:
9346
9719
  - name: id
@@ -9374,9 +9747,11 @@ paths:
9374
9747
  - directory-groups
9375
9748
  /directory_users:
9376
9749
  get:
9750
+ deprecated: true
9377
9751
  description: >-
9378
9752
  Get a list of all of existing Directory Users matching the criteria
9379
- specified.
9753
+ specified. Deprecated: use `GET /directories/{directoryId}/users`
9754
+ instead.
9380
9755
  operationId: DirectoryUsersController_list
9381
9756
  parameters:
9382
9757
  - name: before
@@ -9498,7 +9873,10 @@ paths:
9498
9873
  - directory-users
9499
9874
  /directory_users/{id}:
9500
9875
  get:
9501
- description: Get the details of an existing Directory User.
9876
+ deprecated: true
9877
+ description: >-
9878
+ Get the details of an existing Directory User. Deprecated: use `GET
9879
+ /directories/{directoryId}/users/{userId}` instead.
9502
9880
  operationId: DirectoryUsersController_find
9503
9881
  parameters:
9504
9882
  - name: id
@@ -24302,7 +24680,7 @@ components:
24302
24680
  - message
24303
24681
  AuthMethodMismatchErrorBody:
24304
24682
  type: object
24305
- properties: &ref_50
24683
+ properties: &ref_49
24306
24684
  code:
24307
24685
  type: string
24308
24686
  const: auth_method_mismatch
@@ -24316,13 +24694,13 @@ components:
24316
24694
  example: >-
24317
24695
  This installation uses oauth authentication. Use the POST
24318
24696
  /:slug/token endpoint instead.
24319
- required: &ref_51
24697
+ required: &ref_50
24320
24698
  - code
24321
24699
  - message
24322
24700
  x-component-name: AuthMethodMismatchError
24323
24701
  AccountSelectionRequiredErrorBody:
24324
24702
  type: object
24325
- properties: &ref_52
24703
+ properties: &ref_51
24326
24704
  code:
24327
24705
  type: string
24328
24706
  const: account_selection_required
@@ -24336,7 +24714,7 @@ components:
24336
24714
  example: >-
24337
24715
  Several connected accounts match this user for this provider. Name
24338
24716
  one with a connected account id.
24339
- required: &ref_53
24717
+ required: &ref_52
24340
24718
  - code
24341
24719
  - message
24342
24720
  x-component-name: AccountSelectionRequiredError
@@ -28412,6 +28790,141 @@ components:
28412
28790
  - data
28413
28791
  - list_metadata
28414
28792
  - list_metadata
28793
+ DirectoryUser:
28794
+ type: object
28795
+ properties:
28796
+ object:
28797
+ type: string
28798
+ description: Distinguishes the Directory User object.
28799
+ const: directory_user
28800
+ id:
28801
+ type: string
28802
+ description: Unique identifier for the Directory User.
28803
+ example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ
28804
+ directory_id:
28805
+ type: string
28806
+ description: The identifier of the Directory the Directory User belongs to.
28807
+ example: directory_01ECAZ4NV9QMV47GW873HDCX74
28808
+ organization_id:
28809
+ type: string
28810
+ description: The identifier for the Organization in which the Directory resides.
28811
+ example: org_01EZTR6WYX1A0DSE2CYMGXQ24Y
28812
+ idp_id:
28813
+ type: string
28814
+ description: >-
28815
+ Unique identifier for the user, assigned by the Directory Provider.
28816
+ Different Directory Providers use different ID formats.
28817
+ example: '2836'
28818
+ email:
28819
+ type:
28820
+ - string
28821
+ - 'null'
28822
+ description: The email address of the user.
28823
+ example: marcelina.davis@example.com
28824
+ first_name:
28825
+ type:
28826
+ - string
28827
+ - 'null'
28828
+ description: The first name of the user.
28829
+ example: Marcelina
28830
+ last_name:
28831
+ type:
28832
+ - string
28833
+ - 'null'
28834
+ description: The last name of the user.
28835
+ example: Davis
28836
+ name:
28837
+ type:
28838
+ - string
28839
+ - 'null'
28840
+ description: The full name of the user.
28841
+ example: Marcelina Davis
28842
+ emails:
28843
+ type: array
28844
+ items:
28845
+ type: object
28846
+ properties:
28847
+ primary:
28848
+ type: boolean
28849
+ description: Whether this is the primary email address.
28850
+ example: true
28851
+ type:
28852
+ type: string
28853
+ description: The type of email address.
28854
+ example: work
28855
+ value:
28856
+ type:
28857
+ - string
28858
+ - 'null'
28859
+ description: The email address value.
28860
+ example: marcelina.davis@example.com
28861
+ description: A list of email addresses for the user.
28862
+ deprecated: true
28863
+ job_title:
28864
+ type:
28865
+ - string
28866
+ - 'null'
28867
+ description: The job title of the user.
28868
+ example: Software Engineer
28869
+ deprecated: true
28870
+ username:
28871
+ type:
28872
+ - string
28873
+ - 'null'
28874
+ description: The username of the user.
28875
+ example: mdavis
28876
+ deprecated: true
28877
+ state:
28878
+ type: string
28879
+ enum:
28880
+ - active
28881
+ - suspended
28882
+ - inactive
28883
+ description: The state of the user.
28884
+ example: active
28885
+ raw_attributes:
28886
+ type: object
28887
+ additionalProperties: {}
28888
+ description: The raw attributes received from the directory provider.
28889
+ deprecated: true
28890
+ custom_attributes:
28891
+ type: object
28892
+ additionalProperties: {}
28893
+ description: >-
28894
+ An object containing the custom attribute mapping for the Directory
28895
+ Provider.
28896
+ example:
28897
+ department: Engineering
28898
+ job_title: Software Engineer
28899
+ role:
28900
+ $ref: '#/components/schemas/SlimRole'
28901
+ roles:
28902
+ type: array
28903
+ items:
28904
+ $ref: '#/components/schemas/SlimRole'
28905
+ description: All roles assigned to the user.
28906
+ created_at:
28907
+ format: date-time
28908
+ type: string
28909
+ description: An ISO 8601 timestamp.
28910
+ example: '2026-01-15T12:00:00.000Z'
28911
+ updated_at:
28912
+ format: date-time
28913
+ type: string
28914
+ description: An ISO 8601 timestamp.
28915
+ example: '2026-01-15T12:00:00.000Z'
28916
+ required:
28917
+ - object
28918
+ - id
28919
+ - directory_id
28920
+ - organization_id
28921
+ - idp_id
28922
+ - email
28923
+ - state
28924
+ - raw_attributes
28925
+ - custom_attributes
28926
+ - created_at
28927
+ - updated_at
28415
28928
  DirectoryUserWithGroups:
28416
28929
  type: object
28417
28930
  properties:
@@ -28540,14 +29053,8 @@ components:
28540
29053
  items:
28541
29054
  $ref: '#/components/schemas/DirectoryGroup'
28542
29055
  description: >-
28543
- The directory groups the user belongs to. Deprecated: starting May
28544
- 1, 2026, this field returns an empty array by default for newly
28545
- created teams. Existing teams currently depending on this field
28546
- should migrate to the new access pattern for better throughput
28547
- performance — the field is unbounded by user, so users with many
28548
- group memberships produce large, slow response payloads. Use the
28549
- List Directory Groups endpoint with a `user` filter to fetch a
28550
- user's group memberships.
29056
+ The directory groups the user belongs to. Deprecated: use `GET
29057
+ /directories/{directoryId}/groups?user={userId}` instead.
28551
29058
  deprecated: true
28552
29059
  required:
28553
29060
  - object
@@ -28860,141 +29367,6 @@ components:
28860
29367
  additionalProperties: {}
28861
29368
  description: Attributes that changed from their previous values.
28862
29369
  description: Additional context about the event.
28863
- DirectoryUser:
28864
- type: object
28865
- properties:
28866
- object:
28867
- type: string
28868
- description: Distinguishes the Directory User object.
28869
- const: directory_user
28870
- id:
28871
- type: string
28872
- description: Unique identifier for the Directory User.
28873
- example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ
28874
- directory_id:
28875
- type: string
28876
- description: The identifier of the Directory the Directory User belongs to.
28877
- example: directory_01ECAZ4NV9QMV47GW873HDCX74
28878
- organization_id:
28879
- type: string
28880
- description: The identifier for the Organization in which the Directory resides.
28881
- example: org_01EZTR6WYX1A0DSE2CYMGXQ24Y
28882
- idp_id:
28883
- type: string
28884
- description: >-
28885
- Unique identifier for the user, assigned by the Directory Provider.
28886
- Different Directory Providers use different ID formats.
28887
- example: '2836'
28888
- email:
28889
- type:
28890
- - string
28891
- - 'null'
28892
- description: The email address of the user.
28893
- example: marcelina.davis@example.com
28894
- first_name:
28895
- type:
28896
- - string
28897
- - 'null'
28898
- description: The first name of the user.
28899
- example: Marcelina
28900
- last_name:
28901
- type:
28902
- - string
28903
- - 'null'
28904
- description: The last name of the user.
28905
- example: Davis
28906
- name:
28907
- type:
28908
- - string
28909
- - 'null'
28910
- description: The full name of the user.
28911
- example: Marcelina Davis
28912
- emails:
28913
- type: array
28914
- items:
28915
- type: object
28916
- properties:
28917
- primary:
28918
- type: boolean
28919
- description: Whether this is the primary email address.
28920
- example: true
28921
- type:
28922
- type: string
28923
- description: The type of email address.
28924
- example: work
28925
- value:
28926
- type:
28927
- - string
28928
- - 'null'
28929
- description: The email address value.
28930
- example: marcelina.davis@example.com
28931
- description: A list of email addresses for the user.
28932
- deprecated: true
28933
- job_title:
28934
- type:
28935
- - string
28936
- - 'null'
28937
- description: The job title of the user.
28938
- example: Software Engineer
28939
- deprecated: true
28940
- username:
28941
- type:
28942
- - string
28943
- - 'null'
28944
- description: The username of the user.
28945
- example: mdavis
28946
- deprecated: true
28947
- state:
28948
- type: string
28949
- enum:
28950
- - active
28951
- - suspended
28952
- - inactive
28953
- description: The state of the user.
28954
- example: active
28955
- raw_attributes:
28956
- type: object
28957
- additionalProperties: {}
28958
- description: The raw attributes received from the directory provider.
28959
- deprecated: true
28960
- custom_attributes:
28961
- type: object
28962
- additionalProperties: {}
28963
- description: >-
28964
- An object containing the custom attribute mapping for the Directory
28965
- Provider.
28966
- example: &ref_43
28967
- department: Engineering
28968
- job_title: Software Engineer
28969
- role:
28970
- $ref: '#/components/schemas/SlimRole'
28971
- roles:
28972
- type: array
28973
- items:
28974
- $ref: '#/components/schemas/SlimRole'
28975
- description: All roles assigned to the user.
28976
- created_at:
28977
- format: date-time
28978
- type: string
28979
- description: An ISO 8601 timestamp.
28980
- example: '2026-01-15T12:00:00.000Z'
28981
- updated_at:
28982
- format: date-time
28983
- type: string
28984
- description: An ISO 8601 timestamp.
28985
- example: '2026-01-15T12:00:00.000Z'
28986
- required:
28987
- - object
28988
- - id
28989
- - directory_id
28990
- - organization_id
28991
- - idp_id
28992
- - email
28993
- - state
28994
- - raw_attributes
28995
- - custom_attributes
28996
- - created_at
28997
- - updated_at
28998
29370
  FlagRule:
28999
29371
  type: object
29000
29372
  properties:
@@ -29451,7 +29823,7 @@ components:
29451
29823
  - data
29452
29824
  - created_at
29453
29825
  description: An event emitted by WorkOS.
29454
- example: &ref_49
29826
+ example: &ref_48
29455
29827
  object: event
29456
29828
  id: event_01EHZNVPK3SFK441A1RGBFSHRT
29457
29829
  event: dsync.user.created
@@ -34106,7 +34478,9 @@ components:
34106
34478
  description: >-
34107
34479
  An object containing the custom attribute mapping for
34108
34480
  the Directory Provider.
34109
- example: *ref_43
34481
+ example:
34482
+ department: Engineering
34483
+ job_title: Software Engineer
34110
34484
  role:
34111
34485
  $ref: '#/components/schemas/SlimRole'
34112
34486
  roles:
@@ -34296,7 +34670,7 @@ components:
34296
34670
  description: >-
34297
34671
  Labels assigned to the Feature Flag for categorizing and
34298
34672
  filtering.
34299
- example: &ref_44
34673
+ example: &ref_43
34300
34674
  - reports
34301
34675
  enabled:
34302
34676
  type: boolean
@@ -34457,7 +34831,7 @@ components:
34457
34831
  description: >-
34458
34832
  Labels assigned to the Feature Flag for categorizing and
34459
34833
  filtering.
34460
- example: *ref_44
34834
+ example: *ref_43
34461
34835
  enabled:
34462
34836
  type: boolean
34463
34837
  description: >-
@@ -34821,7 +35195,7 @@ components:
34821
35195
  description: >-
34822
35196
  Labels assigned to the Feature Flag for categorizing and
34823
35197
  filtering.
34824
- example: *ref_44
35198
+ example: *ref_43
34825
35199
  enabled:
34826
35200
  type: boolean
34827
35201
  description: >-
@@ -34917,7 +35291,7 @@ components:
34917
35291
  items:
34918
35292
  type: string
34919
35293
  description: The previous tags of the flag.
34920
- example: &ref_45
35294
+ example: &ref_44
34921
35295
  - beta
34922
35296
  - release
34923
35297
  owner:
@@ -35043,7 +35417,7 @@ components:
35043
35417
  description: >-
35044
35418
  Labels assigned to the Feature Flag for categorizing and
35045
35419
  filtering.
35046
- example: *ref_44
35420
+ example: *ref_43
35047
35421
  enabled:
35048
35422
  type: boolean
35049
35423
  description: >-
@@ -35203,7 +35577,7 @@ components:
35203
35577
  description: >-
35204
35578
  Labels assigned to the Feature Flag for categorizing and
35205
35579
  filtering.
35206
- example: *ref_44
35580
+ example: *ref_43
35207
35581
  enabled:
35208
35582
  type: boolean
35209
35583
  description: >-
@@ -35363,7 +35737,7 @@ components:
35363
35737
  description: >-
35364
35738
  Labels assigned to the Feature Flag for categorizing and
35365
35739
  filtering.
35366
- example: *ref_44
35740
+ example: *ref_43
35367
35741
  enabled:
35368
35742
  type: boolean
35369
35743
  description: >-
@@ -35773,7 +36147,7 @@ components:
35773
36147
  description: >-
35774
36148
  Labels assigned to the Feature Flag for categorizing and
35775
36149
  filtering.
35776
- example: *ref_44
36150
+ example: *ref_43
35777
36151
  enabled:
35778
36152
  type: boolean
35779
36153
  description: >-
@@ -35869,7 +36243,7 @@ components:
35869
36243
  items:
35870
36244
  type: string
35871
36245
  description: The previous tags of the flag.
35872
- example: *ref_45
36246
+ example: *ref_44
35873
36247
  owner:
35874
36248
  description: >-
35875
36249
  The previous owner of the flag, or `null` if it
@@ -36787,7 +37161,7 @@ components:
36787
37161
  description: >-
36788
37162
  Object containing [metadata](/authkit/metadata)
36789
37163
  key/value pairs associated with the Organization.
36790
- example: &ref_46
37164
+ example: &ref_45
36791
37165
  tier: diamond
36792
37166
  propertyNames:
36793
37167
  maxLength: 40
@@ -36937,7 +37311,7 @@ components:
36937
37311
  description: >-
36938
37312
  Object containing [metadata](/authkit/metadata)
36939
37313
  key/value pairs associated with the Organization.
36940
- example: *ref_46
37314
+ example: *ref_45
36941
37315
  propertyNames:
36942
37316
  maxLength: 40
36943
37317
  maxProperties: 50
@@ -37764,7 +38138,7 @@ components:
37764
38138
  items:
37765
38139
  type: string
37766
38140
  description: The permissions granted by the role.
37767
- example: &ref_47
38141
+ example: &ref_46
37768
38142
  - users:read
37769
38143
  - users:write
37770
38144
  created_at:
@@ -37848,7 +38222,7 @@ components:
37848
38222
  items:
37849
38223
  type: string
37850
38224
  description: The permissions granted by the role.
37851
- example: *ref_47
38225
+ example: *ref_46
37852
38226
  created_at:
37853
38227
  format: date-time
37854
38228
  type: string
@@ -37930,7 +38304,7 @@ components:
37930
38304
  items:
37931
38305
  type: string
37932
38306
  description: The permissions granted by the role.
37933
- example: *ref_47
38307
+ example: *ref_46
37934
38308
  created_at:
37935
38309
  format: date-time
37936
38310
  type: string
@@ -38067,7 +38441,7 @@ components:
38067
38441
  description: >-
38068
38442
  Object containing [metadata](/authkit/metadata)
38069
38443
  key/value pairs associated with the Organization.
38070
- example: *ref_46
38444
+ example: *ref_45
38071
38445
  propertyNames:
38072
38446
  maxLength: 40
38073
38447
  maxProperties: 50
@@ -39271,7 +39645,7 @@ components:
39271
39645
  items:
39272
39646
  type: string
39273
39647
  description: The permissions granted by the role.
39274
- example: &ref_48
39648
+ example: &ref_47
39275
39649
  - users:read
39276
39650
  - users:write
39277
39651
  created_at:
@@ -39337,7 +39711,7 @@ components:
39337
39711
  items:
39338
39712
  type: string
39339
39713
  description: The permissions granted by the role.
39340
- example: *ref_48
39714
+ example: *ref_47
39341
39715
  created_at:
39342
39716
  format: date-time
39343
39717
  type: string
@@ -39401,7 +39775,7 @@ components:
39401
39775
  items:
39402
39776
  type: string
39403
39777
  description: The permissions granted by the role.
39404
- example: *ref_48
39778
+ example: *ref_47
39405
39779
  created_at:
39406
39780
  format: date-time
39407
39781
  type: string
@@ -40603,7 +40977,7 @@ components:
40603
40977
  - data
40604
40978
  - created_at
40605
40979
  - object
40606
- example: *ref_49
40980
+ example: *ref_48
40607
40981
  description: An event emitted by WorkOS.
40608
40982
  EventList:
40609
40983
  type: object
@@ -40638,7 +41012,7 @@ components:
40638
41012
  example:
40639
41013
  object: list
40640
41014
  data:
40641
- - *ref_49
41015
+ - *ref_48
40642
41016
  list_metadata:
40643
41017
  after: event_01EHZNVPK3SFK441A1RGBFSHRT
40644
41018
  JwtTemplate:
@@ -42187,8 +42561,8 @@ components:
42187
42561
  - state
42188
42562
  AuthMethodMismatchError:
42189
42563
  type: object
42190
- properties: *ref_50
42191
- required: *ref_51
42564
+ properties: *ref_49
42565
+ required: *ref_50
42192
42566
  DataIntegrationAccessTokenResponse:
42193
42567
  oneOf:
42194
42568
  - type: object
@@ -42271,8 +42645,8 @@ components:
42271
42645
  - error
42272
42646
  AccountSelectionRequiredError:
42273
42647
  type: object
42274
- properties: *ref_52
42275
- required: *ref_53
42648
+ properties: *ref_51
42649
+ required: *ref_52
42276
42650
  DataIntegrationVendedCredential:
42277
42651
  discriminator:
42278
42652
  propertyName: auth_method
@@ -42339,7 +42713,7 @@ components:
42339
42713
  each `client_credentials` mint. A field a later OAuth refresh
42340
42714
  omits keeps its stored value. Present for `oauth` and
42341
42715
  `client_credentials` credentials; absent for `api_key`.
42342
- example: &ref_55
42716
+ example: &ref_54
42343
42717
  instance_url: https://acme.my.salesforce.com
42344
42718
  config:
42345
42719
  type: object
@@ -42355,7 +42729,7 @@ components:
42355
42729
  integration or organization pins require reconnecting or
42356
42730
  explicitly rebinding the connection. Defaults are live and can
42357
42731
  differ from a cached token's audience until refresh or re-mint.
42358
- example: &ref_54
42732
+ example: &ref_53
42359
42733
  account: myorg-myaccount
42360
42734
  required:
42361
42735
  - object
@@ -42401,7 +42775,7 @@ components:
42401
42775
  integration or organization pins require reconnecting or
42402
42776
  explicitly rebinding the connection. Defaults are live and can
42403
42777
  differ from a cached token's audience until refresh or re-mint.
42404
- example: *ref_54
42778
+ example: *ref_53
42405
42779
  required:
42406
42780
  - object
42407
42781
  - auth_method
@@ -42465,7 +42839,7 @@ components:
42465
42839
  each `client_credentials` mint. A field a later OAuth refresh
42466
42840
  omits keeps its stored value. Present for `oauth` and
42467
42841
  `client_credentials` credentials; absent for `api_key`.
42468
- example: *ref_55
42842
+ example: *ref_54
42469
42843
  config:
42470
42844
  type: object
42471
42845
  additionalProperties:
@@ -42480,7 +42854,7 @@ components:
42480
42854
  integration or organization pins require reconnecting or
42481
42855
  explicitly rebinding the connection. Defaults are live and can
42482
42856
  differ from a cached token's audience until refresh or re-mint.
42483
- example: *ref_54
42857
+ example: *ref_53
42484
42858
  required:
42485
42859
  - object
42486
42860
  - auth_method
@@ -42650,7 +43024,7 @@ components:
42650
43024
  deprecated: true
42651
43025
  description: Use updated_at instead.
42652
43026
  connected_account:
42653
- example: &ref_58
43027
+ example: &ref_57
42654
43028
  object: connected_account
42655
43029
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
42656
43030
  connection_role: compatibility
@@ -42739,7 +43113,7 @@ components:
42739
43113
  items:
42740
43114
  type: string
42741
43115
  description: The OAuth scopes granted for this connection.
42742
- example: &ref_56
43116
+ example: &ref_55
42743
43117
  - repo
42744
43118
  - user:email
42745
43119
  auth_method:
@@ -42789,7 +43163,7 @@ components:
42789
43163
  `installation` scope, excluding secret and undeclared
42790
43164
  fields. Returned for every authentication method;
42791
43165
  empty when no stored values can be disclosed.
42792
- example: &ref_57
43166
+ example: &ref_56
42793
43167
  instance_url: https://example.my.salesforce.com
42794
43168
  state:
42795
43169
  type: string
@@ -42974,7 +43348,7 @@ components:
42974
43348
  items:
42975
43349
  type: string
42976
43350
  description: The OAuth scopes granted for this connection.
42977
- example: *ref_56
43351
+ example: *ref_55
42978
43352
  auth_method:
42979
43353
  type: string
42980
43354
  enum:
@@ -43021,7 +43395,7 @@ components:
43021
43395
  `installation` scope, excluding secret and undeclared
43022
43396
  fields. Returned for every authentication method; empty
43023
43397
  when no stored values can be disclosed.
43024
- example: *ref_57
43398
+ example: *ref_56
43025
43399
  state:
43026
43400
  type: string
43027
43401
  enum:
@@ -43139,7 +43513,7 @@ components:
43139
43513
  - organizationId
43140
43514
  - createdAt
43141
43515
  - updatedAt
43142
- example: *ref_58
43516
+ example: *ref_57
43143
43517
  description: >-
43144
43518
  The user's connected accounts for this provider in the
43145
43519
  requested ownership context. This contains only the