@zapier/zapier-sdk-cli 0.52.4 → 0.52.5
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 +41 -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.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f12598a: Add the workflow-read experimental plugins: `listWorkflows` and `getWorkflow`. Both are registered only in `@zapier/zapier-sdk/experimental`; the stable subpath does not expose them. `listWorkflows` uses `createPaginatedPluginMethod` (page-iterator + `pageSize`/`cursor`/`maxItems` options) so callers can iterate via `for await (const page of sdk.listWorkflows())` or `toIterable(sdk.listWorkflows())`. The backend does not paginate today; the SDK treats a missing `next_cursor` as the last page, so server-side pagination drops in without an SDK API change. Introduces `packages/zapier-sdk/src/plugins/codeSubstrate/shared.ts` with `codeSubstrateDefaults` (`{ categories: ["code-workflow"], experimental: true }`) that subsequent code-workflow plugins spread into their `createPluginMethod` configs. Also adds `workflowIdResolver` in `src/resolvers/workflowId.ts` (mirrors `tableIdResolver` / `triggerInboxResolver`) so commands that take a workflow id present an interactive picker via `sdk.listWorkflows()` in the CLI. Workflow-write commands (`createWorkflow`, `updateWorkflow`, `enable/disable/deleteWorkflow`) land in a follow-up MR.
|
|
8
|
+
- Updated dependencies [f12598a]
|
|
9
|
+
- @zapier/zapier-sdk@0.60.0
|
|
10
|
+
- @zapier/zapier-sdk-mcp@0.13.14
|
|
11
|
+
|
|
3
12
|
## 0.52.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
- [`create-client-credentials`](#create-client-credentials)
|
|
26
26
|
- [`delete-client-credentials`](#delete-client-credentials)
|
|
27
27
|
- [`list-client-credentials`](#list-client-credentials)
|
|
28
|
+
- [Code Workflows (Experimental)](#code-workflows-experimental)
|
|
29
|
+
- [`get-workflow`](#get-workflow--experimental)
|
|
30
|
+
- [`list-workflows`](#list-workflows--experimental)
|
|
28
31
|
- [Connections](#connections)
|
|
29
32
|
- [`find-first-connection`](#find-first-connection)
|
|
30
33
|
- [`find-unique-connection`](#find-unique-connection)
|
|
@@ -423,6 +426,44 @@ List client credentials for the authenticated user
|
|
|
423
426
|
npx zapier-sdk list-client-credentials [--page-size] [--max-items] [--cursor]
|
|
424
427
|
```
|
|
425
428
|
|
|
429
|
+
### Code Workflows (Experimental)
|
|
430
|
+
|
|
431
|
+
> ℹ️ **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.
|
|
432
|
+
|
|
433
|
+
#### `get-workflow` 🧪 _experimental_
|
|
434
|
+
|
|
435
|
+
Get a durable workflow with its current version details and trigger claim status
|
|
436
|
+
|
|
437
|
+
**Options:**
|
|
438
|
+
|
|
439
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
440
|
+
| ------------ | -------- | -------- | ------- | --------------- | ------------------- |
|
|
441
|
+
| `<workflow>` | `string` | ✅ | — | — | Durable workflow ID |
|
|
442
|
+
|
|
443
|
+
**Usage:**
|
|
444
|
+
|
|
445
|
+
```bash
|
|
446
|
+
npx zapier-sdk get-workflow <workflow>
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
#### `list-workflows` 🧪 _experimental_
|
|
450
|
+
|
|
451
|
+
List all active durable workflows for the authenticated account
|
|
452
|
+
|
|
453
|
+
**Options:**
|
|
454
|
+
|
|
455
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
456
|
+
| ------------- | -------- | -------- | ------- | --------------- | -------------------------------------------------------------------------------------------- |
|
|
457
|
+
| `--page-size` | `number` | ❌ | — | — | Number of workflows per page (server-side pagination forthcoming; ignored until then) |
|
|
458
|
+
| `--max-items` | `number` | ❌ | — | — | Maximum total workflows to return across all pages |
|
|
459
|
+
| `--cursor` | `string` | ❌ | — | — | Cursor to start from for pagination (server-side pagination forthcoming; ignored until then) |
|
|
460
|
+
|
|
461
|
+
**Usage:**
|
|
462
|
+
|
|
463
|
+
```bash
|
|
464
|
+
npx zapier-sdk list-workflows [--page-size] [--max-items] [--cursor]
|
|
465
|
+
```
|
|
466
|
+
|
|
426
467
|
### Connections
|
|
427
468
|
|
|
428
469
|
#### `find-first-connection`
|
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.5"};
|
|
1576
1576
|
|
|
1577
1577
|
// src/telemetry/builders.ts
|
|
1578
1578
|
function createCliBaseEvent(context = {}) {
|
|
@@ -6656,7 +6656,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
6656
6656
|
// package.json with { type: 'json' }
|
|
6657
6657
|
var package_default2 = {
|
|
6658
6658
|
name: "@zapier/zapier-sdk-cli",
|
|
6659
|
-
version: "0.52.
|
|
6659
|
+
version: "0.52.5"};
|
|
6660
6660
|
|
|
6661
6661
|
// src/sdk.ts
|
|
6662
6662
|
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.5"};
|
|
1534
1534
|
|
|
1535
1535
|
// src/telemetry/builders.ts
|
|
1536
1536
|
function createCliBaseEvent(context = {}) {
|
|
@@ -6614,7 +6614,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
6614
6614
|
// package.json with { type: 'json' }
|
|
6615
6615
|
var package_default2 = {
|
|
6616
6616
|
name: "@zapier/zapier-sdk-cli",
|
|
6617
|
-
version: "0.52.
|
|
6617
|
+
version: "0.52.5"};
|
|
6618
6618
|
|
|
6619
6619
|
// src/sdk.ts
|
|
6620
6620
|
injectCliLogin(login_exports);
|
package/dist/experimental.cjs
CHANGED
|
@@ -4016,7 +4016,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
4016
4016
|
// package.json with { type: 'json' }
|
|
4017
4017
|
var package_default = {
|
|
4018
4018
|
name: "@zapier/zapier-sdk-cli",
|
|
4019
|
-
version: "0.52.
|
|
4019
|
+
version: "0.52.5"};
|
|
4020
4020
|
|
|
4021
4021
|
// src/experimental.ts
|
|
4022
4022
|
experimental.injectCliLogin(login_exports);
|
package/dist/experimental.mjs
CHANGED
|
@@ -3980,7 +3980,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
3980
3980
|
// package.json with { type: 'json' }
|
|
3981
3981
|
var package_default = {
|
|
3982
3982
|
name: "@zapier/zapier-sdk-cli",
|
|
3983
|
-
version: "0.52.
|
|
3983
|
+
version: "0.52.5"};
|
|
3984
3984
|
|
|
3985
3985
|
// src/experimental.ts
|
|
3986
3986
|
injectCliLogin(login_exports);
|
package/dist/index.cjs
CHANGED
|
@@ -4015,7 +4015,7 @@ zapierSdk.definePlugin(
|
|
|
4015
4015
|
// package.json with { type: 'json' }
|
|
4016
4016
|
var package_default = {
|
|
4017
4017
|
name: "@zapier/zapier-sdk-cli",
|
|
4018
|
-
version: "0.52.
|
|
4018
|
+
version: "0.52.5"};
|
|
4019
4019
|
|
|
4020
4020
|
// src/sdk.ts
|
|
4021
4021
|
zapierSdk.injectCliLogin(login_exports);
|
|
@@ -4043,7 +4043,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4043
4043
|
|
|
4044
4044
|
// package.json
|
|
4045
4045
|
var package_default2 = {
|
|
4046
|
-
version: "0.52.
|
|
4046
|
+
version: "0.52.5"};
|
|
4047
4047
|
|
|
4048
4048
|
// src/telemetry/builders.ts
|
|
4049
4049
|
function createCliBaseEvent(context = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -3979,7 +3979,7 @@ definePlugin(
|
|
|
3979
3979
|
// package.json with { type: 'json' }
|
|
3980
3980
|
var package_default = {
|
|
3981
3981
|
name: "@zapier/zapier-sdk-cli",
|
|
3982
|
-
version: "0.52.
|
|
3982
|
+
version: "0.52.5"};
|
|
3983
3983
|
|
|
3984
3984
|
// src/sdk.ts
|
|
3985
3985
|
injectCliLogin(login_exports);
|
|
@@ -4007,7 +4007,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4007
4007
|
|
|
4008
4008
|
// package.json
|
|
4009
4009
|
var package_default2 = {
|
|
4010
|
-
version: "0.52.
|
|
4010
|
+
version: "0.52.5"};
|
|
4011
4011
|
|
|
4012
4012
|
// src/telemetry/builders.ts
|
|
4013
4013
|
function createCliBaseEvent(context = {}) {
|