Skip to content

Commit ae7fc2d

Browse files
committed
SDK regeneration
1 parent 9c50a8a commit ae7fc2d

File tree

15 files changed

+40
-130
lines changed

15 files changed

+40
-130
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",

reference.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ await client.accounts.create({
289289
<dl>
290290
<dd>
291291

292-
**request:** `Pipedream.CreateAccountRequest`
292+
**request:** `Pipedream.CreateAccountOpts`
293293

294294
</dd>
295295
</dl>
@@ -2148,7 +2148,6 @@ await client.proxy.patch("url_64", {
21482148
```typescript
21492149
await client.tokens.create({
21502150
external_user_id: "external_user_id",
2151-
project_id: "project_id",
21522151
});
21532152
```
21542153

@@ -2165,7 +2164,7 @@ await client.tokens.create({
21652164
<dl>
21662165
<dd>
21672166

2168-
**request:** `Pipedream.CreateTokenRequest`
2167+
**request:** `Pipedream.CreateTokenOpts`
21692168

21702169
</dd>
21712170
</dl>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class Accounts {
157157
}
158158

159159
/**
160-
* @param {Pipedream.CreateAccountRequest} request
160+
* @param {Pipedream.CreateAccountOpts} request
161161
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
162162
*
163163
* @example
@@ -168,14 +168,14 @@ export class Accounts {
168168
* })
169169
*/
170170
public create(
171-
request: Pipedream.CreateAccountRequest,
171+
request: Pipedream.CreateAccountOpts,
172172
requestOptions?: Accounts.RequestOptions,
173173
): core.HttpResponsePromise<Pipedream.Account> {
174174
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
175175
}
176176

177177
private async __create(
178-
request: Pipedream.CreateAccountRequest,
178+
request: Pipedream.CreateAccountOpts,
179179
requestOptions?: Accounts.RequestOptions,
180180
): Promise<core.WithRawResponse<Pipedream.Account>> {
181181
const { app_id: appId, external_user_id: externalUserId, oauth_app_id: oauthAppId, ..._body } = request;

src/api/resources/accounts/client/requests/CreateAccountRequest.ts renamed to src/api/resources/accounts/client/requests/CreateAccountOpts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* connect_token: "connect_token"
1111
* }
1212
*/
13-
export interface CreateAccountRequest {
13+
export interface CreateAccountOpts {
1414
/**
1515
* The app slug or ID to filter accounts by.
1616
*/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export { type AccountsListRequest } from "./AccountsListRequest.js";
2-
export { type CreateAccountRequest } from "./CreateAccountRequest.js";
2+
export { type CreateAccountOpts } from "./CreateAccountOpts.js";
33
export { type AccountsRetrieveRequest } from "./AccountsRetrieveRequest.js";

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
}

0 commit comments

Comments
 (0)