@@ -1184,6 +1184,29 @@ paths:
1184
1184
$ref : " #/components/responses/NotFoundResponse"
1185
1185
" 422 " :
1186
1186
$ref : " #/components/responses/InvalidInputResponse"
1187
+ /v1/source_oauths/oauth_params/create :
1188
+ post :
1189
+ tags :
1190
+ - oauth
1191
+ summary : >
1192
+ Sets instancewide variables to be used for the oauth flow when creating this source. When set, these variables will be injected
1193
+ into a connector's configuration before any interaction with the connector image itself. This enables running oauth flows with
1194
+ consistent variables e.g: the company's Google Ads developer_token, client_id, and client_secret without the user having to know
1195
+ about these variables.
1196
+ operationId : setInstancewideSourceOauthParams
1197
+ requestBody :
1198
+ content :
1199
+ application/json :
1200
+ schema :
1201
+ $ref : " #/components/schemas/SetInstancewideSourceOauthParamsRequestBody"
1202
+ required : true
1203
+ responses :
1204
+ " 200 " :
1205
+ description : Successful
1206
+ " 400 " :
1207
+ $ref : " #/components/responses/ExceptionResponse"
1208
+ " 404 " :
1209
+ $ref : " #/components/responses/NotFoundResponse"
1187
1210
/v1/source_oauths/get_consent_url :
1188
1211
post :
1189
1212
tags :
@@ -1276,6 +1299,29 @@ paths:
1276
1299
$ref : " #/components/responses/NotFoundResponse"
1277
1300
" 422 " :
1278
1301
$ref : " #/components/responses/InvalidInputResponse"
1302
+ /v1/destination_oauths/oauth_params/create :
1303
+ post :
1304
+ tags :
1305
+ - oauth
1306
+ summary : >
1307
+ Sets instancewide variables to be used for the oauth flow when creating this destination. When set, these variables will be injected
1308
+ into a connector's configuration before any interaction with the connector image itself. This enables running oauth flows with
1309
+ consistent variables e.g: the company's Google Ads developer_token, client_id, and client_secret without the user having to know
1310
+ about these variables.
1311
+ operationId : setInstancewideDestinationOauthParams
1312
+ requestBody :
1313
+ content :
1314
+ application/json :
1315
+ schema :
1316
+ $ref : " #/components/schemas/SetInstancewideDestinationOauthParamsRequestBody"
1317
+ required : true
1318
+ responses :
1319
+ " 200 " :
1320
+ description : Successful
1321
+ " 400 " :
1322
+ $ref : " #/components/responses/ExceptionResponse"
1323
+ " 404 " :
1324
+ $ref : " #/components/responses/NotFoundResponse"
1279
1325
/v1/web_backend/connections/list :
1280
1326
post :
1281
1327
tags :
@@ -1620,52 +1666,6 @@ paths:
1620
1666
$ref : " #/components/schemas/ImportRead"
1621
1667
" 404 " :
1622
1668
$ref : " #/components/responses/NotFoundResponse"
1623
- /v1/source_oauths/oauth_params/create :
1624
- post :
1625
- tags :
1626
- - oauth
1627
- summary : >
1628
- Sets instancewide variables to be used for the oauth flow when creating this source. When set, these variables will be injected
1629
- into a connector's configuration before any interaction with the connector image itself. This enables running oauth flows with
1630
- consistent variables e.g: the company's Google Ads developer_token, client_id, and client_secret without the user having to know
1631
- about these variables.
1632
- operationId : setInstancewideSourceOauthParams
1633
- requestBody :
1634
- content :
1635
- application/json :
1636
- schema :
1637
- $ref : " #/components/schemas/SetInstancewideSourceOauthParamsRequestBody"
1638
- required : true
1639
- responses :
1640
- " 200 " :
1641
- description : Successful
1642
- " 400 " :
1643
- $ref : " #/components/responses/ExceptionResponse"
1644
- " 404 " :
1645
- $ref : " #/components/responses/NotFoundResponse"
1646
- /v1/destination_oauths/oauth_params/create :
1647
- post :
1648
- tags :
1649
- - oauth
1650
- summary : >
1651
- Sets instancewide variables to be used for the oauth flow when creating this destination. When set, these variables will be injected
1652
- into a connector's configuration before any interaction with the connector image itself. This enables running oauth flows with
1653
- consistent variables e.g: the company's Google Ads developer_token, client_id, and client_secret without the user having to know
1654
- about these variables.
1655
- operationId : setInstancewideDestinationOauthParams
1656
- requestBody :
1657
- content :
1658
- application/json :
1659
- schema :
1660
- $ref : " #/components/schemas/SetInstancewideDestinationOauthParamsRequestBody"
1661
- required : true
1662
- responses :
1663
- " 200 " :
1664
- description : Successful
1665
- " 400 " :
1666
- $ref : " #/components/responses/ExceptionResponse"
1667
- " 404 " :
1668
- $ref : " #/components/responses/NotFoundResponse"
1669
1669
components :
1670
1670
securitySchemes :
1671
1671
bearerAuth :
@@ -2991,20 +2991,30 @@ components:
2991
2991
type : object
2992
2992
required :
2993
2993
- sourceDefinitionId
2994
+ - workspaceId
2995
+ - redirectUrl
2994
2996
properties :
2995
2997
sourceDefinitionId :
2996
2998
$ref : " #/components/schemas/SourceDefinitionId"
2997
2999
workspaceId :
2998
3000
$ref : " #/components/schemas/WorkspaceId"
3001
+ redirectUrl :
3002
+ description : The url to redirect to after getting the user consent
3003
+ type : string
2999
3004
DestinationOauthConsentRequest :
3000
3005
type : object
3001
3006
required :
3002
3007
- destinationDefinitionId
3008
+ - workspaceId
3009
+ - redirectUrl
3003
3010
properties :
3004
3011
destinationDefinitionId :
3005
3012
$ref : " #/components/schemas/DestinationDefinitionId"
3006
3013
workspaceId :
3007
3014
$ref : " #/components/schemas/WorkspaceId"
3015
+ redirectUrl :
3016
+ description : The url to redirect to after getting the user consent
3017
+ type : string
3008
3018
OAuthConsentRead :
3009
3019
type : object
3010
3020
required :
@@ -3016,11 +3026,15 @@ components:
3016
3026
type : object
3017
3027
required :
3018
3028
- sourceDefinitionId
3029
+ - workspaceId
3019
3030
properties :
3020
3031
sourceDefinitionId :
3021
3032
$ref : " #/components/schemas/SourceDefinitionId"
3022
3033
workspaceId :
3023
3034
$ref : " #/components/schemas/WorkspaceId"
3035
+ redirectUrl :
3036
+ description : When completing OAuth flow to gain an access token, some API sometimes requires to verify that the app re-send the redirectUrl that was used when consent was given.
3037
+ type : string
3024
3038
queryParams :
3025
3039
description : The query parameters present in the redirect URL after a user granted consent e.g auth code
3026
3040
type : object
@@ -3029,11 +3043,15 @@ components:
3029
3043
type : object
3030
3044
required :
3031
3045
- destinationDefinitionId
3046
+ - workspaceId
3032
3047
properties :
3033
3048
destinationDefinitionId :
3034
3049
$ref : " #/components/schemas/DestinationDefinitionId"
3035
3050
workspaceId :
3036
3051
$ref : " #/components/schemas/WorkspaceId"
3052
+ redirectUrl :
3053
+ description : When completing OAuth flow to gain an access token, some API sometimes requires to verify that the app re-send the redirectUrl that was used when consent was given.
3054
+ type : string
3037
3055
queryParams :
3038
3056
description : The query parameters present in the redirect URL after a user granted consent e.g auth code
3039
3057
type : object
0 commit comments