@workos/openapi-spec 0.156.0 → 0.158.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 +61 -7
- package/dist/types.d.ts +50 -5
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -6146,8 +6146,8 @@ paths:
|
|
|
6146
6146
|
/client/token:
|
|
6147
6147
|
post:
|
|
6148
6148
|
description: >-
|
|
6149
|
-
Generate a short-lived, session-bound token for the
|
|
6150
|
-
|
|
6149
|
+
Generate a short-lived, session-bound token for the Widgets API, scoped
|
|
6150
|
+
to an organization and user.
|
|
6151
6151
|
operationId: ClientApiTokenController_issueClientApiToken
|
|
6152
6152
|
parameters: []
|
|
6153
6153
|
requestBody:
|
|
@@ -6181,7 +6181,7 @@ paths:
|
|
|
6181
6181
|
application/json:
|
|
6182
6182
|
schema:
|
|
6183
6183
|
$ref: '#/components/schemas/ErrorBody'
|
|
6184
|
-
summary: Generate a
|
|
6184
|
+
summary: Generate a Widgets API token
|
|
6185
6185
|
tags:
|
|
6186
6186
|
- client
|
|
6187
6187
|
/connect/applications:
|
|
@@ -19294,7 +19294,7 @@ tags:
|
|
|
19294
19294
|
- name: authorization
|
|
19295
19295
|
description: Authorization and access control.
|
|
19296
19296
|
- name: client
|
|
19297
|
-
description:
|
|
19297
|
+
description: Widgets API token management.
|
|
19298
19298
|
- name: connections
|
|
19299
19299
|
description: Manage SSO connections.
|
|
19300
19300
|
- name: directories
|
|
@@ -23744,11 +23744,11 @@ components:
|
|
|
23744
23744
|
properties:
|
|
23745
23745
|
organization_id:
|
|
23746
23746
|
type: string
|
|
23747
|
-
description: The ID of the organization to scope the
|
|
23747
|
+
description: The ID of the organization to scope the Widgets API token to.
|
|
23748
23748
|
example: org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
23749
23749
|
user_id:
|
|
23750
23750
|
type: string
|
|
23751
|
-
description: The ID of the user to issue the
|
|
23751
|
+
description: The ID of the user to issue the Widgets API token for.
|
|
23752
23752
|
example: user_01E4ZCR3C56J083X43JQXF3JK5
|
|
23753
23753
|
required:
|
|
23754
23754
|
- organization_id
|
|
@@ -31274,6 +31274,12 @@ components:
|
|
|
31274
31274
|
type: string
|
|
31275
31275
|
description: A human-readable error message.
|
|
31276
31276
|
example: The MFA challenge has failed.
|
|
31277
|
+
radar_detection_id:
|
|
31278
|
+
type: string
|
|
31279
|
+
description: >-
|
|
31280
|
+
The ID of the Radar detection that blocked the
|
|
31281
|
+
authentication. Only set on `policy_denied` errors.
|
|
31282
|
+
example: detection_01HZBC6N1EB1ZY7KG32X
|
|
31277
31283
|
required:
|
|
31278
31284
|
- code
|
|
31279
31285
|
- message
|
|
@@ -31420,6 +31426,12 @@ components:
|
|
|
31420
31426
|
type: string
|
|
31421
31427
|
description: A human-readable error message.
|
|
31422
31428
|
example: The MFA challenge has failed.
|
|
31429
|
+
radar_detection_id:
|
|
31430
|
+
type: string
|
|
31431
|
+
description: >-
|
|
31432
|
+
The ID of the Radar detection that blocked the
|
|
31433
|
+
authentication. Only set on `policy_denied` errors.
|
|
31434
|
+
example: detection_01HZBC6N1EB1ZY7KG32X
|
|
31423
31435
|
required:
|
|
31424
31436
|
- code
|
|
31425
31437
|
- message
|
|
@@ -31566,6 +31578,12 @@ components:
|
|
|
31566
31578
|
type: string
|
|
31567
31579
|
description: A human-readable error message.
|
|
31568
31580
|
example: The MFA challenge has failed.
|
|
31581
|
+
radar_detection_id:
|
|
31582
|
+
type: string
|
|
31583
|
+
description: >-
|
|
31584
|
+
The ID of the Radar detection that blocked the
|
|
31585
|
+
authentication. Only set on `policy_denied` errors.
|
|
31586
|
+
example: detection_01HZBC6N1EB1ZY7KG32X
|
|
31569
31587
|
required:
|
|
31570
31588
|
- code
|
|
31571
31589
|
- message
|
|
@@ -31712,6 +31730,12 @@ components:
|
|
|
31712
31730
|
type: string
|
|
31713
31731
|
description: A human-readable error message.
|
|
31714
31732
|
example: The MFA challenge has failed.
|
|
31733
|
+
radar_detection_id:
|
|
31734
|
+
type: string
|
|
31735
|
+
description: >-
|
|
31736
|
+
The ID of the Radar detection that blocked the
|
|
31737
|
+
authentication. Only set on `policy_denied` errors.
|
|
31738
|
+
example: detection_01HZBC6N1EB1ZY7KG32X
|
|
31715
31739
|
required:
|
|
31716
31740
|
- code
|
|
31717
31741
|
- message
|
|
@@ -31868,6 +31892,12 @@ components:
|
|
|
31868
31892
|
type: string
|
|
31869
31893
|
description: A human-readable error message.
|
|
31870
31894
|
example: The MFA challenge has failed.
|
|
31895
|
+
radar_detection_id:
|
|
31896
|
+
type: string
|
|
31897
|
+
description: >-
|
|
31898
|
+
The ID of the Radar detection that blocked the
|
|
31899
|
+
authentication. Only set on `policy_denied` errors.
|
|
31900
|
+
example: detection_01HZBC6N1EB1ZY7KG32X
|
|
31871
31901
|
required:
|
|
31872
31902
|
- code
|
|
31873
31903
|
- message
|
|
@@ -32014,6 +32044,12 @@ components:
|
|
|
32014
32044
|
type: string
|
|
32015
32045
|
description: A human-readable error message.
|
|
32016
32046
|
example: The MFA challenge has failed.
|
|
32047
|
+
radar_detection_id:
|
|
32048
|
+
type: string
|
|
32049
|
+
description: >-
|
|
32050
|
+
The ID of the Radar detection that blocked the
|
|
32051
|
+
authentication. Only set on `policy_denied` errors.
|
|
32052
|
+
example: detection_01HZBC6N1EB1ZY7KG32X
|
|
32017
32053
|
required:
|
|
32018
32054
|
- code
|
|
32019
32055
|
- message
|
|
@@ -32160,6 +32196,12 @@ components:
|
|
|
32160
32196
|
type: string
|
|
32161
32197
|
description: The email address of the user.
|
|
32162
32198
|
example: user@example.com
|
|
32199
|
+
radar_detection_id:
|
|
32200
|
+
type: string
|
|
32201
|
+
description: >-
|
|
32202
|
+
The ID of the Radar detection that challenged the
|
|
32203
|
+
authentication.
|
|
32204
|
+
example: detection_01HZBC6N1EB1ZY7KG32X
|
|
32163
32205
|
required:
|
|
32164
32206
|
- auth_method
|
|
32165
32207
|
- action
|
|
@@ -32329,6 +32371,12 @@ components:
|
|
|
32329
32371
|
type: string
|
|
32330
32372
|
description: A human-readable error message.
|
|
32331
32373
|
example: The MFA challenge has failed.
|
|
32374
|
+
radar_detection_id:
|
|
32375
|
+
type: string
|
|
32376
|
+
description: >-
|
|
32377
|
+
The ID of the Radar detection that blocked the
|
|
32378
|
+
authentication. Only set on `policy_denied` errors.
|
|
32379
|
+
example: detection_01HZBC6N1EB1ZY7KG32X
|
|
32332
32380
|
required:
|
|
32333
32381
|
- code
|
|
32334
32382
|
- message
|
|
@@ -32625,6 +32673,12 @@ components:
|
|
|
32625
32673
|
type: string
|
|
32626
32674
|
description: A human-readable error message.
|
|
32627
32675
|
example: The MFA challenge has failed.
|
|
32676
|
+
radar_detection_id:
|
|
32677
|
+
type: string
|
|
32678
|
+
description: >-
|
|
32679
|
+
The ID of the Radar detection that blocked the
|
|
32680
|
+
authentication. Only set on `policy_denied` errors.
|
|
32681
|
+
example: detection_01HZBC6N1EB1ZY7KG32X
|
|
32628
32682
|
required:
|
|
32629
32683
|
- code
|
|
32630
32684
|
- message
|
|
@@ -44659,7 +44713,7 @@ components:
|
|
|
44659
44713
|
properties:
|
|
44660
44714
|
token:
|
|
44661
44715
|
type: string
|
|
44662
|
-
description: The
|
|
44716
|
+
description: The Widgets API token.
|
|
44663
44717
|
example: eyJhbGciOiJSUzI1NiIsImtpZCI6InNlc3Npb24...
|
|
44664
44718
|
required:
|
|
44665
44719
|
- token
|
package/dist/types.d.ts
CHANGED
|
@@ -1141,8 +1141,8 @@ export interface paths {
|
|
|
1141
1141
|
get?: never;
|
|
1142
1142
|
put?: never;
|
|
1143
1143
|
/**
|
|
1144
|
-
* Generate a
|
|
1145
|
-
* @description Generate a short-lived, session-bound token for the
|
|
1144
|
+
* Generate a Widgets API token
|
|
1145
|
+
* @description Generate a short-lived, session-bound token for the Widgets API, scoped to an organization and user.
|
|
1146
1146
|
*/
|
|
1147
1147
|
post: operations["ClientApiTokenController_issueClientApiToken"];
|
|
1148
1148
|
delete?: never;
|
|
@@ -6508,12 +6508,12 @@ export interface components {
|
|
|
6508
6508
|
};
|
|
6509
6509
|
ClientApiTokenDto: {
|
|
6510
6510
|
/**
|
|
6511
|
-
* @description The ID of the organization to scope the
|
|
6511
|
+
* @description The ID of the organization to scope the Widgets API token to.
|
|
6512
6512
|
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
6513
6513
|
*/
|
|
6514
6514
|
organization_id: string;
|
|
6515
6515
|
/**
|
|
6516
|
-
* @description The ID of the user to issue the
|
|
6516
|
+
* @description The ID of the user to issue the Widgets API token for.
|
|
6517
6517
|
* @example user_01E4ZCR3C56J083X43JQXF3JK5
|
|
6518
6518
|
*/
|
|
6519
6519
|
user_id: string;
|
|
@@ -12704,6 +12704,11 @@ export interface components {
|
|
|
12704
12704
|
* @example The MFA challenge has failed.
|
|
12705
12705
|
*/
|
|
12706
12706
|
message: string;
|
|
12707
|
+
/**
|
|
12708
|
+
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
12709
|
+
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
12710
|
+
*/
|
|
12711
|
+
radar_detection_id?: string;
|
|
12707
12712
|
};
|
|
12708
12713
|
};
|
|
12709
12714
|
/**
|
|
@@ -12811,6 +12816,11 @@ export interface components {
|
|
|
12811
12816
|
* @example The MFA challenge has failed.
|
|
12812
12817
|
*/
|
|
12813
12818
|
message: string;
|
|
12819
|
+
/**
|
|
12820
|
+
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
12821
|
+
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
12822
|
+
*/
|
|
12823
|
+
radar_detection_id?: string;
|
|
12814
12824
|
};
|
|
12815
12825
|
};
|
|
12816
12826
|
/**
|
|
@@ -12918,6 +12928,11 @@ export interface components {
|
|
|
12918
12928
|
* @example The MFA challenge has failed.
|
|
12919
12929
|
*/
|
|
12920
12930
|
message: string;
|
|
12931
|
+
/**
|
|
12932
|
+
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
12933
|
+
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
12934
|
+
*/
|
|
12935
|
+
radar_detection_id?: string;
|
|
12921
12936
|
};
|
|
12922
12937
|
};
|
|
12923
12938
|
/**
|
|
@@ -13025,6 +13040,11 @@ export interface components {
|
|
|
13025
13040
|
* @example The MFA challenge has failed.
|
|
13026
13041
|
*/
|
|
13027
13042
|
message: string;
|
|
13043
|
+
/**
|
|
13044
|
+
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
13045
|
+
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13046
|
+
*/
|
|
13047
|
+
radar_detection_id?: string;
|
|
13028
13048
|
};
|
|
13029
13049
|
/**
|
|
13030
13050
|
* @description The OAuth provider used for authentication.
|
|
@@ -13142,6 +13162,11 @@ export interface components {
|
|
|
13142
13162
|
* @example The MFA challenge has failed.
|
|
13143
13163
|
*/
|
|
13144
13164
|
message: string;
|
|
13165
|
+
/**
|
|
13166
|
+
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
13167
|
+
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13168
|
+
*/
|
|
13169
|
+
radar_detection_id?: string;
|
|
13145
13170
|
};
|
|
13146
13171
|
};
|
|
13147
13172
|
/**
|
|
@@ -13249,6 +13274,11 @@ export interface components {
|
|
|
13249
13274
|
* @example The MFA challenge has failed.
|
|
13250
13275
|
*/
|
|
13251
13276
|
message: string;
|
|
13277
|
+
/**
|
|
13278
|
+
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
13279
|
+
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13280
|
+
*/
|
|
13281
|
+
radar_detection_id?: string;
|
|
13252
13282
|
};
|
|
13253
13283
|
};
|
|
13254
13284
|
/**
|
|
@@ -13357,6 +13387,11 @@ export interface components {
|
|
|
13357
13387
|
* @example user@example.com
|
|
13358
13388
|
*/
|
|
13359
13389
|
email: string;
|
|
13390
|
+
/**
|
|
13391
|
+
* @description The ID of the Radar detection that challenged the authentication.
|
|
13392
|
+
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13393
|
+
*/
|
|
13394
|
+
radar_detection_id?: string;
|
|
13360
13395
|
};
|
|
13361
13396
|
/**
|
|
13362
13397
|
* Format: date-time
|
|
@@ -13481,6 +13516,11 @@ export interface components {
|
|
|
13481
13516
|
* @example The MFA challenge has failed.
|
|
13482
13517
|
*/
|
|
13483
13518
|
message: string;
|
|
13519
|
+
/**
|
|
13520
|
+
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
13521
|
+
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13522
|
+
*/
|
|
13523
|
+
radar_detection_id?: string;
|
|
13484
13524
|
};
|
|
13485
13525
|
};
|
|
13486
13526
|
/**
|
|
@@ -13689,6 +13729,11 @@ export interface components {
|
|
|
13689
13729
|
* @example The MFA challenge has failed.
|
|
13690
13730
|
*/
|
|
13691
13731
|
message: string;
|
|
13732
|
+
/**
|
|
13733
|
+
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
13734
|
+
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13735
|
+
*/
|
|
13736
|
+
radar_detection_id?: string;
|
|
13692
13737
|
};
|
|
13693
13738
|
};
|
|
13694
13739
|
/**
|
|
@@ -22769,7 +22814,7 @@ export interface components {
|
|
|
22769
22814
|
};
|
|
22770
22815
|
ClientApiTokenResponse: {
|
|
22771
22816
|
/**
|
|
22772
|
-
* @description The
|
|
22817
|
+
* @description The Widgets API token.
|
|
22773
22818
|
* @example eyJhbGciOiJSUzI1NiIsImtpZCI6InNlc3Npb24...
|
|
22774
22819
|
*/
|
|
22775
22820
|
token: string;
|