waha-shared 1.0.192 → 1.0.194

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.
@@ -7,26 +7,28 @@ export declare const MicroLessonSchema: z.ZodObject<{
7
7
  seekerFriendly: z.ZodBoolean;
8
8
  platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
9
9
  campaign: z.ZodOptional<z.ZodString>;
10
- notification: z.ZodOptional<z.ZodObject<{
11
- title: z.ZodString;
12
- body: z.ZodString;
13
- delayInHours: z.ZodNumber;
14
- }, "strip", z.ZodTypeAny, {
15
- title: string;
16
- body: string;
17
- delayInHours: number;
18
- }, {
19
- title: string;
20
- body: string;
21
- delayInHours: number;
22
- }>>;
23
10
  pages: z.ZodArray<z.ZodObject<{
24
11
  heading: z.ZodString;
25
12
  body: z.ZodOptional<z.ZodString>;
26
13
  image: z.ZodOptional<z.ZodString>;
27
14
  audio: z.ZodOptional<z.ZodString>;
15
+ textInput: z.ZodOptional<z.ZodObject<{
16
+ show: z.ZodBoolean;
17
+ placeholder: z.ZodOptional<z.ZodString>;
18
+ showCopyButton: z.ZodOptional<z.ZodBoolean>;
19
+ prefilledText: z.ZodOptional<z.ZodString>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ show: boolean;
22
+ placeholder?: string | undefined;
23
+ showCopyButton?: boolean | undefined;
24
+ prefilledText?: string | undefined;
25
+ }, {
26
+ show: boolean;
27
+ placeholder?: string | undefined;
28
+ showCopyButton?: boolean | undefined;
29
+ prefilledText?: string | undefined;
30
+ }>>;
28
31
  hasTextInput: z.ZodOptional<z.ZodBoolean>;
29
- placeholder: z.ZodOptional<z.ZodString>;
30
32
  radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
31
33
  text: z.ZodString;
32
34
  }, "strip", z.ZodTypeAny, {
@@ -36,14 +38,37 @@ export declare const MicroLessonSchema: z.ZodObject<{
36
38
  }>, "many">>;
37
39
  videoUrl: z.ZodOptional<z.ZodString>;
38
40
  platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
41
+ notification: z.ZodOptional<z.ZodObject<{
42
+ title: z.ZodString;
43
+ body: z.ZodString;
44
+ delayInHours: z.ZodNumber;
45
+ }, "strip", z.ZodTypeAny, {
46
+ title: string;
47
+ body: string;
48
+ delayInHours: number;
49
+ }, {
50
+ title: string;
51
+ body: string;
52
+ delayInHours: number;
53
+ }>>;
39
54
  }, "strip", z.ZodTypeAny, {
40
55
  heading: string;
41
56
  audio?: string | undefined;
42
57
  body?: string | undefined;
58
+ notification?: {
59
+ title: string;
60
+ body: string;
61
+ delayInHours: number;
62
+ } | undefined;
43
63
  platform?: "Web Only" | "App Only" | "All" | undefined;
44
64
  image?: string | undefined;
65
+ textInput?: {
66
+ show: boolean;
67
+ placeholder?: string | undefined;
68
+ showCopyButton?: boolean | undefined;
69
+ prefilledText?: string | undefined;
70
+ } | undefined;
45
71
  hasTextInput?: boolean | undefined;
46
- placeholder?: string | undefined;
47
72
  radioButtons?: {
48
73
  text: string;
49
74
  }[] | undefined;
@@ -52,10 +77,20 @@ export declare const MicroLessonSchema: z.ZodObject<{
52
77
  heading: string;
53
78
  audio?: string | undefined;
54
79
  body?: string | undefined;
80
+ notification?: {
81
+ title: string;
82
+ body: string;
83
+ delayInHours: number;
84
+ } | undefined;
55
85
  platform?: "Web Only" | "App Only" | "All" | undefined;
56
86
  image?: string | undefined;
87
+ textInput?: {
88
+ show: boolean;
89
+ placeholder?: string | undefined;
90
+ showCopyButton?: boolean | undefined;
91
+ prefilledText?: string | undefined;
92
+ } | undefined;
57
93
  hasTextInput?: boolean | undefined;
58
- placeholder?: string | undefined;
59
94
  radioButtons?: {
60
95
  text: string;
61
96
  }[] | undefined;
@@ -71,20 +106,25 @@ export declare const MicroLessonSchema: z.ZodObject<{
71
106
  heading: string;
72
107
  audio?: string | undefined;
73
108
  body?: string | undefined;
109
+ notification?: {
110
+ title: string;
111
+ body: string;
112
+ delayInHours: number;
113
+ } | undefined;
74
114
  platform?: "Web Only" | "App Only" | "All" | undefined;
75
115
  image?: string | undefined;
116
+ textInput?: {
117
+ show: boolean;
118
+ placeholder?: string | undefined;
119
+ showCopyButton?: boolean | undefined;
120
+ prefilledText?: string | undefined;
121
+ } | undefined;
76
122
  hasTextInput?: boolean | undefined;
77
- placeholder?: string | undefined;
78
123
  radioButtons?: {
79
124
  text: string;
80
125
  }[] | undefined;
81
126
  videoUrl?: string | undefined;
82
127
  }[];
83
- notification?: {
84
- title: string;
85
- body: string;
86
- delayInHours: number;
87
- } | undefined;
88
128
  subtitle?: string | undefined;
89
129
  campaign?: string | undefined;
90
130
  }, {
@@ -97,20 +137,25 @@ export declare const MicroLessonSchema: z.ZodObject<{
97
137
  heading: string;
98
138
  audio?: string | undefined;
99
139
  body?: string | undefined;
140
+ notification?: {
141
+ title: string;
142
+ body: string;
143
+ delayInHours: number;
144
+ } | undefined;
100
145
  platform?: "Web Only" | "App Only" | "All" | undefined;
101
146
  image?: string | undefined;
147
+ textInput?: {
148
+ show: boolean;
149
+ placeholder?: string | undefined;
150
+ showCopyButton?: boolean | undefined;
151
+ prefilledText?: string | undefined;
152
+ } | undefined;
102
153
  hasTextInput?: boolean | undefined;
103
- placeholder?: string | undefined;
104
154
  radioButtons?: {
105
155
  text: string;
106
156
  }[] | undefined;
107
157
  videoUrl?: string | undefined;
108
158
  }[];
109
- notification?: {
110
- title: string;
111
- body: string;
112
- delayInHours: number;
113
- } | undefined;
114
159
  subtitle?: string | undefined;
115
160
  campaign?: string | undefined;
116
161
  }>;
@@ -125,26 +170,28 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
125
170
  seekerFriendly: z.ZodBoolean;
126
171
  platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
127
172
  campaign: z.ZodOptional<z.ZodString>;
128
- notification: z.ZodOptional<z.ZodObject<{
129
- title: z.ZodString;
130
- body: z.ZodString;
131
- delayInHours: z.ZodNumber;
132
- }, "strip", z.ZodTypeAny, {
133
- title: string;
134
- body: string;
135
- delayInHours: number;
136
- }, {
137
- title: string;
138
- body: string;
139
- delayInHours: number;
140
- }>>;
141
173
  pages: z.ZodArray<z.ZodObject<{
142
174
  heading: z.ZodString;
143
175
  body: z.ZodOptional<z.ZodString>;
144
176
  image: z.ZodOptional<z.ZodString>;
145
177
  audio: z.ZodOptional<z.ZodString>;
178
+ textInput: z.ZodOptional<z.ZodObject<{
179
+ show: z.ZodBoolean;
180
+ placeholder: z.ZodOptional<z.ZodString>;
181
+ showCopyButton: z.ZodOptional<z.ZodBoolean>;
182
+ prefilledText: z.ZodOptional<z.ZodString>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ show: boolean;
185
+ placeholder?: string | undefined;
186
+ showCopyButton?: boolean | undefined;
187
+ prefilledText?: string | undefined;
188
+ }, {
189
+ show: boolean;
190
+ placeholder?: string | undefined;
191
+ showCopyButton?: boolean | undefined;
192
+ prefilledText?: string | undefined;
193
+ }>>;
146
194
  hasTextInput: z.ZodOptional<z.ZodBoolean>;
147
- placeholder: z.ZodOptional<z.ZodString>;
148
195
  radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
149
196
  text: z.ZodString;
150
197
  }, "strip", z.ZodTypeAny, {
@@ -154,14 +201,37 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
154
201
  }>, "many">>;
155
202
  videoUrl: z.ZodOptional<z.ZodString>;
156
203
  platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
204
+ notification: z.ZodOptional<z.ZodObject<{
205
+ title: z.ZodString;
206
+ body: z.ZodString;
207
+ delayInHours: z.ZodNumber;
208
+ }, "strip", z.ZodTypeAny, {
209
+ title: string;
210
+ body: string;
211
+ delayInHours: number;
212
+ }, {
213
+ title: string;
214
+ body: string;
215
+ delayInHours: number;
216
+ }>>;
157
217
  }, "strip", z.ZodTypeAny, {
158
218
  heading: string;
159
219
  audio?: string | undefined;
160
220
  body?: string | undefined;
221
+ notification?: {
222
+ title: string;
223
+ body: string;
224
+ delayInHours: number;
225
+ } | undefined;
161
226
  platform?: "Web Only" | "App Only" | "All" | undefined;
162
227
  image?: string | undefined;
228
+ textInput?: {
229
+ show: boolean;
230
+ placeholder?: string | undefined;
231
+ showCopyButton?: boolean | undefined;
232
+ prefilledText?: string | undefined;
233
+ } | undefined;
163
234
  hasTextInput?: boolean | undefined;
164
- placeholder?: string | undefined;
165
235
  radioButtons?: {
166
236
  text: string;
167
237
  }[] | undefined;
@@ -170,10 +240,20 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
170
240
  heading: string;
171
241
  audio?: string | undefined;
172
242
  body?: string | undefined;
243
+ notification?: {
244
+ title: string;
245
+ body: string;
246
+ delayInHours: number;
247
+ } | undefined;
173
248
  platform?: "Web Only" | "App Only" | "All" | undefined;
174
249
  image?: string | undefined;
250
+ textInput?: {
251
+ show: boolean;
252
+ placeholder?: string | undefined;
253
+ showCopyButton?: boolean | undefined;
254
+ prefilledText?: string | undefined;
255
+ } | undefined;
175
256
  hasTextInput?: boolean | undefined;
176
- placeholder?: string | undefined;
177
257
  radioButtons?: {
178
258
  text: string;
179
259
  }[] | undefined;
@@ -189,20 +269,25 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
189
269
  heading: string;
190
270
  audio?: string | undefined;
191
271
  body?: string | undefined;
272
+ notification?: {
273
+ title: string;
274
+ body: string;
275
+ delayInHours: number;
276
+ } | undefined;
192
277
  platform?: "Web Only" | "App Only" | "All" | undefined;
193
278
  image?: string | undefined;
279
+ textInput?: {
280
+ show: boolean;
281
+ placeholder?: string | undefined;
282
+ showCopyButton?: boolean | undefined;
283
+ prefilledText?: string | undefined;
284
+ } | undefined;
194
285
  hasTextInput?: boolean | undefined;
195
- placeholder?: string | undefined;
196
286
  radioButtons?: {
197
287
  text: string;
198
288
  }[] | undefined;
199
289
  videoUrl?: string | undefined;
200
290
  }[];
201
- notification?: {
202
- title: string;
203
- body: string;
204
- delayInHours: number;
205
- } | undefined;
206
291
  subtitle?: string | undefined;
207
292
  campaign?: string | undefined;
208
293
  }, {
@@ -215,20 +300,25 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
215
300
  heading: string;
216
301
  audio?: string | undefined;
217
302
  body?: string | undefined;
303
+ notification?: {
304
+ title: string;
305
+ body: string;
306
+ delayInHours: number;
307
+ } | undefined;
218
308
  platform?: "Web Only" | "App Only" | "All" | undefined;
219
309
  image?: string | undefined;
310
+ textInput?: {
311
+ show: boolean;
312
+ placeholder?: string | undefined;
313
+ showCopyButton?: boolean | undefined;
314
+ prefilledText?: string | undefined;
315
+ } | undefined;
220
316
  hasTextInput?: boolean | undefined;
221
- placeholder?: string | undefined;
222
317
  radioButtons?: {
223
318
  text: string;
224
319
  }[] | undefined;
225
320
  videoUrl?: string | undefined;
226
321
  }[];
227
- notification?: {
228
- title: string;
229
- body: string;
230
- delayInHours: number;
231
- } | undefined;
232
322
  subtitle?: string | undefined;
233
323
  campaign?: string | undefined;
234
324
  }>;
@@ -244,20 +334,25 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
244
334
  heading: string;
245
335
  audio?: string | undefined;
246
336
  body?: string | undefined;
337
+ notification?: {
338
+ title: string;
339
+ body: string;
340
+ delayInHours: number;
341
+ } | undefined;
247
342
  platform?: "Web Only" | "App Only" | "All" | undefined;
248
343
  image?: string | undefined;
344
+ textInput?: {
345
+ show: boolean;
346
+ placeholder?: string | undefined;
347
+ showCopyButton?: boolean | undefined;
348
+ prefilledText?: string | undefined;
349
+ } | undefined;
249
350
  hasTextInput?: boolean | undefined;
250
- placeholder?: string | undefined;
251
351
  radioButtons?: {
252
352
  text: string;
253
353
  }[] | undefined;
254
354
  videoUrl?: string | undefined;
255
355
  }[];
256
- notification?: {
257
- title: string;
258
- body: string;
259
- delayInHours: number;
260
- } | undefined;
261
356
  subtitle?: string | undefined;
262
357
  campaign?: string | undefined;
263
358
  };
@@ -273,20 +368,25 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
273
368
  heading: string;
274
369
  audio?: string | undefined;
275
370
  body?: string | undefined;
371
+ notification?: {
372
+ title: string;
373
+ body: string;
374
+ delayInHours: number;
375
+ } | undefined;
276
376
  platform?: "Web Only" | "App Only" | "All" | undefined;
277
377
  image?: string | undefined;
378
+ textInput?: {
379
+ show: boolean;
380
+ placeholder?: string | undefined;
381
+ showCopyButton?: boolean | undefined;
382
+ prefilledText?: string | undefined;
383
+ } | undefined;
278
384
  hasTextInput?: boolean | undefined;
279
- placeholder?: string | undefined;
280
385
  radioButtons?: {
281
386
  text: string;
282
387
  }[] | undefined;
283
388
  videoUrl?: string | undefined;
284
389
  }[];
285
- notification?: {
286
- title: string;
287
- body: string;
288
- delayInHours: number;
289
- } | undefined;
290
390
  subtitle?: string | undefined;
291
391
  campaign?: string | undefined;
292
392
  };
@@ -303,26 +403,28 @@ export declare const MicroLessonsResponse: z.ZodObject<{
303
403
  seekerFriendly: z.ZodBoolean;
304
404
  platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
305
405
  campaign: z.ZodOptional<z.ZodString>;
306
- notification: z.ZodOptional<z.ZodObject<{
307
- title: z.ZodString;
308
- body: z.ZodString;
309
- delayInHours: z.ZodNumber;
310
- }, "strip", z.ZodTypeAny, {
311
- title: string;
312
- body: string;
313
- delayInHours: number;
314
- }, {
315
- title: string;
316
- body: string;
317
- delayInHours: number;
318
- }>>;
319
406
  pages: z.ZodArray<z.ZodObject<{
320
407
  heading: z.ZodString;
321
408
  body: z.ZodOptional<z.ZodString>;
322
409
  image: z.ZodOptional<z.ZodString>;
323
410
  audio: z.ZodOptional<z.ZodString>;
411
+ textInput: z.ZodOptional<z.ZodObject<{
412
+ show: z.ZodBoolean;
413
+ placeholder: z.ZodOptional<z.ZodString>;
414
+ showCopyButton: z.ZodOptional<z.ZodBoolean>;
415
+ prefilledText: z.ZodOptional<z.ZodString>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ show: boolean;
418
+ placeholder?: string | undefined;
419
+ showCopyButton?: boolean | undefined;
420
+ prefilledText?: string | undefined;
421
+ }, {
422
+ show: boolean;
423
+ placeholder?: string | undefined;
424
+ showCopyButton?: boolean | undefined;
425
+ prefilledText?: string | undefined;
426
+ }>>;
324
427
  hasTextInput: z.ZodOptional<z.ZodBoolean>;
325
- placeholder: z.ZodOptional<z.ZodString>;
326
428
  radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
327
429
  text: z.ZodString;
328
430
  }, "strip", z.ZodTypeAny, {
@@ -332,14 +434,37 @@ export declare const MicroLessonsResponse: z.ZodObject<{
332
434
  }>, "many">>;
333
435
  videoUrl: z.ZodOptional<z.ZodString>;
334
436
  platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
437
+ notification: z.ZodOptional<z.ZodObject<{
438
+ title: z.ZodString;
439
+ body: z.ZodString;
440
+ delayInHours: z.ZodNumber;
441
+ }, "strip", z.ZodTypeAny, {
442
+ title: string;
443
+ body: string;
444
+ delayInHours: number;
445
+ }, {
446
+ title: string;
447
+ body: string;
448
+ delayInHours: number;
449
+ }>>;
335
450
  }, "strip", z.ZodTypeAny, {
336
451
  heading: string;
337
452
  audio?: string | undefined;
338
453
  body?: string | undefined;
454
+ notification?: {
455
+ title: string;
456
+ body: string;
457
+ delayInHours: number;
458
+ } | undefined;
339
459
  platform?: "Web Only" | "App Only" | "All" | undefined;
340
460
  image?: string | undefined;
461
+ textInput?: {
462
+ show: boolean;
463
+ placeholder?: string | undefined;
464
+ showCopyButton?: boolean | undefined;
465
+ prefilledText?: string | undefined;
466
+ } | undefined;
341
467
  hasTextInput?: boolean | undefined;
342
- placeholder?: string | undefined;
343
468
  radioButtons?: {
344
469
  text: string;
345
470
  }[] | undefined;
@@ -348,10 +473,20 @@ export declare const MicroLessonsResponse: z.ZodObject<{
348
473
  heading: string;
349
474
  audio?: string | undefined;
350
475
  body?: string | undefined;
476
+ notification?: {
477
+ title: string;
478
+ body: string;
479
+ delayInHours: number;
480
+ } | undefined;
351
481
  platform?: "Web Only" | "App Only" | "All" | undefined;
352
482
  image?: string | undefined;
483
+ textInput?: {
484
+ show: boolean;
485
+ placeholder?: string | undefined;
486
+ showCopyButton?: boolean | undefined;
487
+ prefilledText?: string | undefined;
488
+ } | undefined;
353
489
  hasTextInput?: boolean | undefined;
354
- placeholder?: string | undefined;
355
490
  radioButtons?: {
356
491
  text: string;
357
492
  }[] | undefined;
@@ -367,20 +502,25 @@ export declare const MicroLessonsResponse: z.ZodObject<{
367
502
  heading: string;
368
503
  audio?: string | undefined;
369
504
  body?: string | undefined;
505
+ notification?: {
506
+ title: string;
507
+ body: string;
508
+ delayInHours: number;
509
+ } | undefined;
370
510
  platform?: "Web Only" | "App Only" | "All" | undefined;
371
511
  image?: string | undefined;
512
+ textInput?: {
513
+ show: boolean;
514
+ placeholder?: string | undefined;
515
+ showCopyButton?: boolean | undefined;
516
+ prefilledText?: string | undefined;
517
+ } | undefined;
372
518
  hasTextInput?: boolean | undefined;
373
- placeholder?: string | undefined;
374
519
  radioButtons?: {
375
520
  text: string;
376
521
  }[] | undefined;
377
522
  videoUrl?: string | undefined;
378
523
  }[];
379
- notification?: {
380
- title: string;
381
- body: string;
382
- delayInHours: number;
383
- } | undefined;
384
524
  subtitle?: string | undefined;
385
525
  campaign?: string | undefined;
386
526
  }, {
@@ -393,20 +533,25 @@ export declare const MicroLessonsResponse: z.ZodObject<{
393
533
  heading: string;
394
534
  audio?: string | undefined;
395
535
  body?: string | undefined;
536
+ notification?: {
537
+ title: string;
538
+ body: string;
539
+ delayInHours: number;
540
+ } | undefined;
396
541
  platform?: "Web Only" | "App Only" | "All" | undefined;
397
542
  image?: string | undefined;
543
+ textInput?: {
544
+ show: boolean;
545
+ placeholder?: string | undefined;
546
+ showCopyButton?: boolean | undefined;
547
+ prefilledText?: string | undefined;
548
+ } | undefined;
398
549
  hasTextInput?: boolean | undefined;
399
- placeholder?: string | undefined;
400
550
  radioButtons?: {
401
551
  text: string;
402
552
  }[] | undefined;
403
553
  videoUrl?: string | undefined;
404
554
  }[];
405
- notification?: {
406
- title: string;
407
- body: string;
408
- delayInHours: number;
409
- } | undefined;
410
555
  subtitle?: string | undefined;
411
556
  campaign?: string | undefined;
412
557
  }>;
@@ -422,20 +567,25 @@ export declare const MicroLessonsResponse: z.ZodObject<{
422
567
  heading: string;
423
568
  audio?: string | undefined;
424
569
  body?: string | undefined;
570
+ notification?: {
571
+ title: string;
572
+ body: string;
573
+ delayInHours: number;
574
+ } | undefined;
425
575
  platform?: "Web Only" | "App Only" | "All" | undefined;
426
576
  image?: string | undefined;
577
+ textInput?: {
578
+ show: boolean;
579
+ placeholder?: string | undefined;
580
+ showCopyButton?: boolean | undefined;
581
+ prefilledText?: string | undefined;
582
+ } | undefined;
427
583
  hasTextInput?: boolean | undefined;
428
- placeholder?: string | undefined;
429
584
  radioButtons?: {
430
585
  text: string;
431
586
  }[] | undefined;
432
587
  videoUrl?: string | undefined;
433
588
  }[];
434
- notification?: {
435
- title: string;
436
- body: string;
437
- delayInHours: number;
438
- } | undefined;
439
589
  subtitle?: string | undefined;
440
590
  campaign?: string | undefined;
441
591
  };
@@ -451,20 +601,25 @@ export declare const MicroLessonsResponse: z.ZodObject<{
451
601
  heading: string;
452
602
  audio?: string | undefined;
453
603
  body?: string | undefined;
604
+ notification?: {
605
+ title: string;
606
+ body: string;
607
+ delayInHours: number;
608
+ } | undefined;
454
609
  platform?: "Web Only" | "App Only" | "All" | undefined;
455
610
  image?: string | undefined;
611
+ textInput?: {
612
+ show: boolean;
613
+ placeholder?: string | undefined;
614
+ showCopyButton?: boolean | undefined;
615
+ prefilledText?: string | undefined;
616
+ } | undefined;
456
617
  hasTextInput?: boolean | undefined;
457
- placeholder?: string | undefined;
458
618
  radioButtons?: {
459
619
  text: string;
460
620
  }[] | undefined;
461
621
  videoUrl?: string | undefined;
462
622
  }[];
463
- notification?: {
464
- title: string;
465
- body: string;
466
- delayInHours: number;
467
- } | undefined;
468
623
  subtitle?: string | undefined;
469
624
  campaign?: string | undefined;
470
625
  };
@@ -482,20 +637,25 @@ export declare const MicroLessonsResponse: z.ZodObject<{
482
637
  heading: string;
483
638
  audio?: string | undefined;
484
639
  body?: string | undefined;
640
+ notification?: {
641
+ title: string;
642
+ body: string;
643
+ delayInHours: number;
644
+ } | undefined;
485
645
  platform?: "Web Only" | "App Only" | "All" | undefined;
486
646
  image?: string | undefined;
647
+ textInput?: {
648
+ show: boolean;
649
+ placeholder?: string | undefined;
650
+ showCopyButton?: boolean | undefined;
651
+ prefilledText?: string | undefined;
652
+ } | undefined;
487
653
  hasTextInput?: boolean | undefined;
488
- placeholder?: string | undefined;
489
654
  radioButtons?: {
490
655
  text: string;
491
656
  }[] | undefined;
492
657
  videoUrl?: string | undefined;
493
658
  }[];
494
- notification?: {
495
- title: string;
496
- body: string;
497
- delayInHours: number;
498
- } | undefined;
499
659
  subtitle?: string | undefined;
500
660
  campaign?: string | undefined;
501
661
  };
@@ -513,20 +673,25 @@ export declare const MicroLessonsResponse: z.ZodObject<{
513
673
  heading: string;
514
674
  audio?: string | undefined;
515
675
  body?: string | undefined;
676
+ notification?: {
677
+ title: string;
678
+ body: string;
679
+ delayInHours: number;
680
+ } | undefined;
516
681
  platform?: "Web Only" | "App Only" | "All" | undefined;
517
682
  image?: string | undefined;
683
+ textInput?: {
684
+ show: boolean;
685
+ placeholder?: string | undefined;
686
+ showCopyButton?: boolean | undefined;
687
+ prefilledText?: string | undefined;
688
+ } | undefined;
518
689
  hasTextInput?: boolean | undefined;
519
- placeholder?: string | undefined;
520
690
  radioButtons?: {
521
691
  text: string;
522
692
  }[] | undefined;
523
693
  videoUrl?: string | undefined;
524
694
  }[];
525
- notification?: {
526
- title: string;
527
- body: string;
528
- delayInHours: number;
529
- } | undefined;
530
695
  subtitle?: string | undefined;
531
696
  campaign?: string | undefined;
532
697
  };
@@ -17,29 +17,33 @@ exports.MicroLessonSchema = zod_1.default.object({
17
17
  .string()
18
18
  .optional()
19
19
  .describe('Optional campaign identifier for tracking purposes.'),
20
- notification: zod_1.default
21
- .object({
22
- title: zod_1.default.string(),
23
- body: zod_1.default.string(),
24
- delayInHours: zod_1.default
25
- .number()
26
- .describe('The delay in hours before the notification is sent.'),
27
- })
28
- .optional()
29
- .describe('Optional notification to send after the lesson is completed.'),
30
20
  pages: zod_1.default.array(zod_1.default.object({
31
21
  heading: zod_1.default.string().describe('The heading of the page'),
32
22
  body: zod_1.default.string().optional(),
33
23
  image: zod_1.default.string().optional(),
34
24
  audio: zod_1.default.string().optional(),
25
+ textInput: zod_1.default
26
+ .object({
27
+ show: zod_1.default.boolean(),
28
+ placeholder: zod_1.default.string().optional(),
29
+ showCopyButton: zod_1.default.boolean().optional(),
30
+ prefilledText: zod_1.default.string().optional(),
31
+ })
32
+ .optional(),
35
33
  hasTextInput: zod_1.default.boolean().optional(),
36
- placeholder: zod_1.default
37
- .string()
38
- .optional()
39
- .describe('The placeholder text for the text input field.'),
40
34
  radioButtons: zod_1.default.array(zod_1.default.object({ text: zod_1.default.string() })).optional(),
41
35
  videoUrl: zod_1.default.string().optional(),
42
36
  platform: webContent_1.PlatformSchema.optional(),
37
+ notification: zod_1.default
38
+ .object({
39
+ title: zod_1.default.string(),
40
+ body: zod_1.default.string(),
41
+ delayInHours: zod_1.default
42
+ .number()
43
+ .describe('The delay in hours before the notification is sent.'),
44
+ })
45
+ .optional()
46
+ .describe('Optional notification to send after the lesson is completed.'),
43
47
  })),
44
48
  });
45
49
  exports.ResponseMicroLessonSchema = zod_1.default.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.192",
3
+ "version": "1.0.194",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",