@workos/openapi-spec 0.24.0 → 0.26.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.
@@ -21572,6 +21607,7 @@ components:
21572
21607
  - authentication.sso_started
21573
21608
  - authentication.sso_succeeded
21574
21609
  - authentication.sso_timed_out
21610
+ - radar.challenge_created
21575
21611
  - authentication.radar_risk_detected
21576
21612
  - authentication.reauthentication_succeeded
21577
21613
  - api_key.created
@@ -32566,6 +32602,58 @@ components:
32566
32602
  - data
32567
32603
  - created_at
32568
32604
  - object
32605
+ - type: object
32606
+ properties:
32607
+ id:
32608
+ type: string
32609
+ description: Unique identifier for the event.
32610
+ example: event_01EHZNVPK3SFK441A1RGBFSHRT
32611
+ event:
32612
+ type: string
32613
+ const: radar.challenge_created
32614
+ data:
32615
+ type: object
32616
+ properties:
32617
+ type:
32618
+ type: string
32619
+ description: The type of the Radar challenge.
32620
+ example: email
32621
+ const: email
32622
+ radar_challenge_id:
32623
+ type: string
32624
+ description: The ID of the Radar challenge.
32625
+ example: radar_challenge_01HWZBQZY2M3AMQW166Q22K88F
32626
+ user_id:
32627
+ type: string
32628
+ description: The ID of the user.
32629
+ example: user_01E4ZCR3C56J083X43JQXF3JK5
32630
+ email:
32631
+ type: string
32632
+ description: The email address of the user.
32633
+ example: user@example.com
32634
+ required:
32635
+ - type
32636
+ - radar_challenge_id
32637
+ - user_id
32638
+ - email
32639
+ description: The event payload.
32640
+ created_at:
32641
+ format: date-time
32642
+ type: string
32643
+ description: An ISO 8601 timestamp.
32644
+ example: '2026-01-15T12:00:00.000Z'
32645
+ context:
32646
+ $ref: '#/components/schemas/EventContextDto'
32647
+ object:
32648
+ type: string
32649
+ description: Distinguishes the Event object.
32650
+ const: event
32651
+ required:
32652
+ - id
32653
+ - event
32654
+ - data
32655
+ - created_at
32656
+ - object
32569
32657
  - type: object
32570
32658
  properties:
32571
32659
  id:
@@ -35498,6 +35586,59 @@ components:
35498
35586
  https://setup.workos.com?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
35499
35587
  required:
35500
35588
  - link
35589
+ RadarChallenge:
35590
+ type: object
35591
+ properties:
35592
+ object:
35593
+ type: string
35594
+ description: Distinguishes the Radar Challenge object.
35595
+ const: radar_challenge
35596
+ id:
35597
+ type: string
35598
+ description: The unique ID of the Radar Challenge.
35599
+ example: radar_challenge_01HWZBQZY2M3AMQW166Q22K88F
35600
+ type:
35601
+ type: string
35602
+ description: The type of the Radar challenge.
35603
+ example: email
35604
+ const: email
35605
+ user_id:
35606
+ type: string
35607
+ description: The unique ID of the user.
35608
+ example: user_01E4ZCR3C56J083X43JQXF3JK5
35609
+ email:
35610
+ type: string
35611
+ description: The email address of the user.
35612
+ example: marcelina.davis@example.com
35613
+ expires_at:
35614
+ format: date-time
35615
+ type: string
35616
+ description: The timestamp when the Radar Challenge code expires.
35617
+ example: '2026-01-15T12:00:00.000Z'
35618
+ created_at:
35619
+ format: date-time
35620
+ type: string
35621
+ description: An ISO 8601 timestamp.
35622
+ example: '2026-01-15T12:00:00.000Z'
35623
+ updated_at:
35624
+ format: date-time
35625
+ type: string
35626
+ description: An ISO 8601 timestamp.
35627
+ example: '2026-01-15T12:00:00.000Z'
35628
+ code:
35629
+ type: string
35630
+ description: The code used to verify the Radar Challenge.
35631
+ example: '123456'
35632
+ required:
35633
+ - object
35634
+ - id
35635
+ - type
35636
+ - user_id
35637
+ - email
35638
+ - expires_at
35639
+ - created_at
35640
+ - updated_at
35641
+ - code
35501
35642
  SendRadarSmsChallengeResponse:
35502
35643
  type: object
35503
35644
  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" | "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.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" | "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.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
  /**
@@ -13272,6 +13292,50 @@ export interface components {
13272
13292
  * @constant
13273
13293
  */
13274
13294
  object: "event";
13295
+ } | {
13296
+ /**
13297
+ * @description Unique identifier for the event.
13298
+ * @example event_01EHZNVPK3SFK441A1RGBFSHRT
13299
+ */
13300
+ id: string;
13301
+ /** @constant */
13302
+ event: "radar.challenge_created";
13303
+ /** @description The event payload. */
13304
+ data: {
13305
+ /**
13306
+ * @description The type of the Radar challenge.
13307
+ * @example email
13308
+ * @constant
13309
+ */
13310
+ type: "email";
13311
+ /**
13312
+ * @description The ID of the Radar challenge.
13313
+ * @example radar_challenge_01HWZBQZY2M3AMQW166Q22K88F
13314
+ */
13315
+ radar_challenge_id: string;
13316
+ /**
13317
+ * @description The ID of the user.
13318
+ * @example user_01E4ZCR3C56J083X43JQXF3JK5
13319
+ */
13320
+ user_id: string;
13321
+ /**
13322
+ * @description The email address of the user.
13323
+ * @example user@example.com
13324
+ */
13325
+ email: string;
13326
+ };
13327
+ /**
13328
+ * Format: date-time
13329
+ * @description An ISO 8601 timestamp.
13330
+ * @example 2026-01-15T12:00:00.000Z
13331
+ */
13332
+ created_at: string;
13333
+ context?: components["schemas"]["EventContextDto"];
13334
+ /**
13335
+ * @description Distinguishes the Event object.
13336
+ * @constant
13337
+ */
13338
+ object: "event";
13275
13339
  } | {
13276
13340
  /**
13277
13341
  * @description Unique identifier for the event.
@@ -15485,6 +15549,57 @@ export interface components {
15485
15549
  */
15486
15550
  link: string;
15487
15551
  };
15552
+ RadarChallenge: {
15553
+ /**
15554
+ * @description Distinguishes the Radar Challenge object.
15555
+ * @constant
15556
+ */
15557
+ object: "radar_challenge";
15558
+ /**
15559
+ * @description The unique ID of the Radar Challenge.
15560
+ * @example radar_challenge_01HWZBQZY2M3AMQW166Q22K88F
15561
+ */
15562
+ id: string;
15563
+ /**
15564
+ * @description The type of the Radar challenge.
15565
+ * @example email
15566
+ * @constant
15567
+ */
15568
+ type: "email";
15569
+ /**
15570
+ * @description The unique ID of the user.
15571
+ * @example user_01E4ZCR3C56J083X43JQXF3JK5
15572
+ */
15573
+ user_id: string;
15574
+ /**
15575
+ * @description The email address of the user.
15576
+ * @example marcelina.davis@example.com
15577
+ */
15578
+ email: string;
15579
+ /**
15580
+ * Format: date-time
15581
+ * @description The timestamp when the Radar Challenge code expires.
15582
+ * @example 2026-01-15T12:00:00.000Z
15583
+ */
15584
+ expires_at: string;
15585
+ /**
15586
+ * Format: date-time
15587
+ * @description An ISO 8601 timestamp.
15588
+ * @example 2026-01-15T12:00:00.000Z
15589
+ */
15590
+ created_at: string;
15591
+ /**
15592
+ * Format: date-time
15593
+ * @description An ISO 8601 timestamp.
15594
+ * @example 2026-01-15T12:00:00.000Z
15595
+ */
15596
+ updated_at: string;
15597
+ /**
15598
+ * @description The code used to verify the Radar Challenge.
15599
+ * @example 123456
15600
+ */
15601
+ code: string;
15602
+ };
15488
15603
  SendRadarSmsChallengeResponse: {
15489
15604
  /**
15490
15605
  * @description The ID of the SMS verification. Pass this to the authenticate endpoint to verify the code.
@@ -30036,6 +30151,44 @@ export interface operations {
30036
30151
  };
30037
30152
  };
30038
30153
  };
30154
+ PublicRadarChallengesController_get: {
30155
+ parameters: {
30156
+ query?: never;
30157
+ header?: never;
30158
+ path: {
30159
+ /** @description The unique ID of the Radar Challenge. */
30160
+ id: string;
30161
+ };
30162
+ cookie?: never;
30163
+ };
30164
+ requestBody?: never;
30165
+ responses: {
30166
+ /** @description OK */
30167
+ 200: {
30168
+ headers: {
30169
+ [name: string]: unknown;
30170
+ };
30171
+ content: {
30172
+ "application/json": components["schemas"]["RadarChallenge"];
30173
+ };
30174
+ };
30175
+ /** @description Not Found */
30176
+ 404: {
30177
+ headers: {
30178
+ [name: string]: unknown;
30179
+ };
30180
+ content: {
30181
+ "application/json": {
30182
+ /**
30183
+ * @description A human-readable description of the error.
30184
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
30185
+ */
30186
+ message: string;
30187
+ };
30188
+ };
30189
+ };
30190
+ };
30191
+ };
30039
30192
  RedirectUrisController_list: {
30040
30193
  parameters: {
30041
30194
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.24.0",
3
+ "version": "0.26.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",