@workos/openapi-spec 0.35.0 → 0.36.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 +67 -4
- package/dist/services.mjs +5 -0
- package/dist/types.d.ts +105 -4
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -15433,7 +15433,7 @@ paths:
|
|
|
15433
15433
|
$ref: '#/components/schemas/RedirectUri'
|
|
15434
15434
|
example:
|
|
15435
15435
|
object: redirect_uri
|
|
15436
|
-
id:
|
|
15436
|
+
id: redir_01EHZNVPK3SFK441A1RGBFSHRT
|
|
15437
15437
|
uri: https://example.com/callback
|
|
15438
15438
|
default: true
|
|
15439
15439
|
created_at: '2026-01-15T12:00:00.000Z'
|
|
@@ -15560,7 +15560,7 @@ paths:
|
|
|
15560
15560
|
An object ID that defines your place in the list.
|
|
15561
15561
|
When the ID is not present, you are at the start
|
|
15562
15562
|
of the list.
|
|
15563
|
-
example:
|
|
15563
|
+
example: redir_01HXYZ123456789ABCDEFGHIJ
|
|
15564
15564
|
after:
|
|
15565
15565
|
type:
|
|
15566
15566
|
- string
|
|
@@ -15569,7 +15569,7 @@ paths:
|
|
|
15569
15569
|
An object ID that defines your place in the list.
|
|
15570
15570
|
When the ID is not present, you are at the end of
|
|
15571
15571
|
the list.
|
|
15572
|
-
example:
|
|
15572
|
+
example: redir_01HXYZ987654321KJIHGFEDCBA
|
|
15573
15573
|
required:
|
|
15574
15574
|
- before
|
|
15575
15575
|
- after
|
|
@@ -15601,6 +15601,69 @@ paths:
|
|
|
15601
15601
|
summary: List redirect URIs
|
|
15602
15602
|
tags:
|
|
15603
15603
|
- user-management.redirect-uris
|
|
15604
|
+
/user_management/redirect_uris/{id}:
|
|
15605
|
+
delete:
|
|
15606
|
+
description: Deletes a redirect URI from an application.
|
|
15607
|
+
operationId: RedirectUrisController_delete
|
|
15608
|
+
parameters:
|
|
15609
|
+
- name: id
|
|
15610
|
+
required: true
|
|
15611
|
+
in: path
|
|
15612
|
+
description: The ID of the redirect URI to delete.
|
|
15613
|
+
schema:
|
|
15614
|
+
type: string
|
|
15615
|
+
example: redir_01EHZNVPK3SFK441A1RGBFSHRT
|
|
15616
|
+
responses:
|
|
15617
|
+
'204':
|
|
15618
|
+
description: Redirect URI deleted successfully.
|
|
15619
|
+
'401':
|
|
15620
|
+
description: Unauthorized
|
|
15621
|
+
content:
|
|
15622
|
+
application/json:
|
|
15623
|
+
schema:
|
|
15624
|
+
type: object
|
|
15625
|
+
properties:
|
|
15626
|
+
message:
|
|
15627
|
+
type: string
|
|
15628
|
+
description: A human-readable description of the error.
|
|
15629
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
15630
|
+
required:
|
|
15631
|
+
- message
|
|
15632
|
+
example:
|
|
15633
|
+
message: Unauthorized
|
|
15634
|
+
'404':
|
|
15635
|
+
description: Redirect URI not found.
|
|
15636
|
+
content:
|
|
15637
|
+
application/json:
|
|
15638
|
+
schema:
|
|
15639
|
+
type: object
|
|
15640
|
+
properties:
|
|
15641
|
+
message:
|
|
15642
|
+
type: string
|
|
15643
|
+
description: A human-readable description of the error.
|
|
15644
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
15645
|
+
required:
|
|
15646
|
+
- message
|
|
15647
|
+
example:
|
|
15648
|
+
message: 'Redirect URI not found: ''redir_01EHZNVPK3SFK441A1RGBFSHRT''.'
|
|
15649
|
+
'409':
|
|
15650
|
+
description: The redirect URI is the default and cannot be deleted.
|
|
15651
|
+
content:
|
|
15652
|
+
application/json:
|
|
15653
|
+
schema:
|
|
15654
|
+
type: object
|
|
15655
|
+
properties:
|
|
15656
|
+
message:
|
|
15657
|
+
type: string
|
|
15658
|
+
description: A human-readable description of the error.
|
|
15659
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
15660
|
+
required:
|
|
15661
|
+
- message
|
|
15662
|
+
example:
|
|
15663
|
+
message: Cannot delete the default redirect URI.
|
|
15664
|
+
summary: Delete a redirect URI
|
|
15665
|
+
tags:
|
|
15666
|
+
- user-management.redirect-uris
|
|
15604
15667
|
/user_management/sessions/logout:
|
|
15605
15668
|
get:
|
|
15606
15669
|
description: Logout a user from the current [session](/reference/authkit/session).
|
|
@@ -35849,7 +35912,7 @@ components:
|
|
|
35849
35912
|
id:
|
|
35850
35913
|
type: string
|
|
35851
35914
|
description: The ID of the redirect URI.
|
|
35852
|
-
example:
|
|
35915
|
+
example: redir_01EHZNVPK3SFK441A1RGBFSHRT
|
|
35853
35916
|
uri:
|
|
35854
35917
|
type: string
|
|
35855
35918
|
description: The redirect URI.
|
package/dist/services.mjs
CHANGED
|
@@ -922,6 +922,11 @@ const serviceEndpoints = {
|
|
|
922
922
|
"path": "/user_management/redirect_uris",
|
|
923
923
|
"name": "create_redirect_uri"
|
|
924
924
|
},
|
|
925
|
+
{
|
|
926
|
+
"method": "DELETE",
|
|
927
|
+
"path": "/user_management/redirect_uris/{id}",
|
|
928
|
+
"name": "delete_redirect_uris"
|
|
929
|
+
},
|
|
925
930
|
{
|
|
926
931
|
"method": "GET",
|
|
927
932
|
"path": "/user_management/sessions/logout",
|
package/dist/types.d.ts
CHANGED
|
@@ -2539,6 +2539,26 @@ export interface paths {
|
|
|
2539
2539
|
patch?: never;
|
|
2540
2540
|
trace?: never;
|
|
2541
2541
|
};
|
|
2542
|
+
"/user_management/redirect_uris/{id}": {
|
|
2543
|
+
parameters: {
|
|
2544
|
+
query?: never;
|
|
2545
|
+
header?: never;
|
|
2546
|
+
path?: never;
|
|
2547
|
+
cookie?: never;
|
|
2548
|
+
};
|
|
2549
|
+
get?: never;
|
|
2550
|
+
put?: never;
|
|
2551
|
+
post?: never;
|
|
2552
|
+
/**
|
|
2553
|
+
* Delete a redirect URI
|
|
2554
|
+
* @description Deletes a redirect URI from an application.
|
|
2555
|
+
*/
|
|
2556
|
+
delete: operations["RedirectUrisController_delete"];
|
|
2557
|
+
options?: never;
|
|
2558
|
+
head?: never;
|
|
2559
|
+
patch?: never;
|
|
2560
|
+
trace?: never;
|
|
2561
|
+
};
|
|
2542
2562
|
"/user_management/sessions/logout": {
|
|
2543
2563
|
parameters: {
|
|
2544
2564
|
query?: never;
|
|
@@ -15750,7 +15770,7 @@ export interface components {
|
|
|
15750
15770
|
object: "redirect_uri";
|
|
15751
15771
|
/**
|
|
15752
15772
|
* @description The ID of the redirect URI.
|
|
15753
|
-
* @example
|
|
15773
|
+
* @example redir_01EHZNVPK3SFK441A1RGBFSHRT
|
|
15754
15774
|
*/
|
|
15755
15775
|
id: string;
|
|
15756
15776
|
/**
|
|
@@ -30316,12 +30336,12 @@ export interface operations {
|
|
|
30316
30336
|
list_metadata?: {
|
|
30317
30337
|
/**
|
|
30318
30338
|
* @description An object ID that defines your place in the list. When the ID is not present, you are at the start of the list.
|
|
30319
|
-
* @example
|
|
30339
|
+
* @example redir_01HXYZ123456789ABCDEFGHIJ
|
|
30320
30340
|
*/
|
|
30321
30341
|
before: string | null;
|
|
30322
30342
|
/**
|
|
30323
30343
|
* @description An object ID that defines your place in the list. When the ID is not present, you are at the end of the list.
|
|
30324
|
-
* @example
|
|
30344
|
+
* @example redir_01HXYZ987654321KJIHGFEDCBA
|
|
30325
30345
|
*/
|
|
30326
30346
|
after: string | null;
|
|
30327
30347
|
};
|
|
@@ -30375,7 +30395,7 @@ export interface operations {
|
|
|
30375
30395
|
/**
|
|
30376
30396
|
* @example {
|
|
30377
30397
|
* "object": "redirect_uri",
|
|
30378
|
-
* "id": "
|
|
30398
|
+
* "id": "redir_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
30379
30399
|
* "uri": "https://example.com/callback",
|
|
30380
30400
|
* "default": true,
|
|
30381
30401
|
* "created_at": "2026-01-15T12:00:00.000Z",
|
|
@@ -30447,6 +30467,87 @@ export interface operations {
|
|
|
30447
30467
|
};
|
|
30448
30468
|
};
|
|
30449
30469
|
};
|
|
30470
|
+
RedirectUrisController_delete: {
|
|
30471
|
+
parameters: {
|
|
30472
|
+
query?: never;
|
|
30473
|
+
header?: never;
|
|
30474
|
+
path: {
|
|
30475
|
+
/** @description The ID of the redirect URI to delete. */
|
|
30476
|
+
id: string;
|
|
30477
|
+
};
|
|
30478
|
+
cookie?: never;
|
|
30479
|
+
};
|
|
30480
|
+
requestBody?: never;
|
|
30481
|
+
responses: {
|
|
30482
|
+
/** @description Redirect URI deleted successfully. */
|
|
30483
|
+
204: {
|
|
30484
|
+
headers: {
|
|
30485
|
+
[name: string]: unknown;
|
|
30486
|
+
};
|
|
30487
|
+
content?: never;
|
|
30488
|
+
};
|
|
30489
|
+
/** @description Unauthorized */
|
|
30490
|
+
401: {
|
|
30491
|
+
headers: {
|
|
30492
|
+
[name: string]: unknown;
|
|
30493
|
+
};
|
|
30494
|
+
content: {
|
|
30495
|
+
/**
|
|
30496
|
+
* @example {
|
|
30497
|
+
* "message": "Unauthorized"
|
|
30498
|
+
* }
|
|
30499
|
+
*/
|
|
30500
|
+
"application/json": {
|
|
30501
|
+
/**
|
|
30502
|
+
* @description A human-readable description of the error.
|
|
30503
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
30504
|
+
*/
|
|
30505
|
+
message: string;
|
|
30506
|
+
};
|
|
30507
|
+
};
|
|
30508
|
+
};
|
|
30509
|
+
/** @description Redirect URI not found. */
|
|
30510
|
+
404: {
|
|
30511
|
+
headers: {
|
|
30512
|
+
[name: string]: unknown;
|
|
30513
|
+
};
|
|
30514
|
+
content: {
|
|
30515
|
+
/**
|
|
30516
|
+
* @example {
|
|
30517
|
+
* "message": "Redirect URI not found: 'redir_01EHZNVPK3SFK441A1RGBFSHRT'."
|
|
30518
|
+
* }
|
|
30519
|
+
*/
|
|
30520
|
+
"application/json": {
|
|
30521
|
+
/**
|
|
30522
|
+
* @description A human-readable description of the error.
|
|
30523
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
30524
|
+
*/
|
|
30525
|
+
message: string;
|
|
30526
|
+
};
|
|
30527
|
+
};
|
|
30528
|
+
};
|
|
30529
|
+
/** @description The redirect URI is the default and cannot be deleted. */
|
|
30530
|
+
409: {
|
|
30531
|
+
headers: {
|
|
30532
|
+
[name: string]: unknown;
|
|
30533
|
+
};
|
|
30534
|
+
content: {
|
|
30535
|
+
/**
|
|
30536
|
+
* @example {
|
|
30537
|
+
* "message": "Cannot delete the default redirect URI."
|
|
30538
|
+
* }
|
|
30539
|
+
*/
|
|
30540
|
+
"application/json": {
|
|
30541
|
+
/**
|
|
30542
|
+
* @description A human-readable description of the error.
|
|
30543
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
30544
|
+
*/
|
|
30545
|
+
message: string;
|
|
30546
|
+
};
|
|
30547
|
+
};
|
|
30548
|
+
};
|
|
30549
|
+
};
|
|
30550
|
+
};
|
|
30450
30551
|
UserlandSessionsController_logout: {
|
|
30451
30552
|
parameters: {
|
|
30452
30553
|
query: {
|