@zapier/zapier-sdk 0.119.0 → 0.119.2

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.
@@ -1,4 +1,4 @@
1
- import { taxonomy, DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, workflowRunIdResolver, workflowDraftRevisionResolver, isZapierNotFoundError, ZapierTimeoutError, zapierSdkPlugin, SDK_VERSION, ZapierValidationError, sleep, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-6FKWG6WZ.mjs';
1
+ import { taxonomy, DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, workflowRunIdResolver, workflowDraftRevisionResolver, isZapierNotFoundError, ZapierTimeoutError, zapierSdkPlugin, SDK_VERSION, ZapierValidationError, sleep, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-2SMGG6P2.mjs';
2
2
  import { defineMethod, openEnum, defineResolver, definePlugin, createSdk, CORE_OPTIONS_ID } from '@zapier/kitcore';
3
3
  import { z } from 'zod';
4
4
 
@@ -223,15 +223,22 @@ var WorkflowVersionSchema = z.object({
223
223
  app_versions: z.record(z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this version (or null)."),
224
224
  creation_client: WorkflowClientAttributionFieldSchema
225
225
  });
226
- var WorkflowTriggerStatusSchema = z.enum([
227
- "unclaimed",
228
- "pending",
229
- "active",
230
- "releasing",
231
- "released",
232
- "failed"
226
+ var WorkflowTriggerStatusSchema = z.union([
227
+ z.enum([
228
+ "unclaimed",
229
+ "pending",
230
+ "initializing",
231
+ "active",
232
+ "releasing",
233
+ "released",
234
+ "failed"
235
+ ]),
236
+ z.string()
237
+ ]);
238
+ var WorkflowDisabledReasonSchema = z.union([
239
+ z.enum(["trigger_claim_failed", "owner_transferred"]),
240
+ z.string()
233
241
  ]);
234
- var WorkflowDisabledReasonSchema = z.enum(["trigger_claim_failed"]);
235
242
  var WorkflowTriggerDetailsSchema = z.object({
236
243
  webhook_url: z.string().optional().describe(
237
244
  "Public catch URL for this trigger. Present on catch-hook triggers (e.g. Webhooks by Zapier)."
@@ -2279,7 +2286,7 @@ var MAX_SOURCE_FILES_COUNT = 50;
2279
2286
  var MAX_SOURCE_FILE_LENGTH = 2e5;
2280
2287
  var DEFAULT_ENTRYPOINT_FILE = "/workflow.ts";
2281
2288
  var EXAMPLE_SOURCE_FILES = {
2282
- [DEFAULT_ENTRYPOINT_FILE]: 'import { defineDurable } from "@zapier/zapier-durable"; export default defineDurable("hello-world", async (ctx, input) => { return ctx.step("greet", async () => "Hello, world!"); });'
2289
+ [DEFAULT_ENTRYPOINT_FILE]: 'import { defineDurable } from "@zapier/zapier-durable"; export default defineDurable({ name: "hello-world", run: async (ctx) => { return ctx.step("greet", async () => "Hello, world!"); } });'
2283
2290
  };
2284
2291
  var WorkflowValidationSourceFilesSchema = z.record(
2285
2292
  z.string().regex(/^\//, "source file paths must start with /"),