Skip to content

🌿 Fern Regeneration -- July 16, 2025 #30

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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { PipedreamClient } from "@pipedream/sdk";
const client = new PipedreamClient({
clientId: "YOUR_CLIENT_ID",
clientSecret: "YOUR_CLIENT_SECRET",
xPdEnvironment: "YOUR_X_PD_ENVIRONMENT",
projectEnvironment: "YOUR_PROJECT_ENVIRONMENT",
});
await client.accounts.create({
app_slug: "app_slug",
Expand Down Expand Up @@ -77,15 +77,15 @@ import { PipedreamClient } from "@pipedream/sdk";
const client = new PipedreamClient({
clientId: "YOUR_CLIENT_ID",
clientSecret: "YOUR_CLIENT_SECRET",
xPdEnvironment: "YOUR_X_PD_ENVIRONMENT",
projectEnvironment: "YOUR_PROJECT_ENVIRONMENT",
});
const response = await client.apps.list();
for await (const item of response) {
console.log(item);
}

// Or you can manually iterate page-by-page
const page = await client.apps.list();
let page = await client.apps.list();
while (page.hasNextPage()) {
page = page.getNextPage();
}
Expand Down
14 changes: 7 additions & 7 deletions 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 Expand Up @@ -39,17 +39,17 @@
"test:wire": "jest --selectProjects wire"
},
"devDependencies": {
"webpack": "^5.97.1",
"ts-loader": "^9.5.1",
"jest": "^29.7.0",
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.14",
"@types/node": "^18.19.70",
"jest": "^29.7.0",
"ts-jest": "^29.3.4",
"jest-environment-jsdom": "^29.7.0",
"msw": "^2.8.4",
"@types/node": "^18.19.70",
"prettier": "^3.4.2",
"ts-jest": "^29.3.4",
"ts-loader": "^9.5.1",
"typescript": "~5.7.2",
"webpack": "^5.97.1"
"typescript": "~5.7.2"
},
"browser": {
"fs": false,
Expand Down
12 changes: 6 additions & 6 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ for await (const item of response) {
}

// Or you can manually iterate page-by-page
const page = await client.apps.list();
let page = await client.apps.list();
while (page.hasNextPage()) {
page = page.getNextPage();
}
Expand Down Expand Up @@ -218,7 +218,7 @@ for await (const item of response) {
}

// Or you can manually iterate page-by-page
const page = await client.accounts.list();
let page = await client.accounts.list();
while (page.hasNextPage()) {
page = page.getNextPage();
}
Expand Down Expand Up @@ -531,7 +531,7 @@ for await (const item of response) {
}

// Or you can manually iterate page-by-page
const page = await client.components.list();
let page = await client.components.list();
while (page.hasNextPage()) {
page = page.getNextPage();
}
Expand Down Expand Up @@ -745,7 +745,7 @@ for await (const item of response) {
}

// Or you can manually iterate page-by-page
const page = await client.actions.list();
let page = await client.actions.list();
while (page.hasNextPage()) {
page = page.getNextPage();
}
Expand Down Expand Up @@ -1010,7 +1010,7 @@ for await (const item of response) {
}

// Or you can manually iterate page-by-page
const page = await client.triggers.list();
let page = await client.triggers.list();
while (page.hasNextPage()) {
page = page.getNextPage();
}
Expand Down Expand Up @@ -1277,7 +1277,7 @@ for await (const item of response) {
}

// Or you can manually iterate page-by-page
const page = await client.deployedTriggers.list({
let page = await client.deployedTriggers.list({
external_user_id: "external_user_id",
});
while (page.hasNextPage()) {
Expand Down
7 changes: 4 additions & 3 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import * as environments from "./environments.js";
import * as core from "./core/index.js";
import * as Pipedream from "./api/index.js";
import { OauthTokens } from "./api/resources/oauthTokens/client/Client.js";
import { mergeHeaders } from "./core/headers.js";
import { AppCategories } from "./api/resources/appCategories/client/Client.js";
Expand All @@ -27,7 +28,7 @@ export declare namespace PipedreamClient {
clientSecret?: core.Supplier<string>;
projectId: string;
/** Override the x-pd-environment header */
xPdEnvironment?: core.Supplier<string | undefined>;
projectEnvironment?: core.Supplier<Pipedream.ProjectEnvironment | undefined>;
/** Additional headers to include in requests. */
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
Expand All @@ -40,7 +41,7 @@ export declare namespace PipedreamClient {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the x-pd-environment header */
xPdEnvironment?: string | undefined;
projectEnvironment?: Pipedream.ProjectEnvironment | undefined;
/** Additional headers to include in the request. */
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
Expand All @@ -67,7 +68,7 @@ export class PipedreamClient {
..._options,
headers: mergeHeaders(
{
"x-pd-environment": _options?.xPdEnvironment,
"x-pd-environment": _options?.projectEnvironment,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@pipedream/sdk",
"X-Fern-SDK-Version": "1.7.1",
Expand Down
14 changes: 7 additions & 7 deletions src/api/resources/accounts/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export declare namespace Accounts {
projectId: string;
token?: core.Supplier<core.BearerToken | undefined>;
/** Override the x-pd-environment header */
xPdEnvironment?: core.Supplier<string | undefined>;
projectEnvironment?: core.Supplier<Pipedream.ProjectEnvironment | undefined>;
/** Additional headers to include in requests. */
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
Expand All @@ -29,7 +29,7 @@ export declare namespace Accounts {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the x-pd-environment header */
xPdEnvironment?: string | undefined;
projectEnvironment?: Pipedream.ProjectEnvironment | undefined;
/** Additional headers to include in the request. */
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
Expand Down Expand Up @@ -100,7 +100,7 @@ export class Accounts {
this._options?.headers,
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down Expand Up @@ -204,7 +204,7 @@ export class Accounts {
this._options?.headers,
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down Expand Up @@ -286,7 +286,7 @@ export class Accounts {
this._options?.headers,
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down Expand Up @@ -353,7 +353,7 @@ export class Accounts {
this._options?.headers,
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down Expand Up @@ -419,7 +419,7 @@ export class Accounts {
this._options?.headers,
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down
14 changes: 7 additions & 7 deletions src/api/resources/actions/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export declare namespace Actions {
projectId: string;
token?: core.Supplier<core.BearerToken | undefined>;
/** Override the x-pd-environment header */
xPdEnvironment?: core.Supplier<string | undefined>;
projectEnvironment?: core.Supplier<Pipedream.ProjectEnvironment | undefined>;
/** Additional headers to include in requests. */
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
Expand All @@ -29,7 +29,7 @@ export declare namespace Actions {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the x-pd-environment header */
xPdEnvironment?: string | undefined;
projectEnvironment?: Pipedream.ProjectEnvironment | undefined;
/** Additional headers to include in the request. */
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
Expand Down Expand Up @@ -86,7 +86,7 @@ export class Actions {
this._options?.headers,
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down Expand Up @@ -172,7 +172,7 @@ export class Actions {
this._options?.headers,
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down Expand Up @@ -249,7 +249,7 @@ export class Actions {
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-async-handle": asyncHandle != null ? asyncHandle : undefined,
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down Expand Up @@ -328,7 +328,7 @@ export class Actions {
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-async-handle": asyncHandle != null ? asyncHandle : undefined,
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down Expand Up @@ -405,7 +405,7 @@ export class Actions {
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-async-handle": asyncHandle != null ? asyncHandle : undefined,
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/appCategories/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export declare namespace AppCategories {
projectId: string;
token?: core.Supplier<core.BearerToken | undefined>;
/** Override the x-pd-environment header */
xPdEnvironment?: core.Supplier<string | undefined>;
projectEnvironment?: core.Supplier<Pipedream.ProjectEnvironment | undefined>;
/** Additional headers to include in requests. */
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
Expand All @@ -29,7 +29,7 @@ export declare namespace AppCategories {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the x-pd-environment header */
xPdEnvironment?: string | undefined;
projectEnvironment?: Pipedream.ProjectEnvironment | undefined;
/** Additional headers to include in the request. */
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
Expand Down Expand Up @@ -69,7 +69,7 @@ export class AppCategories {
this._options?.headers,
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down Expand Up @@ -136,7 +136,7 @@ export class AppCategories {
this._options?.headers,
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/apps/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export declare namespace Apps {
projectId: string;
token?: core.Supplier<core.BearerToken | undefined>;
/** Override the x-pd-environment header */
xPdEnvironment?: core.Supplier<string | undefined>;
projectEnvironment?: core.Supplier<Pipedream.ProjectEnvironment | undefined>;
/** Additional headers to include in requests. */
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
Expand All @@ -29,7 +29,7 @@ export declare namespace Apps {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the x-pd-environment header */
xPdEnvironment?: string | undefined;
projectEnvironment?: Pipedream.ProjectEnvironment | undefined;
/** Additional headers to include in the request. */
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
Expand Down Expand Up @@ -102,7 +102,7 @@ export class Apps {
this._options?.headers,
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down Expand Up @@ -183,7 +183,7 @@ export class Apps {
this._options?.headers,
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down
12 changes: 6 additions & 6 deletions src/api/resources/components/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export declare namespace Components {
projectId: string;
token?: core.Supplier<core.BearerToken | undefined>;
/** Override the x-pd-environment header */
xPdEnvironment?: core.Supplier<string | undefined>;
projectEnvironment?: core.Supplier<Pipedream.ProjectEnvironment | undefined>;
/** Additional headers to include in requests. */
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
Expand All @@ -29,7 +29,7 @@ export declare namespace Components {
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the x-pd-environment header */
xPdEnvironment?: string | undefined;
projectEnvironment?: Pipedream.ProjectEnvironment | undefined;
/** Additional headers to include in the request. */
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
}
Expand Down Expand Up @@ -86,7 +86,7 @@ export class Components {
this._options?.headers,
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down Expand Up @@ -172,7 +172,7 @@ export class Components {
this._options?.headers,
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down Expand Up @@ -249,7 +249,7 @@ export class Components {
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-async-handle": asyncHandle != null ? asyncHandle : undefined,
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down Expand Up @@ -328,7 +328,7 @@ export class Components {
mergeOnlyDefinedHeaders({
Authorization: await this._getAuthorizationHeader(),
"x-async-handle": asyncHandle != null ? asyncHandle : undefined,
"x-pd-environment": requestOptions?.xPdEnvironment,
"x-pd-environment": requestOptions?.projectEnvironment,
}),
requestOptions?.headers,
),
Expand Down
Loading
Loading