@workos/openapi-spec 0.10.0 → 0.11.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.
- package/dist/open-api-spec.yaml +197 -1
- package/dist/types.d.ts +121 -4
- package/package.json +7 -6
package/dist/open-api-spec.yaml
CHANGED
|
@@ -7404,6 +7404,24 @@ paths:
|
|
|
7404
7404
|
schema:
|
|
7405
7405
|
example: directory_group_01E64QTDNS0EGJ0FMCVY9BWGZT
|
|
7406
7406
|
type: string
|
|
7407
|
+
- name: idp_id
|
|
7408
|
+
required: false
|
|
7409
|
+
in: query
|
|
7410
|
+
description: >-
|
|
7411
|
+
Filter Directory Users by the identity provider's unique identifier
|
|
7412
|
+
(`idp_id`). Requires the `directory` parameter to also be provided.
|
|
7413
|
+
schema:
|
|
7414
|
+
example: '2836'
|
|
7415
|
+
type: string
|
|
7416
|
+
- name: email
|
|
7417
|
+
required: false
|
|
7418
|
+
in: query
|
|
7419
|
+
description: >-
|
|
7420
|
+
Filter Directory Users by their primary email address. Requires the
|
|
7421
|
+
`directory` parameter to also be provided.
|
|
7422
|
+
schema:
|
|
7423
|
+
example: jane.doe@example.com
|
|
7424
|
+
type: string
|
|
7407
7425
|
responses:
|
|
7408
7426
|
'200':
|
|
7409
7427
|
description: OK
|
|
@@ -11710,6 +11728,14 @@ paths:
|
|
|
11710
11728
|
The email address of the user that must
|
|
11711
11729
|
authenticate via SSO.
|
|
11712
11730
|
example: user@example.com
|
|
11731
|
+
pending_authentication_token:
|
|
11732
|
+
type: string
|
|
11733
|
+
description: >-
|
|
11734
|
+
A token that links the subsequent SSO
|
|
11735
|
+
authentication back to the pending
|
|
11736
|
+
authentication so the authorization session
|
|
11737
|
+
can be completed.
|
|
11738
|
+
example: pat_01FVYZ...
|
|
11713
11739
|
required:
|
|
11714
11740
|
- connection_ids
|
|
11715
11741
|
- email
|
|
@@ -13482,6 +13508,13 @@ paths:
|
|
|
13482
13508
|
description: >-
|
|
13483
13509
|
The primary role assigned to the user within the
|
|
13484
13510
|
organization.
|
|
13511
|
+
roles:
|
|
13512
|
+
type: array
|
|
13513
|
+
items:
|
|
13514
|
+
$ref: '#/components/schemas/SlimRole'
|
|
13515
|
+
description: >-
|
|
13516
|
+
The list of roles assigned to the user within the
|
|
13517
|
+
organization.
|
|
13485
13518
|
user:
|
|
13486
13519
|
$ref: '#/components/schemas/UserlandUser'
|
|
13487
13520
|
description: >-
|
|
@@ -13497,6 +13530,7 @@ paths:
|
|
|
13497
13530
|
- created_at
|
|
13498
13531
|
- updated_at
|
|
13499
13532
|
- role
|
|
13533
|
+
- roles
|
|
13500
13534
|
- user
|
|
13501
13535
|
x-inline-with-overrides: true
|
|
13502
13536
|
'400':
|
|
@@ -13897,6 +13931,13 @@ paths:
|
|
|
13897
13931
|
description: >-
|
|
13898
13932
|
The primary role assigned to the user within the
|
|
13899
13933
|
organization.
|
|
13934
|
+
roles:
|
|
13935
|
+
type: array
|
|
13936
|
+
items:
|
|
13937
|
+
$ref: '#/components/schemas/SlimRole'
|
|
13938
|
+
description: >-
|
|
13939
|
+
The list of roles assigned to the user within the
|
|
13940
|
+
organization.
|
|
13900
13941
|
user:
|
|
13901
13942
|
$ref: '#/components/schemas/UserlandUser'
|
|
13902
13943
|
description: >-
|
|
@@ -13912,6 +13953,7 @@ paths:
|
|
|
13912
13953
|
- created_at
|
|
13913
13954
|
- updated_at
|
|
13914
13955
|
- role
|
|
13956
|
+
- roles
|
|
13915
13957
|
- user
|
|
13916
13958
|
x-inline-with-overrides: true
|
|
13917
13959
|
'400':
|
|
@@ -20050,6 +20092,7 @@ components:
|
|
|
20050
20092
|
- pipes.connected_account.disconnected
|
|
20051
20093
|
- pipes.connected_account.reauthorization_needed
|
|
20052
20094
|
- session.created
|
|
20095
|
+
- session.reauthenticated
|
|
20053
20096
|
- session.revoked
|
|
20054
20097
|
- waitlist_user.approved
|
|
20055
20098
|
- waitlist_user.created
|
|
@@ -20978,7 +21021,10 @@ components:
|
|
|
20978
21021
|
- pending
|
|
20979
21022
|
- ready
|
|
20980
21023
|
- error
|
|
20981
|
-
|
|
21024
|
+
- expired
|
|
21025
|
+
description: >-
|
|
21026
|
+
The state of the export. Possible values: pending, ready, error,
|
|
21027
|
+
expired.
|
|
20982
21028
|
example: ready
|
|
20983
21029
|
url:
|
|
20984
21030
|
type:
|
|
@@ -30467,6 +30513,150 @@ components:
|
|
|
30467
30513
|
- data
|
|
30468
30514
|
- created_at
|
|
30469
30515
|
- object
|
|
30516
|
+
- type: object
|
|
30517
|
+
properties:
|
|
30518
|
+
id:
|
|
30519
|
+
type: string
|
|
30520
|
+
description: Unique identifier for the event.
|
|
30521
|
+
example: event_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30522
|
+
event:
|
|
30523
|
+
type: string
|
|
30524
|
+
const: session.reauthenticated
|
|
30525
|
+
data:
|
|
30526
|
+
type: object
|
|
30527
|
+
properties:
|
|
30528
|
+
object:
|
|
30529
|
+
type: string
|
|
30530
|
+
description: Distinguishes the session object.
|
|
30531
|
+
const: session
|
|
30532
|
+
id:
|
|
30533
|
+
type: string
|
|
30534
|
+
description: The unique ID of the session.
|
|
30535
|
+
example: session_01H93ZY4F80QPBEZ1R5B2SHQG8
|
|
30536
|
+
impersonator:
|
|
30537
|
+
type: object
|
|
30538
|
+
properties:
|
|
30539
|
+
email:
|
|
30540
|
+
type: string
|
|
30541
|
+
description: >-
|
|
30542
|
+
The email address of the WorkOS Dashboard user who
|
|
30543
|
+
is impersonating the user.
|
|
30544
|
+
example: admin@foocorp.com
|
|
30545
|
+
reason:
|
|
30546
|
+
type:
|
|
30547
|
+
- string
|
|
30548
|
+
- 'null'
|
|
30549
|
+
description: >-
|
|
30550
|
+
The justification the impersonator gave for
|
|
30551
|
+
impersonating the user.
|
|
30552
|
+
example: Investigating an issue with the customer's account.
|
|
30553
|
+
required:
|
|
30554
|
+
- email
|
|
30555
|
+
- reason
|
|
30556
|
+
description: >-
|
|
30557
|
+
Information about the impersonator if this session was
|
|
30558
|
+
created via impersonation.
|
|
30559
|
+
ip_address:
|
|
30560
|
+
type:
|
|
30561
|
+
- string
|
|
30562
|
+
- 'null'
|
|
30563
|
+
description: The IP address from which the session was created.
|
|
30564
|
+
example: 198.51.100.42
|
|
30565
|
+
organization_id:
|
|
30566
|
+
type: string
|
|
30567
|
+
description: >-
|
|
30568
|
+
The ID of the organization this session is associated
|
|
30569
|
+
with.
|
|
30570
|
+
example: org_01H945H0YD4F97JN9MATX7BYAG
|
|
30571
|
+
user_agent:
|
|
30572
|
+
type:
|
|
30573
|
+
- string
|
|
30574
|
+
- 'null'
|
|
30575
|
+
description: >-
|
|
30576
|
+
The user agent string from the device that created the
|
|
30577
|
+
session.
|
|
30578
|
+
example: >-
|
|
30579
|
+
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)
|
|
30580
|
+
AppleWebKit/537.36
|
|
30581
|
+
user_id:
|
|
30582
|
+
type: string
|
|
30583
|
+
description: The ID of the user this session belongs to.
|
|
30584
|
+
example: user_01E4ZCR3C56J083X43JQXF3JK5
|
|
30585
|
+
auth_method:
|
|
30586
|
+
type: string
|
|
30587
|
+
enum:
|
|
30588
|
+
- cross_app_auth
|
|
30589
|
+
- external_auth
|
|
30590
|
+
- impersonation
|
|
30591
|
+
- magic_code
|
|
30592
|
+
- migrated_session
|
|
30593
|
+
- oauth
|
|
30594
|
+
- passkey
|
|
30595
|
+
- password
|
|
30596
|
+
- sso
|
|
30597
|
+
- unknown
|
|
30598
|
+
description: The authentication method used to create this session.
|
|
30599
|
+
example: sso
|
|
30600
|
+
status:
|
|
30601
|
+
type: string
|
|
30602
|
+
enum:
|
|
30603
|
+
- active
|
|
30604
|
+
- expired
|
|
30605
|
+
- revoked
|
|
30606
|
+
description: The current status of the session.
|
|
30607
|
+
example: active
|
|
30608
|
+
expires_at:
|
|
30609
|
+
format: date-time
|
|
30610
|
+
type: string
|
|
30611
|
+
description: The timestamp when the session expires.
|
|
30612
|
+
example: '2026-01-15T12:00:00.000Z'
|
|
30613
|
+
ended_at:
|
|
30614
|
+
format: date-time
|
|
30615
|
+
type:
|
|
30616
|
+
- string
|
|
30617
|
+
- 'null'
|
|
30618
|
+
description: The timestamp when the session ended.
|
|
30619
|
+
example: null
|
|
30620
|
+
created_at:
|
|
30621
|
+
format: date-time
|
|
30622
|
+
type: string
|
|
30623
|
+
description: An ISO 8601 timestamp.
|
|
30624
|
+
example: '2026-01-15T12:00:00.000Z'
|
|
30625
|
+
updated_at:
|
|
30626
|
+
format: date-time
|
|
30627
|
+
type: string
|
|
30628
|
+
description: An ISO 8601 timestamp.
|
|
30629
|
+
example: '2026-01-15T12:00:00.000Z'
|
|
30630
|
+
required:
|
|
30631
|
+
- object
|
|
30632
|
+
- id
|
|
30633
|
+
- ip_address
|
|
30634
|
+
- user_agent
|
|
30635
|
+
- user_id
|
|
30636
|
+
- auth_method
|
|
30637
|
+
- status
|
|
30638
|
+
- expires_at
|
|
30639
|
+
- ended_at
|
|
30640
|
+
- created_at
|
|
30641
|
+
- updated_at
|
|
30642
|
+
description: The event payload.
|
|
30643
|
+
created_at:
|
|
30644
|
+
format: date-time
|
|
30645
|
+
type: string
|
|
30646
|
+
description: An ISO 8601 timestamp.
|
|
30647
|
+
example: '2026-01-15T12:00:00.000Z'
|
|
30648
|
+
context:
|
|
30649
|
+
$ref: '#/components/schemas/EventContextDto'
|
|
30650
|
+
object:
|
|
30651
|
+
type: string
|
|
30652
|
+
description: Distinguishes the Event object.
|
|
30653
|
+
const: event
|
|
30654
|
+
required:
|
|
30655
|
+
- id
|
|
30656
|
+
- event
|
|
30657
|
+
- data
|
|
30658
|
+
- created_at
|
|
30659
|
+
- object
|
|
30470
30660
|
- type: object
|
|
30471
30661
|
properties:
|
|
30472
30662
|
id:
|
|
@@ -33090,6 +33280,11 @@ components:
|
|
|
33090
33280
|
role:
|
|
33091
33281
|
$ref: '#/components/schemas/SlimRole'
|
|
33092
33282
|
description: The primary role assigned to the user within the organization.
|
|
33283
|
+
roles:
|
|
33284
|
+
type: array
|
|
33285
|
+
items:
|
|
33286
|
+
$ref: '#/components/schemas/SlimRole'
|
|
33287
|
+
description: The list of roles assigned to the user within the organization.
|
|
33093
33288
|
user:
|
|
33094
33289
|
$ref: '#/components/schemas/UserlandUser'
|
|
33095
33290
|
description: The user that belongs to the organization through this membership.
|
|
@@ -33103,6 +33298,7 @@ components:
|
|
|
33103
33298
|
- created_at
|
|
33104
33299
|
- updated_at
|
|
33105
33300
|
- role
|
|
33301
|
+
- roles
|
|
33106
33302
|
- user
|
|
33107
33303
|
UserlandUserOrganizationMembershipList:
|
|
33108
33304
|
type: object
|
package/dist/types.d.ts
CHANGED
|
@@ -4350,7 +4350,7 @@ export interface components {
|
|
|
4350
4350
|
* "dsync.user.created"
|
|
4351
4351
|
* ]
|
|
4352
4352
|
*/
|
|
4353
|
-
events: ("authentication.email_verification_succeeded" | "authentication.magic_auth_failed" | "authentication.magic_auth_succeeded" | "authentication.mfa_succeeded" | "authentication.oauth_failed" | "authentication.oauth_succeeded" | "authentication.password_failed" | "authentication.password_succeeded" | "authentication.passkey_failed" | "authentication.passkey_succeeded" | "authentication.sso_failed" | "authentication.sso_started" | "authentication.sso_succeeded" | "authentication.sso_timed_out" | "authentication.radar_risk_detected" | "api_key.created" | "api_key.revoked" | "api_key.updated" | "connection.activated" | "connection.deactivated" | "connection.saml_certificate_renewal_required" | "connection.saml_certificate_renewed" | "connection.deleted" | "dsync.activated" | "dsync.deleted" | "dsync.group.created" | "dsync.group.deleted" | "dsync.group.updated" | "dsync.group.user_added" | "dsync.group.user_removed" | "dsync.user.created" | "dsync.user.deleted" | "dsync.user.updated" | "email_verification.created" | "group.created" | "group.deleted" | "group.member_added" | "group.member_removed" | "group.updated" | "flag.created" | "flag.deleted" | "flag.updated" | "flag.rule_updated" | "invitation.accepted" | "invitation.created" | "invitation.resent" | "invitation.revoked" | "magic_auth.created" | "organization.created" | "organization.deleted" | "organization.updated" | "organization_domain.created" | "organization_domain.deleted" | "organization_domain.updated" | "organization_domain.verified" | "organization_domain.verification_failed" | "password_reset.created" | "password_reset.succeeded" | "user.created" | "user.updated" | "user.deleted" | "organization_membership.created" | "organization_membership.deleted" | "organization_membership.updated" | "role.created" | "role.deleted" | "role.updated" | "organization_role.created" | "organization_role.deleted" | "organization_role.updated" | "permission.created" | "permission.deleted" | "permission.updated" | "pipes.connected_account.connected" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
|
|
4353
|
+
events: ("authentication.email_verification_succeeded" | "authentication.magic_auth_failed" | "authentication.magic_auth_succeeded" | "authentication.mfa_succeeded" | "authentication.oauth_failed" | "authentication.oauth_succeeded" | "authentication.password_failed" | "authentication.password_succeeded" | "authentication.passkey_failed" | "authentication.passkey_succeeded" | "authentication.sso_failed" | "authentication.sso_started" | "authentication.sso_succeeded" | "authentication.sso_timed_out" | "authentication.radar_risk_detected" | "api_key.created" | "api_key.revoked" | "api_key.updated" | "connection.activated" | "connection.deactivated" | "connection.saml_certificate_renewal_required" | "connection.saml_certificate_renewed" | "connection.deleted" | "dsync.activated" | "dsync.deleted" | "dsync.group.created" | "dsync.group.deleted" | "dsync.group.updated" | "dsync.group.user_added" | "dsync.group.user_removed" | "dsync.user.created" | "dsync.user.deleted" | "dsync.user.updated" | "email_verification.created" | "group.created" | "group.deleted" | "group.member_added" | "group.member_removed" | "group.updated" | "flag.created" | "flag.deleted" | "flag.updated" | "flag.rule_updated" | "invitation.accepted" | "invitation.created" | "invitation.resent" | "invitation.revoked" | "magic_auth.created" | "organization.created" | "organization.deleted" | "organization.updated" | "organization_domain.created" | "organization_domain.deleted" | "organization_domain.updated" | "organization_domain.verified" | "organization_domain.verification_failed" | "password_reset.created" | "password_reset.succeeded" | "user.created" | "user.updated" | "user.deleted" | "organization_membership.created" | "organization_membership.deleted" | "organization_membership.updated" | "role.created" | "role.deleted" | "role.updated" | "organization_role.created" | "organization_role.deleted" | "organization_role.updated" | "permission.created" | "permission.deleted" | "permission.updated" | "pipes.connected_account.connected" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.reauthenticated" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
|
|
4354
4354
|
};
|
|
4355
4355
|
UpdateWebhookEndpointDto: {
|
|
4356
4356
|
/**
|
|
@@ -4371,7 +4371,7 @@ export interface components {
|
|
|
4371
4371
|
* "dsync.user.created"
|
|
4372
4372
|
* ]
|
|
4373
4373
|
*/
|
|
4374
|
-
events?: ("authentication.email_verification_succeeded" | "authentication.magic_auth_failed" | "authentication.magic_auth_succeeded" | "authentication.mfa_succeeded" | "authentication.oauth_failed" | "authentication.oauth_succeeded" | "authentication.password_failed" | "authentication.password_succeeded" | "authentication.passkey_failed" | "authentication.passkey_succeeded" | "authentication.sso_failed" | "authentication.sso_started" | "authentication.sso_succeeded" | "authentication.sso_timed_out" | "authentication.radar_risk_detected" | "api_key.created" | "api_key.revoked" | "api_key.updated" | "connection.activated" | "connection.deactivated" | "connection.saml_certificate_renewal_required" | "connection.saml_certificate_renewed" | "connection.deleted" | "dsync.activated" | "dsync.deleted" | "dsync.group.created" | "dsync.group.deleted" | "dsync.group.updated" | "dsync.group.user_added" | "dsync.group.user_removed" | "dsync.user.created" | "dsync.user.deleted" | "dsync.user.updated" | "email_verification.created" | "group.created" | "group.deleted" | "group.member_added" | "group.member_removed" | "group.updated" | "flag.created" | "flag.deleted" | "flag.updated" | "flag.rule_updated" | "invitation.accepted" | "invitation.created" | "invitation.resent" | "invitation.revoked" | "magic_auth.created" | "organization.created" | "organization.deleted" | "organization.updated" | "organization_domain.created" | "organization_domain.deleted" | "organization_domain.updated" | "organization_domain.verified" | "organization_domain.verification_failed" | "password_reset.created" | "password_reset.succeeded" | "user.created" | "user.updated" | "user.deleted" | "organization_membership.created" | "organization_membership.deleted" | "organization_membership.updated" | "role.created" | "role.deleted" | "role.updated" | "organization_role.created" | "organization_role.deleted" | "organization_role.updated" | "permission.created" | "permission.deleted" | "permission.updated" | "pipes.connected_account.connected" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
|
|
4374
|
+
events?: ("authentication.email_verification_succeeded" | "authentication.magic_auth_failed" | "authentication.magic_auth_succeeded" | "authentication.mfa_succeeded" | "authentication.oauth_failed" | "authentication.oauth_succeeded" | "authentication.password_failed" | "authentication.password_succeeded" | "authentication.passkey_failed" | "authentication.passkey_succeeded" | "authentication.sso_failed" | "authentication.sso_started" | "authentication.sso_succeeded" | "authentication.sso_timed_out" | "authentication.radar_risk_detected" | "api_key.created" | "api_key.revoked" | "api_key.updated" | "connection.activated" | "connection.deactivated" | "connection.saml_certificate_renewal_required" | "connection.saml_certificate_renewed" | "connection.deleted" | "dsync.activated" | "dsync.deleted" | "dsync.group.created" | "dsync.group.deleted" | "dsync.group.updated" | "dsync.group.user_added" | "dsync.group.user_removed" | "dsync.user.created" | "dsync.user.deleted" | "dsync.user.updated" | "email_verification.created" | "group.created" | "group.deleted" | "group.member_added" | "group.member_removed" | "group.updated" | "flag.created" | "flag.deleted" | "flag.updated" | "flag.rule_updated" | "invitation.accepted" | "invitation.created" | "invitation.resent" | "invitation.revoked" | "magic_auth.created" | "organization.created" | "organization.deleted" | "organization.updated" | "organization_domain.created" | "organization_domain.deleted" | "organization_domain.updated" | "organization_domain.verified" | "organization_domain.verification_failed" | "password_reset.created" | "password_reset.succeeded" | "user.created" | "user.updated" | "user.deleted" | "organization_membership.created" | "organization_membership.deleted" | "organization_membership.updated" | "role.created" | "role.deleted" | "role.updated" | "organization_role.created" | "organization_role.deleted" | "organization_role.updated" | "permission.created" | "permission.deleted" | "permission.updated" | "pipes.connected_account.connected" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.reauthenticated" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
|
|
4375
4375
|
};
|
|
4376
4376
|
WidgetSessionTokenDto: {
|
|
4377
4377
|
/**
|
|
@@ -5097,11 +5097,11 @@ export interface components {
|
|
|
5097
5097
|
*/
|
|
5098
5098
|
id: string;
|
|
5099
5099
|
/**
|
|
5100
|
-
* @description The state of the export. Possible values: pending, ready, error.
|
|
5100
|
+
* @description The state of the export. Possible values: pending, ready, error, expired.
|
|
5101
5101
|
* @example ready
|
|
5102
5102
|
* @enum {string}
|
|
5103
5103
|
*/
|
|
5104
|
-
state: "pending" | "ready" | "error";
|
|
5104
|
+
state: "pending" | "ready" | "error" | "expired";
|
|
5105
5105
|
/**
|
|
5106
5106
|
* @description A URL to the CSV file. Only defined when the Audit Log Export is ready.
|
|
5107
5107
|
* @example https://exports.audit-logs.com/audit-log-exports/export.csv
|
|
@@ -12450,6 +12450,108 @@ export interface components {
|
|
|
12450
12450
|
* @constant
|
|
12451
12451
|
*/
|
|
12452
12452
|
object: "event";
|
|
12453
|
+
} | {
|
|
12454
|
+
/**
|
|
12455
|
+
* @description Unique identifier for the event.
|
|
12456
|
+
* @example event_01EHZNVPK3SFK441A1RGBFSHRT
|
|
12457
|
+
*/
|
|
12458
|
+
id: string;
|
|
12459
|
+
/** @constant */
|
|
12460
|
+
event: "session.reauthenticated";
|
|
12461
|
+
/** @description The event payload. */
|
|
12462
|
+
data: {
|
|
12463
|
+
/**
|
|
12464
|
+
* @description Distinguishes the session object.
|
|
12465
|
+
* @constant
|
|
12466
|
+
*/
|
|
12467
|
+
object: "session";
|
|
12468
|
+
/**
|
|
12469
|
+
* @description The unique ID of the session.
|
|
12470
|
+
* @example session_01H93ZY4F80QPBEZ1R5B2SHQG8
|
|
12471
|
+
*/
|
|
12472
|
+
id: string;
|
|
12473
|
+
/** @description Information about the impersonator if this session was created via impersonation. */
|
|
12474
|
+
impersonator?: {
|
|
12475
|
+
/**
|
|
12476
|
+
* @description The email address of the WorkOS Dashboard user who is impersonating the user.
|
|
12477
|
+
* @example admin@foocorp.com
|
|
12478
|
+
*/
|
|
12479
|
+
email: string;
|
|
12480
|
+
/**
|
|
12481
|
+
* @description The justification the impersonator gave for impersonating the user.
|
|
12482
|
+
* @example Investigating an issue with the customer's account.
|
|
12483
|
+
*/
|
|
12484
|
+
reason: string | null;
|
|
12485
|
+
};
|
|
12486
|
+
/**
|
|
12487
|
+
* @description The IP address from which the session was created.
|
|
12488
|
+
* @example 198.51.100.42
|
|
12489
|
+
*/
|
|
12490
|
+
ip_address: string | null;
|
|
12491
|
+
/**
|
|
12492
|
+
* @description The ID of the organization this session is associated with.
|
|
12493
|
+
* @example org_01H945H0YD4F97JN9MATX7BYAG
|
|
12494
|
+
*/
|
|
12495
|
+
organization_id?: string;
|
|
12496
|
+
/**
|
|
12497
|
+
* @description The user agent string from the device that created the session.
|
|
12498
|
+
* @example Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
|
|
12499
|
+
*/
|
|
12500
|
+
user_agent: string | null;
|
|
12501
|
+
/**
|
|
12502
|
+
* @description The ID of the user this session belongs to.
|
|
12503
|
+
* @example user_01E4ZCR3C56J083X43JQXF3JK5
|
|
12504
|
+
*/
|
|
12505
|
+
user_id: string;
|
|
12506
|
+
/**
|
|
12507
|
+
* @description The authentication method used to create this session.
|
|
12508
|
+
* @example sso
|
|
12509
|
+
* @enum {string}
|
|
12510
|
+
*/
|
|
12511
|
+
auth_method: "cross_app_auth" | "external_auth" | "impersonation" | "magic_code" | "migrated_session" | "oauth" | "passkey" | "password" | "sso" | "unknown";
|
|
12512
|
+
/**
|
|
12513
|
+
* @description The current status of the session.
|
|
12514
|
+
* @example active
|
|
12515
|
+
* @enum {string}
|
|
12516
|
+
*/
|
|
12517
|
+
status: "active" | "expired" | "revoked";
|
|
12518
|
+
/**
|
|
12519
|
+
* Format: date-time
|
|
12520
|
+
* @description The timestamp when the session expires.
|
|
12521
|
+
* @example 2026-01-15T12:00:00.000Z
|
|
12522
|
+
*/
|
|
12523
|
+
expires_at: string;
|
|
12524
|
+
/**
|
|
12525
|
+
* Format: date-time
|
|
12526
|
+
* @description The timestamp when the session ended.
|
|
12527
|
+
* @example null
|
|
12528
|
+
*/
|
|
12529
|
+
ended_at: string | null;
|
|
12530
|
+
/**
|
|
12531
|
+
* Format: date-time
|
|
12532
|
+
* @description An ISO 8601 timestamp.
|
|
12533
|
+
* @example 2026-01-15T12:00:00.000Z
|
|
12534
|
+
*/
|
|
12535
|
+
created_at: string;
|
|
12536
|
+
/**
|
|
12537
|
+
* Format: date-time
|
|
12538
|
+
* @description An ISO 8601 timestamp.
|
|
12539
|
+
* @example 2026-01-15T12:00:00.000Z
|
|
12540
|
+
*/
|
|
12541
|
+
updated_at: string;
|
|
12542
|
+
};
|
|
12543
|
+
/**
|
|
12544
|
+
* Format: date-time
|
|
12545
|
+
* @description An ISO 8601 timestamp.
|
|
12546
|
+
* @example 2026-01-15T12:00:00.000Z
|
|
12547
|
+
*/
|
|
12548
|
+
created_at: string;
|
|
12549
|
+
context?: components["schemas"]["EventContextDto"];
|
|
12550
|
+
/**
|
|
12551
|
+
* @description Distinguishes the Event object.
|
|
12552
|
+
* @constant
|
|
12553
|
+
*/
|
|
12554
|
+
object: "event";
|
|
12453
12555
|
} | {
|
|
12454
12556
|
/**
|
|
12455
12557
|
* @description Unique identifier for the event.
|
|
@@ -14434,6 +14536,8 @@ export interface components {
|
|
|
14434
14536
|
updated_at: string;
|
|
14435
14537
|
/** @description The primary role assigned to the user within the organization. */
|
|
14436
14538
|
role: components["schemas"]["SlimRole"];
|
|
14539
|
+
/** @description The list of roles assigned to the user within the organization. */
|
|
14540
|
+
roles: components["schemas"]["SlimRole"][];
|
|
14437
14541
|
/** @description The user that belongs to the organization through this membership. */
|
|
14438
14542
|
user: components["schemas"]["UserlandUser"];
|
|
14439
14543
|
};
|
|
@@ -21708,6 +21812,10 @@ export interface operations {
|
|
|
21708
21812
|
directory?: string;
|
|
21709
21813
|
/** @description Unique identifier of the WorkOS Directory Group. This value can be obtained from the WorkOS API. */
|
|
21710
21814
|
group?: string;
|
|
21815
|
+
/** @description Filter Directory Users by the identity provider's unique identifier (`idp_id`). Requires the `directory` parameter to also be provided. */
|
|
21816
|
+
idp_id?: string;
|
|
21817
|
+
/** @description Filter Directory Users by their primary email address. Requires the `directory` parameter to also be provided. */
|
|
21818
|
+
email?: string;
|
|
21711
21819
|
};
|
|
21712
21820
|
header?: never;
|
|
21713
21821
|
path?: never;
|
|
@@ -25530,6 +25638,11 @@ export interface operations {
|
|
|
25530
25638
|
* @example user@example.com
|
|
25531
25639
|
*/
|
|
25532
25640
|
email: string;
|
|
25641
|
+
/**
|
|
25642
|
+
* @description A token that links the subsequent SSO authentication back to the pending authentication so the authorization session can be completed.
|
|
25643
|
+
* @example pat_01FVYZ...
|
|
25644
|
+
*/
|
|
25645
|
+
pending_authentication_token?: string;
|
|
25533
25646
|
}));
|
|
25534
25647
|
};
|
|
25535
25648
|
};
|
|
@@ -27000,6 +27113,8 @@ export interface operations {
|
|
|
27000
27113
|
updated_at: string;
|
|
27001
27114
|
/** @description The primary role assigned to the user within the organization. */
|
|
27002
27115
|
role: components["schemas"]["SlimRole"];
|
|
27116
|
+
/** @description The list of roles assigned to the user within the organization. */
|
|
27117
|
+
roles: components["schemas"]["SlimRole"][];
|
|
27003
27118
|
/** @description The user that belongs to the organization through this membership. */
|
|
27004
27119
|
user: components["schemas"]["UserlandUser"];
|
|
27005
27120
|
};
|
|
@@ -27363,6 +27478,8 @@ export interface operations {
|
|
|
27363
27478
|
updated_at: string;
|
|
27364
27479
|
/** @description The primary role assigned to the user within the organization. */
|
|
27365
27480
|
role: components["schemas"]["SlimRole"];
|
|
27481
|
+
/** @description The list of roles assigned to the user within the organization. */
|
|
27482
|
+
roles: components["schemas"]["SlimRole"][];
|
|
27366
27483
|
/** @description The user that belongs to the organization through this membership. */
|
|
27367
27484
|
user: components["schemas"]["UserlandUser"];
|
|
27368
27485
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workos/openapi-spec",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,11 +30,12 @@
|
|
|
30
30
|
"./package.json": "./package.json"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@workos/oagen": "^0.
|
|
33
|
+
"@workos/oagen": "^0.23.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate:services": "node scripts/generate-services.mjs",
|
|
37
37
|
"build:policy": "npm run generate:services && tsdown",
|
|
38
|
+
"test": "node --test scripts/__tests__/*.spec.mjs",
|
|
38
39
|
"generate:postman": "tsx scripts/postman/generate.ts",
|
|
39
40
|
"generate:postman:local": "tsx scripts/postman/generate.ts --local",
|
|
40
41
|
"sdk:resolve": "npx oagen resolve --spec spec/open-api-spec.yaml",
|
|
@@ -54,16 +55,16 @@
|
|
|
54
55
|
"prepare": "husky"
|
|
55
56
|
},
|
|
56
57
|
"overrides": {
|
|
57
|
-
"js-yaml": "^4.
|
|
58
|
+
"js-yaml": "^4.1.1",
|
|
58
59
|
"lodash": "^4.17.23"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@types/js-yaml": "^4.0.9",
|
|
62
|
-
"@types/node": "^
|
|
63
|
-
"@workos/oagen-emitters": "^0.
|
|
63
|
+
"@types/node": "^26.0.0",
|
|
64
|
+
"@workos/oagen-emitters": "^0.19.0",
|
|
64
65
|
"diff2html": "^3.4.56",
|
|
65
66
|
"husky": "^9.1.7",
|
|
66
|
-
"js-yaml": "^4.
|
|
67
|
+
"js-yaml": "^4.1.1",
|
|
67
68
|
"openapi-to-postmanv2": "^6.1.0",
|
|
68
69
|
"tsdown": "^0.22.3",
|
|
69
70
|
"tsx": "^4.22.4",
|