Skip to content

Commit 16f9d36

Browse files
🌿 Fern Regeneration -- August 16, 2025 (#97)
SDK regeneration Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 8a43b47 commit 16f9d36

File tree

61 files changed

+501
-544
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+501
-544
lines changed

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ tests
66
.fernignore
77
.prettierrc.yml
88
tsconfig.json
9-
yarn.lock
9+
yarn.lock
10+
pnpm-lock.yaml

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

Lines changed: 45 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ export class Accounts {
8383
if (includeCredentials != null) {
8484
_queryParams["include_credentials"] = includeCredentials.toString();
8585
}
86+
var _headers: core.Fetcher.Args["headers"] = mergeHeaders(
87+
this._options?.headers,
88+
mergeOnlyDefinedHeaders({
89+
Authorization: await this._getAuthorizationHeader(),
90+
"x-pd-environment": requestOptions?.projectEnvironment,
91+
}),
92+
requestOptions?.headers,
93+
);
8694
const _response = await core.fetcher({
8795
url: core.url.join(
8896
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -91,14 +99,7 @@ export class Accounts {
9199
`v1/connect/${encodeURIComponent(this._options.projectId)}/accounts`,
92100
),
93101
method: "GET",
94-
headers: mergeHeaders(
95-
this._options?.headers,
96-
mergeOnlyDefinedHeaders({
97-
Authorization: await this._getAuthorizationHeader(),
98-
"x-pd-environment": requestOptions?.projectEnvironment,
99-
}),
100-
requestOptions?.headers,
101-
),
102+
headers: _headers,
102103
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
103104
timeoutMs:
104105
requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -193,6 +194,14 @@ export class Accounts {
193194
_queryParams["oauth_app_id"] = oauthAppId;
194195
}
195196

197+
var _headers: core.Fetcher.Args["headers"] = mergeHeaders(
198+
this._options?.headers,
199+
mergeOnlyDefinedHeaders({
200+
Authorization: await this._getAuthorizationHeader(),
201+
"x-pd-environment": requestOptions?.projectEnvironment,
202+
}),
203+
requestOptions?.headers,
204+
);
196205
const _response = await core.fetcher({
197206
url: core.url.join(
198207
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -201,14 +210,7 @@ export class Accounts {
201210
`v1/connect/${encodeURIComponent(this._options.projectId)}/accounts`,
202211
),
203212
method: "POST",
204-
headers: mergeHeaders(
205-
this._options?.headers,
206-
mergeOnlyDefinedHeaders({
207-
Authorization: await this._getAuthorizationHeader(),
208-
"x-pd-environment": requestOptions?.projectEnvironment,
209-
}),
210-
requestOptions?.headers,
211-
),
213+
headers: _headers,
212214
contentType: "application/json",
213215
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
214216
requestType: "json",
@@ -287,6 +289,14 @@ export class Accounts {
287289
_queryParams["include_credentials"] = includeCredentials.toString();
288290
}
289291

292+
var _headers: core.Fetcher.Args["headers"] = mergeHeaders(
293+
this._options?.headers,
294+
mergeOnlyDefinedHeaders({
295+
Authorization: await this._getAuthorizationHeader(),
296+
"x-pd-environment": requestOptions?.projectEnvironment,
297+
}),
298+
requestOptions?.headers,
299+
);
290300
const _response = await core.fetcher({
291301
url: core.url.join(
292302
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -295,14 +305,7 @@ export class Accounts {
295305
`v1/connect/${encodeURIComponent(this._options.projectId)}/accounts/${encodeURIComponent(accountId)}`,
296306
),
297307
method: "GET",
298-
headers: mergeHeaders(
299-
this._options?.headers,
300-
mergeOnlyDefinedHeaders({
301-
Authorization: await this._getAuthorizationHeader(),
302-
"x-pd-environment": requestOptions?.projectEnvironment,
303-
}),
304-
requestOptions?.headers,
305-
),
308+
headers: _headers,
306309
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
307310
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
308311
maxRetries: requestOptions?.maxRetries,
@@ -363,6 +366,14 @@ export class Accounts {
363366
accountId: string,
364367
requestOptions?: Accounts.RequestOptions,
365368
): Promise<core.WithRawResponse<void>> {
369+
var _headers: core.Fetcher.Args["headers"] = mergeHeaders(
370+
this._options?.headers,
371+
mergeOnlyDefinedHeaders({
372+
Authorization: await this._getAuthorizationHeader(),
373+
"x-pd-environment": requestOptions?.projectEnvironment,
374+
}),
375+
requestOptions?.headers,
376+
);
366377
const _response = await core.fetcher({
367378
url: core.url.join(
368379
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -371,14 +382,7 @@ export class Accounts {
371382
`v1/connect/${encodeURIComponent(this._options.projectId)}/accounts/${encodeURIComponent(accountId)}`,
372383
),
373384
method: "DELETE",
374-
headers: mergeHeaders(
375-
this._options?.headers,
376-
mergeOnlyDefinedHeaders({
377-
Authorization: await this._getAuthorizationHeader(),
378-
"x-pd-environment": requestOptions?.projectEnvironment,
379-
}),
380-
requestOptions?.headers,
381-
),
385+
headers: _headers,
382386
queryParameters: requestOptions?.queryParams,
383387
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
384388
maxRetries: requestOptions?.maxRetries,
@@ -430,6 +434,14 @@ export class Accounts {
430434
appId: string,
431435
requestOptions?: Accounts.RequestOptions,
432436
): Promise<core.WithRawResponse<void>> {
437+
var _headers: core.Fetcher.Args["headers"] = mergeHeaders(
438+
this._options?.headers,
439+
mergeOnlyDefinedHeaders({
440+
Authorization: await this._getAuthorizationHeader(),
441+
"x-pd-environment": requestOptions?.projectEnvironment,
442+
}),
443+
requestOptions?.headers,
444+
);
433445
const _response = await core.fetcher({
434446
url: core.url.join(
435447
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -438,14 +450,7 @@ export class Accounts {
438450
`v1/connect/${encodeURIComponent(this._options.projectId)}/apps/${encodeURIComponent(appId)}/accounts`,
439451
),
440452
method: "DELETE",
441-
headers: mergeHeaders(
442-
this._options?.headers,
443-
mergeOnlyDefinedHeaders({
444-
Authorization: await this._getAuthorizationHeader(),
445-
"x-pd-environment": requestOptions?.projectEnvironment,
446-
}),
447-
requestOptions?.headers,
448-
),
453+
headers: _headers,
449454
queryParameters: requestOptions?.queryParams,
450455
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
451456
maxRetries: requestOptions?.maxRetries,

src/api/resources/accounts/client/requests/AccountsListRequest.ts

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,17 @@
77
* {}
88
*/
99
export interface AccountsListRequest {
10-
/**
11-
* The app slug or ID to filter accounts by.
12-
*/
10+
/** The app slug or ID to filter accounts by. */
1311
appId?: string;
1412
externalUserId?: string;
15-
/**
16-
* The OAuth app ID to filter by, if applicable
17-
*/
13+
/** The OAuth app ID to filter by, if applicable */
1814
oauthAppId?: string;
19-
/**
20-
* The cursor to start from for pagination
21-
*/
15+
/** The cursor to start from for pagination */
2216
after?: string;
23-
/**
24-
* The cursor to end before for pagination
25-
*/
17+
/** The cursor to end before for pagination */
2618
before?: string;
27-
/**
28-
* The maximum number of results to return
29-
*/
19+
/** The maximum number of results to return */
3020
limit?: number;
31-
/**
32-
* Whether to retrieve the account's credentials or not
33-
*/
21+
/** Whether to retrieve the account's credentials or not */
3422
includeCredentials?: boolean;
3523
}

src/api/resources/accounts/client/requests/AccountsRetrieveRequest.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* {}
88
*/
99
export interface AccountsRetrieveRequest {
10-
/**
11-
* Whether to retrieve the account's credentials or not
12-
*/
10+
/** Whether to retrieve the account's credentials or not */
1311
includeCredentials?: boolean;
1412
}

src/api/resources/accounts/client/requests/CreateAccountOpts.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,10 @@
1111
* }
1212
*/
1313
export interface CreateAccountOpts {
14-
/**
15-
* The app slug or ID to filter accounts by.
16-
*/
14+
/** The app slug or ID to filter accounts by. */
1715
appId?: string;
1816
externalUserId?: string;
19-
/**
20-
* The OAuth app ID to filter by, if applicable
21-
*/
17+
/** The OAuth app ID to filter by, if applicable */
2218
oauthAppId?: string;
2319
/** The app slug for the account */
2420
appSlug: string;

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

Lines changed: 45 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ export class Actions {
7777
if (app != null) {
7878
_queryParams["app"] = app;
7979
}
80+
var _headers: core.Fetcher.Args["headers"] = mergeHeaders(
81+
this._options?.headers,
82+
mergeOnlyDefinedHeaders({
83+
Authorization: await this._getAuthorizationHeader(),
84+
"x-pd-environment": requestOptions?.projectEnvironment,
85+
}),
86+
requestOptions?.headers,
87+
);
8088
const _response = await core.fetcher({
8189
url: core.url.join(
8290
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -85,14 +93,7 @@ export class Actions {
8593
`v1/connect/${encodeURIComponent(this._options.projectId)}/actions`,
8694
),
8795
method: "GET",
88-
headers: mergeHeaders(
89-
this._options?.headers,
90-
mergeOnlyDefinedHeaders({
91-
Authorization: await this._getAuthorizationHeader(),
92-
"x-pd-environment": requestOptions?.projectEnvironment,
93-
}),
94-
requestOptions?.headers,
95-
),
96+
headers: _headers,
9697
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
9798
timeoutMs:
9899
requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -169,6 +170,14 @@ export class Actions {
169170
componentId: string,
170171
requestOptions?: Actions.RequestOptions,
171172
): Promise<core.WithRawResponse<Pipedream.GetComponentResponse>> {
173+
var _headers: core.Fetcher.Args["headers"] = mergeHeaders(
174+
this._options?.headers,
175+
mergeOnlyDefinedHeaders({
176+
Authorization: await this._getAuthorizationHeader(),
177+
"x-pd-environment": requestOptions?.projectEnvironment,
178+
}),
179+
requestOptions?.headers,
180+
);
172181
const _response = await core.fetcher({
173182
url: core.url.join(
174183
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -177,14 +186,7 @@ export class Actions {
177186
`v1/connect/${encodeURIComponent(this._options.projectId)}/actions/${encodeURIComponent(componentId)}`,
178187
),
179188
method: "GET",
180-
headers: mergeHeaders(
181-
this._options?.headers,
182-
mergeOnlyDefinedHeaders({
183-
Authorization: await this._getAuthorizationHeader(),
184-
"x-pd-environment": requestOptions?.projectEnvironment,
185-
}),
186-
requestOptions?.headers,
187-
),
189+
headers: _headers,
188190
queryParameters: requestOptions?.queryParams,
189191
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
190192
maxRetries: requestOptions?.maxRetries,
@@ -252,6 +254,14 @@ export class Actions {
252254
request: Pipedream.ConfigurePropOpts,
253255
requestOptions?: Actions.RequestOptions,
254256
): Promise<core.WithRawResponse<Pipedream.ConfigurePropResponse>> {
257+
var _headers: core.Fetcher.Args["headers"] = mergeHeaders(
258+
this._options?.headers,
259+
mergeOnlyDefinedHeaders({
260+
Authorization: await this._getAuthorizationHeader(),
261+
"x-pd-environment": requestOptions?.projectEnvironment,
262+
}),
263+
requestOptions?.headers,
264+
);
255265
const _response = await core.fetcher({
256266
url: core.url.join(
257267
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -260,14 +270,7 @@ export class Actions {
260270
`v1/connect/${encodeURIComponent(this._options.projectId)}/actions/configure`,
261271
),
262272
method: "POST",
263-
headers: mergeHeaders(
264-
this._options?.headers,
265-
mergeOnlyDefinedHeaders({
266-
Authorization: await this._getAuthorizationHeader(),
267-
"x-pd-environment": requestOptions?.projectEnvironment,
268-
}),
269-
requestOptions?.headers,
270-
),
273+
headers: _headers,
271274
contentType: "application/json",
272275
queryParameters: requestOptions?.queryParams,
273276
requestType: "json",
@@ -340,6 +343,14 @@ export class Actions {
340343
request: Pipedream.ReloadPropsOpts,
341344
requestOptions?: Actions.RequestOptions,
342345
): Promise<core.WithRawResponse<Pipedream.ReloadPropsResponse>> {
346+
var _headers: core.Fetcher.Args["headers"] = mergeHeaders(
347+
this._options?.headers,
348+
mergeOnlyDefinedHeaders({
349+
Authorization: await this._getAuthorizationHeader(),
350+
"x-pd-environment": requestOptions?.projectEnvironment,
351+
}),
352+
requestOptions?.headers,
353+
);
343354
const _response = await core.fetcher({
344355
url: core.url.join(
345356
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -348,14 +359,7 @@ export class Actions {
348359
`v1/connect/${encodeURIComponent(this._options.projectId)}/actions/props`,
349360
),
350361
method: "POST",
351-
headers: mergeHeaders(
352-
this._options?.headers,
353-
mergeOnlyDefinedHeaders({
354-
Authorization: await this._getAuthorizationHeader(),
355-
"x-pd-environment": requestOptions?.projectEnvironment,
356-
}),
357-
requestOptions?.headers,
358-
),
362+
headers: _headers,
359363
contentType: "application/json",
360364
queryParameters: requestOptions?.queryParams,
361365
requestType: "json",
@@ -428,6 +432,14 @@ export class Actions {
428432
request: Pipedream.RunActionOpts,
429433
requestOptions?: Actions.RequestOptions,
430434
): Promise<core.WithRawResponse<Pipedream.RunActionResponse>> {
435+
var _headers: core.Fetcher.Args["headers"] = mergeHeaders(
436+
this._options?.headers,
437+
mergeOnlyDefinedHeaders({
438+
Authorization: await this._getAuthorizationHeader(),
439+
"x-pd-environment": requestOptions?.projectEnvironment,
440+
}),
441+
requestOptions?.headers,
442+
);
431443
const _response = await core.fetcher({
432444
url: core.url.join(
433445
(await core.Supplier.get(this._options.baseUrl)) ??
@@ -436,14 +448,7 @@ export class Actions {
436448
`v1/connect/${encodeURIComponent(this._options.projectId)}/actions/run`,
437449
),
438450
method: "POST",
439-
headers: mergeHeaders(
440-
this._options?.headers,
441-
mergeOnlyDefinedHeaders({
442-
Authorization: await this._getAuthorizationHeader(),
443-
"x-pd-environment": requestOptions?.projectEnvironment,
444-
}),
445-
requestOptions?.headers,
446-
),
451+
headers: _headers,
447452
contentType: "application/json",
448453
queryParameters: requestOptions?.queryParams,
449454
requestType: "json",

0 commit comments

Comments
 (0)