@workos/openapi-spec 0.49.0 → 0.51.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 +55 -9
- package/dist/types.d.ts +35 -8
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -7737,6 +7737,18 @@ paths:
|
|
|
7737
7737
|
format: uri
|
|
7738
7738
|
description: The URL to redirect the user to after authorization.
|
|
7739
7739
|
example: https://example.com/callback
|
|
7740
|
+
config:
|
|
7741
|
+
type: object
|
|
7742
|
+
additionalProperties:
|
|
7743
|
+
type: string
|
|
7744
|
+
description: >-
|
|
7745
|
+
Connect-time config values for the provider-declared
|
|
7746
|
+
`installation`-scope fields (e.g. a Zendesk `subdomain`),
|
|
7747
|
+
keyed by the config field. Only fields the provider declares
|
|
7748
|
+
may be supplied, and required fields must be provided unless
|
|
7749
|
+
already pinned on the integration.
|
|
7750
|
+
example:
|
|
7751
|
+
subdomain: acme
|
|
7740
7752
|
required:
|
|
7741
7753
|
- user_id
|
|
7742
7754
|
responses:
|
|
@@ -10193,10 +10205,13 @@ paths:
|
|
|
10193
10205
|
'400':
|
|
10194
10206
|
description: >-
|
|
10195
10207
|
The request body is invalid. Possible reasons: the body is empty (at
|
|
10196
|
-
least one of `enabled`, `scopes`, or `
|
|
10197
|
-
`client_id` and `client_secret` are not provided
|
|
10198
|
-
`client_id`/`client_secret` were supplied for a provider
|
|
10199
|
-
not support organization-managed credentials
|
|
10208
|
+
least one of `enabled`, `scopes`, `client_id`, or `config` must be
|
|
10209
|
+
provided); `client_id` and `client_secret` are not provided
|
|
10210
|
+
together; `client_id`/`client_secret` were supplied for a provider
|
|
10211
|
+
that does not support organization-managed credentials; or `config`
|
|
10212
|
+
contains a field the provider does not declare, a value that does
|
|
10213
|
+
not match that field's pattern, or was supplied for a provider whose
|
|
10214
|
+
credentials are not organization-managed.
|
|
10200
10215
|
content:
|
|
10201
10216
|
application/json:
|
|
10202
10217
|
schema:
|
|
@@ -35555,6 +35570,17 @@ components:
|
|
|
35555
35570
|
items:
|
|
35556
35571
|
type: string
|
|
35557
35572
|
- type: 'null'
|
|
35573
|
+
config:
|
|
35574
|
+
type: object
|
|
35575
|
+
additionalProperties:
|
|
35576
|
+
type: string
|
|
35577
|
+
description: >-
|
|
35578
|
+
The provider-specific config values in effect for this organization,
|
|
35579
|
+
keyed by config field. Reflects the organization override for
|
|
35580
|
+
organization-credential providers, otherwise the provider root.
|
|
35581
|
+
Empty when none are configured.
|
|
35582
|
+
example:
|
|
35583
|
+
account_identifier: acme-prod
|
|
35558
35584
|
created_at:
|
|
35559
35585
|
type: string
|
|
35560
35586
|
description: The timestamp when the configuration was created.
|
|
@@ -35573,6 +35599,7 @@ components:
|
|
|
35573
35599
|
- name
|
|
35574
35600
|
- enabled
|
|
35575
35601
|
- scopes
|
|
35602
|
+
- config
|
|
35576
35603
|
- created_at
|
|
35577
35604
|
- updated_at
|
|
35578
35605
|
DataIntegrationConfigurationListResponse:
|
|
@@ -35624,6 +35651,20 @@ components:
|
|
|
35624
35651
|
The OAuth client secret of the organization's own application. Must
|
|
35625
35652
|
be provided together with `client_id`.
|
|
35626
35653
|
example: ••••••••
|
|
35654
|
+
config:
|
|
35655
|
+
type: object
|
|
35656
|
+
additionalProperties:
|
|
35657
|
+
type: string
|
|
35658
|
+
description: >-
|
|
35659
|
+
Provider-specific config values to set for the organization, keyed
|
|
35660
|
+
by config field. Only fields the provider declares are accepted, and
|
|
35661
|
+
each value must match that field's pattern. Accepted only for
|
|
35662
|
+
providers whose credentials are organization-managed; for shared or
|
|
35663
|
+
custom credential providers, config belongs on the integration
|
|
35664
|
+
itself (via the data-integrations API) and supplying it here is
|
|
35665
|
+
rejected.
|
|
35666
|
+
example:
|
|
35667
|
+
account_identifier: acme-prod
|
|
35627
35668
|
DataIntegration:
|
|
35628
35669
|
type: object
|
|
35629
35670
|
properties:
|
|
@@ -35688,6 +35729,7 @@ components:
|
|
|
35688
35729
|
enum:
|
|
35689
35730
|
- oauth
|
|
35690
35731
|
- api_key
|
|
35732
|
+
- client_credentials
|
|
35691
35733
|
description: >-
|
|
35692
35734
|
How accounts authenticate with the provider for this Data
|
|
35693
35735
|
Integration.
|
|
@@ -36202,9 +36244,10 @@ components:
|
|
|
36202
36244
|
enum:
|
|
36203
36245
|
- oauth
|
|
36204
36246
|
- api_key
|
|
36247
|
+
- client_credentials
|
|
36205
36248
|
description: >-
|
|
36206
|
-
The authentication method used for this connection (`oauth
|
|
36207
|
-
`api_key`). Defaults to `oauth` if absent.
|
|
36249
|
+
The authentication method used for this connection (`oauth`,
|
|
36250
|
+
`api_key`, or `client_credentials`). Defaults to `oauth` if absent.
|
|
36208
36251
|
example: oauth
|
|
36209
36252
|
api_key_last_4:
|
|
36210
36253
|
type:
|
|
@@ -36312,10 +36355,11 @@ components:
|
|
|
36312
36355
|
enum:
|
|
36313
36356
|
- oauth
|
|
36314
36357
|
- api_key
|
|
36358
|
+
- client_credentials
|
|
36315
36359
|
description: >-
|
|
36316
36360
|
The authentication methods supported by this provider
|
|
36317
|
-
(`oauth`, `api_key`, or
|
|
36318
|
-
absent.
|
|
36361
|
+
(`oauth`, `api_key`, `client_credentials`, or a combination).
|
|
36362
|
+
Defaults to `["oauth"]` if absent.
|
|
36319
36363
|
example:
|
|
36320
36364
|
- oauth
|
|
36321
36365
|
ownership:
|
|
@@ -36394,9 +36438,11 @@ components:
|
|
|
36394
36438
|
enum:
|
|
36395
36439
|
- oauth
|
|
36396
36440
|
- api_key
|
|
36441
|
+
- client_credentials
|
|
36397
36442
|
description: >-
|
|
36398
36443
|
The authentication method used for this connection
|
|
36399
|
-
(`oauth` or `
|
|
36444
|
+
(`oauth`, `api_key`, or `client_credentials`).
|
|
36445
|
+
Defaults to `oauth` if absent.
|
|
36400
36446
|
example: oauth
|
|
36401
36447
|
api_key_last_4:
|
|
36402
36448
|
type:
|
package/dist/types.d.ts
CHANGED
|
@@ -15208,6 +15208,15 @@ export interface components {
|
|
|
15208
15208
|
* ]
|
|
15209
15209
|
*/
|
|
15210
15210
|
scopes: string[] | null;
|
|
15211
|
+
/**
|
|
15212
|
+
* @description The provider-specific config values in effect for this organization, keyed by config field. Reflects the organization override for organization-credential providers, otherwise the provider root. Empty when none are configured.
|
|
15213
|
+
* @example {
|
|
15214
|
+
* "account_identifier": "acme-prod"
|
|
15215
|
+
* }
|
|
15216
|
+
*/
|
|
15217
|
+
config: {
|
|
15218
|
+
[key: string]: string;
|
|
15219
|
+
};
|
|
15211
15220
|
/**
|
|
15212
15221
|
* @description The timestamp when the configuration was created.
|
|
15213
15222
|
* @example 2024-01-15T10:30:00.000Z
|
|
@@ -15253,6 +15262,15 @@ export interface components {
|
|
|
15253
15262
|
* @example ••••••••
|
|
15254
15263
|
*/
|
|
15255
15264
|
client_secret?: string;
|
|
15265
|
+
/**
|
|
15266
|
+
* @description Provider-specific config values to set for the organization, keyed by config field. Only fields the provider declares are accepted, and each value must match that field's pattern. Accepted only for providers whose credentials are organization-managed; for shared or custom credential providers, config belongs on the integration itself (via the data-integrations API) and supplying it here is rejected.
|
|
15267
|
+
* @example {
|
|
15268
|
+
* "account_identifier": "acme-prod"
|
|
15269
|
+
* }
|
|
15270
|
+
*/
|
|
15271
|
+
config?: {
|
|
15272
|
+
[key: string]: string;
|
|
15273
|
+
};
|
|
15256
15274
|
};
|
|
15257
15275
|
DataIntegration: {
|
|
15258
15276
|
/**
|
|
@@ -15311,7 +15329,7 @@ export interface components {
|
|
|
15311
15329
|
* "oauth"
|
|
15312
15330
|
* ]
|
|
15313
15331
|
*/
|
|
15314
|
-
auth_methods: ("oauth" | "api_key")[];
|
|
15332
|
+
auth_methods: ("oauth" | "api_key" | "client_credentials")[];
|
|
15315
15333
|
/** @description The credentials configured for the Data Integration. */
|
|
15316
15334
|
credentials: {
|
|
15317
15335
|
/**
|
|
@@ -15646,11 +15664,11 @@ export interface components {
|
|
|
15646
15664
|
*/
|
|
15647
15665
|
scopes: string[];
|
|
15648
15666
|
/**
|
|
15649
|
-
* @description The authentication method used for this connection (`oauth` or `
|
|
15667
|
+
* @description The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent.
|
|
15650
15668
|
* @example oauth
|
|
15651
15669
|
* @enum {string}
|
|
15652
15670
|
*/
|
|
15653
|
-
auth_method?: "oauth" | "api_key";
|
|
15671
|
+
auth_method?: "oauth" | "api_key" | "client_credentials";
|
|
15654
15672
|
/**
|
|
15655
15673
|
* @description The last four characters of the API key, or `null` for OAuth connections.
|
|
15656
15674
|
* @example null
|
|
@@ -15728,12 +15746,12 @@ export interface components {
|
|
|
15728
15746
|
*/
|
|
15729
15747
|
scopes: string[] | null;
|
|
15730
15748
|
/**
|
|
15731
|
-
* @description The authentication methods supported by this provider (`oauth`, `api_key`, or
|
|
15749
|
+
* @description The authentication methods supported by this provider (`oauth`, `api_key`, `client_credentials`, or a combination). Defaults to `["oauth"]` if absent.
|
|
15732
15750
|
* @example [
|
|
15733
15751
|
* "oauth"
|
|
15734
15752
|
* ]
|
|
15735
15753
|
*/
|
|
15736
|
-
auth_methods?: ("oauth" | "api_key")[];
|
|
15754
|
+
auth_methods?: ("oauth" | "api_key" | "client_credentials")[];
|
|
15737
15755
|
/**
|
|
15738
15756
|
* @description Whether the provider is owned by a user or organization.
|
|
15739
15757
|
* @enum {string}
|
|
@@ -15800,11 +15818,11 @@ export interface components {
|
|
|
15800
15818
|
*/
|
|
15801
15819
|
scopes: string[];
|
|
15802
15820
|
/**
|
|
15803
|
-
* @description The authentication method used for this connection (`oauth` or `
|
|
15821
|
+
* @description The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent.
|
|
15804
15822
|
* @example oauth
|
|
15805
15823
|
* @enum {string}
|
|
15806
15824
|
*/
|
|
15807
|
-
auth_method?: "oauth" | "api_key";
|
|
15825
|
+
auth_method?: "oauth" | "api_key" | "client_credentials";
|
|
15808
15826
|
/**
|
|
15809
15827
|
* @description The last four characters of the API key, or `null` for OAuth connections.
|
|
15810
15828
|
* @example null
|
|
@@ -23878,6 +23896,15 @@ export interface operations {
|
|
|
23878
23896
|
* @example https://example.com/callback
|
|
23879
23897
|
*/
|
|
23880
23898
|
return_to?: string;
|
|
23899
|
+
/**
|
|
23900
|
+
* @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.
|
|
23901
|
+
* @example {
|
|
23902
|
+
* "subdomain": "acme"
|
|
23903
|
+
* }
|
|
23904
|
+
*/
|
|
23905
|
+
config?: {
|
|
23906
|
+
[key: string]: string;
|
|
23907
|
+
};
|
|
23881
23908
|
};
|
|
23882
23909
|
};
|
|
23883
23910
|
};
|
|
@@ -26113,7 +26140,7 @@ export interface operations {
|
|
|
26113
26140
|
"application/json": components["schemas"]["DataIntegrationConfigurationResponse"];
|
|
26114
26141
|
};
|
|
26115
26142
|
};
|
|
26116
|
-
/** @description The request body is invalid. Possible reasons: the body is empty (at least one of `enabled`, `scopes`, or `
|
|
26143
|
+
/** @description The request body is invalid. Possible reasons: the body is empty (at least one of `enabled`, `scopes`, `client_id`, or `config` must be provided); `client_id` and `client_secret` are not provided together; `client_id`/`client_secret` were supplied for a provider that does not support organization-managed credentials; or `config` contains a field the provider does not declare, a value that does not match that field's pattern, or was supplied for a provider whose credentials are not organization-managed. */
|
|
26117
26144
|
400: {
|
|
26118
26145
|
headers: {
|
|
26119
26146
|
[name: string]: unknown;
|