Skip to content

🌿 Fern Regeneration -- July 25, 2025 #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/sdk",
"version": "2.0.0",
"version": "1.7.1",
"private": false,
"repository": "github:PipedreamHQ/pipedream-sdk-typescript",
"type": "commonjs",
Expand Down
5 changes: 2 additions & 3 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ await client.accounts.create({
<dl>
<dd>

**request:** `Pipedream.CreateAccountRequest`
**request:** `Pipedream.CreateAccountOpts`

</dd>
</dl>
Expand Down Expand Up @@ -2148,7 +2148,6 @@ await client.proxy.patch("url_64", {
```typescript
await client.tokens.create({
external_user_id: "external_user_id",
project_id: "project_id",
});
```

Expand All @@ -2165,7 +2164,7 @@ await client.tokens.create({
<dl>
<dd>

**request:** `Pipedream.CreateTokenRequest`
**request:** `Pipedream.CreateTokenOpts`

</dd>
</dl>
Expand Down
6 changes: 3 additions & 3 deletions src/api/resources/accounts/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class Accounts {
}

/**
* @param {Pipedream.CreateAccountRequest} request
* @param {Pipedream.CreateAccountOpts} request
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
Expand All @@ -168,14 +168,14 @@ export class Accounts {
* })
*/
public create(
request: Pipedream.CreateAccountRequest,
request: Pipedream.CreateAccountOpts,
requestOptions?: Accounts.RequestOptions,
): core.HttpResponsePromise<Pipedream.Account> {
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
}

private async __create(
request: Pipedream.CreateAccountRequest,
request: Pipedream.CreateAccountOpts,
requestOptions?: Accounts.RequestOptions,
): Promise<core.WithRawResponse<Pipedream.Account>> {
const { app_id: appId, external_user_id: externalUserId, oauth_app_id: oauthAppId, ..._body } = request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* connect_token: "connect_token"
* }
*/
export interface CreateAccountRequest {
export interface CreateAccountOpts {
/**
* The app slug or ID to filter accounts by.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/accounts/client/requests/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { type AccountsListRequest } from "./AccountsListRequest.js";
export { type CreateAccountRequest } from "./CreateAccountRequest.js";
export { type CreateAccountOpts } from "./CreateAccountOpts.js";
export { type AccountsRetrieveRequest } from "./AccountsRetrieveRequest.js";
19 changes: 1 addition & 18 deletions src/api/resources/proxy/client/requests/ProxyDeleteRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,14 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as core from "../../../../../core/index.js";

/**
* @example
* {
* url: "https://api.example.com/endpoint",
* external_user_id: "external_user_id",
* account_id: "account_id",
* params: { page: "1", limit: "10" },
* headers: { "X-Custom-Header": "value" }
* account_id: "account_id"
* }
*/
export interface ProxyDeleteRequest {
/**
* Target URL to proxy request to
*/
url: string;
/**
* The external user ID for the proxy request
*/
Expand All @@ -27,12 +18,4 @@ export interface ProxyDeleteRequest {
* The account ID to use for authentication
*/
account_id: string;
/**
* Query parameters to forward
*/
params?: Record<string, string | string[] | object | object[] | null>;
/**
* Additional headers to include (will be prefixed with 'x-pd-proxy-')
*/
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
19 changes: 1 addition & 18 deletions src/api/resources/proxy/client/requests/ProxyGetRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,14 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as core from "../../../../../core/index.js";

/**
* @example
* {
* url: "https://api.example.com/endpoint",
* external_user_id: "external_user_id",
* account_id: "account_id",
* params: { page: "1", limit: "10" },
* headers: { "X-Custom-Header": "value" }
* account_id: "account_id"
* }
*/
export interface ProxyGetRequest {
/**
* Target URL to proxy request to
*/
url: string;
/**
* The external user ID for the proxy request
*/
Expand All @@ -27,12 +18,4 @@ export interface ProxyGetRequest {
* The account ID to use for authentication
*/
account_id: string;
/**
* Query parameters to forward
*/
params?: Record<string, string | string[] | object | object[] | null>;
/**
* Additional headers to include (will be prefixed with 'x-pd-proxy-')
*/
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
19 changes: 1 addition & 18 deletions src/api/resources/proxy/client/requests/ProxyPatchRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,17 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as core from "../../../../../core/index.js";

/**
* @example
* {
* url: "https://api.example.com/endpoint",
* external_user_id: "external_user_id",
* account_id: "account_id",
* body: {
* "key": "value"
* },
* params: { page: "1", limit: "10" },
* headers: { "X-Custom-Header": "value" }
* }
* }
*/
export interface ProxyPatchRequest {
/**
* Target URL to proxy request to
*/
url: string;
/**
* The external user ID for the proxy request
*/
Expand All @@ -34,12 +25,4 @@ export interface ProxyPatchRequest {
* Request body to forward to the target API
*/
body: Record<string, unknown>;
/**
* Query parameters to forward
*/
params?: Record<string, string | string[] | object | object[] | null>;
/**
* Additional headers to include (will be prefixed with 'x-pd-proxy-')
*/
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
19 changes: 1 addition & 18 deletions src/api/resources/proxy/client/requests/ProxyPostRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,17 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as core from "../../../../../core/index.js";

/**
* @example
* {
* url: "https://api.example.com/endpoint",
* external_user_id: "external_user_id",
* account_id: "account_id",
* body: {
* "key": "value"
* },
* params: { page: "1", limit: "10" },
* headers: { "X-Custom-Header": "value" }
* }
* }
*/
export interface ProxyPostRequest {
/**
* Target URL to proxy request to
*/
url: string;
/**
* The external user ID for the proxy request
*/
Expand All @@ -34,12 +25,4 @@ export interface ProxyPostRequest {
* Request body to forward to the target API
*/
body: Record<string, unknown>;
/**
* Query parameters to forward
*/
params?: Record<string, string | string[] | object | object[] | null>;
/**
* Additional headers to include (will be prefixed with 'x-pd-proxy-')
*/
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
19 changes: 1 addition & 18 deletions src/api/resources/proxy/client/requests/ProxyPutRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,17 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as core from "../../../../../core/index.js";

/**
* @example
* {
* url: "https://api.example.com/endpoint",
* external_user_id: "external_user_id",
* account_id: "account_id",
* body: {
* "key": "value"
* },
* params: { page: "1", limit: "10" },
* headers: { "X-Custom-Header": "value" }
* }
* }
*/
export interface ProxyPutRequest {
/**
* Target URL to proxy request to
*/
url: string;
/**
* The external user ID for the proxy request
*/
Expand All @@ -34,12 +25,4 @@ export interface ProxyPutRequest {
* Request body to forward to the target API
*/
body: Record<string, unknown>;
/**
* Query parameters to forward
*/
params?: Record<string, string | string[] | object | object[] | null>;
/**
* Additional headers to include (will be prefixed with 'x-pd-proxy-')
*/
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
19 changes: 10 additions & 9 deletions src/api/resources/tokens/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,32 +43,31 @@ export class Tokens {
}

/**
* @param {Pipedream.CreateTokenRequest} request
* @param {Pipedream.CreateTokenOpts} request
* @param {Tokens.RequestOptions} requestOptions - Request-specific configuration.
*
* @example
* await client.tokens.create({
* external_user_id: "external_user_id",
* project_id: "project_id"
* external_user_id: "external_user_id"
* })
*/
public create(
request: Pipedream.CreateTokenRequest,
request: Pipedream.CreateTokenOpts,
requestOptions?: Tokens.RequestOptions,
): core.HttpResponsePromise<Pipedream.CreateTokenResponse> {
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
}

private async __create(
request: Pipedream.CreateTokenRequest,
request: Pipedream.CreateTokenOpts,
requestOptions?: Tokens.RequestOptions,
): Promise<core.WithRawResponse<Pipedream.CreateTokenResponse>> {
const _response = await core.fetcher({
url: core.url.join(
(await core.Supplier.get(this._options.baseUrl)) ??
(await core.Supplier.get(this._options.environment)) ??
environments.PipedreamEnvironment.Prod,
"v1/connect/tokens",
`v1/connect/${encodeURIComponent(this._options.projectId)}/tokens`,
),
method: "POST",
headers: mergeHeaders(
Expand Down Expand Up @@ -106,7 +105,9 @@ export class Tokens {
rawResponse: _response.rawResponse,
});
case "timeout":
throw new errors.PipedreamTimeoutError("Timeout exceeded when calling POST /v1/connect/tokens.");
throw new errors.PipedreamTimeoutError(
"Timeout exceeded when calling POST /v1/connect/{project_id}/tokens.",
);
case "unknown":
throw new errors.PipedreamError({
message: _response.error.errorMessage,
Expand Down Expand Up @@ -147,7 +148,7 @@ export class Tokens {
(await core.Supplier.get(this._options.baseUrl)) ??
(await core.Supplier.get(this._options.environment)) ??
environments.PipedreamEnvironment.Prod,
`v1/connect/tokens/${encodeURIComponent(ctok)}/validate`,
`v1/connect/${encodeURIComponent(this._options.projectId)}/tokens/${encodeURIComponent(ctok)}/validate`,
),
method: "GET",
headers: mergeHeaders(
Expand Down Expand Up @@ -184,7 +185,7 @@ export class Tokens {
});
case "timeout":
throw new errors.PipedreamTimeoutError(
"Timeout exceeded when calling GET /v1/connect/tokens/{ctok}/validate.",
"Timeout exceeded when calling GET /v1/connect/{project_id}/tokens/{ctok}/validate.",
);
case "unknown":
throw new errors.PipedreamError({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@
/**
* @example
* {
* external_user_id: "external_user_id",
* project_id: "project_id"
* external_user_id: "external_user_id"
* }
*/
export interface CreateTokenRequest {
export interface CreateTokenOpts {
/** List of allowed origins for CORS */
allowed_origins?: string[];
/** URI to redirect to on error */
error_redirect_uri?: string;
/** Your end user ID, for whom you're creating the token */
external_user_id: string;
/** The ID of the project */
project_id: string;
/** URI to redirect to on success */
success_redirect_uri?: string;
/** Webhook URI for notifications */
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/tokens/client/requests/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { type CreateTokenRequest } from "./CreateTokenRequest.js";
export { type CreateTokenOpts } from "./CreateTokenOpts.js";
export { type TokensValidateRequest } from "./TokensValidateRequest.js";
2 changes: 0 additions & 2 deletions src/api/types/ConnectTokenCreateOpts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
export interface ConnectTokenCreateOpts {
/** Your end user ID, for whom you're creating the token */
external_user_id: string;
/** The ID of the project */
project_id: string;
/** List of allowed origins for CORS */
allowed_origins?: string[];
/** URI to redirect to on error */
Expand Down
Loading
Loading