@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/open-api-spec.yaml
CHANGED
|
@@ -8968,20 +8968,49 @@ paths:
|
|
|
8968
8968
|
content:
|
|
8969
8969
|
application/json:
|
|
8970
8970
|
schema:
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8971
|
+
oneOf:
|
|
8972
|
+
- type: object
|
|
8973
|
+
properties:
|
|
8974
|
+
code:
|
|
8975
|
+
type: string
|
|
8976
|
+
description: The error code identifying the type of error.
|
|
8977
|
+
example: connection_deletion_in_progress
|
|
8978
|
+
const: connection_deletion_in_progress
|
|
8979
|
+
message:
|
|
8980
|
+
type: string
|
|
8981
|
+
description: A human-readable description of the error.
|
|
8982
|
+
example: Request could not be processed.
|
|
8983
|
+
required:
|
|
8984
|
+
- code
|
|
8985
|
+
- message
|
|
8986
|
+
- type: object
|
|
8987
|
+
properties:
|
|
8988
|
+
code:
|
|
8989
|
+
type: string
|
|
8990
|
+
description: The error code identifying the type of error.
|
|
8991
|
+
example: resource_limit_exceeded
|
|
8992
|
+
const: resource_limit_exceeded
|
|
8993
|
+
message:
|
|
8994
|
+
type: string
|
|
8995
|
+
description: A human-readable description of the error.
|
|
8996
|
+
example: Request could not be processed.
|
|
8997
|
+
required:
|
|
8998
|
+
- code
|
|
8999
|
+
- message
|
|
9000
|
+
- type: object
|
|
9001
|
+
properties:
|
|
9002
|
+
code:
|
|
9003
|
+
type: string
|
|
9004
|
+
description: The error code identifying the type of error.
|
|
9005
|
+
example: too_many_sp_encryption_certs
|
|
9006
|
+
const: too_many_sp_encryption_certs
|
|
9007
|
+
message:
|
|
9008
|
+
type: string
|
|
9009
|
+
description: A human-readable description of the error.
|
|
9010
|
+
example: Request could not be processed.
|
|
9011
|
+
required:
|
|
9012
|
+
- code
|
|
9013
|
+
- message
|
|
8985
9014
|
'422':
|
|
8986
9015
|
description: Unprocessable Entity
|
|
8987
9016
|
content:
|
|
@@ -10767,12 +10796,198 @@ paths:
|
|
|
10767
10796
|
tags:
|
|
10768
10797
|
- pipes
|
|
10769
10798
|
/data-integrations/{slug}/api-key:
|
|
10799
|
+
post:
|
|
10800
|
+
description: >-
|
|
10801
|
+
Creates another API key-based connected account for the specified
|
|
10802
|
+
integration, owned by the user or, when `connection_owner` is
|
|
10803
|
+
`organization`, shared by the organization. Requires `connection_intent:
|
|
10804
|
+
add` and does not accept `connected_account_id`; use PUT to create or
|
|
10805
|
+
rotate the compatibility connection or to update an exact connection.
|
|
10806
|
+
Creating an additional connection is not yet available: until it is,
|
|
10807
|
+
this endpoint succeeds only when the owner has no connection for this
|
|
10808
|
+
integration, which creates the compatibility connection, and otherwise
|
|
10809
|
+
returns 404 `multiple_connections_unavailable`.
|
|
10810
|
+
operationId: DataIntegrationsController_createApiKeyConnection
|
|
10811
|
+
parameters:
|
|
10812
|
+
- name: slug
|
|
10813
|
+
required: true
|
|
10814
|
+
in: path
|
|
10815
|
+
description: The identifier of the integration.
|
|
10816
|
+
schema:
|
|
10817
|
+
example: github
|
|
10818
|
+
type: string
|
|
10819
|
+
requestBody:
|
|
10820
|
+
required: true
|
|
10821
|
+
content:
|
|
10822
|
+
application/json:
|
|
10823
|
+
schema:
|
|
10824
|
+
type: object
|
|
10825
|
+
properties:
|
|
10826
|
+
user_id:
|
|
10827
|
+
type: string
|
|
10828
|
+
description: A [User](/reference/authkit/user) identifier.
|
|
10829
|
+
example: user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
10830
|
+
organization_id:
|
|
10831
|
+
type: string
|
|
10832
|
+
description: >-
|
|
10833
|
+
An [Organization](/reference/organization) identifier.
|
|
10834
|
+
Optional parameter to scope the connection to a specific
|
|
10835
|
+
organization. Required when `connection_owner` is
|
|
10836
|
+
`organization`.
|
|
10837
|
+
example: org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
10838
|
+
connection_owner:
|
|
10839
|
+
type: string
|
|
10840
|
+
enum:
|
|
10841
|
+
- user
|
|
10842
|
+
- organization
|
|
10843
|
+
description: >-
|
|
10844
|
+
Whose connection to create or rotate. `user` (the default)
|
|
10845
|
+
addresses the connection owned by `user_id`. `organization`
|
|
10846
|
+
addresses the connection shared by every member of
|
|
10847
|
+
`organization_id`; `user_id` then identifies the member
|
|
10848
|
+
performing the request and must be an active member of the
|
|
10849
|
+
organization.
|
|
10850
|
+
example: user
|
|
10851
|
+
secret:
|
|
10852
|
+
type: string
|
|
10853
|
+
minLength: 1
|
|
10854
|
+
description: The API key secret to store for this integration.
|
|
10855
|
+
example: sk-1234567890abcdef
|
|
10856
|
+
connection_intent:
|
|
10857
|
+
type: string
|
|
10858
|
+
description: >-
|
|
10859
|
+
Must be `add`: this endpoint only creates another
|
|
10860
|
+
connection. The first connection for an owner shape fills
|
|
10861
|
+
the compatibility slot; later connections are standard.
|
|
10862
|
+
Creating an additional connection is not yet available:
|
|
10863
|
+
until it is, `add` succeeds only when the owner has no
|
|
10864
|
+
connection for this integration and otherwise returns 404
|
|
10865
|
+
`multiple_connections_unavailable`.
|
|
10866
|
+
example: add
|
|
10867
|
+
const: add
|
|
10868
|
+
required:
|
|
10869
|
+
- user_id
|
|
10870
|
+
- secret
|
|
10871
|
+
- connection_intent
|
|
10872
|
+
additionalProperties: false
|
|
10873
|
+
responses:
|
|
10874
|
+
'201':
|
|
10875
|
+
description: The connected account that was created.
|
|
10876
|
+
content:
|
|
10877
|
+
application/json:
|
|
10878
|
+
schema:
|
|
10879
|
+
$ref: '#/components/schemas/ConnectedAccount'
|
|
10880
|
+
example:
|
|
10881
|
+
object: connected_account
|
|
10882
|
+
id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
10883
|
+
connection_role: standard
|
|
10884
|
+
account_identifier: null
|
|
10885
|
+
account_display_name: null
|
|
10886
|
+
user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
10887
|
+
organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
10888
|
+
scopes: []
|
|
10889
|
+
auth_method: api_key
|
|
10890
|
+
api_key_last_4: cdef
|
|
10891
|
+
state: connected
|
|
10892
|
+
created_at: '2024-01-16T14:20:00.000Z'
|
|
10893
|
+
updated_at: '2024-01-16T14:20:00.000Z'
|
|
10894
|
+
'400':
|
|
10895
|
+
description: >-
|
|
10896
|
+
The request is invalid, including a missing `connection_intent: add`
|
|
10897
|
+
or a supplied `connected_account_id`.
|
|
10898
|
+
content:
|
|
10899
|
+
application/json:
|
|
10900
|
+
schema:
|
|
10901
|
+
type: object
|
|
10902
|
+
properties:
|
|
10903
|
+
message:
|
|
10904
|
+
type: string
|
|
10905
|
+
description: A human-readable description of the error.
|
|
10906
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
10907
|
+
required:
|
|
10908
|
+
- message
|
|
10909
|
+
'401':
|
|
10910
|
+
description: Unauthorized
|
|
10911
|
+
'403':
|
|
10912
|
+
description: Forbidden
|
|
10913
|
+
content:
|
|
10914
|
+
application/json:
|
|
10915
|
+
schema:
|
|
10916
|
+
type: object
|
|
10917
|
+
properties:
|
|
10918
|
+
message:
|
|
10919
|
+
type: string
|
|
10920
|
+
description: A human-readable description of the error.
|
|
10921
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
10922
|
+
required:
|
|
10923
|
+
- message
|
|
10924
|
+
'404':
|
|
10925
|
+
description: >-
|
|
10926
|
+
The data integration was not found, or
|
|
10927
|
+
`multiple_connections_unavailable` when creating an additional
|
|
10928
|
+
connection is not yet available.
|
|
10929
|
+
content:
|
|
10930
|
+
application/json:
|
|
10931
|
+
schema:
|
|
10932
|
+
anyOf:
|
|
10933
|
+
- type: object
|
|
10934
|
+
properties:
|
|
10935
|
+
code:
|
|
10936
|
+
type: string
|
|
10937
|
+
enum:
|
|
10938
|
+
- multiple_connections_unavailable
|
|
10939
|
+
- entity_not_found
|
|
10940
|
+
description: The error code identifying the type of error.
|
|
10941
|
+
example: multiple_connections_unavailable
|
|
10942
|
+
message:
|
|
10943
|
+
type: string
|
|
10944
|
+
description: A human-readable description of the error.
|
|
10945
|
+
example: Request could not be processed.
|
|
10946
|
+
required:
|
|
10947
|
+
- code
|
|
10948
|
+
- message
|
|
10949
|
+
- type: object
|
|
10950
|
+
properties:
|
|
10951
|
+
message:
|
|
10952
|
+
type: string
|
|
10953
|
+
description: A human-readable description of the error.
|
|
10954
|
+
example: >-
|
|
10955
|
+
Organization not found:
|
|
10956
|
+
'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
10957
|
+
required:
|
|
10958
|
+
- message
|
|
10959
|
+
'503':
|
|
10960
|
+
description: >-
|
|
10961
|
+
Another connection is being created for this owner and provider.
|
|
10962
|
+
Retry the request.
|
|
10963
|
+
content:
|
|
10964
|
+
application/json:
|
|
10965
|
+
schema:
|
|
10966
|
+
type: object
|
|
10967
|
+
properties:
|
|
10968
|
+
code:
|
|
10969
|
+
type: string
|
|
10970
|
+
description: The error code identifying the type of error.
|
|
10971
|
+
example: concurrent_request
|
|
10972
|
+
const: concurrent_request
|
|
10973
|
+
message:
|
|
10974
|
+
type: string
|
|
10975
|
+
description: A human-readable description of the error.
|
|
10976
|
+
example: Request could not be processed.
|
|
10977
|
+
required:
|
|
10978
|
+
- code
|
|
10979
|
+
- message
|
|
10980
|
+
summary: Create another API key connected account
|
|
10981
|
+
tags:
|
|
10982
|
+
- pipes
|
|
10983
|
+
x-feature-flag: pipes-multiple-connections
|
|
10770
10984
|
put:
|
|
10771
10985
|
description: >-
|
|
10772
10986
|
Creates or updates an API-key-based installation for the specified
|
|
10773
10987
|
integration, owned by the user or, when `connection_owner` is
|
|
10774
10988
|
`organization`, shared by the organization. If an installation already
|
|
10775
|
-
exists, the stored API key is rotated to the new value.
|
|
10989
|
+
exists, the stored API key is rotated to the new value. To create
|
|
10990
|
+
another connection, use POST.
|
|
10776
10991
|
operationId: DataIntegrationsController_upsertApiKey
|
|
10777
10992
|
parameters:
|
|
10778
10993
|
- name: slug
|
|
@@ -10824,51 +11039,6 @@ paths:
|
|
|
10824
11039
|
- user_id
|
|
10825
11040
|
- secret
|
|
10826
11041
|
additionalProperties: false
|
|
10827
|
-
- type: object
|
|
10828
|
-
properties:
|
|
10829
|
-
user_id:
|
|
10830
|
-
type: string
|
|
10831
|
-
description: A [User](/reference/authkit/user) identifier.
|
|
10832
|
-
example: user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
10833
|
-
organization_id:
|
|
10834
|
-
type: string
|
|
10835
|
-
description: >-
|
|
10836
|
-
An [Organization](/reference/organization) identifier.
|
|
10837
|
-
Optional parameter to scope the connection to a specific
|
|
10838
|
-
organization. Required when `connection_owner` is
|
|
10839
|
-
`organization`.
|
|
10840
|
-
example: org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
10841
|
-
connection_owner:
|
|
10842
|
-
type: string
|
|
10843
|
-
enum:
|
|
10844
|
-
- user
|
|
10845
|
-
- organization
|
|
10846
|
-
description: >-
|
|
10847
|
-
Whose connection to create or rotate. `user` (the
|
|
10848
|
-
default) addresses the connection owned by `user_id`.
|
|
10849
|
-
`organization` addresses the connection shared by every
|
|
10850
|
-
member of `organization_id`; `user_id` then identifies
|
|
10851
|
-
the member performing the request and must be an active
|
|
10852
|
-
member of the organization.
|
|
10853
|
-
example: user
|
|
10854
|
-
secret:
|
|
10855
|
-
type: string
|
|
10856
|
-
minLength: 1
|
|
10857
|
-
description: The API key secret to store for this integration.
|
|
10858
|
-
example: sk-1234567890abcdef
|
|
10859
|
-
connection_intent:
|
|
10860
|
-
type: string
|
|
10861
|
-
description: >-
|
|
10862
|
-
Create another connection. The first connection for an
|
|
10863
|
-
owner shape fills the compatibility slot; later
|
|
10864
|
-
connections are standard.
|
|
10865
|
-
example: add
|
|
10866
|
-
const: add
|
|
10867
|
-
required:
|
|
10868
|
-
- user_id
|
|
10869
|
-
- secret
|
|
10870
|
-
- connection_intent
|
|
10871
|
-
additionalProperties: false
|
|
10872
11042
|
- type: object
|
|
10873
11043
|
properties:
|
|
10874
11044
|
user_id:
|
|
@@ -11168,12 +11338,213 @@ paths:
|
|
|
11168
11338
|
tags:
|
|
11169
11339
|
- pipes
|
|
11170
11340
|
/data-integrations/{slug}/client-credentials:
|
|
11341
|
+
post:
|
|
11342
|
+
description: >-
|
|
11343
|
+
Creates another client credentials-based connected account for the
|
|
11344
|
+
specified integration, owned by the user or, when `connection_owner` is
|
|
11345
|
+
`organization`, shared by the organization. Requires `connection_intent:
|
|
11346
|
+
add` and does not accept `connected_account_id`; use PUT to create or
|
|
11347
|
+
rotate the compatibility connection or to update an exact connection.
|
|
11348
|
+
Creating an additional connection is not yet available: until it is,
|
|
11349
|
+
this endpoint succeeds only when the owner has no connection for this
|
|
11350
|
+
integration, which creates the compatibility connection, and otherwise
|
|
11351
|
+
returns 404 `multiple_connections_unavailable`.
|
|
11352
|
+
operationId: DataIntegrationsController_createClientCredentialsConnection
|
|
11353
|
+
parameters:
|
|
11354
|
+
- name: slug
|
|
11355
|
+
required: true
|
|
11356
|
+
in: path
|
|
11357
|
+
description: The identifier of the integration.
|
|
11358
|
+
schema:
|
|
11359
|
+
example: salesforce
|
|
11360
|
+
type: string
|
|
11361
|
+
requestBody:
|
|
11362
|
+
required: true
|
|
11363
|
+
content:
|
|
11364
|
+
application/json:
|
|
11365
|
+
schema:
|
|
11366
|
+
type: object
|
|
11367
|
+
properties:
|
|
11368
|
+
user_id:
|
|
11369
|
+
type: string
|
|
11370
|
+
description: A [User](/reference/authkit/user) identifier.
|
|
11371
|
+
example: user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
11372
|
+
organization_id:
|
|
11373
|
+
type: string
|
|
11374
|
+
description: >-
|
|
11375
|
+
An [Organization](/reference/organization) identifier.
|
|
11376
|
+
Optional parameter to scope the connection to a specific
|
|
11377
|
+
organization. Required when `connection_owner` is
|
|
11378
|
+
`organization`.
|
|
11379
|
+
example: org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
11380
|
+
connection_owner:
|
|
11381
|
+
type: string
|
|
11382
|
+
enum:
|
|
11383
|
+
- user
|
|
11384
|
+
- organization
|
|
11385
|
+
description: >-
|
|
11386
|
+
Whose connection to create or rotate. `user` (the default)
|
|
11387
|
+
addresses the connection owned by `user_id`. `organization`
|
|
11388
|
+
addresses the connection shared by every member of
|
|
11389
|
+
`organization_id`; `user_id` then identifies the member
|
|
11390
|
+
performing the request and must be an active member of the
|
|
11391
|
+
organization.
|
|
11392
|
+
example: user
|
|
11393
|
+
client_id:
|
|
11394
|
+
type: string
|
|
11395
|
+
minLength: 1
|
|
11396
|
+
description: The OAuth client ID to store for this integration.
|
|
11397
|
+
example: 3MVG9...
|
|
11398
|
+
client_secret:
|
|
11399
|
+
type: string
|
|
11400
|
+
minLength: 1
|
|
11401
|
+
description: The OAuth client secret to store for this integration.
|
|
11402
|
+
example: shhh-secret
|
|
11403
|
+
config:
|
|
11404
|
+
type: object
|
|
11405
|
+
additionalProperties:
|
|
11406
|
+
type: string
|
|
11407
|
+
description: >-
|
|
11408
|
+
Provider-specific configuration values collected for this
|
|
11409
|
+
installation, keyed by the provider's config field
|
|
11410
|
+
descriptors.
|
|
11411
|
+
example:
|
|
11412
|
+
salesforce_host: acme.my.salesforce.com
|
|
11413
|
+
connection_intent:
|
|
11414
|
+
type: string
|
|
11415
|
+
description: >-
|
|
11416
|
+
Must be `add`: this endpoint only creates another
|
|
11417
|
+
connection. The first connection for an owner shape fills
|
|
11418
|
+
the compatibility slot; later connections are standard.
|
|
11419
|
+
Creating an additional connection is not yet available:
|
|
11420
|
+
until it is, `add` succeeds only when the owner has no
|
|
11421
|
+
connection for this integration and otherwise returns 404
|
|
11422
|
+
`multiple_connections_unavailable`.
|
|
11423
|
+
example: add
|
|
11424
|
+
const: add
|
|
11425
|
+
required:
|
|
11426
|
+
- user_id
|
|
11427
|
+
- client_id
|
|
11428
|
+
- client_secret
|
|
11429
|
+
- connection_intent
|
|
11430
|
+
additionalProperties: false
|
|
11431
|
+
responses:
|
|
11432
|
+
'201':
|
|
11433
|
+
description: The connected account that was created.
|
|
11434
|
+
content:
|
|
11435
|
+
application/json:
|
|
11436
|
+
schema:
|
|
11437
|
+
$ref: '#/components/schemas/ConnectedAccount'
|
|
11438
|
+
example:
|
|
11439
|
+
object: connected_account
|
|
11440
|
+
id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT
|
|
11441
|
+
connection_role: standard
|
|
11442
|
+
account_identifier: null
|
|
11443
|
+
account_display_name: null
|
|
11444
|
+
user_id: user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
11445
|
+
organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
11446
|
+
scopes: []
|
|
11447
|
+
auth_method: client_credentials
|
|
11448
|
+
state: connected
|
|
11449
|
+
created_at: '2024-01-16T14:20:00.000Z'
|
|
11450
|
+
updated_at: '2024-01-16T14:20:00.000Z'
|
|
11451
|
+
'400':
|
|
11452
|
+
description: >-
|
|
11453
|
+
The request is invalid, including a missing `connection_intent: add`
|
|
11454
|
+
or a supplied `connected_account_id`.
|
|
11455
|
+
content:
|
|
11456
|
+
application/json:
|
|
11457
|
+
schema:
|
|
11458
|
+
type: object
|
|
11459
|
+
properties:
|
|
11460
|
+
message:
|
|
11461
|
+
type: string
|
|
11462
|
+
description: A human-readable description of the error.
|
|
11463
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
11464
|
+
required:
|
|
11465
|
+
- message
|
|
11466
|
+
'401':
|
|
11467
|
+
description: Unauthorized
|
|
11468
|
+
'403':
|
|
11469
|
+
description: Forbidden
|
|
11470
|
+
content:
|
|
11471
|
+
application/json:
|
|
11472
|
+
schema:
|
|
11473
|
+
type: object
|
|
11474
|
+
properties:
|
|
11475
|
+
message:
|
|
11476
|
+
type: string
|
|
11477
|
+
description: A human-readable description of the error.
|
|
11478
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
11479
|
+
required:
|
|
11480
|
+
- message
|
|
11481
|
+
'404':
|
|
11482
|
+
description: >-
|
|
11483
|
+
The data integration was not found, or
|
|
11484
|
+
`multiple_connections_unavailable` when creating an additional
|
|
11485
|
+
connection is not yet available.
|
|
11486
|
+
content:
|
|
11487
|
+
application/json:
|
|
11488
|
+
schema:
|
|
11489
|
+
anyOf:
|
|
11490
|
+
- type: object
|
|
11491
|
+
properties:
|
|
11492
|
+
code:
|
|
11493
|
+
type: string
|
|
11494
|
+
enum:
|
|
11495
|
+
- multiple_connections_unavailable
|
|
11496
|
+
- entity_not_found
|
|
11497
|
+
description: The error code identifying the type of error.
|
|
11498
|
+
example: multiple_connections_unavailable
|
|
11499
|
+
message:
|
|
11500
|
+
type: string
|
|
11501
|
+
description: A human-readable description of the error.
|
|
11502
|
+
example: Request could not be processed.
|
|
11503
|
+
required:
|
|
11504
|
+
- code
|
|
11505
|
+
- message
|
|
11506
|
+
- type: object
|
|
11507
|
+
properties:
|
|
11508
|
+
message:
|
|
11509
|
+
type: string
|
|
11510
|
+
description: A human-readable description of the error.
|
|
11511
|
+
example: >-
|
|
11512
|
+
Organization not found:
|
|
11513
|
+
'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
11514
|
+
required:
|
|
11515
|
+
- message
|
|
11516
|
+
'503':
|
|
11517
|
+
description: >-
|
|
11518
|
+
Another connection is being created for this owner and provider.
|
|
11519
|
+
Retry the request.
|
|
11520
|
+
content:
|
|
11521
|
+
application/json:
|
|
11522
|
+
schema:
|
|
11523
|
+
type: object
|
|
11524
|
+
properties:
|
|
11525
|
+
code:
|
|
11526
|
+
type: string
|
|
11527
|
+
description: The error code identifying the type of error.
|
|
11528
|
+
example: concurrent_request
|
|
11529
|
+
const: concurrent_request
|
|
11530
|
+
message:
|
|
11531
|
+
type: string
|
|
11532
|
+
description: A human-readable description of the error.
|
|
11533
|
+
example: Request could not be processed.
|
|
11534
|
+
required:
|
|
11535
|
+
- code
|
|
11536
|
+
- message
|
|
11537
|
+
summary: Create another client credentials connected account
|
|
11538
|
+
tags:
|
|
11539
|
+
- pipes
|
|
11540
|
+
x-feature-flag: pipes-multiple-connections
|
|
11171
11541
|
put:
|
|
11172
11542
|
description: >-
|
|
11173
11543
|
Creates or updates a client-credentials-based installation for the
|
|
11174
11544
|
specified integration, owned by the user or, when `connection_owner` is
|
|
11175
11545
|
`organization`, shared by the organization. If an installation already
|
|
11176
|
-
exists, the stored client credentials are rotated to the new values.
|
|
11546
|
+
exists, the stored client credentials are rotated to the new values. To
|
|
11547
|
+
create another connection, use POST.
|
|
11177
11548
|
operationId: DataIntegrationsController_upsertClientCredentials
|
|
11178
11549
|
parameters:
|
|
11179
11550
|
- name: slug
|
|
@@ -11241,66 +11612,6 @@ paths:
|
|
|
11241
11612
|
- client_id
|
|
11242
11613
|
- client_secret
|
|
11243
11614
|
additionalProperties: false
|
|
11244
|
-
- type: object
|
|
11245
|
-
properties:
|
|
11246
|
-
user_id:
|
|
11247
|
-
type: string
|
|
11248
|
-
description: A [User](/reference/authkit/user) identifier.
|
|
11249
|
-
example: user_01EHZNVPK3SFK441A1RGBFSHRT
|
|
11250
|
-
organization_id:
|
|
11251
|
-
type: string
|
|
11252
|
-
description: >-
|
|
11253
|
-
An [Organization](/reference/organization) identifier.
|
|
11254
|
-
Optional parameter to scope the connection to a specific
|
|
11255
|
-
organization. Required when `connection_owner` is
|
|
11256
|
-
`organization`.
|
|
11257
|
-
example: org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
11258
|
-
connection_owner:
|
|
11259
|
-
type: string
|
|
11260
|
-
enum:
|
|
11261
|
-
- user
|
|
11262
|
-
- organization
|
|
11263
|
-
description: >-
|
|
11264
|
-
Whose connection to create or rotate. `user` (the
|
|
11265
|
-
default) addresses the connection owned by `user_id`.
|
|
11266
|
-
`organization` addresses the connection shared by every
|
|
11267
|
-
member of `organization_id`; `user_id` then identifies
|
|
11268
|
-
the member performing the request and must be an active
|
|
11269
|
-
member of the organization.
|
|
11270
|
-
example: user
|
|
11271
|
-
client_id:
|
|
11272
|
-
type: string
|
|
11273
|
-
minLength: 1
|
|
11274
|
-
description: The OAuth client ID to store for this integration.
|
|
11275
|
-
example: 3MVG9...
|
|
11276
|
-
client_secret:
|
|
11277
|
-
type: string
|
|
11278
|
-
minLength: 1
|
|
11279
|
-
description: The OAuth client secret to store for this integration.
|
|
11280
|
-
example: shhh-secret
|
|
11281
|
-
config:
|
|
11282
|
-
type: object
|
|
11283
|
-
additionalProperties:
|
|
11284
|
-
type: string
|
|
11285
|
-
description: >-
|
|
11286
|
-
Provider-specific configuration values collected for
|
|
11287
|
-
this installation, keyed by the provider's config field
|
|
11288
|
-
descriptors.
|
|
11289
|
-
example: *ref_1
|
|
11290
|
-
connection_intent:
|
|
11291
|
-
type: string
|
|
11292
|
-
description: >-
|
|
11293
|
-
Create another connection. The first connection for an
|
|
11294
|
-
owner shape fills the compatibility slot; later
|
|
11295
|
-
connections are standard.
|
|
11296
|
-
example: add
|
|
11297
|
-
const: add
|
|
11298
|
-
required:
|
|
11299
|
-
- user_id
|
|
11300
|
-
- client_id
|
|
11301
|
-
- client_secret
|
|
11302
|
-
- connection_intent
|
|
11303
|
-
additionalProperties: false
|
|
11304
11615
|
- type: object
|
|
11305
11616
|
properties:
|
|
11306
11617
|
user_id:
|
|
@@ -11647,8 +11958,8 @@ paths:
|
|
|
11647
11958
|
- message
|
|
11648
11959
|
'409':
|
|
11649
11960
|
description: >-
|
|
11650
|
-
Several connected accounts match this user for the
|
|
11651
|
-
must be named.
|
|
11961
|
+
Several connected accounts match this user or organization for the
|
|
11962
|
+
provider; one must be named.
|
|
11652
11963
|
content:
|
|
11653
11964
|
application/json:
|
|
11654
11965
|
schema:
|
|
@@ -12045,8 +12356,8 @@ paths:
|
|
|
12045
12356
|
- message
|
|
12046
12357
|
'409':
|
|
12047
12358
|
description: >-
|
|
12048
|
-
Several connected accounts match this user for the
|
|
12049
|
-
must be named.
|
|
12359
|
+
Several connected accounts match this user or organization for the
|
|
12360
|
+
provider; one must be named.
|
|
12050
12361
|
content:
|
|
12051
12362
|
application/json:
|
|
12052
12363
|
schema:
|
|
@@ -15456,18 +15767,41 @@ paths:
|
|
|
15456
15767
|
required:
|
|
15457
15768
|
- message
|
|
15458
15769
|
'404':
|
|
15459
|
-
description:
|
|
15770
|
+
description: >-
|
|
15771
|
+
The organization, user, or data integration was not found, or
|
|
15772
|
+
`multiple_connections_unavailable` when `connection_intent: add`
|
|
15773
|
+
would create an additional connection before that capability is
|
|
15774
|
+
available.
|
|
15460
15775
|
content:
|
|
15461
15776
|
application/json:
|
|
15462
15777
|
schema:
|
|
15463
|
-
|
|
15464
|
-
|
|
15465
|
-
|
|
15466
|
-
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
|
|
15470
|
-
|
|
15778
|
+
anyOf:
|
|
15779
|
+
- type: object
|
|
15780
|
+
properties:
|
|
15781
|
+
code:
|
|
15782
|
+
type: string
|
|
15783
|
+
enum:
|
|
15784
|
+
- multiple_connections_unavailable
|
|
15785
|
+
- entity_not_found
|
|
15786
|
+
description: The error code identifying the type of error.
|
|
15787
|
+
example: multiple_connections_unavailable
|
|
15788
|
+
message:
|
|
15789
|
+
type: string
|
|
15790
|
+
description: A human-readable description of the error.
|
|
15791
|
+
example: Request could not be processed.
|
|
15792
|
+
required:
|
|
15793
|
+
- code
|
|
15794
|
+
- message
|
|
15795
|
+
- type: object
|
|
15796
|
+
properties:
|
|
15797
|
+
message:
|
|
15798
|
+
type: string
|
|
15799
|
+
description: A human-readable description of the error.
|
|
15800
|
+
example: >-
|
|
15801
|
+
Organization not found:
|
|
15802
|
+
'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
15803
|
+
required:
|
|
15804
|
+
- message
|
|
15471
15805
|
'409':
|
|
15472
15806
|
description: >-
|
|
15473
15807
|
The compatibility connection already exists for this organization
|
|
@@ -24237,18 +24571,41 @@ paths:
|
|
|
24237
24571
|
'401':
|
|
24238
24572
|
description: The request is missing a valid API key.
|
|
24239
24573
|
'404':
|
|
24240
|
-
description:
|
|
24574
|
+
description: >-
|
|
24575
|
+
The user, organization, or data integration was not found, or
|
|
24576
|
+
`multiple_connections_unavailable` when `connection_intent: add`
|
|
24577
|
+
would create an additional connection before that capability is
|
|
24578
|
+
available.
|
|
24241
24579
|
content:
|
|
24242
24580
|
application/json:
|
|
24243
24581
|
schema:
|
|
24244
|
-
|
|
24245
|
-
|
|
24246
|
-
|
|
24247
|
-
|
|
24248
|
-
|
|
24249
|
-
|
|
24250
|
-
|
|
24251
|
-
|
|
24582
|
+
anyOf:
|
|
24583
|
+
- type: object
|
|
24584
|
+
properties:
|
|
24585
|
+
code:
|
|
24586
|
+
type: string
|
|
24587
|
+
enum:
|
|
24588
|
+
- multiple_connections_unavailable
|
|
24589
|
+
- entity_not_found
|
|
24590
|
+
description: The error code identifying the type of error.
|
|
24591
|
+
example: multiple_connections_unavailable
|
|
24592
|
+
message:
|
|
24593
|
+
type: string
|
|
24594
|
+
description: A human-readable description of the error.
|
|
24595
|
+
example: Request could not be processed.
|
|
24596
|
+
required:
|
|
24597
|
+
- code
|
|
24598
|
+
- message
|
|
24599
|
+
- type: object
|
|
24600
|
+
properties:
|
|
24601
|
+
message:
|
|
24602
|
+
type: string
|
|
24603
|
+
description: A human-readable description of the error.
|
|
24604
|
+
example: >-
|
|
24605
|
+
Organization not found:
|
|
24606
|
+
'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
24607
|
+
required:
|
|
24608
|
+
- message
|
|
24252
24609
|
'409':
|
|
24253
24610
|
description: >-
|
|
24254
24611
|
A connected account already exists for this user, integration, and
|
|
@@ -28688,7 +29045,11 @@ components:
|
|
|
28688
29045
|
type: string
|
|
28689
29046
|
description: >-
|
|
28690
29047
|
Set to `add` to create another connected account. Omit this field
|
|
28691
|
-
for permanent compatibility behavior.
|
|
29048
|
+
for permanent compatibility behavior. Creating an additional
|
|
29049
|
+
connection is not yet available: until it is, `add` succeeds only
|
|
29050
|
+
when the owner has no connection for this integration, which creates
|
|
29051
|
+
the compatibility connection, and otherwise returns 404
|
|
29052
|
+
`multiple_connections_unavailable`.
|
|
28692
29053
|
example: add
|
|
28693
29054
|
const: add
|
|
28694
29055
|
required:
|
|
@@ -28768,7 +29129,11 @@ components:
|
|
|
28768
29129
|
type: string
|
|
28769
29130
|
description: >-
|
|
28770
29131
|
Set to `add` to create another connected account. Omit this field
|
|
28771
|
-
for permanent compatibility behavior.
|
|
29132
|
+
for permanent compatibility behavior. Creating an additional
|
|
29133
|
+
connection is not yet available: until it is, `add` succeeds only
|
|
29134
|
+
when the owner has no connection for this integration, which creates
|
|
29135
|
+
the compatibility connection, and otherwise returns 404
|
|
29136
|
+
`multiple_connections_unavailable`.
|
|
28772
29137
|
example: add
|
|
28773
29138
|
const: add
|
|
28774
29139
|
ConnectedAccountDto:
|