@domu-ai/kiban-sdk 1.72.0

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.
@@ -0,0 +1,1002 @@
1
+ /**
2
+ * Generated by orval v8.2.0 🍺
3
+ * Do not edit manually.
4
+ * Kiban Dashboard API
5
+ * Dashboard endpoints for authenticated backoffice operations and campaign management.
6
+ * OpenAPI spec version: 1.0.0
7
+ */
8
+ import * as zod from 'zod';
9
+ /**
10
+ * Returns a map of campaign ID to campaign name for the specified campaign IDs.
11
+ * @summary Get campaign names by IDs
12
+ */
13
+ export declare const GetCampaignNamesBody: zod.ZodObject<{
14
+ campaignIds: zod.ZodArray<zod.ZodString, "many">;
15
+ }, "strip", zod.ZodTypeAny, {
16
+ campaignIds: string[];
17
+ }, {
18
+ campaignIds: string[];
19
+ }>;
20
+ export declare const GetCampaignNamesResponse: zod.ZodObject<{
21
+ data: zod.ZodRecord<zod.ZodString, zod.ZodNullable<zod.ZodString>>;
22
+ }, "strip", zod.ZodTypeAny, {
23
+ data: Record<string, string | null>;
24
+ }, {
25
+ data: Record<string, string | null>;
26
+ }>;
27
+ /**
28
+ * Returns a list of campaigns for the authenticated user's organization.
29
+ * @summary List campaigns
30
+ */
31
+ export declare const GetCampaignsResponse: zod.ZodObject<{
32
+ data: zod.ZodArray<zod.ZodObject<{
33
+ id: zod.ZodString;
34
+ name: zod.ZodNullable<zod.ZodString>;
35
+ }, "strip", zod.ZodTypeAny, {
36
+ id: string;
37
+ name: string | null;
38
+ }, {
39
+ id: string;
40
+ name: string | null;
41
+ }>, "many">;
42
+ }, "strip", zod.ZodTypeAny, {
43
+ data: {
44
+ id: string;
45
+ name: string | null;
46
+ }[];
47
+ }, {
48
+ data: {
49
+ id: string;
50
+ name: string | null;
51
+ }[];
52
+ }>;
53
+ /**
54
+ * Returns campaign configuration needed for the schedule builder: timezone, contact hours, phone columns, and target count.
55
+ * @summary Get campaign schedule configuration
56
+ */
57
+ export declare const GetScheduleConfigParams: zod.ZodObject<{
58
+ campaignId: zod.ZodString;
59
+ }, "strip", zod.ZodTypeAny, {
60
+ campaignId: string;
61
+ }, {
62
+ campaignId: string;
63
+ }>;
64
+ export declare const GetScheduleConfigResponse: zod.ZodObject<{
65
+ data: zod.ZodObject<{
66
+ campaign_id: zod.ZodString;
67
+ campaign_name: zod.ZodString;
68
+ timezone: zod.ZodNullable<zod.ZodString>;
69
+ phone_columns: zod.ZodArray<zod.ZodString, "many">;
70
+ contact_hours: zod.ZodObject<{
71
+ monday: zod.ZodOptional<zod.ZodObject<{
72
+ minHour: zod.ZodNumber;
73
+ maxHour: zod.ZodNumber;
74
+ }, "strip", zod.ZodTypeAny, {
75
+ minHour: number;
76
+ maxHour: number;
77
+ }, {
78
+ minHour: number;
79
+ maxHour: number;
80
+ }>>;
81
+ tuesday: zod.ZodOptional<zod.ZodObject<{
82
+ minHour: zod.ZodNumber;
83
+ maxHour: zod.ZodNumber;
84
+ }, "strip", zod.ZodTypeAny, {
85
+ minHour: number;
86
+ maxHour: number;
87
+ }, {
88
+ minHour: number;
89
+ maxHour: number;
90
+ }>>;
91
+ wednesday: zod.ZodOptional<zod.ZodObject<{
92
+ minHour: zod.ZodNumber;
93
+ maxHour: zod.ZodNumber;
94
+ }, "strip", zod.ZodTypeAny, {
95
+ minHour: number;
96
+ maxHour: number;
97
+ }, {
98
+ minHour: number;
99
+ maxHour: number;
100
+ }>>;
101
+ thursday: zod.ZodOptional<zod.ZodObject<{
102
+ minHour: zod.ZodNumber;
103
+ maxHour: zod.ZodNumber;
104
+ }, "strip", zod.ZodTypeAny, {
105
+ minHour: number;
106
+ maxHour: number;
107
+ }, {
108
+ minHour: number;
109
+ maxHour: number;
110
+ }>>;
111
+ friday: zod.ZodOptional<zod.ZodObject<{
112
+ minHour: zod.ZodNumber;
113
+ maxHour: zod.ZodNumber;
114
+ }, "strip", zod.ZodTypeAny, {
115
+ minHour: number;
116
+ maxHour: number;
117
+ }, {
118
+ minHour: number;
119
+ maxHour: number;
120
+ }>>;
121
+ saturday: zod.ZodOptional<zod.ZodObject<{
122
+ minHour: zod.ZodNumber;
123
+ maxHour: zod.ZodNumber;
124
+ }, "strip", zod.ZodTypeAny, {
125
+ minHour: number;
126
+ maxHour: number;
127
+ }, {
128
+ minHour: number;
129
+ maxHour: number;
130
+ }>>;
131
+ sunday: zod.ZodOptional<zod.ZodObject<{
132
+ minHour: zod.ZodNumber;
133
+ maxHour: zod.ZodNumber;
134
+ }, "strip", zod.ZodTypeAny, {
135
+ minHour: number;
136
+ maxHour: number;
137
+ }, {
138
+ minHour: number;
139
+ maxHour: number;
140
+ }>>;
141
+ }, "strip", zod.ZodTypeAny, {
142
+ monday?: {
143
+ minHour: number;
144
+ maxHour: number;
145
+ } | undefined;
146
+ tuesday?: {
147
+ minHour: number;
148
+ maxHour: number;
149
+ } | undefined;
150
+ wednesday?: {
151
+ minHour: number;
152
+ maxHour: number;
153
+ } | undefined;
154
+ thursday?: {
155
+ minHour: number;
156
+ maxHour: number;
157
+ } | undefined;
158
+ friday?: {
159
+ minHour: number;
160
+ maxHour: number;
161
+ } | undefined;
162
+ saturday?: {
163
+ minHour: number;
164
+ maxHour: number;
165
+ } | undefined;
166
+ sunday?: {
167
+ minHour: number;
168
+ maxHour: number;
169
+ } | undefined;
170
+ }, {
171
+ monday?: {
172
+ minHour: number;
173
+ maxHour: number;
174
+ } | undefined;
175
+ tuesday?: {
176
+ minHour: number;
177
+ maxHour: number;
178
+ } | undefined;
179
+ wednesday?: {
180
+ minHour: number;
181
+ maxHour: number;
182
+ } | undefined;
183
+ thursday?: {
184
+ minHour: number;
185
+ maxHour: number;
186
+ } | undefined;
187
+ friday?: {
188
+ minHour: number;
189
+ maxHour: number;
190
+ } | undefined;
191
+ saturday?: {
192
+ minHour: number;
193
+ maxHour: number;
194
+ } | undefined;
195
+ sunday?: {
196
+ minHour: number;
197
+ maxHour: number;
198
+ } | undefined;
199
+ }>;
200
+ max_attempts: zod.ZodNumber;
201
+ contact_limit: zod.ZodNullable<zod.ZodNumber>;
202
+ allowed_call_holidays: zod.ZodNullable<zod.ZodArray<zod.ZodString, "many">>;
203
+ loaded_target_count: zod.ZodNumber;
204
+ }, "strip", zod.ZodTypeAny, {
205
+ campaign_id: string;
206
+ campaign_name: string;
207
+ timezone: string | null;
208
+ phone_columns: string[];
209
+ contact_hours: {
210
+ monday?: {
211
+ minHour: number;
212
+ maxHour: number;
213
+ } | undefined;
214
+ tuesday?: {
215
+ minHour: number;
216
+ maxHour: number;
217
+ } | undefined;
218
+ wednesday?: {
219
+ minHour: number;
220
+ maxHour: number;
221
+ } | undefined;
222
+ thursday?: {
223
+ minHour: number;
224
+ maxHour: number;
225
+ } | undefined;
226
+ friday?: {
227
+ minHour: number;
228
+ maxHour: number;
229
+ } | undefined;
230
+ saturday?: {
231
+ minHour: number;
232
+ maxHour: number;
233
+ } | undefined;
234
+ sunday?: {
235
+ minHour: number;
236
+ maxHour: number;
237
+ } | undefined;
238
+ };
239
+ max_attempts: number;
240
+ contact_limit: number | null;
241
+ allowed_call_holidays: string[] | null;
242
+ loaded_target_count: number;
243
+ }, {
244
+ campaign_id: string;
245
+ campaign_name: string;
246
+ timezone: string | null;
247
+ phone_columns: string[];
248
+ contact_hours: {
249
+ monday?: {
250
+ minHour: number;
251
+ maxHour: number;
252
+ } | undefined;
253
+ tuesday?: {
254
+ minHour: number;
255
+ maxHour: number;
256
+ } | undefined;
257
+ wednesday?: {
258
+ minHour: number;
259
+ maxHour: number;
260
+ } | undefined;
261
+ thursday?: {
262
+ minHour: number;
263
+ maxHour: number;
264
+ } | undefined;
265
+ friday?: {
266
+ minHour: number;
267
+ maxHour: number;
268
+ } | undefined;
269
+ saturday?: {
270
+ minHour: number;
271
+ maxHour: number;
272
+ } | undefined;
273
+ sunday?: {
274
+ minHour: number;
275
+ maxHour: number;
276
+ } | undefined;
277
+ };
278
+ max_attempts: number;
279
+ contact_limit: number | null;
280
+ allowed_call_holidays: string[] | null;
281
+ loaded_target_count: number;
282
+ }>;
283
+ }, "strip", zod.ZodTypeAny, {
284
+ data: {
285
+ campaign_id: string;
286
+ campaign_name: string;
287
+ timezone: string | null;
288
+ phone_columns: string[];
289
+ contact_hours: {
290
+ monday?: {
291
+ minHour: number;
292
+ maxHour: number;
293
+ } | undefined;
294
+ tuesday?: {
295
+ minHour: number;
296
+ maxHour: number;
297
+ } | undefined;
298
+ wednesday?: {
299
+ minHour: number;
300
+ maxHour: number;
301
+ } | undefined;
302
+ thursday?: {
303
+ minHour: number;
304
+ maxHour: number;
305
+ } | undefined;
306
+ friday?: {
307
+ minHour: number;
308
+ maxHour: number;
309
+ } | undefined;
310
+ saturday?: {
311
+ minHour: number;
312
+ maxHour: number;
313
+ } | undefined;
314
+ sunday?: {
315
+ minHour: number;
316
+ maxHour: number;
317
+ } | undefined;
318
+ };
319
+ max_attempts: number;
320
+ contact_limit: number | null;
321
+ allowed_call_holidays: string[] | null;
322
+ loaded_target_count: number;
323
+ };
324
+ }, {
325
+ data: {
326
+ campaign_id: string;
327
+ campaign_name: string;
328
+ timezone: string | null;
329
+ phone_columns: string[];
330
+ contact_hours: {
331
+ monday?: {
332
+ minHour: number;
333
+ maxHour: number;
334
+ } | undefined;
335
+ tuesday?: {
336
+ minHour: number;
337
+ maxHour: number;
338
+ } | undefined;
339
+ wednesday?: {
340
+ minHour: number;
341
+ maxHour: number;
342
+ } | undefined;
343
+ thursday?: {
344
+ minHour: number;
345
+ maxHour: number;
346
+ } | undefined;
347
+ friday?: {
348
+ minHour: number;
349
+ maxHour: number;
350
+ } | undefined;
351
+ saturday?: {
352
+ minHour: number;
353
+ maxHour: number;
354
+ } | undefined;
355
+ sunday?: {
356
+ minHour: number;
357
+ maxHour: number;
358
+ } | undefined;
359
+ };
360
+ max_attempts: number;
361
+ contact_limit: number | null;
362
+ allowed_call_holidays: string[] | null;
363
+ loaded_target_count: number;
364
+ };
365
+ }>;
366
+ /**
367
+ * Returns a list of agents for the authenticated user's organization.
368
+ * @summary List agents
369
+ */
370
+ export declare const GetAgentsResponse: zod.ZodObject<{
371
+ data: zod.ZodArray<zod.ZodObject<{
372
+ id: zod.ZodString;
373
+ name: zod.ZodNullable<zod.ZodString>;
374
+ campaign_id: zod.ZodString;
375
+ }, "strip", zod.ZodTypeAny, {
376
+ id: string;
377
+ name: string | null;
378
+ campaign_id: string;
379
+ }, {
380
+ id: string;
381
+ name: string | null;
382
+ campaign_id: string;
383
+ }>, "many">;
384
+ }, "strip", zod.ZodTypeAny, {
385
+ data: {
386
+ id: string;
387
+ name: string | null;
388
+ campaign_id: string;
389
+ }[];
390
+ }, {
391
+ data: {
392
+ id: string;
393
+ name: string | null;
394
+ campaign_id: string;
395
+ }[];
396
+ }>;
397
+ /**
398
+ * Returns unique input field labels from all campaigns for the authenticated user's organization.
399
+ * @summary List input field keys
400
+ */
401
+ export declare const GetInputFieldsResponse: zod.ZodObject<{
402
+ data: zod.ZodArray<zod.ZodString, "many">;
403
+ }, "strip", zod.ZodTypeAny, {
404
+ data: string[];
405
+ }, {
406
+ data: string[];
407
+ }>;
408
+ /**
409
+ * Returns unique output field keys from all calls for the authenticated user's organization.
410
+ * @summary List output field keys
411
+ */
412
+ export declare const GetOutputFieldsResponse: zod.ZodObject<{
413
+ data: zod.ZodArray<zod.ZodString, "many">;
414
+ }, "strip", zod.ZodTypeAny, {
415
+ data: string[];
416
+ }, {
417
+ data: string[];
418
+ }>;
419
+ /**
420
+ * Returns full call details including target information and input fields.
421
+ * @summary Get call details by ID
422
+ */
423
+ export declare const GetCallParams: zod.ZodObject<{
424
+ callId: zod.ZodString;
425
+ }, "strip", zod.ZodTypeAny, {
426
+ callId: string;
427
+ }, {
428
+ callId: string;
429
+ }>;
430
+ export declare const GetCallResponse: zod.ZodObject<{
431
+ call: zod.ZodOptional<zod.ZodNullable<zod.ZodUnknown>>;
432
+ }, "strip", zod.ZodTypeAny, {
433
+ call?: unknown;
434
+ }, {
435
+ call?: unknown;
436
+ }>;
437
+ /**
438
+ * Returns the review status (reviewed flag and notes) for the specified call IDs.
439
+ * @summary Get review status for multiple calls
440
+ */
441
+ export declare const GetReviewStatusBody: zod.ZodObject<{
442
+ callIds: zod.ZodArray<zod.ZodString, "many">;
443
+ }, "strip", zod.ZodTypeAny, {
444
+ callIds: string[];
445
+ }, {
446
+ callIds: string[];
447
+ }>;
448
+ export declare const GetReviewStatusResponse: zod.ZodObject<{
449
+ data: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
450
+ reviewed: zod.ZodBoolean;
451
+ notes: zod.ZodNullable<zod.ZodString>;
452
+ }, "strip", zod.ZodTypeAny, {
453
+ reviewed: boolean;
454
+ notes: string | null;
455
+ }, {
456
+ reviewed: boolean;
457
+ notes: string | null;
458
+ }>>;
459
+ }, "strip", zod.ZodTypeAny, {
460
+ data: Record<string, {
461
+ reviewed: boolean;
462
+ notes: string | null;
463
+ }>;
464
+ }, {
465
+ data: Record<string, {
466
+ reviewed: boolean;
467
+ notes: string | null;
468
+ }>;
469
+ }>;
470
+ /**
471
+ * Updates the reviewed flag and/or notes for a specific call.
472
+ * @summary Update call review status
473
+ */
474
+ export declare const UpdateReviewParams: zod.ZodObject<{
475
+ callId: zod.ZodString;
476
+ }, "strip", zod.ZodTypeAny, {
477
+ callId: string;
478
+ }, {
479
+ callId: string;
480
+ }>;
481
+ export declare const updateReviewBodyNotesMax = 1000;
482
+ export declare const UpdateReviewBody: zod.ZodObject<{
483
+ reviewed: zod.ZodOptional<zod.ZodBoolean>;
484
+ notes: zod.ZodOptional<zod.ZodString>;
485
+ }, "strip", zod.ZodTypeAny, {
486
+ reviewed?: boolean | undefined;
487
+ notes?: string | undefined;
488
+ }, {
489
+ reviewed?: boolean | undefined;
490
+ notes?: string | undefined;
491
+ }>;
492
+ export declare const UpdateReviewResponse: zod.ZodObject<{
493
+ data: zod.ZodObject<{
494
+ reviewed: zod.ZodBoolean;
495
+ notes: zod.ZodNullable<zod.ZodString>;
496
+ }, "strip", zod.ZodTypeAny, {
497
+ reviewed: boolean;
498
+ notes: string | null;
499
+ }, {
500
+ reviewed: boolean;
501
+ notes: string | null;
502
+ }>;
503
+ }, "strip", zod.ZodTypeAny, {
504
+ data: {
505
+ reviewed: boolean;
506
+ notes: string | null;
507
+ };
508
+ }, {
509
+ data: {
510
+ reviewed: boolean;
511
+ notes: string | null;
512
+ };
513
+ }>;
514
+ /**
515
+ * Generates journey JSON from schedule config and validates compliance rules. Returns journey, warnings, target count, and estimated steps without persisting anything.
516
+ * @summary Preview a campaign schedule
517
+ */
518
+ export declare const previewBodyTimeSlotsItemTimeRegExp: RegExp;
519
+ export declare const PreviewBody: zod.ZodObject<{
520
+ campaign_id: zod.ZodString;
521
+ name: zod.ZodOptional<zod.ZodString>;
522
+ time_slots: zod.ZodArray<zod.ZodObject<{
523
+ id: zod.ZodString;
524
+ time: zod.ZodString;
525
+ days_of_week: zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<1>, zod.ZodLiteral<2>, zod.ZodLiteral<3>, zod.ZodLiteral<4>, zod.ZodLiteral<5>, zod.ZodLiteral<6>, zod.ZodLiteral<7>]>, "many">;
526
+ }, "strip", zod.ZodTypeAny, {
527
+ id: string;
528
+ time: string;
529
+ days_of_week: (2 | 1 | 6 | 4 | 3 | 5 | 7)[];
530
+ }, {
531
+ id: string;
532
+ time: string;
533
+ days_of_week: (2 | 1 | 6 | 4 | 3 | 5 | 7)[];
534
+ }>, "many">;
535
+ phone_rotation: zod.ZodObject<{
536
+ statuses: zod.ZodArray<zod.ZodEnum<["primary", "secondary", "tertiary", "quaternary", "quinary", "senary", "septenary"]>, "many">;
537
+ minutes_between: zod.ZodNumber;
538
+ }, "strip", zod.ZodTypeAny, {
539
+ statuses: ("primary" | "secondary" | "tertiary" | "quaternary" | "quinary" | "senary" | "septenary")[];
540
+ minutes_between: number;
541
+ }, {
542
+ statuses: ("primary" | "secondary" | "tertiary" | "quaternary" | "quinary" | "senary" | "septenary")[];
543
+ minutes_between: number;
544
+ }>;
545
+ }, "strip", zod.ZodTypeAny, {
546
+ campaign_id: string;
547
+ time_slots: {
548
+ id: string;
549
+ time: string;
550
+ days_of_week: (2 | 1 | 6 | 4 | 3 | 5 | 7)[];
551
+ }[];
552
+ phone_rotation: {
553
+ statuses: ("primary" | "secondary" | "tertiary" | "quaternary" | "quinary" | "senary" | "septenary")[];
554
+ minutes_between: number;
555
+ };
556
+ name?: string | undefined;
557
+ }, {
558
+ campaign_id: string;
559
+ time_slots: {
560
+ id: string;
561
+ time: string;
562
+ days_of_week: (2 | 1 | 6 | 4 | 3 | 5 | 7)[];
563
+ }[];
564
+ phone_rotation: {
565
+ statuses: ("primary" | "secondary" | "tertiary" | "quaternary" | "quinary" | "senary" | "septenary")[];
566
+ minutes_between: number;
567
+ };
568
+ name?: string | undefined;
569
+ }>;
570
+ export declare const PreviewResponse: zod.ZodObject<{
571
+ data: zod.ZodObject<{
572
+ journey: zod.ZodObject<{
573
+ name: zod.ZodString;
574
+ steps: zod.ZodArray<zod.ZodObject<{
575
+ name: zod.ZodString;
576
+ type: zod.ZodEnum<["call", "message", "wait"]>;
577
+ params: zod.ZodObject<{
578
+ cron: zod.ZodObject<{
579
+ year: zod.ZodString;
580
+ month: zod.ZodString;
581
+ day_of_month: zod.ZodString;
582
+ day_of_week: zod.ZodString;
583
+ hours: zod.ZodString;
584
+ minutes: zod.ZodString;
585
+ }, "strip", zod.ZodTypeAny, {
586
+ year: string;
587
+ month: string;
588
+ day_of_month: string;
589
+ day_of_week: string;
590
+ hours: string;
591
+ minutes: string;
592
+ }, {
593
+ year: string;
594
+ month: string;
595
+ day_of_month: string;
596
+ day_of_week: string;
597
+ hours: string;
598
+ minutes: string;
599
+ }>;
600
+ max_attempts: zod.ZodNumber;
601
+ label: zod.ZodOptional<zod.ZodString>;
602
+ slug: zod.ZodOptional<zod.ZodString>;
603
+ filter: zod.ZodOptional<zod.ZodObject<{
604
+ phone_number_status: zod.ZodOptional<zod.ZodString>;
605
+ timezone: zod.ZodOptional<zod.ZodString>;
606
+ }, "strip", zod.ZodTypeAny, {
607
+ timezone?: string | undefined;
608
+ phone_number_status?: string | undefined;
609
+ }, {
610
+ timezone?: string | undefined;
611
+ phone_number_status?: string | undefined;
612
+ }>>;
613
+ }, "strip", zod.ZodTypeAny, {
614
+ max_attempts: number;
615
+ cron: {
616
+ year: string;
617
+ month: string;
618
+ day_of_month: string;
619
+ day_of_week: string;
620
+ hours: string;
621
+ minutes: string;
622
+ };
623
+ filter?: {
624
+ timezone?: string | undefined;
625
+ phone_number_status?: string | undefined;
626
+ } | undefined;
627
+ slug?: string | undefined;
628
+ label?: string | undefined;
629
+ }, {
630
+ max_attempts: number;
631
+ cron: {
632
+ year: string;
633
+ month: string;
634
+ day_of_month: string;
635
+ day_of_week: string;
636
+ hours: string;
637
+ minutes: string;
638
+ };
639
+ filter?: {
640
+ timezone?: string | undefined;
641
+ phone_number_status?: string | undefined;
642
+ } | undefined;
643
+ slug?: string | undefined;
644
+ label?: string | undefined;
645
+ }>;
646
+ condition: zod.ZodOptional<zod.ZodObject<{
647
+ if: zod.ZodUnknown;
648
+ }, "strip", zod.ZodTypeAny, {
649
+ if?: unknown;
650
+ }, {
651
+ if?: unknown;
652
+ }>>;
653
+ next: zod.ZodOptional<zod.ZodString>;
654
+ }, "strip", zod.ZodTypeAny, {
655
+ params: {
656
+ max_attempts: number;
657
+ cron: {
658
+ year: string;
659
+ month: string;
660
+ day_of_month: string;
661
+ day_of_week: string;
662
+ hours: string;
663
+ minutes: string;
664
+ };
665
+ filter?: {
666
+ timezone?: string | undefined;
667
+ phone_number_status?: string | undefined;
668
+ } | undefined;
669
+ slug?: string | undefined;
670
+ label?: string | undefined;
671
+ };
672
+ type: "message" | "call" | "wait";
673
+ name: string;
674
+ condition?: {
675
+ if?: unknown;
676
+ } | undefined;
677
+ next?: string | undefined;
678
+ }, {
679
+ params: {
680
+ max_attempts: number;
681
+ cron: {
682
+ year: string;
683
+ month: string;
684
+ day_of_month: string;
685
+ day_of_week: string;
686
+ hours: string;
687
+ minutes: string;
688
+ };
689
+ filter?: {
690
+ timezone?: string | undefined;
691
+ phone_number_status?: string | undefined;
692
+ } | undefined;
693
+ slug?: string | undefined;
694
+ label?: string | undefined;
695
+ };
696
+ type: "message" | "call" | "wait";
697
+ name: string;
698
+ condition?: {
699
+ if?: unknown;
700
+ } | undefined;
701
+ next?: string | undefined;
702
+ }>, "many">;
703
+ }, "strip", zod.ZodTypeAny, {
704
+ name: string;
705
+ steps: {
706
+ params: {
707
+ max_attempts: number;
708
+ cron: {
709
+ year: string;
710
+ month: string;
711
+ day_of_month: string;
712
+ day_of_week: string;
713
+ hours: string;
714
+ minutes: string;
715
+ };
716
+ filter?: {
717
+ timezone?: string | undefined;
718
+ phone_number_status?: string | undefined;
719
+ } | undefined;
720
+ slug?: string | undefined;
721
+ label?: string | undefined;
722
+ };
723
+ type: "message" | "call" | "wait";
724
+ name: string;
725
+ condition?: {
726
+ if?: unknown;
727
+ } | undefined;
728
+ next?: string | undefined;
729
+ }[];
730
+ }, {
731
+ name: string;
732
+ steps: {
733
+ params: {
734
+ max_attempts: number;
735
+ cron: {
736
+ year: string;
737
+ month: string;
738
+ day_of_month: string;
739
+ day_of_week: string;
740
+ hours: string;
741
+ minutes: string;
742
+ };
743
+ filter?: {
744
+ timezone?: string | undefined;
745
+ phone_number_status?: string | undefined;
746
+ } | undefined;
747
+ slug?: string | undefined;
748
+ label?: string | undefined;
749
+ };
750
+ type: "message" | "call" | "wait";
751
+ name: string;
752
+ condition?: {
753
+ if?: unknown;
754
+ } | undefined;
755
+ next?: string | undefined;
756
+ }[];
757
+ }>;
758
+ warnings: zod.ZodArray<zod.ZodObject<{
759
+ type: zod.ZodEnum<["outside_contact_hours", "no_contact_hours", "holiday_conflict", "invalid_cron", "slot_overlap"]>;
760
+ message: zod.ZodString;
761
+ slot_id: zod.ZodString;
762
+ severity: zod.ZodEnum<["error", "warning", "info"]>;
763
+ day: zod.ZodOptional<zod.ZodString>;
764
+ time: zod.ZodOptional<zod.ZodString>;
765
+ }, "strip", zod.ZodTypeAny, {
766
+ message: string;
767
+ type: "outside_contact_hours" | "no_contact_hours" | "holiday_conflict" | "invalid_cron" | "slot_overlap";
768
+ slot_id: string;
769
+ severity: "error" | "warning" | "info";
770
+ time?: string | undefined;
771
+ day?: string | undefined;
772
+ }, {
773
+ message: string;
774
+ type: "outside_contact_hours" | "no_contact_hours" | "holiday_conflict" | "invalid_cron" | "slot_overlap";
775
+ slot_id: string;
776
+ severity: "error" | "warning" | "info";
777
+ time?: string | undefined;
778
+ day?: string | undefined;
779
+ }>, "many">;
780
+ target_count: zod.ZodNumber;
781
+ estimated_steps: zod.ZodNumber;
782
+ }, "strip", zod.ZodTypeAny, {
783
+ journey: {
784
+ name: string;
785
+ steps: {
786
+ params: {
787
+ max_attempts: number;
788
+ cron: {
789
+ year: string;
790
+ month: string;
791
+ day_of_month: string;
792
+ day_of_week: string;
793
+ hours: string;
794
+ minutes: string;
795
+ };
796
+ filter?: {
797
+ timezone?: string | undefined;
798
+ phone_number_status?: string | undefined;
799
+ } | undefined;
800
+ slug?: string | undefined;
801
+ label?: string | undefined;
802
+ };
803
+ type: "message" | "call" | "wait";
804
+ name: string;
805
+ condition?: {
806
+ if?: unknown;
807
+ } | undefined;
808
+ next?: string | undefined;
809
+ }[];
810
+ };
811
+ warnings: {
812
+ message: string;
813
+ type: "outside_contact_hours" | "no_contact_hours" | "holiday_conflict" | "invalid_cron" | "slot_overlap";
814
+ slot_id: string;
815
+ severity: "error" | "warning" | "info";
816
+ time?: string | undefined;
817
+ day?: string | undefined;
818
+ }[];
819
+ target_count: number;
820
+ estimated_steps: number;
821
+ }, {
822
+ journey: {
823
+ name: string;
824
+ steps: {
825
+ params: {
826
+ max_attempts: number;
827
+ cron: {
828
+ year: string;
829
+ month: string;
830
+ day_of_month: string;
831
+ day_of_week: string;
832
+ hours: string;
833
+ minutes: string;
834
+ };
835
+ filter?: {
836
+ timezone?: string | undefined;
837
+ phone_number_status?: string | undefined;
838
+ } | undefined;
839
+ slug?: string | undefined;
840
+ label?: string | undefined;
841
+ };
842
+ type: "message" | "call" | "wait";
843
+ name: string;
844
+ condition?: {
845
+ if?: unknown;
846
+ } | undefined;
847
+ next?: string | undefined;
848
+ }[];
849
+ };
850
+ warnings: {
851
+ message: string;
852
+ type: "outside_contact_hours" | "no_contact_hours" | "holiday_conflict" | "invalid_cron" | "slot_overlap";
853
+ slot_id: string;
854
+ severity: "error" | "warning" | "info";
855
+ time?: string | undefined;
856
+ day?: string | undefined;
857
+ }[];
858
+ target_count: number;
859
+ estimated_steps: number;
860
+ }>;
861
+ }, "strip", zod.ZodTypeAny, {
862
+ data: {
863
+ journey: {
864
+ name: string;
865
+ steps: {
866
+ params: {
867
+ max_attempts: number;
868
+ cron: {
869
+ year: string;
870
+ month: string;
871
+ day_of_month: string;
872
+ day_of_week: string;
873
+ hours: string;
874
+ minutes: string;
875
+ };
876
+ filter?: {
877
+ timezone?: string | undefined;
878
+ phone_number_status?: string | undefined;
879
+ } | undefined;
880
+ slug?: string | undefined;
881
+ label?: string | undefined;
882
+ };
883
+ type: "message" | "call" | "wait";
884
+ name: string;
885
+ condition?: {
886
+ if?: unknown;
887
+ } | undefined;
888
+ next?: string | undefined;
889
+ }[];
890
+ };
891
+ warnings: {
892
+ message: string;
893
+ type: "outside_contact_hours" | "no_contact_hours" | "holiday_conflict" | "invalid_cron" | "slot_overlap";
894
+ slot_id: string;
895
+ severity: "error" | "warning" | "info";
896
+ time?: string | undefined;
897
+ day?: string | undefined;
898
+ }[];
899
+ target_count: number;
900
+ estimated_steps: number;
901
+ };
902
+ }, {
903
+ data: {
904
+ journey: {
905
+ name: string;
906
+ steps: {
907
+ params: {
908
+ max_attempts: number;
909
+ cron: {
910
+ year: string;
911
+ month: string;
912
+ day_of_month: string;
913
+ day_of_week: string;
914
+ hours: string;
915
+ minutes: string;
916
+ };
917
+ filter?: {
918
+ timezone?: string | undefined;
919
+ phone_number_status?: string | undefined;
920
+ } | undefined;
921
+ slug?: string | undefined;
922
+ label?: string | undefined;
923
+ };
924
+ type: "message" | "call" | "wait";
925
+ name: string;
926
+ condition?: {
927
+ if?: unknown;
928
+ } | undefined;
929
+ next?: string | undefined;
930
+ }[];
931
+ };
932
+ warnings: {
933
+ message: string;
934
+ type: "outside_contact_hours" | "no_contact_hours" | "holiday_conflict" | "invalid_cron" | "slot_overlap";
935
+ slot_id: string;
936
+ severity: "error" | "warning" | "info";
937
+ time?: string | undefined;
938
+ day?: string | undefined;
939
+ }[];
940
+ target_count: number;
941
+ estimated_steps: number;
942
+ };
943
+ }>;
944
+ /**
945
+ * Creates a journey from schedule config. Validates compliance rules and rejects with 400 if blocking errors exist. Returns 409 if journey name already exists. Optionally activates the journey.
946
+ * @summary Create a campaign schedule
947
+ */
948
+ export declare const createBodyTimeSlotsItemTimeRegExp: RegExp;
949
+ export declare const CreateBody: zod.ZodObject<{
950
+ campaign_id: zod.ZodString;
951
+ name: zod.ZodOptional<zod.ZodString>;
952
+ time_slots: zod.ZodArray<zod.ZodObject<{
953
+ id: zod.ZodString;
954
+ time: zod.ZodString;
955
+ days_of_week: zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<1>, zod.ZodLiteral<2>, zod.ZodLiteral<3>, zod.ZodLiteral<4>, zod.ZodLiteral<5>, zod.ZodLiteral<6>, zod.ZodLiteral<7>]>, "many">;
956
+ }, "strip", zod.ZodTypeAny, {
957
+ id: string;
958
+ time: string;
959
+ days_of_week: (2 | 1 | 6 | 4 | 3 | 5 | 7)[];
960
+ }, {
961
+ id: string;
962
+ time: string;
963
+ days_of_week: (2 | 1 | 6 | 4 | 3 | 5 | 7)[];
964
+ }>, "many">;
965
+ phone_rotation: zod.ZodObject<{
966
+ statuses: zod.ZodArray<zod.ZodEnum<["primary", "secondary", "tertiary", "quaternary", "quinary", "senary", "septenary"]>, "many">;
967
+ minutes_between: zod.ZodNumber;
968
+ }, "strip", zod.ZodTypeAny, {
969
+ statuses: ("primary" | "secondary" | "tertiary" | "quaternary" | "quinary" | "senary" | "septenary")[];
970
+ minutes_between: number;
971
+ }, {
972
+ statuses: ("primary" | "secondary" | "tertiary" | "quaternary" | "quinary" | "senary" | "septenary")[];
973
+ minutes_between: number;
974
+ }>;
975
+ activate: zod.ZodOptional<zod.ZodBoolean>;
976
+ }, "strip", zod.ZodTypeAny, {
977
+ campaign_id: string;
978
+ time_slots: {
979
+ id: string;
980
+ time: string;
981
+ days_of_week: (2 | 1 | 6 | 4 | 3 | 5 | 7)[];
982
+ }[];
983
+ phone_rotation: {
984
+ statuses: ("primary" | "secondary" | "tertiary" | "quaternary" | "quinary" | "senary" | "septenary")[];
985
+ minutes_between: number;
986
+ };
987
+ name?: string | undefined;
988
+ activate?: boolean | undefined;
989
+ }, {
990
+ campaign_id: string;
991
+ time_slots: {
992
+ id: string;
993
+ time: string;
994
+ days_of_week: (2 | 1 | 6 | 4 | 3 | 5 | 7)[];
995
+ }[];
996
+ phone_rotation: {
997
+ statuses: ("primary" | "secondary" | "tertiary" | "quaternary" | "quinary" | "senary" | "septenary")[];
998
+ minutes_between: number;
999
+ };
1000
+ name?: string | undefined;
1001
+ activate?: boolean | undefined;
1002
+ }>;