@workos/openapi-spec 0.113.0 → 0.115.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 +510 -145
- package/dist/services.mjs +10 -0
- package/dist/types.d.ts +382 -69
- package/package.json +1 -1
package/dist/services.mjs
CHANGED
|
@@ -786,6 +786,11 @@ const serviceEndpoints = {
|
|
|
786
786
|
"path": "/data-integrations/{slug}",
|
|
787
787
|
"name": "update_data_integration"
|
|
788
788
|
},
|
|
789
|
+
{
|
|
790
|
+
"method": "POST",
|
|
791
|
+
"path": "/data-integrations/{slug}/api-key",
|
|
792
|
+
"name": "create_data_integration_api_key"
|
|
793
|
+
},
|
|
789
794
|
{
|
|
790
795
|
"method": "PUT",
|
|
791
796
|
"path": "/data-integrations/{slug}/api-key",
|
|
@@ -796,6 +801,11 @@ const serviceEndpoints = {
|
|
|
796
801
|
"path": "/data-integrations/{slug}/authorize",
|
|
797
802
|
"name": "authorize_data_integration"
|
|
798
803
|
},
|
|
804
|
+
{
|
|
805
|
+
"method": "POST",
|
|
806
|
+
"path": "/data-integrations/{slug}/client-credentials",
|
|
807
|
+
"name": "create_data_integration_client_credential"
|
|
808
|
+
},
|
|
799
809
|
{
|
|
800
810
|
"method": "PUT",
|
|
801
811
|
"path": "/data-integrations/{slug}/client-credentials",
|
package/dist/types.d.ts
CHANGED
|
@@ -1471,10 +1471,14 @@ export interface paths {
|
|
|
1471
1471
|
get?: never;
|
|
1472
1472
|
/**
|
|
1473
1473
|
* Upsert an API key for a connected account
|
|
1474
|
-
* @description Creates or updates an API-key-based installation for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. If an installation already exists, the stored API key is rotated to the new value.
|
|
1474
|
+
* @description Creates or updates an API-key-based installation for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. If an installation already exists, the stored API key is rotated to the new value. To create another connection, use POST.
|
|
1475
1475
|
*/
|
|
1476
1476
|
put: operations["DataIntegrationsController_upsertApiKey"];
|
|
1477
|
-
|
|
1477
|
+
/**
|
|
1478
|
+
* Create another API key connected account
|
|
1479
|
+
* @description Creates another API key-based connected account for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. Requires `connection_intent: add` and does not accept `connected_account_id`; use PUT to create or rotate the compatibility connection or to update an exact connection. Creating an additional connection is not yet available: until it is, this endpoint succeeds only when the owner has no connection for this integration, which creates the compatibility connection, and otherwise returns 404 `multiple_connections_unavailable`.
|
|
1480
|
+
*/
|
|
1481
|
+
post: operations["DataIntegrationsController_createApiKeyConnection"];
|
|
1478
1482
|
delete?: never;
|
|
1479
1483
|
options?: never;
|
|
1480
1484
|
head?: never;
|
|
@@ -1511,10 +1515,14 @@ export interface paths {
|
|
|
1511
1515
|
get?: never;
|
|
1512
1516
|
/**
|
|
1513
1517
|
* Upsert client credentials for a connected account
|
|
1514
|
-
* @description Creates or updates a client-credentials-based installation for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. If an installation already exists, the stored client credentials are rotated to the new values.
|
|
1518
|
+
* @description Creates or updates a client-credentials-based installation for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. If an installation already exists, the stored client credentials are rotated to the new values. To create another connection, use POST.
|
|
1515
1519
|
*/
|
|
1516
1520
|
put: operations["DataIntegrationsController_upsertClientCredentials"];
|
|
1517
|
-
|
|
1521
|
+
/**
|
|
1522
|
+
* Create another client credentials connected account
|
|
1523
|
+
* @description Creates another client credentials-based connected account for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. Requires `connection_intent: add` and does not accept `connected_account_id`; use PUT to create or rotate the compatibility connection or to update an exact connection. Creating an additional connection is not yet available: until it is, this endpoint succeeds only when the owner has no connection for this integration, which creates the compatibility connection, and otherwise returns 404 `multiple_connections_unavailable`.
|
|
1524
|
+
*/
|
|
1525
|
+
post: operations["DataIntegrationsController_createClientCredentialsConnection"];
|
|
1518
1526
|
delete?: never;
|
|
1519
1527
|
options?: never;
|
|
1520
1528
|
head?: never;
|
|
@@ -5566,7 +5574,7 @@ export interface components {
|
|
|
5566
5574
|
*/
|
|
5567
5575
|
user_id: string;
|
|
5568
5576
|
/**
|
|
5569
|
-
* @description Set to `add` to create another connected account. Omit this field for permanent compatibility behavior.
|
|
5577
|
+
* @description Set to `add` to create another connected account. Omit this field for permanent compatibility behavior. Creating an additional connection is not yet available: until it is, `add` succeeds only when the owner has no connection for this integration, which creates the compatibility connection, and otherwise returns 404 `multiple_connections_unavailable`.
|
|
5570
5578
|
* @example add
|
|
5571
5579
|
* @constant
|
|
5572
5580
|
*/
|
|
@@ -5641,7 +5649,7 @@ export interface components {
|
|
|
5641
5649
|
*/
|
|
5642
5650
|
state?: "connected" | "needs_reauthorization";
|
|
5643
5651
|
/**
|
|
5644
|
-
* @description Set to `add` to create another connected account. Omit this field for permanent compatibility behavior.
|
|
5652
|
+
* @description Set to `add` to create another connected account. Omit this field for permanent compatibility behavior. Creating an additional connection is not yet available: until it is, `add` succeeds only when the owner has no connection for this integration, which creates the compatibility connection, and otherwise returns 404 `multiple_connections_unavailable`.
|
|
5645
5653
|
* @example add
|
|
5646
5654
|
* @constant
|
|
5647
5655
|
*/
|
|
@@ -28121,6 +28129,30 @@ export interface operations {
|
|
|
28121
28129
|
* @example Request could not be processed.
|
|
28122
28130
|
*/
|
|
28123
28131
|
message: string;
|
|
28132
|
+
} | {
|
|
28133
|
+
/**
|
|
28134
|
+
* @description The error code identifying the type of error.
|
|
28135
|
+
* @example resource_limit_exceeded
|
|
28136
|
+
* @constant
|
|
28137
|
+
*/
|
|
28138
|
+
code: "resource_limit_exceeded";
|
|
28139
|
+
/**
|
|
28140
|
+
* @description A human-readable description of the error.
|
|
28141
|
+
* @example Request could not be processed.
|
|
28142
|
+
*/
|
|
28143
|
+
message: string;
|
|
28144
|
+
} | {
|
|
28145
|
+
/**
|
|
28146
|
+
* @description The error code identifying the type of error.
|
|
28147
|
+
* @example too_many_sp_encryption_certs
|
|
28148
|
+
* @constant
|
|
28149
|
+
*/
|
|
28150
|
+
code: "too_many_sp_encryption_certs";
|
|
28151
|
+
/**
|
|
28152
|
+
* @description A human-readable description of the error.
|
|
28153
|
+
* @example Request could not be processed.
|
|
28154
|
+
*/
|
|
28155
|
+
message: string;
|
|
28124
28156
|
};
|
|
28125
28157
|
};
|
|
28126
28158
|
};
|
|
@@ -29745,34 +29777,6 @@ export interface operations {
|
|
|
29745
29777
|
* @example sk-1234567890abcdef
|
|
29746
29778
|
*/
|
|
29747
29779
|
secret: string;
|
|
29748
|
-
} | {
|
|
29749
|
-
/**
|
|
29750
|
-
* @description A [User](/reference/authkit/user) identifier.
|
|
29751
|
-
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
29752
|
-
*/
|
|
29753
|
-
user_id: string;
|
|
29754
|
-
/**
|
|
29755
|
-
* @description An [Organization](/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`.
|
|
29756
|
-
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
29757
|
-
*/
|
|
29758
|
-
organization_id?: string;
|
|
29759
|
-
/**
|
|
29760
|
-
* @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.
|
|
29761
|
-
* @example user
|
|
29762
|
-
* @enum {string}
|
|
29763
|
-
*/
|
|
29764
|
-
connection_owner?: "user" | "organization";
|
|
29765
|
-
/**
|
|
29766
|
-
* @description The API key secret to store for this integration.
|
|
29767
|
-
* @example sk-1234567890abcdef
|
|
29768
|
-
*/
|
|
29769
|
-
secret: string;
|
|
29770
|
-
/**
|
|
29771
|
-
* @description Create another connection. The first connection for an owner shape fills the compatibility slot; later connections are standard.
|
|
29772
|
-
* @example add
|
|
29773
|
-
* @constant
|
|
29774
|
-
*/
|
|
29775
|
-
connection_intent: "add";
|
|
29776
29780
|
} | {
|
|
29777
29781
|
/**
|
|
29778
29782
|
* @description A [User](/reference/authkit/user) identifier.
|
|
@@ -29935,6 +29939,163 @@ export interface operations {
|
|
|
29935
29939
|
};
|
|
29936
29940
|
};
|
|
29937
29941
|
};
|
|
29942
|
+
DataIntegrationsController_createApiKeyConnection: {
|
|
29943
|
+
parameters: {
|
|
29944
|
+
query?: never;
|
|
29945
|
+
header?: never;
|
|
29946
|
+
path: {
|
|
29947
|
+
/** @description The identifier of the integration. */
|
|
29948
|
+
slug: string;
|
|
29949
|
+
};
|
|
29950
|
+
cookie?: never;
|
|
29951
|
+
};
|
|
29952
|
+
requestBody: {
|
|
29953
|
+
content: {
|
|
29954
|
+
"application/json": {
|
|
29955
|
+
/**
|
|
29956
|
+
* @description A [User](/reference/authkit/user) identifier.
|
|
29957
|
+
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
29958
|
+
*/
|
|
29959
|
+
user_id: string;
|
|
29960
|
+
/**
|
|
29961
|
+
* @description An [Organization](/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`.
|
|
29962
|
+
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
29963
|
+
*/
|
|
29964
|
+
organization_id?: string;
|
|
29965
|
+
/**
|
|
29966
|
+
* @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.
|
|
29967
|
+
* @example user
|
|
29968
|
+
* @enum {string}
|
|
29969
|
+
*/
|
|
29970
|
+
connection_owner?: "user" | "organization";
|
|
29971
|
+
/**
|
|
29972
|
+
* @description The API key secret to store for this integration.
|
|
29973
|
+
* @example sk-1234567890abcdef
|
|
29974
|
+
*/
|
|
29975
|
+
secret: string;
|
|
29976
|
+
/**
|
|
29977
|
+
* @description Must be `add`: this endpoint only creates 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`.
|
|
29978
|
+
* @example add
|
|
29979
|
+
* @constant
|
|
29980
|
+
*/
|
|
29981
|
+
connection_intent: "add";
|
|
29982
|
+
};
|
|
29983
|
+
};
|
|
29984
|
+
};
|
|
29985
|
+
responses: {
|
|
29986
|
+
/** @description The connected account that was created. */
|
|
29987
|
+
201: {
|
|
29988
|
+
headers: {
|
|
29989
|
+
[name: string]: unknown;
|
|
29990
|
+
};
|
|
29991
|
+
content: {
|
|
29992
|
+
/**
|
|
29993
|
+
* @example {
|
|
29994
|
+
* "object": "connected_account",
|
|
29995
|
+
* "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
29996
|
+
* "connection_role": "standard",
|
|
29997
|
+
* "account_identifier": null,
|
|
29998
|
+
* "account_display_name": null,
|
|
29999
|
+
* "user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
30000
|
+
* "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
30001
|
+
* "scopes": [],
|
|
30002
|
+
* "auth_method": "api_key",
|
|
30003
|
+
* "api_key_last_4": "cdef",
|
|
30004
|
+
* "state": "connected",
|
|
30005
|
+
* "created_at": "2024-01-16T14:20:00.000Z",
|
|
30006
|
+
* "updated_at": "2024-01-16T14:20:00.000Z"
|
|
30007
|
+
* }
|
|
30008
|
+
*/
|
|
30009
|
+
"application/json": components["schemas"]["ConnectedAccount"];
|
|
30010
|
+
};
|
|
30011
|
+
};
|
|
30012
|
+
/** @description The request is invalid, including a missing `connection_intent: add` or a supplied `connected_account_id`. */
|
|
30013
|
+
400: {
|
|
30014
|
+
headers: {
|
|
30015
|
+
[name: string]: unknown;
|
|
30016
|
+
};
|
|
30017
|
+
content: {
|
|
30018
|
+
"application/json": {
|
|
30019
|
+
/**
|
|
30020
|
+
* @description A human-readable description of the error.
|
|
30021
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
30022
|
+
*/
|
|
30023
|
+
message: string;
|
|
30024
|
+
};
|
|
30025
|
+
};
|
|
30026
|
+
};
|
|
30027
|
+
/** @description Unauthorized */
|
|
30028
|
+
401: {
|
|
30029
|
+
headers: {
|
|
30030
|
+
[name: string]: unknown;
|
|
30031
|
+
};
|
|
30032
|
+
content?: never;
|
|
30033
|
+
};
|
|
30034
|
+
/** @description Forbidden */
|
|
30035
|
+
403: {
|
|
30036
|
+
headers: {
|
|
30037
|
+
[name: string]: unknown;
|
|
30038
|
+
};
|
|
30039
|
+
content: {
|
|
30040
|
+
"application/json": {
|
|
30041
|
+
/**
|
|
30042
|
+
* @description A human-readable description of the error.
|
|
30043
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
30044
|
+
*/
|
|
30045
|
+
message: string;
|
|
30046
|
+
};
|
|
30047
|
+
};
|
|
30048
|
+
};
|
|
30049
|
+
/** @description The data integration was not found, or `multiple_connections_unavailable` when creating an additional connection is not yet available. */
|
|
30050
|
+
404: {
|
|
30051
|
+
headers: {
|
|
30052
|
+
[name: string]: unknown;
|
|
30053
|
+
};
|
|
30054
|
+
content: {
|
|
30055
|
+
"application/json": {
|
|
30056
|
+
/**
|
|
30057
|
+
* @description The error code identifying the type of error.
|
|
30058
|
+
* @example multiple_connections_unavailable
|
|
30059
|
+
* @enum {string}
|
|
30060
|
+
*/
|
|
30061
|
+
code: "multiple_connections_unavailable" | "entity_not_found";
|
|
30062
|
+
/**
|
|
30063
|
+
* @description A human-readable description of the error.
|
|
30064
|
+
* @example Request could not be processed.
|
|
30065
|
+
*/
|
|
30066
|
+
message: string;
|
|
30067
|
+
} | {
|
|
30068
|
+
/**
|
|
30069
|
+
* @description A human-readable description of the error.
|
|
30070
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
30071
|
+
*/
|
|
30072
|
+
message: string;
|
|
30073
|
+
};
|
|
30074
|
+
};
|
|
30075
|
+
};
|
|
30076
|
+
/** @description Another connection is being created for this owner and provider. Retry the request. */
|
|
30077
|
+
503: {
|
|
30078
|
+
headers: {
|
|
30079
|
+
[name: string]: unknown;
|
|
30080
|
+
};
|
|
30081
|
+
content: {
|
|
30082
|
+
"application/json": {
|
|
30083
|
+
/**
|
|
30084
|
+
* @description The error code identifying the type of error.
|
|
30085
|
+
* @example concurrent_request
|
|
30086
|
+
* @constant
|
|
30087
|
+
*/
|
|
30088
|
+
code: "concurrent_request";
|
|
30089
|
+
/**
|
|
30090
|
+
* @description A human-readable description of the error.
|
|
30091
|
+
* @example Request could not be processed.
|
|
30092
|
+
*/
|
|
30093
|
+
message: string;
|
|
30094
|
+
};
|
|
30095
|
+
};
|
|
30096
|
+
};
|
|
30097
|
+
};
|
|
30098
|
+
};
|
|
29938
30099
|
DataIntegrationsController_getDataIntegrationAuthorizeUrl: {
|
|
29939
30100
|
parameters: {
|
|
29940
30101
|
query?: never;
|
|
@@ -30131,11 +30292,16 @@ export interface operations {
|
|
|
30131
30292
|
[key: string]: string;
|
|
30132
30293
|
};
|
|
30133
30294
|
/**
|
|
30134
|
-
* @description
|
|
30135
|
-
* @example
|
|
30295
|
+
* @description Reauthorize exactly the connection named by `connected_account_id`.
|
|
30296
|
+
* @example reauthorize
|
|
30136
30297
|
* @constant
|
|
30137
30298
|
*/
|
|
30138
|
-
connection_intent: "
|
|
30299
|
+
connection_intent: "reauthorize";
|
|
30300
|
+
/**
|
|
30301
|
+
* @description The exact connected account to reauthorize. Required with `connection_intent: reauthorize`.
|
|
30302
|
+
* @example data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30303
|
+
*/
|
|
30304
|
+
connected_account_id: string;
|
|
30139
30305
|
} | {
|
|
30140
30306
|
/**
|
|
30141
30307
|
* @description A [User](/reference/authkit/user) identifier.
|
|
@@ -30173,17 +30339,124 @@ export interface operations {
|
|
|
30173
30339
|
[key: string]: string;
|
|
30174
30340
|
};
|
|
30175
30341
|
/**
|
|
30176
|
-
* @description
|
|
30177
|
-
* @example reauthorize
|
|
30178
|
-
* @constant
|
|
30179
|
-
*/
|
|
30180
|
-
connection_intent: "reauthorize";
|
|
30181
|
-
/**
|
|
30182
|
-
* @description The exact connected account to reauthorize. Required with `connection_intent: reauthorize`.
|
|
30342
|
+
* @description The exact connected account to reauthorize. The reauthorize intent may be omitted for compatibility.
|
|
30183
30343
|
* @example data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
30184
30344
|
*/
|
|
30185
30345
|
connected_account_id: string;
|
|
30186
|
-
}
|
|
30346
|
+
};
|
|
30347
|
+
};
|
|
30348
|
+
};
|
|
30349
|
+
responses: {
|
|
30350
|
+
/** @description The resulting connected account after the upsert. */
|
|
30351
|
+
200: {
|
|
30352
|
+
headers: {
|
|
30353
|
+
[name: string]: unknown;
|
|
30354
|
+
};
|
|
30355
|
+
content: {
|
|
30356
|
+
/**
|
|
30357
|
+
* @example {
|
|
30358
|
+
* "object": "connected_account",
|
|
30359
|
+
* "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
30360
|
+
* "connection_role": "compatibility",
|
|
30361
|
+
* "account_identifier": null,
|
|
30362
|
+
* "account_display_name": null,
|
|
30363
|
+
* "user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
30364
|
+
* "organization_id": "org_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
30365
|
+
* "scopes": [],
|
|
30366
|
+
* "auth_method": "client_credentials",
|
|
30367
|
+
* "state": "connected",
|
|
30368
|
+
* "created_at": "2024-01-16T14:20:00.000Z",
|
|
30369
|
+
* "updated_at": "2024-01-16T14:20:00.000Z"
|
|
30370
|
+
* }
|
|
30371
|
+
*/
|
|
30372
|
+
"application/json": components["schemas"]["ConnectedAccount"];
|
|
30373
|
+
};
|
|
30374
|
+
};
|
|
30375
|
+
/** @description Bad Request */
|
|
30376
|
+
400: {
|
|
30377
|
+
headers: {
|
|
30378
|
+
[name: string]: unknown;
|
|
30379
|
+
};
|
|
30380
|
+
content: {
|
|
30381
|
+
"application/json": {
|
|
30382
|
+
/**
|
|
30383
|
+
* @description A human-readable description of the error.
|
|
30384
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
30385
|
+
*/
|
|
30386
|
+
message: string;
|
|
30387
|
+
};
|
|
30388
|
+
};
|
|
30389
|
+
};
|
|
30390
|
+
/** @description Unauthorized */
|
|
30391
|
+
401: {
|
|
30392
|
+
headers: {
|
|
30393
|
+
[name: string]: unknown;
|
|
30394
|
+
};
|
|
30395
|
+
content?: never;
|
|
30396
|
+
};
|
|
30397
|
+
/** @description Forbidden */
|
|
30398
|
+
403: {
|
|
30399
|
+
headers: {
|
|
30400
|
+
[name: string]: unknown;
|
|
30401
|
+
};
|
|
30402
|
+
content: {
|
|
30403
|
+
"application/json": {
|
|
30404
|
+
/**
|
|
30405
|
+
* @description A human-readable description of the error.
|
|
30406
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
30407
|
+
*/
|
|
30408
|
+
message: string;
|
|
30409
|
+
};
|
|
30410
|
+
};
|
|
30411
|
+
};
|
|
30412
|
+
/** @description The data integration or selected connected account was not found. */
|
|
30413
|
+
404: {
|
|
30414
|
+
headers: {
|
|
30415
|
+
[name: string]: unknown;
|
|
30416
|
+
};
|
|
30417
|
+
content: {
|
|
30418
|
+
"application/json": {
|
|
30419
|
+
/**
|
|
30420
|
+
* @description A human-readable description of the error.
|
|
30421
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
30422
|
+
*/
|
|
30423
|
+
message: string;
|
|
30424
|
+
};
|
|
30425
|
+
};
|
|
30426
|
+
};
|
|
30427
|
+
/** @description Several connected accounts match the connection owner for the provider; one must be named. */
|
|
30428
|
+
409: {
|
|
30429
|
+
headers: {
|
|
30430
|
+
[name: string]: unknown;
|
|
30431
|
+
};
|
|
30432
|
+
content: {
|
|
30433
|
+
"application/json": components["schemas"]["AccountSelectionRequiredError"];
|
|
30434
|
+
};
|
|
30435
|
+
};
|
|
30436
|
+
/** @description The matched installation uses a different auth method than this endpoint expects. */
|
|
30437
|
+
422: {
|
|
30438
|
+
headers: {
|
|
30439
|
+
[name: string]: unknown;
|
|
30440
|
+
};
|
|
30441
|
+
content: {
|
|
30442
|
+
"application/json": components["schemas"]["AuthMethodMismatchError"];
|
|
30443
|
+
};
|
|
30444
|
+
};
|
|
30445
|
+
};
|
|
30446
|
+
};
|
|
30447
|
+
DataIntegrationsController_createClientCredentialsConnection: {
|
|
30448
|
+
parameters: {
|
|
30449
|
+
query?: never;
|
|
30450
|
+
header?: never;
|
|
30451
|
+
path: {
|
|
30452
|
+
/** @description The identifier of the integration. */
|
|
30453
|
+
slug: string;
|
|
30454
|
+
};
|
|
30455
|
+
cookie?: never;
|
|
30456
|
+
};
|
|
30457
|
+
requestBody: {
|
|
30458
|
+
content: {
|
|
30459
|
+
"application/json": {
|
|
30187
30460
|
/**
|
|
30188
30461
|
* @description A [User](/reference/authkit/user) identifier.
|
|
30189
30462
|
* @example user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
@@ -30220,16 +30493,17 @@ export interface operations {
|
|
|
30220
30493
|
[key: string]: string;
|
|
30221
30494
|
};
|
|
30222
30495
|
/**
|
|
30223
|
-
* @description
|
|
30224
|
-
* @example
|
|
30496
|
+
* @description Must be `add`: this endpoint only creates 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`.
|
|
30497
|
+
* @example add
|
|
30498
|
+
* @constant
|
|
30225
30499
|
*/
|
|
30226
|
-
|
|
30500
|
+
connection_intent: "add";
|
|
30227
30501
|
};
|
|
30228
30502
|
};
|
|
30229
30503
|
};
|
|
30230
30504
|
responses: {
|
|
30231
|
-
/** @description The
|
|
30232
|
-
|
|
30505
|
+
/** @description The connected account that was created. */
|
|
30506
|
+
201: {
|
|
30233
30507
|
headers: {
|
|
30234
30508
|
[name: string]: unknown;
|
|
30235
30509
|
};
|
|
@@ -30238,7 +30512,7 @@ export interface operations {
|
|
|
30238
30512
|
* @example {
|
|
30239
30513
|
* "object": "connected_account",
|
|
30240
30514
|
* "id": "data_installation_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
30241
|
-
* "connection_role": "
|
|
30515
|
+
* "connection_role": "standard",
|
|
30242
30516
|
* "account_identifier": null,
|
|
30243
30517
|
* "account_display_name": null,
|
|
30244
30518
|
* "user_id": "user_01EHZNVPK3SFK441A1RGBFSHRT",
|
|
@@ -30253,7 +30527,7 @@ export interface operations {
|
|
|
30253
30527
|
"application/json": components["schemas"]["ConnectedAccount"];
|
|
30254
30528
|
};
|
|
30255
30529
|
};
|
|
30256
|
-
/** @description
|
|
30530
|
+
/** @description The request is invalid, including a missing `connection_intent: add` or a supplied `connected_account_id`. */
|
|
30257
30531
|
400: {
|
|
30258
30532
|
headers: {
|
|
30259
30533
|
[name: string]: unknown;
|
|
@@ -30290,13 +30564,25 @@ export interface operations {
|
|
|
30290
30564
|
};
|
|
30291
30565
|
};
|
|
30292
30566
|
};
|
|
30293
|
-
/** @description The data integration or
|
|
30567
|
+
/** @description The data integration was not found, or `multiple_connections_unavailable` when creating an additional connection is not yet available. */
|
|
30294
30568
|
404: {
|
|
30295
30569
|
headers: {
|
|
30296
30570
|
[name: string]: unknown;
|
|
30297
30571
|
};
|
|
30298
30572
|
content: {
|
|
30299
30573
|
"application/json": {
|
|
30574
|
+
/**
|
|
30575
|
+
* @description The error code identifying the type of error.
|
|
30576
|
+
* @example multiple_connections_unavailable
|
|
30577
|
+
* @enum {string}
|
|
30578
|
+
*/
|
|
30579
|
+
code: "multiple_connections_unavailable" | "entity_not_found";
|
|
30580
|
+
/**
|
|
30581
|
+
* @description A human-readable description of the error.
|
|
30582
|
+
* @example Request could not be processed.
|
|
30583
|
+
*/
|
|
30584
|
+
message: string;
|
|
30585
|
+
} | {
|
|
30300
30586
|
/**
|
|
30301
30587
|
* @description A human-readable description of the error.
|
|
30302
30588
|
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
@@ -30305,22 +30591,25 @@ export interface operations {
|
|
|
30305
30591
|
};
|
|
30306
30592
|
};
|
|
30307
30593
|
};
|
|
30308
|
-
/** @description
|
|
30309
|
-
|
|
30310
|
-
headers: {
|
|
30311
|
-
[name: string]: unknown;
|
|
30312
|
-
};
|
|
30313
|
-
content: {
|
|
30314
|
-
"application/json": components["schemas"]["AccountSelectionRequiredError"];
|
|
30315
|
-
};
|
|
30316
|
-
};
|
|
30317
|
-
/** @description The matched installation uses a different auth method than this endpoint expects. */
|
|
30318
|
-
422: {
|
|
30594
|
+
/** @description Another connection is being created for this owner and provider. Retry the request. */
|
|
30595
|
+
503: {
|
|
30319
30596
|
headers: {
|
|
30320
30597
|
[name: string]: unknown;
|
|
30321
30598
|
};
|
|
30322
30599
|
content: {
|
|
30323
|
-
"application/json":
|
|
30600
|
+
"application/json": {
|
|
30601
|
+
/**
|
|
30602
|
+
* @description The error code identifying the type of error.
|
|
30603
|
+
* @example concurrent_request
|
|
30604
|
+
* @constant
|
|
30605
|
+
*/
|
|
30606
|
+
code: "concurrent_request";
|
|
30607
|
+
/**
|
|
30608
|
+
* @description A human-readable description of the error.
|
|
30609
|
+
* @example Request could not be processed.
|
|
30610
|
+
*/
|
|
30611
|
+
message: string;
|
|
30612
|
+
};
|
|
30324
30613
|
};
|
|
30325
30614
|
};
|
|
30326
30615
|
};
|
|
@@ -30446,7 +30735,7 @@ export interface operations {
|
|
|
30446
30735
|
};
|
|
30447
30736
|
};
|
|
30448
30737
|
};
|
|
30449
|
-
/** @description Several connected accounts match this user for the provider; one must be named. */
|
|
30738
|
+
/** @description Several connected accounts match this user or organization for the provider; one must be named. */
|
|
30450
30739
|
409: {
|
|
30451
30740
|
headers: {
|
|
30452
30741
|
[name: string]: unknown;
|
|
@@ -30864,7 +31153,7 @@ export interface operations {
|
|
|
30864
31153
|
};
|
|
30865
31154
|
};
|
|
30866
31155
|
};
|
|
30867
|
-
/** @description Several connected accounts match this user for the provider; one must be named. */
|
|
31156
|
+
/** @description Several connected accounts match this user or organization for the provider; one must be named. */
|
|
30868
31157
|
409: {
|
|
30869
31158
|
headers: {
|
|
30870
31159
|
[name: string]: unknown;
|
|
@@ -33945,13 +34234,25 @@ export interface operations {
|
|
|
33945
34234
|
};
|
|
33946
34235
|
};
|
|
33947
34236
|
};
|
|
33948
|
-
/** @description The organization, user, or data integration was not found. */
|
|
34237
|
+
/** @description The organization, user, or data integration was not found, or `multiple_connections_unavailable` when `connection_intent: add` would create an additional connection before that capability is available. */
|
|
33949
34238
|
404: {
|
|
33950
34239
|
headers: {
|
|
33951
34240
|
[name: string]: unknown;
|
|
33952
34241
|
};
|
|
33953
34242
|
content: {
|
|
33954
34243
|
"application/json": {
|
|
34244
|
+
/**
|
|
34245
|
+
* @description The error code identifying the type of error.
|
|
34246
|
+
* @example multiple_connections_unavailable
|
|
34247
|
+
* @enum {string}
|
|
34248
|
+
*/
|
|
34249
|
+
code: "multiple_connections_unavailable" | "entity_not_found";
|
|
34250
|
+
/**
|
|
34251
|
+
* @description A human-readable description of the error.
|
|
34252
|
+
* @example Request could not be processed.
|
|
34253
|
+
*/
|
|
34254
|
+
message: string;
|
|
34255
|
+
} | {
|
|
33955
34256
|
/**
|
|
33956
34257
|
* @description A human-readable description of the error.
|
|
33957
34258
|
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
@@ -41492,13 +41793,25 @@ export interface operations {
|
|
|
41492
41793
|
};
|
|
41493
41794
|
content?: never;
|
|
41494
41795
|
};
|
|
41495
|
-
/** @description The user, organization, or data integration was not found. */
|
|
41796
|
+
/** @description The user, organization, or data integration was not found, or `multiple_connections_unavailable` when `connection_intent: add` would create an additional connection before that capability is available. */
|
|
41496
41797
|
404: {
|
|
41497
41798
|
headers: {
|
|
41498
41799
|
[name: string]: unknown;
|
|
41499
41800
|
};
|
|
41500
41801
|
content: {
|
|
41501
41802
|
"application/json": {
|
|
41803
|
+
/**
|
|
41804
|
+
* @description The error code identifying the type of error.
|
|
41805
|
+
* @example multiple_connections_unavailable
|
|
41806
|
+
* @enum {string}
|
|
41807
|
+
*/
|
|
41808
|
+
code: "multiple_connections_unavailable" | "entity_not_found";
|
|
41809
|
+
/**
|
|
41810
|
+
* @description A human-readable description of the error.
|
|
41811
|
+
* @example Request could not be processed.
|
|
41812
|
+
*/
|
|
41813
|
+
message: string;
|
|
41814
|
+
} | {
|
|
41502
41815
|
/**
|
|
41503
41816
|
* @description A human-readable description of the error.
|
|
41504
41817
|
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|