@workos/openapi-spec 0.136.0 → 0.138.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 +333 -734
- package/dist/policy.mjs +1 -0
- package/dist/types.d.ts +12 -258
- package/package.json +1 -1
package/dist/policy.mjs
CHANGED
|
@@ -87,6 +87,7 @@ const operationHints = {
|
|
|
87
87
|
"POST /user_management/cors_origins": { name: "create_cors_origin" },
|
|
88
88
|
"POST /user_management/redirect_uris": { name: "create_redirect_uri" },
|
|
89
89
|
"POST /organizations": { name: "create_organization" },
|
|
90
|
+
"PUT /organizations/{organizationId}/groups/{groupId}/organization-memberships": { name: "set_group_organization_memberships" },
|
|
90
91
|
"GET /directory_groups": { name: "list_groups" },
|
|
91
92
|
"GET /directory_groups/{id}": { name: "get_group" },
|
|
92
93
|
"GET /directory_users": { name: "list_users" },
|
package/dist/types.d.ts
CHANGED
|
@@ -30873,86 +30873,17 @@ export interface operations {
|
|
|
30873
30873
|
* @example sk-1234567890abcdef
|
|
30874
30874
|
*/
|
|
30875
30875
|
secret: string;
|
|
30876
|
-
} | {
|
|
30877
|
-
/**
|
|
30878
|
-
* @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
|
|
30879
|
-
* @example Acme production
|
|
30880
|
-
*/
|
|
30881
|
-
account_display_name?: string | null;
|
|
30882
|
-
/**
|
|
30883
|
-
* @description A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
|
|
30884
|
-
* @example workspace_123
|
|
30885
|
-
*/
|
|
30886
|
-
account_identifier?: string | null;
|
|
30887
|
-
/**
|
|
30888
|
-
* @description A [User](/reference/authkit/user) identifier.
|
|
30889
|
-
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30890
|
-
*/
|
|
30891
|
-
user_id: string;
|
|
30892
30876
|
/**
|
|
30893
|
-
* @description
|
|
30894
|
-
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30895
|
-
*/
|
|
30896
|
-
organization_id?: string;
|
|
30897
|
-
/**
|
|
30898
|
-
* @description Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization.
|
|
30899
|
-
* @example user
|
|
30900
|
-
* @enum {string}
|
|
30901
|
-
*/
|
|
30902
|
-
connection_owner?: "user" | "organization";
|
|
30903
|
-
/**
|
|
30904
|
-
* @description The API key secret to store for this integration.
|
|
30905
|
-
* @example sk-1234567890abcdef
|
|
30906
|
-
*/
|
|
30907
|
-
secret: string;
|
|
30908
|
-
/**
|
|
30909
|
-
* @description Reauthorize exactly the connection named by `connected_account_id`.
|
|
30877
|
+
* @description Send `reauthorize` with `connected_account_id` to reauthorize one exact connection. Omit it to use the compatibility connection; creating another connection lives on the POST route.
|
|
30910
30878
|
* @example reauthorize
|
|
30911
30879
|
* @constant
|
|
30912
30880
|
*/
|
|
30913
|
-
connection_intent
|
|
30914
|
-
/**
|
|
30915
|
-
* @description The exact connected account to reauthorize. Required with `connection_intent: reauthorize`.
|
|
30916
|
-
* @example data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30917
|
-
*/
|
|
30918
|
-
connected_account_id: string;
|
|
30919
|
-
} | {
|
|
30920
|
-
/**
|
|
30921
|
-
* @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
|
|
30922
|
-
* @example Acme production
|
|
30923
|
-
*/
|
|
30924
|
-
account_display_name?: string | null;
|
|
30925
|
-
/**
|
|
30926
|
-
* @description A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
|
|
30927
|
-
* @example workspace_123
|
|
30928
|
-
*/
|
|
30929
|
-
account_identifier?: string | null;
|
|
30930
|
-
/**
|
|
30931
|
-
* @description A [User](/reference/authkit/user) identifier.
|
|
30932
|
-
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30933
|
-
*/
|
|
30934
|
-
user_id: string;
|
|
30935
|
-
/**
|
|
30936
|
-
* @description An [Organization](/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`.
|
|
30937
|
-
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30938
|
-
*/
|
|
30939
|
-
organization_id?: string;
|
|
30940
|
-
/**
|
|
30941
|
-
* @description Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization.
|
|
30942
|
-
* @example user
|
|
30943
|
-
* @enum {string}
|
|
30944
|
-
*/
|
|
30945
|
-
connection_owner?: "user" | "organization";
|
|
30946
|
-
/**
|
|
30947
|
-
* @description The API key secret to store for this integration.
|
|
30948
|
-
* @example sk-1234567890abcdef
|
|
30949
|
-
*/
|
|
30950
|
-
secret: string;
|
|
30881
|
+
connection_intent?: "reauthorize";
|
|
30951
30882
|
/**
|
|
30952
|
-
* @description The exact connected account to reauthorize.
|
|
30883
|
+
* @description The exact connected account to reauthorize. Required with `connection_intent: reauthorize`; it may also be sent on its own to reauthorize that connection.
|
|
30953
30884
|
* @example data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30954
30885
|
*/
|
|
30955
|
-
connected_account_id
|
|
30886
|
+
connected_account_id?: string;
|
|
30956
30887
|
};
|
|
30957
30888
|
};
|
|
30958
30889
|
};
|
|
@@ -31305,97 +31236,17 @@ export interface operations {
|
|
|
31305
31236
|
config?: {
|
|
31306
31237
|
[key: string]: string;
|
|
31307
31238
|
};
|
|
31308
|
-
} | {
|
|
31309
31239
|
/**
|
|
31310
|
-
* @description
|
|
31311
|
-
* @example Acme production
|
|
31312
|
-
*/
|
|
31313
|
-
account_display_name?: string | null;
|
|
31314
|
-
/**
|
|
31315
|
-
* @description The ID of the user to authorize. When `connection_owner` is `organization`, this is the user authorizing on behalf of the organization; they must be an active member of the organization and do not become the owner of the resulting connected account.
|
|
31316
|
-
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
31317
|
-
*/
|
|
31318
|
-
user_id: string;
|
|
31319
|
-
/**
|
|
31320
|
-
* @description An organization ID to scope the authorization to a specific organization. Required when `connection_owner` is `organization`.
|
|
31321
|
-
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
31322
|
-
*/
|
|
31323
|
-
organization_id?: string;
|
|
31324
|
-
/**
|
|
31325
|
-
* @description Who will own the connected account. `user` (the default) connects the user's own account. `organization` connects the organization's shared account and requires `organization_id`.
|
|
31326
|
-
* @example user
|
|
31327
|
-
* @enum {string}
|
|
31328
|
-
*/
|
|
31329
|
-
connection_owner?: "user" | "organization";
|
|
31330
|
-
/**
|
|
31331
|
-
* Format: uri
|
|
31332
|
-
* @description The URL to redirect the user to after authorization.
|
|
31333
|
-
* @example https://example.com/callback
|
|
31334
|
-
*/
|
|
31335
|
-
return_to?: string;
|
|
31336
|
-
/**
|
|
31337
|
-
* @description Connect-time config values for the provider-declared `installation`-scope fields (e.g. a Zendesk `subdomain`), keyed by the config field. Only fields the provider declares may be supplied, and required fields must be provided unless already pinned on the integration.
|
|
31338
|
-
* @example {
|
|
31339
|
-
* "subdomain": "acme"
|
|
31340
|
-
* }
|
|
31341
|
-
*/
|
|
31342
|
-
config?: {
|
|
31343
|
-
[key: string]: string;
|
|
31344
|
-
};
|
|
31345
|
-
/**
|
|
31346
|
-
* @description Create another connection. The first connection for an owner shape fills the compatibility slot; later connections are standard. Omit `connection_intent` to use the compatibility connection, or send `reauthorize` with `connected_account_id` to reauthorize one exact connection.
|
|
31240
|
+
* @description Which connection the request targets. Omit it to use the compatibility connection. Send `add` to create another connection: the first connection for an owner shape fills the compatibility slot, and later connections are standard. Send `reauthorize` with `connected_account_id` to reauthorize one exact connection.
|
|
31347
31241
|
* @example add
|
|
31348
|
-
* @constant
|
|
31349
|
-
*/
|
|
31350
|
-
connection_intent: "add";
|
|
31351
|
-
} | {
|
|
31352
|
-
/**
|
|
31353
|
-
* @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
|
|
31354
|
-
* @example Acme production
|
|
31355
|
-
*/
|
|
31356
|
-
account_display_name?: string | null;
|
|
31357
|
-
/**
|
|
31358
|
-
* @description The ID of the user to authorize. When `connection_owner` is `organization`, this is the user authorizing on behalf of the organization; they must be an active member of the organization and do not become the owner of the resulting connected account.
|
|
31359
|
-
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
31360
|
-
*/
|
|
31361
|
-
user_id: string;
|
|
31362
|
-
/**
|
|
31363
|
-
* @description An organization ID to scope the authorization to a specific organization. Required when `connection_owner` is `organization`.
|
|
31364
|
-
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
31365
|
-
*/
|
|
31366
|
-
organization_id?: string;
|
|
31367
|
-
/**
|
|
31368
|
-
* @description Who will own the connected account. `user` (the default) connects the user's own account. `organization` connects the organization's shared account and requires `organization_id`.
|
|
31369
|
-
* @example user
|
|
31370
31242
|
* @enum {string}
|
|
31371
31243
|
*/
|
|
31372
|
-
|
|
31373
|
-
/**
|
|
31374
|
-
* Format: uri
|
|
31375
|
-
* @description The URL to redirect the user to after authorization.
|
|
31376
|
-
* @example https://example.com/callback
|
|
31377
|
-
*/
|
|
31378
|
-
return_to?: string;
|
|
31244
|
+
connection_intent?: "add" | "reauthorize";
|
|
31379
31245
|
/**
|
|
31380
|
-
* @description
|
|
31381
|
-
* @example {
|
|
31382
|
-
* "subdomain": "acme"
|
|
31383
|
-
* }
|
|
31384
|
-
*/
|
|
31385
|
-
config?: {
|
|
31386
|
-
[key: string]: string;
|
|
31387
|
-
};
|
|
31388
|
-
/**
|
|
31389
|
-
* @description Reauthorize exactly the connection named by `connected_account_id`.
|
|
31390
|
-
* @example reauthorize
|
|
31391
|
-
* @constant
|
|
31392
|
-
*/
|
|
31393
|
-
connection_intent: "reauthorize";
|
|
31394
|
-
/**
|
|
31395
|
-
* @description The exact connected account to reauthorize. Required with `connection_intent: reauthorize`.
|
|
31246
|
+
* @description The exact connected account to reauthorize. Required with `connection_intent: reauthorize` and not accepted otherwise.
|
|
31396
31247
|
* @example data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
31397
31248
|
*/
|
|
31398
|
-
connected_account_id
|
|
31249
|
+
connected_account_id?: string;
|
|
31399
31250
|
};
|
|
31400
31251
|
};
|
|
31401
31252
|
};
|
|
@@ -31565,114 +31416,17 @@ export interface operations {
|
|
|
31565
31416
|
config?: {
|
|
31566
31417
|
[key: string]: string;
|
|
31567
31418
|
};
|
|
31568
|
-
} | {
|
|
31569
|
-
/**
|
|
31570
|
-
* @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
|
|
31571
|
-
* @example Acme production
|
|
31572
|
-
*/
|
|
31573
|
-
account_display_name?: string | null;
|
|
31574
|
-
/**
|
|
31575
|
-
* @description A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
|
|
31576
|
-
* @example workspace_123
|
|
31577
|
-
*/
|
|
31578
|
-
account_identifier?: string | null;
|
|
31579
|
-
/**
|
|
31580
|
-
* @description A [User](/reference/authkit/user) identifier.
|
|
31581
|
-
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
31582
|
-
*/
|
|
31583
|
-
user_id: string;
|
|
31584
|
-
/**
|
|
31585
|
-
* @description An [Organization](/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`.
|
|
31586
|
-
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
31587
|
-
*/
|
|
31588
|
-
organization_id?: string;
|
|
31589
|
-
/**
|
|
31590
|
-
* @description Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization.
|
|
31591
|
-
* @example user
|
|
31592
|
-
* @enum {string}
|
|
31593
|
-
*/
|
|
31594
|
-
connection_owner?: "user" | "organization";
|
|
31595
|
-
/**
|
|
31596
|
-
* @description The OAuth client ID to store for this integration.
|
|
31597
|
-
* @example 3MVG9...
|
|
31598
|
-
*/
|
|
31599
|
-
client_id: string;
|
|
31600
|
-
/**
|
|
31601
|
-
* @description The OAuth client secret to store for this integration.
|
|
31602
|
-
* @example shhh-secret
|
|
31603
|
-
*/
|
|
31604
|
-
client_secret: string;
|
|
31605
|
-
/**
|
|
31606
|
-
* @description Provider-specific configuration values collected for this installation, keyed by the provider's config field descriptors.
|
|
31607
|
-
* @example {
|
|
31608
|
-
* "salesforce_host": "acme.my.salesforce.com"
|
|
31609
|
-
* }
|
|
31610
|
-
*/
|
|
31611
|
-
config?: {
|
|
31612
|
-
[key: string]: string;
|
|
31613
|
-
};
|
|
31614
31419
|
/**
|
|
31615
|
-
* @description
|
|
31420
|
+
* @description Send `reauthorize` with `connected_account_id` to reauthorize one exact connection. Omit it to use the compatibility connection; creating another connection lives on the POST route.
|
|
31616
31421
|
* @example reauthorize
|
|
31617
31422
|
* @constant
|
|
31618
31423
|
*/
|
|
31619
|
-
connection_intent
|
|
31424
|
+
connection_intent?: "reauthorize";
|
|
31620
31425
|
/**
|
|
31621
|
-
* @description The exact connected account to reauthorize. Required with `connection_intent: reauthorize
|
|
31426
|
+
* @description The exact connected account to reauthorize. Required with `connection_intent: reauthorize`; it may also be sent on its own to reauthorize that connection.
|
|
31622
31427
|
* @example data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
31623
31428
|
*/
|
|
31624
|
-
connected_account_id
|
|
31625
|
-
} | {
|
|
31626
|
-
/**
|
|
31627
|
-
* @description A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
|
|
31628
|
-
* @example Acme production
|
|
31629
|
-
*/
|
|
31630
|
-
account_display_name?: string | null;
|
|
31631
|
-
/**
|
|
31632
|
-
* @description A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
|
|
31633
|
-
* @example workspace_123
|
|
31634
|
-
*/
|
|
31635
|
-
account_identifier?: string | null;
|
|
31636
|
-
/**
|
|
31637
|
-
* @description A [User](/reference/authkit/user) identifier.
|
|
31638
|
-
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
31639
|
-
*/
|
|
31640
|
-
user_id: string;
|
|
31641
|
-
/**
|
|
31642
|
-
* @description An [Organization](/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`.
|
|
31643
|
-
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
31644
|
-
*/
|
|
31645
|
-
organization_id?: string;
|
|
31646
|
-
/**
|
|
31647
|
-
* @description Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization.
|
|
31648
|
-
* @example user
|
|
31649
|
-
* @enum {string}
|
|
31650
|
-
*/
|
|
31651
|
-
connection_owner?: "user" | "organization";
|
|
31652
|
-
/**
|
|
31653
|
-
* @description The OAuth client ID to store for this integration.
|
|
31654
|
-
* @example 3MVG9...
|
|
31655
|
-
*/
|
|
31656
|
-
client_id: string;
|
|
31657
|
-
/**
|
|
31658
|
-
* @description The OAuth client secret to store for this integration.
|
|
31659
|
-
* @example shhh-secret
|
|
31660
|
-
*/
|
|
31661
|
-
client_secret: string;
|
|
31662
|
-
/**
|
|
31663
|
-
* @description Provider-specific configuration values collected for this installation, keyed by the provider's config field descriptors.
|
|
31664
|
-
* @example {
|
|
31665
|
-
* "salesforce_host": "acme.my.salesforce.com"
|
|
31666
|
-
* }
|
|
31667
|
-
*/
|
|
31668
|
-
config?: {
|
|
31669
|
-
[key: string]: string;
|
|
31670
|
-
};
|
|
31671
|
-
/**
|
|
31672
|
-
* @description The exact connected account to reauthorize. The reauthorize intent may be omitted for compatibility.
|
|
31673
|
-
* @example data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
31674
|
-
*/
|
|
31675
|
-
connected_account_id: string;
|
|
31429
|
+
connected_account_id?: string;
|
|
31676
31430
|
};
|
|
31677
31431
|
};
|
|
31678
31432
|
};
|