@zapier/zapier-sdk 0.70.2 → 0.70.4

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.
Files changed (80) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +115 -80
  3. package/dist/experimental.cjs +163 -37
  4. package/dist/experimental.d.mts +160 -4
  5. package/dist/experimental.d.ts +158 -2
  6. package/dist/experimental.d.ts.map +1 -1
  7. package/dist/experimental.mjs +162 -38
  8. package/dist/{index-DjLMJ3w8.d.mts → index-BNaiNmM-.d.mts} +133 -3
  9. package/dist/{index-DjLMJ3w8.d.ts → index-BNaiNmM-.d.ts} +133 -3
  10. package/dist/index.cjs +51 -2
  11. package/dist/index.d.mts +1 -1
  12. package/dist/index.mjs +50 -3
  13. package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts +9 -0
  14. package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts.map +1 -1
  15. package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts +9 -0
  16. package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts.map +1 -1
  17. package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts +9 -0
  18. package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts.map +1 -1
  19. package/dist/plugins/codeSubstrate/getDurableRun/index.d.ts +1 -1
  20. package/dist/plugins/codeSubstrate/getDurableRun/schemas.d.ts +5 -5
  21. package/dist/plugins/codeSubstrate/getDurableRun/schemas.d.ts.map +1 -1
  22. package/dist/plugins/codeSubstrate/getDurableRun/schemas.js +2 -1
  23. package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts +1 -1
  24. package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts +31 -0
  25. package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts.map +1 -1
  26. package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts +42 -0
  27. package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts.map +1 -1
  28. package/dist/plugins/codeSubstrate/getWorkflow/schemas.js +20 -0
  29. package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts +9 -0
  30. package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts.map +1 -1
  31. package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts +1 -1
  32. package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts +35 -0
  33. package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts.map +1 -1
  34. package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.d.ts +13 -0
  35. package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.d.ts.map +1 -1
  36. package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.js +10 -0
  37. package/dist/plugins/codeSubstrate/listDurableRuns/schemas.d.ts +3 -3
  38. package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts +9 -0
  39. package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts.map +1 -1
  40. package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts +3 -3
  41. package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts +22 -0
  42. package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts.map +1 -1
  43. package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.d.ts +26 -0
  44. package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.d.ts.map +1 -1
  45. package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.js +10 -0
  46. package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts +9 -0
  47. package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts.map +1 -1
  48. package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts +32 -0
  49. package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts.map +1 -1
  50. package/dist/plugins/codeSubstrate/listWorkflows/schemas.js +11 -0
  51. package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +22 -0
  52. package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts.map +1 -1
  53. package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts +14 -1
  54. package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts.map +1 -1
  55. package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.js +11 -44
  56. package/dist/plugins/codeSubstrate/runDurable/index.d.ts +6 -0
  57. package/dist/plugins/codeSubstrate/runDurable/index.d.ts.map +1 -1
  58. package/dist/plugins/codeSubstrate/runDurable/index.js +3 -0
  59. package/dist/plugins/codeSubstrate/runDurable/schemas.d.ts +12 -0
  60. package/dist/plugins/codeSubstrate/runDurable/schemas.d.ts.map +1 -1
  61. package/dist/plugins/codeSubstrate/runDurable/schemas.js +33 -0
  62. package/dist/plugins/codeSubstrate/shared-schemas.d.ts +37 -0
  63. package/dist/plugins/codeSubstrate/shared-schemas.d.ts.map +1 -0
  64. package/dist/plugins/codeSubstrate/shared-schemas.js +69 -0
  65. package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts +9 -0
  66. package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts.map +1 -1
  67. package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts +11 -0
  68. package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts.map +1 -1
  69. package/dist/plugins/codeSubstrate/updateWorkflow/schemas.d.ts +2 -0
  70. package/dist/plugins/codeSubstrate/updateWorkflow/schemas.d.ts.map +1 -1
  71. package/dist/plugins/codeSubstrate/updateWorkflow/schemas.js +7 -0
  72. package/dist/plugins/eventEmission/builders.d.ts.map +1 -1
  73. package/dist/plugins/eventEmission/builders.js +7 -2
  74. package/dist/plugins/eventEmission/utils.d.ts +54 -0
  75. package/dist/plugins/eventEmission/utils.d.ts.map +1 -1
  76. package/dist/plugins/eventEmission/utils.js +97 -0
  77. package/dist/types/telemetry-events.d.ts +7 -0
  78. package/dist/types/telemetry-events.d.ts.map +1 -1
  79. package/dist/types/telemetry-events.js +2 -0
  80. package/package.json +1 -1
@@ -3186,7 +3186,7 @@ function createSseParserStream() {
3186
3186
  }
3187
3187
 
3188
3188
  // src/sdk-version.ts
3189
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.70.2" : void 0) || "unknown";
3189
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.70.4" : void 0) || "unknown";
3190
3190
 
3191
3191
  // src/utils/open-url.ts
3192
3192
  var nodePrefix = "node:";
@@ -8935,6 +8935,48 @@ function getCpuTime() {
8935
8935
  }
8936
8936
  return null;
8937
8937
  }
8938
+ function getTtyContext() {
8939
+ try {
8940
+ const proc = globalThis.process;
8941
+ if (!proc) return { stdin_is_tty: null, stdout_is_tty: null };
8942
+ return {
8943
+ stdin_is_tty: proc.stdin?.isTTY === true,
8944
+ stdout_is_tty: proc.stdout?.isTTY === true
8945
+ };
8946
+ } catch {
8947
+ return { stdin_is_tty: null, stdout_is_tty: null };
8948
+ }
8949
+ }
8950
+ var isTruthy = (value) => {
8951
+ const lower = value.toLowerCase();
8952
+ return lower === "1" || lower === "true";
8953
+ };
8954
+ var isNonEmpty = (value) => value !== "";
8955
+ var agentDetectors = [
8956
+ { name: "claude-code", key: "CLAUDECODE", predicate: isTruthy },
8957
+ { name: "github-copilot", key: "COPILOT_AGENT", predicate: isTruthy },
8958
+ { name: "cursor", key: "CURSOR_AGENT", predicate: isTruthy },
8959
+ { name: "codex", key: "CODEX_SANDBOX", predicate: isNonEmpty },
8960
+ { name: "gemini-cli", key: "GEMINI_CLI", predicate: isTruthy },
8961
+ { name: "augment", key: "AUGMENT_AGENT", predicate: isTruthy },
8962
+ { name: "cline", key: "CLINE_ACTIVE", predicate: isTruthy },
8963
+ { name: "opencode", key: "OPENCODE_CLIENT", predicate: isNonEmpty }
8964
+ ];
8965
+ function getAgent() {
8966
+ try {
8967
+ const env = globalThis.process?.env;
8968
+ if (!env) return null;
8969
+ for (const detector of agentDetectors) {
8970
+ const value = env[detector.key];
8971
+ if (value !== void 0 && detector.predicate(value)) {
8972
+ return detector.name;
8973
+ }
8974
+ }
8975
+ return null;
8976
+ } catch {
8977
+ return null;
8978
+ }
8979
+ }
8938
8980
 
8939
8981
  // src/plugins/eventEmission/builders.ts
8940
8982
  function createBaseEvent(context = {}) {
@@ -8959,6 +9001,7 @@ function buildErrorEvent(data, context = {}) {
8959
9001
  app_version_id: context.app_version_id,
8960
9002
  environment: context.environment,
8961
9003
  ...data,
9004
+ agent: getAgent(),
8962
9005
  sdk_version: SDK_VERSION
8963
9006
  };
8964
9007
  }
@@ -8980,6 +9023,8 @@ function buildApplicationLifecycleEvent(data, context = {}) {
8980
9023
  environment: context.environment ?? (globalThis.process?.env?.NODE_ENV || null),
8981
9024
  is_ci_environment: isCi(),
8982
9025
  ci_platform: getCiPlatform(),
9026
+ ...getTtyContext(),
9027
+ agent: getAgent(),
8983
9028
  session_id: null,
8984
9029
  metadata: null,
8985
9030
  process_argv: globalThis.process?.argv || null,
@@ -8999,6 +9044,7 @@ function buildErrorEventWithContext(data, context = {}) {
8999
9044
  environment: context.environment ?? (globalThis.process?.env?.NODE_ENV || null),
9000
9045
  execution_time_before_error_ms: executionTime,
9001
9046
  ...data,
9047
+ agent: getAgent(),
9002
9048
  sdk_version: SDK_VERSION
9003
9049
  };
9004
9050
  }
@@ -9013,7 +9059,7 @@ function buildMethodCalledEvent(data, context = {}) {
9013
9059
  error_type: data.error_type ?? null,
9014
9060
  argument_count: data.argument_count,
9015
9061
  is_paginated: data.is_paginated ?? false,
9016
- environment: context.environment ?? (process?.env?.NODE_ENV || null),
9062
+ environment: context.environment ?? (globalThis.process?.env?.NODE_ENV || null),
9017
9063
  selected_api: data.selected_api ?? context.selected_api ?? null,
9018
9064
  app_id: context.app_id ?? null,
9019
9065
  app_version_id: context.app_version_id ?? null,
@@ -9031,6 +9077,7 @@ function buildMethodCalledEvent(data, context = {}) {
9031
9077
  is_synchronous: false,
9032
9078
  cpu_time_ms: null,
9033
9079
  memory_usage_bytes: null,
9080
+ agent: getAgent(),
9034
9081
  sdk_version: SDK_VERSION
9035
9082
  };
9036
9083
  }
@@ -11148,6 +11195,52 @@ var codeSubstrateDefaults = {
11148
11195
  categories: ["code-workflow"],
11149
11196
  experimental: true
11150
11197
  };
11198
+ var ConnectionBindingSchema = z.object({
11199
+ connection_id: z.union([
11200
+ z.number().int().positive(),
11201
+ z.string().regex(/^[1-9][0-9]*$/, "must be a positive integer string"),
11202
+ z.string().uuid("must be a UUID")
11203
+ ]).describe(
11204
+ "Zapier connection ID. Positive integer (legacy) or UUID string (newer)."
11205
+ )
11206
+ }).describe(
11207
+ "Connection binding: maps a single alias to a concrete connection."
11208
+ );
11209
+ var AppVersionBindingSchema = z.object({
11210
+ implementation_name: z.string().describe("App implementation identifier (e.g. 'SlackCLIAPI')"),
11211
+ version: z.string().optional().describe("App implementation version (e.g. '1.27.1')")
11212
+ }).describe("App-version binding: maps a single alias to an app version.");
11213
+ var WorkflowVersionTriggerConfigSchema = z.object({
11214
+ selected_api: z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
11215
+ action: z.string().describe("Trigger action key (e.g. 'new_row')"),
11216
+ authentication_id: z.string().nullish().describe(
11217
+ "Connection ID for the trigger source. Omit or pass null for no-auth triggers (e.g. Schedule by Zapier)."
11218
+ ),
11219
+ params: z.record(z.string(), z.unknown()).optional().describe("Trigger parameters as a JSON object")
11220
+ }).describe("Trigger configuration persisted on a workflow version.");
11221
+ var WorkflowTriggerStatusSchema = z.enum([
11222
+ "unclaimed",
11223
+ "pending",
11224
+ "active",
11225
+ "releasing",
11226
+ "released",
11227
+ "failed"
11228
+ ]);
11229
+ var WorkflowTriggerSchema = z.object({
11230
+ selected_api: z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
11231
+ action: z.string().describe("Trigger action key (e.g. 'new_row')"),
11232
+ authentication_id: z.string().nullish().describe(
11233
+ "Connection ID for the trigger source. Null for no-auth triggers."
11234
+ ),
11235
+ params: z.record(z.string(), z.unknown()).optional().describe("Trigger parameters as a JSON object"),
11236
+ status: WorkflowTriggerStatusSchema.describe(
11237
+ "Live trigger claim status \u2014 whether the trigger is currently subscribed to its source."
11238
+ )
11239
+ }).describe(
11240
+ "Trigger from a workflow's current version, combined with the live claim status."
11241
+ );
11242
+
11243
+ // src/plugins/codeSubstrate/listWorkflows/schemas.ts
11151
11244
  var WorkflowItemSchema = z.object({
11152
11245
  id: z.string().describe("Workflow ID (UUID)"),
11153
11246
  name: z.string().describe("Workflow name"),
@@ -11156,9 +11249,16 @@ var WorkflowItemSchema = z.object({
11156
11249
  "Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
11157
11250
  ),
11158
11251
  enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
11252
+ is_private: z.boolean().describe(
11253
+ "Whether the workflow is private to the creating user. False means account-visible."
11254
+ ),
11255
+ created_by_user_id: z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
11159
11256
  current_version_id: z.string().nullable().describe(
11160
11257
  "ID of the workflow version that runs handle. Null until a version is published."
11161
11258
  ),
11259
+ triggers: z.array(WorkflowTriggerSchema).describe(
11260
+ "Trigger configurations from the current version, with live claim status. Empty array when the workflow has no triggers."
11261
+ ),
11162
11262
  created_at: z.string().describe("When the workflow was created (ISO-8601)"),
11163
11263
  updated_at: z.string().describe("When the workflow was last modified (ISO-8601)")
11164
11264
  });
@@ -11217,7 +11317,12 @@ var WorkflowVersionSchema = z.object({
11217
11317
  // Backend column is NOT NULL (see durableworkflowzaps prisma schema:
11218
11318
  // workflow_versions.created_by_user_id), so this is always emitted.
11219
11319
  created_by_user_id: z.string().describe("ID of the user who published this version"),
11220
- created_at: z.string().describe("When the version was published (ISO-8601)")
11320
+ created_at: z.string().describe("When the version was published (ISO-8601)"),
11321
+ trigger: WorkflowVersionTriggerConfigSchema.nullable().describe(
11322
+ "Trigger configuration persisted on this version, or null for webhook-only workflows."
11323
+ ),
11324
+ connections: z.record(z.string(), ConnectionBindingSchema).nullable().describe("Connection aliases bound on this version (or null)."),
11325
+ app_versions: z.record(z.string(), AppVersionBindingSchema).nullable().describe("App-version pins bound on this version (or null).")
11221
11326
  });
11222
11327
  var GetWorkflowOptionsSchema = z.object({
11223
11328
  workflow: z.string().uuid().describe("Durable workflow ID")
@@ -11232,9 +11337,16 @@ var GetWorkflowResponseSchema = z.object({
11232
11337
  "Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
11233
11338
  ),
11234
11339
  enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
11340
+ is_private: z.boolean().describe(
11341
+ "Whether the workflow is private to the creating user. False means account-visible."
11342
+ ),
11343
+ created_by_user_id: z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
11235
11344
  current_version: WorkflowVersionSchema.optional().describe(
11236
11345
  "The currently published version, if any. Absent for workflows with no version published yet."
11237
11346
  ),
11347
+ triggers: z.array(WorkflowTriggerSchema).describe(
11348
+ "Trigger configurations from the current version, with live claim status. Empty array when the workflow has no triggers."
11349
+ ),
11238
11350
  created_at: z.string().describe("When the workflow was created (ISO-8601)"),
11239
11351
  updated_at: z.string().describe("When the workflow was last modified (ISO-8601)")
11240
11352
  });
@@ -11330,6 +11442,10 @@ var UpdateWorkflowResponseSchema = z.object({
11330
11442
  "Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
11331
11443
  ),
11332
11444
  enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
11445
+ is_private: z.boolean().describe(
11446
+ "Whether the workflow is private to the creating user. False means account-visible."
11447
+ ),
11448
+ created_by_user_id: z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
11333
11449
  created_at: z.string().describe("When the workflow was created (ISO-8601)"),
11334
11450
  updated_at: z.string().describe("When this update was applied (ISO-8601)")
11335
11451
  });
@@ -11596,7 +11712,9 @@ var ExecutionSummarySchema = z.object({
11596
11712
  code: z.string().describe("Machine-readable error category"),
11597
11713
  title: z.string().describe("Short error label"),
11598
11714
  detail: z.string().nullable().optional().describe("Longer-form error detail, when provided")
11599
- }).passthrough().optional().describe("The most recent error, if the execution has failed once")
11715
+ }).passthrough().nullable().optional().describe(
11716
+ "The most recent error; null when the execution has not errored."
11717
+ )
11600
11718
  }).passthrough().nullable().optional().describe(
11601
11719
  "Aggregate health summary. Null when no attempts have been recorded yet."
11602
11720
  ),
@@ -11663,6 +11781,19 @@ var AppVersionMapEntrySchema = z.object({
11663
11781
  implementation_name: z.string().min(1).describe("Zapier app implementation name (e.g. `SlackCLIAPI`)"),
11664
11782
  version: z.string().optional().describe("Pinned app version (e.g. `1.27.1`). Latest if omitted.")
11665
11783
  });
11784
+ var RunNotificationEventSchema = z.enum(["started", "progress", "completed", "error", "cancelled"]).describe("Run lifecycle event this notification subscribes to");
11785
+ var RunNotificationSchema = z.object({
11786
+ type: z.literal("webhook").optional().describe("Notification transport. Webhook is the only supported type."),
11787
+ url: z.string().url().describe(
11788
+ "URL to POST event notifications to. Payload is `{run_id, event}`."
11789
+ ),
11790
+ max_retries: z.number().int().min(0).max(10).optional().describe(
11791
+ "Max delivery attempts with exponential backoff. Defaults to 3 server-side."
11792
+ ),
11793
+ events: z.array(RunNotificationEventSchema).min(1).describe("One or more lifecycle events to subscribe this URL to.")
11794
+ }).describe(
11795
+ "Webhook subscriber for run lifecycle events. Server POSTs `{run_id, event}` on each subscribed transition."
11796
+ );
11666
11797
  var RunDurableOptionsSchema = z.object({
11667
11798
  source_files: z.record(z.string(), z.string()).refine((files) => Object.keys(files).length > 0, {
11668
11799
  message: "source_files must contain at least one file"
@@ -11678,7 +11809,10 @@ var RunDurableOptionsSchema = z.object({
11678
11809
  app_versions: z.record(z.string(), AppVersionMapEntrySchema).optional().describe(
11679
11810
  "Pinned app versions. Maps app keys (slugs) to implementation names and versions."
11680
11811
  ),
11681
- private: z.boolean().optional().describe("Only the creating user can see the run (default false)")
11812
+ private: z.boolean().optional().describe("Only the creating user can see the run (default false)"),
11813
+ notifications: z.array(RunNotificationSchema).optional().describe(
11814
+ "Webhook subscribers for run lifecycle events. Each entry specifies a URL and the events it subscribes to."
11815
+ )
11682
11816
  }).describe(
11683
11817
  "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."
11684
11818
  );
@@ -11724,6 +11858,9 @@ var runDurablePlugin = definePlugin(
11724
11858
  if (options.private !== void 0) {
11725
11859
  body.is_private = options.private;
11726
11860
  }
11861
+ if (options.notifications !== void 0) {
11862
+ body.notifications = options.notifications;
11863
+ }
11727
11864
  const raw = await sdk2.context.api.post(
11728
11865
  "/sdkdurableapi/api/v0/runs",
11729
11866
  body,
@@ -11771,34 +11908,6 @@ var cancelDurableRunPlugin = definePlugin(
11771
11908
  }
11772
11909
  })
11773
11910
  );
11774
- var CONNECTION_ID_PATTERN = /^([1-9][0-9]*|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
11775
- var ConnectionBindingSchema = z.object({
11776
- connection_id: z.union([
11777
- z.number().int().positive(),
11778
- z.string().regex(
11779
- CONNECTION_ID_PATTERN,
11780
- "connection_id must be a positive integer string or UUID"
11781
- )
11782
- ]).describe(
11783
- "Zapier connection ID. Positive integer (legacy) or UUID string (newer)."
11784
- )
11785
- }).describe(
11786
- "Connection binding: maps a single alias to a concrete connection."
11787
- );
11788
- var AppVersionBindingSchema = z.object({
11789
- implementation_name: z.string().describe("App implementation identifier (e.g. 'SlackCLIAPI')"),
11790
- version: z.string().optional().describe("App implementation version (e.g. '1.27.1')")
11791
- }).describe("App-version binding: maps a single alias to an app version.");
11792
- var TriggerConfigSchema = z.object({
11793
- selected_api: z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
11794
- action: z.string().describe("Trigger action key (e.g. 'new_row')"),
11795
- authentication_id: z.string().nullish().describe(
11796
- "Connection ID for the trigger source. Omit or pass null for no-auth triggers (e.g. Schedule by Zapier)."
11797
- ),
11798
- params: z.record(z.string(), z.unknown()).optional().describe("Trigger parameters as a JSON object")
11799
- }).describe(
11800
- "Zapier trigger configuration. When set, the workflow subscribes to trigger events."
11801
- );
11802
11911
  var PublishWorkflowVersionOptionsSchema = z.object({
11803
11912
  workflow: z.string().uuid().describe("Durable workflow ID"),
11804
11913
  source_files: z.record(z.string(), z.string()).refine((files) => Object.keys(files).length > 0, {
@@ -11817,7 +11926,7 @@ var PublishWorkflowVersionOptionsSchema = z.object({
11817
11926
  app_versions: z.record(z.string(), AppVersionBindingSchema).nullish().describe(
11818
11927
  "Map of app keys to pinned app implementation/version used by the workflow. Pass `null` to clear an existing binding."
11819
11928
  ),
11820
- trigger: TriggerConfigSchema.optional().describe(
11929
+ trigger: WorkflowVersionTriggerConfigSchema.optional().describe(
11821
11930
  "Trigger configuration. When provided, the workflow subscribes to a Zapier trigger; omit for webhook-only workflows."
11822
11931
  )
11823
11932
  }).describe(
@@ -11832,7 +11941,12 @@ var PublishWorkflowVersionResponseSchema = z.object({
11832
11941
  ),
11833
11942
  dependencies: z.record(z.string(), z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
11834
11943
  created_by_user_id: z.string().describe("ID of the user who published this version"),
11835
- created_at: z.string().describe("When the version was published (ISO-8601)")
11944
+ created_at: z.string().describe("When the version was published (ISO-8601)"),
11945
+ trigger: WorkflowVersionTriggerConfigSchema.nullable().describe(
11946
+ "Trigger configuration persisted on this version, or null for webhook-only workflows."
11947
+ ),
11948
+ connections: z.record(z.string(), ConnectionBindingSchema).nullable().describe("Connection aliases bound on this version (or null)."),
11949
+ app_versions: z.record(z.string(), AppVersionBindingSchema).nullable().describe("App-version pins bound on this version (or null).")
11836
11950
  });
11837
11951
 
11838
11952
  // src/plugins/codeSubstrate/publishWorkflowVersion/index.ts
@@ -11888,7 +12002,12 @@ var WorkflowVersionListItemSchema = z.object({
11888
12002
  ),
11889
12003
  dependencies: z.record(z.string(), z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
11890
12004
  created_by_user_id: z.string().describe("ID of the user who published this version"),
11891
- created_at: z.string().describe("When the version was published (ISO-8601)")
12005
+ created_at: z.string().describe("When the version was published (ISO-8601)"),
12006
+ trigger: WorkflowVersionTriggerConfigSchema.nullable().describe(
12007
+ "Trigger configuration persisted on this version, or null for webhook-only workflows."
12008
+ ),
12009
+ connections: z.record(z.string(), ConnectionBindingSchema).nullable().describe("Connection aliases bound on this version (or null)."),
12010
+ app_versions: z.record(z.string(), AppVersionBindingSchema).nullable().describe("App-version pins bound on this version (or null).")
11892
12011
  });
11893
12012
  var ListWorkflowVersionsOptionsSchema = z.object({
11894
12013
  workflow: z.string().uuid().describe("Durable workflow ID"),
@@ -11956,7 +12075,12 @@ var GetWorkflowVersionResponseSchema = z.object({
11956
12075
  ),
11957
12076
  dependencies: z.record(z.string(), z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
11958
12077
  created_by_user_id: z.string().describe("ID of the user who published this version"),
11959
- created_at: z.string().describe("When the version was published (ISO-8601)")
12078
+ created_at: z.string().describe("When the version was published (ISO-8601)"),
12079
+ trigger: WorkflowVersionTriggerConfigSchema.nullable().describe(
12080
+ "Trigger configuration persisted on this version, or null for webhook-only workflows."
12081
+ ),
12082
+ connections: z.record(z.string(), ConnectionBindingSchema).nullable().describe("Connection aliases bound on this version (or null)."),
12083
+ app_versions: z.record(z.string(), AppVersionBindingSchema).nullable().describe("App-version pins bound on this version (or null).")
11960
12084
  });
11961
12085
 
11962
12086
  // src/plugins/codeSubstrate/getWorkflowVersion/index.ts
@@ -12393,4 +12517,4 @@ function createZapierSdk2(options = {}) {
12393
12517
  return withDeprecatedAddPlugin(createZapierSdkStack2(options).toSdk());
12394
12518
  }
12395
12519
 
12396
- export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, CORE_ERROR_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreErrorCode, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, addPlugin, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createCorePlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierCoreStack, createZapierSdk2 as createZapierSdk, createZapierSdkStack2 as createZapierSdkStack, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreError, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation2 as logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings2 as resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runInMethodScope, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError };
12520
+ export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, CORE_ERROR_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreErrorCode, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, addPlugin, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createCorePlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierCoreStack, createZapierSdk2 as createZapierSdk, createZapierSdkStack2 as createZapierSdkStack, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreError, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation2 as logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings2 as resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runInMethodScope, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError };
@@ -3087,6 +3087,8 @@ type BaseSdkOptions = z.infer<typeof BaseSdkOptionsSchema>;
3087
3087
  * These interfaces correspond to the Avro schemas:
3088
3088
  * - application_lifecycle_event.avsc
3089
3089
  * - error_occurred_event.avsc
3090
+ * - method_called_event.avsc
3091
+ * - cli_command_executed_event.avsc
3090
3092
  */
3091
3093
  interface BaseEvent {
3092
3094
  event_id: string;
@@ -3126,6 +3128,7 @@ interface ErrorOccurredEvent extends BaseEvent {
3126
3128
  recovery_successful?: boolean | null;
3127
3129
  environment?: string | null;
3128
3130
  execution_time_before_error_ms?: number | null;
3131
+ agent?: string | null;
3129
3132
  }
3130
3133
  interface ApplicationLifecycleEvent extends BaseEvent {
3131
3134
  lifecycle_event_type: "startup" | "exit" | "signal_termination" | "signup_success" | "login_success";
@@ -3153,6 +3156,9 @@ interface ApplicationLifecycleEvent extends BaseEvent {
3153
3156
  is_graceful_shutdown?: boolean | null;
3154
3157
  shutdown_duration_ms?: number | null;
3155
3158
  active_requests_count?: number | null;
3159
+ stdin_is_tty?: boolean | null;
3160
+ stdout_is_tty?: boolean | null;
3161
+ agent?: string | null;
3156
3162
  }
3157
3163
  interface MethodCalledEvent extends BaseEvent {
3158
3164
  method_name: string;
@@ -3182,6 +3188,7 @@ interface MethodCalledEvent extends BaseEvent {
3182
3188
  is_synchronous: boolean | null;
3183
3189
  cpu_time_ms: number | null;
3184
3190
  memory_usage_bytes: number | null;
3191
+ agent: string | null;
3185
3192
  }
3186
3193
 
3187
3194
  /**
@@ -3324,6 +3331,60 @@ declare function getMemoryUsage(): number | null;
3324
3331
  * Get CPU time in milliseconds
3325
3332
  */
3326
3333
  declare function getCpuTime(): number | null;
3334
+ /**
3335
+ * Whether stdin and stdout are each attached to an interactive terminal (TTY).
3336
+ * Both fields resolve to null together when process is unavailable.
3337
+ *
3338
+ * Never throws — try/catch guards event emission from monkeypatched streams or
3339
+ * other exotic environments.
3340
+ */
3341
+ declare function getTtyContext(): {
3342
+ stdin_is_tty: boolean | null;
3343
+ stdout_is_tty: boolean | null;
3344
+ };
3345
+ /**
3346
+ * Detects which AI coding agent is executing the current process by inspecting
3347
+ * well-known environment variables set by each agent's runtime.
3348
+ *
3349
+ * Claude Code
3350
+ * CLAUDECODE — set to "1" in all subprocesses spawned by Claude Code
3351
+ * https://code.claude.com/docs/en/env-vars
3352
+ *
3353
+ * GitHub Copilot
3354
+ * COPILOT_AGENT — set to "1" in VS Code agent terminal sessions
3355
+ * https://github.com/microsoft/vscode/pull/316267
3356
+ *
3357
+ * Cursor
3358
+ * CURSOR_AGENT — set to "1" by Cursor when executing terminal commands
3359
+ * https://cursor.com/docs/agent/tools/terminal
3360
+ *
3361
+ * Codex CLI
3362
+ * CODEX_SANDBOX — set to "seatbelt" (macOS) or a non-empty string (Linux/Windows)
3363
+ * https://github.com/openai/codex/blob/main/codex-rs/core/src/spawn.rs
3364
+ *
3365
+ * Gemini CLI
3366
+ * GEMINI_CLI — set to "1" in subprocesses spawned by Gemini CLI's shell tool
3367
+ * https://github.com/google-gemini/gemini-cli/blob/main/packages/core/src/services/shellExecutionService.ts
3368
+ *
3369
+ * Augment
3370
+ * AUGMENT_AGENT — set to "1" when Auggie executes shell commands via its launch-process tool
3371
+ * https://docs.augmentcode.com/cli/reference
3372
+ *
3373
+ * Cline
3374
+ * CLINE_ACTIVE — set to "true" when Cline is executing terminal commands
3375
+ * https://github.com/cline/cline/pull/5367
3376
+ *
3377
+ * OpenCode
3378
+ * OPENCODE_CLIENT — client identifier set by OpenCode (defaults to "cli")
3379
+ * https://anomalyco-opencode.mintlify.app/cli/overview#environment-variables
3380
+ *
3381
+ * Returns null if no known agent is detected or process is unavailable.
3382
+ *
3383
+ * Never throws: try/catch guards against exotic environments (e.g. a Proxy on
3384
+ * globalThis.process) where property access could unexpectedly fail. Event
3385
+ * emission must never cascade into a thrown exception.
3386
+ */
3387
+ declare function getAgent(): string | null;
3327
3388
 
3328
3389
  /**
3329
3390
  * Removes all registered process event listeners.
@@ -7469,7 +7530,16 @@ declare const listWorkflowsPlugin: (sdk: {
7469
7530
  description: string | null;
7470
7531
  trigger_url: string;
7471
7532
  enabled: boolean;
7533
+ is_private: boolean;
7534
+ created_by_user_id: string | null;
7472
7535
  current_version_id: string | null;
7536
+ triggers: {
7537
+ selected_api: string;
7538
+ action: string;
7539
+ status: "pending" | "active" | "unclaimed" | "releasing" | "released" | "failed";
7540
+ authentication_id?: string | null | undefined;
7541
+ params?: Record<string, unknown> | undefined;
7542
+ }[];
7473
7543
  created_at: string;
7474
7544
  updated_at: string;
7475
7545
  }>;
@@ -7488,7 +7558,23 @@ declare const WorkflowItemSchema: z.ZodObject<{
7488
7558
  description: z.ZodNullable<z.ZodString>;
7489
7559
  trigger_url: z.ZodString;
7490
7560
  enabled: z.ZodBoolean;
7561
+ is_private: z.ZodBoolean;
7562
+ created_by_user_id: z.ZodNullable<z.ZodString>;
7491
7563
  current_version_id: z.ZodNullable<z.ZodString>;
7564
+ triggers: z.ZodArray<z.ZodObject<{
7565
+ selected_api: z.ZodString;
7566
+ action: z.ZodString;
7567
+ authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7568
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7569
+ status: z.ZodEnum<{
7570
+ pending: "pending";
7571
+ active: "active";
7572
+ unclaimed: "unclaimed";
7573
+ releasing: "releasing";
7574
+ released: "released";
7575
+ failed: "failed";
7576
+ }>;
7577
+ }, z.core.$strip>>;
7492
7578
  created_at: z.ZodString;
7493
7579
  updated_at: z.ZodString;
7494
7580
  }, z.core.$strip>;
@@ -7554,10 +7640,10 @@ type ListDurableRunsPluginProvides = ReturnType<typeof listDurableRunsPlugin>;
7554
7640
  declare const RunItemSchema: z.ZodObject<{
7555
7641
  id: z.ZodString;
7556
7642
  status: z.ZodUnion<readonly [z.ZodEnum<{
7643
+ failed: "failed";
7557
7644
  initialized: "initialized";
7558
7645
  started: "started";
7559
7646
  finished: "finished";
7560
- failed: "failed";
7561
7647
  cancelled: "cancelled";
7562
7648
  }>, z.ZodString]>;
7563
7649
  input: z.ZodUnknown;
@@ -7608,7 +7694,16 @@ declare const listWorkflowVersionsPlugin: (sdk: {
7608
7694
  description: string | null;
7609
7695
  trigger_url: string;
7610
7696
  enabled: boolean;
7697
+ is_private: boolean;
7698
+ created_by_user_id: string | null;
7611
7699
  current_version_id: string | null;
7700
+ triggers: {
7701
+ selected_api: string;
7702
+ action: string;
7703
+ status: "pending" | "active" | "unclaimed" | "releasing" | "released" | "failed";
7704
+ authentication_id?: string | null | undefined;
7705
+ params?: Record<string, unknown> | undefined;
7706
+ }[];
7612
7707
  created_at: string;
7613
7708
  updated_at: string;
7614
7709
  }>;
@@ -7639,6 +7734,19 @@ declare const listWorkflowVersionsPlugin: (sdk: {
7639
7734
  dependencies: Record<string, string> | null;
7640
7735
  created_by_user_id: string;
7641
7736
  created_at: string;
7737
+ trigger: {
7738
+ selected_api: string;
7739
+ action: string;
7740
+ authentication_id?: string | null | undefined;
7741
+ params?: Record<string, unknown> | undefined;
7742
+ } | null;
7743
+ connections: Record<string, {
7744
+ connection_id: string | number;
7745
+ }> | null;
7746
+ app_versions: Record<string, {
7747
+ implementation_name: string;
7748
+ version?: string | undefined;
7749
+ }> | null;
7642
7750
  }>;
7643
7751
  } & {
7644
7752
  context: {
@@ -7656,6 +7764,19 @@ declare const WorkflowVersionListItemSchema: z.ZodObject<{
7656
7764
  dependencies: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
7657
7765
  created_by_user_id: z.ZodString;
7658
7766
  created_at: z.ZodString;
7767
+ trigger: z.ZodNullable<z.ZodObject<{
7768
+ selected_api: z.ZodString;
7769
+ action: z.ZodString;
7770
+ authentication_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7771
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7772
+ }, z.core.$strip>>;
7773
+ connections: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
7774
+ connection_id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodString]>;
7775
+ }, z.core.$strip>>>;
7776
+ app_versions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
7777
+ implementation_name: z.ZodString;
7778
+ version: z.ZodOptional<z.ZodString>;
7779
+ }, z.core.$strip>>>;
7659
7780
  }, z.core.$strip>;
7660
7781
  type WorkflowVersionListItem = z.infer<typeof WorkflowVersionListItemSchema>;
7661
7782
 
@@ -7696,7 +7817,16 @@ declare const listWorkflowRunsPlugin: (sdk: {
7696
7817
  description: string | null;
7697
7818
  trigger_url: string;
7698
7819
  enabled: boolean;
7820
+ is_private: boolean;
7821
+ created_by_user_id: string | null;
7699
7822
  current_version_id: string | null;
7823
+ triggers: {
7824
+ selected_api: string;
7825
+ action: string;
7826
+ status: "pending" | "active" | "unclaimed" | "releasing" | "released" | "failed";
7827
+ authentication_id?: string | null | undefined;
7828
+ params?: Record<string, unknown> | undefined;
7829
+ }[];
7700
7830
  created_at: string;
7701
7831
  updated_at: string;
7702
7832
  }>;
@@ -7747,10 +7877,10 @@ declare const WorkflowRunListItemSchema: z.ZodObject<{
7747
7877
  durable_run_id: z.ZodNullable<z.ZodString>;
7748
7878
  workflow_version_id: z.ZodNullable<z.ZodString>;
7749
7879
  status: z.ZodUnion<readonly [z.ZodEnum<{
7880
+ failed: "failed";
7750
7881
  initialized: "initialized";
7751
7882
  started: "started";
7752
7883
  finished: "finished";
7753
- failed: "failed";
7754
7884
  cancelled: "cancelled";
7755
7885
  }>, z.ZodString]>;
7756
7886
  input: z.ZodUnknown;
@@ -15267,4 +15397,4 @@ declare const registryPlugin: (sdk: {
15267
15397
  };
15268
15398
  }) => {};
15269
15399
 
15270
- export { createFunction as $, type ApiClient as A, type BaseSdkOptions as B, type CoreOptions as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type Choice as H, type ActionExecutionResult as I, type ActionField as J, type ActionFieldChoice as K, type LeasedTriggerMessageItem as L, type MethodHooks as M, type Need as N, type OutputFormatter as O, type PluginStack as P, type NeedsRequest as Q, type ResolvedAppLocator as R, type NeedsResponse as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type Connection as V, type WatchTriggerInboxOptions as W, type ConnectionsResponse as X, type UserProfile as Y, type ZapierSdkOptions as Z, isPositional as _, type PluginMeta as a, ActionPropertySchema as a$, createPluginStack as a0, createCorePlugin as a1, addPlugin as a2, type FormattedItem as a3, type Resolver as a4, type ArrayResolver as a5, type ResolverMetadata as a6, type StaticResolver as a7, type DynamicListResolver as a8, type DynamicSearchResolver as a9, definePlugin as aA, createPluginMethod as aB, createPaginatedPluginMethod as aC, composePlugins as aD, type ActionItem as aE, type ActionTypeItem as aF, registryPlugin as aG, type RequestOptions as aH, type PollOptions as aI, createZapierApi as aJ, getOrCreateApiClient as aK, isPermanentHttpError as aL, type SseMessage as aM, type JsonSseMessage as aN, type AppItem as aO, type ConnectionItem as aP, type ActionItem$1 as aQ, type InputFieldItem as aR, type InfoFieldItem as aS, type RootFieldItem as aT, type UserProfileItem as aU, type SdkPage as aV, type PaginatedSdkFunction as aW, AppKeyPropertySchema as aX, AppPropertySchema as aY, ActionTypePropertySchema as aZ, ActionKeyPropertySchema as a_, type FieldsResolver as aa, runInMethodScope as ab, runWithTelemetryContext as ac, toSnakeCase as ad, toTitleCase as ae, batch as af, type BatchOptions as ag, buildCapabilityMessage as ah, logDeprecation as ai, resetDeprecationWarnings as aj, RelayRequestSchema as ak, RelayFetchSchema as al, createZapierSdkWithoutRegistry as am, createSdk as an, createOptionsPlugin as ao, createZapierCoreStack as ap, type FunctionRegistryEntry as aq, type FunctionDeprecation as ar, BaseSdkOptionsSchema as as, isCoreError as at, getCoreErrorCode as au, getCoreErrorCause as av, CORE_ERROR_SYMBOL as aw, CoreErrorCode as ax, type Plugin as ay, type PluginProvides as az, type Manifest as b, ZapierTimeoutError as b$, InputFieldPropertySchema as b0, ConnectionIdPropertySchema as b1, AuthenticationIdPropertySchema as b2, ConnectionPropertySchema as b3, InputsPropertySchema as b4, LimitPropertySchema as b5, OffsetPropertySchema as b6, OutputPropertySchema as b7, DebugPropertySchema as b8, ParamsPropertySchema as b9, type DebugProperty as bA, type ParamsProperty as bB, type ActionTimeoutMsProperty as bC, type TableProperty as bD, type RecordProperty as bE, type RecordsProperty as bF, type FieldsProperty as bG, type AppsProperty as bH, type TablesProperty as bI, type ConnectionsProperty as bJ, type TriggerInboxProperty as bK, type TriggerInboxNameProperty as bL, type LeaseProperty as bM, type LeaseSecondsProperty as bN, type LeaseLimitProperty as bO, type ErrorOptions as bP, ZapierError as bQ, ZapierValidationError as bR, ZapierUnknownError as bS, ZapierAuthenticationError as bT, zapierAdaptError as bU, ZapierApiError as bV, ZapierAppNotFoundError as bW, ZapierNotFoundError as bX, ZapierResourceNotFoundError as bY, ZapierConfigurationError as bZ, ZapierBundleError as b_, ActionTimeoutMsPropertySchema as ba, TablePropertySchema as bb, RecordPropertySchema as bc, RecordsPropertySchema as bd, FieldsPropertySchema as be, AppsPropertySchema as bf, TablesPropertySchema as bg, ConnectionsPropertySchema as bh, TriggerInboxPropertySchema as bi, TriggerInboxNamePropertySchema as bj, LeasePropertySchema as bk, LeaseSecondsPropertySchema as bl, LeaseLimitPropertySchema as bm, type AppKeyProperty as bn, type AppProperty as bo, type ActionTypeProperty as bp, type ActionKeyProperty as bq, type ActionProperty as br, type InputFieldProperty as bs, type ConnectionIdProperty as bt, type ConnectionProperty as bu, type AuthenticationIdProperty as bv, type InputsProperty as bw, type LimitProperty as bx, type OffsetProperty as by, type OutputProperty as bz, type UpdateManifestEntryResult as c, actionKeyResolver as c$, ZapierActionError as c0, ZapierConflictError as c1, type RateLimitInfo as c2, ZapierRateLimitError as c3, type ApprovalStatus as c4, ZapierApprovalError as c5, ZapierRelayError as c6, formatErrorMessage as c7, type ApiError as c8, ZapierSignal as c9, getActionPlugin as cA, type GetActionPluginProvides as cB, getConnectionPlugin as cC, type GetConnectionPluginProvides as cD, findFirstConnectionPlugin as cE, type FindFirstConnectionPluginProvides as cF, findUniqueConnectionPlugin as cG, type FindUniqueConnectionPluginProvides as cH, CONTEXT_CACHE_TTL_MS as cI, CONTEXT_CACHE_MAX_SIZE as cJ, runActionPlugin as cK, type RunActionPluginProvides as cL, requestPlugin as cM, type RequestPluginProvides as cN, type ManifestPluginOptions as cO, getPreferredManifestEntryKey as cP, manifestPlugin as cQ, type ManifestPluginProvides as cR, DEFAULT_CONFIG_PATH as cS, type ManifestEntry as cT, getProfilePlugin as cU, type GetProfilePluginProvides as cV, type ApiPluginOptions as cW, apiPlugin as cX, type ApiPluginProvides as cY, appKeyResolver as cZ, actionTypeResolver as c_, appsPlugin as ca, type AppsPluginProvides as cb, type ActionExecutionOptions as cc, type AppFactoryInput as cd, fetchPlugin as ce, type FetchPluginProvides as cf, listAppsPlugin as cg, type ListAppsPluginProvides as ch, listActionsPlugin as ci, type ListActionsPluginProvides as cj, listActionInputFieldsPlugin as ck, type ListActionInputFieldsPluginProvides as cl, listActionInputFieldChoicesPlugin as cm, type ListActionInputFieldChoicesPluginProvides as cn, getActionInputFieldsSchemaPlugin as co, type GetActionInputFieldsSchemaPluginProvides as cp, listConnectionsPlugin as cq, type ListConnectionsPluginProvides as cr, listClientCredentialsPlugin as cs, type ListClientCredentialsPluginProvides as ct, createClientCredentialsPlugin as cu, type CreateClientCredentialsPluginProvides as cv, deleteClientCredentialsPlugin as cw, type DeleteClientCredentialsPluginProvides as cx, getAppPlugin as cy, type GetAppPluginProvides as cz, type AddActionEntryOptions as d, type ConnectionEntry as d$, connectionIdResolver as d0, connectionIdGenericResolver as d1, inputsResolver as d2, inputsAllOptionalResolver as d3, inputFieldKeyResolver as d4, clientCredentialsNameResolver as d5, clientIdResolver as d6, tableIdResolver as d7, triggerInboxResolver as d8, workflowIdResolver as d9, type SdkEvent as dA, type AuthEvent as dB, type ApiEvent as dC, type LoadingEvent as dD, type EventCallback as dE, type Credentials as dF, type ResolvedCredentials as dG, type CredentialsObject as dH, type ClientCredentialsObject as dI, type PkceCredentialsObject as dJ, isClientCredentials as dK, isPkceCredentials as dL, isCredentialsObject as dM, isCredentialsFunction as dN, type ResolveCredentialsOptions as dO, resolveCredentialsFromEnv as dP, resolveCredentials as dQ, getBaseUrlFromCredentials as dR, getClientIdFromCredentials as dS, ClientCredentialsObjectSchema as dT, PkceCredentialsObjectSchema as dU, CredentialsObjectSchema as dV, ResolvedCredentialsSchema as dW, CredentialsFunctionSchema as dX, type CredentialsFunction as dY, CredentialsSchema as dZ, ConnectionEntrySchema as d_, durableRunIdResolver as da, workflowVersionIdResolver as db, workflowRunIdResolver as dc, triggerMessagesResolver as dd, tableRecordIdResolver as de, tableRecordIdsResolver as df, tableFieldIdsResolver as dg, tableNameResolver as dh, tableFieldsResolver as di, tableRecordsResolver as dj, tableUpdateRecordsResolver as dk, tableFiltersResolver as dl, tableSortResolver as dm, type ResolveAuthTokenOptions as dn, clearTokenCache as dp, invalidateCachedToken as dq, injectCliLogin as dr, isCliLoginAvailable as ds, getTokenFromCliLogin as dt, resolveAuthToken as du, invalidateCredentialsToken as dv, type ZapierCache as dw, type ZapierCacheEntry as dx, type ZapierCacheSetOptions as dy, createMemoryCache as dz, type AddActionEntryResult as e, getCiPlatform as e$, ConnectionsMapSchema as e0, type ConnectionsMap as e1, connectionsPlugin as e2, type ConnectionsPluginProvides as e3, ZAPIER_BASE_URL as e4, getZapierSdkService as e5, MAX_PAGE_LIMIT as e6, DEFAULT_PAGE_SIZE as e7, DEFAULT_ACTION_TIMEOUT_MS as e8, ZAPIER_MAX_NETWORK_RETRIES as e9, createTableRecordsPlugin as eA, type CreateTableRecordsPluginProvides as eB, deleteTableRecordsPlugin as eC, type DeleteTableRecordsPluginProvides as eD, updateTableRecordsPlugin as eE, type UpdateTableRecordsPluginProvides as eF, cleanupEventListeners as eG, type EventEmissionConfig as eH, eventEmissionPlugin as eI, type EventEmissionProvides as eJ, type EventContext as eK, type ApplicationLifecycleEventData as eL, type EnhancedErrorEventData as eM, type MethodCalledEventData as eN, buildApplicationLifecycleEvent as eO, buildErrorEventWithContext as eP, buildErrorEvent as eQ, createBaseEvent as eR, buildMethodCalledEvent as eS, type BaseEvent as eT, type MethodCalledEvent as eU, generateEventId as eV, getCurrentTimestamp as eW, getReleaseId as eX, getOsInfo as eY, getPlatformVersions as eZ, isCi as e_, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ea, MAX_CONCURRENCY_LIMIT as eb, parseConcurrencyEnvVar as ec, ZAPIER_MAX_CONCURRENT_REQUESTS as ed, getZapierApprovalMode as ee, getZapierDefaultApprovalMode as ef, DEFAULT_APPROVAL_TIMEOUT_MS as eg, DEFAULT_MAX_APPROVAL_RETRIES as eh, listTablesPlugin as ei, type ListTablesPluginProvides as ej, getTablePlugin as ek, type GetTablePluginProvides as el, createTablePlugin as em, type CreateTablePluginProvides as en, deleteTablePlugin as eo, type DeleteTablePluginProvides as ep, listTableFieldsPlugin as eq, type ListTableFieldsPluginProvides as er, createTableFieldsPlugin as es, type CreateTableFieldsPluginProvides as et, deleteTableFieldsPlugin as eu, type DeleteTableFieldsPluginProvides as ev, getTableRecordPlugin as ew, type GetTableRecordPluginProvides as ex, listTableRecordsPlugin as ey, type ListTableRecordsPluginProvides as ez, type ActionEntry as f, getMemoryUsage as f0, getCpuTime as f1, createZapierSdk as f2, createZapierSdkStack as f3, type ZapierSdk as f4, findManifestEntry as g, type CapabilitiesContext as h, type PaginatedSdkResult as i, type PositionalMetadata as j, type ZapierFetchInitOptions as k, type DynamicResolver as l, type ActionProxy as m, type ZapierSdkApps as n, type WithAddPlugin as o, ZapierAbortDrainSignal as p, ZapierReleaseTriggerMessageSignal as q, readManifestFromFile as r, type DrainTriggerInboxCallback as s, type DrainTriggerInboxErrorObserver as t, type ListAuthenticationsPluginProvides as u, type FindFirstAuthenticationPluginProvides as v, type FindUniqueAuthenticationPluginProvides as w, type Action as x, type App as y, type Field as z };
15400
+ export { createFunction as $, type ApiClient as A, type BaseSdkOptions as B, type CoreOptions as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type Choice as H, type ActionExecutionResult as I, type ActionField as J, type ActionFieldChoice as K, type LeasedTriggerMessageItem as L, type MethodHooks as M, type Need as N, type OutputFormatter as O, type PluginStack as P, type NeedsRequest as Q, type ResolvedAppLocator as R, type NeedsResponse as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type Connection as V, type WatchTriggerInboxOptions as W, type ConnectionsResponse as X, type UserProfile as Y, type ZapierSdkOptions as Z, isPositional as _, type PluginMeta as a, ActionPropertySchema as a$, createPluginStack as a0, createCorePlugin as a1, addPlugin as a2, type FormattedItem as a3, type Resolver as a4, type ArrayResolver as a5, type ResolverMetadata as a6, type StaticResolver as a7, type DynamicListResolver as a8, type DynamicSearchResolver as a9, definePlugin as aA, createPluginMethod as aB, createPaginatedPluginMethod as aC, composePlugins as aD, type ActionItem as aE, type ActionTypeItem as aF, registryPlugin as aG, type RequestOptions as aH, type PollOptions as aI, createZapierApi as aJ, getOrCreateApiClient as aK, isPermanentHttpError as aL, type SseMessage as aM, type JsonSseMessage as aN, type AppItem as aO, type ConnectionItem as aP, type ActionItem$1 as aQ, type InputFieldItem as aR, type InfoFieldItem as aS, type RootFieldItem as aT, type UserProfileItem as aU, type SdkPage as aV, type PaginatedSdkFunction as aW, AppKeyPropertySchema as aX, AppPropertySchema as aY, ActionTypePropertySchema as aZ, ActionKeyPropertySchema as a_, type FieldsResolver as aa, runInMethodScope as ab, runWithTelemetryContext as ac, toSnakeCase as ad, toTitleCase as ae, batch as af, type BatchOptions as ag, buildCapabilityMessage as ah, logDeprecation as ai, resetDeprecationWarnings as aj, RelayRequestSchema as ak, RelayFetchSchema as al, createZapierSdkWithoutRegistry as am, createSdk as an, createOptionsPlugin as ao, createZapierCoreStack as ap, type FunctionRegistryEntry as aq, type FunctionDeprecation as ar, BaseSdkOptionsSchema as as, isCoreError as at, getCoreErrorCode as au, getCoreErrorCause as av, CORE_ERROR_SYMBOL as aw, CoreErrorCode as ax, type Plugin as ay, type PluginProvides as az, type Manifest as b, ZapierTimeoutError as b$, InputFieldPropertySchema as b0, ConnectionIdPropertySchema as b1, AuthenticationIdPropertySchema as b2, ConnectionPropertySchema as b3, InputsPropertySchema as b4, LimitPropertySchema as b5, OffsetPropertySchema as b6, OutputPropertySchema as b7, DebugPropertySchema as b8, ParamsPropertySchema as b9, type DebugProperty as bA, type ParamsProperty as bB, type ActionTimeoutMsProperty as bC, type TableProperty as bD, type RecordProperty as bE, type RecordsProperty as bF, type FieldsProperty as bG, type AppsProperty as bH, type TablesProperty as bI, type ConnectionsProperty as bJ, type TriggerInboxProperty as bK, type TriggerInboxNameProperty as bL, type LeaseProperty as bM, type LeaseSecondsProperty as bN, type LeaseLimitProperty as bO, type ErrorOptions as bP, ZapierError as bQ, ZapierValidationError as bR, ZapierUnknownError as bS, ZapierAuthenticationError as bT, zapierAdaptError as bU, ZapierApiError as bV, ZapierAppNotFoundError as bW, ZapierNotFoundError as bX, ZapierResourceNotFoundError as bY, ZapierConfigurationError as bZ, ZapierBundleError as b_, ActionTimeoutMsPropertySchema as ba, TablePropertySchema as bb, RecordPropertySchema as bc, RecordsPropertySchema as bd, FieldsPropertySchema as be, AppsPropertySchema as bf, TablesPropertySchema as bg, ConnectionsPropertySchema as bh, TriggerInboxPropertySchema as bi, TriggerInboxNamePropertySchema as bj, LeasePropertySchema as bk, LeaseSecondsPropertySchema as bl, LeaseLimitPropertySchema as bm, type AppKeyProperty as bn, type AppProperty as bo, type ActionTypeProperty as bp, type ActionKeyProperty as bq, type ActionProperty as br, type InputFieldProperty as bs, type ConnectionIdProperty as bt, type ConnectionProperty as bu, type AuthenticationIdProperty as bv, type InputsProperty as bw, type LimitProperty as bx, type OffsetProperty as by, type OutputProperty as bz, type UpdateManifestEntryResult as c, actionKeyResolver as c$, ZapierActionError as c0, ZapierConflictError as c1, type RateLimitInfo as c2, ZapierRateLimitError as c3, type ApprovalStatus as c4, ZapierApprovalError as c5, ZapierRelayError as c6, formatErrorMessage as c7, type ApiError as c8, ZapierSignal as c9, getActionPlugin as cA, type GetActionPluginProvides as cB, getConnectionPlugin as cC, type GetConnectionPluginProvides as cD, findFirstConnectionPlugin as cE, type FindFirstConnectionPluginProvides as cF, findUniqueConnectionPlugin as cG, type FindUniqueConnectionPluginProvides as cH, CONTEXT_CACHE_TTL_MS as cI, CONTEXT_CACHE_MAX_SIZE as cJ, runActionPlugin as cK, type RunActionPluginProvides as cL, requestPlugin as cM, type RequestPluginProvides as cN, type ManifestPluginOptions as cO, getPreferredManifestEntryKey as cP, manifestPlugin as cQ, type ManifestPluginProvides as cR, DEFAULT_CONFIG_PATH as cS, type ManifestEntry as cT, getProfilePlugin as cU, type GetProfilePluginProvides as cV, type ApiPluginOptions as cW, apiPlugin as cX, type ApiPluginProvides as cY, appKeyResolver as cZ, actionTypeResolver as c_, appsPlugin as ca, type AppsPluginProvides as cb, type ActionExecutionOptions as cc, type AppFactoryInput as cd, fetchPlugin as ce, type FetchPluginProvides as cf, listAppsPlugin as cg, type ListAppsPluginProvides as ch, listActionsPlugin as ci, type ListActionsPluginProvides as cj, listActionInputFieldsPlugin as ck, type ListActionInputFieldsPluginProvides as cl, listActionInputFieldChoicesPlugin as cm, type ListActionInputFieldChoicesPluginProvides as cn, getActionInputFieldsSchemaPlugin as co, type GetActionInputFieldsSchemaPluginProvides as cp, listConnectionsPlugin as cq, type ListConnectionsPluginProvides as cr, listClientCredentialsPlugin as cs, type ListClientCredentialsPluginProvides as ct, createClientCredentialsPlugin as cu, type CreateClientCredentialsPluginProvides as cv, deleteClientCredentialsPlugin as cw, type DeleteClientCredentialsPluginProvides as cx, getAppPlugin as cy, type GetAppPluginProvides as cz, type AddActionEntryOptions as d, type ConnectionEntry as d$, connectionIdResolver as d0, connectionIdGenericResolver as d1, inputsResolver as d2, inputsAllOptionalResolver as d3, inputFieldKeyResolver as d4, clientCredentialsNameResolver as d5, clientIdResolver as d6, tableIdResolver as d7, triggerInboxResolver as d8, workflowIdResolver as d9, type SdkEvent as dA, type AuthEvent as dB, type ApiEvent as dC, type LoadingEvent as dD, type EventCallback as dE, type Credentials as dF, type ResolvedCredentials as dG, type CredentialsObject as dH, type ClientCredentialsObject as dI, type PkceCredentialsObject as dJ, isClientCredentials as dK, isPkceCredentials as dL, isCredentialsObject as dM, isCredentialsFunction as dN, type ResolveCredentialsOptions as dO, resolveCredentialsFromEnv as dP, resolveCredentials as dQ, getBaseUrlFromCredentials as dR, getClientIdFromCredentials as dS, ClientCredentialsObjectSchema as dT, PkceCredentialsObjectSchema as dU, CredentialsObjectSchema as dV, ResolvedCredentialsSchema as dW, CredentialsFunctionSchema as dX, type CredentialsFunction as dY, CredentialsSchema as dZ, ConnectionEntrySchema as d_, durableRunIdResolver as da, workflowVersionIdResolver as db, workflowRunIdResolver as dc, triggerMessagesResolver as dd, tableRecordIdResolver as de, tableRecordIdsResolver as df, tableFieldIdsResolver as dg, tableNameResolver as dh, tableFieldsResolver as di, tableRecordsResolver as dj, tableUpdateRecordsResolver as dk, tableFiltersResolver as dl, tableSortResolver as dm, type ResolveAuthTokenOptions as dn, clearTokenCache as dp, invalidateCachedToken as dq, injectCliLogin as dr, isCliLoginAvailable as ds, getTokenFromCliLogin as dt, resolveAuthToken as du, invalidateCredentialsToken as dv, type ZapierCache as dw, type ZapierCacheEntry as dx, type ZapierCacheSetOptions as dy, createMemoryCache as dz, type AddActionEntryResult as e, getCiPlatform as e$, ConnectionsMapSchema as e0, type ConnectionsMap as e1, connectionsPlugin as e2, type ConnectionsPluginProvides as e3, ZAPIER_BASE_URL as e4, getZapierSdkService as e5, MAX_PAGE_LIMIT as e6, DEFAULT_PAGE_SIZE as e7, DEFAULT_ACTION_TIMEOUT_MS as e8, ZAPIER_MAX_NETWORK_RETRIES as e9, createTableRecordsPlugin as eA, type CreateTableRecordsPluginProvides as eB, deleteTableRecordsPlugin as eC, type DeleteTableRecordsPluginProvides as eD, updateTableRecordsPlugin as eE, type UpdateTableRecordsPluginProvides as eF, cleanupEventListeners as eG, type EventEmissionConfig as eH, eventEmissionPlugin as eI, type EventEmissionProvides as eJ, type EventContext as eK, type ApplicationLifecycleEventData as eL, type EnhancedErrorEventData as eM, type MethodCalledEventData as eN, buildApplicationLifecycleEvent as eO, buildErrorEventWithContext as eP, buildErrorEvent as eQ, createBaseEvent as eR, buildMethodCalledEvent as eS, type BaseEvent as eT, type MethodCalledEvent as eU, generateEventId as eV, getCurrentTimestamp as eW, getReleaseId as eX, getOsInfo as eY, getPlatformVersions as eZ, isCi as e_, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ea, MAX_CONCURRENCY_LIMIT as eb, parseConcurrencyEnvVar as ec, ZAPIER_MAX_CONCURRENT_REQUESTS as ed, getZapierApprovalMode as ee, getZapierDefaultApprovalMode as ef, DEFAULT_APPROVAL_TIMEOUT_MS as eg, DEFAULT_MAX_APPROVAL_RETRIES as eh, listTablesPlugin as ei, type ListTablesPluginProvides as ej, getTablePlugin as ek, type GetTablePluginProvides as el, createTablePlugin as em, type CreateTablePluginProvides as en, deleteTablePlugin as eo, type DeleteTablePluginProvides as ep, listTableFieldsPlugin as eq, type ListTableFieldsPluginProvides as er, createTableFieldsPlugin as es, type CreateTableFieldsPluginProvides as et, deleteTableFieldsPlugin as eu, type DeleteTableFieldsPluginProvides as ev, getTableRecordPlugin as ew, type GetTableRecordPluginProvides as ex, listTableRecordsPlugin as ey, type ListTableRecordsPluginProvides as ez, type ActionEntry as f, getMemoryUsage as f0, getCpuTime as f1, getTtyContext as f2, getAgent as f3, createZapierSdk as f4, createZapierSdkStack as f5, type ZapierSdk as f6, findManifestEntry as g, type CapabilitiesContext as h, type PaginatedSdkResult as i, type PositionalMetadata as j, type ZapierFetchInitOptions as k, type DynamicResolver as l, type ActionProxy as m, type ZapierSdkApps as n, type WithAddPlugin as o, ZapierAbortDrainSignal as p, ZapierReleaseTriggerMessageSignal as q, readManifestFromFile as r, type DrainTriggerInboxCallback as s, type DrainTriggerInboxErrorObserver as t, type ListAuthenticationsPluginProvides as u, type FindFirstAuthenticationPluginProvides as v, type FindUniqueAuthenticationPluginProvides as w, type Action as x, type App as y, type Field as z };