@agifyai/leadify-mcp 9.7.0 → 9.7.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.
@@ -0,0 +1,1397 @@
1
+ import { z } from "zod";
2
+ export declare const identifier: z.ZodString;
3
+ export declare const scope: {
4
+ organization_id: z.ZodString;
5
+ program_id: z.ZodString;
6
+ };
7
+ export declare const channel: z.ZodEnum<["GMAIL", "LINKEDIN"]>;
8
+ export declare const filters: z.ZodObject<{
9
+ group_id: z.ZodOptional<z.ZodString>;
10
+ signal_filter: z.ZodOptional<z.ZodEffects<z.ZodObject<{
11
+ detected_since: z.ZodOptional<z.ZodString>;
12
+ detected_before: z.ZodOptional<z.ZodString>;
13
+ levels: z.ZodOptional<z.ZodArray<z.ZodEnum<["STRONG", "GOLDEN", "CRITICAL"]>, "many">>;
14
+ scope: z.ZodOptional<z.ZodEnum<["PERSON", "COMPANY", "BOTH"]>>;
15
+ }, "strict", z.ZodTypeAny, {
16
+ detected_since?: string | undefined;
17
+ detected_before?: string | undefined;
18
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
19
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
20
+ }, {
21
+ detected_since?: string | undefined;
22
+ detected_before?: string | undefined;
23
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
24
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
25
+ }>, {
26
+ detected_since?: string | undefined;
27
+ detected_before?: string | undefined;
28
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
29
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
30
+ }, {
31
+ detected_since?: string | undefined;
32
+ detected_before?: string | undefined;
33
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
34
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
35
+ }>>;
36
+ last_confirmed_outbound_before: z.ZodOptional<z.ZodObject<{
37
+ channel: z.ZodEnum<["any", "GMAIL", "LINKEDIN"]>;
38
+ before: z.ZodString;
39
+ }, "strict", z.ZodTypeAny, {
40
+ channel: "GMAIL" | "LINKEDIN" | "any";
41
+ before: string;
42
+ }, {
43
+ channel: "GMAIL" | "LINKEDIN" | "any";
44
+ before: string;
45
+ }>>;
46
+ counts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
47
+ min: z.ZodOptional<z.ZodNumber>;
48
+ max: z.ZodOptional<z.ZodNumber>;
49
+ channel: z.ZodEnum<["GMAIL", "LINKEDIN"]>;
50
+ kind: z.ZodEnum<["MESSAGE", "INVITATION"]>;
51
+ }, "strict", z.ZodTypeAny, {
52
+ channel: "GMAIL" | "LINKEDIN";
53
+ kind: "MESSAGE" | "INVITATION";
54
+ min?: number | undefined;
55
+ max?: number | undefined;
56
+ }, {
57
+ channel: "GMAIL" | "LINKEDIN";
58
+ kind: "MESSAGE" | "INVITATION";
59
+ min?: number | undefined;
60
+ max?: number | undefined;
61
+ }>, {
62
+ channel: "GMAIL" | "LINKEDIN";
63
+ kind: "MESSAGE" | "INVITATION";
64
+ min?: number | undefined;
65
+ max?: number | undefined;
66
+ }, {
67
+ channel: "GMAIL" | "LINKEDIN";
68
+ kind: "MESSAGE" | "INVITATION";
69
+ min?: number | undefined;
70
+ max?: number | undefined;
71
+ }>, {
72
+ channel: "GMAIL" | "LINKEDIN";
73
+ kind: "MESSAGE" | "INVITATION";
74
+ min?: number | undefined;
75
+ max?: number | undefined;
76
+ }, {
77
+ channel: "GMAIL" | "LINKEDIN";
78
+ kind: "MESSAGE" | "INVITATION";
79
+ min?: number | undefined;
80
+ max?: number | undefined;
81
+ }>, "many">>;
82
+ never_on: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
83
+ channel: z.ZodEnum<["GMAIL", "LINKEDIN"]>;
84
+ kind: z.ZodEnum<["MESSAGE", "INVITATION"]>;
85
+ }, "strict", z.ZodTypeAny, {
86
+ channel: "GMAIL" | "LINKEDIN";
87
+ kind: "MESSAGE" | "INVITATION";
88
+ }, {
89
+ channel: "GMAIL" | "LINKEDIN";
90
+ kind: "MESSAGE" | "INVITATION";
91
+ }>, {
92
+ channel: "GMAIL" | "LINKEDIN";
93
+ kind: "MESSAGE" | "INVITATION";
94
+ }, {
95
+ channel: "GMAIL" | "LINKEDIN";
96
+ kind: "MESSAGE" | "INVITATION";
97
+ }>, "many">>;
98
+ pending: z.ZodOptional<z.ZodBoolean>;
99
+ unknown: z.ZodOptional<z.ZodBoolean>;
100
+ reply: z.ZodOptional<z.ZodEnum<["TO_HANDLE", "WAITING", "NONE"]>>;
101
+ excluded: z.ZodOptional<z.ZodBoolean>;
102
+ }, "strict", z.ZodTypeAny, {
103
+ group_id?: string | undefined;
104
+ unknown?: boolean | undefined;
105
+ signal_filter?: {
106
+ detected_since?: string | undefined;
107
+ detected_before?: string | undefined;
108
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
109
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
110
+ } | undefined;
111
+ last_confirmed_outbound_before?: {
112
+ channel: "GMAIL" | "LINKEDIN" | "any";
113
+ before: string;
114
+ } | undefined;
115
+ counts?: {
116
+ channel: "GMAIL" | "LINKEDIN";
117
+ kind: "MESSAGE" | "INVITATION";
118
+ min?: number | undefined;
119
+ max?: number | undefined;
120
+ }[] | undefined;
121
+ never_on?: {
122
+ channel: "GMAIL" | "LINKEDIN";
123
+ kind: "MESSAGE" | "INVITATION";
124
+ }[] | undefined;
125
+ pending?: boolean | undefined;
126
+ reply?: "TO_HANDLE" | "WAITING" | "NONE" | undefined;
127
+ excluded?: boolean | undefined;
128
+ }, {
129
+ group_id?: string | undefined;
130
+ unknown?: boolean | undefined;
131
+ signal_filter?: {
132
+ detected_since?: string | undefined;
133
+ detected_before?: string | undefined;
134
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
135
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
136
+ } | undefined;
137
+ last_confirmed_outbound_before?: {
138
+ channel: "GMAIL" | "LINKEDIN" | "any";
139
+ before: string;
140
+ } | undefined;
141
+ counts?: {
142
+ channel: "GMAIL" | "LINKEDIN";
143
+ kind: "MESSAGE" | "INVITATION";
144
+ min?: number | undefined;
145
+ max?: number | undefined;
146
+ }[] | undefined;
147
+ never_on?: {
148
+ channel: "GMAIL" | "LINKEDIN";
149
+ kind: "MESSAGE" | "INVITATION";
150
+ }[] | undefined;
151
+ pending?: boolean | undefined;
152
+ reply?: "TO_HANDLE" | "WAITING" | "NONE" | undefined;
153
+ excluded?: boolean | undefined;
154
+ }>;
155
+ export declare const context: z.ZodObject<{
156
+ contract_version: z.ZodLiteral<"agent-writing-context.v1">;
157
+ context_version: z.ZodString;
158
+ facts_version: z.ZodString;
159
+ read_at: z.ZodString;
160
+ versions: z.ZodObject<{
161
+ identity: z.ZodString;
162
+ qualification: z.ZodString;
163
+ signals: z.ZodString;
164
+ conversation: z.ZodString;
165
+ contactState: z.ZodString;
166
+ exclusion: z.ZodString;
167
+ authorization: z.ZodString;
168
+ workspace: z.ZodString;
169
+ }, "strict", z.ZodTypeAny, {
170
+ identity: string;
171
+ qualification: string;
172
+ signals: string;
173
+ conversation: string;
174
+ contactState: string;
175
+ exclusion: string;
176
+ authorization: string;
177
+ workspace: string;
178
+ }, {
179
+ identity: string;
180
+ qualification: string;
181
+ signals: string;
182
+ conversation: string;
183
+ contactState: string;
184
+ exclusion: string;
185
+ authorization: string;
186
+ workspace: string;
187
+ }>;
188
+ }, "strict", z.ZodTypeAny, {
189
+ contract_version: "agent-writing-context.v1";
190
+ context_version: string;
191
+ facts_version: string;
192
+ read_at: string;
193
+ versions: {
194
+ identity: string;
195
+ qualification: string;
196
+ signals: string;
197
+ conversation: string;
198
+ contactState: string;
199
+ exclusion: string;
200
+ authorization: string;
201
+ workspace: string;
202
+ };
203
+ }, {
204
+ contract_version: "agent-writing-context.v1";
205
+ context_version: string;
206
+ facts_version: string;
207
+ read_at: string;
208
+ versions: {
209
+ identity: string;
210
+ qualification: string;
211
+ signals: string;
212
+ conversation: string;
213
+ contactState: string;
214
+ exclusion: string;
215
+ authorization: string;
216
+ workspace: string;
217
+ };
218
+ }>;
219
+ export declare const message: z.ZodEffects<z.ZodObject<{
220
+ channel: z.ZodEnum<["GMAIL", "LINKEDIN"]>;
221
+ action: z.ZodEnum<["MESSAGE", "INVITATION"]>;
222
+ sender_id: z.ZodString;
223
+ account_key: z.ZodString;
224
+ recipient: z.ZodString;
225
+ subject: z.ZodNullable<z.ZodString>;
226
+ body: z.ZodString;
227
+ thread_id: z.ZodNullable<z.ZodString>;
228
+ expected_inbound_id: z.ZodNullable<z.ZodString>;
229
+ technical_parts: z.ZodObject<{
230
+ signature: z.ZodString;
231
+ unsubscribe: z.ZodString;
232
+ }, "strict", z.ZodTypeAny, {
233
+ signature: string;
234
+ unsubscribe: string;
235
+ }, {
236
+ signature: string;
237
+ unsubscribe: string;
238
+ }>;
239
+ }, "strict", z.ZodTypeAny, {
240
+ channel: "GMAIL" | "LINKEDIN";
241
+ action: "MESSAGE" | "INVITATION";
242
+ sender_id: string;
243
+ account_key: string;
244
+ recipient: string;
245
+ subject: string | null;
246
+ body: string;
247
+ thread_id: string | null;
248
+ expected_inbound_id: string | null;
249
+ technical_parts: {
250
+ signature: string;
251
+ unsubscribe: string;
252
+ };
253
+ }, {
254
+ channel: "GMAIL" | "LINKEDIN";
255
+ action: "MESSAGE" | "INVITATION";
256
+ sender_id: string;
257
+ account_key: string;
258
+ recipient: string;
259
+ subject: string | null;
260
+ body: string;
261
+ thread_id: string | null;
262
+ expected_inbound_id: string | null;
263
+ technical_parts: {
264
+ signature: string;
265
+ unsubscribe: string;
266
+ };
267
+ }>, {
268
+ channel: "GMAIL" | "LINKEDIN";
269
+ action: "MESSAGE" | "INVITATION";
270
+ sender_id: string;
271
+ account_key: string;
272
+ recipient: string;
273
+ subject: string | null;
274
+ body: string;
275
+ thread_id: string | null;
276
+ expected_inbound_id: string | null;
277
+ technical_parts: {
278
+ signature: string;
279
+ unsubscribe: string;
280
+ };
281
+ }, {
282
+ channel: "GMAIL" | "LINKEDIN";
283
+ action: "MESSAGE" | "INVITATION";
284
+ sender_id: string;
285
+ account_key: string;
286
+ recipient: string;
287
+ subject: string | null;
288
+ body: string;
289
+ thread_id: string | null;
290
+ expected_inbound_id: string | null;
291
+ technical_parts: {
292
+ signature: string;
293
+ unsubscribe: string;
294
+ };
295
+ }>;
296
+ export declare const decision: z.ZodEffects<z.ZodObject<{
297
+ agent_cycle_id: z.ZodOptional<z.ZodString>;
298
+ request_key: z.ZodString;
299
+ lead_id: z.ZodString;
300
+ person_id: z.ZodString;
301
+ purpose: z.ZodEnum<["FIRST_CONTACT", "FOLLOW_UP", "REPLY"]>;
302
+ reason: z.ZodString;
303
+ sources: z.ZodArray<z.ZodObject<{
304
+ label: z.ZodString;
305
+ url: z.ZodString;
306
+ }, "strict", z.ZodTypeAny, {
307
+ label: string;
308
+ url: string;
309
+ }, {
310
+ label: string;
311
+ url: string;
312
+ }>, "many">;
313
+ context: z.ZodObject<{
314
+ contract_version: z.ZodLiteral<"agent-writing-context.v1">;
315
+ context_version: z.ZodString;
316
+ facts_version: z.ZodString;
317
+ read_at: z.ZodString;
318
+ versions: z.ZodObject<{
319
+ identity: z.ZodString;
320
+ qualification: z.ZodString;
321
+ signals: z.ZodString;
322
+ conversation: z.ZodString;
323
+ contactState: z.ZodString;
324
+ exclusion: z.ZodString;
325
+ authorization: z.ZodString;
326
+ workspace: z.ZodString;
327
+ }, "strict", z.ZodTypeAny, {
328
+ identity: string;
329
+ qualification: string;
330
+ signals: string;
331
+ conversation: string;
332
+ contactState: string;
333
+ exclusion: string;
334
+ authorization: string;
335
+ workspace: string;
336
+ }, {
337
+ identity: string;
338
+ qualification: string;
339
+ signals: string;
340
+ conversation: string;
341
+ contactState: string;
342
+ exclusion: string;
343
+ authorization: string;
344
+ workspace: string;
345
+ }>;
346
+ }, "strict", z.ZodTypeAny, {
347
+ contract_version: "agent-writing-context.v1";
348
+ context_version: string;
349
+ facts_version: string;
350
+ read_at: string;
351
+ versions: {
352
+ identity: string;
353
+ qualification: string;
354
+ signals: string;
355
+ conversation: string;
356
+ contactState: string;
357
+ exclusion: string;
358
+ authorization: string;
359
+ workspace: string;
360
+ };
361
+ }, {
362
+ contract_version: "agent-writing-context.v1";
363
+ context_version: string;
364
+ facts_version: string;
365
+ read_at: string;
366
+ versions: {
367
+ identity: string;
368
+ qualification: string;
369
+ signals: string;
370
+ conversation: string;
371
+ contactState: string;
372
+ exclusion: string;
373
+ authorization: string;
374
+ workspace: string;
375
+ };
376
+ }>;
377
+ authorization_revision: z.ZodNumber;
378
+ messages: z.ZodArray<z.ZodEffects<z.ZodObject<{
379
+ channel: z.ZodEnum<["GMAIL", "LINKEDIN"]>;
380
+ action: z.ZodEnum<["MESSAGE", "INVITATION"]>;
381
+ sender_id: z.ZodString;
382
+ account_key: z.ZodString;
383
+ recipient: z.ZodString;
384
+ subject: z.ZodNullable<z.ZodString>;
385
+ body: z.ZodString;
386
+ thread_id: z.ZodNullable<z.ZodString>;
387
+ expected_inbound_id: z.ZodNullable<z.ZodString>;
388
+ technical_parts: z.ZodObject<{
389
+ signature: z.ZodString;
390
+ unsubscribe: z.ZodString;
391
+ }, "strict", z.ZodTypeAny, {
392
+ signature: string;
393
+ unsubscribe: string;
394
+ }, {
395
+ signature: string;
396
+ unsubscribe: string;
397
+ }>;
398
+ }, "strict", z.ZodTypeAny, {
399
+ channel: "GMAIL" | "LINKEDIN";
400
+ action: "MESSAGE" | "INVITATION";
401
+ sender_id: string;
402
+ account_key: string;
403
+ recipient: string;
404
+ subject: string | null;
405
+ body: string;
406
+ thread_id: string | null;
407
+ expected_inbound_id: string | null;
408
+ technical_parts: {
409
+ signature: string;
410
+ unsubscribe: string;
411
+ };
412
+ }, {
413
+ channel: "GMAIL" | "LINKEDIN";
414
+ action: "MESSAGE" | "INVITATION";
415
+ sender_id: string;
416
+ account_key: string;
417
+ recipient: string;
418
+ subject: string | null;
419
+ body: string;
420
+ thread_id: string | null;
421
+ expected_inbound_id: string | null;
422
+ technical_parts: {
423
+ signature: string;
424
+ unsubscribe: string;
425
+ };
426
+ }>, {
427
+ channel: "GMAIL" | "LINKEDIN";
428
+ action: "MESSAGE" | "INVITATION";
429
+ sender_id: string;
430
+ account_key: string;
431
+ recipient: string;
432
+ subject: string | null;
433
+ body: string;
434
+ thread_id: string | null;
435
+ expected_inbound_id: string | null;
436
+ technical_parts: {
437
+ signature: string;
438
+ unsubscribe: string;
439
+ };
440
+ }, {
441
+ channel: "GMAIL" | "LINKEDIN";
442
+ action: "MESSAGE" | "INVITATION";
443
+ sender_id: string;
444
+ account_key: string;
445
+ recipient: string;
446
+ subject: string | null;
447
+ body: string;
448
+ thread_id: string | null;
449
+ expected_inbound_id: string | null;
450
+ technical_parts: {
451
+ signature: string;
452
+ unsubscribe: string;
453
+ };
454
+ }>, "many">;
455
+ }, "strict", z.ZodTypeAny, {
456
+ request_key: string;
457
+ lead_id: string;
458
+ person_id: string;
459
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
460
+ reason: string;
461
+ sources: {
462
+ label: string;
463
+ url: string;
464
+ }[];
465
+ context: {
466
+ contract_version: "agent-writing-context.v1";
467
+ context_version: string;
468
+ facts_version: string;
469
+ read_at: string;
470
+ versions: {
471
+ identity: string;
472
+ qualification: string;
473
+ signals: string;
474
+ conversation: string;
475
+ contactState: string;
476
+ exclusion: string;
477
+ authorization: string;
478
+ workspace: string;
479
+ };
480
+ };
481
+ authorization_revision: number;
482
+ messages: {
483
+ channel: "GMAIL" | "LINKEDIN";
484
+ action: "MESSAGE" | "INVITATION";
485
+ sender_id: string;
486
+ account_key: string;
487
+ recipient: string;
488
+ subject: string | null;
489
+ body: string;
490
+ thread_id: string | null;
491
+ expected_inbound_id: string | null;
492
+ technical_parts: {
493
+ signature: string;
494
+ unsubscribe: string;
495
+ };
496
+ }[];
497
+ agent_cycle_id?: string | undefined;
498
+ }, {
499
+ request_key: string;
500
+ lead_id: string;
501
+ person_id: string;
502
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
503
+ reason: string;
504
+ sources: {
505
+ label: string;
506
+ url: string;
507
+ }[];
508
+ context: {
509
+ contract_version: "agent-writing-context.v1";
510
+ context_version: string;
511
+ facts_version: string;
512
+ read_at: string;
513
+ versions: {
514
+ identity: string;
515
+ qualification: string;
516
+ signals: string;
517
+ conversation: string;
518
+ contactState: string;
519
+ exclusion: string;
520
+ authorization: string;
521
+ workspace: string;
522
+ };
523
+ };
524
+ authorization_revision: number;
525
+ messages: {
526
+ channel: "GMAIL" | "LINKEDIN";
527
+ action: "MESSAGE" | "INVITATION";
528
+ sender_id: string;
529
+ account_key: string;
530
+ recipient: string;
531
+ subject: string | null;
532
+ body: string;
533
+ thread_id: string | null;
534
+ expected_inbound_id: string | null;
535
+ technical_parts: {
536
+ signature: string;
537
+ unsubscribe: string;
538
+ };
539
+ }[];
540
+ agent_cycle_id?: string | undefined;
541
+ }>, {
542
+ request_key: string;
543
+ lead_id: string;
544
+ person_id: string;
545
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
546
+ reason: string;
547
+ sources: {
548
+ label: string;
549
+ url: string;
550
+ }[];
551
+ context: {
552
+ contract_version: "agent-writing-context.v1";
553
+ context_version: string;
554
+ facts_version: string;
555
+ read_at: string;
556
+ versions: {
557
+ identity: string;
558
+ qualification: string;
559
+ signals: string;
560
+ conversation: string;
561
+ contactState: string;
562
+ exclusion: string;
563
+ authorization: string;
564
+ workspace: string;
565
+ };
566
+ };
567
+ authorization_revision: number;
568
+ messages: {
569
+ channel: "GMAIL" | "LINKEDIN";
570
+ action: "MESSAGE" | "INVITATION";
571
+ sender_id: string;
572
+ account_key: string;
573
+ recipient: string;
574
+ subject: string | null;
575
+ body: string;
576
+ thread_id: string | null;
577
+ expected_inbound_id: string | null;
578
+ technical_parts: {
579
+ signature: string;
580
+ unsubscribe: string;
581
+ };
582
+ }[];
583
+ agent_cycle_id?: string | undefined;
584
+ }, {
585
+ request_key: string;
586
+ lead_id: string;
587
+ person_id: string;
588
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
589
+ reason: string;
590
+ sources: {
591
+ label: string;
592
+ url: string;
593
+ }[];
594
+ context: {
595
+ contract_version: "agent-writing-context.v1";
596
+ context_version: string;
597
+ facts_version: string;
598
+ read_at: string;
599
+ versions: {
600
+ identity: string;
601
+ qualification: string;
602
+ signals: string;
603
+ conversation: string;
604
+ contactState: string;
605
+ exclusion: string;
606
+ authorization: string;
607
+ workspace: string;
608
+ };
609
+ };
610
+ authorization_revision: number;
611
+ messages: {
612
+ channel: "GMAIL" | "LINKEDIN";
613
+ action: "MESSAGE" | "INVITATION";
614
+ sender_id: string;
615
+ account_key: string;
616
+ recipient: string;
617
+ subject: string | null;
618
+ body: string;
619
+ thread_id: string | null;
620
+ expected_inbound_id: string | null;
621
+ technical_parts: {
622
+ signature: string;
623
+ unsubscribe: string;
624
+ };
625
+ }[];
626
+ agent_cycle_id?: string | undefined;
627
+ }>;
628
+ export declare const querySchema: z.ZodObject<{
629
+ recipe: z.ZodOptional<z.ZodEnum<["never_contacted", "followup_due", "channel_gap", "replies_to_handle"]>>;
630
+ filters: z.ZodDefault<z.ZodObject<{
631
+ group_id: z.ZodOptional<z.ZodString>;
632
+ signal_filter: z.ZodOptional<z.ZodEffects<z.ZodObject<{
633
+ detected_since: z.ZodOptional<z.ZodString>;
634
+ detected_before: z.ZodOptional<z.ZodString>;
635
+ levels: z.ZodOptional<z.ZodArray<z.ZodEnum<["STRONG", "GOLDEN", "CRITICAL"]>, "many">>;
636
+ scope: z.ZodOptional<z.ZodEnum<["PERSON", "COMPANY", "BOTH"]>>;
637
+ }, "strict", z.ZodTypeAny, {
638
+ detected_since?: string | undefined;
639
+ detected_before?: string | undefined;
640
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
641
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
642
+ }, {
643
+ detected_since?: string | undefined;
644
+ detected_before?: string | undefined;
645
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
646
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
647
+ }>, {
648
+ detected_since?: string | undefined;
649
+ detected_before?: string | undefined;
650
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
651
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
652
+ }, {
653
+ detected_since?: string | undefined;
654
+ detected_before?: string | undefined;
655
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
656
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
657
+ }>>;
658
+ last_confirmed_outbound_before: z.ZodOptional<z.ZodObject<{
659
+ channel: z.ZodEnum<["any", "GMAIL", "LINKEDIN"]>;
660
+ before: z.ZodString;
661
+ }, "strict", z.ZodTypeAny, {
662
+ channel: "GMAIL" | "LINKEDIN" | "any";
663
+ before: string;
664
+ }, {
665
+ channel: "GMAIL" | "LINKEDIN" | "any";
666
+ before: string;
667
+ }>>;
668
+ counts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
669
+ min: z.ZodOptional<z.ZodNumber>;
670
+ max: z.ZodOptional<z.ZodNumber>;
671
+ channel: z.ZodEnum<["GMAIL", "LINKEDIN"]>;
672
+ kind: z.ZodEnum<["MESSAGE", "INVITATION"]>;
673
+ }, "strict", z.ZodTypeAny, {
674
+ channel: "GMAIL" | "LINKEDIN";
675
+ kind: "MESSAGE" | "INVITATION";
676
+ min?: number | undefined;
677
+ max?: number | undefined;
678
+ }, {
679
+ channel: "GMAIL" | "LINKEDIN";
680
+ kind: "MESSAGE" | "INVITATION";
681
+ min?: number | undefined;
682
+ max?: number | undefined;
683
+ }>, {
684
+ channel: "GMAIL" | "LINKEDIN";
685
+ kind: "MESSAGE" | "INVITATION";
686
+ min?: number | undefined;
687
+ max?: number | undefined;
688
+ }, {
689
+ channel: "GMAIL" | "LINKEDIN";
690
+ kind: "MESSAGE" | "INVITATION";
691
+ min?: number | undefined;
692
+ max?: number | undefined;
693
+ }>, {
694
+ channel: "GMAIL" | "LINKEDIN";
695
+ kind: "MESSAGE" | "INVITATION";
696
+ min?: number | undefined;
697
+ max?: number | undefined;
698
+ }, {
699
+ channel: "GMAIL" | "LINKEDIN";
700
+ kind: "MESSAGE" | "INVITATION";
701
+ min?: number | undefined;
702
+ max?: number | undefined;
703
+ }>, "many">>;
704
+ never_on: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
705
+ channel: z.ZodEnum<["GMAIL", "LINKEDIN"]>;
706
+ kind: z.ZodEnum<["MESSAGE", "INVITATION"]>;
707
+ }, "strict", z.ZodTypeAny, {
708
+ channel: "GMAIL" | "LINKEDIN";
709
+ kind: "MESSAGE" | "INVITATION";
710
+ }, {
711
+ channel: "GMAIL" | "LINKEDIN";
712
+ kind: "MESSAGE" | "INVITATION";
713
+ }>, {
714
+ channel: "GMAIL" | "LINKEDIN";
715
+ kind: "MESSAGE" | "INVITATION";
716
+ }, {
717
+ channel: "GMAIL" | "LINKEDIN";
718
+ kind: "MESSAGE" | "INVITATION";
719
+ }>, "many">>;
720
+ pending: z.ZodOptional<z.ZodBoolean>;
721
+ unknown: z.ZodOptional<z.ZodBoolean>;
722
+ reply: z.ZodOptional<z.ZodEnum<["TO_HANDLE", "WAITING", "NONE"]>>;
723
+ excluded: z.ZodOptional<z.ZodBoolean>;
724
+ }, "strict", z.ZodTypeAny, {
725
+ group_id?: string | undefined;
726
+ unknown?: boolean | undefined;
727
+ signal_filter?: {
728
+ detected_since?: string | undefined;
729
+ detected_before?: string | undefined;
730
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
731
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
732
+ } | undefined;
733
+ last_confirmed_outbound_before?: {
734
+ channel: "GMAIL" | "LINKEDIN" | "any";
735
+ before: string;
736
+ } | undefined;
737
+ counts?: {
738
+ channel: "GMAIL" | "LINKEDIN";
739
+ kind: "MESSAGE" | "INVITATION";
740
+ min?: number | undefined;
741
+ max?: number | undefined;
742
+ }[] | undefined;
743
+ never_on?: {
744
+ channel: "GMAIL" | "LINKEDIN";
745
+ kind: "MESSAGE" | "INVITATION";
746
+ }[] | undefined;
747
+ pending?: boolean | undefined;
748
+ reply?: "TO_HANDLE" | "WAITING" | "NONE" | undefined;
749
+ excluded?: boolean | undefined;
750
+ }, {
751
+ group_id?: string | undefined;
752
+ unknown?: boolean | undefined;
753
+ signal_filter?: {
754
+ detected_since?: string | undefined;
755
+ detected_before?: string | undefined;
756
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
757
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
758
+ } | undefined;
759
+ last_confirmed_outbound_before?: {
760
+ channel: "GMAIL" | "LINKEDIN" | "any";
761
+ before: string;
762
+ } | undefined;
763
+ counts?: {
764
+ channel: "GMAIL" | "LINKEDIN";
765
+ kind: "MESSAGE" | "INVITATION";
766
+ min?: number | undefined;
767
+ max?: number | undefined;
768
+ }[] | undefined;
769
+ never_on?: {
770
+ channel: "GMAIL" | "LINKEDIN";
771
+ kind: "MESSAGE" | "INVITATION";
772
+ }[] | undefined;
773
+ pending?: boolean | undefined;
774
+ reply?: "TO_HANDLE" | "WAITING" | "NONE" | undefined;
775
+ excluded?: boolean | undefined;
776
+ }>>;
777
+ limit: z.ZodDefault<z.ZodNumber>;
778
+ cursor: z.ZodOptional<z.ZodString>;
779
+ organization_id: z.ZodString;
780
+ program_id: z.ZodString;
781
+ }, "strict", z.ZodTypeAny, {
782
+ filters: {
783
+ group_id?: string | undefined;
784
+ unknown?: boolean | undefined;
785
+ signal_filter?: {
786
+ detected_since?: string | undefined;
787
+ detected_before?: string | undefined;
788
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
789
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
790
+ } | undefined;
791
+ last_confirmed_outbound_before?: {
792
+ channel: "GMAIL" | "LINKEDIN" | "any";
793
+ before: string;
794
+ } | undefined;
795
+ counts?: {
796
+ channel: "GMAIL" | "LINKEDIN";
797
+ kind: "MESSAGE" | "INVITATION";
798
+ min?: number | undefined;
799
+ max?: number | undefined;
800
+ }[] | undefined;
801
+ never_on?: {
802
+ channel: "GMAIL" | "LINKEDIN";
803
+ kind: "MESSAGE" | "INVITATION";
804
+ }[] | undefined;
805
+ pending?: boolean | undefined;
806
+ reply?: "TO_HANDLE" | "WAITING" | "NONE" | undefined;
807
+ excluded?: boolean | undefined;
808
+ };
809
+ limit: number;
810
+ organization_id: string;
811
+ program_id: string;
812
+ recipe?: "never_contacted" | "followup_due" | "channel_gap" | "replies_to_handle" | undefined;
813
+ cursor?: string | undefined;
814
+ }, {
815
+ organization_id: string;
816
+ program_id: string;
817
+ recipe?: "never_contacted" | "followup_due" | "channel_gap" | "replies_to_handle" | undefined;
818
+ filters?: {
819
+ group_id?: string | undefined;
820
+ unknown?: boolean | undefined;
821
+ signal_filter?: {
822
+ detected_since?: string | undefined;
823
+ detected_before?: string | undefined;
824
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
825
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
826
+ } | undefined;
827
+ last_confirmed_outbound_before?: {
828
+ channel: "GMAIL" | "LINKEDIN" | "any";
829
+ before: string;
830
+ } | undefined;
831
+ counts?: {
832
+ channel: "GMAIL" | "LINKEDIN";
833
+ kind: "MESSAGE" | "INVITATION";
834
+ min?: number | undefined;
835
+ max?: number | undefined;
836
+ }[] | undefined;
837
+ never_on?: {
838
+ channel: "GMAIL" | "LINKEDIN";
839
+ kind: "MESSAGE" | "INVITATION";
840
+ }[] | undefined;
841
+ pending?: boolean | undefined;
842
+ reply?: "TO_HANDLE" | "WAITING" | "NONE" | undefined;
843
+ excluded?: boolean | undefined;
844
+ } | undefined;
845
+ limit?: number | undefined;
846
+ cursor?: string | undefined;
847
+ }>;
848
+ export declare const submitSchema: z.ZodObject<{
849
+ decisions: z.ZodArray<z.ZodEffects<z.ZodObject<{
850
+ agent_cycle_id: z.ZodOptional<z.ZodString>;
851
+ request_key: z.ZodString;
852
+ lead_id: z.ZodString;
853
+ person_id: z.ZodString;
854
+ purpose: z.ZodEnum<["FIRST_CONTACT", "FOLLOW_UP", "REPLY"]>;
855
+ reason: z.ZodString;
856
+ sources: z.ZodArray<z.ZodObject<{
857
+ label: z.ZodString;
858
+ url: z.ZodString;
859
+ }, "strict", z.ZodTypeAny, {
860
+ label: string;
861
+ url: string;
862
+ }, {
863
+ label: string;
864
+ url: string;
865
+ }>, "many">;
866
+ context: z.ZodObject<{
867
+ contract_version: z.ZodLiteral<"agent-writing-context.v1">;
868
+ context_version: z.ZodString;
869
+ facts_version: z.ZodString;
870
+ read_at: z.ZodString;
871
+ versions: z.ZodObject<{
872
+ identity: z.ZodString;
873
+ qualification: z.ZodString;
874
+ signals: z.ZodString;
875
+ conversation: z.ZodString;
876
+ contactState: z.ZodString;
877
+ exclusion: z.ZodString;
878
+ authorization: z.ZodString;
879
+ workspace: z.ZodString;
880
+ }, "strict", z.ZodTypeAny, {
881
+ identity: string;
882
+ qualification: string;
883
+ signals: string;
884
+ conversation: string;
885
+ contactState: string;
886
+ exclusion: string;
887
+ authorization: string;
888
+ workspace: string;
889
+ }, {
890
+ identity: string;
891
+ qualification: string;
892
+ signals: string;
893
+ conversation: string;
894
+ contactState: string;
895
+ exclusion: string;
896
+ authorization: string;
897
+ workspace: string;
898
+ }>;
899
+ }, "strict", z.ZodTypeAny, {
900
+ contract_version: "agent-writing-context.v1";
901
+ context_version: string;
902
+ facts_version: string;
903
+ read_at: string;
904
+ versions: {
905
+ identity: string;
906
+ qualification: string;
907
+ signals: string;
908
+ conversation: string;
909
+ contactState: string;
910
+ exclusion: string;
911
+ authorization: string;
912
+ workspace: string;
913
+ };
914
+ }, {
915
+ contract_version: "agent-writing-context.v1";
916
+ context_version: string;
917
+ facts_version: string;
918
+ read_at: string;
919
+ versions: {
920
+ identity: string;
921
+ qualification: string;
922
+ signals: string;
923
+ conversation: string;
924
+ contactState: string;
925
+ exclusion: string;
926
+ authorization: string;
927
+ workspace: string;
928
+ };
929
+ }>;
930
+ authorization_revision: z.ZodNumber;
931
+ messages: z.ZodArray<z.ZodEffects<z.ZodObject<{
932
+ channel: z.ZodEnum<["GMAIL", "LINKEDIN"]>;
933
+ action: z.ZodEnum<["MESSAGE", "INVITATION"]>;
934
+ sender_id: z.ZodString;
935
+ account_key: z.ZodString;
936
+ recipient: z.ZodString;
937
+ subject: z.ZodNullable<z.ZodString>;
938
+ body: z.ZodString;
939
+ thread_id: z.ZodNullable<z.ZodString>;
940
+ expected_inbound_id: z.ZodNullable<z.ZodString>;
941
+ technical_parts: z.ZodObject<{
942
+ signature: z.ZodString;
943
+ unsubscribe: z.ZodString;
944
+ }, "strict", z.ZodTypeAny, {
945
+ signature: string;
946
+ unsubscribe: string;
947
+ }, {
948
+ signature: string;
949
+ unsubscribe: string;
950
+ }>;
951
+ }, "strict", z.ZodTypeAny, {
952
+ channel: "GMAIL" | "LINKEDIN";
953
+ action: "MESSAGE" | "INVITATION";
954
+ sender_id: string;
955
+ account_key: string;
956
+ recipient: string;
957
+ subject: string | null;
958
+ body: string;
959
+ thread_id: string | null;
960
+ expected_inbound_id: string | null;
961
+ technical_parts: {
962
+ signature: string;
963
+ unsubscribe: string;
964
+ };
965
+ }, {
966
+ channel: "GMAIL" | "LINKEDIN";
967
+ action: "MESSAGE" | "INVITATION";
968
+ sender_id: string;
969
+ account_key: string;
970
+ recipient: string;
971
+ subject: string | null;
972
+ body: string;
973
+ thread_id: string | null;
974
+ expected_inbound_id: string | null;
975
+ technical_parts: {
976
+ signature: string;
977
+ unsubscribe: string;
978
+ };
979
+ }>, {
980
+ channel: "GMAIL" | "LINKEDIN";
981
+ action: "MESSAGE" | "INVITATION";
982
+ sender_id: string;
983
+ account_key: string;
984
+ recipient: string;
985
+ subject: string | null;
986
+ body: string;
987
+ thread_id: string | null;
988
+ expected_inbound_id: string | null;
989
+ technical_parts: {
990
+ signature: string;
991
+ unsubscribe: string;
992
+ };
993
+ }, {
994
+ channel: "GMAIL" | "LINKEDIN";
995
+ action: "MESSAGE" | "INVITATION";
996
+ sender_id: string;
997
+ account_key: string;
998
+ recipient: string;
999
+ subject: string | null;
1000
+ body: string;
1001
+ thread_id: string | null;
1002
+ expected_inbound_id: string | null;
1003
+ technical_parts: {
1004
+ signature: string;
1005
+ unsubscribe: string;
1006
+ };
1007
+ }>, "many">;
1008
+ }, "strict", z.ZodTypeAny, {
1009
+ request_key: string;
1010
+ lead_id: string;
1011
+ person_id: string;
1012
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1013
+ reason: string;
1014
+ sources: {
1015
+ label: string;
1016
+ url: string;
1017
+ }[];
1018
+ context: {
1019
+ contract_version: "agent-writing-context.v1";
1020
+ context_version: string;
1021
+ facts_version: string;
1022
+ read_at: string;
1023
+ versions: {
1024
+ identity: string;
1025
+ qualification: string;
1026
+ signals: string;
1027
+ conversation: string;
1028
+ contactState: string;
1029
+ exclusion: string;
1030
+ authorization: string;
1031
+ workspace: string;
1032
+ };
1033
+ };
1034
+ authorization_revision: number;
1035
+ messages: {
1036
+ channel: "GMAIL" | "LINKEDIN";
1037
+ action: "MESSAGE" | "INVITATION";
1038
+ sender_id: string;
1039
+ account_key: string;
1040
+ recipient: string;
1041
+ subject: string | null;
1042
+ body: string;
1043
+ thread_id: string | null;
1044
+ expected_inbound_id: string | null;
1045
+ technical_parts: {
1046
+ signature: string;
1047
+ unsubscribe: string;
1048
+ };
1049
+ }[];
1050
+ agent_cycle_id?: string | undefined;
1051
+ }, {
1052
+ request_key: string;
1053
+ lead_id: string;
1054
+ person_id: string;
1055
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1056
+ reason: string;
1057
+ sources: {
1058
+ label: string;
1059
+ url: string;
1060
+ }[];
1061
+ context: {
1062
+ contract_version: "agent-writing-context.v1";
1063
+ context_version: string;
1064
+ facts_version: string;
1065
+ read_at: string;
1066
+ versions: {
1067
+ identity: string;
1068
+ qualification: string;
1069
+ signals: string;
1070
+ conversation: string;
1071
+ contactState: string;
1072
+ exclusion: string;
1073
+ authorization: string;
1074
+ workspace: string;
1075
+ };
1076
+ };
1077
+ authorization_revision: number;
1078
+ messages: {
1079
+ channel: "GMAIL" | "LINKEDIN";
1080
+ action: "MESSAGE" | "INVITATION";
1081
+ sender_id: string;
1082
+ account_key: string;
1083
+ recipient: string;
1084
+ subject: string | null;
1085
+ body: string;
1086
+ thread_id: string | null;
1087
+ expected_inbound_id: string | null;
1088
+ technical_parts: {
1089
+ signature: string;
1090
+ unsubscribe: string;
1091
+ };
1092
+ }[];
1093
+ agent_cycle_id?: string | undefined;
1094
+ }>, {
1095
+ request_key: string;
1096
+ lead_id: string;
1097
+ person_id: string;
1098
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1099
+ reason: string;
1100
+ sources: {
1101
+ label: string;
1102
+ url: string;
1103
+ }[];
1104
+ context: {
1105
+ contract_version: "agent-writing-context.v1";
1106
+ context_version: string;
1107
+ facts_version: string;
1108
+ read_at: string;
1109
+ versions: {
1110
+ identity: string;
1111
+ qualification: string;
1112
+ signals: string;
1113
+ conversation: string;
1114
+ contactState: string;
1115
+ exclusion: string;
1116
+ authorization: string;
1117
+ workspace: string;
1118
+ };
1119
+ };
1120
+ authorization_revision: number;
1121
+ messages: {
1122
+ channel: "GMAIL" | "LINKEDIN";
1123
+ action: "MESSAGE" | "INVITATION";
1124
+ sender_id: string;
1125
+ account_key: string;
1126
+ recipient: string;
1127
+ subject: string | null;
1128
+ body: string;
1129
+ thread_id: string | null;
1130
+ expected_inbound_id: string | null;
1131
+ technical_parts: {
1132
+ signature: string;
1133
+ unsubscribe: string;
1134
+ };
1135
+ }[];
1136
+ agent_cycle_id?: string | undefined;
1137
+ }, {
1138
+ request_key: string;
1139
+ lead_id: string;
1140
+ person_id: string;
1141
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1142
+ reason: string;
1143
+ sources: {
1144
+ label: string;
1145
+ url: string;
1146
+ }[];
1147
+ context: {
1148
+ contract_version: "agent-writing-context.v1";
1149
+ context_version: string;
1150
+ facts_version: string;
1151
+ read_at: string;
1152
+ versions: {
1153
+ identity: string;
1154
+ qualification: string;
1155
+ signals: string;
1156
+ conversation: string;
1157
+ contactState: string;
1158
+ exclusion: string;
1159
+ authorization: string;
1160
+ workspace: string;
1161
+ };
1162
+ };
1163
+ authorization_revision: number;
1164
+ messages: {
1165
+ channel: "GMAIL" | "LINKEDIN";
1166
+ action: "MESSAGE" | "INVITATION";
1167
+ sender_id: string;
1168
+ account_key: string;
1169
+ recipient: string;
1170
+ subject: string | null;
1171
+ body: string;
1172
+ thread_id: string | null;
1173
+ expected_inbound_id: string | null;
1174
+ technical_parts: {
1175
+ signature: string;
1176
+ unsubscribe: string;
1177
+ };
1178
+ }[];
1179
+ agent_cycle_id?: string | undefined;
1180
+ }>, "many">;
1181
+ organization_id: z.ZodString;
1182
+ program_id: z.ZodString;
1183
+ }, "strict", z.ZodTypeAny, {
1184
+ organization_id: string;
1185
+ program_id: string;
1186
+ decisions: {
1187
+ request_key: string;
1188
+ lead_id: string;
1189
+ person_id: string;
1190
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1191
+ reason: string;
1192
+ sources: {
1193
+ label: string;
1194
+ url: string;
1195
+ }[];
1196
+ context: {
1197
+ contract_version: "agent-writing-context.v1";
1198
+ context_version: string;
1199
+ facts_version: string;
1200
+ read_at: string;
1201
+ versions: {
1202
+ identity: string;
1203
+ qualification: string;
1204
+ signals: string;
1205
+ conversation: string;
1206
+ contactState: string;
1207
+ exclusion: string;
1208
+ authorization: string;
1209
+ workspace: string;
1210
+ };
1211
+ };
1212
+ authorization_revision: number;
1213
+ messages: {
1214
+ channel: "GMAIL" | "LINKEDIN";
1215
+ action: "MESSAGE" | "INVITATION";
1216
+ sender_id: string;
1217
+ account_key: string;
1218
+ recipient: string;
1219
+ subject: string | null;
1220
+ body: string;
1221
+ thread_id: string | null;
1222
+ expected_inbound_id: string | null;
1223
+ technical_parts: {
1224
+ signature: string;
1225
+ unsubscribe: string;
1226
+ };
1227
+ }[];
1228
+ agent_cycle_id?: string | undefined;
1229
+ }[];
1230
+ }, {
1231
+ organization_id: string;
1232
+ program_id: string;
1233
+ decisions: {
1234
+ request_key: string;
1235
+ lead_id: string;
1236
+ person_id: string;
1237
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1238
+ reason: string;
1239
+ sources: {
1240
+ label: string;
1241
+ url: string;
1242
+ }[];
1243
+ context: {
1244
+ contract_version: "agent-writing-context.v1";
1245
+ context_version: string;
1246
+ facts_version: string;
1247
+ read_at: string;
1248
+ versions: {
1249
+ identity: string;
1250
+ qualification: string;
1251
+ signals: string;
1252
+ conversation: string;
1253
+ contactState: string;
1254
+ exclusion: string;
1255
+ authorization: string;
1256
+ workspace: string;
1257
+ };
1258
+ };
1259
+ authorization_revision: number;
1260
+ messages: {
1261
+ channel: "GMAIL" | "LINKEDIN";
1262
+ action: "MESSAGE" | "INVITATION";
1263
+ sender_id: string;
1264
+ account_key: string;
1265
+ recipient: string;
1266
+ subject: string | null;
1267
+ body: string;
1268
+ thread_id: string | null;
1269
+ expected_inbound_id: string | null;
1270
+ technical_parts: {
1271
+ signature: string;
1272
+ unsubscribe: string;
1273
+ };
1274
+ }[];
1275
+ agent_cycle_id?: string | undefined;
1276
+ }[];
1277
+ }>;
1278
+ export declare const acknowledgeSchema: z.ZodObject<{
1279
+ cursor: z.ZodString;
1280
+ receipts: z.ZodEffects<z.ZodArray<z.ZodObject<{
1281
+ change_id: z.ZodEffects<z.ZodString, string, string>;
1282
+ status: z.ZodEnum<["PROCESSED", "DISMISSED"]>;
1283
+ reason: z.ZodString;
1284
+ }, "strict", z.ZodTypeAny, {
1285
+ status: "PROCESSED" | "DISMISSED";
1286
+ reason: string;
1287
+ change_id: string;
1288
+ }, {
1289
+ status: "PROCESSED" | "DISMISSED";
1290
+ reason: string;
1291
+ change_id: string;
1292
+ }>, "many">, {
1293
+ status: "PROCESSED" | "DISMISSED";
1294
+ reason: string;
1295
+ change_id: string;
1296
+ }[], {
1297
+ status: "PROCESSED" | "DISMISSED";
1298
+ reason: string;
1299
+ change_id: string;
1300
+ }[]>;
1301
+ organization_id: z.ZodString;
1302
+ program_id: z.ZodString;
1303
+ }, "strict", z.ZodTypeAny, {
1304
+ cursor: string;
1305
+ organization_id: string;
1306
+ program_id: string;
1307
+ receipts: {
1308
+ status: "PROCESSED" | "DISMISSED";
1309
+ reason: string;
1310
+ change_id: string;
1311
+ }[];
1312
+ }, {
1313
+ cursor: string;
1314
+ organization_id: string;
1315
+ program_id: string;
1316
+ receipts: {
1317
+ status: "PROCESSED" | "DISMISSED";
1318
+ reason: string;
1319
+ change_id: string;
1320
+ }[];
1321
+ }>;
1322
+ export declare function queryBody(v: z.infer<typeof querySchema>): {
1323
+ recipe: "never_contacted" | "followup_due" | "channel_gap" | "replies_to_handle" | undefined;
1324
+ limit: number;
1325
+ cursor: string | undefined;
1326
+ filters: {
1327
+ groupId: string | undefined;
1328
+ signalFilter: {
1329
+ detectedSince: string | undefined;
1330
+ detectedBefore: string | undefined;
1331
+ levels: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
1332
+ scope: "PERSON" | "COMPANY" | "BOTH" | undefined;
1333
+ } | undefined;
1334
+ lastConfirmedOutboundBefore: {
1335
+ channel: "GMAIL" | "LINKEDIN" | "any";
1336
+ before: string;
1337
+ } | undefined;
1338
+ counts: {
1339
+ channel: "GMAIL" | "LINKEDIN";
1340
+ kind: "MESSAGE" | "INVITATION";
1341
+ min?: number | undefined;
1342
+ max?: number | undefined;
1343
+ }[] | undefined;
1344
+ neverOn: {
1345
+ channel: "GMAIL" | "LINKEDIN";
1346
+ kind: "MESSAGE" | "INVITATION";
1347
+ }[] | undefined;
1348
+ pending: boolean | undefined;
1349
+ unknown: boolean | undefined;
1350
+ reply: "TO_HANDLE" | "WAITING" | "NONE" | undefined;
1351
+ excluded: boolean | undefined;
1352
+ };
1353
+ };
1354
+ export declare function decisionBody(d: z.infer<typeof decision>): {
1355
+ requestKey: string;
1356
+ leadId: string;
1357
+ personId: string;
1358
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1359
+ reason: string;
1360
+ sources: {
1361
+ label: string;
1362
+ url: string;
1363
+ }[];
1364
+ context: {
1365
+ contractVersion: "agent-writing-context.v1";
1366
+ contextVersion: string;
1367
+ factsVersion: string;
1368
+ readAt: string;
1369
+ versions: {
1370
+ identity: string;
1371
+ qualification: string;
1372
+ signals: string;
1373
+ conversation: string;
1374
+ contactState: string;
1375
+ exclusion: string;
1376
+ authorization: string;
1377
+ workspace: string;
1378
+ };
1379
+ };
1380
+ authorizationRevision: number;
1381
+ messages: {
1382
+ channel: "GMAIL" | "LINKEDIN";
1383
+ action: "MESSAGE" | "INVITATION";
1384
+ senderId: string;
1385
+ accountKey: string;
1386
+ recipient: string;
1387
+ subject: string | null;
1388
+ body: string;
1389
+ threadId: string | null;
1390
+ expectedInboundId: string | null;
1391
+ technicalParts: {
1392
+ signature: string;
1393
+ unsubscribe: string;
1394
+ };
1395
+ }[];
1396
+ agentCycleId?: string | undefined;
1397
+ };