Skip to content

Commit 5afc327

Browse files
committed
SDK regeneration
1 parent 9c50a8a commit 5afc327

File tree

9 files changed

+26
-111
lines changed

9 files changed

+26
-111
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/sdk",
3-
"version": "2.0.0",
3+
"version": "1.7.1",
44
"private": false,
55
"repository": "github:PipedreamHQ/pipedream-sdk-typescript",
66
"type": "commonjs",

src/api/resources/proxy/client/requests/ProxyDeleteRequest.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,14 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
import * as core from "../../../../../core/index.js";
6-
75
/**
86
* @example
97
* {
10-
* url: "https://api.example.com/endpoint",
118
* external_user_id: "external_user_id",
12-
* account_id: "account_id",
13-
* params: { page: "1", limit: "10" },
14-
* headers: { "X-Custom-Header": "value" }
9+
* account_id: "account_id"
1510
* }
1611
*/
1712
export interface ProxyDeleteRequest {
18-
/**
19-
* Target URL to proxy request to
20-
*/
21-
url: string;
2213
/**
2314
* The external user ID for the proxy request
2415
*/
@@ -27,12 +18,4 @@ export interface ProxyDeleteRequest {
2718
* The account ID to use for authentication
2819
*/
2920
account_id: string;
30-
/**
31-
* Query parameters to forward
32-
*/
33-
params?: Record<string, string | string[] | object | object[] | null>;
34-
/**
35-
* Additional headers to include (will be prefixed with 'x-pd-proxy-')
36-
*/
37-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
3821
}

src/api/resources/proxy/client/requests/ProxyGetRequest.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,14 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
import * as core from "../../../../../core/index.js";
6-
75
/**
86
* @example
97
* {
10-
* url: "https://api.example.com/endpoint",
118
* external_user_id: "external_user_id",
12-
* account_id: "account_id",
13-
* params: { page: "1", limit: "10" },
14-
* headers: { "X-Custom-Header": "value" }
9+
* account_id: "account_id"
1510
* }
1611
*/
1712
export interface ProxyGetRequest {
18-
/**
19-
* Target URL to proxy request to
20-
*/
21-
url: string;
2213
/**
2314
* The external user ID for the proxy request
2415
*/
@@ -27,12 +18,4 @@ export interface ProxyGetRequest {
2718
* The account ID to use for authentication
2819
*/
2920
account_id: string;
30-
/**
31-
* Query parameters to forward
32-
*/
33-
params?: Record<string, string | string[] | object | object[] | null>;
34-
/**
35-
* Additional headers to include (will be prefixed with 'x-pd-proxy-')
36-
*/
37-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
3821
}

src/api/resources/proxy/client/requests/ProxyPatchRequest.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,17 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
import * as core from "../../../../../core/index.js";
6-
75
/**
86
* @example
97
* {
10-
* url: "https://api.example.com/endpoint",
118
* external_user_id: "external_user_id",
129
* account_id: "account_id",
1310
* body: {
1411
* "key": "value"
15-
* },
16-
* params: { page: "1", limit: "10" },
17-
* headers: { "X-Custom-Header": "value" }
12+
* }
1813
* }
1914
*/
2015
export interface ProxyPatchRequest {
21-
/**
22-
* Target URL to proxy request to
23-
*/
24-
url: string;
2516
/**
2617
* The external user ID for the proxy request
2718
*/
@@ -34,12 +25,4 @@ export interface ProxyPatchRequest {
3425
* Request body to forward to the target API
3526
*/
3627
body: Record<string, unknown>;
37-
/**
38-
* Query parameters to forward
39-
*/
40-
params?: Record<string, string | string[] | object | object[] | null>;
41-
/**
42-
* Additional headers to include (will be prefixed with 'x-pd-proxy-')
43-
*/
44-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
4528
}

src/api/resources/proxy/client/requests/ProxyPostRequest.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,17 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
import * as core from "../../../../../core/index.js";
6-
75
/**
86
* @example
97
* {
10-
* url: "https://api.example.com/endpoint",
118
* external_user_id: "external_user_id",
129
* account_id: "account_id",
1310
* body: {
1411
* "key": "value"
15-
* },
16-
* params: { page: "1", limit: "10" },
17-
* headers: { "X-Custom-Header": "value" }
12+
* }
1813
* }
1914
*/
2015
export interface ProxyPostRequest {
21-
/**
22-
* Target URL to proxy request to
23-
*/
24-
url: string;
2516
/**
2617
* The external user ID for the proxy request
2718
*/
@@ -34,12 +25,4 @@ export interface ProxyPostRequest {
3425
* Request body to forward to the target API
3526
*/
3627
body: Record<string, unknown>;
37-
/**
38-
* Query parameters to forward
39-
*/
40-
params?: Record<string, string | string[] | object | object[] | null>;
41-
/**
42-
* Additional headers to include (will be prefixed with 'x-pd-proxy-')
43-
*/
44-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
4528
}

src/api/resources/proxy/client/requests/ProxyPutRequest.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,17 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
import * as core from "../../../../../core/index.js";
6-
75
/**
86
* @example
97
* {
10-
* url: "https://api.example.com/endpoint",
118
* external_user_id: "external_user_id",
129
* account_id: "account_id",
1310
* body: {
1411
* "key": "value"
15-
* },
16-
* params: { page: "1", limit: "10" },
17-
* headers: { "X-Custom-Header": "value" }
12+
* }
1813
* }
1914
*/
2015
export interface ProxyPutRequest {
21-
/**
22-
* Target URL to proxy request to
23-
*/
24-
url: string;
2516
/**
2617
* The external user ID for the proxy request
2718
*/
@@ -34,12 +25,4 @@ export interface ProxyPutRequest {
3425
* Request body to forward to the target API
3526
*/
3627
body: Record<string, unknown>;
37-
/**
38-
* Query parameters to forward
39-
*/
40-
params?: Record<string, string | string[] | object | object[] | null>;
41-
/**
42-
* Additional headers to include (will be prefixed with 'x-pd-proxy-')
43-
*/
44-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
4528
}

src/api/resources/tokens/client/Client.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class Tokens {
6868
(await core.Supplier.get(this._options.baseUrl)) ??
6969
(await core.Supplier.get(this._options.environment)) ??
7070
environments.PipedreamEnvironment.Prod,
71-
"v1/connect/tokens",
71+
`v1/connect/${encodeURIComponent(this._options.projectId)}/tokens`,
7272
),
7373
method: "POST",
7474
headers: mergeHeaders(
@@ -106,7 +106,9 @@ export class Tokens {
106106
rawResponse: _response.rawResponse,
107107
});
108108
case "timeout":
109-
throw new errors.PipedreamTimeoutError("Timeout exceeded when calling POST /v1/connect/tokens.");
109+
throw new errors.PipedreamTimeoutError(
110+
"Timeout exceeded when calling POST /v1/connect/{project_id}/tokens.",
111+
);
110112
case "unknown":
111113
throw new errors.PipedreamError({
112114
message: _response.error.errorMessage,
@@ -147,7 +149,7 @@ export class Tokens {
147149
(await core.Supplier.get(this._options.baseUrl)) ??
148150
(await core.Supplier.get(this._options.environment)) ??
149151
environments.PipedreamEnvironment.Prod,
150-
`v1/connect/tokens/${encodeURIComponent(ctok)}/validate`,
152+
`v1/connect/${encodeURIComponent(this._options.projectId)}/tokens/${encodeURIComponent(ctok)}/validate`,
151153
),
152154
method: "GET",
153155
headers: mergeHeaders(
@@ -184,7 +186,7 @@ export class Tokens {
184186
});
185187
case "timeout":
186188
throw new errors.PipedreamTimeoutError(
187-
"Timeout exceeded when calling GET /v1/connect/tokens/{ctok}/validate.",
189+
"Timeout exceeded when calling GET /v1/connect/{project_id}/tokens/{ctok}/validate.",
188190
);
189191
case "unknown":
190192
throw new errors.PipedreamError({

src/api/types/ConnectTokenCreateOpts.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
export interface ConnectTokenCreateOpts {
99
/** Your end user ID, for whom you're creating the token */
1010
external_user_id: string;
11-
/** The ID of the project */
12-
project_id: string;
1311
/** List of allowed origins for CORS */
1412
allowed_origins?: string[];
1513
/** URI to redirect to on error */

yarn.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@
110110
integrity sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==
111111

112112
"@babel/helpers@^7.27.6":
113-
version "7.27.6"
114-
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.27.6.tgz#6456fed15b2cb669d2d1fabe84b66b34991d812c"
115-
integrity sha512-muE8Tt8M22638HU31A3CgfSUciwz1fhATfoVai05aPXGor//CdWDCbnlY1yvBPo07njuVOCNGCSp/GTt12lIug==
113+
version "7.28.2"
114+
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.28.2.tgz#80f0918fecbfebea9af856c419763230040ee850"
115+
integrity sha512-/V9771t+EgXz62aCcyofnQhGM8DQACbRhvzKFsXKC9QM+5MadF8ZmIm0crDMaz3+o0h0zXfJnd4EhbYbxsrcFw==
116116
dependencies:
117117
"@babel/template" "^7.27.2"
118-
"@babel/types" "^7.27.6"
118+
"@babel/types" "^7.28.2"
119119

120120
"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.27.2", "@babel/parser@^7.28.0":
121121
version "7.28.0"
@@ -265,10 +265,10 @@
265265
"@babel/types" "^7.28.0"
266266
debug "^4.3.1"
267267

268-
"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.27.1", "@babel/types@^7.27.6", "@babel/types@^7.28.0", "@babel/types@^7.3.3":
269-
version "7.28.1"
270-
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.1.tgz#2aaf3c10b31ba03a77ac84f52b3912a0edef4cf9"
271-
integrity sha512-x0LvFTekgSX+83TI28Y9wYPUfzrnl2aT5+5QLnO6v7mSJYtEEevuDRN0F0uSHRk1G1IWZC43o00Y0xDDrpBGPQ==
268+
"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.27.1", "@babel/types@^7.28.0", "@babel/types@^7.28.2", "@babel/types@^7.3.3":
269+
version "7.28.2"
270+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.2.tgz#da9db0856a9a88e0a13b019881d7513588cf712b"
271+
integrity sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==
272272
dependencies:
273273
"@babel/helper-string-parser" "^7.27.1"
274274
"@babel/helper-validator-identifier" "^7.27.1"
@@ -1364,9 +1364,9 @@ ejs@^3.1.10:
13641364
jake "^10.8.5"
13651365

13661366
electron-to-chromium@^1.5.173:
1367-
version "1.5.190"
1368-
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.190.tgz#f0ac8be182291a45e8154dbb12f18d2b2318e4ac"
1369-
integrity sha512-k4McmnB2091YIsdCgkS0fMVMPOJgxl93ltFzaryXqwip1AaxeDqKCGLxkXODDA5Ab/D+tV5EL5+aTx76RvLRxw==
1367+
version "1.5.191"
1368+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.191.tgz#8ae49a471447b1ceaf1d4d183a9000082f52363c"
1369+
integrity sha512-xcwe9ELcuxYLUFqZZxL19Z6HVKcvNkIwhbHUz7L3us6u12yR+7uY89dSl570f/IqNthx8dAw3tojG7i4Ni4tDA==
13701370

13711371
emittery@^0.13.1:
13721372
version "0.13.1"
@@ -2802,9 +2802,9 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
28022802
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
28032803

28042804
source-map@^0.7.4:
2805-
version "0.7.4"
2806-
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656"
2807-
integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==
2805+
version "0.7.6"
2806+
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.6.tgz#a3658ab87e5b6429c8a1f3ba0083d4c61ca3ef02"
2807+
integrity sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==
28082808

28092809
sprintf-js@~1.0.2:
28102810
version "1.0.3"

0 commit comments

Comments
 (0)