Skip to content
Open
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
43 changes: 7 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/sdk",
"version": "2.0.10",
"version": "2.0.11",
"private": false,
"repository": "github:PipedreamHQ/pipedream-sdk-typescript",
"type": "commonjs",
Expand All @@ -10,11 +10,6 @@
"exports": {
".": {
"types": "./dist/cjs/index.d.ts",
"browser": {
"types": "./dist/esm/browser/index.d.mts",
"import": "./dist/esm/browser/index.mjs",
"default": "./dist/esm/browser/index.mjs"
},
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
Expand All @@ -25,18 +20,6 @@
},
"default": "./dist/cjs/index.js"
},
"./browser": {
"types": "./dist/esm/browser/index.d.mts",
"import": {
"types": "./dist/esm/browser/index.d.mts",
"default": "./dist/esm/browser/index.mjs"
},
"require": {
"types": "./dist/cjs/browser/index.d.ts",
"default": "./dist/cjs/browser/index.js"
},
"default": "./dist/esm/browser/index.mjs"
},
"./serialization": {
"types": "./dist/cjs/serialization/index.d.ts",
"import": {
Expand All @@ -49,18 +32,6 @@
},
"default": "./dist/cjs/serialization/index.js"
},
"./server": {
"types": "./dist/cjs/index.d.ts",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"default": "./dist/cjs/index.js"
},
"./package.json": "./package.json"
},
"files": [
Expand All @@ -80,17 +51,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
14 changes: 5 additions & 9 deletions src/api/resources/accounts/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,8 @@ export class Accounts {
async (
request: Pipedream.AccountsListRequest,
): Promise<core.WithRawResponse<Pipedream.ListAccountsResponse>> => {
const { app, externalUserId, oauthAppId, after, before, limit, includeCredentials } = request;
const { externalUserId, oauthAppId, after, before, limit, app, includeCredentials } = request;
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
if (app != null) {
_queryParams["app"] = app;
}
if (externalUserId != null) {
_queryParams["external_user_id"] = externalUserId;
}
Expand All @@ -84,6 +81,9 @@ export class Accounts {
if (limit != null) {
_queryParams["limit"] = limit.toString();
}
if (app != null) {
_queryParams["app"] = app;
}
if (includeCredentials != null) {
_queryParams["include_credentials"] = includeCredentials.toString();
}
Expand Down Expand Up @@ -193,12 +193,8 @@ export class Accounts {
request: Pipedream.CreateAccountOpts,
requestOptions?: Accounts.RequestOptions,
): Promise<core.WithRawResponse<Pipedream.Account>> {
const { appId, externalUserId, oauthAppId, ..._body } = request;
const { externalUserId, oauthAppId, ..._body } = request;
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
if (appId != null) {
_queryParams["app_id"] = appId;
}

if (externalUserId != null) {
_queryParams["external_user_id"] = externalUserId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* {}
*/
export interface AccountsListRequest {
/** The app slug or ID to filter accounts by. */
app?: string;
externalUserId?: string;
/** The OAuth app ID to filter by, if applicable */
oauthAppId?: string;
Expand All @@ -18,6 +16,8 @@ export interface AccountsListRequest {
before?: string;
/** The maximum number of results to return */
limit?: number;
/** The app slug or ID to filter accounts by. */
app?: string;
/** Whether to retrieve the account's credentials or not */
includeCredentials?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
* }
*/
export interface CreateAccountOpts {
/** The app slug or ID to filter accounts by. */
appId?: string;
externalUserId?: string;
/** The OAuth app ID to filter by, if applicable */
oauthAppId?: string;
Expand Down
3 changes: 2 additions & 1 deletion src/api/resources/actions/client/requests/RunActionOpts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export interface RunActionOpts {
id: string;
/** The external user ID */
externalUserId: string;
configuredProps?: Pipedream.ConfiguredProps;
/** The configured properties for the action */
configuredProps?: Record<string, unknown>;
/** The ID for dynamic props */
dynamicPropsId?: string;
stashId?: Pipedream.RunActionOptsStashId;
Expand Down
10 changes: 2 additions & 8 deletions src/api/resources/components/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import * as environments from "../../../../environments.js";
import * as core from "../../../../core/index.js";
import * as Pipedream from "../../../index.js";
import * as serializers from "../../../../serialization/index.js";
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js";
import * as serializers from "../../../../serialization/index.js";
import * as errors from "../../../../errors/index.js";

export declare namespace Components {
Expand Down Expand Up @@ -64,7 +64,7 @@ export class Components {
async (
request: Pipedream.ComponentsListRequest,
): Promise<core.WithRawResponse<Pipedream.GetComponentsResponse>> => {
const { after, before, limit, q, app, componentType } = request;
const { after, before, limit, q, app } = request;
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
if (after != null) {
_queryParams["after"] = after;
Expand All @@ -81,12 +81,6 @@ export class Components {
if (app != null) {
_queryParams["app"] = app;
}
if (componentType != null) {
_queryParams["component_type"] = serializers.ComponentType.jsonOrThrow(componentType, {
unrecognizedObjectKeys: "strip",
omitUndefined: true,
});
}
let _headers: core.Fetcher.Args["headers"] = mergeHeaders(
this._options?.headers,
mergeOnlyDefinedHeaders({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This file was auto-generated by Fern from our API Definition.
*/

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

/**
* @example
* {}
Expand All @@ -19,6 +17,4 @@ export interface ComponentsListRequest {
q?: string;
/** The ID or name slug of the app to filter the components */
app?: string;
/** The type of the component to filter the components */
componentType?: Pipedream.ComponentType;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This file was auto-generated by Fern from our API Definition.
*/

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

/**
* @example
* {
Expand All @@ -15,7 +13,8 @@ export interface UpdateTriggerOpts {
externalUserId: string;
/** Whether the trigger should be active */
active?: boolean;
configuredProps?: Pipedream.ConfiguredProps;
/** The configured properties for the trigger */
configuredProps?: Record<string, unknown>;
/** The name of the trigger */
name?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This file was auto-generated by Fern from our API Definition.
*/

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

/**
* @example
* {
Expand All @@ -16,7 +14,8 @@ export interface DeployTriggerOpts {
id: string;
/** The external user ID */
externalUserId: string;
configuredProps?: Pipedream.ConfiguredProps;
/** The configured properties for the trigger */
configuredProps?: Record<string, unknown>;
/** The ID for dynamic props */
dynamicPropsId?: string;
/** Optional webhook URL to receive trigger events */
Expand Down
3 changes: 2 additions & 1 deletion src/api/types/Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import * as Pipedream from "../index.js";
* End user account data, returned from the API.
*/
export interface Account {
id: Pipedream.AccountId;
/** The unique ID of the account. */
id: string;
/** The custom name of the account if set. */
name?: string;
/** The external ID associated with the account. */
Expand Down
8 changes: 0 additions & 8 deletions src/api/types/AccountId.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/api/types/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
/** The type of component (trigger or action) */
componentType?: string;
stash?: Pipedream.ComponentStash;
annotations?: Pipedream.ToolAnnotations;

Check failure on line 20 in src/api/types/Component.ts

View workflow job for this annotation

GitHub Actions / compile

Namespace '"/home/runner/work/pipedream-sdk-typescript/pipedream-sdk-typescript/src/api/index"' has no exported member 'ToolAnnotations'.
}
12 changes: 0 additions & 12 deletions src/api/types/ComponentType.ts

This file was deleted.

4 changes: 1 addition & 3 deletions src/api/types/ConfigurableProp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
* This file was auto-generated by Fern from our API Definition.
*/

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

/**
* A configuration or input field for a component.
*/
export interface ConfigurableProp {
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
type: Pipedream.ConfigurablePropType;
type?: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
label?: string;
/** A description of the prop, shown to the user when configuring the component. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropAirtableBaseId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

export interface ConfigurablePropAirtableBaseId {
type: "$.airtable.baseId";
type?: "$.airtable.baseId";
/** The name of the app prop that provides Airtable authentication */
appProp: string;
appProp?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropAirtableFieldId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

export interface ConfigurablePropAirtableFieldId {
type: "$.airtable.fieldId";
type?: "$.airtable.fieldId";
/** The name of the prop that provides the Airtable table ID */
tableIdProp: string;
tableIdProp?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropAirtableTableId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

export interface ConfigurablePropAirtableTableId {
type: "$.airtable.tableId";
type?: "$.airtable.tableId";
/** The name of the prop that provides the Airtable base ID */
baseIdProp: string;
baseIdProp?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropAirtableViewId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

export interface ConfigurablePropAirtableViewId {
type: "$.airtable.viewId";
type?: "$.airtable.viewId";
/** The name of the prop that provides the Airtable table ID */
tableIdProp: string;
tableIdProp?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropAlert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import * as Pipedream from "../index.js";

export interface ConfigurablePropAlert {
type: "alert";
type?: "alert";
alertType?: Pipedream.ConfigurablePropAlertType;
/** The content of the alert, which can include HTML or plain text. */
content: string;
content?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/ConfigurablePropAny.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

export interface ConfigurablePropAny {
type: "any";
type?: "any";
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

export interface ConfigurablePropApp {
type: "app";
type?: "app";
/** The name slug of the app, e.g. 'github', 'slack', etc. This is used to identify the app for which the account is being configured. */
app: string;
app?: string;
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
name: string;
/** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/ConfigurablePropApphook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

export interface ConfigurablePropApphook {
type: "$.interface.apphook";
type?: "$.interface.apphook";
/** The name of the app prop that this apphook depends on */
appProp: string;
appProp?: string;
/** List of event names to listen for */
eventNames?: string[];
/** Whether this apphook is remote */
Expand Down
Loading
Loading