@workos/openapi-spec 0.25.0 → 0.27.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.
@@ -15378,6 +15378,41 @@ paths:
15378
15378
  summary: Send a Radar SMS challenge
15379
15379
  tags:
15380
15380
  - user-management.authentication
15381
+ /user_management/radar_challenges/{id}:
15382
+ get:
15383
+ description: Get the details of an existing Radar Challenge, including the OTP code.
15384
+ operationId: PublicRadarChallengesController_get
15385
+ parameters:
15386
+ - name: id
15387
+ required: true
15388
+ in: path
15389
+ description: The unique ID of the Radar Challenge.
15390
+ schema:
15391
+ example: radar_challenge_01HWZBQZY2M3AMQW166Q22K88F
15392
+ type: string
15393
+ responses:
15394
+ '200':
15395
+ description: OK
15396
+ content:
15397
+ application/json:
15398
+ schema:
15399
+ $ref: '#/components/schemas/RadarChallenge'
15400
+ '404':
15401
+ description: Not Found
15402
+ content:
15403
+ application/json:
15404
+ schema:
15405
+ type: object
15406
+ properties:
15407
+ message:
15408
+ type: string
15409
+ description: A human-readable description of the error.
15410
+ example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
15411
+ required:
15412
+ - message
15413
+ summary: Get Radar Challenge details
15414
+ tags:
15415
+ - user-management.authentication
15381
15416
  /user_management/redirect_uris:
15382
15417
  post:
15383
15418
  description: Creates a new redirect URI for an application.
@@ -21556,6 +21591,7 @@ components:
21556
21591
  - agent.registration.claim.attempt.created
21557
21592
  - agent.registration.claim.completed
21558
21593
  - agent.registration.credential.issued
21594
+ - agent.registration.deleted
21559
21595
  - agent.registration.expired
21560
21596
  - agent.registration.organization.switched
21561
21597
  - authentication.email_verification_succeeded
@@ -25623,6 +25659,42 @@ components:
25623
25659
  - data
25624
25660
  - created_at
25625
25661
  - object
25662
+ - type: object
25663
+ properties:
25664
+ id:
25665
+ type: string
25666
+ description: Unique identifier for the event.
25667
+ example: event_01EHZNVPK3SFK441A1RGBFSHRT
25668
+ event:
25669
+ type: string
25670
+ const: agent.registration.deleted
25671
+ data:
25672
+ type: object
25673
+ properties:
25674
+ agent_registration_id:
25675
+ type: string
25676
+ description: The agent registration that was deleted.
25677
+ example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY
25678
+ required:
25679
+ - agent_registration_id
25680
+ description: The event payload.
25681
+ created_at:
25682
+ format: date-time
25683
+ type: string
25684
+ description: An ISO 8601 timestamp.
25685
+ example: '2026-01-15T12:00:00.000Z'
25686
+ context:
25687
+ $ref: '#/components/schemas/EventContextDto'
25688
+ object:
25689
+ type: string
25690
+ description: Distinguishes the Event object.
25691
+ const: event
25692
+ required:
25693
+ - id
25694
+ - event
25695
+ - data
25696
+ - created_at
25697
+ - object
25626
25698
  - type: object
25627
25699
  properties:
25628
25700
  id:
@@ -35551,6 +35623,59 @@ components:
35551
35623
  https://setup.workos.com?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
35552
35624
  required:
35553
35625
  - link
35626
+ RadarChallenge:
35627
+ type: object
35628
+ properties:
35629
+ object:
35630
+ type: string
35631
+ description: Distinguishes the Radar Challenge object.
35632
+ const: radar_challenge
35633
+ id:
35634
+ type: string
35635
+ description: The unique ID of the Radar Challenge.
35636
+ example: radar_challenge_01HWZBQZY2M3AMQW166Q22K88F
35637
+ type:
35638
+ type: string
35639
+ description: The type of the Radar challenge.
35640
+ example: email
35641
+ const: email
35642
+ user_id:
35643
+ type: string
35644
+ description: The unique ID of the user.
35645
+ example: user_01E4ZCR3C56J083X43JQXF3JK5
35646
+ email:
35647
+ type: string
35648
+ description: The email address of the user.
35649
+ example: marcelina.davis@example.com
35650
+ expires_at:
35651
+ format: date-time
35652
+ type: string
35653
+ description: The timestamp when the Radar Challenge code expires.
35654
+ example: '2026-01-15T12:00:00.000Z'
35655
+ created_at:
35656
+ format: date-time
35657
+ type: string
35658
+ description: An ISO 8601 timestamp.
35659
+ example: '2026-01-15T12:00:00.000Z'
35660
+ updated_at:
35661
+ format: date-time
35662
+ type: string
35663
+ description: An ISO 8601 timestamp.
35664
+ example: '2026-01-15T12:00:00.000Z'
35665
+ code:
35666
+ type: string
35667
+ description: The code used to verify the Radar Challenge.
35668
+ example: '123456'
35669
+ required:
35670
+ - object
35671
+ - id
35672
+ - type
35673
+ - user_id
35674
+ - email
35675
+ - expires_at
35676
+ - created_at
35677
+ - updated_at
35678
+ - code
35554
35679
  SendRadarSmsChallengeResponse:
35555
35680
  type: object
35556
35681
  properties:
package/dist/services.mjs CHANGED
@@ -907,6 +907,11 @@ const serviceEndpoints = {
907
907
  "path": "/user_management/radar_challenges",
908
908
  "name": "create_radar_challenge"
909
909
  },
910
+ {
911
+ "method": "GET",
912
+ "path": "/user_management/radar_challenges/{id}",
913
+ "name": "get_radar_challenge"
914
+ },
910
915
  {
911
916
  "method": "GET",
912
917
  "path": "/user_management/redirect_uris",
package/dist/types.d.ts CHANGED
@@ -2495,6 +2495,26 @@ export interface paths {
2495
2495
  patch?: never;
2496
2496
  trace?: never;
2497
2497
  };
2498
+ "/user_management/radar_challenges/{id}": {
2499
+ parameters: {
2500
+ query?: never;
2501
+ header?: never;
2502
+ path?: never;
2503
+ cookie?: never;
2504
+ };
2505
+ /**
2506
+ * Get Radar Challenge details
2507
+ * @description Get the details of an existing Radar Challenge, including the OTP code.
2508
+ */
2509
+ get: operations["PublicRadarChallengesController_get"];
2510
+ put?: never;
2511
+ post?: never;
2512
+ delete?: never;
2513
+ options?: never;
2514
+ head?: never;
2515
+ patch?: never;
2516
+ trace?: never;
2517
+ };
2498
2518
  "/user_management/redirect_uris": {
2499
2519
  parameters: {
2500
2520
  query?: never;
@@ -4787,7 +4807,7 @@ export interface components {
4787
4807
  * "dsync.user.created"
4788
4808
  * ]
4789
4809
  */
4790
- events: ("agent.registration.created" | "agent.registration.claim.attempt.created" | "agent.registration.claim.completed" | "agent.registration.credential.issued" | "agent.registration.expired" | "agent.registration.organization.switched" | "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" | "radar.challenge_created" | "authentication.radar_risk_detected" | "authentication.reauthentication_succeeded" | "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.connection_failed" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
4810
+ events: ("agent.registration.created" | "agent.registration.claim.attempt.created" | "agent.registration.claim.completed" | "agent.registration.credential.issued" | "agent.registration.deleted" | "agent.registration.expired" | "agent.registration.organization.switched" | "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" | "radar.challenge_created" | "authentication.radar_risk_detected" | "authentication.reauthentication_succeeded" | "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.connection_failed" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
4791
4811
  };
4792
4812
  UpdateWebhookEndpointDto: {
4793
4813
  /**
@@ -4808,7 +4828,7 @@ export interface components {
4808
4828
  * "dsync.user.created"
4809
4829
  * ]
4810
4830
  */
4811
- events?: ("agent.registration.created" | "agent.registration.claim.attempt.created" | "agent.registration.claim.completed" | "agent.registration.credential.issued" | "agent.registration.expired" | "agent.registration.organization.switched" | "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" | "radar.challenge_created" | "authentication.radar_risk_detected" | "authentication.reauthentication_succeeded" | "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.connection_failed" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
4831
+ events?: ("agent.registration.created" | "agent.registration.claim.attempt.created" | "agent.registration.claim.completed" | "agent.registration.credential.issued" | "agent.registration.deleted" | "agent.registration.expired" | "agent.registration.organization.switched" | "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" | "radar.challenge_created" | "authentication.radar_risk_detected" | "authentication.reauthentication_succeeded" | "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.connection_failed" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
4812
4832
  };
4813
4833
  WidgetSessionTokenDto: {
4814
4834
  /**
@@ -7938,6 +7958,34 @@ export interface components {
7938
7958
  * @constant
7939
7959
  */
7940
7960
  object: "event";
7961
+ } | {
7962
+ /**
7963
+ * @description Unique identifier for the event.
7964
+ * @example event_01EHZNVPK3SFK441A1RGBFSHRT
7965
+ */
7966
+ id: string;
7967
+ /** @constant */
7968
+ event: "agent.registration.deleted";
7969
+ /** @description The event payload. */
7970
+ data: {
7971
+ /**
7972
+ * @description The agent registration that was deleted.
7973
+ * @example agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY
7974
+ */
7975
+ agent_registration_id: string;
7976
+ };
7977
+ /**
7978
+ * Format: date-time
7979
+ * @description An ISO 8601 timestamp.
7980
+ * @example 2026-01-15T12:00:00.000Z
7981
+ */
7982
+ created_at: string;
7983
+ context?: components["schemas"]["EventContextDto"];
7984
+ /**
7985
+ * @description Distinguishes the Event object.
7986
+ * @constant
7987
+ */
7988
+ object: "event";
7941
7989
  } | {
7942
7990
  /**
7943
7991
  * @description Unique identifier for the event.
@@ -15529,6 +15577,57 @@ export interface components {
15529
15577
  */
15530
15578
  link: string;
15531
15579
  };
15580
+ RadarChallenge: {
15581
+ /**
15582
+ * @description Distinguishes the Radar Challenge object.
15583
+ * @constant
15584
+ */
15585
+ object: "radar_challenge";
15586
+ /**
15587
+ * @description The unique ID of the Radar Challenge.
15588
+ * @example radar_challenge_01HWZBQZY2M3AMQW166Q22K88F
15589
+ */
15590
+ id: string;
15591
+ /**
15592
+ * @description The type of the Radar challenge.
15593
+ * @example email
15594
+ * @constant
15595
+ */
15596
+ type: "email";
15597
+ /**
15598
+ * @description The unique ID of the user.
15599
+ * @example user_01E4ZCR3C56J083X43JQXF3JK5
15600
+ */
15601
+ user_id: string;
15602
+ /**
15603
+ * @description The email address of the user.
15604
+ * @example marcelina.davis@example.com
15605
+ */
15606
+ email: string;
15607
+ /**
15608
+ * Format: date-time
15609
+ * @description The timestamp when the Radar Challenge code expires.
15610
+ * @example 2026-01-15T12:00:00.000Z
15611
+ */
15612
+ expires_at: string;
15613
+ /**
15614
+ * Format: date-time
15615
+ * @description An ISO 8601 timestamp.
15616
+ * @example 2026-01-15T12:00:00.000Z
15617
+ */
15618
+ created_at: string;
15619
+ /**
15620
+ * Format: date-time
15621
+ * @description An ISO 8601 timestamp.
15622
+ * @example 2026-01-15T12:00:00.000Z
15623
+ */
15624
+ updated_at: string;
15625
+ /**
15626
+ * @description The code used to verify the Radar Challenge.
15627
+ * @example 123456
15628
+ */
15629
+ code: string;
15630
+ };
15532
15631
  SendRadarSmsChallengeResponse: {
15533
15632
  /**
15534
15633
  * @description The ID of the SMS verification. Pass this to the authenticate endpoint to verify the code.
@@ -30080,6 +30179,44 @@ export interface operations {
30080
30179
  };
30081
30180
  };
30082
30181
  };
30182
+ PublicRadarChallengesController_get: {
30183
+ parameters: {
30184
+ query?: never;
30185
+ header?: never;
30186
+ path: {
30187
+ /** @description The unique ID of the Radar Challenge. */
30188
+ id: string;
30189
+ };
30190
+ cookie?: never;
30191
+ };
30192
+ requestBody?: never;
30193
+ responses: {
30194
+ /** @description OK */
30195
+ 200: {
30196
+ headers: {
30197
+ [name: string]: unknown;
30198
+ };
30199
+ content: {
30200
+ "application/json": components["schemas"]["RadarChallenge"];
30201
+ };
30202
+ };
30203
+ /** @description Not Found */
30204
+ 404: {
30205
+ headers: {
30206
+ [name: string]: unknown;
30207
+ };
30208
+ content: {
30209
+ "application/json": {
30210
+ /**
30211
+ * @description A human-readable description of the error.
30212
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
30213
+ */
30214
+ message: string;
30215
+ };
30216
+ };
30217
+ };
30218
+ };
30219
+ };
30083
30220
  RedirectUrisController_list: {
30084
30221
  parameters: {
30085
30222
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.25.0",
3
+ "version": "0.27.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",