@workos/openapi-spec 0.94.0 → 0.95.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 +723 -84
- package/dist/services.d.mts +1 -1
- package/dist/services.mjs +28 -0
- package/dist/types.d.ts +653 -4
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -2217,6 +2217,58 @@ export interface paths {
|
|
|
2217
2217
|
patch?: never;
|
|
2218
2218
|
trace?: never;
|
|
2219
2219
|
};
|
|
2220
|
+
"/organizations/{organization_id}/connected_accounts/{slug}": {
|
|
2221
|
+
parameters: {
|
|
2222
|
+
query?: never;
|
|
2223
|
+
header?: never;
|
|
2224
|
+
path?: never;
|
|
2225
|
+
cookie?: never;
|
|
2226
|
+
};
|
|
2227
|
+
/**
|
|
2228
|
+
* Get an organization connected account
|
|
2229
|
+
* @description Retrieves an organization's [connected account](/reference/pipes/connected-account) for a specific provider.
|
|
2230
|
+
*/
|
|
2231
|
+
get: operations["DataIntegrationsOrganizationController_getOrganizationDataInstallation"];
|
|
2232
|
+
/**
|
|
2233
|
+
* Update an organization connected account
|
|
2234
|
+
* @description Updates an organization's [connected account](/reference/pipes/connected-account) tokens, scopes, or state for a specific provider.
|
|
2235
|
+
*/
|
|
2236
|
+
put: operations["DataIntegrationsOrganizationController_updateOrganizationDataInstallation"];
|
|
2237
|
+
/**
|
|
2238
|
+
* Import an organization connected account
|
|
2239
|
+
* @description Imports an organization-owned [connected account](/reference/pipes/connected-account) by providing OAuth tokens directly. Use this to migrate existing connections or set up connections without going through the OAuth flow.
|
|
2240
|
+
*/
|
|
2241
|
+
post: operations["DataIntegrationsOrganizationController_createOrganizationDataInstallation"];
|
|
2242
|
+
/**
|
|
2243
|
+
* Delete an organization connected account
|
|
2244
|
+
* @description Disconnects the organization's account for the provider, including removing any stored access and refresh tokens. A member will need to reauthorize if the organization wants to reconnect. This does not revoke access on the provider side.
|
|
2245
|
+
*/
|
|
2246
|
+
delete: operations["DataIntegrationsOrganizationController_deleteOrganizationDataInstallation"];
|
|
2247
|
+
options?: never;
|
|
2248
|
+
head?: never;
|
|
2249
|
+
patch?: never;
|
|
2250
|
+
trace?: never;
|
|
2251
|
+
};
|
|
2252
|
+
"/organizations/{organization_id}/data_providers": {
|
|
2253
|
+
parameters: {
|
|
2254
|
+
query?: never;
|
|
2255
|
+
header?: never;
|
|
2256
|
+
path?: never;
|
|
2257
|
+
cookie?: never;
|
|
2258
|
+
};
|
|
2259
|
+
/**
|
|
2260
|
+
* List providers for an organization
|
|
2261
|
+
* @description Retrieves the organization-owned providers configured for your environment and the organization's [connected account](/reference/pipes/connected-account) information for each. Providers owned by individual users are not included.
|
|
2262
|
+
*/
|
|
2263
|
+
get: operations["DataIntegrationsOrganizationController_getOrganizationDataIntegrations"];
|
|
2264
|
+
put?: never;
|
|
2265
|
+
post?: never;
|
|
2266
|
+
delete?: never;
|
|
2267
|
+
options?: never;
|
|
2268
|
+
head?: never;
|
|
2269
|
+
patch?: never;
|
|
2270
|
+
trace?: never;
|
|
2271
|
+
};
|
|
2220
2272
|
"/organizations/{organization_id}/it_contacts": {
|
|
2221
2273
|
parameters: {
|
|
2222
2274
|
query?: never;
|
|
@@ -29371,15 +29423,21 @@ export interface operations {
|
|
|
29371
29423
|
content: {
|
|
29372
29424
|
"application/json": {
|
|
29373
29425
|
/**
|
|
29374
|
-
* @description The ID of the user to authorize.
|
|
29426
|
+
* @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.
|
|
29375
29427
|
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
29376
29428
|
*/
|
|
29377
29429
|
user_id: string;
|
|
29378
29430
|
/**
|
|
29379
|
-
* @description An organization ID to scope the authorization to a specific organization.
|
|
29431
|
+
* @description An organization ID to scope the authorization to a specific organization. Required when `connection_owner` is `organization`.
|
|
29380
29432
|
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
29381
29433
|
*/
|
|
29382
29434
|
organization_id?: string;
|
|
29435
|
+
/**
|
|
29436
|
+
* @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`.
|
|
29437
|
+
* @example user
|
|
29438
|
+
* @enum {string}
|
|
29439
|
+
*/
|
|
29440
|
+
connection_owner?: "user" | "organization";
|
|
29383
29441
|
/**
|
|
29384
29442
|
* Format: uri
|
|
29385
29443
|
* @description The URL to redirect the user to after authorization.
|
|
@@ -32901,6 +32959,597 @@ export interface operations {
|
|
|
32901
32959
|
};
|
|
32902
32960
|
};
|
|
32903
32961
|
};
|
|
32962
|
+
DataIntegrationsOrganizationController_getOrganizationDataInstallation: {
|
|
32963
|
+
parameters: {
|
|
32964
|
+
query?: {
|
|
32965
|
+
/** @description Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. */
|
|
32966
|
+
supports_multiple_connections?: boolean;
|
|
32967
|
+
/** @description A [connected account](/reference/pipes/connected-account) identifier. Use this to select a specific connection when the organization has several for this provider. */
|
|
32968
|
+
connected_account_id?: string;
|
|
32969
|
+
};
|
|
32970
|
+
header?: never;
|
|
32971
|
+
path: {
|
|
32972
|
+
/** @description An [Organization](/reference/organization) identifier. */
|
|
32973
|
+
organization_id: string;
|
|
32974
|
+
/** @description The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
|
|
32975
|
+
slug: string;
|
|
32976
|
+
};
|
|
32977
|
+
cookie?: never;
|
|
32978
|
+
};
|
|
32979
|
+
requestBody?: never;
|
|
32980
|
+
responses: {
|
|
32981
|
+
/** @description The connected account was retrieved successfully. */
|
|
32982
|
+
200: {
|
|
32983
|
+
headers: {
|
|
32984
|
+
[name: string]: unknown;
|
|
32985
|
+
};
|
|
32986
|
+
content: {
|
|
32987
|
+
/**
|
|
32988
|
+
* @example {
|
|
32989
|
+
* "object": "connected_account",
|
|
32990
|
+
* "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
32991
|
+
* "user_id": null,
|
|
32992
|
+
* "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
32993
|
+
* "scopes": [
|
|
32994
|
+
* "repo",
|
|
32995
|
+
* "user:email"
|
|
32996
|
+
* ],
|
|
32997
|
+
* "auth_method": "oauth",
|
|
32998
|
+
* "api_key_last_4": null,
|
|
32999
|
+
* "client_id": "3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc",
|
|
33000
|
+
* "client_secret_last_4": "cdef",
|
|
33001
|
+
* "config": {
|
|
33002
|
+
* "instance_url": "https://example.my.salesforce.com"
|
|
33003
|
+
* },
|
|
33004
|
+
* "state": "connected",
|
|
33005
|
+
* "created_at": "2024-01-16T14:20:00.000Z",
|
|
33006
|
+
* "updated_at": "2024-01-16T14:20:00.000Z"
|
|
33007
|
+
* }
|
|
33008
|
+
*/
|
|
33009
|
+
"application/json": components["schemas"]["ConnectedAccount"];
|
|
33010
|
+
};
|
|
33011
|
+
};
|
|
33012
|
+
/** @description The connected account selector is malformed. */
|
|
33013
|
+
400: {
|
|
33014
|
+
headers: {
|
|
33015
|
+
[name: string]: unknown;
|
|
33016
|
+
};
|
|
33017
|
+
content: {
|
|
33018
|
+
"application/json": {
|
|
33019
|
+
/**
|
|
33020
|
+
* @description A human-readable description of the error.
|
|
33021
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
33022
|
+
*/
|
|
33023
|
+
message: string;
|
|
33024
|
+
};
|
|
33025
|
+
};
|
|
33026
|
+
};
|
|
33027
|
+
/** @description The request is missing a valid API key. */
|
|
33028
|
+
401: {
|
|
33029
|
+
headers: {
|
|
33030
|
+
[name: string]: unknown;
|
|
33031
|
+
};
|
|
33032
|
+
content?: never;
|
|
33033
|
+
};
|
|
33034
|
+
/** @description The organization or connected account was not found. */
|
|
33035
|
+
404: {
|
|
33036
|
+
headers: {
|
|
33037
|
+
[name: string]: unknown;
|
|
33038
|
+
};
|
|
33039
|
+
content: {
|
|
33040
|
+
"application/json": {
|
|
33041
|
+
/**
|
|
33042
|
+
* @description A human-readable description of the error.
|
|
33043
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
33044
|
+
*/
|
|
33045
|
+
message: string;
|
|
33046
|
+
};
|
|
33047
|
+
};
|
|
33048
|
+
};
|
|
33049
|
+
/** @description Several connected accounts match this organization for the provider; one must be named. */
|
|
33050
|
+
409: {
|
|
33051
|
+
headers: {
|
|
33052
|
+
[name: string]: unknown;
|
|
33053
|
+
};
|
|
33054
|
+
content: {
|
|
33055
|
+
"application/json": components["schemas"]["AccountSelectionRequiredError"];
|
|
33056
|
+
};
|
|
33057
|
+
};
|
|
33058
|
+
};
|
|
33059
|
+
};
|
|
33060
|
+
DataIntegrationsOrganizationController_updateOrganizationDataInstallation: {
|
|
33061
|
+
parameters: {
|
|
33062
|
+
query?: {
|
|
33063
|
+
/** @description Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. */
|
|
33064
|
+
supports_multiple_connections?: boolean;
|
|
33065
|
+
/** @description A [connected account](/reference/pipes/connected-account) identifier. Use this to select the connection to update. */
|
|
33066
|
+
connected_account_id?: string;
|
|
33067
|
+
};
|
|
33068
|
+
header?: never;
|
|
33069
|
+
path: {
|
|
33070
|
+
/** @description An [Organization](/reference/organization) identifier. */
|
|
33071
|
+
organization_id: string;
|
|
33072
|
+
/** @description The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
|
|
33073
|
+
slug: string;
|
|
33074
|
+
};
|
|
33075
|
+
cookie?: never;
|
|
33076
|
+
};
|
|
33077
|
+
requestBody: {
|
|
33078
|
+
content: {
|
|
33079
|
+
"application/json": components["schemas"]["ConnectedAccountDto"];
|
|
33080
|
+
};
|
|
33081
|
+
};
|
|
33082
|
+
responses: {
|
|
33083
|
+
/** @description The connected account was updated successfully. */
|
|
33084
|
+
200: {
|
|
33085
|
+
headers: {
|
|
33086
|
+
[name: string]: unknown;
|
|
33087
|
+
};
|
|
33088
|
+
content: {
|
|
33089
|
+
/**
|
|
33090
|
+
* @example {
|
|
33091
|
+
* "object": "connected_account",
|
|
33092
|
+
* "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
33093
|
+
* "user_id": null,
|
|
33094
|
+
* "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
33095
|
+
* "scopes": [
|
|
33096
|
+
* "repo",
|
|
33097
|
+
* "user:email"
|
|
33098
|
+
* ],
|
|
33099
|
+
* "auth_method": "oauth",
|
|
33100
|
+
* "api_key_last_4": null,
|
|
33101
|
+
* "client_id": "3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc",
|
|
33102
|
+
* "client_secret_last_4": "cdef",
|
|
33103
|
+
* "config": {
|
|
33104
|
+
* "instance_url": "https://example.my.salesforce.com"
|
|
33105
|
+
* },
|
|
33106
|
+
* "state": "connected",
|
|
33107
|
+
* "created_at": "2024-01-16T14:20:00.000Z",
|
|
33108
|
+
* "updated_at": "2024-01-16T14:20:00.000Z"
|
|
33109
|
+
* }
|
|
33110
|
+
*/
|
|
33111
|
+
"application/json": components["schemas"]["ConnectedAccount"];
|
|
33112
|
+
};
|
|
33113
|
+
};
|
|
33114
|
+
/** @description The connected account selector is malformed. */
|
|
33115
|
+
400: {
|
|
33116
|
+
headers: {
|
|
33117
|
+
[name: string]: unknown;
|
|
33118
|
+
};
|
|
33119
|
+
content: {
|
|
33120
|
+
"application/json": {
|
|
33121
|
+
/**
|
|
33122
|
+
* @description A human-readable description of the error.
|
|
33123
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
33124
|
+
*/
|
|
33125
|
+
message: string;
|
|
33126
|
+
};
|
|
33127
|
+
};
|
|
33128
|
+
};
|
|
33129
|
+
/** @description The request is missing a valid API key. */
|
|
33130
|
+
401: {
|
|
33131
|
+
headers: {
|
|
33132
|
+
[name: string]: unknown;
|
|
33133
|
+
};
|
|
33134
|
+
content?: never;
|
|
33135
|
+
};
|
|
33136
|
+
/** @description The organization or connected account was not found. */
|
|
33137
|
+
404: {
|
|
33138
|
+
headers: {
|
|
33139
|
+
[name: string]: unknown;
|
|
33140
|
+
};
|
|
33141
|
+
content: {
|
|
33142
|
+
"application/json": {
|
|
33143
|
+
/**
|
|
33144
|
+
* @description A human-readable description of the error.
|
|
33145
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
33146
|
+
*/
|
|
33147
|
+
message: string;
|
|
33148
|
+
};
|
|
33149
|
+
};
|
|
33150
|
+
};
|
|
33151
|
+
/** @description Several connected accounts match this organization for the provider; one must be named. */
|
|
33152
|
+
409: {
|
|
33153
|
+
headers: {
|
|
33154
|
+
[name: string]: unknown;
|
|
33155
|
+
};
|
|
33156
|
+
content: {
|
|
33157
|
+
"application/json": components["schemas"]["AccountSelectionRequiredError"];
|
|
33158
|
+
};
|
|
33159
|
+
};
|
|
33160
|
+
/** @description The request body is malformed (`invalid_request_parameters`). */
|
|
33161
|
+
422: {
|
|
33162
|
+
headers: {
|
|
33163
|
+
[name: string]: unknown;
|
|
33164
|
+
};
|
|
33165
|
+
content: {
|
|
33166
|
+
"application/json": {
|
|
33167
|
+
/**
|
|
33168
|
+
* @description The error code identifying the type of error.
|
|
33169
|
+
* @example invalid_request_parameters
|
|
33170
|
+
* @constant
|
|
33171
|
+
*/
|
|
33172
|
+
code: "invalid_request_parameters";
|
|
33173
|
+
/**
|
|
33174
|
+
* @description A human-readable description of the error.
|
|
33175
|
+
* @example Validation failed.
|
|
33176
|
+
*/
|
|
33177
|
+
message: string;
|
|
33178
|
+
/** @description The list of validation errors. */
|
|
33179
|
+
errors: {
|
|
33180
|
+
/**
|
|
33181
|
+
* @description The validation error code.
|
|
33182
|
+
* @example unknown_event_type
|
|
33183
|
+
*/
|
|
33184
|
+
code: string;
|
|
33185
|
+
/**
|
|
33186
|
+
* @description A human-readable description of the validation error.
|
|
33187
|
+
* @example Invalid enum value.
|
|
33188
|
+
*/
|
|
33189
|
+
message: string;
|
|
33190
|
+
}[];
|
|
33191
|
+
};
|
|
33192
|
+
};
|
|
33193
|
+
};
|
|
33194
|
+
};
|
|
33195
|
+
};
|
|
33196
|
+
DataIntegrationsOrganizationController_createOrganizationDataInstallation: {
|
|
33197
|
+
parameters: {
|
|
33198
|
+
query?: never;
|
|
33199
|
+
header?: never;
|
|
33200
|
+
path: {
|
|
33201
|
+
/** @description An [Organization](/reference/organization) identifier. */
|
|
33202
|
+
organization_id: string;
|
|
33203
|
+
/** @description The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
|
|
33204
|
+
slug: string;
|
|
33205
|
+
};
|
|
33206
|
+
cookie?: never;
|
|
33207
|
+
};
|
|
33208
|
+
requestBody: {
|
|
33209
|
+
content: {
|
|
33210
|
+
"application/json": components["schemas"]["ConnectedAccountDto"];
|
|
33211
|
+
};
|
|
33212
|
+
};
|
|
33213
|
+
responses: {
|
|
33214
|
+
/** @description The connected account was created successfully. */
|
|
33215
|
+
201: {
|
|
33216
|
+
headers: {
|
|
33217
|
+
[name: string]: unknown;
|
|
33218
|
+
};
|
|
33219
|
+
content: {
|
|
33220
|
+
/**
|
|
33221
|
+
* @example {
|
|
33222
|
+
* "object": "connected_account",
|
|
33223
|
+
* "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
33224
|
+
* "user_id": null,
|
|
33225
|
+
* "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
33226
|
+
* "scopes": [
|
|
33227
|
+
* "repo",
|
|
33228
|
+
* "user:email"
|
|
33229
|
+
* ],
|
|
33230
|
+
* "auth_method": "oauth",
|
|
33231
|
+
* "api_key_last_4": null,
|
|
33232
|
+
* "client_id": "3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc",
|
|
33233
|
+
* "client_secret_last_4": "cdef",
|
|
33234
|
+
* "config": {
|
|
33235
|
+
* "instance_url": "https://example.my.salesforce.com"
|
|
33236
|
+
* },
|
|
33237
|
+
* "state": "connected",
|
|
33238
|
+
* "created_at": "2024-01-16T14:20:00.000Z",
|
|
33239
|
+
* "updated_at": "2024-01-16T14:20:00.000Z"
|
|
33240
|
+
* }
|
|
33241
|
+
*/
|
|
33242
|
+
"application/json": components["schemas"]["ConnectedAccount"];
|
|
33243
|
+
};
|
|
33244
|
+
};
|
|
33245
|
+
/** @description The request is missing a valid API key. */
|
|
33246
|
+
401: {
|
|
33247
|
+
headers: {
|
|
33248
|
+
[name: string]: unknown;
|
|
33249
|
+
};
|
|
33250
|
+
content?: never;
|
|
33251
|
+
};
|
|
33252
|
+
/** @description The organization or data integration was not found. */
|
|
33253
|
+
404: {
|
|
33254
|
+
headers: {
|
|
33255
|
+
[name: string]: unknown;
|
|
33256
|
+
};
|
|
33257
|
+
content: {
|
|
33258
|
+
"application/json": {
|
|
33259
|
+
/**
|
|
33260
|
+
* @description A human-readable description of the error.
|
|
33261
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
33262
|
+
*/
|
|
33263
|
+
message: string;
|
|
33264
|
+
};
|
|
33265
|
+
};
|
|
33266
|
+
};
|
|
33267
|
+
/** @description A connected account already exists for this organization and integration. */
|
|
33268
|
+
409: {
|
|
33269
|
+
headers: {
|
|
33270
|
+
[name: string]: unknown;
|
|
33271
|
+
};
|
|
33272
|
+
content: {
|
|
33273
|
+
"application/json": {
|
|
33274
|
+
/**
|
|
33275
|
+
* @description A human-readable description of the error.
|
|
33276
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
33277
|
+
*/
|
|
33278
|
+
message: string;
|
|
33279
|
+
};
|
|
33280
|
+
};
|
|
33281
|
+
};
|
|
33282
|
+
/** @description The request body is malformed (`invalid_request_parameters`), the data integration is not in a valid state (`invalid_data_integration_state`), the token combination is invalid (`invalid_token_combination`), or no client credentials are configured for the data integration (`client_credentials_not_configured`). */
|
|
33283
|
+
422: {
|
|
33284
|
+
headers: {
|
|
33285
|
+
[name: string]: unknown;
|
|
33286
|
+
};
|
|
33287
|
+
content: {
|
|
33288
|
+
"application/json": {
|
|
33289
|
+
/**
|
|
33290
|
+
* @description The error code identifying the type of error.
|
|
33291
|
+
* @example invalid_token_combination
|
|
33292
|
+
* @enum {string}
|
|
33293
|
+
*/
|
|
33294
|
+
code: "invalid_token_combination" | "invalid_data_integration_state" | "client_credentials_not_configured";
|
|
33295
|
+
/**
|
|
33296
|
+
* @description A human-readable description of the error.
|
|
33297
|
+
* @example Request could not be processed.
|
|
33298
|
+
*/
|
|
33299
|
+
message: string;
|
|
33300
|
+
} | {
|
|
33301
|
+
/**
|
|
33302
|
+
* @description The error code identifying the type of error.
|
|
33303
|
+
* @example invalid_request_parameters
|
|
33304
|
+
* @constant
|
|
33305
|
+
*/
|
|
33306
|
+
code: "invalid_request_parameters";
|
|
33307
|
+
/**
|
|
33308
|
+
* @description A human-readable description of the error.
|
|
33309
|
+
* @example Validation failed.
|
|
33310
|
+
*/
|
|
33311
|
+
message: string;
|
|
33312
|
+
/** @description The list of validation errors. */
|
|
33313
|
+
errors: {
|
|
33314
|
+
/**
|
|
33315
|
+
* @description The validation error code.
|
|
33316
|
+
* @example unknown_event_type
|
|
33317
|
+
*/
|
|
33318
|
+
code: string;
|
|
33319
|
+
/**
|
|
33320
|
+
* @description A human-readable description of the validation error.
|
|
33321
|
+
* @example Invalid enum value.
|
|
33322
|
+
*/
|
|
33323
|
+
message: string;
|
|
33324
|
+
}[];
|
|
33325
|
+
};
|
|
33326
|
+
};
|
|
33327
|
+
};
|
|
33328
|
+
};
|
|
33329
|
+
};
|
|
33330
|
+
DataIntegrationsOrganizationController_deleteOrganizationDataInstallation: {
|
|
33331
|
+
parameters: {
|
|
33332
|
+
query?: {
|
|
33333
|
+
/** @description Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. */
|
|
33334
|
+
supports_multiple_connections?: boolean;
|
|
33335
|
+
/** @description A [connected account](/reference/pipes/connected-account) identifier. Use this to select the connection to delete. */
|
|
33336
|
+
connected_account_id?: string;
|
|
33337
|
+
};
|
|
33338
|
+
header?: never;
|
|
33339
|
+
path: {
|
|
33340
|
+
/** @description An [Organization](/reference/organization) identifier. */
|
|
33341
|
+
organization_id: string;
|
|
33342
|
+
/** @description The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
|
|
33343
|
+
slug: string;
|
|
33344
|
+
};
|
|
33345
|
+
cookie?: never;
|
|
33346
|
+
};
|
|
33347
|
+
requestBody?: never;
|
|
33348
|
+
responses: {
|
|
33349
|
+
/** @description The connected account was deleted successfully. */
|
|
33350
|
+
204: {
|
|
33351
|
+
headers: {
|
|
33352
|
+
[name: string]: unknown;
|
|
33353
|
+
};
|
|
33354
|
+
content?: never;
|
|
33355
|
+
};
|
|
33356
|
+
/** @description The connected account selector is malformed. */
|
|
33357
|
+
400: {
|
|
33358
|
+
headers: {
|
|
33359
|
+
[name: string]: unknown;
|
|
33360
|
+
};
|
|
33361
|
+
content: {
|
|
33362
|
+
"application/json": {
|
|
33363
|
+
/**
|
|
33364
|
+
* @description A human-readable description of the error.
|
|
33365
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
33366
|
+
*/
|
|
33367
|
+
message: string;
|
|
33368
|
+
};
|
|
33369
|
+
};
|
|
33370
|
+
};
|
|
33371
|
+
/** @description The request is missing a valid API key. */
|
|
33372
|
+
401: {
|
|
33373
|
+
headers: {
|
|
33374
|
+
[name: string]: unknown;
|
|
33375
|
+
};
|
|
33376
|
+
content?: never;
|
|
33377
|
+
};
|
|
33378
|
+
/** @description The organization or connected account was not found. */
|
|
33379
|
+
404: {
|
|
33380
|
+
headers: {
|
|
33381
|
+
[name: string]: unknown;
|
|
33382
|
+
};
|
|
33383
|
+
content: {
|
|
33384
|
+
"application/json": {
|
|
33385
|
+
/**
|
|
33386
|
+
* @description A human-readable description of the error.
|
|
33387
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
33388
|
+
*/
|
|
33389
|
+
message: string;
|
|
33390
|
+
};
|
|
33391
|
+
};
|
|
33392
|
+
};
|
|
33393
|
+
/** @description Several connected accounts match this organization for the provider; one must be named. */
|
|
33394
|
+
409: {
|
|
33395
|
+
headers: {
|
|
33396
|
+
[name: string]: unknown;
|
|
33397
|
+
};
|
|
33398
|
+
content: {
|
|
33399
|
+
"application/json": components["schemas"]["AccountSelectionRequiredError"];
|
|
33400
|
+
};
|
|
33401
|
+
};
|
|
33402
|
+
/** @description The connected account or its WorkOS OAuth grant is being changed by another request. Retry the request. */
|
|
33403
|
+
503: {
|
|
33404
|
+
headers: {
|
|
33405
|
+
[name: string]: unknown;
|
|
33406
|
+
};
|
|
33407
|
+
content: {
|
|
33408
|
+
"application/json": {
|
|
33409
|
+
/**
|
|
33410
|
+
* @description The error code identifying the type of error.
|
|
33411
|
+
* @example concurrent_request
|
|
33412
|
+
* @constant
|
|
33413
|
+
*/
|
|
33414
|
+
code: "concurrent_request";
|
|
33415
|
+
/**
|
|
33416
|
+
* @description A human-readable description of the error.
|
|
33417
|
+
* @example Request could not be processed.
|
|
33418
|
+
*/
|
|
33419
|
+
message: string;
|
|
33420
|
+
};
|
|
33421
|
+
};
|
|
33422
|
+
};
|
|
33423
|
+
};
|
|
33424
|
+
};
|
|
33425
|
+
DataIntegrationsOrganizationController_getOrganizationDataIntegrations: {
|
|
33426
|
+
parameters: {
|
|
33427
|
+
query?: {
|
|
33428
|
+
/** @description Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. */
|
|
33429
|
+
supports_multiple_connections?: boolean;
|
|
33430
|
+
};
|
|
33431
|
+
header?: never;
|
|
33432
|
+
path: {
|
|
33433
|
+
/** @description An [Organization](/reference/organization) identifier to list providers and connected accounts for. */
|
|
33434
|
+
organization_id: string;
|
|
33435
|
+
};
|
|
33436
|
+
cookie?: never;
|
|
33437
|
+
};
|
|
33438
|
+
requestBody?: never;
|
|
33439
|
+
responses: {
|
|
33440
|
+
/** @description The list of data providers was retrieved successfully. */
|
|
33441
|
+
200: {
|
|
33442
|
+
headers: {
|
|
33443
|
+
[name: string]: unknown;
|
|
33444
|
+
};
|
|
33445
|
+
content: {
|
|
33446
|
+
/**
|
|
33447
|
+
* @example {
|
|
33448
|
+
* "object": "list",
|
|
33449
|
+
* "data": [
|
|
33450
|
+
* {
|
|
33451
|
+
* "object": "data_provider",
|
|
33452
|
+
* "id": "data_integration_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
33453
|
+
* "name": "GitHub",
|
|
33454
|
+
* "description": "Connect your GitHub account to access repositories.",
|
|
33455
|
+
* "slug": "github",
|
|
33456
|
+
* "integration_type": "github",
|
|
33457
|
+
* "credentials_type": "oauth2",
|
|
33458
|
+
* "scopes": [
|
|
33459
|
+
* "repo",
|
|
33460
|
+
* "user:email"
|
|
33461
|
+
* ],
|
|
33462
|
+
* "auth_methods": [
|
|
33463
|
+
* "oauth"
|
|
33464
|
+
* ],
|
|
33465
|
+
* "ownership": "organization",
|
|
33466
|
+
* "created_at": "2024-01-15T10:30:00.000Z",
|
|
33467
|
+
* "updated_at": "2024-01-15T10:30:00.000Z",
|
|
33468
|
+
* "integrationType": "github",
|
|
33469
|
+
* "credentialsType": "oauth2",
|
|
33470
|
+
* "createdAt": "2024-01-15T10:30:00.000Z",
|
|
33471
|
+
* "updatedAt": "2024-01-15T10:30:00.000Z",
|
|
33472
|
+
* "connected_account": {
|
|
33473
|
+
* "object": "connected_account",
|
|
33474
|
+
* "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
33475
|
+
* "user_id": null,
|
|
33476
|
+
* "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
33477
|
+
* "scopes": [
|
|
33478
|
+
* "repo",
|
|
33479
|
+
* "user:email"
|
|
33480
|
+
* ],
|
|
33481
|
+
* "auth_method": "oauth",
|
|
33482
|
+
* "api_key_last_4": null,
|
|
33483
|
+
* "client_id": "3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc",
|
|
33484
|
+
* "client_secret_last_4": "cdef",
|
|
33485
|
+
* "config": {
|
|
33486
|
+
* "instance_url": "https://example.my.salesforce.com"
|
|
33487
|
+
* },
|
|
33488
|
+
* "state": "connected",
|
|
33489
|
+
* "created_at": "2024-01-16T14:20:00.000Z",
|
|
33490
|
+
* "updated_at": "2024-01-16T14:20:00.000Z",
|
|
33491
|
+
* "userlandUserId": null,
|
|
33492
|
+
* "organizationId": "org_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
33493
|
+
* "createdAt": "2024-01-16T14:20:00.000Z",
|
|
33494
|
+
* "updatedAt": "2024-01-16T14:20:00.000Z"
|
|
33495
|
+
* },
|
|
33496
|
+
* "connected_accounts": [
|
|
33497
|
+
* {
|
|
33498
|
+
* "object": "connected_account",
|
|
33499
|
+
* "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
33500
|
+
* "user_id": null,
|
|
33501
|
+
* "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
33502
|
+
* "scopes": [
|
|
33503
|
+
* "repo",
|
|
33504
|
+
* "user:email"
|
|
33505
|
+
* ],
|
|
33506
|
+
* "auth_method": "oauth",
|
|
33507
|
+
* "api_key_last_4": null,
|
|
33508
|
+
* "client_id": "3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc",
|
|
33509
|
+
* "client_secret_last_4": "cdef",
|
|
33510
|
+
* "config": {
|
|
33511
|
+
* "instance_url": "https://example.my.salesforce.com"
|
|
33512
|
+
* },
|
|
33513
|
+
* "state": "connected",
|
|
33514
|
+
* "created_at": "2024-01-16T14:20:00.000Z",
|
|
33515
|
+
* "updated_at": "2024-01-16T14:20:00.000Z",
|
|
33516
|
+
* "userlandUserId": null,
|
|
33517
|
+
* "organizationId": "org_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
33518
|
+
* "createdAt": "2024-01-16T14:20:00.000Z",
|
|
33519
|
+
* "updatedAt": "2024-01-16T14:20:00.000Z"
|
|
33520
|
+
* }
|
|
33521
|
+
* ]
|
|
33522
|
+
* }
|
|
33523
|
+
* ]
|
|
33524
|
+
* }
|
|
33525
|
+
*/
|
|
33526
|
+
"application/json": components["schemas"]["DataIntegrationsListResponse"];
|
|
33527
|
+
};
|
|
33528
|
+
};
|
|
33529
|
+
/** @description The request is missing a valid API key. */
|
|
33530
|
+
401: {
|
|
33531
|
+
headers: {
|
|
33532
|
+
[name: string]: unknown;
|
|
33533
|
+
};
|
|
33534
|
+
content?: never;
|
|
33535
|
+
};
|
|
33536
|
+
/** @description The organization was not found. */
|
|
33537
|
+
404: {
|
|
33538
|
+
headers: {
|
|
33539
|
+
[name: string]: unknown;
|
|
33540
|
+
};
|
|
33541
|
+
content: {
|
|
33542
|
+
"application/json": {
|
|
33543
|
+
/**
|
|
33544
|
+
* @description A human-readable description of the error.
|
|
33545
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
33546
|
+
*/
|
|
33547
|
+
message: string;
|
|
33548
|
+
};
|
|
33549
|
+
};
|
|
33550
|
+
};
|
|
33551
|
+
};
|
|
33552
|
+
};
|
|
32904
33553
|
ItContactsController_list: {
|
|
32905
33554
|
parameters: {
|
|
32906
33555
|
query?: never;
|
|
@@ -40126,7 +40775,7 @@ export interface operations {
|
|
|
40126
40775
|
};
|
|
40127
40776
|
};
|
|
40128
40777
|
};
|
|
40129
|
-
/** @description The request body is malformed (`invalid_request_parameters`), the data integration is not in a valid state (`invalid_data_integration_state`), the token combination is invalid (`invalid_token_combination`), or `refresh_token` is not an active WorkOS OAuth grant of this user (`invalid_refresh_token`). */
|
|
40778
|
+
/** @description The request body is malformed (`invalid_request_parameters`), the data integration is not in a valid state (`invalid_data_integration_state`), the token combination is invalid (`invalid_token_combination`), no client credentials are configured for the data integration (`client_credentials_not_configured`), or `refresh_token` is not an active WorkOS OAuth grant of this user (`invalid_refresh_token`). */
|
|
40130
40779
|
422: {
|
|
40131
40780
|
headers: {
|
|
40132
40781
|
[name: string]: unknown;
|
|
@@ -40138,7 +40787,7 @@ export interface operations {
|
|
|
40138
40787
|
* @example invalid_refresh_token
|
|
40139
40788
|
* @enum {string}
|
|
40140
40789
|
*/
|
|
40141
|
-
code: "invalid_refresh_token" | "invalid_token_combination" | "invalid_data_integration_state";
|
|
40790
|
+
code: "invalid_refresh_token" | "invalid_token_combination" | "invalid_data_integration_state" | "client_credentials_not_configured";
|
|
40142
40791
|
/**
|
|
40143
40792
|
* @description A human-readable description of the error.
|
|
40144
40793
|
* @example Request could not be processed.
|