Skip to content

Commit a6ea6d9

Browse files
SDK regeneration
1 parent e4c49cf commit a6ea6d9

File tree

58 files changed

+558
-1204
lines changed

Some content is hidden

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

58 files changed

+558
-1204
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@
55

66
The Pipedream TypeScript library provides convenient access to the Pipedream APIs from TypeScript.
77

8+
## Table of Contents
9+
10+
- [Installation](#installation)
11+
- [Reference](#reference)
12+
- [Migration From V 1 X](#migration-from-v-1-x)
13+
- [Usage](#usage)
14+
- [Request and Response Types](#request-and-response-types)
15+
- [Exception Handling](#exception-handling)
16+
- [Binary Response](#binary-response)
17+
- [Pagination](#pagination)
18+
- [Advanced](#advanced)
19+
- [Additional Headers](#additional-headers)
20+
- [Additional Query String Parameters](#additional-query-string-parameters)
21+
- [Retries](#retries)
22+
- [Timeouts](#timeouts)
23+
- [Aborting Requests](#aborting-requests)
24+
- [Access Raw Response Data](#access-raw-response-data)
25+
- [Runtime Compatibility](#runtime-compatibility)
26+
- [Contributing](#contributing)
27+
828
## Installation
929

1030
```sh
@@ -34,7 +54,7 @@ await client.actions.run({
3454
});
3555
```
3656

37-
## Request And Response Types
57+
## Request and Response Types
3858

3959
The SDK exports all request and response types as TypeScript interfaces. Simply import them with the
4060
following namespace:

package.json

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/sdk",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"private": false,
55
"repository": "github:PipedreamHQ/pipedream-sdk-typescript",
66
"type": "commonjs",
@@ -10,11 +10,6 @@
1010
"exports": {
1111
".": {
1212
"types": "./dist/cjs/index.d.ts",
13-
"browser": {
14-
"types": "./dist/esm/browser/index.d.mts",
15-
"import": "./dist/esm/browser/index.mjs",
16-
"default": "./dist/esm/browser/index.mjs"
17-
},
1813
"import": {
1914
"types": "./dist/esm/index.d.mts",
2015
"default": "./dist/esm/index.mjs"
@@ -25,18 +20,6 @@
2520
},
2621
"default": "./dist/cjs/index.js"
2722
},
28-
"./browser": {
29-
"types": "./dist/esm/browser/index.d.mts",
30-
"import": {
31-
"types": "./dist/esm/browser/index.d.mts",
32-
"default": "./dist/esm/browser/index.mjs"
33-
},
34-
"require": {
35-
"types": "./dist/cjs/browser/index.d.ts",
36-
"default": "./dist/cjs/browser/index.js"
37-
},
38-
"default": "./dist/esm/browser/index.mjs"
39-
},
4023
"./serialization": {
4124
"types": "./dist/cjs/serialization/index.d.ts",
4225
"import": {
@@ -49,18 +32,6 @@
4932
},
5033
"default": "./dist/cjs/serialization/index.js"
5134
},
52-
"./server": {
53-
"types": "./dist/cjs/index.d.ts",
54-
"import": {
55-
"types": "./dist/esm/index.d.mts",
56-
"default": "./dist/esm/index.mjs"
57-
},
58-
"require": {
59-
"types": "./dist/cjs/index.d.ts",
60-
"default": "./dist/cjs/index.js"
61-
},
62-
"default": "./dist/cjs/index.js"
63-
},
6435
"./package.json": "./package.json"
6536
},
6637
"files": [
@@ -93,8 +64,6 @@
9364
"@biomejs/biome": "2.2.5"
9465
},
9566
"browser": {
96-
"./dist/cjs/wrapper/utils/getBaseUrl.js": "./dist/cjs/wrapper/utils/getBaseUrl.browser.js",
97-
"./dist/esm/wrapper/utils/getBaseUrl.mjs": "./dist/esm/wrapper/utils/getBaseUrl.browser.mjs",
9867
"fs": false,
9968
"os": false,
10069
"path": false,

src/api/resources/deployedTriggers/client/requests/UpdateTriggerOpts.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ export interface UpdateTriggerOpts {
1616
configuredProps?: Pipedream.ConfiguredProps;
1717
/** The name of the trigger */
1818
name?: string;
19+
/** Whether the trigger should emit events during deployment */
20+
emitOnDeploy?: boolean;
1921
}

src/api/resources/triggers/client/requests/DeployTriggerOpts.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ export interface DeployTriggerOpts {
2323
workflowId?: string;
2424
/** Optional webhook URL to receive trigger events */
2525
webhookUrl?: string;
26+
/** Whether the trigger should emit events during the deploy hook execution. Defaults to true if not specified. */
27+
emitOnDeploy?: boolean;
2628
}

src/api/types/ConfigurableProp.ts

Lines changed: 103 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,108 @@
33
import type * as Pipedream from "../index.js";
44

55
/**
6-
* A configuration or input field for a component.
6+
* A configuration or input field for a component. This is a discriminated union based on the type field.
77
*/
8-
export interface ConfigurableProp {
9-
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
10-
name: string;
11-
type: Pipedream.ConfigurablePropType;
12-
/** 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. */
13-
label?: string;
14-
/** A description of the prop, shown to the user when configuring the component. */
15-
description?: string;
16-
/** If true, this prop does not need to be specified. */
17-
optional?: boolean;
18-
/** If true, this prop will be ignored. */
19-
disabled?: boolean;
20-
/** If true, should not expose this prop to the user */
21-
hidden?: boolean;
22-
/** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */
23-
remoteOptions?: boolean;
24-
/** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */
25-
useQuery?: boolean;
26-
/** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */
27-
reloadProps?: boolean;
28-
/** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */
29-
withLabel?: boolean;
8+
export type ConfigurableProp =
9+
| Pipedream.ConfigurableProp.Alert
10+
| Pipedream.ConfigurableProp.Any
11+
| Pipedream.ConfigurableProp.App
12+
| Pipedream.ConfigurableProp.Boolean
13+
| Pipedream.ConfigurableProp.InterfaceTimer
14+
| Pipedream.ConfigurableProp.InterfaceApphook
15+
| Pipedream.ConfigurableProp.Integer
16+
| Pipedream.ConfigurableProp.InterfaceHttp
17+
| Pipedream.ConfigurableProp.ServiceDb
18+
| Pipedream.ConfigurableProp.Sql
19+
| Pipedream.ConfigurableProp.AirtableBaseId
20+
| Pipedream.ConfigurableProp.AirtableTableId
21+
| Pipedream.ConfigurableProp.AirtableViewId
22+
| Pipedream.ConfigurableProp.AirtableFieldId
23+
| Pipedream.ConfigurableProp.DiscordChannel
24+
| Pipedream.ConfigurableProp.DiscordChannel
25+
| Pipedream.ConfigurableProp.Integer
26+
| Pipedream.ConfigurableProp.Object_
27+
| Pipedream.ConfigurableProp.String
28+
| Pipedream.ConfigurableProp.String;
29+
30+
export namespace ConfigurableProp {
31+
export interface Alert extends Pipedream.ConfigurablePropAlert {
32+
type: "alert";
33+
}
34+
35+
export interface Any extends Pipedream.ConfigurablePropAny {
36+
type: "any";
37+
}
38+
39+
export interface App extends Pipedream.ConfigurablePropApp {
40+
type: "app";
41+
}
42+
43+
export interface Boolean extends Pipedream.ConfigurablePropBoolean {
44+
type: "boolean";
45+
}
46+
47+
export interface InterfaceTimer extends Pipedream.ConfigurablePropTimer {
48+
type: "$.interface.timer";
49+
}
50+
51+
export interface InterfaceApphook extends Pipedream.ConfigurablePropApphook {
52+
type: "$.interface.apphook";
53+
}
54+
55+
export interface Integer extends Pipedream.ConfigurablePropIntegerArray {
56+
type: "integer[]";
57+
}
58+
59+
export interface InterfaceHttp extends Pipedream.ConfigurablePropHttp {
60+
type: "$.interface.http";
61+
}
62+
63+
export interface ServiceDb extends Pipedream.ConfigurablePropDb {
64+
type: "$.service.db";
65+
}
66+
67+
export interface Sql extends Pipedream.ConfigurablePropSql {
68+
type: "sql";
69+
}
70+
71+
export interface AirtableBaseId extends Pipedream.ConfigurablePropAirtableBaseId {
72+
type: "$.airtable.baseId";
73+
}
74+
75+
export interface AirtableTableId extends Pipedream.ConfigurablePropAirtableTableId {
76+
type: "$.airtable.tableId";
77+
}
78+
79+
export interface AirtableViewId extends Pipedream.ConfigurablePropAirtableViewId {
80+
type: "$.airtable.viewId";
81+
}
82+
83+
export interface AirtableFieldId extends Pipedream.ConfigurablePropAirtableFieldId {
84+
type: "$.airtable.fieldId";
85+
}
86+
87+
export interface DiscordChannel extends Pipedream.ConfigurablePropDiscordChannel {
88+
type: "$.discord.channel";
89+
}
90+
91+
export interface DiscordChannel extends Pipedream.ConfigurablePropDiscordChannelArray {
92+
type: "$.discord.channel[]";
93+
}
94+
95+
export interface Integer extends Pipedream.ConfigurablePropInteger {
96+
type: "integer";
97+
}
98+
99+
export interface Object_ extends Pipedream.ConfigurablePropObject {
100+
type: "object";
101+
}
102+
103+
export interface String extends Pipedream.ConfigurablePropString {
104+
type: "string";
105+
}
106+
107+
export interface String extends Pipedream.ConfigurablePropStringArray {
108+
type: "string[]";
109+
}
30110
}
Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
11
// This file was auto-generated by Fern from our API Definition.
22

3-
export interface ConfigurablePropAirtableBaseId {
4-
type: "$.airtable.baseId";
3+
import type * as Pipedream from "../index.js";
4+
5+
export interface ConfigurablePropAirtableBaseId extends Pipedream.ConfigurablePropBase {
56
/** The name of the app prop that provides Airtable authentication */
67
appProp: string;
7-
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
8-
name: string;
9-
/** 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. */
10-
label?: string;
11-
/** A description of the prop, shown to the user when configuring the component. */
12-
description?: string;
13-
/** If true, this prop does not need to be specified. */
14-
optional?: boolean;
15-
/** If true, this prop will be ignored. */
16-
disabled?: boolean;
17-
/** If true, should not expose this prop to the user */
18-
hidden?: boolean;
19-
/** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */
20-
remoteOptions?: boolean;
21-
/** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */
22-
useQuery?: boolean;
23-
/** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */
24-
reloadProps?: boolean;
25-
/** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */
26-
withLabel?: boolean;
278
}
Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
11
// This file was auto-generated by Fern from our API Definition.
22

3-
export interface ConfigurablePropAirtableFieldId {
4-
type: "$.airtable.fieldId";
3+
import type * as Pipedream from "../index.js";
4+
5+
export interface ConfigurablePropAirtableFieldId extends Pipedream.ConfigurablePropBase {
56
/** The name of the prop that provides the Airtable table ID */
67
tableIdProp: string;
7-
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
8-
name: string;
9-
/** 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. */
10-
label?: string;
11-
/** A description of the prop, shown to the user when configuring the component. */
12-
description?: string;
13-
/** If true, this prop does not need to be specified. */
14-
optional?: boolean;
15-
/** If true, this prop will be ignored. */
16-
disabled?: boolean;
17-
/** If true, should not expose this prop to the user */
18-
hidden?: boolean;
19-
/** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */
20-
remoteOptions?: boolean;
21-
/** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */
22-
useQuery?: boolean;
23-
/** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */
24-
reloadProps?: boolean;
25-
/** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */
26-
withLabel?: boolean;
278
}
Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
11
// This file was auto-generated by Fern from our API Definition.
22

3-
export interface ConfigurablePropAirtableTableId {
4-
type: "$.airtable.tableId";
3+
import type * as Pipedream from "../index.js";
4+
5+
export interface ConfigurablePropAirtableTableId extends Pipedream.ConfigurablePropBase {
56
/** The name of the prop that provides the Airtable base ID */
67
baseIdProp: string;
7-
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
8-
name: string;
9-
/** 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. */
10-
label?: string;
11-
/** A description of the prop, shown to the user when configuring the component. */
12-
description?: string;
13-
/** If true, this prop does not need to be specified. */
14-
optional?: boolean;
15-
/** If true, this prop will be ignored. */
16-
disabled?: boolean;
17-
/** If true, should not expose this prop to the user */
18-
hidden?: boolean;
19-
/** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */
20-
remoteOptions?: boolean;
21-
/** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */
22-
useQuery?: boolean;
23-
/** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */
24-
reloadProps?: boolean;
25-
/** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */
26-
withLabel?: boolean;
278
}
Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
11
// This file was auto-generated by Fern from our API Definition.
22

3-
export interface ConfigurablePropAirtableViewId {
4-
type: "$.airtable.viewId";
3+
import type * as Pipedream from "../index.js";
4+
5+
export interface ConfigurablePropAirtableViewId extends Pipedream.ConfigurablePropBase {
56
/** The name of the prop that provides the Airtable table ID */
67
tableIdProp: string;
7-
/** When building `configuredProps`, make sure to use this field as the key when setting the prop value */
8-
name: string;
9-
/** 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. */
10-
label?: string;
11-
/** A description of the prop, shown to the user when configuring the component. */
12-
description?: string;
13-
/** If true, this prop does not need to be specified. */
14-
optional?: boolean;
15-
/** If true, this prop will be ignored. */
16-
disabled?: boolean;
17-
/** If true, should not expose this prop to the user */
18-
hidden?: boolean;
19-
/** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */
20-
remoteOptions?: boolean;
21-
/** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */
22-
useQuery?: boolean;
23-
/** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */
24-
reloadProps?: boolean;
25-
/** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */
26-
withLabel?: boolean;
278
}

0 commit comments

Comments
 (0)