@workos/openapi-spec 0.117.0 → 0.118.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 +158 -0
- package/dist/services.mjs +5 -0
- package/dist/types.d.ts +172 -0
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -12760,6 +12760,129 @@ paths:
|
|
|
12760
12760
|
summary: Delete a Directory
|
|
12761
12761
|
tags:
|
|
12762
12762
|
- directories
|
|
12763
|
+
/directories/{id}/sync:
|
|
12764
|
+
post:
|
|
12765
|
+
description: >-
|
|
12766
|
+
Request an asynchronous sync from the directory provider. Currently
|
|
12767
|
+
supports Google Workspace directories in linked or validating state.
|
|
12768
|
+
Manual requests share a five-minute per-directory cooldown across the
|
|
12769
|
+
API, Dashboard, Admin Portal, and MCP. Acceptance means the request was
|
|
12770
|
+
queued, not that the sync has started or completed. A running sync
|
|
12771
|
+
prevents another request from being queued.
|
|
12772
|
+
operationId: DirectoriesController_syncDirectory
|
|
12773
|
+
parameters:
|
|
12774
|
+
- name: id
|
|
12775
|
+
required: true
|
|
12776
|
+
in: path
|
|
12777
|
+
description: Unique identifier for the Directory.
|
|
12778
|
+
schema:
|
|
12779
|
+
example: directory_01ECAZ4NV9QMV47GW873HDCX74
|
|
12780
|
+
type: string
|
|
12781
|
+
responses:
|
|
12782
|
+
'202':
|
|
12783
|
+
description: ''
|
|
12784
|
+
content:
|
|
12785
|
+
application/json:
|
|
12786
|
+
schema:
|
|
12787
|
+
$ref: '#/components/schemas/DirectorySyncResponse'
|
|
12788
|
+
'403':
|
|
12789
|
+
description: Forbidden
|
|
12790
|
+
content:
|
|
12791
|
+
application/json:
|
|
12792
|
+
schema:
|
|
12793
|
+
type: object
|
|
12794
|
+
properties:
|
|
12795
|
+
message:
|
|
12796
|
+
type: string
|
|
12797
|
+
description: A human-readable description of the error.
|
|
12798
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
12799
|
+
required:
|
|
12800
|
+
- message
|
|
12801
|
+
'404':
|
|
12802
|
+
description: Not Found
|
|
12803
|
+
content:
|
|
12804
|
+
application/json:
|
|
12805
|
+
schema:
|
|
12806
|
+
type: object
|
|
12807
|
+
properties:
|
|
12808
|
+
message:
|
|
12809
|
+
type: string
|
|
12810
|
+
description: A human-readable description of the error.
|
|
12811
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
12812
|
+
required:
|
|
12813
|
+
- message
|
|
12814
|
+
'409':
|
|
12815
|
+
description: A sync is already in progress. No additional sync was queued.
|
|
12816
|
+
content:
|
|
12817
|
+
application/json:
|
|
12818
|
+
schema:
|
|
12819
|
+
type: object
|
|
12820
|
+
properties:
|
|
12821
|
+
code:
|
|
12822
|
+
type: string
|
|
12823
|
+
description: The error code identifying the type of error.
|
|
12824
|
+
example: directory_sync_in_progress
|
|
12825
|
+
const: directory_sync_in_progress
|
|
12826
|
+
message:
|
|
12827
|
+
type: string
|
|
12828
|
+
description: A human-readable description of the error.
|
|
12829
|
+
example: Request could not be processed.
|
|
12830
|
+
required:
|
|
12831
|
+
- code
|
|
12832
|
+
- message
|
|
12833
|
+
'422':
|
|
12834
|
+
description: The directory provider or state does not support manual sync.
|
|
12835
|
+
content:
|
|
12836
|
+
application/json:
|
|
12837
|
+
schema:
|
|
12838
|
+
type: object
|
|
12839
|
+
properties:
|
|
12840
|
+
code:
|
|
12841
|
+
type: string
|
|
12842
|
+
description: The error code identifying the type of error.
|
|
12843
|
+
example: directory_sync_unsupported
|
|
12844
|
+
const: directory_sync_unsupported
|
|
12845
|
+
message:
|
|
12846
|
+
type: string
|
|
12847
|
+
description: A human-readable description of the error.
|
|
12848
|
+
example: Request could not be processed.
|
|
12849
|
+
required:
|
|
12850
|
+
- code
|
|
12851
|
+
- message
|
|
12852
|
+
'429':
|
|
12853
|
+
description: The directory is within the manual-sync cooldown window.
|
|
12854
|
+
headers:
|
|
12855
|
+
Retry-After:
|
|
12856
|
+
description: Seconds to wait before requesting another manual sync.
|
|
12857
|
+
schema:
|
|
12858
|
+
type: integer
|
|
12859
|
+
minimum: 1
|
|
12860
|
+
content:
|
|
12861
|
+
application/json:
|
|
12862
|
+
schema:
|
|
12863
|
+
$ref: '#/components/schemas/DirectorySyncRateLimitError'
|
|
12864
|
+
'503':
|
|
12865
|
+
description: Directory syncing is temporarily paused. No sync was queued.
|
|
12866
|
+
content:
|
|
12867
|
+
application/json:
|
|
12868
|
+
schema:
|
|
12869
|
+
type: object
|
|
12870
|
+
properties:
|
|
12871
|
+
code:
|
|
12872
|
+
type: string
|
|
12873
|
+
description: The error code identifying the type of error.
|
|
12874
|
+
example: directory_sync_disabled
|
|
12875
|
+
const: directory_sync_disabled
|
|
12876
|
+
message:
|
|
12877
|
+
type: string
|
|
12878
|
+
description: A human-readable description of the error.
|
|
12879
|
+
example: Request could not be processed.
|
|
12880
|
+
required:
|
|
12881
|
+
- code
|
|
12882
|
+
- message
|
|
12883
|
+
summary: Sync a Directory
|
|
12884
|
+
tags:
|
|
12885
|
+
- directories
|
|
12763
12886
|
/directory_groups:
|
|
12764
12887
|
get:
|
|
12765
12888
|
description: >-
|
|
@@ -33570,6 +33693,41 @@ components:
|
|
|
33570
33693
|
- data
|
|
33571
33694
|
- list_metadata
|
|
33572
33695
|
- list_metadata
|
|
33696
|
+
DirectorySyncResponse:
|
|
33697
|
+
type: object
|
|
33698
|
+
properties:
|
|
33699
|
+
status:
|
|
33700
|
+
type: string
|
|
33701
|
+
description: >-
|
|
33702
|
+
The sync request was queued for asynchronous processing. This does
|
|
33703
|
+
not indicate that the sync has started or completed.
|
|
33704
|
+
example: queued
|
|
33705
|
+
const: queued
|
|
33706
|
+
required:
|
|
33707
|
+
- status
|
|
33708
|
+
DirectorySyncRateLimitError:
|
|
33709
|
+
type: object
|
|
33710
|
+
properties:
|
|
33711
|
+
code:
|
|
33712
|
+
type: string
|
|
33713
|
+
description: The error code identifying the type of error.
|
|
33714
|
+
example: directory_sync_rate_limited
|
|
33715
|
+
const: directory_sync_rate_limited
|
|
33716
|
+
message:
|
|
33717
|
+
type: string
|
|
33718
|
+
description: A human-readable description of the error.
|
|
33719
|
+
example: Request could not be processed.
|
|
33720
|
+
retry_after_seconds:
|
|
33721
|
+
type: integer
|
|
33722
|
+
exclusiveMinimum: 0
|
|
33723
|
+
description: >-
|
|
33724
|
+
The number of seconds to wait before requesting another manual sync
|
|
33725
|
+
of this directory.
|
|
33726
|
+
example: 120
|
|
33727
|
+
required:
|
|
33728
|
+
- code
|
|
33729
|
+
- message
|
|
33730
|
+
- retry_after_seconds
|
|
33573
33731
|
DirectoryGroup:
|
|
33574
33732
|
type: object
|
|
33575
33733
|
properties:
|
package/dist/services.mjs
CHANGED
|
@@ -477,6 +477,11 @@ const serviceEndpoints = {
|
|
|
477
477
|
"path": "/directories/{id}",
|
|
478
478
|
"name": "get_directory"
|
|
479
479
|
},
|
|
480
|
+
{
|
|
481
|
+
"method": "POST",
|
|
482
|
+
"path": "/directories/{id}/sync",
|
|
483
|
+
"name": "create_directory_sync"
|
|
484
|
+
},
|
|
480
485
|
{
|
|
481
486
|
"method": "GET",
|
|
482
487
|
"path": "/directory_groups",
|
package/dist/types.d.ts
CHANGED
|
@@ -1641,6 +1641,26 @@ export interface paths {
|
|
|
1641
1641
|
patch?: never;
|
|
1642
1642
|
trace?: never;
|
|
1643
1643
|
};
|
|
1644
|
+
"/directories/{id}/sync": {
|
|
1645
|
+
parameters: {
|
|
1646
|
+
query?: never;
|
|
1647
|
+
header?: never;
|
|
1648
|
+
path?: never;
|
|
1649
|
+
cookie?: never;
|
|
1650
|
+
};
|
|
1651
|
+
get?: never;
|
|
1652
|
+
put?: never;
|
|
1653
|
+
/**
|
|
1654
|
+
* Sync a Directory
|
|
1655
|
+
* @description Request an asynchronous sync from the directory provider. Currently supports Google Workspace directories in linked or validating state. Manual requests share a five-minute per-directory cooldown across the API, Dashboard, Admin Portal, and MCP. Acceptance means the request was queued, not that the sync has started or completed. A running sync prevents another request from being queued.
|
|
1656
|
+
*/
|
|
1657
|
+
post: operations["DirectoriesController_syncDirectory"];
|
|
1658
|
+
delete?: never;
|
|
1659
|
+
options?: never;
|
|
1660
|
+
head?: never;
|
|
1661
|
+
patch?: never;
|
|
1662
|
+
trace?: never;
|
|
1663
|
+
};
|
|
1644
1664
|
"/directory_groups": {
|
|
1645
1665
|
parameters: {
|
|
1646
1666
|
query?: never;
|
|
@@ -8565,6 +8585,32 @@ export interface components {
|
|
|
8565
8585
|
after: string | null;
|
|
8566
8586
|
};
|
|
8567
8587
|
};
|
|
8588
|
+
DirectorySyncResponse: {
|
|
8589
|
+
/**
|
|
8590
|
+
* @description The sync request was queued for asynchronous processing. This does not indicate that the sync has started or completed.
|
|
8591
|
+
* @example queued
|
|
8592
|
+
* @constant
|
|
8593
|
+
*/
|
|
8594
|
+
status: "queued";
|
|
8595
|
+
};
|
|
8596
|
+
DirectorySyncRateLimitError: {
|
|
8597
|
+
/**
|
|
8598
|
+
* @description The error code identifying the type of error.
|
|
8599
|
+
* @example directory_sync_rate_limited
|
|
8600
|
+
* @constant
|
|
8601
|
+
*/
|
|
8602
|
+
code: "directory_sync_rate_limited";
|
|
8603
|
+
/**
|
|
8604
|
+
* @description A human-readable description of the error.
|
|
8605
|
+
* @example Request could not be processed.
|
|
8606
|
+
*/
|
|
8607
|
+
message: string;
|
|
8608
|
+
/**
|
|
8609
|
+
* @description The number of seconds to wait before requesting another manual sync of this directory.
|
|
8610
|
+
* @example 120
|
|
8611
|
+
*/
|
|
8612
|
+
retry_after_seconds: number;
|
|
8613
|
+
};
|
|
8568
8614
|
DirectoryGroup: {
|
|
8569
8615
|
/**
|
|
8570
8616
|
* @description Distinguishes the Directory Group object.
|
|
@@ -31464,6 +31510,132 @@ export interface operations {
|
|
|
31464
31510
|
};
|
|
31465
31511
|
};
|
|
31466
31512
|
};
|
|
31513
|
+
DirectoriesController_syncDirectory: {
|
|
31514
|
+
parameters: {
|
|
31515
|
+
query?: never;
|
|
31516
|
+
header?: never;
|
|
31517
|
+
path: {
|
|
31518
|
+
/** @description Unique identifier for the Directory. */
|
|
31519
|
+
id: string;
|
|
31520
|
+
};
|
|
31521
|
+
cookie?: never;
|
|
31522
|
+
};
|
|
31523
|
+
requestBody?: never;
|
|
31524
|
+
responses: {
|
|
31525
|
+
202: {
|
|
31526
|
+
headers: {
|
|
31527
|
+
[name: string]: unknown;
|
|
31528
|
+
};
|
|
31529
|
+
content: {
|
|
31530
|
+
"application/json": components["schemas"]["DirectorySyncResponse"];
|
|
31531
|
+
};
|
|
31532
|
+
};
|
|
31533
|
+
/** @description Forbidden */
|
|
31534
|
+
403: {
|
|
31535
|
+
headers: {
|
|
31536
|
+
[name: string]: unknown;
|
|
31537
|
+
};
|
|
31538
|
+
content: {
|
|
31539
|
+
"application/json": {
|
|
31540
|
+
/**
|
|
31541
|
+
* @description A human-readable description of the error.
|
|
31542
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
31543
|
+
*/
|
|
31544
|
+
message: string;
|
|
31545
|
+
};
|
|
31546
|
+
};
|
|
31547
|
+
};
|
|
31548
|
+
/** @description Not Found */
|
|
31549
|
+
404: {
|
|
31550
|
+
headers: {
|
|
31551
|
+
[name: string]: unknown;
|
|
31552
|
+
};
|
|
31553
|
+
content: {
|
|
31554
|
+
"application/json": {
|
|
31555
|
+
/**
|
|
31556
|
+
* @description A human-readable description of the error.
|
|
31557
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
31558
|
+
*/
|
|
31559
|
+
message: string;
|
|
31560
|
+
};
|
|
31561
|
+
};
|
|
31562
|
+
};
|
|
31563
|
+
/** @description A sync is already in progress. No additional sync was queued. */
|
|
31564
|
+
409: {
|
|
31565
|
+
headers: {
|
|
31566
|
+
[name: string]: unknown;
|
|
31567
|
+
};
|
|
31568
|
+
content: {
|
|
31569
|
+
"application/json": {
|
|
31570
|
+
/**
|
|
31571
|
+
* @description The error code identifying the type of error.
|
|
31572
|
+
* @example directory_sync_in_progress
|
|
31573
|
+
* @constant
|
|
31574
|
+
*/
|
|
31575
|
+
code: "directory_sync_in_progress";
|
|
31576
|
+
/**
|
|
31577
|
+
* @description A human-readable description of the error.
|
|
31578
|
+
* @example Request could not be processed.
|
|
31579
|
+
*/
|
|
31580
|
+
message: string;
|
|
31581
|
+
};
|
|
31582
|
+
};
|
|
31583
|
+
};
|
|
31584
|
+
/** @description The directory provider or state does not support manual sync. */
|
|
31585
|
+
422: {
|
|
31586
|
+
headers: {
|
|
31587
|
+
[name: string]: unknown;
|
|
31588
|
+
};
|
|
31589
|
+
content: {
|
|
31590
|
+
"application/json": {
|
|
31591
|
+
/**
|
|
31592
|
+
* @description The error code identifying the type of error.
|
|
31593
|
+
* @example directory_sync_unsupported
|
|
31594
|
+
* @constant
|
|
31595
|
+
*/
|
|
31596
|
+
code: "directory_sync_unsupported";
|
|
31597
|
+
/**
|
|
31598
|
+
* @description A human-readable description of the error.
|
|
31599
|
+
* @example Request could not be processed.
|
|
31600
|
+
*/
|
|
31601
|
+
message: string;
|
|
31602
|
+
};
|
|
31603
|
+
};
|
|
31604
|
+
};
|
|
31605
|
+
/** @description The directory is within the manual-sync cooldown window. */
|
|
31606
|
+
429: {
|
|
31607
|
+
headers: {
|
|
31608
|
+
/** @description Seconds to wait before requesting another manual sync. */
|
|
31609
|
+
"Retry-After"?: number;
|
|
31610
|
+
[name: string]: unknown;
|
|
31611
|
+
};
|
|
31612
|
+
content: {
|
|
31613
|
+
"application/json": components["schemas"]["DirectorySyncRateLimitError"];
|
|
31614
|
+
};
|
|
31615
|
+
};
|
|
31616
|
+
/** @description Directory syncing is temporarily paused. No sync was queued. */
|
|
31617
|
+
503: {
|
|
31618
|
+
headers: {
|
|
31619
|
+
[name: string]: unknown;
|
|
31620
|
+
};
|
|
31621
|
+
content: {
|
|
31622
|
+
"application/json": {
|
|
31623
|
+
/**
|
|
31624
|
+
* @description The error code identifying the type of error.
|
|
31625
|
+
* @example directory_sync_disabled
|
|
31626
|
+
* @constant
|
|
31627
|
+
*/
|
|
31628
|
+
code: "directory_sync_disabled";
|
|
31629
|
+
/**
|
|
31630
|
+
* @description A human-readable description of the error.
|
|
31631
|
+
* @example Request could not be processed.
|
|
31632
|
+
*/
|
|
31633
|
+
message: string;
|
|
31634
|
+
};
|
|
31635
|
+
};
|
|
31636
|
+
};
|
|
31637
|
+
};
|
|
31638
|
+
};
|
|
31467
31639
|
DirectoryGroupsController_list: {
|
|
31468
31640
|
parameters: {
|
|
31469
31641
|
query?: {
|