@zapier/zapier-sdk-cli 0.52.8 → 0.52.9

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @zapier/zapier-sdk-cli
2
2
 
3
+ ## 0.52.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 913aa6b: Add the workflow-version experimental code-substrate plugins: `publishWorkflowVersion`, `listWorkflowVersions`, and `getWorkflowVersion`. All three are registered only in `@zapier/zapier-sdk/experimental`; the stable subpath does not expose them. `listWorkflowVersions` is paginated (cursor + pageSize); `publishWorkflowVersion` POSTs `source_files` (filename → contents) plus optional `dependencies`, `zapier_durable_version`, and `enabled` (defaults to true) to publish a new version; `getWorkflowVersion` returns the full version state including source files. 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. Adds `workflowVersionIdResolver` — a dependent resolver scoped to a parent workflow, mirrored on `tableRecordIdResolver`'s shape — so commands that take a version id present an interactive picker via `sdk.listWorkflowVersions({ workflow })` in the CLI. All ID inputs are UUID-validated at the boundary so non-UUID strings fail with a clear schema error instead of an opaque 500 from the backend's `::uuid` cast.
8
+ - Updated dependencies [913aa6b]
9
+ - @zapier/zapier-sdk@0.64.0
10
+ - @zapier/zapier-sdk-mcp@0.13.18
11
+
3
12
  ## 0.52.8
4
13
 
5
14
  ### Patch Changes
package/README.md CHANGED
@@ -33,8 +33,11 @@
33
33
  - [`enable-workflow`](#enable-workflow--experimental)
34
34
  - [`get-durable-run`](#get-durable-run--experimental)
35
35
  - [`get-workflow`](#get-workflow--experimental)
36
+ - [`get-workflow-version`](#get-workflow-version--experimental)
36
37
  - [`list-durable-runs`](#list-durable-runs--experimental)
38
+ - [`list-workflow-versions`](#list-workflow-versions--experimental)
37
39
  - [`list-workflows`](#list-workflows--experimental)
40
+ - [`publish-workflow-version`](#publish-workflow-version--experimental)
38
41
  - [`run-durable`](#run-durable--experimental)
39
42
  - [`update-workflow`](#update-workflow--experimental)
40
43
  - [Connections](#connections)
@@ -552,6 +555,23 @@ Get a durable workflow with its current version details and trigger claim status
552
555
  npx zapier-sdk get-workflow <workflow>
553
556
  ```
554
557
 
558
+ #### `get-workflow-version` 🧪 _experimental_
559
+
560
+ Get full details of a workflow version including source files
561
+
562
+ **Options:**
563
+
564
+ | Option | Type | Required | Default | Possible Values | Description |
565
+ | ------------ | -------- | -------- | ------- | --------------- | ------------------- |
566
+ | `<workflow>` | `string` | ✅ | — | — | Durable workflow ID |
567
+ | `<version>` | `string` | ✅ | — | — | Workflow version ID |
568
+
569
+ **Usage:**
570
+
571
+ ```bash
572
+ npx zapier-sdk get-workflow-version <workflow> <version>
573
+ ```
574
+
555
575
  #### `list-durable-runs` 🧪 _experimental_
556
576
 
557
577
  List run-once durable runs for the authenticated account, newest first
@@ -570,6 +590,25 @@ List run-once durable runs for the authenticated account, newest first
570
590
  npx zapier-sdk list-durable-runs [--page-size] [--cursor] [--max-items]
571
591
  ```
572
592
 
593
+ #### `list-workflow-versions` 🧪 _experimental_
594
+
595
+ List published versions for a workflow, newest first
596
+
597
+ **Options:**
598
+
599
+ | Option | Type | Required | Default | Possible Values | Description |
600
+ | ------------- | -------- | -------- | ------- | --------------- | ------------------------------------------------- |
601
+ | `<workflow>` | `string` | ✅ | — | — | Durable workflow ID |
602
+ | `--page-size` | `number` | ❌ | — | — | Number of versions per page (max 100) |
603
+ | `--cursor` | `string` | ❌ | — | — | Pagination cursor |
604
+ | `--max-items` | `number` | ❌ | — | — | Maximum total versions to return across all pages |
605
+
606
+ **Usage:**
607
+
608
+ ```bash
609
+ npx zapier-sdk list-workflow-versions <workflow> [--page-size] [--cursor] [--max-items]
610
+ ```
611
+
573
612
  #### `list-workflows` 🧪 _experimental_
574
613
 
575
614
  List all active durable workflows for the authenticated account
@@ -588,6 +627,26 @@ List all active durable workflows for the authenticated account
588
627
  npx zapier-sdk list-workflows [--page-size] [--max-items] [--cursor]
589
628
  ```
590
629
 
630
+ #### `publish-workflow-version` 🧪 _experimental_
631
+
632
+ Publish a new version of a durable workflow. Enables the workflow by default.
633
+
634
+ **Options:**
635
+
636
+ | Option | Type | Required | Default | Possible Values | Description |
637
+ | -------------------------- | --------- | -------- | ------- | --------------- | --------------------------------------------------------------------------------------------------------------- |
638
+ | `<workflow>` | `string` | ✅ | — | — | Durable workflow ID |
639
+ | `<source_files>` | `object` | ✅ | — | — | Source files keyed by filename → contents |
640
+ | `--dependencies` | `object` | ❌ | — | — | Optional npm package dependencies |
641
+ | `--zapier_durable_version` | `string` | ❌ | — | — | Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted. |
642
+ | `--enabled` | `boolean` | ❌ | — | — | Enable the workflow after publishing. Defaults to true; pass false to publish without enabling. |
643
+
644
+ **Usage:**
645
+
646
+ ```bash
647
+ npx zapier-sdk publish-workflow-version <workflow> <source_files> [--dependencies] [--zapier_durable_version] [--enabled]
648
+ ```
649
+
591
650
  #### `run-durable` 🧪 _experimental_
592
651
 
593
652
  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.
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.8"};
1575
+ version: "0.52.9"};
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.8"};
6656
+ version: "0.52.9"};
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.8"};
1533
+ version: "0.52.9"};
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.8"};
6614
+ version: "0.52.9"};
6615
6615
 
6616
6616
  // src/sdk.ts
6617
6617
  injectCliLogin(login_exports);
@@ -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.8"};
4016
+ version: "0.52.9"};
4017
4017
 
4018
4018
  // src/experimental.ts
4019
4019
  experimental.injectCliLogin(login_exports);
@@ -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.8"};
3980
+ version: "0.52.9"};
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.8"};
4015
+ version: "0.52.9"};
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.8"};
4043
+ version: "0.52.9"};
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.8"};
3979
+ version: "0.52.9"};
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.8"};
4007
+ version: "0.52.9"};
4008
4008
 
4009
4009
  // src/telemetry/builders.ts
4010
4010
  function createCliBaseEvent(context = {}) {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk-cli",
3
- "version": "0.52.8",
3
+ "version": "0.52.9",
4
4
  "description": "Command line interface for Zapier SDK",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",