@zapier/zapier-sdk 0.71.0 → 0.71.1

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,11 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.71.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 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.
8
+
3
9
  ## 0.71.0
4
10
 
5
11
  ### 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
- | ​ ↳ `is_private` | `boolean` | ❌ | — | — | If true, only the creating user can see or manage this workflow. Defaults to false (account-visible). |
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
 
@@ -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 names to Zapier connection IDs. |
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
 
@@ -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.71.0" : void 0) || "unknown";
3290
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.71.1" : void 0) || "unknown";
3291
3291
 
3292
3292
  // src/utils/open-url.ts
3293
3293
  var nodePrefix = "node:";
@@ -11935,9 +11935,13 @@ var getWorkflowPlugin = definePlugin(
11935
11935
  var CreateWorkflowOptionsSchema = zod.z.object({
11936
11936
  name: zod.z.string().min(1).describe("Workflow name"),
11937
11937
  description: zod.z.string().optional().describe("Optional description for the workflow"),
11938
+ private: zod.z.boolean().optional().describe(
11939
+ "If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
11940
+ ),
11941
+ /** @deprecated Use `private` instead. */
11938
11942
  is_private: zod.z.boolean().optional().describe(
11939
11943
  "If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
11940
- )
11944
+ ).meta({ deprecated: true })
11941
11945
  }).describe(
11942
11946
  "Create a durable workflow container. Starts disabled with no version; publish a version to add code."
11943
11947
  );
@@ -11972,8 +11976,9 @@ var createWorkflowPlugin = definePlugin(
11972
11976
  if (options.description !== void 0) {
11973
11977
  body.description = options.description;
11974
11978
  }
11975
- if (options.is_private !== void 0) {
11976
- body.is_private = options.is_private;
11979
+ const isPrivate = options.private ?? options.is_private;
11980
+ if (isPrivate !== void 0) {
11981
+ body.is_private = isPrivate;
11977
11982
  }
11978
11983
  const raw = await sdk2.context.api.post(
11979
11984
  "/durableworkflowzaps/api/v0/workflows",
@@ -12362,7 +12367,7 @@ var RunDurableOptionsSchema = zod.z.object({
12362
12367
  'Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted.'
12363
12368
  ),
12364
12369
  connections: zod.z.record(zod.z.string(), ConnectionMapEntrySchema).optional().describe(
12365
- "Named connection aliases. Maps alias names to Zapier connection IDs."
12370
+ 'Named connection aliases. Maps each alias to an object holding its Zapier connection ID, e.g. `{ "slack": { "connection_id": "123" } }`.'
12366
12371
  ),
12367
12372
  app_versions: zod.z.record(zod.z.string(), AppVersionMapEntrySchema).optional().describe(
12368
12373
  "Pinned app versions. Maps app keys (slugs) to implementation names and versions."
@@ -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: {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAhBhhD;AASD,MAAM,WAAW,SAAU,SAAQ,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAMxE,YAAY,EAAE,UAAU,EAAE,CAAC"}
@@ -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.71.0" : void 0) || "unknown";
3288
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.71.1" : void 0) || "unknown";
3289
3289
 
3290
3290
  // src/utils/open-url.ts
3291
3291
  var nodePrefix = "node:";
@@ -11933,9 +11933,13 @@ var getWorkflowPlugin = definePlugin(
11933
11933
  var CreateWorkflowOptionsSchema = z.object({
11934
11934
  name: z.string().min(1).describe("Workflow name"),
11935
11935
  description: z.string().optional().describe("Optional description for the workflow"),
11936
+ private: z.boolean().optional().describe(
11937
+ "If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
11938
+ ),
11939
+ /** @deprecated Use `private` instead. */
11936
11940
  is_private: z.boolean().optional().describe(
11937
11941
  "If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
11938
- )
11942
+ ).meta({ deprecated: true })
11939
11943
  }).describe(
11940
11944
  "Create a durable workflow container. Starts disabled with no version; publish a version to add code."
11941
11945
  );
@@ -11970,8 +11974,9 @@ var createWorkflowPlugin = definePlugin(
11970
11974
  if (options.description !== void 0) {
11971
11975
  body.description = options.description;
11972
11976
  }
11973
- if (options.is_private !== void 0) {
11974
- body.is_private = options.is_private;
11977
+ const isPrivate = options.private ?? options.is_private;
11978
+ if (isPrivate !== void 0) {
11979
+ body.is_private = isPrivate;
11975
11980
  }
11976
11981
  const raw = await sdk2.context.api.post(
11977
11982
  "/durableworkflowzaps/api/v0/workflows",
@@ -12360,7 +12365,7 @@ var RunDurableOptionsSchema = z.object({
12360
12365
  'Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Defaults to server-configured version if omitted.'
12361
12366
  ),
12362
12367
  connections: z.record(z.string(), ConnectionMapEntrySchema).optional().describe(
12363
- "Named connection aliases. Maps alias names to Zapier connection IDs."
12368
+ 'Named connection aliases. Maps each alias to an object holding its Zapier connection ID, e.g. `{ "slack": { "connection_id": "123" } }`.'
12364
12369
  ),
12365
12370
  app_versions: z.record(z.string(), AppVersionMapEntrySchema).optional().describe(
12366
12371
  "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.71.0" : void 0) || "unknown";
6883
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.71.1" : 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.71.0" : void 0) || "unknown";
6881
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.71.1" : void 0) || "unknown";
6882
6882
 
6883
6883
  // src/utils/open-url.ts
6884
6884
  var nodePrefix = "node:";
@@ -24,6 +24,7 @@ export declare const createWorkflowPlugin: (sdk: {
24
24
  createWorkflow: (options?: {
25
25
  name: string;
26
26
  description?: string | undefined;
27
+ private?: boolean | undefined;
27
28
  is_private?: boolean | undefined;
28
29
  } | undefined) => Promise<{
29
30
  data: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/createWorkflow/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BhC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
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
- if (options.is_private !== undefined) {
17
- body.is_private = options.is_private;
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;;;;iBAgBrC,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"}
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
- is_private: z
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({
@@ -67,7 +67,7 @@ export const RunDurableOptionsSchema = z
67
67
  connections: z
68
68
  .record(z.string(), ConnectionMapEntrySchema)
69
69
  .optional()
70
- .describe("Named connection aliases. Maps alias names to Zapier connection IDs."),
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()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk",
3
- "version": "0.71.0",
3
+ "version": "0.71.1",
4
4
  "description": "Complete Zapier SDK - combines all Zapier SDK packages",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",