@zapier/zapier-sdk-cli 0.52.9 → 0.52.10
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 +9 -0
- package/README.md +55 -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,14 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.52.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9138968: Add the workflow-run experimental code-substrate plugins: `listWorkflowRuns`, `getWorkflowRun`, and `getTriggerRun`. All three live behind `@zapier/zapier-sdk/experimental` only — the stable subpath does not surface them. `listWorkflowRuns` is paginated against the backend's cursor + limit contract; `getWorkflowRun` looks up a run by id; `getTriggerRun` walks from a trigger id to its associated run, useful immediately after firing a trigger when the caller has the trigger id but not yet the run id. All ID inputs are UUID-validated at the schema boundary. Handlers pass the API response through verbatim — schemas stay as `outputSchema` for docs and types, but consumers see any richer fields the server adds without an SDK release. Adds `workflowRunIdResolver` — a dependent resolver scoped to the parent workflow — so CLI commands taking a run id present an interactive picker via `sdk.listWorkflowRuns({ workflow })`. `getTriggerRun` does not register a picker for `trigger`; users typically have the trigger id from a recent fire and pass it directly.
|
|
8
|
+
- Updated dependencies [9138968]
|
|
9
|
+
- @zapier/zapier-sdk@0.65.0
|
|
10
|
+
- @zapier/zapier-sdk-mcp@0.13.19
|
|
11
|
+
|
|
3
12
|
## 0.52.9
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -32,9 +32,12 @@
|
|
|
32
32
|
- [`disable-workflow`](#disable-workflow--experimental)
|
|
33
33
|
- [`enable-workflow`](#enable-workflow--experimental)
|
|
34
34
|
- [`get-durable-run`](#get-durable-run--experimental)
|
|
35
|
+
- [`get-trigger-run`](#get-trigger-run--experimental)
|
|
35
36
|
- [`get-workflow`](#get-workflow--experimental)
|
|
37
|
+
- [`get-workflow-run`](#get-workflow-run--experimental)
|
|
36
38
|
- [`get-workflow-version`](#get-workflow-version--experimental)
|
|
37
39
|
- [`list-durable-runs`](#list-durable-runs--experimental)
|
|
40
|
+
- [`list-workflow-runs`](#list-workflow-runs--experimental)
|
|
38
41
|
- [`list-workflow-versions`](#list-workflow-versions--experimental)
|
|
39
42
|
- [`list-workflows`](#list-workflows--experimental)
|
|
40
43
|
- [`publish-workflow-version`](#publish-workflow-version--experimental)
|
|
@@ -539,6 +542,22 @@ Get the full state of a run-once durable run, including its operations journal
|
|
|
539
542
|
npx zapier-sdk get-durable-run <run>
|
|
540
543
|
```
|
|
541
544
|
|
|
545
|
+
#### `get-trigger-run` 🧪 _experimental_
|
|
546
|
+
|
|
547
|
+
Get the workflow run associated with a deployed workflow's trigger. Useful immediately after firing a trigger, when you have the trigger ID but not yet the run ID.
|
|
548
|
+
|
|
549
|
+
**Options:**
|
|
550
|
+
|
|
551
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
552
|
+
| ----------- | -------- | -------- | ------- | --------------- | ------------------- |
|
|
553
|
+
| `<trigger>` | `string` | ✅ | — | — | Workflow trigger ID |
|
|
554
|
+
|
|
555
|
+
**Usage:**
|
|
556
|
+
|
|
557
|
+
```bash
|
|
558
|
+
npx zapier-sdk get-trigger-run <trigger>
|
|
559
|
+
```
|
|
560
|
+
|
|
542
561
|
#### `get-workflow` 🧪 _experimental_
|
|
543
562
|
|
|
544
563
|
Get a durable workflow with its current version details and trigger claim status
|
|
@@ -555,6 +574,23 @@ Get a durable workflow with its current version details and trigger claim status
|
|
|
555
574
|
npx zapier-sdk get-workflow <workflow>
|
|
556
575
|
```
|
|
557
576
|
|
|
577
|
+
#### `get-workflow-run` 🧪 _experimental_
|
|
578
|
+
|
|
579
|
+
Get the current state of a workflow run (a triggered execution of a deployed workflow)
|
|
580
|
+
|
|
581
|
+
**Options:**
|
|
582
|
+
|
|
583
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
584
|
+
| ------------ | -------- | -------- | ------- | --------------- | --------------------------------------------------------------------------------------- |
|
|
585
|
+
| `<run>` | `string` | ✅ | — | — | Workflow run ID |
|
|
586
|
+
| `--workflow` | `string` | ❌ | — | — | Parent workflow ID — used only to scope the CLI run-id picker; ignored by the API call. |
|
|
587
|
+
|
|
588
|
+
**Usage:**
|
|
589
|
+
|
|
590
|
+
```bash
|
|
591
|
+
npx zapier-sdk get-workflow-run <run> [--workflow]
|
|
592
|
+
```
|
|
593
|
+
|
|
558
594
|
#### `get-workflow-version` 🧪 _experimental_
|
|
559
595
|
|
|
560
596
|
Get full details of a workflow version including source files
|
|
@@ -590,6 +626,25 @@ List run-once durable runs for the authenticated account, newest first
|
|
|
590
626
|
npx zapier-sdk list-durable-runs [--page-size] [--cursor] [--max-items]
|
|
591
627
|
```
|
|
592
628
|
|
|
629
|
+
#### `list-workflow-runs` 🧪 _experimental_
|
|
630
|
+
|
|
631
|
+
List workflow runs (triggered executions) for a specific deployed workflow, newest first
|
|
632
|
+
|
|
633
|
+
**Options:**
|
|
634
|
+
|
|
635
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
636
|
+
| ------------- | -------- | -------- | ------- | --------------- | --------------------------------------------- |
|
|
637
|
+
| `<workflow>` | `string` | ✅ | — | — | Durable workflow ID |
|
|
638
|
+
| `--page-size` | `number` | ❌ | — | — | Number of runs per page (max 100) |
|
|
639
|
+
| `--cursor` | `string` | ❌ | — | — | Pagination cursor |
|
|
640
|
+
| `--max-items` | `number` | ❌ | — | — | Maximum total runs to return across all pages |
|
|
641
|
+
|
|
642
|
+
**Usage:**
|
|
643
|
+
|
|
644
|
+
```bash
|
|
645
|
+
npx zapier-sdk list-workflow-runs <workflow> [--page-size] [--cursor] [--max-items]
|
|
646
|
+
```
|
|
647
|
+
|
|
593
648
|
#### `list-workflow-versions` 🧪 _experimental_
|
|
594
649
|
|
|
595
650
|
List published versions for a workflow, newest first
|
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.10"};
|
|
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.10"};
|
|
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.10"};
|
|
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.10"};
|
|
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.10"};
|
|
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.10"};
|
|
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.10"};
|
|
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.10"};
|
|
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.10"};
|
|
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.10"};
|
|
4008
4008
|
|
|
4009
4009
|
// src/telemetry/builders.ts
|
|
4010
4010
|
function createCliBaseEvent(context = {}) {
|