@sudajs/cli 0.10.0 → 0.10.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.
package/dist/index.d.ts CHANGED
@@ -86,6 +86,796 @@ declare const activateThemeOutputSchema: z.ZodDiscriminatedUnion<"status", [z.Zo
86
86
  themeKey: string;
87
87
  themeVersion: string | null;
88
88
  }>]>;
89
+ declare const updateContactFormInputSchema: z.ZodObject<{
90
+ projectId: z.ZodString;
91
+ enabled: z.ZodOptional<z.ZodBoolean>;
92
+ title: z.ZodOptional<z.ZodString>;
93
+ successMessage: z.ZodOptional<z.ZodString>;
94
+ submitLabel: z.ZodOptional<z.ZodString>;
95
+ fields: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
96
+ id: z.ZodString;
97
+ type: z.ZodEnum<["text", "textarea", "checkbox", "radio", "select"]>;
98
+ label: z.ZodString;
99
+ placeholder: z.ZodOptional<z.ZodString>;
100
+ required: z.ZodDefault<z.ZodBoolean>;
101
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
102
+ label: z.ZodString;
103
+ value: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ value: string;
106
+ label: string;
107
+ }, {
108
+ value: string;
109
+ label: string;
110
+ }>, "many">>;
111
+ validation: z.ZodDefault<z.ZodObject<{
112
+ format: z.ZodOptional<z.ZodEnum<["email"]>>;
113
+ maxLength: z.ZodOptional<z.ZodNumber>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ format?: "email" | undefined;
116
+ maxLength?: number | undefined;
117
+ }, {
118
+ format?: "email" | undefined;
119
+ maxLength?: number | undefined;
120
+ }>>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ options: {
123
+ value: string;
124
+ label: string;
125
+ }[];
126
+ validation: {
127
+ format?: "email" | undefined;
128
+ maxLength?: number | undefined;
129
+ };
130
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
131
+ label: string;
132
+ id: string;
133
+ required: boolean;
134
+ placeholder?: string | undefined;
135
+ }, {
136
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
137
+ label: string;
138
+ id: string;
139
+ options?: {
140
+ value: string;
141
+ label: string;
142
+ }[] | undefined;
143
+ validation?: {
144
+ format?: "email" | undefined;
145
+ maxLength?: number | undefined;
146
+ } | undefined;
147
+ placeholder?: string | undefined;
148
+ required?: boolean | undefined;
149
+ }>, "many">, {
150
+ options: {
151
+ value: string;
152
+ label: string;
153
+ }[];
154
+ validation: {
155
+ format?: "email" | undefined;
156
+ maxLength?: number | undefined;
157
+ };
158
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
159
+ label: string;
160
+ id: string;
161
+ required: boolean;
162
+ placeholder?: string | undefined;
163
+ }[], {
164
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
165
+ label: string;
166
+ id: string;
167
+ options?: {
168
+ value: string;
169
+ label: string;
170
+ }[] | undefined;
171
+ validation?: {
172
+ format?: "email" | undefined;
173
+ maxLength?: number | undefined;
174
+ } | undefined;
175
+ placeholder?: string | undefined;
176
+ required?: boolean | undefined;
177
+ }[]>>;
178
+ notifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
179
+ id: z.ZodString;
180
+ type: z.ZodEnum<["email", "slack", "wecom", "feishu", "dingtalk"]>;
181
+ enabled: z.ZodDefault<z.ZodBoolean>;
182
+ label: z.ZodString;
183
+ recipients: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
184
+ url: z.ZodOptional<z.ZodString>;
185
+ }, "strip", z.ZodTypeAny, {
186
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
187
+ label: string;
188
+ id: string;
189
+ enabled: boolean;
190
+ recipients: string[];
191
+ url?: string | undefined;
192
+ }, {
193
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
194
+ label: string;
195
+ id: string;
196
+ enabled?: boolean | undefined;
197
+ recipients?: string[] | undefined;
198
+ url?: string | undefined;
199
+ }>, "many">>;
200
+ webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
201
+ id: z.ZodString;
202
+ enabled: z.ZodDefault<z.ZodBoolean>;
203
+ label: z.ZodString;
204
+ url: z.ZodOptional<z.ZodString>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ label: string;
207
+ id: string;
208
+ enabled: boolean;
209
+ url?: string | undefined;
210
+ }, {
211
+ label: string;
212
+ id: string;
213
+ enabled?: boolean | undefined;
214
+ url?: string | undefined;
215
+ }>, "many">>;
216
+ confirm: z.ZodOptional<z.ZodBoolean>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ projectId: string;
219
+ title?: string | undefined;
220
+ enabled?: boolean | undefined;
221
+ successMessage?: string | undefined;
222
+ submitLabel?: string | undefined;
223
+ fields?: {
224
+ options: {
225
+ value: string;
226
+ label: string;
227
+ }[];
228
+ validation: {
229
+ format?: "email" | undefined;
230
+ maxLength?: number | undefined;
231
+ };
232
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
233
+ label: string;
234
+ id: string;
235
+ required: boolean;
236
+ placeholder?: string | undefined;
237
+ }[] | undefined;
238
+ notifications?: {
239
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
240
+ label: string;
241
+ id: string;
242
+ enabled: boolean;
243
+ recipients: string[];
244
+ url?: string | undefined;
245
+ }[] | undefined;
246
+ webhooks?: {
247
+ label: string;
248
+ id: string;
249
+ enabled: boolean;
250
+ url?: string | undefined;
251
+ }[] | undefined;
252
+ confirm?: boolean | undefined;
253
+ }, {
254
+ projectId: string;
255
+ title?: string | undefined;
256
+ enabled?: boolean | undefined;
257
+ successMessage?: string | undefined;
258
+ submitLabel?: string | undefined;
259
+ fields?: {
260
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
261
+ label: string;
262
+ id: string;
263
+ options?: {
264
+ value: string;
265
+ label: string;
266
+ }[] | undefined;
267
+ validation?: {
268
+ format?: "email" | undefined;
269
+ maxLength?: number | undefined;
270
+ } | undefined;
271
+ placeholder?: string | undefined;
272
+ required?: boolean | undefined;
273
+ }[] | undefined;
274
+ notifications?: {
275
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
276
+ label: string;
277
+ id: string;
278
+ enabled?: boolean | undefined;
279
+ recipients?: string[] | undefined;
280
+ url?: string | undefined;
281
+ }[] | undefined;
282
+ webhooks?: {
283
+ label: string;
284
+ id: string;
285
+ enabled?: boolean | undefined;
286
+ url?: string | undefined;
287
+ }[] | undefined;
288
+ confirm?: boolean | undefined;
289
+ }>;
290
+ declare const updateContactFormOutputSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
291
+ status: z.ZodLiteral<"needs_confirmation">;
292
+ projectId: z.ZodString;
293
+ impact: z.ZodString;
294
+ draft: z.ZodObject<Omit<{
295
+ projectId: z.ZodString;
296
+ enabled: z.ZodOptional<z.ZodBoolean>;
297
+ title: z.ZodOptional<z.ZodString>;
298
+ successMessage: z.ZodOptional<z.ZodString>;
299
+ submitLabel: z.ZodOptional<z.ZodString>;
300
+ fields: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
301
+ id: z.ZodString;
302
+ type: z.ZodEnum<["text", "textarea", "checkbox", "radio", "select"]>;
303
+ label: z.ZodString;
304
+ placeholder: z.ZodOptional<z.ZodString>;
305
+ required: z.ZodDefault<z.ZodBoolean>;
306
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
307
+ label: z.ZodString;
308
+ value: z.ZodString;
309
+ }, "strip", z.ZodTypeAny, {
310
+ value: string;
311
+ label: string;
312
+ }, {
313
+ value: string;
314
+ label: string;
315
+ }>, "many">>;
316
+ validation: z.ZodDefault<z.ZodObject<{
317
+ format: z.ZodOptional<z.ZodEnum<["email"]>>;
318
+ maxLength: z.ZodOptional<z.ZodNumber>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ format?: "email" | undefined;
321
+ maxLength?: number | undefined;
322
+ }, {
323
+ format?: "email" | undefined;
324
+ maxLength?: number | undefined;
325
+ }>>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ options: {
328
+ value: string;
329
+ label: string;
330
+ }[];
331
+ validation: {
332
+ format?: "email" | undefined;
333
+ maxLength?: number | undefined;
334
+ };
335
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
336
+ label: string;
337
+ id: string;
338
+ required: boolean;
339
+ placeholder?: string | undefined;
340
+ }, {
341
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
342
+ label: string;
343
+ id: string;
344
+ options?: {
345
+ value: string;
346
+ label: string;
347
+ }[] | undefined;
348
+ validation?: {
349
+ format?: "email" | undefined;
350
+ maxLength?: number | undefined;
351
+ } | undefined;
352
+ placeholder?: string | undefined;
353
+ required?: boolean | undefined;
354
+ }>, "many">, {
355
+ options: {
356
+ value: string;
357
+ label: string;
358
+ }[];
359
+ validation: {
360
+ format?: "email" | undefined;
361
+ maxLength?: number | undefined;
362
+ };
363
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
364
+ label: string;
365
+ id: string;
366
+ required: boolean;
367
+ placeholder?: string | undefined;
368
+ }[], {
369
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
370
+ label: string;
371
+ id: string;
372
+ options?: {
373
+ value: string;
374
+ label: string;
375
+ }[] | undefined;
376
+ validation?: {
377
+ format?: "email" | undefined;
378
+ maxLength?: number | undefined;
379
+ } | undefined;
380
+ placeholder?: string | undefined;
381
+ required?: boolean | undefined;
382
+ }[]>>;
383
+ notifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
384
+ id: z.ZodString;
385
+ type: z.ZodEnum<["email", "slack", "wecom", "feishu", "dingtalk"]>;
386
+ enabled: z.ZodDefault<z.ZodBoolean>;
387
+ label: z.ZodString;
388
+ recipients: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
389
+ url: z.ZodOptional<z.ZodString>;
390
+ }, "strip", z.ZodTypeAny, {
391
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
392
+ label: string;
393
+ id: string;
394
+ enabled: boolean;
395
+ recipients: string[];
396
+ url?: string | undefined;
397
+ }, {
398
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
399
+ label: string;
400
+ id: string;
401
+ enabled?: boolean | undefined;
402
+ recipients?: string[] | undefined;
403
+ url?: string | undefined;
404
+ }>, "many">>;
405
+ webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
406
+ id: z.ZodString;
407
+ enabled: z.ZodDefault<z.ZodBoolean>;
408
+ label: z.ZodString;
409
+ url: z.ZodOptional<z.ZodString>;
410
+ }, "strip", z.ZodTypeAny, {
411
+ label: string;
412
+ id: string;
413
+ enabled: boolean;
414
+ url?: string | undefined;
415
+ }, {
416
+ label: string;
417
+ id: string;
418
+ enabled?: boolean | undefined;
419
+ url?: string | undefined;
420
+ }>, "many">>;
421
+ confirm: z.ZodOptional<z.ZodBoolean>;
422
+ }, "confirm">, "strip", z.ZodTypeAny, {
423
+ projectId: string;
424
+ title?: string | undefined;
425
+ enabled?: boolean | undefined;
426
+ successMessage?: string | undefined;
427
+ submitLabel?: string | undefined;
428
+ fields?: {
429
+ options: {
430
+ value: string;
431
+ label: string;
432
+ }[];
433
+ validation: {
434
+ format?: "email" | undefined;
435
+ maxLength?: number | undefined;
436
+ };
437
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
438
+ label: string;
439
+ id: string;
440
+ required: boolean;
441
+ placeholder?: string | undefined;
442
+ }[] | undefined;
443
+ notifications?: {
444
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
445
+ label: string;
446
+ id: string;
447
+ enabled: boolean;
448
+ recipients: string[];
449
+ url?: string | undefined;
450
+ }[] | undefined;
451
+ webhooks?: {
452
+ label: string;
453
+ id: string;
454
+ enabled: boolean;
455
+ url?: string | undefined;
456
+ }[] | undefined;
457
+ }, {
458
+ projectId: string;
459
+ title?: string | undefined;
460
+ enabled?: boolean | undefined;
461
+ successMessage?: string | undefined;
462
+ submitLabel?: string | undefined;
463
+ fields?: {
464
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
465
+ label: string;
466
+ id: string;
467
+ options?: {
468
+ value: string;
469
+ label: string;
470
+ }[] | undefined;
471
+ validation?: {
472
+ format?: "email" | undefined;
473
+ maxLength?: number | undefined;
474
+ } | undefined;
475
+ placeholder?: string | undefined;
476
+ required?: boolean | undefined;
477
+ }[] | undefined;
478
+ notifications?: {
479
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
480
+ label: string;
481
+ id: string;
482
+ enabled?: boolean | undefined;
483
+ recipients?: string[] | undefined;
484
+ url?: string | undefined;
485
+ }[] | undefined;
486
+ webhooks?: {
487
+ label: string;
488
+ id: string;
489
+ enabled?: boolean | undefined;
490
+ url?: string | undefined;
491
+ }[] | undefined;
492
+ }>;
493
+ }, "strip", z.ZodTypeAny, {
494
+ projectId: string;
495
+ status: "needs_confirmation";
496
+ impact: string;
497
+ draft: {
498
+ projectId: string;
499
+ title?: string | undefined;
500
+ enabled?: boolean | undefined;
501
+ successMessage?: string | undefined;
502
+ submitLabel?: string | undefined;
503
+ fields?: {
504
+ options: {
505
+ value: string;
506
+ label: string;
507
+ }[];
508
+ validation: {
509
+ format?: "email" | undefined;
510
+ maxLength?: number | undefined;
511
+ };
512
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
513
+ label: string;
514
+ id: string;
515
+ required: boolean;
516
+ placeholder?: string | undefined;
517
+ }[] | undefined;
518
+ notifications?: {
519
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
520
+ label: string;
521
+ id: string;
522
+ enabled: boolean;
523
+ recipients: string[];
524
+ url?: string | undefined;
525
+ }[] | undefined;
526
+ webhooks?: {
527
+ label: string;
528
+ id: string;
529
+ enabled: boolean;
530
+ url?: string | undefined;
531
+ }[] | undefined;
532
+ };
533
+ }, {
534
+ projectId: string;
535
+ status: "needs_confirmation";
536
+ impact: string;
537
+ draft: {
538
+ projectId: string;
539
+ title?: string | undefined;
540
+ enabled?: boolean | undefined;
541
+ successMessage?: string | undefined;
542
+ submitLabel?: string | undefined;
543
+ fields?: {
544
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
545
+ label: string;
546
+ id: string;
547
+ options?: {
548
+ value: string;
549
+ label: string;
550
+ }[] | undefined;
551
+ validation?: {
552
+ format?: "email" | undefined;
553
+ maxLength?: number | undefined;
554
+ } | undefined;
555
+ placeholder?: string | undefined;
556
+ required?: boolean | undefined;
557
+ }[] | undefined;
558
+ notifications?: {
559
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
560
+ label: string;
561
+ id: string;
562
+ enabled?: boolean | undefined;
563
+ recipients?: string[] | undefined;
564
+ url?: string | undefined;
565
+ }[] | undefined;
566
+ webhooks?: {
567
+ label: string;
568
+ id: string;
569
+ enabled?: boolean | undefined;
570
+ url?: string | undefined;
571
+ }[] | undefined;
572
+ };
573
+ }>, z.ZodObject<{
574
+ status: z.ZodLiteral<"updated">;
575
+ projectId: z.ZodString;
576
+ contactForm: z.ZodObject<{
577
+ enabled: z.ZodBoolean;
578
+ title: z.ZodString;
579
+ successMessage: z.ZodString;
580
+ submitLabel: z.ZodString;
581
+ fields: z.ZodArray<z.ZodObject<{
582
+ id: z.ZodString;
583
+ type: z.ZodEnum<["text", "textarea", "checkbox", "radio", "select"]>;
584
+ label: z.ZodString;
585
+ placeholder: z.ZodOptional<z.ZodString>;
586
+ required: z.ZodDefault<z.ZodBoolean>;
587
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
588
+ label: z.ZodString;
589
+ value: z.ZodString;
590
+ }, "strip", z.ZodTypeAny, {
591
+ value: string;
592
+ label: string;
593
+ }, {
594
+ value: string;
595
+ label: string;
596
+ }>, "many">>;
597
+ validation: z.ZodDefault<z.ZodObject<{
598
+ format: z.ZodOptional<z.ZodEnum<["email"]>>;
599
+ maxLength: z.ZodOptional<z.ZodNumber>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ format?: "email" | undefined;
602
+ maxLength?: number | undefined;
603
+ }, {
604
+ format?: "email" | undefined;
605
+ maxLength?: number | undefined;
606
+ }>>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ options: {
609
+ value: string;
610
+ label: string;
611
+ }[];
612
+ validation: {
613
+ format?: "email" | undefined;
614
+ maxLength?: number | undefined;
615
+ };
616
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
617
+ label: string;
618
+ id: string;
619
+ required: boolean;
620
+ placeholder?: string | undefined;
621
+ }, {
622
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
623
+ label: string;
624
+ id: string;
625
+ options?: {
626
+ value: string;
627
+ label: string;
628
+ }[] | undefined;
629
+ validation?: {
630
+ format?: "email" | undefined;
631
+ maxLength?: number | undefined;
632
+ } | undefined;
633
+ placeholder?: string | undefined;
634
+ required?: boolean | undefined;
635
+ }>, "many">;
636
+ notifications: z.ZodArray<z.ZodObject<{
637
+ id: z.ZodString;
638
+ type: z.ZodEnum<["email", "slack", "wecom", "feishu", "dingtalk"]>;
639
+ enabled: z.ZodBoolean;
640
+ label: z.ZodString;
641
+ recipients: z.ZodArray<z.ZodString, "many">;
642
+ urlMasked: z.ZodNullable<z.ZodString>;
643
+ }, "strip", z.ZodTypeAny, {
644
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
645
+ label: string;
646
+ id: string;
647
+ enabled: boolean;
648
+ recipients: string[];
649
+ urlMasked: string | null;
650
+ }, {
651
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
652
+ label: string;
653
+ id: string;
654
+ enabled: boolean;
655
+ recipients: string[];
656
+ urlMasked: string | null;
657
+ }>, "many">;
658
+ webhooks: z.ZodArray<z.ZodObject<{
659
+ id: z.ZodString;
660
+ enabled: z.ZodBoolean;
661
+ label: z.ZodString;
662
+ urlMasked: z.ZodNullable<z.ZodString>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ label: string;
665
+ id: string;
666
+ enabled: boolean;
667
+ urlMasked: string | null;
668
+ }, {
669
+ label: string;
670
+ id: string;
671
+ enabled: boolean;
672
+ urlMasked: string | null;
673
+ }>, "many">;
674
+ limits: z.ZodObject<{
675
+ maxFields: z.ZodNumber;
676
+ maxNotificationChannels: z.ZodNumber;
677
+ maxWebhooks: z.ZodNumber;
678
+ }, "strip", z.ZodTypeAny, {
679
+ maxFields: number;
680
+ maxNotificationChannels: number;
681
+ maxWebhooks: number;
682
+ }, {
683
+ maxFields: number;
684
+ maxNotificationChannels: number;
685
+ maxWebhooks: number;
686
+ }>;
687
+ features: z.ZodObject<{
688
+ contactNotifications: z.ZodBoolean;
689
+ contactWebhooks: z.ZodBoolean;
690
+ }, "strip", z.ZodTypeAny, {
691
+ contactNotifications: boolean;
692
+ contactWebhooks: boolean;
693
+ }, {
694
+ contactNotifications: boolean;
695
+ contactWebhooks: boolean;
696
+ }>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ title: string;
699
+ enabled: boolean;
700
+ successMessage: string;
701
+ submitLabel: string;
702
+ fields: {
703
+ options: {
704
+ value: string;
705
+ label: string;
706
+ }[];
707
+ validation: {
708
+ format?: "email" | undefined;
709
+ maxLength?: number | undefined;
710
+ };
711
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
712
+ label: string;
713
+ id: string;
714
+ required: boolean;
715
+ placeholder?: string | undefined;
716
+ }[];
717
+ notifications: {
718
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
719
+ label: string;
720
+ id: string;
721
+ enabled: boolean;
722
+ recipients: string[];
723
+ urlMasked: string | null;
724
+ }[];
725
+ webhooks: {
726
+ label: string;
727
+ id: string;
728
+ enabled: boolean;
729
+ urlMasked: string | null;
730
+ }[];
731
+ limits: {
732
+ maxFields: number;
733
+ maxNotificationChannels: number;
734
+ maxWebhooks: number;
735
+ };
736
+ features: {
737
+ contactNotifications: boolean;
738
+ contactWebhooks: boolean;
739
+ };
740
+ }, {
741
+ title: string;
742
+ enabled: boolean;
743
+ successMessage: string;
744
+ submitLabel: string;
745
+ fields: {
746
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
747
+ label: string;
748
+ id: string;
749
+ options?: {
750
+ value: string;
751
+ label: string;
752
+ }[] | undefined;
753
+ validation?: {
754
+ format?: "email" | undefined;
755
+ maxLength?: number | undefined;
756
+ } | undefined;
757
+ placeholder?: string | undefined;
758
+ required?: boolean | undefined;
759
+ }[];
760
+ notifications: {
761
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
762
+ label: string;
763
+ id: string;
764
+ enabled: boolean;
765
+ recipients: string[];
766
+ urlMasked: string | null;
767
+ }[];
768
+ webhooks: {
769
+ label: string;
770
+ id: string;
771
+ enabled: boolean;
772
+ urlMasked: string | null;
773
+ }[];
774
+ limits: {
775
+ maxFields: number;
776
+ maxNotificationChannels: number;
777
+ maxWebhooks: number;
778
+ };
779
+ features: {
780
+ contactNotifications: boolean;
781
+ contactWebhooks: boolean;
782
+ };
783
+ }>;
784
+ }, "strip", z.ZodTypeAny, {
785
+ projectId: string;
786
+ status: "updated";
787
+ contactForm: {
788
+ title: string;
789
+ enabled: boolean;
790
+ successMessage: string;
791
+ submitLabel: string;
792
+ fields: {
793
+ options: {
794
+ value: string;
795
+ label: string;
796
+ }[];
797
+ validation: {
798
+ format?: "email" | undefined;
799
+ maxLength?: number | undefined;
800
+ };
801
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
802
+ label: string;
803
+ id: string;
804
+ required: boolean;
805
+ placeholder?: string | undefined;
806
+ }[];
807
+ notifications: {
808
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
809
+ label: string;
810
+ id: string;
811
+ enabled: boolean;
812
+ recipients: string[];
813
+ urlMasked: string | null;
814
+ }[];
815
+ webhooks: {
816
+ label: string;
817
+ id: string;
818
+ enabled: boolean;
819
+ urlMasked: string | null;
820
+ }[];
821
+ limits: {
822
+ maxFields: number;
823
+ maxNotificationChannels: number;
824
+ maxWebhooks: number;
825
+ };
826
+ features: {
827
+ contactNotifications: boolean;
828
+ contactWebhooks: boolean;
829
+ };
830
+ };
831
+ }, {
832
+ projectId: string;
833
+ status: "updated";
834
+ contactForm: {
835
+ title: string;
836
+ enabled: boolean;
837
+ successMessage: string;
838
+ submitLabel: string;
839
+ fields: {
840
+ type: "text" | "textarea" | "checkbox" | "radio" | "select";
841
+ label: string;
842
+ id: string;
843
+ options?: {
844
+ value: string;
845
+ label: string;
846
+ }[] | undefined;
847
+ validation?: {
848
+ format?: "email" | undefined;
849
+ maxLength?: number | undefined;
850
+ } | undefined;
851
+ placeholder?: string | undefined;
852
+ required?: boolean | undefined;
853
+ }[];
854
+ notifications: {
855
+ type: "email" | "slack" | "wecom" | "feishu" | "dingtalk";
856
+ label: string;
857
+ id: string;
858
+ enabled: boolean;
859
+ recipients: string[];
860
+ urlMasked: string | null;
861
+ }[];
862
+ webhooks: {
863
+ label: string;
864
+ id: string;
865
+ enabled: boolean;
866
+ urlMasked: string | null;
867
+ }[];
868
+ limits: {
869
+ maxFields: number;
870
+ maxNotificationChannels: number;
871
+ maxWebhooks: number;
872
+ };
873
+ features: {
874
+ contactNotifications: boolean;
875
+ contactWebhooks: boolean;
876
+ };
877
+ };
878
+ }>]>;
89
879
  declare function fetchJson<T>(url: string, options?: RequestInit & {
90
880
  token?: string;
91
881
  }): Promise<T>;
@@ -106,6 +896,7 @@ declare const __testUtils: {
106
896
  initThemeWithKey: typeof initThemeWithKey;
107
897
  performActivateTheme: typeof performActivateTheme;
108
898
  performConfirmedPageOperation: typeof performConfirmedPageOperation;
899
+ performUpdateContactForm: typeof performUpdateContactForm;
109
900
  renderDevStarterPageHtml: typeof renderDevStarterPageHtml;
110
901
  resolveScreenshotOptions: typeof resolveScreenshotOptions;
111
902
  slugifyThemeName: typeof slugifyThemeName;
@@ -241,6 +1032,7 @@ declare function performActivateTheme(auth: CliAuthContext, input: {
241
1032
  themeVersion?: string | undefined;
242
1033
  confirm?: boolean | undefined;
243
1034
  }, fetcher?: FetchJsonFn): Promise<z.infer<typeof activateThemeOutputSchema>>;
1035
+ declare function performUpdateContactForm(auth: CliAuthContext, input: z.infer<typeof updateContactFormInputSchema>, fetcher?: FetchJsonFn): Promise<z.infer<typeof updateContactFormOutputSchema>>;
244
1036
  declare function validateThemeName(name: string): string | null;
245
1037
  declare function validateThemeKey(key: string): string | null;
246
1038
  declare function slugifyThemeName(name: string): string;