@workos/openapi-spec 0.133.0 → 0.134.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 +54 -0
- package/dist/types.d.ts +41 -0
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -17745,6 +17745,25 @@ paths:
|
|
|
17745
17745
|
responses:
|
|
17746
17746
|
'204':
|
|
17747
17747
|
description: No Content
|
|
17748
|
+
'402':
|
|
17749
|
+
description: ''
|
|
17750
|
+
content:
|
|
17751
|
+
application/json:
|
|
17752
|
+
schema:
|
|
17753
|
+
type: object
|
|
17754
|
+
properties:
|
|
17755
|
+
code:
|
|
17756
|
+
type: string
|
|
17757
|
+
description: The error code identifying the type of error.
|
|
17758
|
+
example: production_feature_requires_billing
|
|
17759
|
+
const: production_feature_requires_billing
|
|
17760
|
+
message:
|
|
17761
|
+
type: string
|
|
17762
|
+
description: A human-readable description of the error.
|
|
17763
|
+
example: Request could not be processed.
|
|
17764
|
+
required:
|
|
17765
|
+
- code
|
|
17766
|
+
- message
|
|
17748
17767
|
'403':
|
|
17749
17768
|
description: Forbidden
|
|
17750
17769
|
content:
|
|
@@ -28421,6 +28440,18 @@ components:
|
|
|
28421
28440
|
- 'null'
|
|
28422
28441
|
items:
|
|
28423
28442
|
$ref: '#/components/schemas/RedirectUriDto'
|
|
28443
|
+
cors_origins:
|
|
28444
|
+
description: >-
|
|
28445
|
+
Origins allowed to call the OAuth token endpoint for this
|
|
28446
|
+
application from a browser.
|
|
28447
|
+
example:
|
|
28448
|
+
- https://app.example.com
|
|
28449
|
+
maxItems: 1000
|
|
28450
|
+
type:
|
|
28451
|
+
- array
|
|
28452
|
+
- 'null'
|
|
28453
|
+
items:
|
|
28454
|
+
type: string
|
|
28424
28455
|
uses_pkce:
|
|
28425
28456
|
type:
|
|
28426
28457
|
- boolean
|
|
@@ -28512,6 +28543,19 @@ components:
|
|
|
28512
28543
|
- 'null'
|
|
28513
28544
|
items:
|
|
28514
28545
|
$ref: '#/components/schemas/RedirectUriDto'
|
|
28546
|
+
cors_origins:
|
|
28547
|
+
description: >-
|
|
28548
|
+
Updated origins allowed to call the OAuth token endpoint for this
|
|
28549
|
+
application from a browser. Replaces the existing list. OAuth
|
|
28550
|
+
applications only.
|
|
28551
|
+
example:
|
|
28552
|
+
- https://app.example.com
|
|
28553
|
+
maxItems: 1000
|
|
28554
|
+
type:
|
|
28555
|
+
- array
|
|
28556
|
+
- 'null'
|
|
28557
|
+
items:
|
|
28558
|
+
type: string
|
|
28515
28559
|
CreateApplicationSecretDto:
|
|
28516
28560
|
type: object
|
|
28517
28561
|
properties: {}
|
|
@@ -33198,6 +33242,15 @@ components:
|
|
|
33198
33242
|
- uri
|
|
33199
33243
|
- default
|
|
33200
33244
|
description: The redirect URIs configured for this application.
|
|
33245
|
+
cors_origins:
|
|
33246
|
+
type: array
|
|
33247
|
+
items:
|
|
33248
|
+
type: string
|
|
33249
|
+
description: >-
|
|
33250
|
+
The CORS origins allowed to call the OAuth token
|
|
33251
|
+
endpoint for this application from a browser.
|
|
33252
|
+
example:
|
|
33253
|
+
- https://app.example.com
|
|
33201
33254
|
uses_pkce:
|
|
33202
33255
|
type: boolean
|
|
33203
33256
|
description: Whether the application uses PKCE for authorization.
|
|
@@ -33205,6 +33258,7 @@ components:
|
|
|
33205
33258
|
required:
|
|
33206
33259
|
- application_type
|
|
33207
33260
|
- redirect_uris
|
|
33261
|
+
- cors_origins
|
|
33208
33262
|
- uses_pkce
|
|
33209
33263
|
- oneOf:
|
|
33210
33264
|
- type: object
|
package/dist/types.d.ts
CHANGED
|
@@ -4187,6 +4187,13 @@ export interface components {
|
|
|
4187
4187
|
* ]
|
|
4188
4188
|
*/
|
|
4189
4189
|
redirect_uris?: components["schemas"]["RedirectUriDto"][] | null;
|
|
4190
|
+
/**
|
|
4191
|
+
* @description Origins allowed to call the OAuth token endpoint for this application from a browser.
|
|
4192
|
+
* @example [
|
|
4193
|
+
* "https://app.example.com"
|
|
4194
|
+
* ]
|
|
4195
|
+
*/
|
|
4196
|
+
cors_origins?: string[] | null;
|
|
4190
4197
|
/**
|
|
4191
4198
|
* @description Whether the application uses PKCE (Proof Key for Code Exchange).
|
|
4192
4199
|
* @example true
|
|
@@ -4264,6 +4271,13 @@ export interface components {
|
|
|
4264
4271
|
* ]
|
|
4265
4272
|
*/
|
|
4266
4273
|
redirect_uris?: components["schemas"]["RedirectUriDto"][] | null;
|
|
4274
|
+
/**
|
|
4275
|
+
* @description Updated origins allowed to call the OAuth token endpoint for this application from a browser. Replaces the existing list. OAuth applications only.
|
|
4276
|
+
* @example [
|
|
4277
|
+
* "https://app.example.com"
|
|
4278
|
+
* ]
|
|
4279
|
+
*/
|
|
4280
|
+
cors_origins?: string[] | null;
|
|
4267
4281
|
};
|
|
4268
4282
|
CreateApplicationSecretDto: Record<string, never>;
|
|
4269
4283
|
AuditLogEventActorDto: {
|
|
@@ -7340,6 +7354,13 @@ export interface components {
|
|
|
7340
7354
|
*/
|
|
7341
7355
|
default: boolean;
|
|
7342
7356
|
}[];
|
|
7357
|
+
/**
|
|
7358
|
+
* @description The CORS origins allowed to call the OAuth token endpoint for this application from a browser.
|
|
7359
|
+
* @example [
|
|
7360
|
+
* "https://app.example.com"
|
|
7361
|
+
* ]
|
|
7362
|
+
*/
|
|
7363
|
+
cors_origins: string[];
|
|
7343
7364
|
/**
|
|
7344
7365
|
* @description Whether the application uses PKCE for authorization.
|
|
7345
7366
|
* @example true
|
|
@@ -36254,6 +36275,26 @@ export interface operations {
|
|
|
36254
36275
|
};
|
|
36255
36276
|
content?: never;
|
|
36256
36277
|
};
|
|
36278
|
+
402: {
|
|
36279
|
+
headers: {
|
|
36280
|
+
[name: string]: unknown;
|
|
36281
|
+
};
|
|
36282
|
+
content: {
|
|
36283
|
+
"application/json": {
|
|
36284
|
+
/**
|
|
36285
|
+
* @description The error code identifying the type of error.
|
|
36286
|
+
* @example production_feature_requires_billing
|
|
36287
|
+
* @constant
|
|
36288
|
+
*/
|
|
36289
|
+
code: "production_feature_requires_billing";
|
|
36290
|
+
/**
|
|
36291
|
+
* @description A human-readable description of the error.
|
|
36292
|
+
* @example Request could not be processed.
|
|
36293
|
+
*/
|
|
36294
|
+
message: string;
|
|
36295
|
+
};
|
|
36296
|
+
};
|
|
36297
|
+
};
|
|
36257
36298
|
/** @description Forbidden */
|
|
36258
36299
|
403: {
|
|
36259
36300
|
headers: {
|