@workos/openapi-spec 0.115.0 → 0.117.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 +403 -200
- package/dist/types.d.ts +145 -19
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -18179,6 +18179,19 @@ export interface components {
|
|
|
18179
18179
|
*/
|
|
18180
18180
|
url: string;
|
|
18181
18181
|
};
|
|
18182
|
+
AuthMethodMismatchError: {
|
|
18183
|
+
/**
|
|
18184
|
+
* @description Error code indicating the endpoint does not match the installation auth method.
|
|
18185
|
+
* @example auth_method_mismatch
|
|
18186
|
+
* @constant
|
|
18187
|
+
*/
|
|
18188
|
+
code: "auth_method_mismatch";
|
|
18189
|
+
/**
|
|
18190
|
+
* @description A human-readable explanation of the mismatch.
|
|
18191
|
+
* @example This installation uses oauth authentication. Use the POST /:slug/token endpoint instead.
|
|
18192
|
+
*/
|
|
18193
|
+
message: string;
|
|
18194
|
+
};
|
|
18182
18195
|
DataIntegrationAccessTokenResponse: {
|
|
18183
18196
|
/**
|
|
18184
18197
|
* @description Indicates whether the access token is valid and ready for use, or if reauthorization is required.
|
|
@@ -18243,19 +18256,6 @@ export interface components {
|
|
|
18243
18256
|
*/
|
|
18244
18257
|
message: string;
|
|
18245
18258
|
};
|
|
18246
|
-
AuthMethodMismatchError: {
|
|
18247
|
-
/**
|
|
18248
|
-
* @description Error code indicating the endpoint does not match the installation auth method.
|
|
18249
|
-
* @example auth_method_mismatch
|
|
18250
|
-
* @constant
|
|
18251
|
-
*/
|
|
18252
|
-
code: "auth_method_mismatch";
|
|
18253
|
-
/**
|
|
18254
|
-
* @description A human-readable explanation of the mismatch.
|
|
18255
|
-
* @example This installation uses oauth authentication. Use the POST /:slug/token endpoint instead.
|
|
18256
|
-
*/
|
|
18257
|
-
message: string;
|
|
18258
|
-
};
|
|
18259
18259
|
DataIntegrationVendedCredential: {
|
|
18260
18260
|
/**
|
|
18261
18261
|
* @description Distinguishes the credential object.
|
|
@@ -18469,7 +18469,7 @@ export interface components {
|
|
|
18469
18469
|
*/
|
|
18470
18470
|
client_secret_last_4?: string | null;
|
|
18471
18471
|
/**
|
|
18472
|
-
* @description The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding
|
|
18472
|
+
* @description The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding secret and undeclared fields. Returned for every authentication method; empty when no stored values can be disclosed.
|
|
18473
18473
|
* @example {
|
|
18474
18474
|
* "instance_url": "https://example.my.salesforce.com"
|
|
18475
18475
|
* }
|
|
@@ -18665,7 +18665,7 @@ export interface components {
|
|
|
18665
18665
|
*/
|
|
18666
18666
|
client_secret_last_4?: string | null;
|
|
18667
18667
|
/**
|
|
18668
|
-
* @description The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding
|
|
18668
|
+
* @description The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding secret and undeclared fields. Returned for every authentication method; empty when no stored values can be disclosed.
|
|
18669
18669
|
* @example {
|
|
18670
18670
|
* "instance_url": "https://example.my.salesforce.com"
|
|
18671
18671
|
* }
|
|
@@ -18781,7 +18781,7 @@ export interface components {
|
|
|
18781
18781
|
*/
|
|
18782
18782
|
client_secret_last_4?: string | null;
|
|
18783
18783
|
/**
|
|
18784
|
-
* @description The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding
|
|
18784
|
+
* @description The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding secret and undeclared fields. Returned for every authentication method; empty when no stored values can be disclosed.
|
|
18785
18785
|
* @example {
|
|
18786
18786
|
* "instance_url": "https://example.my.salesforce.com"
|
|
18787
18787
|
* }
|
|
@@ -29904,13 +29904,25 @@ export interface operations {
|
|
|
29904
29904
|
};
|
|
29905
29905
|
};
|
|
29906
29906
|
};
|
|
29907
|
-
/** @description The data integration or selected connected account was not found. */
|
|
29907
|
+
/** @description The data integration or selected connected account was not found (`entity_not_found`). */
|
|
29908
29908
|
404: {
|
|
29909
29909
|
headers: {
|
|
29910
29910
|
[name: string]: unknown;
|
|
29911
29911
|
};
|
|
29912
29912
|
content: {
|
|
29913
29913
|
"application/json": {
|
|
29914
|
+
/**
|
|
29915
|
+
* @description The error code identifying the type of error.
|
|
29916
|
+
* @example entity_not_found
|
|
29917
|
+
* @constant
|
|
29918
|
+
*/
|
|
29919
|
+
code: "entity_not_found";
|
|
29920
|
+
/**
|
|
29921
|
+
* @description A human-readable description of the error.
|
|
29922
|
+
* @example Request could not be processed.
|
|
29923
|
+
*/
|
|
29924
|
+
message: string;
|
|
29925
|
+
} | {
|
|
29914
29926
|
/**
|
|
29915
29927
|
* @description A human-readable description of the error.
|
|
29916
29928
|
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
@@ -30140,6 +30152,87 @@ export interface operations {
|
|
|
30140
30152
|
config?: {
|
|
30141
30153
|
[key: string]: string;
|
|
30142
30154
|
};
|
|
30155
|
+
} | {
|
|
30156
|
+
/**
|
|
30157
|
+
* @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.
|
|
30158
|
+
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30159
|
+
*/
|
|
30160
|
+
user_id: string;
|
|
30161
|
+
/**
|
|
30162
|
+
* @description An organization ID to scope the authorization to a specific organization. Required when `connection_owner` is `organization`.
|
|
30163
|
+
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30164
|
+
*/
|
|
30165
|
+
organization_id?: string;
|
|
30166
|
+
/**
|
|
30167
|
+
* @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`.
|
|
30168
|
+
* @example user
|
|
30169
|
+
* @enum {string}
|
|
30170
|
+
*/
|
|
30171
|
+
connection_owner?: "user" | "organization";
|
|
30172
|
+
/**
|
|
30173
|
+
* Format: uri
|
|
30174
|
+
* @description The URL to redirect the user to after authorization.
|
|
30175
|
+
* @example https://example.com/callback
|
|
30176
|
+
*/
|
|
30177
|
+
return_to?: string;
|
|
30178
|
+
/**
|
|
30179
|
+
* @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.
|
|
30180
|
+
* @example {
|
|
30181
|
+
* "subdomain": "acme"
|
|
30182
|
+
* }
|
|
30183
|
+
*/
|
|
30184
|
+
config?: {
|
|
30185
|
+
[key: string]: string;
|
|
30186
|
+
};
|
|
30187
|
+
/**
|
|
30188
|
+
* @description Create another connection. The first connection for an owner shape fills the compatibility slot; later connections are standard. Creating an additional connection is not yet available: until it is, `add` succeeds only when the owner has no connection for this integration and otherwise returns 404 `multiple_connections_unavailable`. Omit `connection_intent` to use the compatibility connection, or send `reauthorize` with `connected_account_id` to reauthorize one exact connection.
|
|
30189
|
+
* @example add
|
|
30190
|
+
* @constant
|
|
30191
|
+
*/
|
|
30192
|
+
connection_intent: "add";
|
|
30193
|
+
} | {
|
|
30194
|
+
/**
|
|
30195
|
+
* @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.
|
|
30196
|
+
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30197
|
+
*/
|
|
30198
|
+
user_id: string;
|
|
30199
|
+
/**
|
|
30200
|
+
* @description An organization ID to scope the authorization to a specific organization. Required when `connection_owner` is `organization`.
|
|
30201
|
+
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30202
|
+
*/
|
|
30203
|
+
organization_id?: string;
|
|
30204
|
+
/**
|
|
30205
|
+
* @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`.
|
|
30206
|
+
* @example user
|
|
30207
|
+
* @enum {string}
|
|
30208
|
+
*/
|
|
30209
|
+
connection_owner?: "user" | "organization";
|
|
30210
|
+
/**
|
|
30211
|
+
* Format: uri
|
|
30212
|
+
* @description The URL to redirect the user to after authorization.
|
|
30213
|
+
* @example https://example.com/callback
|
|
30214
|
+
*/
|
|
30215
|
+
return_to?: string;
|
|
30216
|
+
/**
|
|
30217
|
+
* @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.
|
|
30218
|
+
* @example {
|
|
30219
|
+
* "subdomain": "acme"
|
|
30220
|
+
* }
|
|
30221
|
+
*/
|
|
30222
|
+
config?: {
|
|
30223
|
+
[key: string]: string;
|
|
30224
|
+
};
|
|
30225
|
+
/**
|
|
30226
|
+
* @description Reauthorize exactly the connection named by `connected_account_id`.
|
|
30227
|
+
* @example reauthorize
|
|
30228
|
+
* @constant
|
|
30229
|
+
*/
|
|
30230
|
+
connection_intent: "reauthorize";
|
|
30231
|
+
/**
|
|
30232
|
+
* @description The exact connected account to reauthorize. Required with `connection_intent: reauthorize`.
|
|
30233
|
+
* @example data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30234
|
+
*/
|
|
30235
|
+
connected_account_id: string;
|
|
30143
30236
|
};
|
|
30144
30237
|
};
|
|
30145
30238
|
};
|
|
@@ -30190,13 +30283,25 @@ export interface operations {
|
|
|
30190
30283
|
};
|
|
30191
30284
|
};
|
|
30192
30285
|
};
|
|
30193
|
-
/** @description
|
|
30286
|
+
/** @description The integration or user was not found (`entity_not_found`); `connected_account_not_found` when `connected_account_id` does not name a connection for this owner and integration; or `multiple_connections_unavailable` when `connection_intent: add` would create an additional connection before that capability is available. */
|
|
30194
30287
|
404: {
|
|
30195
30288
|
headers: {
|
|
30196
30289
|
[name: string]: unknown;
|
|
30197
30290
|
};
|
|
30198
30291
|
content: {
|
|
30199
30292
|
"application/json": {
|
|
30293
|
+
/**
|
|
30294
|
+
* @description The error code identifying the type of error.
|
|
30295
|
+
* @example multiple_connections_unavailable
|
|
30296
|
+
* @enum {string}
|
|
30297
|
+
*/
|
|
30298
|
+
code: "multiple_connections_unavailable" | "connected_account_not_found" | "entity_not_found";
|
|
30299
|
+
/**
|
|
30300
|
+
* @description A human-readable description of the error.
|
|
30301
|
+
* @example Request could not be processed.
|
|
30302
|
+
*/
|
|
30303
|
+
message: string;
|
|
30304
|
+
} | {
|
|
30200
30305
|
/**
|
|
30201
30306
|
* @description A human-readable description of the error.
|
|
30202
30307
|
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
@@ -30205,6 +30310,15 @@ export interface operations {
|
|
|
30205
30310
|
};
|
|
30206
30311
|
};
|
|
30207
30312
|
};
|
|
30313
|
+
/** @description The selected connected account does not use OAuth authentication. */
|
|
30314
|
+
422: {
|
|
30315
|
+
headers: {
|
|
30316
|
+
[name: string]: unknown;
|
|
30317
|
+
};
|
|
30318
|
+
content: {
|
|
30319
|
+
"application/json": components["schemas"]["AuthMethodMismatchError"];
|
|
30320
|
+
};
|
|
30321
|
+
};
|
|
30208
30322
|
};
|
|
30209
30323
|
};
|
|
30210
30324
|
DataIntegrationsController_upsertClientCredentials: {
|
|
@@ -30409,13 +30523,25 @@ export interface operations {
|
|
|
30409
30523
|
};
|
|
30410
30524
|
};
|
|
30411
30525
|
};
|
|
30412
|
-
/** @description The data integration or selected connected account was not found. */
|
|
30526
|
+
/** @description The data integration or selected connected account was not found (`entity_not_found`). */
|
|
30413
30527
|
404: {
|
|
30414
30528
|
headers: {
|
|
30415
30529
|
[name: string]: unknown;
|
|
30416
30530
|
};
|
|
30417
30531
|
content: {
|
|
30418
30532
|
"application/json": {
|
|
30533
|
+
/**
|
|
30534
|
+
* @description The error code identifying the type of error.
|
|
30535
|
+
* @example entity_not_found
|
|
30536
|
+
* @constant
|
|
30537
|
+
*/
|
|
30538
|
+
code: "entity_not_found";
|
|
30539
|
+
/**
|
|
30540
|
+
* @description A human-readable description of the error.
|
|
30541
|
+
* @example Request could not be processed.
|
|
30542
|
+
*/
|
|
30543
|
+
message: string;
|
|
30544
|
+
} | {
|
|
30419
30545
|
/**
|
|
30420
30546
|
* @description A human-readable description of the error.
|
|
30421
30547
|
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|