Skip to content
Merged
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
7 changes: 7 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

# Changelog

## [1.6.7] - 2025-06-06

### Added

- Added `stashId` option to the `runAction` method, which allows files to be
persisted between action runs.

## [1.6.6] - 2025-06-05

### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@pipedream/sdk",
"type": "module",
"version": "1.6.6",
"version": "1.6.7",
"description": "Pipedream SDK",
"main": "./dist/server.js",
"module": "./dist/server.js",
Expand Down
15 changes: 15 additions & 0 deletions packages/sdk/src/shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,15 @@ export type RunActionOpts = ExternalUserId & {
* The ID of the last prop reconfiguration (if any).
*/
dynamicPropsId?: string;

/**
* The ID of the File Stash to sync the action's /tmp directory with. This
* allows you to persist files across action runs for up to 1 day. If set to
* `true` or "", a unique stash ID will be generated for you and returned in
* the response. If not set, the action will not sync its /tmp directory with
* a File Stash.
*/
stashId?: string | boolean;
};

/**
Expand All @@ -589,6 +598,11 @@ export type RunActionResponse = {
* The value returned by the action
*/
ret: unknown;

/**
* The ID of the File Stash that was used to sync the action's /tmp directory
*/
stashId?: string;
};

/**
Expand Down Expand Up @@ -1428,6 +1442,7 @@ export abstract class BaseClient {
id,
configured_props: opts.configuredProps,
dynamic_props_id: opts.dynamicPropsId,
stash_id: opts.stashId,
};
return this.makeConnectRequest<RunActionResponse>("/actions/run", {
method: "POST",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading