@agifyai/leadify-mcp 9.6.0 → 9.7.1

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,1394 @@
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
+ request_key: z.ZodString;
298
+ lead_id: z.ZodString;
299
+ person_id: z.ZodString;
300
+ purpose: z.ZodEnum<["FIRST_CONTACT", "FOLLOW_UP", "REPLY"]>;
301
+ reason: z.ZodString;
302
+ sources: z.ZodArray<z.ZodObject<{
303
+ label: z.ZodString;
304
+ url: z.ZodString;
305
+ }, "strict", z.ZodTypeAny, {
306
+ label: string;
307
+ url: string;
308
+ }, {
309
+ label: string;
310
+ url: string;
311
+ }>, "many">;
312
+ context: z.ZodObject<{
313
+ contract_version: z.ZodLiteral<"agent-writing-context.v1">;
314
+ context_version: z.ZodString;
315
+ facts_version: z.ZodString;
316
+ read_at: z.ZodString;
317
+ versions: z.ZodObject<{
318
+ identity: z.ZodString;
319
+ qualification: z.ZodString;
320
+ signals: z.ZodString;
321
+ conversation: z.ZodString;
322
+ contactState: z.ZodString;
323
+ exclusion: z.ZodString;
324
+ authorization: z.ZodString;
325
+ workspace: z.ZodString;
326
+ }, "strict", z.ZodTypeAny, {
327
+ identity: string;
328
+ qualification: string;
329
+ signals: string;
330
+ conversation: string;
331
+ contactState: string;
332
+ exclusion: string;
333
+ authorization: string;
334
+ workspace: string;
335
+ }, {
336
+ identity: string;
337
+ qualification: string;
338
+ signals: string;
339
+ conversation: string;
340
+ contactState: string;
341
+ exclusion: string;
342
+ authorization: string;
343
+ workspace: string;
344
+ }>;
345
+ }, "strict", z.ZodTypeAny, {
346
+ contract_version: "agent-writing-context.v1";
347
+ context_version: string;
348
+ facts_version: string;
349
+ read_at: string;
350
+ versions: {
351
+ identity: string;
352
+ qualification: string;
353
+ signals: string;
354
+ conversation: string;
355
+ contactState: string;
356
+ exclusion: string;
357
+ authorization: string;
358
+ workspace: string;
359
+ };
360
+ }, {
361
+ contract_version: "agent-writing-context.v1";
362
+ context_version: string;
363
+ facts_version: string;
364
+ read_at: string;
365
+ versions: {
366
+ identity: string;
367
+ qualification: string;
368
+ signals: string;
369
+ conversation: string;
370
+ contactState: string;
371
+ exclusion: string;
372
+ authorization: string;
373
+ workspace: string;
374
+ };
375
+ }>;
376
+ authorization_revision: z.ZodNumber;
377
+ messages: z.ZodArray<z.ZodEffects<z.ZodObject<{
378
+ channel: z.ZodEnum<["GMAIL", "LINKEDIN"]>;
379
+ action: z.ZodEnum<["MESSAGE", "INVITATION"]>;
380
+ sender_id: z.ZodString;
381
+ account_key: z.ZodString;
382
+ recipient: z.ZodString;
383
+ subject: z.ZodNullable<z.ZodString>;
384
+ body: z.ZodString;
385
+ thread_id: z.ZodNullable<z.ZodString>;
386
+ expected_inbound_id: z.ZodNullable<z.ZodString>;
387
+ technical_parts: z.ZodObject<{
388
+ signature: z.ZodString;
389
+ unsubscribe: z.ZodString;
390
+ }, "strict", z.ZodTypeAny, {
391
+ signature: string;
392
+ unsubscribe: string;
393
+ }, {
394
+ signature: string;
395
+ unsubscribe: string;
396
+ }>;
397
+ }, "strict", z.ZodTypeAny, {
398
+ channel: "GMAIL" | "LINKEDIN";
399
+ action: "MESSAGE" | "INVITATION";
400
+ sender_id: string;
401
+ account_key: string;
402
+ recipient: string;
403
+ subject: string | null;
404
+ body: string;
405
+ thread_id: string | null;
406
+ expected_inbound_id: string | null;
407
+ technical_parts: {
408
+ signature: string;
409
+ unsubscribe: string;
410
+ };
411
+ }, {
412
+ channel: "GMAIL" | "LINKEDIN";
413
+ action: "MESSAGE" | "INVITATION";
414
+ sender_id: string;
415
+ account_key: string;
416
+ recipient: string;
417
+ subject: string | null;
418
+ body: string;
419
+ thread_id: string | null;
420
+ expected_inbound_id: string | null;
421
+ technical_parts: {
422
+ signature: string;
423
+ unsubscribe: string;
424
+ };
425
+ }>, {
426
+ channel: "GMAIL" | "LINKEDIN";
427
+ action: "MESSAGE" | "INVITATION";
428
+ sender_id: string;
429
+ account_key: string;
430
+ recipient: string;
431
+ subject: string | null;
432
+ body: string;
433
+ thread_id: string | null;
434
+ expected_inbound_id: string | null;
435
+ technical_parts: {
436
+ signature: string;
437
+ unsubscribe: string;
438
+ };
439
+ }, {
440
+ channel: "GMAIL" | "LINKEDIN";
441
+ action: "MESSAGE" | "INVITATION";
442
+ sender_id: string;
443
+ account_key: string;
444
+ recipient: string;
445
+ subject: string | null;
446
+ body: string;
447
+ thread_id: string | null;
448
+ expected_inbound_id: string | null;
449
+ technical_parts: {
450
+ signature: string;
451
+ unsubscribe: string;
452
+ };
453
+ }>, "many">;
454
+ }, "strict", z.ZodTypeAny, {
455
+ request_key: string;
456
+ lead_id: string;
457
+ person_id: string;
458
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
459
+ reason: string;
460
+ sources: {
461
+ label: string;
462
+ url: string;
463
+ }[];
464
+ context: {
465
+ contract_version: "agent-writing-context.v1";
466
+ context_version: string;
467
+ facts_version: string;
468
+ read_at: string;
469
+ versions: {
470
+ identity: string;
471
+ qualification: string;
472
+ signals: string;
473
+ conversation: string;
474
+ contactState: string;
475
+ exclusion: string;
476
+ authorization: string;
477
+ workspace: string;
478
+ };
479
+ };
480
+ authorization_revision: number;
481
+ messages: {
482
+ channel: "GMAIL" | "LINKEDIN";
483
+ action: "MESSAGE" | "INVITATION";
484
+ sender_id: string;
485
+ account_key: string;
486
+ recipient: string;
487
+ subject: string | null;
488
+ body: string;
489
+ thread_id: string | null;
490
+ expected_inbound_id: string | null;
491
+ technical_parts: {
492
+ signature: string;
493
+ unsubscribe: string;
494
+ };
495
+ }[];
496
+ }, {
497
+ request_key: string;
498
+ lead_id: string;
499
+ person_id: string;
500
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
501
+ reason: string;
502
+ sources: {
503
+ label: string;
504
+ url: string;
505
+ }[];
506
+ context: {
507
+ contract_version: "agent-writing-context.v1";
508
+ context_version: string;
509
+ facts_version: string;
510
+ read_at: string;
511
+ versions: {
512
+ identity: string;
513
+ qualification: string;
514
+ signals: string;
515
+ conversation: string;
516
+ contactState: string;
517
+ exclusion: string;
518
+ authorization: string;
519
+ workspace: string;
520
+ };
521
+ };
522
+ authorization_revision: number;
523
+ messages: {
524
+ channel: "GMAIL" | "LINKEDIN";
525
+ action: "MESSAGE" | "INVITATION";
526
+ sender_id: string;
527
+ account_key: string;
528
+ recipient: string;
529
+ subject: string | null;
530
+ body: string;
531
+ thread_id: string | null;
532
+ expected_inbound_id: string | null;
533
+ technical_parts: {
534
+ signature: string;
535
+ unsubscribe: string;
536
+ };
537
+ }[];
538
+ }>, {
539
+ request_key: string;
540
+ lead_id: string;
541
+ person_id: string;
542
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
543
+ reason: string;
544
+ sources: {
545
+ label: string;
546
+ url: string;
547
+ }[];
548
+ context: {
549
+ contract_version: "agent-writing-context.v1";
550
+ context_version: string;
551
+ facts_version: string;
552
+ read_at: string;
553
+ versions: {
554
+ identity: string;
555
+ qualification: string;
556
+ signals: string;
557
+ conversation: string;
558
+ contactState: string;
559
+ exclusion: string;
560
+ authorization: string;
561
+ workspace: string;
562
+ };
563
+ };
564
+ authorization_revision: number;
565
+ messages: {
566
+ channel: "GMAIL" | "LINKEDIN";
567
+ action: "MESSAGE" | "INVITATION";
568
+ sender_id: string;
569
+ account_key: string;
570
+ recipient: string;
571
+ subject: string | null;
572
+ body: string;
573
+ thread_id: string | null;
574
+ expected_inbound_id: string | null;
575
+ technical_parts: {
576
+ signature: string;
577
+ unsubscribe: string;
578
+ };
579
+ }[];
580
+ }, {
581
+ request_key: string;
582
+ lead_id: string;
583
+ person_id: string;
584
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
585
+ reason: string;
586
+ sources: {
587
+ label: string;
588
+ url: string;
589
+ }[];
590
+ context: {
591
+ contract_version: "agent-writing-context.v1";
592
+ context_version: string;
593
+ facts_version: string;
594
+ read_at: string;
595
+ versions: {
596
+ identity: string;
597
+ qualification: string;
598
+ signals: string;
599
+ conversation: string;
600
+ contactState: string;
601
+ exclusion: string;
602
+ authorization: string;
603
+ workspace: string;
604
+ };
605
+ };
606
+ authorization_revision: number;
607
+ messages: {
608
+ channel: "GMAIL" | "LINKEDIN";
609
+ action: "MESSAGE" | "INVITATION";
610
+ sender_id: string;
611
+ account_key: string;
612
+ recipient: string;
613
+ subject: string | null;
614
+ body: string;
615
+ thread_id: string | null;
616
+ expected_inbound_id: string | null;
617
+ technical_parts: {
618
+ signature: string;
619
+ unsubscribe: string;
620
+ };
621
+ }[];
622
+ }>;
623
+ export declare const querySchema: z.ZodObject<{
624
+ recipe: z.ZodOptional<z.ZodEnum<["never_contacted", "followup_due", "channel_gap", "replies_to_handle"]>>;
625
+ filters: z.ZodDefault<z.ZodObject<{
626
+ group_id: z.ZodOptional<z.ZodString>;
627
+ signal_filter: z.ZodOptional<z.ZodEffects<z.ZodObject<{
628
+ detected_since: z.ZodOptional<z.ZodString>;
629
+ detected_before: z.ZodOptional<z.ZodString>;
630
+ levels: z.ZodOptional<z.ZodArray<z.ZodEnum<["STRONG", "GOLDEN", "CRITICAL"]>, "many">>;
631
+ scope: z.ZodOptional<z.ZodEnum<["PERSON", "COMPANY", "BOTH"]>>;
632
+ }, "strict", z.ZodTypeAny, {
633
+ detected_since?: string | undefined;
634
+ detected_before?: string | undefined;
635
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
636
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
637
+ }, {
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
+ last_confirmed_outbound_before: z.ZodOptional<z.ZodObject<{
654
+ channel: z.ZodEnum<["any", "GMAIL", "LINKEDIN"]>;
655
+ before: z.ZodString;
656
+ }, "strict", z.ZodTypeAny, {
657
+ channel: "GMAIL" | "LINKEDIN" | "any";
658
+ before: string;
659
+ }, {
660
+ channel: "GMAIL" | "LINKEDIN" | "any";
661
+ before: string;
662
+ }>>;
663
+ counts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
664
+ min: z.ZodOptional<z.ZodNumber>;
665
+ max: z.ZodOptional<z.ZodNumber>;
666
+ channel: z.ZodEnum<["GMAIL", "LINKEDIN"]>;
667
+ kind: z.ZodEnum<["MESSAGE", "INVITATION"]>;
668
+ }, "strict", z.ZodTypeAny, {
669
+ channel: "GMAIL" | "LINKEDIN";
670
+ kind: "MESSAGE" | "INVITATION";
671
+ min?: number | undefined;
672
+ max?: number | undefined;
673
+ }, {
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
+ }>, "many">>;
699
+ never_on: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
700
+ channel: z.ZodEnum<["GMAIL", "LINKEDIN"]>;
701
+ kind: z.ZodEnum<["MESSAGE", "INVITATION"]>;
702
+ }, "strict", z.ZodTypeAny, {
703
+ channel: "GMAIL" | "LINKEDIN";
704
+ kind: "MESSAGE" | "INVITATION";
705
+ }, {
706
+ channel: "GMAIL" | "LINKEDIN";
707
+ kind: "MESSAGE" | "INVITATION";
708
+ }>, {
709
+ channel: "GMAIL" | "LINKEDIN";
710
+ kind: "MESSAGE" | "INVITATION";
711
+ }, {
712
+ channel: "GMAIL" | "LINKEDIN";
713
+ kind: "MESSAGE" | "INVITATION";
714
+ }>, "many">>;
715
+ pending: z.ZodOptional<z.ZodBoolean>;
716
+ unknown: z.ZodOptional<z.ZodBoolean>;
717
+ reply: z.ZodOptional<z.ZodEnum<["TO_HANDLE", "WAITING", "NONE"]>>;
718
+ excluded: z.ZodOptional<z.ZodBoolean>;
719
+ }, "strict", z.ZodTypeAny, {
720
+ group_id?: string | undefined;
721
+ unknown?: boolean | undefined;
722
+ signal_filter?: {
723
+ detected_since?: string | undefined;
724
+ detected_before?: string | undefined;
725
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
726
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
727
+ } | undefined;
728
+ last_confirmed_outbound_before?: {
729
+ channel: "GMAIL" | "LINKEDIN" | "any";
730
+ before: string;
731
+ } | undefined;
732
+ counts?: {
733
+ channel: "GMAIL" | "LINKEDIN";
734
+ kind: "MESSAGE" | "INVITATION";
735
+ min?: number | undefined;
736
+ max?: number | undefined;
737
+ }[] | undefined;
738
+ never_on?: {
739
+ channel: "GMAIL" | "LINKEDIN";
740
+ kind: "MESSAGE" | "INVITATION";
741
+ }[] | undefined;
742
+ pending?: boolean | undefined;
743
+ reply?: "TO_HANDLE" | "WAITING" | "NONE" | undefined;
744
+ excluded?: boolean | undefined;
745
+ }, {
746
+ group_id?: string | undefined;
747
+ unknown?: boolean | undefined;
748
+ signal_filter?: {
749
+ detected_since?: string | undefined;
750
+ detected_before?: string | undefined;
751
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
752
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
753
+ } | undefined;
754
+ last_confirmed_outbound_before?: {
755
+ channel: "GMAIL" | "LINKEDIN" | "any";
756
+ before: string;
757
+ } | undefined;
758
+ counts?: {
759
+ channel: "GMAIL" | "LINKEDIN";
760
+ kind: "MESSAGE" | "INVITATION";
761
+ min?: number | undefined;
762
+ max?: number | undefined;
763
+ }[] | undefined;
764
+ never_on?: {
765
+ channel: "GMAIL" | "LINKEDIN";
766
+ kind: "MESSAGE" | "INVITATION";
767
+ }[] | undefined;
768
+ pending?: boolean | undefined;
769
+ reply?: "TO_HANDLE" | "WAITING" | "NONE" | undefined;
770
+ excluded?: boolean | undefined;
771
+ }>>;
772
+ limit: z.ZodDefault<z.ZodNumber>;
773
+ cursor: z.ZodOptional<z.ZodString>;
774
+ organization_id: z.ZodString;
775
+ program_id: z.ZodString;
776
+ }, "strict", z.ZodTypeAny, {
777
+ filters: {
778
+ group_id?: string | undefined;
779
+ unknown?: boolean | undefined;
780
+ signal_filter?: {
781
+ detected_since?: string | undefined;
782
+ detected_before?: string | undefined;
783
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
784
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
785
+ } | undefined;
786
+ last_confirmed_outbound_before?: {
787
+ channel: "GMAIL" | "LINKEDIN" | "any";
788
+ before: string;
789
+ } | undefined;
790
+ counts?: {
791
+ channel: "GMAIL" | "LINKEDIN";
792
+ kind: "MESSAGE" | "INVITATION";
793
+ min?: number | undefined;
794
+ max?: number | undefined;
795
+ }[] | undefined;
796
+ never_on?: {
797
+ channel: "GMAIL" | "LINKEDIN";
798
+ kind: "MESSAGE" | "INVITATION";
799
+ }[] | undefined;
800
+ pending?: boolean | undefined;
801
+ reply?: "TO_HANDLE" | "WAITING" | "NONE" | undefined;
802
+ excluded?: boolean | undefined;
803
+ };
804
+ limit: number;
805
+ organization_id: string;
806
+ program_id: string;
807
+ recipe?: "never_contacted" | "followup_due" | "channel_gap" | "replies_to_handle" | undefined;
808
+ cursor?: string | undefined;
809
+ }, {
810
+ organization_id: string;
811
+ program_id: string;
812
+ recipe?: "never_contacted" | "followup_due" | "channel_gap" | "replies_to_handle" | undefined;
813
+ filters?: {
814
+ group_id?: string | undefined;
815
+ unknown?: boolean | undefined;
816
+ signal_filter?: {
817
+ detected_since?: string | undefined;
818
+ detected_before?: string | undefined;
819
+ levels?: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
820
+ scope?: "PERSON" | "COMPANY" | "BOTH" | undefined;
821
+ } | undefined;
822
+ last_confirmed_outbound_before?: {
823
+ channel: "GMAIL" | "LINKEDIN" | "any";
824
+ before: string;
825
+ } | undefined;
826
+ counts?: {
827
+ channel: "GMAIL" | "LINKEDIN";
828
+ kind: "MESSAGE" | "INVITATION";
829
+ min?: number | undefined;
830
+ max?: number | undefined;
831
+ }[] | undefined;
832
+ never_on?: {
833
+ channel: "GMAIL" | "LINKEDIN";
834
+ kind: "MESSAGE" | "INVITATION";
835
+ }[] | undefined;
836
+ pending?: boolean | undefined;
837
+ reply?: "TO_HANDLE" | "WAITING" | "NONE" | undefined;
838
+ excluded?: boolean | undefined;
839
+ } | undefined;
840
+ limit?: number | undefined;
841
+ cursor?: string | undefined;
842
+ }>;
843
+ export declare const submitSchema: z.ZodObject<{
844
+ decisions: z.ZodArray<z.ZodEffects<z.ZodObject<{
845
+ request_key: z.ZodString;
846
+ lead_id: z.ZodString;
847
+ person_id: z.ZodString;
848
+ purpose: z.ZodEnum<["FIRST_CONTACT", "FOLLOW_UP", "REPLY"]>;
849
+ reason: z.ZodString;
850
+ sources: z.ZodArray<z.ZodObject<{
851
+ label: z.ZodString;
852
+ url: z.ZodString;
853
+ }, "strict", z.ZodTypeAny, {
854
+ label: string;
855
+ url: string;
856
+ }, {
857
+ label: string;
858
+ url: string;
859
+ }>, "many">;
860
+ context: z.ZodObject<{
861
+ contract_version: z.ZodLiteral<"agent-writing-context.v1">;
862
+ context_version: z.ZodString;
863
+ facts_version: z.ZodString;
864
+ read_at: z.ZodString;
865
+ versions: z.ZodObject<{
866
+ identity: z.ZodString;
867
+ qualification: z.ZodString;
868
+ signals: z.ZodString;
869
+ conversation: z.ZodString;
870
+ contactState: z.ZodString;
871
+ exclusion: z.ZodString;
872
+ authorization: z.ZodString;
873
+ workspace: z.ZodString;
874
+ }, "strict", z.ZodTypeAny, {
875
+ identity: string;
876
+ qualification: string;
877
+ signals: string;
878
+ conversation: string;
879
+ contactState: string;
880
+ exclusion: string;
881
+ authorization: string;
882
+ workspace: string;
883
+ }, {
884
+ identity: string;
885
+ qualification: string;
886
+ signals: string;
887
+ conversation: string;
888
+ contactState: string;
889
+ exclusion: string;
890
+ authorization: string;
891
+ workspace: string;
892
+ }>;
893
+ }, "strict", z.ZodTypeAny, {
894
+ contract_version: "agent-writing-context.v1";
895
+ context_version: string;
896
+ facts_version: string;
897
+ read_at: string;
898
+ versions: {
899
+ identity: string;
900
+ qualification: string;
901
+ signals: string;
902
+ conversation: string;
903
+ contactState: string;
904
+ exclusion: string;
905
+ authorization: string;
906
+ workspace: string;
907
+ };
908
+ }, {
909
+ contract_version: "agent-writing-context.v1";
910
+ context_version: string;
911
+ facts_version: string;
912
+ read_at: string;
913
+ versions: {
914
+ identity: string;
915
+ qualification: string;
916
+ signals: string;
917
+ conversation: string;
918
+ contactState: string;
919
+ exclusion: string;
920
+ authorization: string;
921
+ workspace: string;
922
+ };
923
+ }>;
924
+ authorization_revision: z.ZodNumber;
925
+ messages: z.ZodArray<z.ZodEffects<z.ZodObject<{
926
+ channel: z.ZodEnum<["GMAIL", "LINKEDIN"]>;
927
+ action: z.ZodEnum<["MESSAGE", "INVITATION"]>;
928
+ sender_id: z.ZodString;
929
+ account_key: z.ZodString;
930
+ recipient: z.ZodString;
931
+ subject: z.ZodNullable<z.ZodString>;
932
+ body: z.ZodString;
933
+ thread_id: z.ZodNullable<z.ZodString>;
934
+ expected_inbound_id: z.ZodNullable<z.ZodString>;
935
+ technical_parts: z.ZodObject<{
936
+ signature: z.ZodString;
937
+ unsubscribe: z.ZodString;
938
+ }, "strict", z.ZodTypeAny, {
939
+ signature: string;
940
+ unsubscribe: string;
941
+ }, {
942
+ signature: string;
943
+ unsubscribe: string;
944
+ }>;
945
+ }, "strict", z.ZodTypeAny, {
946
+ channel: "GMAIL" | "LINKEDIN";
947
+ action: "MESSAGE" | "INVITATION";
948
+ sender_id: string;
949
+ account_key: string;
950
+ recipient: string;
951
+ subject: string | null;
952
+ body: string;
953
+ thread_id: string | null;
954
+ expected_inbound_id: string | null;
955
+ technical_parts: {
956
+ signature: string;
957
+ unsubscribe: string;
958
+ };
959
+ }, {
960
+ channel: "GMAIL" | "LINKEDIN";
961
+ action: "MESSAGE" | "INVITATION";
962
+ sender_id: string;
963
+ account_key: string;
964
+ recipient: string;
965
+ subject: string | null;
966
+ body: string;
967
+ thread_id: string | null;
968
+ expected_inbound_id: string | null;
969
+ technical_parts: {
970
+ signature: string;
971
+ unsubscribe: string;
972
+ };
973
+ }>, {
974
+ channel: "GMAIL" | "LINKEDIN";
975
+ action: "MESSAGE" | "INVITATION";
976
+ sender_id: string;
977
+ account_key: string;
978
+ recipient: string;
979
+ subject: string | null;
980
+ body: string;
981
+ thread_id: string | null;
982
+ expected_inbound_id: string | null;
983
+ technical_parts: {
984
+ signature: string;
985
+ unsubscribe: string;
986
+ };
987
+ }, {
988
+ channel: "GMAIL" | "LINKEDIN";
989
+ action: "MESSAGE" | "INVITATION";
990
+ sender_id: string;
991
+ account_key: string;
992
+ recipient: string;
993
+ subject: string | null;
994
+ body: string;
995
+ thread_id: string | null;
996
+ expected_inbound_id: string | null;
997
+ technical_parts: {
998
+ signature: string;
999
+ unsubscribe: string;
1000
+ };
1001
+ }>, "many">;
1002
+ }, "strict", z.ZodTypeAny, {
1003
+ request_key: string;
1004
+ lead_id: string;
1005
+ person_id: string;
1006
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1007
+ reason: string;
1008
+ sources: {
1009
+ label: string;
1010
+ url: string;
1011
+ }[];
1012
+ context: {
1013
+ contract_version: "agent-writing-context.v1";
1014
+ context_version: string;
1015
+ facts_version: string;
1016
+ read_at: string;
1017
+ versions: {
1018
+ identity: string;
1019
+ qualification: string;
1020
+ signals: string;
1021
+ conversation: string;
1022
+ contactState: string;
1023
+ exclusion: string;
1024
+ authorization: string;
1025
+ workspace: string;
1026
+ };
1027
+ };
1028
+ authorization_revision: number;
1029
+ messages: {
1030
+ channel: "GMAIL" | "LINKEDIN";
1031
+ action: "MESSAGE" | "INVITATION";
1032
+ sender_id: string;
1033
+ account_key: string;
1034
+ recipient: string;
1035
+ subject: string | null;
1036
+ body: string;
1037
+ thread_id: string | null;
1038
+ expected_inbound_id: string | null;
1039
+ technical_parts: {
1040
+ signature: string;
1041
+ unsubscribe: string;
1042
+ };
1043
+ }[];
1044
+ }, {
1045
+ request_key: string;
1046
+ lead_id: string;
1047
+ person_id: string;
1048
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1049
+ reason: string;
1050
+ sources: {
1051
+ label: string;
1052
+ url: string;
1053
+ }[];
1054
+ context: {
1055
+ contract_version: "agent-writing-context.v1";
1056
+ context_version: string;
1057
+ facts_version: string;
1058
+ read_at: string;
1059
+ versions: {
1060
+ identity: string;
1061
+ qualification: string;
1062
+ signals: string;
1063
+ conversation: string;
1064
+ contactState: string;
1065
+ exclusion: string;
1066
+ authorization: string;
1067
+ workspace: string;
1068
+ };
1069
+ };
1070
+ authorization_revision: number;
1071
+ messages: {
1072
+ channel: "GMAIL" | "LINKEDIN";
1073
+ action: "MESSAGE" | "INVITATION";
1074
+ sender_id: string;
1075
+ account_key: string;
1076
+ recipient: string;
1077
+ subject: string | null;
1078
+ body: string;
1079
+ thread_id: string | null;
1080
+ expected_inbound_id: string | null;
1081
+ technical_parts: {
1082
+ signature: string;
1083
+ unsubscribe: string;
1084
+ };
1085
+ }[];
1086
+ }>, {
1087
+ request_key: string;
1088
+ lead_id: string;
1089
+ person_id: string;
1090
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1091
+ reason: string;
1092
+ sources: {
1093
+ label: string;
1094
+ url: string;
1095
+ }[];
1096
+ context: {
1097
+ contract_version: "agent-writing-context.v1";
1098
+ context_version: string;
1099
+ facts_version: string;
1100
+ read_at: string;
1101
+ versions: {
1102
+ identity: string;
1103
+ qualification: string;
1104
+ signals: string;
1105
+ conversation: string;
1106
+ contactState: string;
1107
+ exclusion: string;
1108
+ authorization: string;
1109
+ workspace: string;
1110
+ };
1111
+ };
1112
+ authorization_revision: number;
1113
+ messages: {
1114
+ channel: "GMAIL" | "LINKEDIN";
1115
+ action: "MESSAGE" | "INVITATION";
1116
+ sender_id: string;
1117
+ account_key: string;
1118
+ recipient: string;
1119
+ subject: string | null;
1120
+ body: string;
1121
+ thread_id: string | null;
1122
+ expected_inbound_id: string | null;
1123
+ technical_parts: {
1124
+ signature: string;
1125
+ unsubscribe: string;
1126
+ };
1127
+ }[];
1128
+ }, {
1129
+ request_key: string;
1130
+ lead_id: string;
1131
+ person_id: string;
1132
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1133
+ reason: string;
1134
+ sources: {
1135
+ label: string;
1136
+ url: string;
1137
+ }[];
1138
+ context: {
1139
+ contract_version: "agent-writing-context.v1";
1140
+ context_version: string;
1141
+ facts_version: string;
1142
+ read_at: string;
1143
+ versions: {
1144
+ identity: string;
1145
+ qualification: string;
1146
+ signals: string;
1147
+ conversation: string;
1148
+ contactState: string;
1149
+ exclusion: string;
1150
+ authorization: string;
1151
+ workspace: string;
1152
+ };
1153
+ };
1154
+ authorization_revision: number;
1155
+ messages: {
1156
+ channel: "GMAIL" | "LINKEDIN";
1157
+ action: "MESSAGE" | "INVITATION";
1158
+ sender_id: string;
1159
+ account_key: string;
1160
+ recipient: string;
1161
+ subject: string | null;
1162
+ body: string;
1163
+ thread_id: string | null;
1164
+ expected_inbound_id: string | null;
1165
+ technical_parts: {
1166
+ signature: string;
1167
+ unsubscribe: string;
1168
+ };
1169
+ }[];
1170
+ }>, "many">;
1171
+ organization_id: z.ZodString;
1172
+ program_id: z.ZodString;
1173
+ }, "strict", z.ZodTypeAny, {
1174
+ organization_id: string;
1175
+ program_id: string;
1176
+ decisions: {
1177
+ request_key: string;
1178
+ lead_id: string;
1179
+ person_id: string;
1180
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1181
+ reason: string;
1182
+ sources: {
1183
+ label: string;
1184
+ url: string;
1185
+ }[];
1186
+ context: {
1187
+ contract_version: "agent-writing-context.v1";
1188
+ context_version: string;
1189
+ facts_version: string;
1190
+ read_at: string;
1191
+ versions: {
1192
+ identity: string;
1193
+ qualification: string;
1194
+ signals: string;
1195
+ conversation: string;
1196
+ contactState: string;
1197
+ exclusion: string;
1198
+ authorization: string;
1199
+ workspace: string;
1200
+ };
1201
+ };
1202
+ authorization_revision: number;
1203
+ messages: {
1204
+ channel: "GMAIL" | "LINKEDIN";
1205
+ action: "MESSAGE" | "INVITATION";
1206
+ sender_id: string;
1207
+ account_key: string;
1208
+ recipient: string;
1209
+ subject: string | null;
1210
+ body: string;
1211
+ thread_id: string | null;
1212
+ expected_inbound_id: string | null;
1213
+ technical_parts: {
1214
+ signature: string;
1215
+ unsubscribe: string;
1216
+ };
1217
+ }[];
1218
+ }[];
1219
+ }, {
1220
+ organization_id: string;
1221
+ program_id: string;
1222
+ decisions: {
1223
+ request_key: string;
1224
+ lead_id: string;
1225
+ person_id: string;
1226
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1227
+ reason: string;
1228
+ sources: {
1229
+ label: string;
1230
+ url: string;
1231
+ }[];
1232
+ context: {
1233
+ contract_version: "agent-writing-context.v1";
1234
+ context_version: string;
1235
+ facts_version: string;
1236
+ read_at: string;
1237
+ versions: {
1238
+ identity: string;
1239
+ qualification: string;
1240
+ signals: string;
1241
+ conversation: string;
1242
+ contactState: string;
1243
+ exclusion: string;
1244
+ authorization: string;
1245
+ workspace: string;
1246
+ };
1247
+ };
1248
+ authorization_revision: number;
1249
+ messages: {
1250
+ channel: "GMAIL" | "LINKEDIN";
1251
+ action: "MESSAGE" | "INVITATION";
1252
+ sender_id: string;
1253
+ account_key: string;
1254
+ recipient: string;
1255
+ subject: string | null;
1256
+ body: string;
1257
+ thread_id: string | null;
1258
+ expected_inbound_id: string | null;
1259
+ technical_parts: {
1260
+ signature: string;
1261
+ unsubscribe: string;
1262
+ };
1263
+ }[];
1264
+ }[];
1265
+ }>;
1266
+ export declare const acknowledgeSchema: z.ZodEffects<z.ZodObject<{
1267
+ cursor: z.ZodString;
1268
+ receipts: z.ZodArray<z.ZodObject<{
1269
+ change_id: z.ZodEffects<z.ZodString, string, string>;
1270
+ status: z.ZodEnum<["PROCESSED", "DISMISSED"]>;
1271
+ reason: z.ZodString;
1272
+ }, "strict", z.ZodTypeAny, {
1273
+ status: "PROCESSED" | "DISMISSED";
1274
+ reason: string;
1275
+ change_id: string;
1276
+ }, {
1277
+ status: "PROCESSED" | "DISMISSED";
1278
+ reason: string;
1279
+ change_id: string;
1280
+ }>, "many">;
1281
+ organization_id: z.ZodString;
1282
+ program_id: z.ZodString;
1283
+ }, "strict", z.ZodTypeAny, {
1284
+ cursor: string;
1285
+ organization_id: string;
1286
+ program_id: string;
1287
+ receipts: {
1288
+ status: "PROCESSED" | "DISMISSED";
1289
+ reason: string;
1290
+ change_id: string;
1291
+ }[];
1292
+ }, {
1293
+ cursor: string;
1294
+ organization_id: string;
1295
+ program_id: string;
1296
+ receipts: {
1297
+ status: "PROCESSED" | "DISMISSED";
1298
+ reason: string;
1299
+ change_id: string;
1300
+ }[];
1301
+ }>, {
1302
+ cursor: string;
1303
+ organization_id: string;
1304
+ program_id: string;
1305
+ receipts: {
1306
+ status: "PROCESSED" | "DISMISSED";
1307
+ reason: string;
1308
+ change_id: string;
1309
+ }[];
1310
+ }, {
1311
+ cursor: string;
1312
+ organization_id: string;
1313
+ program_id: string;
1314
+ receipts: {
1315
+ status: "PROCESSED" | "DISMISSED";
1316
+ reason: string;
1317
+ change_id: string;
1318
+ }[];
1319
+ }>;
1320
+ export declare function queryBody(v: z.infer<typeof querySchema>): {
1321
+ recipe: "never_contacted" | "followup_due" | "channel_gap" | "replies_to_handle" | undefined;
1322
+ limit: number;
1323
+ cursor: string | undefined;
1324
+ filters: {
1325
+ groupId: string | undefined;
1326
+ signalFilter: {
1327
+ detectedSince: string | undefined;
1328
+ detectedBefore: string | undefined;
1329
+ levels: ("STRONG" | "GOLDEN" | "CRITICAL")[] | undefined;
1330
+ scope: "PERSON" | "COMPANY" | "BOTH" | undefined;
1331
+ } | undefined;
1332
+ lastConfirmedOutboundBefore: {
1333
+ channel: "GMAIL" | "LINKEDIN" | "any";
1334
+ before: string;
1335
+ } | undefined;
1336
+ counts: {
1337
+ channel: "GMAIL" | "LINKEDIN";
1338
+ kind: "MESSAGE" | "INVITATION";
1339
+ min?: number | undefined;
1340
+ max?: number | undefined;
1341
+ }[] | undefined;
1342
+ neverOn: {
1343
+ channel: "GMAIL" | "LINKEDIN";
1344
+ kind: "MESSAGE" | "INVITATION";
1345
+ }[] | undefined;
1346
+ pending: boolean | undefined;
1347
+ unknown: boolean | undefined;
1348
+ reply: "TO_HANDLE" | "WAITING" | "NONE" | undefined;
1349
+ excluded: boolean | undefined;
1350
+ };
1351
+ };
1352
+ export declare function decisionBody(d: z.infer<typeof decision>): {
1353
+ requestKey: string;
1354
+ leadId: string;
1355
+ personId: string;
1356
+ purpose: "FIRST_CONTACT" | "FOLLOW_UP" | "REPLY";
1357
+ reason: string;
1358
+ sources: {
1359
+ label: string;
1360
+ url: string;
1361
+ }[];
1362
+ context: {
1363
+ contractVersion: "agent-writing-context.v1";
1364
+ contextVersion: string;
1365
+ factsVersion: string;
1366
+ readAt: string;
1367
+ versions: {
1368
+ identity: string;
1369
+ qualification: string;
1370
+ signals: string;
1371
+ conversation: string;
1372
+ contactState: string;
1373
+ exclusion: string;
1374
+ authorization: string;
1375
+ workspace: string;
1376
+ };
1377
+ };
1378
+ authorizationRevision: number;
1379
+ messages: {
1380
+ channel: "GMAIL" | "LINKEDIN";
1381
+ action: "MESSAGE" | "INVITATION";
1382
+ senderId: string;
1383
+ accountKey: string;
1384
+ recipient: string;
1385
+ subject: string | null;
1386
+ body: string;
1387
+ threadId: string | null;
1388
+ expectedInboundId: string | null;
1389
+ technicalParts: {
1390
+ signature: string;
1391
+ unsubscribe: string;
1392
+ };
1393
+ }[];
1394
+ };