@rudderhq/cli 0.2.6-canary.7 → 0.2.6-canary.8

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/dist/index.js CHANGED
@@ -1768,7 +1768,7 @@ var init_approval = __esm({
1768
1768
 
1769
1769
  // ../packages/shared/dist/validators/automation.js
1770
1770
  import { z as z19 } from "zod";
1771
- var automationBodySchema, requireChatConversationForChatOutput, createAutomationSchema, updateAutomationSchema, baseTriggerSchema, createAutomationTriggerSchema, updateAutomationTriggerSchema, runAutomationSchema, rotateAutomationTriggerSecretSchema;
1771
+ var automationBodySchema, updateAutomationSchema, baseTriggerSchema, createAutomationTriggerSchema, updateAutomationTriggerSchema, runAutomationSchema, rotateAutomationTriggerSecretSchema;
1772
1772
  var init_automation = __esm({
1773
1773
  "../packages/shared/dist/validators/automation.js"() {
1774
1774
  "use strict";
@@ -1788,17 +1788,7 @@ var init_automation = __esm({
1788
1788
  chatConversationId: z19.string().uuid().optional().nullable().default(null),
1789
1789
  allowAssigneeChatMismatch: z19.boolean().optional().default(false)
1790
1790
  });
1791
- requireChatConversationForChatOutput = (value, ctx) => {
1792
- if (value.outputMode === "chat_output" && !value.chatConversationId) {
1793
- ctx.addIssue({
1794
- code: z19.ZodIssueCode.custom,
1795
- message: "chatConversationId is required when outputMode is chat_output",
1796
- path: ["chatConversationId"]
1797
- });
1798
- }
1799
- };
1800
- createAutomationSchema = automationBodySchema.superRefine(requireChatConversationForChatOutput);
1801
- updateAutomationSchema = automationBodySchema.partial().superRefine(requireChatConversationForChatOutput);
1791
+ updateAutomationSchema = automationBodySchema.partial();
1802
1792
  baseTriggerSchema = z19.object({
1803
1793
  label: z19.string().trim().max(120).optional().nullable(),
1804
1794
  enabled: z19.boolean().optional().default(true)