evo360-types 1.3.715 → 1.3.719

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,615 @@
1
+ import { z } from "zod";
2
+ export declare const zForwardBatchStatusSchema: z.ZodEnum<["running", "done", "done_with_failures"]>;
3
+ export declare const zForwardItemStatusSchema: z.ZodEnum<["pending", "sending", "sent", "failed", "skipped"]>;
4
+ export declare const zForwardSkipReasonSchema: z.ZodEnum<["window_closed", "type_not_supported", "media_too_large", "media_unavailable", "channel_not_supported", "attachments_over_limit", "recipient_address_missing", "email_identity_conflict"]>;
5
+ export declare const zForwardFailReasonSchema: z.ZodEnum<["provider_error", "window_closed", "send_budget_exceeded", "interrupted"]>;
6
+ export declare const zForwardItemReasonSchema: z.ZodUnion<[z.ZodEnum<["window_closed", "type_not_supported", "media_too_large", "media_unavailable", "channel_not_supported", "attachments_over_limit", "recipient_address_missing", "email_identity_conflict"]>, z.ZodEnum<["provider_error", "window_closed", "send_budget_exceeded", "interrupted"]>]>;
7
+ export declare const zForwardContentKindSchema: z.ZodEnum<["text", "image", "video", "audio", "document"]>;
8
+ export declare const zForwardRecipientProviderSchema: z.ZodString;
9
+ export declare const zForwardSpecialKindSchema: z.ZodEnum<["doctor", "secretary", "employee"]>;
10
+ export declare const zForwardActorSchema: z.ZodObject<{
11
+ user_id: z.ZodString;
12
+ display_name: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ display_name: string;
15
+ user_id: string;
16
+ }, {
17
+ display_name: string;
18
+ user_id: string;
19
+ }>;
20
+ export declare const zForwardSourceSchema: z.ZodObject<{
21
+ thread_id: z.ZodString;
22
+ ticket_id: z.ZodString;
23
+ department_id: z.ZodNullable<z.ZodString>;
24
+ contact_id: z.ZodString;
25
+ contact_name: z.ZodString;
26
+ channel_id: z.ZodNullable<z.ZodString>;
27
+ channel_type: z.ZodNullable<z.ZodString>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ channel_id: string | null;
30
+ department_id: string | null;
31
+ contact_id: string;
32
+ thread_id: string;
33
+ ticket_id: string;
34
+ channel_type: string | null;
35
+ contact_name: string;
36
+ }, {
37
+ channel_id: string | null;
38
+ department_id: string | null;
39
+ contact_id: string;
40
+ thread_id: string;
41
+ ticket_id: string;
42
+ channel_type: string | null;
43
+ contact_name: string;
44
+ }>;
45
+ export declare const zForwardRecipientSchema: z.ZodObject<{
46
+ thread_id: z.ZodString;
47
+ contact_id: z.ZodString;
48
+ contact_name: z.ZodString;
49
+ channel_id: z.ZodString;
50
+ channel_type: z.ZodString;
51
+ provider: z.ZodString;
52
+ special_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<["doctor", "secretary", "employee"]>>>;
53
+ email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ provider: string;
56
+ channel_id: string;
57
+ contact_id: string;
58
+ thread_id: string;
59
+ channel_type: string;
60
+ contact_name: string;
61
+ special_kind?: "employee" | "doctor" | "secretary" | null | undefined;
62
+ email_address?: string | null | undefined;
63
+ }, {
64
+ provider: string;
65
+ channel_id: string;
66
+ contact_id: string;
67
+ thread_id: string;
68
+ channel_type: string;
69
+ contact_name: string;
70
+ special_kind?: "employee" | "doctor" | "secretary" | null | undefined;
71
+ email_address?: string | null | undefined;
72
+ }>;
73
+ export declare const zForwardCountsSchema: z.ZodObject<{
74
+ total: z.ZodNumber;
75
+ sent: z.ZodNumber;
76
+ failed: z.ZodNumber;
77
+ skipped: z.ZodNumber;
78
+ }, "strip", z.ZodTypeAny, {
79
+ skipped: number;
80
+ failed: number;
81
+ sent: number;
82
+ total: number;
83
+ }, {
84
+ skipped: number;
85
+ failed: number;
86
+ sent: number;
87
+ total: number;
88
+ }>;
89
+ export declare const zForwardBatchSchema: z.ZodObject<{
90
+ id: z.ZodString;
91
+ ref: z.ZodAny;
92
+ model_ver: z.ZodDefault<z.ZodNumber>;
93
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
94
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
95
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
96
+ } & {
97
+ forward_id: z.ZodString;
98
+ tenant: z.ZodString;
99
+ created_by: z.ZodObject<{
100
+ user_id: z.ZodString;
101
+ display_name: z.ZodString;
102
+ }, "strip", z.ZodTypeAny, {
103
+ display_name: string;
104
+ user_id: string;
105
+ }, {
106
+ display_name: string;
107
+ user_id: string;
108
+ }>;
109
+ source: z.ZodObject<{
110
+ thread_id: z.ZodString;
111
+ ticket_id: z.ZodString;
112
+ department_id: z.ZodNullable<z.ZodString>;
113
+ contact_id: z.ZodString;
114
+ contact_name: z.ZodString;
115
+ channel_id: z.ZodNullable<z.ZodString>;
116
+ channel_type: z.ZodNullable<z.ZodString>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ channel_id: string | null;
119
+ department_id: string | null;
120
+ contact_id: string;
121
+ thread_id: string;
122
+ ticket_id: string;
123
+ channel_type: string | null;
124
+ contact_name: string;
125
+ }, {
126
+ channel_id: string | null;
127
+ department_id: string | null;
128
+ contact_id: string;
129
+ thread_id: string;
130
+ ticket_id: string;
131
+ channel_type: string | null;
132
+ contact_name: string;
133
+ }>;
134
+ message_ids: z.ZodArray<z.ZodString, "many">;
135
+ intro_text: z.ZodNullable<z.ZodString>;
136
+ recipients: z.ZodArray<z.ZodObject<{
137
+ thread_id: z.ZodString;
138
+ contact_id: z.ZodString;
139
+ contact_name: z.ZodString;
140
+ channel_id: z.ZodString;
141
+ channel_type: z.ZodString;
142
+ provider: z.ZodString;
143
+ special_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<["doctor", "secretary", "employee"]>>>;
144
+ email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ provider: string;
147
+ channel_id: string;
148
+ contact_id: string;
149
+ thread_id: string;
150
+ channel_type: string;
151
+ contact_name: string;
152
+ special_kind?: "employee" | "doctor" | "secretary" | null | undefined;
153
+ email_address?: string | null | undefined;
154
+ }, {
155
+ provider: string;
156
+ channel_id: string;
157
+ contact_id: string;
158
+ thread_id: string;
159
+ channel_type: string;
160
+ contact_name: string;
161
+ special_kind?: "employee" | "doctor" | "secretary" | null | undefined;
162
+ email_address?: string | null | undefined;
163
+ }>, "many">;
164
+ status: z.ZodEnum<["running", "done", "done_with_failures"]>;
165
+ counts: z.ZodObject<{
166
+ total: z.ZodNumber;
167
+ sent: z.ZodNumber;
168
+ failed: z.ZodNumber;
169
+ skipped: z.ZodNumber;
170
+ }, "strip", z.ZodTypeAny, {
171
+ skipped: number;
172
+ failed: number;
173
+ sent: number;
174
+ total: number;
175
+ }, {
176
+ skipped: number;
177
+ failed: number;
178
+ sent: number;
179
+ total: number;
180
+ }>;
181
+ recipients_to_dispatch: z.ZodNumber;
182
+ recipients_done: z.ZodNumber;
183
+ dispatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
184
+ claimed_at: z.ZodDate;
185
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ claimed_at: Date;
188
+ finished_at?: Date | null | undefined;
189
+ }, {
190
+ claimed_at: Date;
191
+ finished_at?: Date | null | undefined;
192
+ }>>>;
193
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
194
+ email_subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
196
+ id: z.ZodString;
197
+ ref: z.ZodAny;
198
+ model_ver: z.ZodDefault<z.ZodNumber>;
199
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
200
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
201
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
202
+ } & {
203
+ forward_id: z.ZodString;
204
+ tenant: z.ZodString;
205
+ created_by: z.ZodObject<{
206
+ user_id: z.ZodString;
207
+ display_name: z.ZodString;
208
+ }, "strip", z.ZodTypeAny, {
209
+ display_name: string;
210
+ user_id: string;
211
+ }, {
212
+ display_name: string;
213
+ user_id: string;
214
+ }>;
215
+ source: z.ZodObject<{
216
+ thread_id: z.ZodString;
217
+ ticket_id: z.ZodString;
218
+ department_id: z.ZodNullable<z.ZodString>;
219
+ contact_id: z.ZodString;
220
+ contact_name: z.ZodString;
221
+ channel_id: z.ZodNullable<z.ZodString>;
222
+ channel_type: z.ZodNullable<z.ZodString>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ channel_id: string | null;
225
+ department_id: string | null;
226
+ contact_id: string;
227
+ thread_id: string;
228
+ ticket_id: string;
229
+ channel_type: string | null;
230
+ contact_name: string;
231
+ }, {
232
+ channel_id: string | null;
233
+ department_id: string | null;
234
+ contact_id: string;
235
+ thread_id: string;
236
+ ticket_id: string;
237
+ channel_type: string | null;
238
+ contact_name: string;
239
+ }>;
240
+ message_ids: z.ZodArray<z.ZodString, "many">;
241
+ intro_text: z.ZodNullable<z.ZodString>;
242
+ recipients: z.ZodArray<z.ZodObject<{
243
+ thread_id: z.ZodString;
244
+ contact_id: z.ZodString;
245
+ contact_name: z.ZodString;
246
+ channel_id: z.ZodString;
247
+ channel_type: z.ZodString;
248
+ provider: z.ZodString;
249
+ special_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<["doctor", "secretary", "employee"]>>>;
250
+ email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ provider: string;
253
+ channel_id: string;
254
+ contact_id: string;
255
+ thread_id: string;
256
+ channel_type: string;
257
+ contact_name: string;
258
+ special_kind?: "employee" | "doctor" | "secretary" | null | undefined;
259
+ email_address?: string | null | undefined;
260
+ }, {
261
+ provider: string;
262
+ channel_id: string;
263
+ contact_id: string;
264
+ thread_id: string;
265
+ channel_type: string;
266
+ contact_name: string;
267
+ special_kind?: "employee" | "doctor" | "secretary" | null | undefined;
268
+ email_address?: string | null | undefined;
269
+ }>, "many">;
270
+ status: z.ZodEnum<["running", "done", "done_with_failures"]>;
271
+ counts: z.ZodObject<{
272
+ total: z.ZodNumber;
273
+ sent: z.ZodNumber;
274
+ failed: z.ZodNumber;
275
+ skipped: z.ZodNumber;
276
+ }, "strip", z.ZodTypeAny, {
277
+ skipped: number;
278
+ failed: number;
279
+ sent: number;
280
+ total: number;
281
+ }, {
282
+ skipped: number;
283
+ failed: number;
284
+ sent: number;
285
+ total: number;
286
+ }>;
287
+ recipients_to_dispatch: z.ZodNumber;
288
+ recipients_done: z.ZodNumber;
289
+ dispatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
290
+ claimed_at: z.ZodDate;
291
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
292
+ }, "strip", z.ZodTypeAny, {
293
+ claimed_at: Date;
294
+ finished_at?: Date | null | undefined;
295
+ }, {
296
+ claimed_at: Date;
297
+ finished_at?: Date | null | undefined;
298
+ }>>>;
299
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
300
+ email_subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
302
+ id: z.ZodString;
303
+ ref: z.ZodAny;
304
+ model_ver: z.ZodDefault<z.ZodNumber>;
305
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
306
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
307
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
308
+ } & {
309
+ forward_id: z.ZodString;
310
+ tenant: z.ZodString;
311
+ created_by: z.ZodObject<{
312
+ user_id: z.ZodString;
313
+ display_name: z.ZodString;
314
+ }, "strip", z.ZodTypeAny, {
315
+ display_name: string;
316
+ user_id: string;
317
+ }, {
318
+ display_name: string;
319
+ user_id: string;
320
+ }>;
321
+ source: z.ZodObject<{
322
+ thread_id: z.ZodString;
323
+ ticket_id: z.ZodString;
324
+ department_id: z.ZodNullable<z.ZodString>;
325
+ contact_id: z.ZodString;
326
+ contact_name: z.ZodString;
327
+ channel_id: z.ZodNullable<z.ZodString>;
328
+ channel_type: z.ZodNullable<z.ZodString>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ channel_id: string | null;
331
+ department_id: string | null;
332
+ contact_id: string;
333
+ thread_id: string;
334
+ ticket_id: string;
335
+ channel_type: string | null;
336
+ contact_name: string;
337
+ }, {
338
+ channel_id: string | null;
339
+ department_id: string | null;
340
+ contact_id: string;
341
+ thread_id: string;
342
+ ticket_id: string;
343
+ channel_type: string | null;
344
+ contact_name: string;
345
+ }>;
346
+ message_ids: z.ZodArray<z.ZodString, "many">;
347
+ intro_text: z.ZodNullable<z.ZodString>;
348
+ recipients: z.ZodArray<z.ZodObject<{
349
+ thread_id: z.ZodString;
350
+ contact_id: z.ZodString;
351
+ contact_name: z.ZodString;
352
+ channel_id: z.ZodString;
353
+ channel_type: z.ZodString;
354
+ provider: z.ZodString;
355
+ special_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<["doctor", "secretary", "employee"]>>>;
356
+ email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ provider: string;
359
+ channel_id: string;
360
+ contact_id: string;
361
+ thread_id: string;
362
+ channel_type: string;
363
+ contact_name: string;
364
+ special_kind?: "employee" | "doctor" | "secretary" | null | undefined;
365
+ email_address?: string | null | undefined;
366
+ }, {
367
+ provider: string;
368
+ channel_id: string;
369
+ contact_id: string;
370
+ thread_id: string;
371
+ channel_type: string;
372
+ contact_name: string;
373
+ special_kind?: "employee" | "doctor" | "secretary" | null | undefined;
374
+ email_address?: string | null | undefined;
375
+ }>, "many">;
376
+ status: z.ZodEnum<["running", "done", "done_with_failures"]>;
377
+ counts: z.ZodObject<{
378
+ total: z.ZodNumber;
379
+ sent: z.ZodNumber;
380
+ failed: z.ZodNumber;
381
+ skipped: z.ZodNumber;
382
+ }, "strip", z.ZodTypeAny, {
383
+ skipped: number;
384
+ failed: number;
385
+ sent: number;
386
+ total: number;
387
+ }, {
388
+ skipped: number;
389
+ failed: number;
390
+ sent: number;
391
+ total: number;
392
+ }>;
393
+ recipients_to_dispatch: z.ZodNumber;
394
+ recipients_done: z.ZodNumber;
395
+ dispatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
396
+ claimed_at: z.ZodDate;
397
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ claimed_at: Date;
400
+ finished_at?: Date | null | undefined;
401
+ }, {
402
+ claimed_at: Date;
403
+ finished_at?: Date | null | undefined;
404
+ }>>>;
405
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
406
+ email_subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
407
+ }, z.ZodTypeAny, "passthrough">>;
408
+ export declare const zForwardItemSchema: z.ZodObject<{
409
+ item_id: z.ZodString;
410
+ forward_id: z.ZodString;
411
+ recipient_thread_id: z.ZodString;
412
+ recipient_index: z.ZodNumber;
413
+ seq: z.ZodNumber;
414
+ kind: z.ZodEnum<["intro", "message"]>;
415
+ message_id: z.ZodNullable<z.ZodString>;
416
+ content_kind: z.ZodEnum<["text", "image", "video", "audio", "document"]>;
417
+ status: z.ZodEnum<["pending", "sending", "sent", "failed", "skipped"]>;
418
+ reason: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["window_closed", "type_not_supported", "media_too_large", "media_unavailable", "channel_not_supported", "attachments_over_limit", "recipient_address_missing", "email_identity_conflict"]>, z.ZodEnum<["provider_error", "window_closed", "send_budget_exceeded", "interrupted"]>]>>>;
419
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
420
+ error_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
421
+ dest_message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
422
+ attachment_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
423
+ dest_notification_message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
424
+ sent_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
425
+ updated_at: z.ZodOptional<z.ZodDate>;
426
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
427
+ item_id: z.ZodString;
428
+ forward_id: z.ZodString;
429
+ recipient_thread_id: z.ZodString;
430
+ recipient_index: z.ZodNumber;
431
+ seq: z.ZodNumber;
432
+ kind: z.ZodEnum<["intro", "message"]>;
433
+ message_id: z.ZodNullable<z.ZodString>;
434
+ content_kind: z.ZodEnum<["text", "image", "video", "audio", "document"]>;
435
+ status: z.ZodEnum<["pending", "sending", "sent", "failed", "skipped"]>;
436
+ reason: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["window_closed", "type_not_supported", "media_too_large", "media_unavailable", "channel_not_supported", "attachments_over_limit", "recipient_address_missing", "email_identity_conflict"]>, z.ZodEnum<["provider_error", "window_closed", "send_budget_exceeded", "interrupted"]>]>>>;
437
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
438
+ error_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
439
+ dest_message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
440
+ attachment_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
441
+ dest_notification_message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
442
+ sent_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
443
+ updated_at: z.ZodOptional<z.ZodDate>;
444
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
445
+ item_id: z.ZodString;
446
+ forward_id: z.ZodString;
447
+ recipient_thread_id: z.ZodString;
448
+ recipient_index: z.ZodNumber;
449
+ seq: z.ZodNumber;
450
+ kind: z.ZodEnum<["intro", "message"]>;
451
+ message_id: z.ZodNullable<z.ZodString>;
452
+ content_kind: z.ZodEnum<["text", "image", "video", "audio", "document"]>;
453
+ status: z.ZodEnum<["pending", "sending", "sent", "failed", "skipped"]>;
454
+ reason: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["window_closed", "type_not_supported", "media_too_large", "media_unavailable", "channel_not_supported", "attachments_over_limit", "recipient_address_missing", "email_identity_conflict"]>, z.ZodEnum<["provider_error", "window_closed", "send_budget_exceeded", "interrupted"]>]>>>;
455
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
456
+ error_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
457
+ dest_message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ attachment_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
459
+ dest_notification_message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
460
+ sent_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
461
+ updated_at: z.ZodOptional<z.ZodDate>;
462
+ }, z.ZodTypeAny, "passthrough">>;
463
+ /** Bloco `forward` gravado na mensagem de destino. */
464
+ export declare const zMessageForwardSchema: z.ZodObject<{
465
+ forward_id: z.ZodString;
466
+ item_id: z.ZodString;
467
+ source_message_id: z.ZodString;
468
+ source_thread_id: z.ZodString;
469
+ source_ticket_id: z.ZodString;
470
+ source_contact_id: z.ZodString;
471
+ source_contact_name: z.ZodString;
472
+ source_channel_type: z.ZodNullable<z.ZodString>;
473
+ source_direction: z.ZodEnum<["in", "out"]>;
474
+ source_created_at: z.ZodDate;
475
+ forwarded_by: z.ZodObject<{
476
+ user_id: z.ZodString;
477
+ display_name: z.ZodString;
478
+ }, "strip", z.ZodTypeAny, {
479
+ display_name: string;
480
+ user_id: string;
481
+ }, {
482
+ display_name: string;
483
+ user_id: string;
484
+ }>;
485
+ forwarded_at: z.ZodDate;
486
+ source_message_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
487
+ item_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
488
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
489
+ forward_id: z.ZodString;
490
+ item_id: z.ZodString;
491
+ source_message_id: z.ZodString;
492
+ source_thread_id: z.ZodString;
493
+ source_ticket_id: z.ZodString;
494
+ source_contact_id: z.ZodString;
495
+ source_contact_name: z.ZodString;
496
+ source_channel_type: z.ZodNullable<z.ZodString>;
497
+ source_direction: z.ZodEnum<["in", "out"]>;
498
+ source_created_at: z.ZodDate;
499
+ forwarded_by: z.ZodObject<{
500
+ user_id: z.ZodString;
501
+ display_name: z.ZodString;
502
+ }, "strip", z.ZodTypeAny, {
503
+ display_name: string;
504
+ user_id: string;
505
+ }, {
506
+ display_name: string;
507
+ user_id: string;
508
+ }>;
509
+ forwarded_at: z.ZodDate;
510
+ source_message_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
511
+ item_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
512
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
513
+ forward_id: z.ZodString;
514
+ item_id: z.ZodString;
515
+ source_message_id: z.ZodString;
516
+ source_thread_id: z.ZodString;
517
+ source_ticket_id: z.ZodString;
518
+ source_contact_id: z.ZodString;
519
+ source_contact_name: z.ZodString;
520
+ source_channel_type: z.ZodNullable<z.ZodString>;
521
+ source_direction: z.ZodEnum<["in", "out"]>;
522
+ source_created_at: z.ZodDate;
523
+ forwarded_by: z.ZodObject<{
524
+ user_id: z.ZodString;
525
+ display_name: z.ZodString;
526
+ }, "strip", z.ZodTypeAny, {
527
+ display_name: string;
528
+ user_id: string;
529
+ }, {
530
+ display_name: string;
531
+ user_id: string;
532
+ }>;
533
+ forwarded_at: z.ZodDate;
534
+ source_message_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
535
+ item_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
536
+ }, z.ZodTypeAny, "passthrough">>;
537
+ /**
538
+ * `.strict()` de propósito: o payload nunca carrega `gcs_uri` nem conteúdo. A
539
+ * mídia é sempre lida da mensagem gravada sob o tenant autenticado.
540
+ */
541
+ export declare const zForwardCreateRequestSchema: z.ZodEffects<z.ZodObject<{
542
+ client_request_id: z.ZodString;
543
+ source_thread_id: z.ZodString;
544
+ source_ticket_id: z.ZodString;
545
+ message_ids: z.ZodArray<z.ZodString, "many">;
546
+ intro_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
547
+ recipients: z.ZodArray<z.ZodObject<{
548
+ thread_id: z.ZodString;
549
+ channel_id: z.ZodString;
550
+ email_address: z.ZodOptional<z.ZodString>;
551
+ }, "strict", z.ZodTypeAny, {
552
+ channel_id: string;
553
+ thread_id: string;
554
+ email_address?: string | undefined;
555
+ }, {
556
+ channel_id: string;
557
+ thread_id: string;
558
+ email_address?: string | undefined;
559
+ }>, "many">;
560
+ email_subject: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
561
+ dry_run: z.ZodOptional<z.ZodBoolean>;
562
+ }, "strict", z.ZodTypeAny, {
563
+ recipients: {
564
+ channel_id: string;
565
+ thread_id: string;
566
+ email_address?: string | undefined;
567
+ }[];
568
+ message_ids: string[];
569
+ source_thread_id: string;
570
+ source_ticket_id: string;
571
+ client_request_id: string;
572
+ dry_run?: boolean | undefined;
573
+ intro_text?: string | null | undefined;
574
+ email_subject?: string | undefined;
575
+ }, {
576
+ recipients: {
577
+ channel_id: string;
578
+ thread_id: string;
579
+ email_address?: string | undefined;
580
+ }[];
581
+ message_ids: string[];
582
+ source_thread_id: string;
583
+ source_ticket_id: string;
584
+ client_request_id: string;
585
+ dry_run?: boolean | undefined;
586
+ intro_text?: string | null | undefined;
587
+ email_subject?: string | undefined;
588
+ }>, {
589
+ recipients: {
590
+ channel_id: string;
591
+ thread_id: string;
592
+ email_address?: string | undefined;
593
+ }[];
594
+ message_ids: string[];
595
+ source_thread_id: string;
596
+ source_ticket_id: string;
597
+ client_request_id: string;
598
+ dry_run?: boolean | undefined;
599
+ intro_text?: string | null | undefined;
600
+ email_subject?: string | undefined;
601
+ }, {
602
+ recipients: {
603
+ channel_id: string;
604
+ thread_id: string;
605
+ email_address?: string | undefined;
606
+ }[];
607
+ message_ids: string[];
608
+ source_thread_id: string;
609
+ source_ticket_id: string;
610
+ client_request_id: string;
611
+ dry_run?: boolean | undefined;
612
+ intro_text?: string | null | undefined;
613
+ email_subject?: string | undefined;
614
+ }>;
615
+ export type ForwardCreateRequest = z.infer<typeof zForwardCreateRequestSchema>;