@zapier/zapier-sdk-cli 0.52.6 → 0.52.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +76 -0
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/experimental.cjs +1 -1
- package/dist/experimental.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.52.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dfa3cea: Add the durable-run-write experimental code-substrate plugins: `runDurable` and `cancelDurableRun`. Both are registered only in `@zapier/zapier-sdk/experimental`; the stable subpath does not expose them. `runDurable` POSTs to sdkdurableapi `/api/v0/runs` with `source_files` (filename → contents), optional `input`/`dependencies`/`zapier_durable_version`/`connections`/`app_versions`, and a `private` input that maps to `is_private` on the wire. Returns the run ID immediately in `initialized` status — callers that need terminal status poll via `getDurableRun`; no built-in polling. `cancelDurableRun` POSTs to `/api/v0/runs/:id/cancel`, returns `{ id, status: "cancelled" }` on success, and propagates `ZapierNotFoundError` (404) and `ZapierConflictError` (409 — run already terminal) so callers can distinguish those outcomes. `runDurable` passes the API response through verbatim (no client-side `.parse()` re-emission) so callers see any richer fields the server adds later without an SDK release. Input field naming follows the in-tree convention (`run` rather than `runId`); UUID-validated at the input boundary. `cancelDurableRun` reuses `durableRunIdResolver` from the reads MR for ID pickers.
|
|
8
|
+
- Updated dependencies [dfa3cea]
|
|
9
|
+
- @zapier/zapier-sdk@0.63.0
|
|
10
|
+
- @zapier/zapier-sdk-mcp@0.13.17
|
|
11
|
+
|
|
12
|
+
## 0.52.7
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- eb9b408: Add the durable-run-read experimental code-substrate plugins: `listDurableRuns` and `getDurableRun`. Both are registered only in `@zapier/zapier-sdk/experimental`; the stable subpath does not expose them. `listDurableRuns` is paginated (cursor + pageSize) per the sdkdurableapi `/api/v0/runs` contract; `getDurableRun` returns the full run state with nested execution and operations journal. Handlers pass API responses through verbatim (no client-side `.parse()` re-emission) so callers see any richer fields the server adds later without an SDK release. Also adds `durableRunIdResolver` in `src/resolvers/durableRunId.ts` so commands that take a run id present an interactive picker via `sdk.listDurableRuns()` in the CLI (uses `toIterable` to pull across pages). Input field naming follows the in-tree convention (`run` rather than the fork's `runId`); input is validated as a UUID at the boundary so non-UUID strings fail with a clear schema error instead of an opaque 500 from the backend's `::uuid` cast.
|
|
17
|
+
- Updated dependencies [eb9b408]
|
|
18
|
+
- @zapier/zapier-sdk@0.62.0
|
|
19
|
+
- @zapier/zapier-sdk-mcp@0.13.16
|
|
20
|
+
|
|
3
21
|
## 0.52.6
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -26,12 +26,16 @@
|
|
|
26
26
|
- [`delete-client-credentials`](#delete-client-credentials)
|
|
27
27
|
- [`list-client-credentials`](#list-client-credentials)
|
|
28
28
|
- [Code Workflows (Experimental)](#code-workflows-experimental)
|
|
29
|
+
- [`cancel-durable-run`](#cancel-durable-run--experimental)
|
|
29
30
|
- [`create-workflow`](#create-workflow--experimental)
|
|
30
31
|
- [`delete-workflow`](#delete-workflow--experimental)
|
|
31
32
|
- [`disable-workflow`](#disable-workflow--experimental)
|
|
32
33
|
- [`enable-workflow`](#enable-workflow--experimental)
|
|
34
|
+
- [`get-durable-run`](#get-durable-run--experimental)
|
|
33
35
|
- [`get-workflow`](#get-workflow--experimental)
|
|
36
|
+
- [`list-durable-runs`](#list-durable-runs--experimental)
|
|
34
37
|
- [`list-workflows`](#list-workflows--experimental)
|
|
38
|
+
- [`run-durable`](#run-durable--experimental)
|
|
35
39
|
- [`update-workflow`](#update-workflow--experimental)
|
|
36
40
|
- [Connections](#connections)
|
|
37
41
|
- [`find-first-connection`](#find-first-connection)
|
|
@@ -435,6 +439,22 @@ npx zapier-sdk list-client-credentials [--page-size] [--max-items] [--cursor]
|
|
|
435
439
|
|
|
436
440
|
> ℹ️ **Experimental.** Run commands via the `zapier-sdk-experimental` binary, pass `--experimental` to `zapier-sdk`, or set `ZAPIER_EXPERIMENTAL=true` in the environment. Flags and behavior may change between versions.
|
|
437
441
|
|
|
442
|
+
#### `cancel-durable-run` 🧪 _experimental_
|
|
443
|
+
|
|
444
|
+
Cancel a run-once durable run in initialized or started status. Returns 409 if the run is already terminal.
|
|
445
|
+
|
|
446
|
+
**Options:**
|
|
447
|
+
|
|
448
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
449
|
+
| ------- | -------- | -------- | ------- | --------------- | -------------- |
|
|
450
|
+
| `<run>` | `string` | ✅ | — | — | Durable run ID |
|
|
451
|
+
|
|
452
|
+
**Usage:**
|
|
453
|
+
|
|
454
|
+
```bash
|
|
455
|
+
npx zapier-sdk cancel-durable-run <run>
|
|
456
|
+
```
|
|
457
|
+
|
|
438
458
|
#### `create-workflow` 🧪 _experimental_
|
|
439
459
|
|
|
440
460
|
Create a durable workflow container. Starts disabled with no version; publish a version to add code.
|
|
@@ -500,6 +520,22 @@ Enable a durable workflow so it accepts triggers
|
|
|
500
520
|
npx zapier-sdk enable-workflow <workflow>
|
|
501
521
|
```
|
|
502
522
|
|
|
523
|
+
#### `get-durable-run` 🧪 _experimental_
|
|
524
|
+
|
|
525
|
+
Get the full state of a run-once durable run, including its operations journal
|
|
526
|
+
|
|
527
|
+
**Options:**
|
|
528
|
+
|
|
529
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
530
|
+
| ------- | -------- | -------- | ------- | --------------- | -------------- |
|
|
531
|
+
| `<run>` | `string` | ✅ | — | — | Durable run ID |
|
|
532
|
+
|
|
533
|
+
**Usage:**
|
|
534
|
+
|
|
535
|
+
```bash
|
|
536
|
+
npx zapier-sdk get-durable-run <run>
|
|
537
|
+
```
|
|
538
|
+
|
|
503
539
|
#### `get-workflow` 🧪 _experimental_
|
|
504
540
|
|
|
505
541
|
Get a durable workflow with its current version details and trigger claim status
|
|
@@ -516,6 +552,24 @@ Get a durable workflow with its current version details and trigger claim status
|
|
|
516
552
|
npx zapier-sdk get-workflow <workflow>
|
|
517
553
|
```
|
|
518
554
|
|
|
555
|
+
#### `list-durable-runs` 🧪 _experimental_
|
|
556
|
+
|
|
557
|
+
List run-once durable runs for the authenticated account, newest first
|
|
558
|
+
|
|
559
|
+
**Options:**
|
|
560
|
+
|
|
561
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
562
|
+
| ------------- | -------- | -------- | ------- | --------------- | ---------------------------------------------- |
|
|
563
|
+
| `--page-size` | `number` | ❌ | — | — | Number of runs per page (max 100) |
|
|
564
|
+
| `--cursor` | `string` | ❌ | — | — | Pagination cursor |
|
|
565
|
+
| `--max-items` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
566
|
+
|
|
567
|
+
**Usage:**
|
|
568
|
+
|
|
569
|
+
```bash
|
|
570
|
+
npx zapier-sdk list-durable-runs [--page-size] [--cursor] [--max-items]
|
|
571
|
+
```
|
|
572
|
+
|
|
519
573
|
#### `list-workflows` 🧪 _experimental_
|
|
520
574
|
|
|
521
575
|
List all active durable workflows for the authenticated account
|
|
@@ -534,6 +588,28 @@ List all active durable workflows for the authenticated account
|
|
|
534
588
|
npx zapier-sdk list-workflows [--page-size] [--max-items] [--cursor]
|
|
535
589
|
```
|
|
536
590
|
|
|
591
|
+
#### `run-durable` 🧪 _experimental_
|
|
592
|
+
|
|
593
|
+
Run a workflow source file as a run-once durable run on sdkdurableapi (no deployed workflow required). Returns the run ID immediately; poll via getDurableRun for terminal status.
|
|
594
|
+
|
|
595
|
+
**Options:**
|
|
596
|
+
|
|
597
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
598
|
+
| -------------------------- | --------- | -------- | ------- | --------------- | --------------------------------------------------------------------------------------------------------------- |
|
|
599
|
+
| `<source_files>` | `object` | ✅ | — | — | Source files keyed by filename → contents |
|
|
600
|
+
| `--input` | `string` | ❌ | — | — | Input data passed to the run |
|
|
601
|
+
| `--dependencies` | `object` | ❌ | — | — | Optional npm package dependencies |
|
|
602
|
+
| `--zapier_durable_version` | `string` | ❌ | — | — | Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted. |
|
|
603
|
+
| `--connections` | `object` | ❌ | — | — | Named connection aliases. Maps alias names to Zapier connection IDs. |
|
|
604
|
+
| `--app_versions` | `object` | ❌ | — | — | Pinned app versions. Maps app keys (slugs) to implementation names and versions. |
|
|
605
|
+
| `--private` | `boolean` | ❌ | — | — | Only the creating user can see the run (default false) |
|
|
606
|
+
|
|
607
|
+
**Usage:**
|
|
608
|
+
|
|
609
|
+
```bash
|
|
610
|
+
npx zapier-sdk run-durable <source_files> [--input] [--dependencies] [--zapier_durable_version] [--connections] [--app_versions] [--private]
|
|
611
|
+
```
|
|
612
|
+
|
|
537
613
|
#### `update-workflow` 🧪 _experimental_
|
|
538
614
|
|
|
539
615
|
Update a durable workflow's name and/or description
|
package/dist/cli.cjs
CHANGED
|
@@ -1572,7 +1572,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
1572
1572
|
|
|
1573
1573
|
// package.json
|
|
1574
1574
|
var package_default = {
|
|
1575
|
-
version: "0.52.
|
|
1575
|
+
version: "0.52.8"};
|
|
1576
1576
|
|
|
1577
1577
|
// src/telemetry/builders.ts
|
|
1578
1578
|
function createCliBaseEvent(context = {}) {
|
|
@@ -6653,7 +6653,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
6653
6653
|
// package.json with { type: 'json' }
|
|
6654
6654
|
var package_default2 = {
|
|
6655
6655
|
name: "@zapier/zapier-sdk-cli",
|
|
6656
|
-
version: "0.52.
|
|
6656
|
+
version: "0.52.8"};
|
|
6657
6657
|
|
|
6658
6658
|
// src/sdk.ts
|
|
6659
6659
|
zapierSdk.injectCliLogin(login_exports);
|
package/dist/cli.mjs
CHANGED
|
@@ -1530,7 +1530,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
1530
1530
|
|
|
1531
1531
|
// package.json
|
|
1532
1532
|
var package_default = {
|
|
1533
|
-
version: "0.52.
|
|
1533
|
+
version: "0.52.8"};
|
|
1534
1534
|
|
|
1535
1535
|
// src/telemetry/builders.ts
|
|
1536
1536
|
function createCliBaseEvent(context = {}) {
|
|
@@ -6611,7 +6611,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
6611
6611
|
// package.json with { type: 'json' }
|
|
6612
6612
|
var package_default2 = {
|
|
6613
6613
|
name: "@zapier/zapier-sdk-cli",
|
|
6614
|
-
version: "0.52.
|
|
6614
|
+
version: "0.52.8"};
|
|
6615
6615
|
|
|
6616
6616
|
// src/sdk.ts
|
|
6617
6617
|
injectCliLogin(login_exports);
|
package/dist/experimental.cjs
CHANGED
|
@@ -4013,7 +4013,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
4013
4013
|
// package.json with { type: 'json' }
|
|
4014
4014
|
var package_default = {
|
|
4015
4015
|
name: "@zapier/zapier-sdk-cli",
|
|
4016
|
-
version: "0.52.
|
|
4016
|
+
version: "0.52.8"};
|
|
4017
4017
|
|
|
4018
4018
|
// src/experimental.ts
|
|
4019
4019
|
experimental.injectCliLogin(login_exports);
|
package/dist/experimental.mjs
CHANGED
|
@@ -3977,7 +3977,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
3977
3977
|
// package.json with { type: 'json' }
|
|
3978
3978
|
var package_default = {
|
|
3979
3979
|
name: "@zapier/zapier-sdk-cli",
|
|
3980
|
-
version: "0.52.
|
|
3980
|
+
version: "0.52.8"};
|
|
3981
3981
|
|
|
3982
3982
|
// src/experimental.ts
|
|
3983
3983
|
injectCliLogin(login_exports);
|
package/dist/index.cjs
CHANGED
|
@@ -4012,7 +4012,7 @@ zapierSdk.definePlugin(
|
|
|
4012
4012
|
// package.json with { type: 'json' }
|
|
4013
4013
|
var package_default = {
|
|
4014
4014
|
name: "@zapier/zapier-sdk-cli",
|
|
4015
|
-
version: "0.52.
|
|
4015
|
+
version: "0.52.8"};
|
|
4016
4016
|
|
|
4017
4017
|
// src/sdk.ts
|
|
4018
4018
|
zapierSdk.injectCliLogin(login_exports);
|
|
@@ -4040,7 +4040,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4040
4040
|
|
|
4041
4041
|
// package.json
|
|
4042
4042
|
var package_default2 = {
|
|
4043
|
-
version: "0.52.
|
|
4043
|
+
version: "0.52.8"};
|
|
4044
4044
|
|
|
4045
4045
|
// src/telemetry/builders.ts
|
|
4046
4046
|
function createCliBaseEvent(context = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -3976,7 +3976,7 @@ definePlugin(
|
|
|
3976
3976
|
// package.json with { type: 'json' }
|
|
3977
3977
|
var package_default = {
|
|
3978
3978
|
name: "@zapier/zapier-sdk-cli",
|
|
3979
|
-
version: "0.52.
|
|
3979
|
+
version: "0.52.8"};
|
|
3980
3980
|
|
|
3981
3981
|
// src/sdk.ts
|
|
3982
3982
|
injectCliLogin(login_exports);
|
|
@@ -4004,7 +4004,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4004
4004
|
|
|
4005
4005
|
// package.json
|
|
4006
4006
|
var package_default2 = {
|
|
4007
|
-
version: "0.52.
|
|
4007
|
+
version: "0.52.8"};
|
|
4008
4008
|
|
|
4009
4009
|
// src/telemetry/builders.ts
|
|
4010
4010
|
function createCliBaseEvent(context = {}) {
|