Skip to content

Commit 7af7d12

Browse files
committed
fix: step ref is optional
1 parent 7daefeb commit 7af7d12

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/tools/workflow-steps.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ const createOrUpdateEmailStepInWorkflow = KnockTool({
246246
.describe("(string): The key of the workflow to add the step to."),
247247
stepRef: z
248248
.string()
249+
.optional()
249250
.describe(
250251
"(string): The reference of the step to update. If not provided, a new step will be created."
251252
),
@@ -316,6 +317,7 @@ const createOrUpdateSmsStepInWorkflow = KnockTool({
316317
.describe("(string): The key of the workflow to add the step to."),
317318
stepRef: z
318319
.string()
320+
.optional()
319321
.describe(
320322
"(string): The reference of the step to update. If not provided, a new step will be created."
321323
),
@@ -370,6 +372,7 @@ const createOrUpdatePushStepInWorkflow = KnockTool({
370372
.describe("(string): The key of the workflow to add the step to."),
371373
stepRef: z
372374
.string()
375+
.optional()
373376
.describe(
374377
"(string): The reference of the step to update. If not provided, a new step will be created."
375378
),
@@ -427,6 +430,7 @@ const createOrUpdateInAppFeedStepInWorkflow = KnockTool({
427430
.describe("(string): The key of the workflow to add the step to."),
428431
stepRef: z
429432
.string()
433+
.optional()
430434
.describe(
431435
"(string): The reference of the step to update. If not provided, a new step will be created."
432436
),
@@ -548,6 +552,7 @@ const createOrUpdateDelayStepInWorkflow = KnockTool({
548552
.describe("(string): The key of the workflow to add the step to."),
549553
stepRef: z
550554
.string()
555+
.optional()
551556
.describe(
552557
"(string): The reference of the step to update. If not provided, a new step will be created."
553558
),
@@ -617,6 +622,7 @@ const createOrUpdateBatchStepInWorkflow = KnockTool({
617622
.describe("(string): The key of the workflow to add the step to."),
618623
stepRef: z
619624
.string()
625+
.optional()
620626
.describe(
621627
"(string): The reference of the step to update. If not provided, a new step will be created."
622628
),

0 commit comments

Comments
 (0)