@workos/openapi-spec 0.25.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.
- package/dist/open-api-spec.yaml +88 -0
- package/dist/services.mjs +5 -0
- package/dist/types.d.ts +109 -0
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -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.
|
|
@@ -35551,6 +35586,59 @@ components:
|
|
|
35551
35586
|
https://setup.workos.com?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
|
|
35552
35587
|
required:
|
|
35553
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
|
|
35554
35642
|
SendRadarSmsChallengeResponse:
|
|
35555
35643
|
type: object
|
|
35556
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;
|
|
@@ -15529,6 +15549,57 @@ export interface components {
|
|
|
15529
15549
|
*/
|
|
15530
15550
|
link: string;
|
|
15531
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
|
+
};
|
|
15532
15603
|
SendRadarSmsChallengeResponse: {
|
|
15533
15604
|
/**
|
|
15534
15605
|
* @description The ID of the SMS verification. Pass this to the authenticate endpoint to verify the code.
|
|
@@ -30080,6 +30151,44 @@ export interface operations {
|
|
|
30080
30151
|
};
|
|
30081
30152
|
};
|
|
30082
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
|
+
};
|
|
30083
30192
|
RedirectUrisController_list: {
|
|
30084
30193
|
parameters: {
|
|
30085
30194
|
query?: {
|