@zapier/zapier-sdk 0.71.0 → 0.72.0
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 +12 -0
- package/README.md +22 -22
- package/dist/experimental.cjs +23 -15
- package/dist/experimental.d.mts +2 -0
- package/dist/experimental.d.ts +2 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.mjs +23 -15
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts +1 -0
- package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/createWorkflow/index.js +3 -2
- package/dist/plugins/codeSubstrate/createWorkflow/schemas.d.ts +1 -0
- package/dist/plugins/codeSubstrate/createWorkflow/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/createWorkflow/schemas.js +7 -1
- package/dist/plugins/codeSubstrate/listWorkflows/index.js +2 -2
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts +13 -7
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.js +18 -9
- package/dist/plugins/codeSubstrate/runDurable/schemas.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.72.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- fcc758e: `listWorkflows` now paginates. `pageSize` (follows the SDK default page size; values above 100 are rejected) and `cursor` are honored in the SDK, and via the `list-workflows --page-size`/`--cursor` CLI flags that were previously no-ops. Iterating still returns all workflows; reading a single page now yields at most `pageSize` results rather than the full list.
|
|
8
|
+
|
|
9
|
+
## 0.71.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2521624: Rename `createWorkflow`'s `is_private` input to `private` to match `runDurable`, keeping `is_private` as a deprecated alias; the wire field stays `is_private`. Clarify the `run-durable` connections param description to show the required object shape.
|
|
14
|
+
|
|
3
15
|
## 0.71.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1145,7 +1145,7 @@ Create a durable workflow container. Starts disabled with no version; publish a
|
|
|
1145
1145
|
| `options` | `object` | ✅ | — | — | |
|
|
1146
1146
|
| ↳ `name` | `string` | ✅ | — | — | Workflow name |
|
|
1147
1147
|
| ↳ `description` | `string` | ❌ | — | — | Optional description for the workflow |
|
|
1148
|
-
| ↳ `
|
|
1148
|
+
| ↳ `private` | `boolean` | ❌ | — | — | If true, only the creating user can see or manage this workflow. Defaults to false (account-visible). |
|
|
1149
1149
|
|
|
1150
1150
|
**Returns:** `Promise<WorkflowItem>`
|
|
1151
1151
|
|
|
@@ -1605,12 +1605,12 @@ List all active durable workflows for the authenticated account
|
|
|
1605
1605
|
|
|
1606
1606
|
**Parameters:**
|
|
1607
1607
|
|
|
1608
|
-
| Name | Type | Required | Default | Possible Values | Description
|
|
1609
|
-
| -------------- | -------- | -------- | ------- | --------------- |
|
|
1610
|
-
| `options` | `object` | ✅ | — | — |
|
|
1611
|
-
| ↳ `pageSize` | `number` | ❌ | — | — | Number of workflows per page (
|
|
1612
|
-
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total workflows to return across all pages
|
|
1613
|
-
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from for pagination
|
|
1608
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
1609
|
+
| -------------- | -------- | -------- | ------- | --------------- | -------------------------------------------------- |
|
|
1610
|
+
| `options` | `object` | ✅ | — | — | |
|
|
1611
|
+
| ↳ `pageSize` | `number` | ❌ | — | — | Number of workflows per page (max 100) |
|
|
1612
|
+
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total workflows to return across all pages |
|
|
1613
|
+
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from for pagination |
|
|
1614
1614
|
|
|
1615
1615
|
**Returns:** `Promise<PaginatedResult<WorkflowItem>>`
|
|
1616
1616
|
|
|
@@ -1705,21 +1705,21 @@ Run a workflow source file as a run-once durable run on sdkdurableapi (no deploy
|
|
|
1705
1705
|
|
|
1706
1706
|
**Parameters:**
|
|
1707
1707
|
|
|
1708
|
-
| Name | Type | Required | Default | Possible Values | Description
|
|
1709
|
-
| ---------------------------- | ---------- | -------- | ------- | --------------- |
|
|
1710
|
-
| `options` | `object` | ✅ | — | — |
|
|
1711
|
-
| ↳ `source_files` | `object` | ✅ | — | — | Source files keyed by filename → contents
|
|
1712
|
-
| ↳ `input` | `unknown` | ❌ | — | — | Input data passed to the run
|
|
1713
|
-
| ↳ `dependencies` | `object` | ❌ | — | — | Optional npm package dependencies
|
|
1714
|
-
| ↳ `zapier_durable_version` | `string` | ❌ | — | — | Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted.
|
|
1715
|
-
| ↳ `connections` | `object` | ❌ | — | — | Named connection aliases. Maps alias
|
|
1716
|
-
| ↳ `app_versions` | `object` | ❌ | — | — | Pinned app versions. Maps app keys (slugs) to implementation names and versions.
|
|
1717
|
-
| ↳ `private` | `boolean` | ❌ | — | — | Only the creating user can see the run (default false)
|
|
1718
|
-
| ↳ `notifications[]` | `object[]` | ❌ | — | — | Webhook subscribers for run lifecycle events. Each entry specifies a URL and the events it subscribes to.
|
|
1719
|
-
| ↳ `type` | `string` | ❌ | — | `webhook` | Notification transport. Webhook is the only supported type.
|
|
1720
|
-
| ↳ `url` | `string` | ✅ | — | — | URL to POST event notifications to. Payload is `{run_id, event}`.
|
|
1721
|
-
| ↳ `max_retries` | `number` | ❌ | — | — | Max delivery attempts with exponential backoff. Defaults to 3 server-side.
|
|
1722
|
-
| ↳ `events` | `array` | ✅ | — | — | One or more lifecycle events to subscribe this URL to.
|
|
1708
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
1709
|
+
| ---------------------------- | ---------- | -------- | ------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1710
|
+
| `options` | `object` | ✅ | — | — | |
|
|
1711
|
+
| ↳ `source_files` | `object` | ✅ | — | — | Source files keyed by filename → contents |
|
|
1712
|
+
| ↳ `input` | `unknown` | ❌ | — | — | Input data passed to the run |
|
|
1713
|
+
| ↳ `dependencies` | `object` | ❌ | — | — | Optional npm package dependencies |
|
|
1714
|
+
| ↳ `zapier_durable_version` | `string` | ❌ | — | — | Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted. |
|
|
1715
|
+
| ↳ `connections` | `object` | ❌ | — | — | Named connection aliases. Maps each alias to an object holding its Zapier connection ID, e.g. `{ "slack": { "connection_id": "123" } }`. |
|
|
1716
|
+
| ↳ `app_versions` | `object` | ❌ | — | — | Pinned app versions. Maps app keys (slugs) to implementation names and versions. |
|
|
1717
|
+
| ↳ `private` | `boolean` | ❌ | — | — | Only the creating user can see the run (default false) |
|
|
1718
|
+
| ↳ `notifications[]` | `object[]` | ❌ | — | — | Webhook subscribers for run lifecycle events. Each entry specifies a URL and the events it subscribes to. |
|
|
1719
|
+
| ↳ `type` | `string` | ❌ | — | `webhook` | Notification transport. Webhook is the only supported type. |
|
|
1720
|
+
| ↳ `url` | `string` | ✅ | — | — | URL to POST event notifications to. Payload is `{run_id, event}`. |
|
|
1721
|
+
| ↳ `max_retries` | `number` | ❌ | — | — | Max delivery attempts with exponential backoff. Defaults to 3 server-side. |
|
|
1722
|
+
| ↳ `events` | `array` | ✅ | — | — | One or more lifecycle events to subscribe this URL to. |
|
|
1723
1723
|
|
|
1724
1724
|
**Returns:** `Promise<DurableRunItem>`
|
|
1725
1725
|
|
package/dist/experimental.cjs
CHANGED
|
@@ -3287,7 +3287,7 @@ function parseApprovalReviewStreamPayload(parsed, toolNames) {
|
|
|
3287
3287
|
}
|
|
3288
3288
|
|
|
3289
3289
|
// src/sdk-version.ts
|
|
3290
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
3290
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.72.0" : void 0) || "unknown";
|
|
3291
3291
|
|
|
3292
3292
|
// src/utils/open-url.ts
|
|
3293
3293
|
var nodePrefix = "node:";
|
|
@@ -11821,17 +11821,20 @@ var WorkflowItemSchema = zod.z.object({
|
|
|
11821
11821
|
updated_at: zod.z.string().describe("When the workflow was last modified (ISO-8601)")
|
|
11822
11822
|
});
|
|
11823
11823
|
var ListWorkflowsOptionsSchema = zod.z.object({
|
|
11824
|
-
pageSize: zod.z.number().int().min(1).optional().describe(
|
|
11825
|
-
"Number of workflows per page (server-side pagination forthcoming; ignored until then)"
|
|
11826
|
-
),
|
|
11824
|
+
pageSize: zod.z.number().int().min(1).max(100).optional().describe("Number of workflows per page (max 100)"),
|
|
11827
11825
|
maxItems: zod.z.number().int().min(1).optional().describe("Maximum total workflows to return across all pages"),
|
|
11828
|
-
cursor: zod.z.string().optional().describe(
|
|
11829
|
-
"Cursor to start from for pagination (server-side pagination forthcoming; ignored until then)"
|
|
11830
|
-
)
|
|
11826
|
+
cursor: zod.z.string().optional().describe("Cursor to start from for pagination")
|
|
11831
11827
|
}).describe("List all active durable workflows for the authenticated account");
|
|
11832
11828
|
var ListWorkflowsApiResponseSchema = zod.z.object({
|
|
11833
|
-
|
|
11834
|
-
|
|
11829
|
+
results: zod.z.array(WorkflowItemSchema),
|
|
11830
|
+
meta: zod.z.object({
|
|
11831
|
+
limit: zod.z.number(),
|
|
11832
|
+
cursor: zod.z.string().nullable().optional(),
|
|
11833
|
+
next_cursor: zod.z.string().nullable().optional()
|
|
11834
|
+
}),
|
|
11835
|
+
links: zod.z.object({
|
|
11836
|
+
next: zod.z.string().nullable().optional()
|
|
11837
|
+
}).optional()
|
|
11835
11838
|
});
|
|
11836
11839
|
|
|
11837
11840
|
// src/plugins/codeSubstrate/listWorkflows/index.ts
|
|
@@ -11858,8 +11861,8 @@ var listWorkflowsPlugin = definePlugin(
|
|
|
11858
11861
|
);
|
|
11859
11862
|
const response = ListWorkflowsApiResponseSchema.parse(raw);
|
|
11860
11863
|
return {
|
|
11861
|
-
data: response.
|
|
11862
|
-
nextCursor: response.next_cursor ?? void 0
|
|
11864
|
+
data: response.results,
|
|
11865
|
+
nextCursor: response.meta.next_cursor ?? void 0
|
|
11863
11866
|
};
|
|
11864
11867
|
}
|
|
11865
11868
|
})
|
|
@@ -11935,9 +11938,13 @@ var getWorkflowPlugin = definePlugin(
|
|
|
11935
11938
|
var CreateWorkflowOptionsSchema = zod.z.object({
|
|
11936
11939
|
name: zod.z.string().min(1).describe("Workflow name"),
|
|
11937
11940
|
description: zod.z.string().optional().describe("Optional description for the workflow"),
|
|
11941
|
+
private: zod.z.boolean().optional().describe(
|
|
11942
|
+
"If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
|
|
11943
|
+
),
|
|
11944
|
+
/** @deprecated Use `private` instead. */
|
|
11938
11945
|
is_private: zod.z.boolean().optional().describe(
|
|
11939
11946
|
"If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
|
|
11940
|
-
)
|
|
11947
|
+
).meta({ deprecated: true })
|
|
11941
11948
|
}).describe(
|
|
11942
11949
|
"Create a durable workflow container. Starts disabled with no version; publish a version to add code."
|
|
11943
11950
|
);
|
|
@@ -11972,8 +11979,9 @@ var createWorkflowPlugin = definePlugin(
|
|
|
11972
11979
|
if (options.description !== void 0) {
|
|
11973
11980
|
body.description = options.description;
|
|
11974
11981
|
}
|
|
11975
|
-
|
|
11976
|
-
|
|
11982
|
+
const isPrivate = options.private ?? options.is_private;
|
|
11983
|
+
if (isPrivate !== void 0) {
|
|
11984
|
+
body.is_private = isPrivate;
|
|
11977
11985
|
}
|
|
11978
11986
|
const raw = await sdk2.context.api.post(
|
|
11979
11987
|
"/durableworkflowzaps/api/v0/workflows",
|
|
@@ -12362,7 +12370,7 @@ var RunDurableOptionsSchema = zod.z.object({
|
|
|
12362
12370
|
'Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted.'
|
|
12363
12371
|
),
|
|
12364
12372
|
connections: zod.z.record(zod.z.string(), ConnectionMapEntrySchema).optional().describe(
|
|
12365
|
-
|
|
12373
|
+
'Named connection aliases. Maps each alias to an object holding its Zapier connection ID, e.g. `{ "slack": { "connection_id": "123" } }`.'
|
|
12366
12374
|
),
|
|
12367
12375
|
app_versions: zod.z.record(zod.z.string(), AppVersionMapEntrySchema).optional().describe(
|
|
12368
12376
|
"Pinned app versions. Maps app keys (slugs) to implementation names and versions."
|
package/dist/experimental.d.mts
CHANGED
|
@@ -2653,6 +2653,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2653
2653
|
createWorkflow: (options?: {
|
|
2654
2654
|
name: string;
|
|
2655
2655
|
description?: string | undefined;
|
|
2656
|
+
private?: boolean | undefined;
|
|
2656
2657
|
is_private?: boolean | undefined;
|
|
2657
2658
|
} | undefined) => Promise<{
|
|
2658
2659
|
data: {
|
|
@@ -5778,6 +5779,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5778
5779
|
createWorkflow: (options?: {
|
|
5779
5780
|
name: string;
|
|
5780
5781
|
description?: string | undefined;
|
|
5782
|
+
private?: boolean | undefined;
|
|
5781
5783
|
is_private?: boolean | undefined;
|
|
5782
5784
|
} | undefined) => Promise<{
|
|
5783
5785
|
data: {
|
package/dist/experimental.d.ts
CHANGED
|
@@ -2668,6 +2668,7 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
|
|
|
2668
2668
|
createWorkflow: (options?: {
|
|
2669
2669
|
name: string;
|
|
2670
2670
|
description?: string | undefined;
|
|
2671
|
+
private?: boolean | undefined;
|
|
2671
2672
|
is_private?: boolean | undefined;
|
|
2672
2673
|
} | undefined) => Promise<{
|
|
2673
2674
|
data: {
|
|
@@ -5793,6 +5794,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
|
|
|
5793
5794
|
createWorkflow: (options?: {
|
|
5794
5795
|
name: string;
|
|
5795
5796
|
description?: string | undefined;
|
|
5797
|
+
private?: boolean | undefined;
|
|
5796
5798
|
is_private?: boolean | undefined;
|
|
5797
5799
|
} | undefined) => Promise<{
|
|
5798
5800
|
data: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AA+F1C,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,gBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAmJikC,CAAC;;;;sBAAiX,CAAC;qBAAyB,CAAC
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AA+F1C,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,gBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAmJikC,CAAC;;;;sBAAiX,CAAC;qBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAhBhhD;AASD,MAAM,WAAW,SAAU,SAAQ,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAMxE,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/experimental.mjs
CHANGED
|
@@ -3285,7 +3285,7 @@ function parseApprovalReviewStreamPayload(parsed, toolNames) {
|
|
|
3285
3285
|
}
|
|
3286
3286
|
|
|
3287
3287
|
// src/sdk-version.ts
|
|
3288
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
3288
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.72.0" : void 0) || "unknown";
|
|
3289
3289
|
|
|
3290
3290
|
// src/utils/open-url.ts
|
|
3291
3291
|
var nodePrefix = "node:";
|
|
@@ -11819,17 +11819,20 @@ var WorkflowItemSchema = z.object({
|
|
|
11819
11819
|
updated_at: z.string().describe("When the workflow was last modified (ISO-8601)")
|
|
11820
11820
|
});
|
|
11821
11821
|
var ListWorkflowsOptionsSchema = z.object({
|
|
11822
|
-
pageSize: z.number().int().min(1).optional().describe(
|
|
11823
|
-
"Number of workflows per page (server-side pagination forthcoming; ignored until then)"
|
|
11824
|
-
),
|
|
11822
|
+
pageSize: z.number().int().min(1).max(100).optional().describe("Number of workflows per page (max 100)"),
|
|
11825
11823
|
maxItems: z.number().int().min(1).optional().describe("Maximum total workflows to return across all pages"),
|
|
11826
|
-
cursor: z.string().optional().describe(
|
|
11827
|
-
"Cursor to start from for pagination (server-side pagination forthcoming; ignored until then)"
|
|
11828
|
-
)
|
|
11824
|
+
cursor: z.string().optional().describe("Cursor to start from for pagination")
|
|
11829
11825
|
}).describe("List all active durable workflows for the authenticated account");
|
|
11830
11826
|
var ListWorkflowsApiResponseSchema = z.object({
|
|
11831
|
-
|
|
11832
|
-
|
|
11827
|
+
results: z.array(WorkflowItemSchema),
|
|
11828
|
+
meta: z.object({
|
|
11829
|
+
limit: z.number(),
|
|
11830
|
+
cursor: z.string().nullable().optional(),
|
|
11831
|
+
next_cursor: z.string().nullable().optional()
|
|
11832
|
+
}),
|
|
11833
|
+
links: z.object({
|
|
11834
|
+
next: z.string().nullable().optional()
|
|
11835
|
+
}).optional()
|
|
11833
11836
|
});
|
|
11834
11837
|
|
|
11835
11838
|
// src/plugins/codeSubstrate/listWorkflows/index.ts
|
|
@@ -11856,8 +11859,8 @@ var listWorkflowsPlugin = definePlugin(
|
|
|
11856
11859
|
);
|
|
11857
11860
|
const response = ListWorkflowsApiResponseSchema.parse(raw);
|
|
11858
11861
|
return {
|
|
11859
|
-
data: response.
|
|
11860
|
-
nextCursor: response.next_cursor ?? void 0
|
|
11862
|
+
data: response.results,
|
|
11863
|
+
nextCursor: response.meta.next_cursor ?? void 0
|
|
11861
11864
|
};
|
|
11862
11865
|
}
|
|
11863
11866
|
})
|
|
@@ -11933,9 +11936,13 @@ var getWorkflowPlugin = definePlugin(
|
|
|
11933
11936
|
var CreateWorkflowOptionsSchema = z.object({
|
|
11934
11937
|
name: z.string().min(1).describe("Workflow name"),
|
|
11935
11938
|
description: z.string().optional().describe("Optional description for the workflow"),
|
|
11939
|
+
private: z.boolean().optional().describe(
|
|
11940
|
+
"If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
|
|
11941
|
+
),
|
|
11942
|
+
/** @deprecated Use `private` instead. */
|
|
11936
11943
|
is_private: z.boolean().optional().describe(
|
|
11937
11944
|
"If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
|
|
11938
|
-
)
|
|
11945
|
+
).meta({ deprecated: true })
|
|
11939
11946
|
}).describe(
|
|
11940
11947
|
"Create a durable workflow container. Starts disabled with no version; publish a version to add code."
|
|
11941
11948
|
);
|
|
@@ -11970,8 +11977,9 @@ var createWorkflowPlugin = definePlugin(
|
|
|
11970
11977
|
if (options.description !== void 0) {
|
|
11971
11978
|
body.description = options.description;
|
|
11972
11979
|
}
|
|
11973
|
-
|
|
11974
|
-
|
|
11980
|
+
const isPrivate = options.private ?? options.is_private;
|
|
11981
|
+
if (isPrivate !== void 0) {
|
|
11982
|
+
body.is_private = isPrivate;
|
|
11975
11983
|
}
|
|
11976
11984
|
const raw = await sdk2.context.api.post(
|
|
11977
11985
|
"/durableworkflowzaps/api/v0/workflows",
|
|
@@ -12360,7 +12368,7 @@ var RunDurableOptionsSchema = z.object({
|
|
|
12360
12368
|
'Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted.'
|
|
12361
12369
|
),
|
|
12362
12370
|
connections: z.record(z.string(), ConnectionMapEntrySchema).optional().describe(
|
|
12363
|
-
|
|
12371
|
+
'Named connection aliases. Maps each alias to an object holding its Zapier connection ID, e.g. `{ "slack": { "connection_id": "123" } }`.'
|
|
12364
12372
|
),
|
|
12365
12373
|
app_versions: z.record(z.string(), AppVersionMapEntrySchema).optional().describe(
|
|
12366
12374
|
"Pinned app versions. Maps app keys (slugs) to implementation names and versions."
|
package/dist/index.cjs
CHANGED
|
@@ -6880,7 +6880,7 @@ function parseApprovalReviewStreamPayload(parsed, toolNames) {
|
|
|
6880
6880
|
}
|
|
6881
6881
|
|
|
6882
6882
|
// src/sdk-version.ts
|
|
6883
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
6883
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.72.0" : void 0) || "unknown";
|
|
6884
6884
|
|
|
6885
6885
|
// src/utils/open-url.ts
|
|
6886
6886
|
var nodePrefix = "node:";
|
package/dist/index.mjs
CHANGED
|
@@ -6878,7 +6878,7 @@ function parseApprovalReviewStreamPayload(parsed, toolNames) {
|
|
|
6878
6878
|
}
|
|
6879
6879
|
|
|
6880
6880
|
// src/sdk-version.ts
|
|
6881
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
6881
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.72.0" : void 0) || "unknown";
|
|
6882
6882
|
|
|
6883
6883
|
// src/utils/open-url.ts
|
|
6884
6884
|
var nodePrefix = "node:";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/createWorkflow/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/createWorkflow/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BhC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
|
|
@@ -13,8 +13,9 @@ export const createWorkflowPlugin = definePlugin((sdk) => createPluginMethod(sdk
|
|
|
13
13
|
if (options.description !== undefined) {
|
|
14
14
|
body.description = options.description;
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
const isPrivate = options.private ?? options.is_private;
|
|
17
|
+
if (isPrivate !== undefined) {
|
|
18
|
+
body.is_private = isPrivate;
|
|
18
19
|
}
|
|
19
20
|
const raw = await sdk.context.api.post("/durableworkflowzaps/api/v0/workflows", body, { authRequired: true });
|
|
20
21
|
const data = CreateWorkflowResponseSchema.parse(raw);
|
|
@@ -2,6 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const CreateWorkflowOptionsSchema: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
description: z.ZodOptional<z.ZodString>;
|
|
5
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
5
6
|
is_private: z.ZodOptional<z.ZodBoolean>;
|
|
6
7
|
}, z.core.$strip>;
|
|
7
8
|
export type CreateWorkflowOptions = z.infer<typeof CreateWorkflowOptionsSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/createWorkflow/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/createWorkflow/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;iBAwBrC,CAAC;AAEJ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,4BAA4B;;;;;;;;;iBA2BvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
|
|
@@ -6,10 +6,16 @@ export const CreateWorkflowOptionsSchema = z
|
|
|
6
6
|
.string()
|
|
7
7
|
.optional()
|
|
8
8
|
.describe("Optional description for the workflow"),
|
|
9
|
-
|
|
9
|
+
private: z
|
|
10
10
|
.boolean()
|
|
11
11
|
.optional()
|
|
12
12
|
.describe("If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."),
|
|
13
|
+
/** @deprecated Use `private` instead. */
|
|
14
|
+
is_private: z
|
|
15
|
+
.boolean()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe("If true, only the creating user can see or manage this workflow. Defaults to false (account-visible).")
|
|
18
|
+
.meta({ deprecated: true }),
|
|
13
19
|
})
|
|
14
20
|
.describe("Create a durable workflow container. Starts disabled with no version; publish a version to add code.");
|
|
15
21
|
export const CreateWorkflowResponseSchema = z.object({
|
|
@@ -21,8 +21,8 @@ export const listWorkflowsPlugin = definePlugin((sdk) => createPaginatedPluginMe
|
|
|
21
21
|
const raw = await sdk.context.api.get("/durableworkflowzaps/api/v0/workflows", { searchParams, authRequired: true });
|
|
22
22
|
const response = ListWorkflowsApiResponseSchema.parse(raw);
|
|
23
23
|
return {
|
|
24
|
-
data: response.
|
|
25
|
-
nextCursor: response.next_cursor ?? undefined,
|
|
24
|
+
data: response.results,
|
|
25
|
+
nextCursor: response.meta.next_cursor ?? undefined,
|
|
26
26
|
};
|
|
27
27
|
},
|
|
28
28
|
}));
|
|
@@ -33,14 +33,13 @@ export declare const ListWorkflowsOptionsSchema: z.ZodObject<{
|
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
export type ListWorkflowsOptions = z.infer<typeof ListWorkflowsOptionsSchema>;
|
|
35
35
|
/**
|
|
36
|
-
* Wire shape returned by `/durableworkflowzaps/api/v0/workflows
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* transparent to callers.
|
|
36
|
+
* Wire shape returned by `/durableworkflowzaps/api/v0/workflows` — the
|
|
37
|
+
* standard cursor-pagination envelope (`results` / `meta` / `links`) shared
|
|
38
|
+
* with the runs and versions list endpoints. The next page cursor lives at
|
|
39
|
+
* `meta.next_cursor` (null on the final page).
|
|
41
40
|
*/
|
|
42
41
|
export declare const ListWorkflowsApiResponseSchema: z.ZodObject<{
|
|
43
|
-
|
|
42
|
+
results: z.ZodArray<z.ZodObject<{
|
|
44
43
|
id: z.ZodString;
|
|
45
44
|
name: z.ZodString;
|
|
46
45
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -66,7 +65,14 @@ export declare const ListWorkflowsApiResponseSchema: z.ZodObject<{
|
|
|
66
65
|
created_at: z.ZodString;
|
|
67
66
|
updated_at: z.ZodString;
|
|
68
67
|
}, z.core.$strip>>;
|
|
69
|
-
|
|
68
|
+
meta: z.ZodObject<{
|
|
69
|
+
limit: z.ZodNumber;
|
|
70
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
70
76
|
}, z.core.$strip>;
|
|
71
77
|
export type ListWorkflowsApiResponse = z.infer<typeof ListWorkflowsApiResponseSchema>;
|
|
72
78
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflows/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;iBAuC7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,0BAA0B;;;;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflows/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;iBAuC7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,0BAA0B;;;;iBAoBuC,CAAC;AAE/E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC"}
|
|
@@ -38,8 +38,9 @@ export const ListWorkflowsOptionsSchema = z
|
|
|
38
38
|
.number()
|
|
39
39
|
.int()
|
|
40
40
|
.min(1)
|
|
41
|
+
.max(100)
|
|
41
42
|
.optional()
|
|
42
|
-
.describe("Number of workflows per page (
|
|
43
|
+
.describe("Number of workflows per page (max 100)"),
|
|
43
44
|
maxItems: z
|
|
44
45
|
.number()
|
|
45
46
|
.int()
|
|
@@ -49,17 +50,25 @@ export const ListWorkflowsOptionsSchema = z
|
|
|
49
50
|
cursor: z
|
|
50
51
|
.string()
|
|
51
52
|
.optional()
|
|
52
|
-
.describe("Cursor to start from for pagination
|
|
53
|
+
.describe("Cursor to start from for pagination"),
|
|
53
54
|
})
|
|
54
55
|
.describe("List all active durable workflows for the authenticated account");
|
|
55
56
|
/**
|
|
56
|
-
* Wire shape returned by `/durableworkflowzaps/api/v0/workflows
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* transparent to callers.
|
|
57
|
+
* Wire shape returned by `/durableworkflowzaps/api/v0/workflows` — the
|
|
58
|
+
* standard cursor-pagination envelope (`results` / `meta` / `links`) shared
|
|
59
|
+
* with the runs and versions list endpoints. The next page cursor lives at
|
|
60
|
+
* `meta.next_cursor` (null on the final page).
|
|
61
61
|
*/
|
|
62
62
|
export const ListWorkflowsApiResponseSchema = z.object({
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
results: z.array(WorkflowItemSchema),
|
|
64
|
+
meta: z.object({
|
|
65
|
+
limit: z.number(),
|
|
66
|
+
cursor: z.string().nullable().optional(),
|
|
67
|
+
next_cursor: z.string().nullable().optional(),
|
|
68
|
+
}),
|
|
69
|
+
links: z
|
|
70
|
+
.object({
|
|
71
|
+
next: z.string().nullable().optional(),
|
|
72
|
+
})
|
|
73
|
+
.optional(),
|
|
65
74
|
});
|
|
@@ -67,7 +67,7 @@ export const RunDurableOptionsSchema = z
|
|
|
67
67
|
connections: z
|
|
68
68
|
.record(z.string(), ConnectionMapEntrySchema)
|
|
69
69
|
.optional()
|
|
70
|
-
.describe(
|
|
70
|
+
.describe('Named connection aliases. Maps each alias to an object holding its Zapier connection ID, e.g. `{ "slack": { "connection_id": "123" } }`.'),
|
|
71
71
|
app_versions: z
|
|
72
72
|
.record(z.string(), AppVersionMapEntrySchema)
|
|
73
73
|
.optional()
|