@rudderhq/cli 0.2.7-canary.11 → 0.2.7-canary.13
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 +20 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -747,7 +747,7 @@ var init_resource = __esm({
|
|
|
747
747
|
|
|
748
748
|
// ../packages/shared/dist/validators/chat.js
|
|
749
749
|
import { z as z8 } from "zod";
|
|
750
|
-
var chatConversationStatusSchema, chatIssueCreationModeSchema, chatMessageRoleSchema, chatMessageKindSchema, chatMessageStatusSchema, chatContextEntityTypeSchema, createChatContextLinkSchema, createChatConversationSchema, setChatProjectContextSchema, updateChatConversationSchema, addChatMessageSchema, chatRichReferenceDisplaySchema, chatIssueIdentifierSchema, chatAskUserIdentifierSchema, chatAskUserOptionSchema, chatAskUserQuestionSchema, chatAskUserRequestSchema, chatIssueRichReferenceSchema, chatIssueCommentRichReferenceSchema, chatRichReferenceSchema, chatRichReferencesSchema, createChatAttachmentMetadataSchema, chatIssueProposalSchema, convertChatToIssueSchema, chatOperationProposalSchema, resolveChatOperationProposalSchema, updateChatConversationUserStateSchema;
|
|
750
|
+
var chatConversationStatusSchema, chatIssueCreationModeSchema, chatMessageRoleSchema, chatMessageKindSchema, chatMessageStatusSchema, chatContextEntityTypeSchema, createChatContextLinkSchema, createChatConversationSchema, setChatProjectContextSchema, updateChatConversationSchema, addChatMessageSchema, chatRichReferenceDisplaySchema, chatIssueIdentifierSchema, chatAskUserIdentifierSchema, chatAskUserOptionSchema, chatAskUserQuestionSchema, chatAskUserRequestSchema, chatIssueRichReferenceSchema, chatIssueCommentRichReferenceSchema, chatRichReferenceSchema, chatRichReferencesSchema, chatAutomationCreateSchema, createChatAttachmentMetadataSchema, chatIssueProposalSchema, convertChatToIssueSchema, chatOperationProposalSchema, resolveChatOperationProposalSchema, updateChatConversationUserStateSchema;
|
|
751
751
|
var init_chat = __esm({
|
|
752
752
|
"../packages/shared/dist/validators/chat.js"() {
|
|
753
753
|
"use strict";
|
|
@@ -798,6 +798,7 @@ var init_chat = __esm({
|
|
|
798
798
|
header: z8.string().trim().min(1).max(32).optional(),
|
|
799
799
|
question: z8.string().trim().min(1).max(240),
|
|
800
800
|
options: z8.array(chatAskUserOptionSchema).min(2).max(3),
|
|
801
|
+
selectionMode: z8.enum(["single", "multiple"]).optional(),
|
|
801
802
|
allowFreeform: z8.boolean().optional()
|
|
802
803
|
}).superRefine((question, ctx) => {
|
|
803
804
|
const optionIds = /* @__PURE__ */ new Set();
|
|
@@ -851,6 +852,24 @@ var init_chat = __esm({
|
|
|
851
852
|
chatIssueCommentRichReferenceSchema
|
|
852
853
|
]);
|
|
853
854
|
chatRichReferencesSchema = z8.array(chatRichReferenceSchema).max(5);
|
|
855
|
+
chatAutomationCreateSchema = z8.object({
|
|
856
|
+
title: z8.string().trim().min(1).max(200),
|
|
857
|
+
description: z8.string().trim().max(2e4).optional().nullable(),
|
|
858
|
+
projectId: z8.string().uuid().optional().nullable(),
|
|
859
|
+
goalId: z8.string().uuid().optional().nullable(),
|
|
860
|
+
parentIssueId: z8.string().uuid().optional().nullable(),
|
|
861
|
+
priority: z8.enum(["critical", "high", "medium", "low"]).optional().default("medium"),
|
|
862
|
+
status: z8.enum(AUTOMATION_STATUSES).optional().default("active"),
|
|
863
|
+
concurrencyPolicy: z8.enum(AUTOMATION_CONCURRENCY_POLICIES).optional().default("coalesce_if_active"),
|
|
864
|
+
catchUpPolicy: z8.enum(AUTOMATION_CATCH_UP_POLICIES).optional().default("skip_missed"),
|
|
865
|
+
outputMode: z8.enum(AUTOMATION_OUTPUT_MODES).optional().default("chat_output"),
|
|
866
|
+
schedule: z8.object({
|
|
867
|
+
cronExpression: z8.string().trim().min(1),
|
|
868
|
+
timezone: z8.string().trim().min(1),
|
|
869
|
+
label: z8.string().trim().max(120).optional().nullable(),
|
|
870
|
+
enabled: z8.boolean().optional().default(true)
|
|
871
|
+
})
|
|
872
|
+
});
|
|
854
873
|
createChatAttachmentMetadataSchema = z8.object({
|
|
855
874
|
messageId: z8.string().uuid()
|
|
856
875
|
});
|