@workos/openapi-spec 0.160.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
@@ -19838,13 +20216,17 @@ components:
19838
20216
  example: org_01EHZNVPK3SFK441A1RGBFSHRT
19839
20217
  range_start:
19840
20218
  type: string
19841
- description: ISO-8601 value for start of the export range.
20219
+ description: >-
20220
+ ISO-8601 value for start of the export range. The range must span no
20221
+ more than 31 days.
19842
20222
  example: '2022-07-02T18:09:06.996Z'
19843
20223
  format: date-time
19844
20224
  range_end:
19845
20225
  type: string
19846
- description: ISO-8601 value for end of the export range.
19847
- example: '2022-09-02T18:09:06.996Z'
20226
+ description: >-
20227
+ ISO-8601 value for end of the export range. Must be no more than 31
20228
+ days after the start.
20229
+ example: '2022-08-02T18:09:06.996Z'
19848
20230
  format: date-time
19849
20231
  actions:
19850
20232
  description: List of actions to filter against.
@@ -24298,7 +24680,7 @@ components:
24298
24680
  - message
24299
24681
  AuthMethodMismatchErrorBody:
24300
24682
  type: object
24301
- properties: &ref_50
24683
+ properties: &ref_49
24302
24684
  code:
24303
24685
  type: string
24304
24686
  const: auth_method_mismatch
@@ -24312,13 +24694,13 @@ components:
24312
24694
  example: >-
24313
24695
  This installation uses oauth authentication. Use the POST
24314
24696
  /:slug/token endpoint instead.
24315
- required: &ref_51
24697
+ required: &ref_50
24316
24698
  - code
24317
24699
  - message
24318
24700
  x-component-name: AuthMethodMismatchError
24319
24701
  AccountSelectionRequiredErrorBody:
24320
24702
  type: object
24321
- properties: &ref_52
24703
+ properties: &ref_51
24322
24704
  code:
24323
24705
  type: string
24324
24706
  const: account_selection_required
@@ -24332,7 +24714,7 @@ components:
24332
24714
  example: >-
24333
24715
  Several connected accounts match this user for this provider. Name
24334
24716
  one with a connected account id.
24335
- required: &ref_53
24717
+ required: &ref_52
24336
24718
  - code
24337
24719
  - message
24338
24720
  x-component-name: AccountSelectionRequiredError
@@ -28408,6 +28790,141 @@ components:
28408
28790
  - data
28409
28791
  - list_metadata
28410
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
28411
28928
  DirectoryUserWithGroups:
28412
28929
  type: object
28413
28930
  properties:
@@ -28536,14 +29053,8 @@ components:
28536
29053
  items:
28537
29054
  $ref: '#/components/schemas/DirectoryGroup'
28538
29055
  description: >-
28539
- The directory groups the user belongs to. Deprecated: starting May
28540
- 1, 2026, this field returns an empty array by default for newly
28541
- created teams. Existing teams currently depending on this field
28542
- should migrate to the new access pattern for better throughput
28543
- performance — the field is unbounded by user, so users with many
28544
- group memberships produce large, slow response payloads. Use the
28545
- List Directory Groups endpoint with a `user` filter to fetch a
28546
- user's group memberships.
29056
+ The directory groups the user belongs to. Deprecated: use `GET
29057
+ /directories/{directoryId}/groups?user={userId}` instead.
28547
29058
  deprecated: true
28548
29059
  required:
28549
29060
  - object
@@ -28856,141 +29367,6 @@ components:
28856
29367
  additionalProperties: {}
28857
29368
  description: Attributes that changed from their previous values.
28858
29369
  description: Additional context about the event.
28859
- DirectoryUser:
28860
- type: object
28861
- properties:
28862
- object:
28863
- type: string
28864
- description: Distinguishes the Directory User object.
28865
- const: directory_user
28866
- id:
28867
- type: string
28868
- description: Unique identifier for the Directory User.
28869
- example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ
28870
- directory_id:
28871
- type: string
28872
- description: The identifier of the Directory the Directory User belongs to.
28873
- example: directory_01ECAZ4NV9QMV47GW873HDCX74
28874
- organization_id:
28875
- type: string
28876
- description: The identifier for the Organization in which the Directory resides.
28877
- example: org_01EZTR6WYX1A0DSE2CYMGXQ24Y
28878
- idp_id:
28879
- type: string
28880
- description: >-
28881
- Unique identifier for the user, assigned by the Directory Provider.
28882
- Different Directory Providers use different ID formats.
28883
- example: '2836'
28884
- email:
28885
- type:
28886
- - string
28887
- - 'null'
28888
- description: The email address of the user.
28889
- example: marcelina.davis@example.com
28890
- first_name:
28891
- type:
28892
- - string
28893
- - 'null'
28894
- description: The first name of the user.
28895
- example: Marcelina
28896
- last_name:
28897
- type:
28898
- - string
28899
- - 'null'
28900
- description: The last name of the user.
28901
- example: Davis
28902
- name:
28903
- type:
28904
- - string
28905
- - 'null'
28906
- description: The full name of the user.
28907
- example: Marcelina Davis
28908
- emails:
28909
- type: array
28910
- items:
28911
- type: object
28912
- properties:
28913
- primary:
28914
- type: boolean
28915
- description: Whether this is the primary email address.
28916
- example: true
28917
- type:
28918
- type: string
28919
- description: The type of email address.
28920
- example: work
28921
- value:
28922
- type:
28923
- - string
28924
- - 'null'
28925
- description: The email address value.
28926
- example: marcelina.davis@example.com
28927
- description: A list of email addresses for the user.
28928
- deprecated: true
28929
- job_title:
28930
- type:
28931
- - string
28932
- - 'null'
28933
- description: The job title of the user.
28934
- example: Software Engineer
28935
- deprecated: true
28936
- username:
28937
- type:
28938
- - string
28939
- - 'null'
28940
- description: The username of the user.
28941
- example: mdavis
28942
- deprecated: true
28943
- state:
28944
- type: string
28945
- enum:
28946
- - active
28947
- - suspended
28948
- - inactive
28949
- description: The state of the user.
28950
- example: active
28951
- raw_attributes:
28952
- type: object
28953
- additionalProperties: {}
28954
- description: The raw attributes received from the directory provider.
28955
- deprecated: true
28956
- custom_attributes:
28957
- type: object
28958
- additionalProperties: {}
28959
- description: >-
28960
- An object containing the custom attribute mapping for the Directory
28961
- Provider.
28962
- example: &ref_43
28963
- department: Engineering
28964
- job_title: Software Engineer
28965
- role:
28966
- $ref: '#/components/schemas/SlimRole'
28967
- roles:
28968
- type: array
28969
- items:
28970
- $ref: '#/components/schemas/SlimRole'
28971
- description: All roles assigned to the user.
28972
- created_at:
28973
- format: date-time
28974
- type: string
28975
- description: An ISO 8601 timestamp.
28976
- example: '2026-01-15T12:00:00.000Z'
28977
- updated_at:
28978
- format: date-time
28979
- type: string
28980
- description: An ISO 8601 timestamp.
28981
- example: '2026-01-15T12:00:00.000Z'
28982
- required:
28983
- - object
28984
- - id
28985
- - directory_id
28986
- - organization_id
28987
- - idp_id
28988
- - email
28989
- - state
28990
- - raw_attributes
28991
- - custom_attributes
28992
- - created_at
28993
- - updated_at
28994
29370
  FlagRule:
28995
29371
  type: object
28996
29372
  properties:
@@ -29447,7 +29823,7 @@ components:
29447
29823
  - data
29448
29824
  - created_at
29449
29825
  description: An event emitted by WorkOS.
29450
- example: &ref_49
29826
+ example: &ref_48
29451
29827
  object: event
29452
29828
  id: event_01EHZNVPK3SFK441A1RGBFSHRT
29453
29829
  event: dsync.user.created
@@ -34102,7 +34478,9 @@ components:
34102
34478
  description: >-
34103
34479
  An object containing the custom attribute mapping for
34104
34480
  the Directory Provider.
34105
- example: *ref_43
34481
+ example:
34482
+ department: Engineering
34483
+ job_title: Software Engineer
34106
34484
  role:
34107
34485
  $ref: '#/components/schemas/SlimRole'
34108
34486
  roles:
@@ -34292,7 +34670,7 @@ components:
34292
34670
  description: >-
34293
34671
  Labels assigned to the Feature Flag for categorizing and
34294
34672
  filtering.
34295
- example: &ref_44
34673
+ example: &ref_43
34296
34674
  - reports
34297
34675
  enabled:
34298
34676
  type: boolean
@@ -34453,7 +34831,7 @@ components:
34453
34831
  description: >-
34454
34832
  Labels assigned to the Feature Flag for categorizing and
34455
34833
  filtering.
34456
- example: *ref_44
34834
+ example: *ref_43
34457
34835
  enabled:
34458
34836
  type: boolean
34459
34837
  description: >-
@@ -34817,7 +35195,7 @@ components:
34817
35195
  description: >-
34818
35196
  Labels assigned to the Feature Flag for categorizing and
34819
35197
  filtering.
34820
- example: *ref_44
35198
+ example: *ref_43
34821
35199
  enabled:
34822
35200
  type: boolean
34823
35201
  description: >-
@@ -34913,7 +35291,7 @@ components:
34913
35291
  items:
34914
35292
  type: string
34915
35293
  description: The previous tags of the flag.
34916
- example: &ref_45
35294
+ example: &ref_44
34917
35295
  - beta
34918
35296
  - release
34919
35297
  owner:
@@ -35039,7 +35417,7 @@ components:
35039
35417
  description: >-
35040
35418
  Labels assigned to the Feature Flag for categorizing and
35041
35419
  filtering.
35042
- example: *ref_44
35420
+ example: *ref_43
35043
35421
  enabled:
35044
35422
  type: boolean
35045
35423
  description: >-
@@ -35199,7 +35577,7 @@ components:
35199
35577
  description: >-
35200
35578
  Labels assigned to the Feature Flag for categorizing and
35201
35579
  filtering.
35202
- example: *ref_44
35580
+ example: *ref_43
35203
35581
  enabled:
35204
35582
  type: boolean
35205
35583
  description: >-
@@ -35359,7 +35737,7 @@ components:
35359
35737
  description: >-
35360
35738
  Labels assigned to the Feature Flag for categorizing and
35361
35739
  filtering.
35362
- example: *ref_44
35740
+ example: *ref_43
35363
35741
  enabled:
35364
35742
  type: boolean
35365
35743
  description: >-
@@ -35769,7 +36147,7 @@ components:
35769
36147
  description: >-
35770
36148
  Labels assigned to the Feature Flag for categorizing and
35771
36149
  filtering.
35772
- example: *ref_44
36150
+ example: *ref_43
35773
36151
  enabled:
35774
36152
  type: boolean
35775
36153
  description: >-
@@ -35865,7 +36243,7 @@ components:
35865
36243
  items:
35866
36244
  type: string
35867
36245
  description: The previous tags of the flag.
35868
- example: *ref_45
36246
+ example: *ref_44
35869
36247
  owner:
35870
36248
  description: >-
35871
36249
  The previous owner of the flag, or `null` if it
@@ -36783,7 +37161,7 @@ components:
36783
37161
  description: >-
36784
37162
  Object containing [metadata](/authkit/metadata)
36785
37163
  key/value pairs associated with the Organization.
36786
- example: &ref_46
37164
+ example: &ref_45
36787
37165
  tier: diamond
36788
37166
  propertyNames:
36789
37167
  maxLength: 40
@@ -36933,7 +37311,7 @@ components:
36933
37311
  description: >-
36934
37312
  Object containing [metadata](/authkit/metadata)
36935
37313
  key/value pairs associated with the Organization.
36936
- example: *ref_46
37314
+ example: *ref_45
36937
37315
  propertyNames:
36938
37316
  maxLength: 40
36939
37317
  maxProperties: 50
@@ -37760,7 +38138,7 @@ components:
37760
38138
  items:
37761
38139
  type: string
37762
38140
  description: The permissions granted by the role.
37763
- example: &ref_47
38141
+ example: &ref_46
37764
38142
  - users:read
37765
38143
  - users:write
37766
38144
  created_at:
@@ -37844,7 +38222,7 @@ components:
37844
38222
  items:
37845
38223
  type: string
37846
38224
  description: The permissions granted by the role.
37847
- example: *ref_47
38225
+ example: *ref_46
37848
38226
  created_at:
37849
38227
  format: date-time
37850
38228
  type: string
@@ -37926,7 +38304,7 @@ components:
37926
38304
  items:
37927
38305
  type: string
37928
38306
  description: The permissions granted by the role.
37929
- example: *ref_47
38307
+ example: *ref_46
37930
38308
  created_at:
37931
38309
  format: date-time
37932
38310
  type: string
@@ -38063,7 +38441,7 @@ components:
38063
38441
  description: >-
38064
38442
  Object containing [metadata](/authkit/metadata)
38065
38443
  key/value pairs associated with the Organization.
38066
- example: *ref_46
38444
+ example: *ref_45
38067
38445
  propertyNames:
38068
38446
  maxLength: 40
38069
38447
  maxProperties: 50
@@ -39267,7 +39645,7 @@ components:
39267
39645
  items:
39268
39646
  type: string
39269
39647
  description: The permissions granted by the role.
39270
- example: &ref_48
39648
+ example: &ref_47
39271
39649
  - users:read
39272
39650
  - users:write
39273
39651
  created_at:
@@ -39333,7 +39711,7 @@ components:
39333
39711
  items:
39334
39712
  type: string
39335
39713
  description: The permissions granted by the role.
39336
- example: *ref_48
39714
+ example: *ref_47
39337
39715
  created_at:
39338
39716
  format: date-time
39339
39717
  type: string
@@ -39397,7 +39775,7 @@ components:
39397
39775
  items:
39398
39776
  type: string
39399
39777
  description: The permissions granted by the role.
39400
- example: *ref_48
39778
+ example: *ref_47
39401
39779
  created_at:
39402
39780
  format: date-time
39403
39781
  type: string
@@ -40599,7 +40977,7 @@ components:
40599
40977
  - data
40600
40978
  - created_at
40601
40979
  - object
40602
- example: *ref_49
40980
+ example: *ref_48
40603
40981
  description: An event emitted by WorkOS.
40604
40982
  EventList:
40605
40983
  type: object
@@ -40634,7 +41012,7 @@ components:
40634
41012
  example:
40635
41013
  object: list
40636
41014
  data:
40637
- - *ref_49
41015
+ - *ref_48
40638
41016
  list_metadata:
40639
41017
  after: event_01EHZNVPK3SFK441A1RGBFSHRT
40640
41018
  JwtTemplate:
@@ -42183,8 +42561,8 @@ components:
42183
42561
  - state
42184
42562
  AuthMethodMismatchError:
42185
42563
  type: object
42186
- properties: *ref_50
42187
- required: *ref_51
42564
+ properties: *ref_49
42565
+ required: *ref_50
42188
42566
  DataIntegrationAccessTokenResponse:
42189
42567
  oneOf:
42190
42568
  - type: object
@@ -42267,8 +42645,8 @@ components:
42267
42645
  - error
42268
42646
  AccountSelectionRequiredError:
42269
42647
  type: object
42270
- properties: *ref_52
42271
- required: *ref_53
42648
+ properties: *ref_51
42649
+ required: *ref_52
42272
42650
  DataIntegrationVendedCredential:
42273
42651
  discriminator:
42274
42652
  propertyName: auth_method
@@ -42335,7 +42713,7 @@ components:
42335
42713
  each `client_credentials` mint. A field a later OAuth refresh
42336
42714
  omits keeps its stored value. Present for `oauth` and
42337
42715
  `client_credentials` credentials; absent for `api_key`.
42338
- example: &ref_55
42716
+ example: &ref_54
42339
42717
  instance_url: https://acme.my.salesforce.com
42340
42718
  config:
42341
42719
  type: object
@@ -42351,7 +42729,7 @@ components:
42351
42729
  integration or organization pins require reconnecting or
42352
42730
  explicitly rebinding the connection. Defaults are live and can
42353
42731
  differ from a cached token's audience until refresh or re-mint.
42354
- example: &ref_54
42732
+ example: &ref_53
42355
42733
  account: myorg-myaccount
42356
42734
  required:
42357
42735
  - object
@@ -42397,7 +42775,7 @@ components:
42397
42775
  integration or organization pins require reconnecting or
42398
42776
  explicitly rebinding the connection. Defaults are live and can
42399
42777
  differ from a cached token's audience until refresh or re-mint.
42400
- example: *ref_54
42778
+ example: *ref_53
42401
42779
  required:
42402
42780
  - object
42403
42781
  - auth_method
@@ -42461,7 +42839,7 @@ components:
42461
42839
  each `client_credentials` mint. A field a later OAuth refresh
42462
42840
  omits keeps its stored value. Present for `oauth` and
42463
42841
  `client_credentials` credentials; absent for `api_key`.
42464
- example: *ref_55
42842
+ example: *ref_54
42465
42843
  config:
42466
42844
  type: object
42467
42845
  additionalProperties:
@@ -42476,7 +42854,7 @@ components:
42476
42854
  integration or organization pins require reconnecting or
42477
42855
  explicitly rebinding the connection. Defaults are live and can
42478
42856
  differ from a cached token's audience until refresh or re-mint.
42479
- example: *ref_54
42857
+ example: *ref_53
42480
42858
  required:
42481
42859
  - object
42482
42860
  - auth_method
@@ -42646,7 +43024,7 @@ components:
42646
43024
  deprecated: true
42647
43025
  description: Use updated_at instead.
42648
43026
  connected_account:
42649
- example: &ref_58
43027
+ example: &ref_57
42650
43028
  object: connected_account
42651
43029
  id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
42652
43030
  connection_role: compatibility
@@ -42735,7 +43113,7 @@ components:
42735
43113
  items:
42736
43114
  type: string
42737
43115
  description: The OAuth scopes granted for this connection.
42738
- example: &ref_56
43116
+ example: &ref_55
42739
43117
  - repo
42740
43118
  - user:email
42741
43119
  auth_method:
@@ -42785,7 +43163,7 @@ components:
42785
43163
  `installation` scope, excluding secret and undeclared
42786
43164
  fields. Returned for every authentication method;
42787
43165
  empty when no stored values can be disclosed.
42788
- example: &ref_57
43166
+ example: &ref_56
42789
43167
  instance_url: https://example.my.salesforce.com
42790
43168
  state:
42791
43169
  type: string
@@ -42970,7 +43348,7 @@ components:
42970
43348
  items:
42971
43349
  type: string
42972
43350
  description: The OAuth scopes granted for this connection.
42973
- example: *ref_56
43351
+ example: *ref_55
42974
43352
  auth_method:
42975
43353
  type: string
42976
43354
  enum:
@@ -43017,7 +43395,7 @@ components:
43017
43395
  `installation` scope, excluding secret and undeclared
43018
43396
  fields. Returned for every authentication method; empty
43019
43397
  when no stored values can be disclosed.
43020
- example: *ref_57
43398
+ example: *ref_56
43021
43399
  state:
43022
43400
  type: string
43023
43401
  enum:
@@ -43135,7 +43513,7 @@ components:
43135
43513
  - organizationId
43136
43514
  - createdAt
43137
43515
  - updatedAt
43138
- example: *ref_58
43516
+ example: *ref_57
43139
43517
  description: >-
43140
43518
  The user's connected accounts for this provider in the
43141
43519
  requested ownership context. This contains only the