Skip to content

Commit a3947b7

Browse files
committed
SDK regeneration
1 parent 9c50a8a commit a3947b7

File tree

10 files changed

+36
-113
lines changed

10 files changed

+36
-113
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ console.log(rawResponse.headers['X-My-Header']);
161161

162162
### Runtime Compatibility
163163

164-
The SDK defaults to `node-fetch` but will use the global fetch client if present. The SDK works in the following
165-
runtimes:
164+
The SDK works in the following runtimes:
166165

167166
- Node.js 18+
168167
- Vercel

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",

reference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ await client.projects.retrieveInfo();
18271827

18281828
## Proxy
18291829

1830-
<details><summary><code>client.proxy.<a href="/src/api/resources/proxy/client/Client.ts">get</a>(url64, { ...params }) -> Pipedream.ProxyResponse | undefined</code></summary>
1830+
<details><summary><code>client.proxy.<a href="/src/api/resources/proxy/client/Client.ts">get</a>(url64, { ...params }) -> Record<string, unknown></code></summary>
18311831
<dl>
18321832
<dd>
18331833

@@ -1886,7 +1886,7 @@ await client.proxy.get("url_64", {
18861886
</dl>
18871887
</details>
18881888

1889-
<details><summary><code>client.proxy.<a href="/src/api/resources/proxy/client/Client.ts">post</a>(url64, { ...params }) -> Pipedream.ProxyResponse | undefined</code></summary>
1889+
<details><summary><code>client.proxy.<a href="/src/api/resources/proxy/client/Client.ts">post</a>(url64, { ...params }) -> Record<string, unknown></code></summary>
18901890
<dl>
18911891
<dd>
18921892

@@ -1948,7 +1948,7 @@ await client.proxy.post("url_64", {
19481948
</dl>
19491949
</details>
19501950

1951-
<details><summary><code>client.proxy.<a href="/src/api/resources/proxy/client/Client.ts">put</a>(url64, { ...params }) -> Pipedream.ProxyResponse | undefined</code></summary>
1951+
<details><summary><code>client.proxy.<a href="/src/api/resources/proxy/client/Client.ts">put</a>(url64, { ...params }) -> Record<string, unknown></code></summary>
19521952
<dl>
19531953
<dd>
19541954

@@ -2010,7 +2010,7 @@ await client.proxy.put("url_64", {
20102010
</dl>
20112011
</details>
20122012

2013-
<details><summary><code>client.proxy.<a href="/src/api/resources/proxy/client/Client.ts">delete</a>(url64, { ...params }) -> Pipedream.ProxyResponse | undefined</code></summary>
2013+
<details><summary><code>client.proxy.<a href="/src/api/resources/proxy/client/Client.ts">delete</a>(url64, { ...params }) -> Record<string, unknown></code></summary>
20142014
<dl>
20152015
<dd>
20162016

@@ -2069,7 +2069,7 @@ await client.proxy.delete("url_64", {
20692069
</dl>
20702070
</details>
20712071

2072-
<details><summary><code>client.proxy.<a href="/src/api/resources/proxy/client/Client.ts">patch</a>(url64, { ...params }) -> Pipedream.ProxyResponse | undefined</code></summary>
2072+
<details><summary><code>client.proxy.<a href="/src/api/resources/proxy/client/Client.ts">patch</a>(url64, { ...params }) -> Record<string, unknown></code></summary>
20732073
<dl>
20742074
<dd>
20752075

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/types/ProxyResponse.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
export type ProxyResponse = unknown;
5+
/**
6+
* The parsed response body from a proxied API request
7+
*/
8+
export interface ProxyResponse {
9+
/** HTTP status code */
10+
status?: number;
11+
/** Response headers */
12+
headers?: Record<string, unknown>;
13+
body?: unknown;
14+
}

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)