@crmy/shared 0.5.9 → 0.6.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.
- package/dist/schemas.d.ts +573 -176
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +191 -39
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +97 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const limit: z.ZodDefault<z.ZodNumber>;
|
|
|
5
5
|
export declare const lifecycleStage: z.ZodEnum<["lead", "prospect", "customer", "churned"]>;
|
|
6
6
|
export declare const oppStage: z.ZodEnum<["prospecting", "qualification", "proposal", "negotiation", "closed_won", "closed_lost"]>;
|
|
7
7
|
export declare const forecastCat: z.ZodEnum<["pipeline", "best_case", "commit", "closed"]>;
|
|
8
|
-
export declare const activityType: z.ZodEnum<["call", "email", "meeting", "note", "task"]>;
|
|
8
|
+
export declare const activityType: z.ZodEnum<["call", "email", "meeting", "note", "task", "demo", "proposal", "research", "handoff", "status_update"]>;
|
|
9
9
|
export declare const direction: z.ZodEnum<["inbound", "outbound"]>;
|
|
10
10
|
export declare const userRole: z.ZodEnum<["owner", "admin", "member"]>;
|
|
11
11
|
export declare const subjectType: z.ZodEnum<["contact", "account", "opportunity", "use_case"]>;
|
|
@@ -18,6 +18,7 @@ export declare const contactCreate: z.ZodObject<{
|
|
|
18
18
|
company_name: z.ZodOptional<z.ZodString>;
|
|
19
19
|
account_id: z.ZodOptional<z.ZodString>;
|
|
20
20
|
lifecycle_stage: z.ZodDefault<z.ZodEnum<["lead", "prospect", "customer", "churned"]>>;
|
|
21
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
21
22
|
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
22
23
|
custom_fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
23
24
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -25,6 +26,7 @@ export declare const contactCreate: z.ZodObject<{
|
|
|
25
26
|
first_name: string;
|
|
26
27
|
last_name: string;
|
|
27
28
|
lifecycle_stage: "lead" | "prospect" | "customer" | "churned";
|
|
29
|
+
aliases: string[];
|
|
28
30
|
tags: string[];
|
|
29
31
|
custom_fields: Record<string, unknown>;
|
|
30
32
|
email?: string | undefined;
|
|
@@ -36,12 +38,13 @@ export declare const contactCreate: z.ZodObject<{
|
|
|
36
38
|
}, {
|
|
37
39
|
first_name: string;
|
|
38
40
|
email?: string | undefined;
|
|
39
|
-
phone?: string | undefined;
|
|
40
41
|
last_name?: string | undefined;
|
|
42
|
+
phone?: string | undefined;
|
|
41
43
|
title?: string | undefined;
|
|
42
44
|
company_name?: string | undefined;
|
|
43
45
|
account_id?: string | undefined;
|
|
44
46
|
lifecycle_stage?: "lead" | "prospect" | "customer" | "churned" | undefined;
|
|
47
|
+
aliases?: string[] | undefined;
|
|
45
48
|
tags?: string[] | undefined;
|
|
46
49
|
custom_fields?: Record<string, unknown> | undefined;
|
|
47
50
|
source?: string | undefined;
|
|
@@ -59,30 +62,33 @@ export declare const contactUpdate: z.ZodObject<{
|
|
|
59
62
|
owner_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
63
|
lifecycle_stage: z.ZodOptional<z.ZodEnum<["lead", "prospect", "customer", "churned"]>>;
|
|
61
64
|
source: z.ZodOptional<z.ZodString>;
|
|
65
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
62
66
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
63
67
|
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
64
68
|
}, "strip", z.ZodTypeAny, {
|
|
65
69
|
email?: string | undefined;
|
|
66
|
-
phone?: string | undefined;
|
|
67
70
|
first_name?: string | undefined;
|
|
68
71
|
last_name?: string | undefined;
|
|
72
|
+
phone?: string | undefined;
|
|
69
73
|
title?: string | undefined;
|
|
70
74
|
company_name?: string | undefined;
|
|
71
75
|
account_id?: string | null | undefined;
|
|
72
76
|
lifecycle_stage?: "lead" | "prospect" | "customer" | "churned" | undefined;
|
|
77
|
+
aliases?: string[] | undefined;
|
|
73
78
|
tags?: string[] | undefined;
|
|
74
79
|
custom_fields?: Record<string, unknown> | undefined;
|
|
75
80
|
source?: string | undefined;
|
|
76
81
|
owner_id?: string | null | undefined;
|
|
77
82
|
}, {
|
|
78
83
|
email?: string | undefined;
|
|
79
|
-
phone?: string | undefined;
|
|
80
84
|
first_name?: string | undefined;
|
|
81
85
|
last_name?: string | undefined;
|
|
86
|
+
phone?: string | undefined;
|
|
82
87
|
title?: string | undefined;
|
|
83
88
|
company_name?: string | undefined;
|
|
84
89
|
account_id?: string | null | undefined;
|
|
85
90
|
lifecycle_stage?: "lead" | "prospect" | "customer" | "churned" | undefined;
|
|
91
|
+
aliases?: string[] | undefined;
|
|
86
92
|
tags?: string[] | undefined;
|
|
87
93
|
custom_fields?: Record<string, unknown> | undefined;
|
|
88
94
|
source?: string | undefined;
|
|
@@ -92,13 +98,14 @@ export declare const contactUpdate: z.ZodObject<{
|
|
|
92
98
|
id: string;
|
|
93
99
|
patch: {
|
|
94
100
|
email?: string | undefined;
|
|
95
|
-
phone?: string | undefined;
|
|
96
101
|
first_name?: string | undefined;
|
|
97
102
|
last_name?: string | undefined;
|
|
103
|
+
phone?: string | undefined;
|
|
98
104
|
title?: string | undefined;
|
|
99
105
|
company_name?: string | undefined;
|
|
100
106
|
account_id?: string | null | undefined;
|
|
101
107
|
lifecycle_stage?: "lead" | "prospect" | "customer" | "churned" | undefined;
|
|
108
|
+
aliases?: string[] | undefined;
|
|
102
109
|
tags?: string[] | undefined;
|
|
103
110
|
custom_fields?: Record<string, unknown> | undefined;
|
|
104
111
|
source?: string | undefined;
|
|
@@ -108,13 +115,14 @@ export declare const contactUpdate: z.ZodObject<{
|
|
|
108
115
|
id: string;
|
|
109
116
|
patch: {
|
|
110
117
|
email?: string | undefined;
|
|
111
|
-
phone?: string | undefined;
|
|
112
118
|
first_name?: string | undefined;
|
|
113
119
|
last_name?: string | undefined;
|
|
120
|
+
phone?: string | undefined;
|
|
114
121
|
title?: string | undefined;
|
|
115
122
|
company_name?: string | undefined;
|
|
116
123
|
account_id?: string | null | undefined;
|
|
117
124
|
lifecycle_stage?: "lead" | "prospect" | "customer" | "churned" | undefined;
|
|
125
|
+
aliases?: string[] | undefined;
|
|
118
126
|
tags?: string[] | undefined;
|
|
119
127
|
custom_fields?: Record<string, unknown> | undefined;
|
|
120
128
|
source?: string | undefined;
|
|
@@ -162,15 +170,15 @@ export declare const contactSetLifecycle: z.ZodObject<{
|
|
|
162
170
|
export declare const contactGetTimeline: z.ZodObject<{
|
|
163
171
|
id: z.ZodString;
|
|
164
172
|
limit: z.ZodDefault<z.ZodDefault<z.ZodNumber>>;
|
|
165
|
-
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task"]>, "many">>;
|
|
173
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task", "demo", "proposal", "research", "handoff", "status_update"]>, "many">>;
|
|
166
174
|
}, "strip", z.ZodTypeAny, {
|
|
167
175
|
id: string;
|
|
168
176
|
limit: number;
|
|
169
|
-
types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
|
|
177
|
+
types?: ("proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update")[] | undefined;
|
|
170
178
|
}, {
|
|
171
179
|
id: string;
|
|
172
180
|
limit?: number | undefined;
|
|
173
|
-
types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
|
|
181
|
+
types?: ("proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update")[] | undefined;
|
|
174
182
|
}>;
|
|
175
183
|
export declare const accountCreate: z.ZodObject<{
|
|
176
184
|
name: z.ZodString;
|
|
@@ -181,9 +189,11 @@ export declare const accountCreate: z.ZodObject<{
|
|
|
181
189
|
currency_code: z.ZodDefault<z.ZodString>;
|
|
182
190
|
website: z.ZodOptional<z.ZodString>;
|
|
183
191
|
parent_id: z.ZodOptional<z.ZodString>;
|
|
192
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
184
193
|
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
185
194
|
custom_fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
186
195
|
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
aliases: string[];
|
|
187
197
|
tags: string[];
|
|
188
198
|
custom_fields: Record<string, unknown>;
|
|
189
199
|
name: string;
|
|
@@ -196,6 +206,7 @@ export declare const accountCreate: z.ZodObject<{
|
|
|
196
206
|
parent_id?: string | undefined;
|
|
197
207
|
}, {
|
|
198
208
|
name: string;
|
|
209
|
+
aliases?: string[] | undefined;
|
|
199
210
|
tags?: string[] | undefined;
|
|
200
211
|
custom_fields?: Record<string, unknown> | undefined;
|
|
201
212
|
domain?: string | undefined;
|
|
@@ -218,9 +229,11 @@ export declare const accountUpdate: z.ZodObject<{
|
|
|
218
229
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
230
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
231
|
owner_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
221
233
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
222
234
|
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
223
235
|
}, "strip", z.ZodTypeAny, {
|
|
236
|
+
aliases?: string[] | undefined;
|
|
224
237
|
tags?: string[] | undefined;
|
|
225
238
|
custom_fields?: Record<string, unknown> | undefined;
|
|
226
239
|
owner_id?: string | null | undefined;
|
|
@@ -233,6 +246,7 @@ export declare const accountUpdate: z.ZodObject<{
|
|
|
233
246
|
website?: string | null | undefined;
|
|
234
247
|
parent_id?: string | null | undefined;
|
|
235
248
|
}, {
|
|
249
|
+
aliases?: string[] | undefined;
|
|
236
250
|
tags?: string[] | undefined;
|
|
237
251
|
custom_fields?: Record<string, unknown> | undefined;
|
|
238
252
|
owner_id?: string | null | undefined;
|
|
@@ -248,6 +262,7 @@ export declare const accountUpdate: z.ZodObject<{
|
|
|
248
262
|
}, "strip", z.ZodTypeAny, {
|
|
249
263
|
id: string;
|
|
250
264
|
patch: {
|
|
265
|
+
aliases?: string[] | undefined;
|
|
251
266
|
tags?: string[] | undefined;
|
|
252
267
|
custom_fields?: Record<string, unknown> | undefined;
|
|
253
268
|
owner_id?: string | null | undefined;
|
|
@@ -263,6 +278,7 @@ export declare const accountUpdate: z.ZodObject<{
|
|
|
263
278
|
}, {
|
|
264
279
|
id: string;
|
|
265
280
|
patch: {
|
|
281
|
+
aliases?: string[] | undefined;
|
|
266
282
|
tags?: string[] | undefined;
|
|
267
283
|
custom_fields?: Record<string, unknown> | undefined;
|
|
268
284
|
owner_id?: string | null | undefined;
|
|
@@ -473,7 +489,7 @@ export declare const pipelineSummary: z.ZodObject<{
|
|
|
473
489
|
group_by?: "owner" | "stage" | "forecast_cat" | undefined;
|
|
474
490
|
}>;
|
|
475
491
|
export declare const activityCreate: z.ZodObject<{
|
|
476
|
-
type: z.ZodEnum<["call", "email", "meeting", "note", "task"]>;
|
|
492
|
+
type: z.ZodEnum<["call", "email", "meeting", "note", "task", "demo", "proposal", "research", "handoff", "status_update"]>;
|
|
477
493
|
subject: z.ZodString;
|
|
478
494
|
body: z.ZodOptional<z.ZodString>;
|
|
479
495
|
contact_id: z.ZodOptional<z.ZodString>;
|
|
@@ -491,7 +507,7 @@ export declare const activityCreate: z.ZodObject<{
|
|
|
491
507
|
occurred_at: z.ZodOptional<z.ZodString>;
|
|
492
508
|
outcome: z.ZodOptional<z.ZodString>;
|
|
493
509
|
}, "strip", z.ZodTypeAny, {
|
|
494
|
-
type: "call" | "email" | "meeting" | "note" | "task";
|
|
510
|
+
type: "proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update";
|
|
495
511
|
custom_fields: Record<string, unknown>;
|
|
496
512
|
subject: string;
|
|
497
513
|
account_id?: string | undefined;
|
|
@@ -509,7 +525,7 @@ export declare const activityCreate: z.ZodObject<{
|
|
|
509
525
|
occurred_at?: string | undefined;
|
|
510
526
|
outcome?: string | undefined;
|
|
511
527
|
}, {
|
|
512
|
-
type: "call" | "email" | "meeting" | "note" | "task";
|
|
528
|
+
type: "proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update";
|
|
513
529
|
subject: string;
|
|
514
530
|
account_id?: string | undefined;
|
|
515
531
|
custom_fields?: Record<string, unknown> | undefined;
|
|
@@ -571,7 +587,7 @@ export declare const activitySearch: z.ZodObject<{
|
|
|
571
587
|
contact_id: z.ZodOptional<z.ZodString>;
|
|
572
588
|
account_id: z.ZodOptional<z.ZodString>;
|
|
573
589
|
opportunity_id: z.ZodOptional<z.ZodString>;
|
|
574
|
-
type: z.ZodOptional<z.ZodEnum<["call", "email", "meeting", "note", "task"]>>;
|
|
590
|
+
type: z.ZodOptional<z.ZodEnum<["call", "email", "meeting", "note", "task", "demo", "proposal", "research", "handoff", "status_update"]>>;
|
|
575
591
|
subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
|
|
576
592
|
subject_id: z.ZodOptional<z.ZodString>;
|
|
577
593
|
performed_by: z.ZodOptional<z.ZodString>;
|
|
@@ -580,8 +596,8 @@ export declare const activitySearch: z.ZodObject<{
|
|
|
580
596
|
cursor: z.ZodOptional<z.ZodString>;
|
|
581
597
|
}, "strip", z.ZodTypeAny, {
|
|
582
598
|
limit: number;
|
|
583
|
-
type?: "call" | "email" | "meeting" | "note" | "task" | undefined;
|
|
584
599
|
account_id?: string | undefined;
|
|
600
|
+
type?: "proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update" | undefined;
|
|
585
601
|
cursor?: string | undefined;
|
|
586
602
|
contact_id?: string | undefined;
|
|
587
603
|
opportunity_id?: string | undefined;
|
|
@@ -590,8 +606,8 @@ export declare const activitySearch: z.ZodObject<{
|
|
|
590
606
|
subject_id?: string | undefined;
|
|
591
607
|
outcome?: string | undefined;
|
|
592
608
|
}, {
|
|
593
|
-
type?: "call" | "email" | "meeting" | "note" | "task" | undefined;
|
|
594
609
|
account_id?: string | undefined;
|
|
610
|
+
type?: "proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update" | undefined;
|
|
595
611
|
limit?: number | undefined;
|
|
596
612
|
cursor?: string | undefined;
|
|
597
613
|
contact_id?: string | undefined;
|
|
@@ -614,30 +630,78 @@ export declare const activityComplete: z.ZodObject<{
|
|
|
614
630
|
note?: string | undefined;
|
|
615
631
|
completed_at?: string | undefined;
|
|
616
632
|
}>;
|
|
617
|
-
export declare const
|
|
633
|
+
export declare const dealAdvance: z.ZodObject<{
|
|
634
|
+
opportunity_id: z.ZodString;
|
|
635
|
+
stage: z.ZodEnum<["prospecting", "qualification", "proposal", "negotiation", "closed_won", "closed_lost"]>;
|
|
636
|
+
note: z.ZodOptional<z.ZodString>;
|
|
637
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
638
|
+
title: z.ZodString;
|
|
639
|
+
body: z.ZodString;
|
|
640
|
+
context_type: z.ZodDefault<z.ZodString>;
|
|
641
|
+
}, "strip", z.ZodTypeAny, {
|
|
642
|
+
title: string;
|
|
643
|
+
body: string;
|
|
644
|
+
context_type: string;
|
|
645
|
+
}, {
|
|
646
|
+
title: string;
|
|
647
|
+
body: string;
|
|
648
|
+
context_type?: string | undefined;
|
|
649
|
+
}>>;
|
|
650
|
+
}, "strip", z.ZodTypeAny, {
|
|
651
|
+
stage: "prospecting" | "qualification" | "proposal" | "negotiation" | "closed_won" | "closed_lost";
|
|
652
|
+
opportunity_id: string;
|
|
653
|
+
note?: string | undefined;
|
|
654
|
+
context?: {
|
|
655
|
+
title: string;
|
|
656
|
+
body: string;
|
|
657
|
+
context_type: string;
|
|
658
|
+
} | undefined;
|
|
659
|
+
}, {
|
|
660
|
+
stage: "prospecting" | "qualification" | "proposal" | "negotiation" | "closed_won" | "closed_lost";
|
|
661
|
+
opportunity_id: string;
|
|
662
|
+
note?: string | undefined;
|
|
663
|
+
context?: {
|
|
664
|
+
title: string;
|
|
665
|
+
body: string;
|
|
666
|
+
context_type?: string | undefined;
|
|
667
|
+
} | undefined;
|
|
668
|
+
}>;
|
|
669
|
+
export declare const contactOutreach: z.ZodObject<{
|
|
618
670
|
contact_id: z.ZodString;
|
|
619
|
-
|
|
671
|
+
channel: z.ZodEnum<["email", "call", "linkedin", "other"]>;
|
|
620
672
|
subject: z.ZodString;
|
|
621
673
|
body: z.ZodOptional<z.ZodString>;
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
674
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
675
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
676
|
+
title: z.ZodString;
|
|
677
|
+
body: z.ZodString;
|
|
678
|
+
}, "strip", z.ZodTypeAny, {
|
|
679
|
+
title: string;
|
|
680
|
+
body: string;
|
|
681
|
+
}, {
|
|
682
|
+
title: string;
|
|
683
|
+
body: string;
|
|
684
|
+
}>>;
|
|
625
685
|
}, "strip", z.ZodTypeAny, {
|
|
626
|
-
type: "call" | "email" | "meeting" | "note" | "task";
|
|
627
686
|
contact_id: string;
|
|
628
687
|
subject: string;
|
|
688
|
+
channel: "call" | "email" | "linkedin" | "other";
|
|
629
689
|
body?: string | undefined;
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
690
|
+
outcome?: string | undefined;
|
|
691
|
+
context?: {
|
|
692
|
+
title: string;
|
|
693
|
+
body: string;
|
|
694
|
+
} | undefined;
|
|
633
695
|
}, {
|
|
634
|
-
type: "call" | "email" | "meeting" | "note" | "task";
|
|
635
696
|
contact_id: string;
|
|
636
697
|
subject: string;
|
|
698
|
+
channel: "call" | "email" | "linkedin" | "other";
|
|
637
699
|
body?: string | undefined;
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
700
|
+
outcome?: string | undefined;
|
|
701
|
+
context?: {
|
|
702
|
+
title: string;
|
|
703
|
+
body: string;
|
|
704
|
+
} | undefined;
|
|
641
705
|
}>;
|
|
642
706
|
export declare const crmSearch: z.ZodObject<{
|
|
643
707
|
query: z.ZodString;
|
|
@@ -717,6 +781,16 @@ export declare const schemaGet: z.ZodObject<{
|
|
|
717
781
|
object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
|
|
718
782
|
}>;
|
|
719
783
|
export declare const tenantGetStats: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
784
|
+
export declare const guideSearch: z.ZodObject<{
|
|
785
|
+
query: z.ZodString;
|
|
786
|
+
section: z.ZodOptional<z.ZodString>;
|
|
787
|
+
}, "strip", z.ZodTypeAny, {
|
|
788
|
+
query: string;
|
|
789
|
+
section?: string | undefined;
|
|
790
|
+
}, {
|
|
791
|
+
query: string;
|
|
792
|
+
section?: string | undefined;
|
|
793
|
+
}>;
|
|
720
794
|
export declare const authRegister: z.ZodObject<{
|
|
721
795
|
name: z.ZodString;
|
|
722
796
|
email: z.ZodString;
|
|
@@ -1021,15 +1095,15 @@ export declare const useCaseListContacts: z.ZodObject<{
|
|
|
1021
1095
|
export declare const useCaseGetTimeline: z.ZodObject<{
|
|
1022
1096
|
id: z.ZodString;
|
|
1023
1097
|
limit: z.ZodDefault<z.ZodDefault<z.ZodNumber>>;
|
|
1024
|
-
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task"]>, "many">>;
|
|
1098
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task", "demo", "proposal", "research", "handoff", "status_update"]>, "many">>;
|
|
1025
1099
|
}, "strip", z.ZodTypeAny, {
|
|
1026
1100
|
id: string;
|
|
1027
1101
|
limit: number;
|
|
1028
|
-
types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
|
|
1102
|
+
types?: ("proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update")[] | undefined;
|
|
1029
1103
|
}, {
|
|
1030
1104
|
id: string;
|
|
1031
1105
|
limit?: number | undefined;
|
|
1032
|
-
types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
|
|
1106
|
+
types?: ("proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update")[] | undefined;
|
|
1033
1107
|
}>;
|
|
1034
1108
|
export declare const useCaseSummary: z.ZodObject<{
|
|
1035
1109
|
account_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1062,31 +1136,31 @@ export declare const webhookUpdate: z.ZodObject<{
|
|
|
1062
1136
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
1063
1137
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1064
1138
|
}, "strip", z.ZodTypeAny, {
|
|
1065
|
-
active?: boolean | undefined;
|
|
1066
1139
|
description?: string | null | undefined;
|
|
1067
1140
|
url?: string | undefined;
|
|
1068
1141
|
events?: string[] | undefined;
|
|
1069
|
-
}, {
|
|
1070
1142
|
active?: boolean | undefined;
|
|
1143
|
+
}, {
|
|
1071
1144
|
description?: string | null | undefined;
|
|
1072
1145
|
url?: string | undefined;
|
|
1073
1146
|
events?: string[] | undefined;
|
|
1147
|
+
active?: boolean | undefined;
|
|
1074
1148
|
}>;
|
|
1075
1149
|
}, "strip", z.ZodTypeAny, {
|
|
1076
1150
|
id: string;
|
|
1077
1151
|
patch: {
|
|
1078
|
-
active?: boolean | undefined;
|
|
1079
1152
|
description?: string | null | undefined;
|
|
1080
1153
|
url?: string | undefined;
|
|
1081
1154
|
events?: string[] | undefined;
|
|
1155
|
+
active?: boolean | undefined;
|
|
1082
1156
|
};
|
|
1083
1157
|
}, {
|
|
1084
1158
|
id: string;
|
|
1085
1159
|
patch: {
|
|
1086
|
-
active?: boolean | undefined;
|
|
1087
1160
|
description?: string | null | undefined;
|
|
1088
1161
|
url?: string | undefined;
|
|
1089
1162
|
events?: string[] | undefined;
|
|
1163
|
+
active?: boolean | undefined;
|
|
1090
1164
|
};
|
|
1091
1165
|
}>;
|
|
1092
1166
|
export declare const webhookDelete: z.ZodObject<{
|
|
@@ -1109,12 +1183,12 @@ export declare const webhookList: z.ZodObject<{
|
|
|
1109
1183
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1110
1184
|
}, "strip", z.ZodTypeAny, {
|
|
1111
1185
|
limit: number;
|
|
1112
|
-
active?: boolean | undefined;
|
|
1113
1186
|
cursor?: string | undefined;
|
|
1114
|
-
}, {
|
|
1115
1187
|
active?: boolean | undefined;
|
|
1188
|
+
}, {
|
|
1116
1189
|
limit?: number | undefined;
|
|
1117
1190
|
cursor?: string | undefined;
|
|
1191
|
+
active?: boolean | undefined;
|
|
1118
1192
|
}>;
|
|
1119
1193
|
export declare const webhookListDeliveries: z.ZodObject<{
|
|
1120
1194
|
endpoint_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1186,6 +1260,23 @@ export declare const emailSearch: z.ZodObject<{
|
|
|
1186
1260
|
cursor?: string | undefined;
|
|
1187
1261
|
contact_id?: string | undefined;
|
|
1188
1262
|
}>;
|
|
1263
|
+
export declare const emailProviderSet: z.ZodObject<{
|
|
1264
|
+
provider: z.ZodString;
|
|
1265
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1266
|
+
from_name: z.ZodString;
|
|
1267
|
+
from_email: z.ZodString;
|
|
1268
|
+
}, "strip", z.ZodTypeAny, {
|
|
1269
|
+
provider: string;
|
|
1270
|
+
config: Record<string, unknown>;
|
|
1271
|
+
from_name: string;
|
|
1272
|
+
from_email: string;
|
|
1273
|
+
}, {
|
|
1274
|
+
provider: string;
|
|
1275
|
+
config: Record<string, unknown>;
|
|
1276
|
+
from_name: string;
|
|
1277
|
+
from_email: string;
|
|
1278
|
+
}>;
|
|
1279
|
+
export declare const emailProviderGet: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1189
1280
|
export declare const emailSequenceCreate: z.ZodObject<{
|
|
1190
1281
|
name: z.ZodString;
|
|
1191
1282
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1224,6 +1315,103 @@ export declare const emailSequenceCreate: z.ZodObject<{
|
|
|
1224
1315
|
}[];
|
|
1225
1316
|
description?: string | undefined;
|
|
1226
1317
|
}>;
|
|
1318
|
+
export declare const emailSequenceGet: z.ZodObject<{
|
|
1319
|
+
id: z.ZodString;
|
|
1320
|
+
}, "strip", z.ZodTypeAny, {
|
|
1321
|
+
id: string;
|
|
1322
|
+
}, {
|
|
1323
|
+
id: string;
|
|
1324
|
+
}>;
|
|
1325
|
+
export declare const emailSequenceDelete: z.ZodObject<{
|
|
1326
|
+
id: z.ZodString;
|
|
1327
|
+
}, "strip", z.ZodTypeAny, {
|
|
1328
|
+
id: string;
|
|
1329
|
+
}, {
|
|
1330
|
+
id: string;
|
|
1331
|
+
}>;
|
|
1332
|
+
export declare const emailSequenceUpdate: z.ZodObject<{
|
|
1333
|
+
id: z.ZodString;
|
|
1334
|
+
patch: z.ZodObject<{
|
|
1335
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1336
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1337
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1338
|
+
delay_days: z.ZodNumber;
|
|
1339
|
+
subject: z.ZodString;
|
|
1340
|
+
body_html: z.ZodOptional<z.ZodString>;
|
|
1341
|
+
body_text: z.ZodOptional<z.ZodString>;
|
|
1342
|
+
}, "strip", z.ZodTypeAny, {
|
|
1343
|
+
subject: string;
|
|
1344
|
+
delay_days: number;
|
|
1345
|
+
body_html?: string | undefined;
|
|
1346
|
+
body_text?: string | undefined;
|
|
1347
|
+
}, {
|
|
1348
|
+
subject: string;
|
|
1349
|
+
delay_days: number;
|
|
1350
|
+
body_html?: string | undefined;
|
|
1351
|
+
body_text?: string | undefined;
|
|
1352
|
+
}>, "many">>;
|
|
1353
|
+
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
1354
|
+
}, "strip", z.ZodTypeAny, {
|
|
1355
|
+
name?: string | undefined;
|
|
1356
|
+
description?: string | undefined;
|
|
1357
|
+
steps?: {
|
|
1358
|
+
subject: string;
|
|
1359
|
+
delay_days: number;
|
|
1360
|
+
body_html?: string | undefined;
|
|
1361
|
+
body_text?: string | undefined;
|
|
1362
|
+
}[] | undefined;
|
|
1363
|
+
is_active?: boolean | undefined;
|
|
1364
|
+
}, {
|
|
1365
|
+
name?: string | undefined;
|
|
1366
|
+
description?: string | undefined;
|
|
1367
|
+
steps?: {
|
|
1368
|
+
subject: string;
|
|
1369
|
+
delay_days: number;
|
|
1370
|
+
body_html?: string | undefined;
|
|
1371
|
+
body_text?: string | undefined;
|
|
1372
|
+
}[] | undefined;
|
|
1373
|
+
is_active?: boolean | undefined;
|
|
1374
|
+
}>;
|
|
1375
|
+
}, "strip", z.ZodTypeAny, {
|
|
1376
|
+
id: string;
|
|
1377
|
+
patch: {
|
|
1378
|
+
name?: string | undefined;
|
|
1379
|
+
description?: string | undefined;
|
|
1380
|
+
steps?: {
|
|
1381
|
+
subject: string;
|
|
1382
|
+
delay_days: number;
|
|
1383
|
+
body_html?: string | undefined;
|
|
1384
|
+
body_text?: string | undefined;
|
|
1385
|
+
}[] | undefined;
|
|
1386
|
+
is_active?: boolean | undefined;
|
|
1387
|
+
};
|
|
1388
|
+
}, {
|
|
1389
|
+
id: string;
|
|
1390
|
+
patch: {
|
|
1391
|
+
name?: string | undefined;
|
|
1392
|
+
description?: string | undefined;
|
|
1393
|
+
steps?: {
|
|
1394
|
+
subject: string;
|
|
1395
|
+
delay_days: number;
|
|
1396
|
+
body_html?: string | undefined;
|
|
1397
|
+
body_text?: string | undefined;
|
|
1398
|
+
}[] | undefined;
|
|
1399
|
+
is_active?: boolean | undefined;
|
|
1400
|
+
};
|
|
1401
|
+
}>;
|
|
1402
|
+
export declare const emailSequenceList: z.ZodObject<{
|
|
1403
|
+
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
1404
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
1405
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
}, "strip", z.ZodTypeAny, {
|
|
1407
|
+
limit: number;
|
|
1408
|
+
cursor?: string | undefined;
|
|
1409
|
+
is_active?: boolean | undefined;
|
|
1410
|
+
}, {
|
|
1411
|
+
limit?: number | undefined;
|
|
1412
|
+
cursor?: string | undefined;
|
|
1413
|
+
is_active?: boolean | undefined;
|
|
1414
|
+
}>;
|
|
1227
1415
|
export declare const emailSequenceEnroll: z.ZodObject<{
|
|
1228
1416
|
sequence_id: z.ZodString;
|
|
1229
1417
|
contact_id: z.ZodString;
|
|
@@ -1234,6 +1422,32 @@ export declare const emailSequenceEnroll: z.ZodObject<{
|
|
|
1234
1422
|
contact_id: string;
|
|
1235
1423
|
sequence_id: string;
|
|
1236
1424
|
}>;
|
|
1425
|
+
export declare const emailSequenceUnenroll: z.ZodObject<{
|
|
1426
|
+
id: z.ZodString;
|
|
1427
|
+
}, "strip", z.ZodTypeAny, {
|
|
1428
|
+
id: string;
|
|
1429
|
+
}, {
|
|
1430
|
+
id: string;
|
|
1431
|
+
}>;
|
|
1432
|
+
export declare const emailSequenceEnrollmentList: z.ZodObject<{
|
|
1433
|
+
sequence_id: z.ZodOptional<z.ZodString>;
|
|
1434
|
+
contact_id: z.ZodOptional<z.ZodString>;
|
|
1435
|
+
status: z.ZodOptional<z.ZodEnum<["active", "completed", "paused", "cancelled"]>>;
|
|
1436
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
1437
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
}, "strip", z.ZodTypeAny, {
|
|
1439
|
+
limit: number;
|
|
1440
|
+
status?: "active" | "completed" | "paused" | "cancelled" | undefined;
|
|
1441
|
+
cursor?: string | undefined;
|
|
1442
|
+
contact_id?: string | undefined;
|
|
1443
|
+
sequence_id?: string | undefined;
|
|
1444
|
+
}, {
|
|
1445
|
+
status?: "active" | "completed" | "paused" | "cancelled" | undefined;
|
|
1446
|
+
limit?: number | undefined;
|
|
1447
|
+
cursor?: string | undefined;
|
|
1448
|
+
contact_id?: string | undefined;
|
|
1449
|
+
sequence_id?: string | undefined;
|
|
1450
|
+
}>;
|
|
1237
1451
|
export declare const customFieldCreate: z.ZodObject<{
|
|
1238
1452
|
object_type: z.ZodEnum<["contact", "account", "opportunity", "activity", "use_case"]>;
|
|
1239
1453
|
field_name: z.ZodString;
|
|
@@ -1247,7 +1461,7 @@ export declare const customFieldCreate: z.ZodObject<{
|
|
|
1247
1461
|
object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
|
|
1248
1462
|
label: string;
|
|
1249
1463
|
field_name: string;
|
|
1250
|
-
field_type: "number" | "boolean" | "
|
|
1464
|
+
field_type: "number" | "boolean" | "date" | "text" | "select" | "multi_select";
|
|
1251
1465
|
required: boolean;
|
|
1252
1466
|
options?: string[] | undefined;
|
|
1253
1467
|
description?: string | undefined;
|
|
@@ -1256,7 +1470,7 @@ export declare const customFieldCreate: z.ZodObject<{
|
|
|
1256
1470
|
object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
|
|
1257
1471
|
label: string;
|
|
1258
1472
|
field_name: string;
|
|
1259
|
-
field_type: "number" | "boolean" | "
|
|
1473
|
+
field_type: "number" | "boolean" | "date" | "text" | "select" | "multi_select";
|
|
1260
1474
|
options?: string[] | undefined;
|
|
1261
1475
|
description?: string | undefined;
|
|
1262
1476
|
required?: boolean | undefined;
|
|
@@ -1361,133 +1575,42 @@ export declare const bulkJobList: z.ZodObject<{
|
|
|
1361
1575
|
limit?: number | undefined;
|
|
1362
1576
|
cursor?: string | undefined;
|
|
1363
1577
|
}>;
|
|
1364
|
-
export declare const noteCreate: z.ZodObject<{
|
|
1365
|
-
object_type: z.ZodEnum<["contact", "account", "opportunity", "activity", "use_case"]>;
|
|
1366
|
-
object_id: z.ZodString;
|
|
1367
|
-
parent_id: z.ZodOptional<z.ZodString>;
|
|
1368
|
-
body: z.ZodString;
|
|
1369
|
-
visibility: z.ZodDefault<z.ZodEnum<["internal", "external"]>>;
|
|
1370
|
-
mentions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1371
|
-
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
1372
|
-
}, "strip", z.ZodTypeAny, {
|
|
1373
|
-
body: string;
|
|
1374
|
-
object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
|
|
1375
|
-
object_id: string;
|
|
1376
|
-
visibility: "internal" | "external";
|
|
1377
|
-
mentions: string[];
|
|
1378
|
-
pinned: boolean;
|
|
1379
|
-
parent_id?: string | undefined;
|
|
1380
|
-
}, {
|
|
1381
|
-
body: string;
|
|
1382
|
-
object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
|
|
1383
|
-
object_id: string;
|
|
1384
|
-
parent_id?: string | undefined;
|
|
1385
|
-
visibility?: "internal" | "external" | undefined;
|
|
1386
|
-
mentions?: string[] | undefined;
|
|
1387
|
-
pinned?: boolean | undefined;
|
|
1388
|
-
}>;
|
|
1389
|
-
export declare const noteUpdate: z.ZodObject<{
|
|
1390
|
-
id: z.ZodString;
|
|
1391
|
-
patch: z.ZodObject<{
|
|
1392
|
-
body: z.ZodOptional<z.ZodString>;
|
|
1393
|
-
visibility: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
|
|
1394
|
-
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
1395
|
-
}, "strip", z.ZodTypeAny, {
|
|
1396
|
-
body?: string | undefined;
|
|
1397
|
-
visibility?: "internal" | "external" | undefined;
|
|
1398
|
-
pinned?: boolean | undefined;
|
|
1399
|
-
}, {
|
|
1400
|
-
body?: string | undefined;
|
|
1401
|
-
visibility?: "internal" | "external" | undefined;
|
|
1402
|
-
pinned?: boolean | undefined;
|
|
1403
|
-
}>;
|
|
1404
|
-
}, "strip", z.ZodTypeAny, {
|
|
1405
|
-
id: string;
|
|
1406
|
-
patch: {
|
|
1407
|
-
body?: string | undefined;
|
|
1408
|
-
visibility?: "internal" | "external" | undefined;
|
|
1409
|
-
pinned?: boolean | undefined;
|
|
1410
|
-
};
|
|
1411
|
-
}, {
|
|
1412
|
-
id: string;
|
|
1413
|
-
patch: {
|
|
1414
|
-
body?: string | undefined;
|
|
1415
|
-
visibility?: "internal" | "external" | undefined;
|
|
1416
|
-
pinned?: boolean | undefined;
|
|
1417
|
-
};
|
|
1418
|
-
}>;
|
|
1419
|
-
export declare const noteGet: z.ZodObject<{
|
|
1420
|
-
id: z.ZodString;
|
|
1421
|
-
}, "strip", z.ZodTypeAny, {
|
|
1422
|
-
id: string;
|
|
1423
|
-
}, {
|
|
1424
|
-
id: string;
|
|
1425
|
-
}>;
|
|
1426
|
-
export declare const noteDelete: z.ZodObject<{
|
|
1427
|
-
id: z.ZodString;
|
|
1428
|
-
}, "strip", z.ZodTypeAny, {
|
|
1429
|
-
id: string;
|
|
1430
|
-
}, {
|
|
1431
|
-
id: string;
|
|
1432
|
-
}>;
|
|
1433
|
-
export declare const noteList: z.ZodObject<{
|
|
1434
|
-
object_type: z.ZodEnum<["contact", "account", "opportunity", "activity", "use_case"]>;
|
|
1435
|
-
object_id: z.ZodString;
|
|
1436
|
-
visibility: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
|
|
1437
|
-
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
1438
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
1439
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1440
|
-
}, "strip", z.ZodTypeAny, {
|
|
1441
|
-
limit: number;
|
|
1442
|
-
object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
|
|
1443
|
-
object_id: string;
|
|
1444
|
-
cursor?: string | undefined;
|
|
1445
|
-
visibility?: "internal" | "external" | undefined;
|
|
1446
|
-
pinned?: boolean | undefined;
|
|
1447
|
-
}, {
|
|
1448
|
-
object_type: "contact" | "account" | "opportunity" | "use_case" | "activity";
|
|
1449
|
-
object_id: string;
|
|
1450
|
-
limit?: number | undefined;
|
|
1451
|
-
cursor?: string | undefined;
|
|
1452
|
-
visibility?: "internal" | "external" | undefined;
|
|
1453
|
-
pinned?: boolean | undefined;
|
|
1454
|
-
}>;
|
|
1455
1578
|
export declare const workflowCreate: z.ZodObject<{
|
|
1456
1579
|
name: z.ZodString;
|
|
1457
1580
|
description: z.ZodOptional<z.ZodString>;
|
|
1458
1581
|
trigger_event: z.ZodString;
|
|
1459
1582
|
trigger_filter: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1460
1583
|
actions: z.ZodArray<z.ZodObject<{
|
|
1461
|
-
type: z.ZodEnum<["send_notification", "update_field", "create_activity", "add_tag", "remove_tag", "assign_owner", "
|
|
1584
|
+
type: z.ZodEnum<["send_notification", "send_email", "update_field", "create_activity", "add_tag", "remove_tag", "assign_owner", "create_context_entry", "webhook", "create_note"]>;
|
|
1462
1585
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1463
1586
|
}, "strip", z.ZodTypeAny, {
|
|
1464
|
-
type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "
|
|
1587
|
+
type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
|
|
1465
1588
|
config: Record<string, unknown>;
|
|
1466
1589
|
}, {
|
|
1467
|
-
type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "
|
|
1590
|
+
type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
|
|
1468
1591
|
config: Record<string, unknown>;
|
|
1469
1592
|
}>, "many">;
|
|
1470
1593
|
is_active: z.ZodDefault<z.ZodBoolean>;
|
|
1471
1594
|
}, "strip", z.ZodTypeAny, {
|
|
1472
1595
|
name: string;
|
|
1596
|
+
is_active: boolean;
|
|
1473
1597
|
trigger_event: string;
|
|
1474
1598
|
trigger_filter: Record<string, unknown>;
|
|
1475
1599
|
actions: {
|
|
1476
|
-
type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "
|
|
1600
|
+
type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
|
|
1477
1601
|
config: Record<string, unknown>;
|
|
1478
1602
|
}[];
|
|
1479
|
-
is_active: boolean;
|
|
1480
1603
|
description?: string | undefined;
|
|
1481
1604
|
}, {
|
|
1482
1605
|
name: string;
|
|
1483
1606
|
trigger_event: string;
|
|
1484
1607
|
actions: {
|
|
1485
|
-
type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "
|
|
1608
|
+
type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
|
|
1486
1609
|
config: Record<string, unknown>;
|
|
1487
1610
|
}[];
|
|
1488
1611
|
description?: string | undefined;
|
|
1489
|
-
trigger_filter?: Record<string, unknown> | undefined;
|
|
1490
1612
|
is_active?: boolean | undefined;
|
|
1613
|
+
trigger_filter?: Record<string, unknown> | undefined;
|
|
1491
1614
|
}>;
|
|
1492
1615
|
export declare const workflowUpdate: z.ZodObject<{
|
|
1493
1616
|
id: z.ZodString;
|
|
@@ -1497,62 +1620,62 @@ export declare const workflowUpdate: z.ZodObject<{
|
|
|
1497
1620
|
trigger_event: z.ZodOptional<z.ZodString>;
|
|
1498
1621
|
trigger_filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1499
1622
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1500
|
-
type: z.ZodEnum<["send_notification", "update_field", "create_activity", "add_tag", "remove_tag", "assign_owner", "
|
|
1623
|
+
type: z.ZodEnum<["send_notification", "send_email", "update_field", "create_activity", "add_tag", "remove_tag", "assign_owner", "create_context_entry", "webhook", "create_note"]>;
|
|
1501
1624
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1502
1625
|
}, "strip", z.ZodTypeAny, {
|
|
1503
|
-
type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "
|
|
1626
|
+
type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
|
|
1504
1627
|
config: Record<string, unknown>;
|
|
1505
1628
|
}, {
|
|
1506
|
-
type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "
|
|
1629
|
+
type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
|
|
1507
1630
|
config: Record<string, unknown>;
|
|
1508
1631
|
}>, "many">>;
|
|
1509
1632
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
1510
1633
|
}, "strip", z.ZodTypeAny, {
|
|
1511
1634
|
name?: string | undefined;
|
|
1512
1635
|
description?: string | null | undefined;
|
|
1636
|
+
is_active?: boolean | undefined;
|
|
1513
1637
|
trigger_event?: string | undefined;
|
|
1514
1638
|
trigger_filter?: Record<string, unknown> | undefined;
|
|
1515
1639
|
actions?: {
|
|
1516
|
-
type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "
|
|
1640
|
+
type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
|
|
1517
1641
|
config: Record<string, unknown>;
|
|
1518
1642
|
}[] | undefined;
|
|
1519
|
-
is_active?: boolean | undefined;
|
|
1520
1643
|
}, {
|
|
1521
1644
|
name?: string | undefined;
|
|
1522
1645
|
description?: string | null | undefined;
|
|
1646
|
+
is_active?: boolean | undefined;
|
|
1523
1647
|
trigger_event?: string | undefined;
|
|
1524
1648
|
trigger_filter?: Record<string, unknown> | undefined;
|
|
1525
1649
|
actions?: {
|
|
1526
|
-
type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "
|
|
1650
|
+
type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
|
|
1527
1651
|
config: Record<string, unknown>;
|
|
1528
1652
|
}[] | undefined;
|
|
1529
|
-
is_active?: boolean | undefined;
|
|
1530
1653
|
}>;
|
|
1531
1654
|
}, "strip", z.ZodTypeAny, {
|
|
1532
1655
|
id: string;
|
|
1533
1656
|
patch: {
|
|
1534
1657
|
name?: string | undefined;
|
|
1535
1658
|
description?: string | null | undefined;
|
|
1659
|
+
is_active?: boolean | undefined;
|
|
1536
1660
|
trigger_event?: string | undefined;
|
|
1537
1661
|
trigger_filter?: Record<string, unknown> | undefined;
|
|
1538
1662
|
actions?: {
|
|
1539
|
-
type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "
|
|
1663
|
+
type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
|
|
1540
1664
|
config: Record<string, unknown>;
|
|
1541
1665
|
}[] | undefined;
|
|
1542
|
-
is_active?: boolean | undefined;
|
|
1543
1666
|
};
|
|
1544
1667
|
}, {
|
|
1545
1668
|
id: string;
|
|
1546
1669
|
patch: {
|
|
1547
1670
|
name?: string | undefined;
|
|
1548
1671
|
description?: string | null | undefined;
|
|
1672
|
+
is_active?: boolean | undefined;
|
|
1549
1673
|
trigger_event?: string | undefined;
|
|
1550
1674
|
trigger_filter?: Record<string, unknown> | undefined;
|
|
1551
1675
|
actions?: {
|
|
1552
|
-
type: "send_notification" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "
|
|
1676
|
+
type: "send_notification" | "send_email" | "update_field" | "create_activity" | "add_tag" | "remove_tag" | "assign_owner" | "create_context_entry" | "webhook" | "create_note";
|
|
1553
1677
|
config: Record<string, unknown>;
|
|
1554
1678
|
}[] | undefined;
|
|
1555
|
-
is_active?: boolean | undefined;
|
|
1556
1679
|
};
|
|
1557
1680
|
}>;
|
|
1558
1681
|
export declare const workflowGet: z.ZodObject<{
|
|
@@ -1577,13 +1700,13 @@ export declare const workflowList: z.ZodObject<{
|
|
|
1577
1700
|
}, "strip", z.ZodTypeAny, {
|
|
1578
1701
|
limit: number;
|
|
1579
1702
|
cursor?: string | undefined;
|
|
1580
|
-
trigger_event?: string | undefined;
|
|
1581
1703
|
is_active?: boolean | undefined;
|
|
1704
|
+
trigger_event?: string | undefined;
|
|
1582
1705
|
}, {
|
|
1583
1706
|
limit?: number | undefined;
|
|
1584
1707
|
cursor?: string | undefined;
|
|
1585
|
-
trigger_event?: string | undefined;
|
|
1586
1708
|
is_active?: boolean | undefined;
|
|
1709
|
+
trigger_event?: string | undefined;
|
|
1587
1710
|
}>;
|
|
1588
1711
|
export declare const workflowRunList: z.ZodObject<{
|
|
1589
1712
|
workflow_id: z.ZodString;
|
|
@@ -1601,6 +1724,132 @@ export declare const workflowRunList: z.ZodObject<{
|
|
|
1601
1724
|
limit?: number | undefined;
|
|
1602
1725
|
cursor?: string | undefined;
|
|
1603
1726
|
}>;
|
|
1727
|
+
export declare const messagingChannelCreate: z.ZodObject<{
|
|
1728
|
+
name: z.ZodString;
|
|
1729
|
+
provider: z.ZodString;
|
|
1730
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1731
|
+
is_active: z.ZodDefault<z.ZodBoolean>;
|
|
1732
|
+
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
1733
|
+
}, "strip", z.ZodTypeAny, {
|
|
1734
|
+
name: string;
|
|
1735
|
+
provider: string;
|
|
1736
|
+
config: Record<string, unknown>;
|
|
1737
|
+
is_active: boolean;
|
|
1738
|
+
is_default: boolean;
|
|
1739
|
+
}, {
|
|
1740
|
+
name: string;
|
|
1741
|
+
provider: string;
|
|
1742
|
+
config: Record<string, unknown>;
|
|
1743
|
+
is_active?: boolean | undefined;
|
|
1744
|
+
is_default?: boolean | undefined;
|
|
1745
|
+
}>;
|
|
1746
|
+
export declare const messagingChannelUpdate: z.ZodObject<{
|
|
1747
|
+
id: z.ZodString;
|
|
1748
|
+
patch: z.ZodObject<{
|
|
1749
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1750
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1751
|
+
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
1752
|
+
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
1753
|
+
}, "strip", z.ZodTypeAny, {
|
|
1754
|
+
name?: string | undefined;
|
|
1755
|
+
config?: Record<string, unknown> | undefined;
|
|
1756
|
+
is_active?: boolean | undefined;
|
|
1757
|
+
is_default?: boolean | undefined;
|
|
1758
|
+
}, {
|
|
1759
|
+
name?: string | undefined;
|
|
1760
|
+
config?: Record<string, unknown> | undefined;
|
|
1761
|
+
is_active?: boolean | undefined;
|
|
1762
|
+
is_default?: boolean | undefined;
|
|
1763
|
+
}>;
|
|
1764
|
+
}, "strip", z.ZodTypeAny, {
|
|
1765
|
+
id: string;
|
|
1766
|
+
patch: {
|
|
1767
|
+
name?: string | undefined;
|
|
1768
|
+
config?: Record<string, unknown> | undefined;
|
|
1769
|
+
is_active?: boolean | undefined;
|
|
1770
|
+
is_default?: boolean | undefined;
|
|
1771
|
+
};
|
|
1772
|
+
}, {
|
|
1773
|
+
id: string;
|
|
1774
|
+
patch: {
|
|
1775
|
+
name?: string | undefined;
|
|
1776
|
+
config?: Record<string, unknown> | undefined;
|
|
1777
|
+
is_active?: boolean | undefined;
|
|
1778
|
+
is_default?: boolean | undefined;
|
|
1779
|
+
};
|
|
1780
|
+
}>;
|
|
1781
|
+
export declare const messagingChannelGet: z.ZodObject<{
|
|
1782
|
+
id: z.ZodString;
|
|
1783
|
+
}, "strip", z.ZodTypeAny, {
|
|
1784
|
+
id: string;
|
|
1785
|
+
}, {
|
|
1786
|
+
id: string;
|
|
1787
|
+
}>;
|
|
1788
|
+
export declare const messagingChannelDelete: z.ZodObject<{
|
|
1789
|
+
id: z.ZodString;
|
|
1790
|
+
}, "strip", z.ZodTypeAny, {
|
|
1791
|
+
id: string;
|
|
1792
|
+
}, {
|
|
1793
|
+
id: string;
|
|
1794
|
+
}>;
|
|
1795
|
+
export declare const messagingChannelList: z.ZodObject<{
|
|
1796
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1797
|
+
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
1798
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
1799
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1800
|
+
}, "strip", z.ZodTypeAny, {
|
|
1801
|
+
limit: number;
|
|
1802
|
+
cursor?: string | undefined;
|
|
1803
|
+
provider?: string | undefined;
|
|
1804
|
+
is_active?: boolean | undefined;
|
|
1805
|
+
}, {
|
|
1806
|
+
limit?: number | undefined;
|
|
1807
|
+
cursor?: string | undefined;
|
|
1808
|
+
provider?: string | undefined;
|
|
1809
|
+
is_active?: boolean | undefined;
|
|
1810
|
+
}>;
|
|
1811
|
+
export declare const messageSend: z.ZodObject<{
|
|
1812
|
+
channel_id: z.ZodString;
|
|
1813
|
+
recipient: z.ZodOptional<z.ZodString>;
|
|
1814
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
1815
|
+
body: z.ZodString;
|
|
1816
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1817
|
+
}, "strip", z.ZodTypeAny, {
|
|
1818
|
+
body: string;
|
|
1819
|
+
channel_id: string;
|
|
1820
|
+
metadata: Record<string, unknown>;
|
|
1821
|
+
subject?: string | undefined;
|
|
1822
|
+
recipient?: string | undefined;
|
|
1823
|
+
}, {
|
|
1824
|
+
body: string;
|
|
1825
|
+
channel_id: string;
|
|
1826
|
+
subject?: string | undefined;
|
|
1827
|
+
recipient?: string | undefined;
|
|
1828
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1829
|
+
}>;
|
|
1830
|
+
export declare const messageDeliveryGet: z.ZodObject<{
|
|
1831
|
+
id: z.ZodString;
|
|
1832
|
+
}, "strip", z.ZodTypeAny, {
|
|
1833
|
+
id: string;
|
|
1834
|
+
}, {
|
|
1835
|
+
id: string;
|
|
1836
|
+
}>;
|
|
1837
|
+
export declare const messageDeliverySearch: z.ZodObject<{
|
|
1838
|
+
channel_id: z.ZodOptional<z.ZodString>;
|
|
1839
|
+
status: z.ZodOptional<z.ZodEnum<["pending", "delivered", "retrying", "failed"]>>;
|
|
1840
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
1841
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1842
|
+
}, "strip", z.ZodTypeAny, {
|
|
1843
|
+
limit: number;
|
|
1844
|
+
status?: "pending" | "failed" | "delivered" | "retrying" | undefined;
|
|
1845
|
+
cursor?: string | undefined;
|
|
1846
|
+
channel_id?: string | undefined;
|
|
1847
|
+
}, {
|
|
1848
|
+
status?: "pending" | "failed" | "delivered" | "retrying" | undefined;
|
|
1849
|
+
limit?: number | undefined;
|
|
1850
|
+
cursor?: string | undefined;
|
|
1851
|
+
channel_id?: string | undefined;
|
|
1852
|
+
}>;
|
|
1604
1853
|
export declare const actorType: z.ZodEnum<["human", "agent"]>;
|
|
1605
1854
|
export declare const assignmentStatus: z.ZodEnum<["pending", "accepted", "in_progress", "blocked", "completed", "declined", "cancelled"]>;
|
|
1606
1855
|
export declare const assignmentPriority: z.ZodEnum<["low", "normal", "high", "urgent"]>;
|
|
@@ -1613,12 +1862,12 @@ export declare const activityTypeRegistryAdd: z.ZodObject<{
|
|
|
1613
1862
|
}, "strip", z.ZodTypeAny, {
|
|
1614
1863
|
label: string;
|
|
1615
1864
|
type_name: string;
|
|
1616
|
-
category: "proposal" | "meeting" | "
|
|
1865
|
+
category: "proposal" | "meeting" | "handoff" | "outreach" | "contract" | "internal" | "lifecycle";
|
|
1617
1866
|
description?: string | undefined;
|
|
1618
1867
|
}, {
|
|
1619
1868
|
label: string;
|
|
1620
1869
|
type_name: string;
|
|
1621
|
-
category: "proposal" | "meeting" | "
|
|
1870
|
+
category: "proposal" | "meeting" | "handoff" | "outreach" | "contract" | "internal" | "lifecycle";
|
|
1622
1871
|
description?: string | undefined;
|
|
1623
1872
|
}>;
|
|
1624
1873
|
export declare const activityTypeRegistryRemove: z.ZodObject<{
|
|
@@ -1631,9 +1880,9 @@ export declare const activityTypeRegistryRemove: z.ZodObject<{
|
|
|
1631
1880
|
export declare const activityTypeRegistryList: z.ZodObject<{
|
|
1632
1881
|
category: z.ZodOptional<z.ZodEnum<["outreach", "meeting", "proposal", "contract", "internal", "lifecycle", "handoff"]>>;
|
|
1633
1882
|
}, "strip", z.ZodTypeAny, {
|
|
1634
|
-
category?: "proposal" | "meeting" | "
|
|
1883
|
+
category?: "proposal" | "meeting" | "handoff" | "outreach" | "contract" | "internal" | "lifecycle" | undefined;
|
|
1635
1884
|
}, {
|
|
1636
|
-
category?: "proposal" | "meeting" | "
|
|
1885
|
+
category?: "proposal" | "meeting" | "handoff" | "outreach" | "contract" | "internal" | "lifecycle" | undefined;
|
|
1637
1886
|
}>;
|
|
1638
1887
|
export declare const contextTypeRegistryAdd: z.ZodObject<{
|
|
1639
1888
|
type_name: z.ZodString;
|
|
@@ -1663,13 +1912,29 @@ export declare const briefingGet: z.ZodObject<{
|
|
|
1663
1912
|
context_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1664
1913
|
include_stale: z.ZodDefault<z.ZodBoolean>;
|
|
1665
1914
|
format: z.ZodDefault<z.ZodEnum<["json", "text"]>>;
|
|
1915
|
+
/**
|
|
1916
|
+
* How far to reach into the CRM entity graph when pulling context:
|
|
1917
|
+
* 'direct' — only the subject's own context (default)
|
|
1918
|
+
* 'adjacent' — subject + directly related entities (e.g. account + opportunities for a contact)
|
|
1919
|
+
* 'account_wide' — subject + all entities under the same account hierarchy
|
|
1920
|
+
*/
|
|
1921
|
+
context_radius: z.ZodDefault<z.ZodEnum<["direct", "adjacent", "account_wide"]>>;
|
|
1922
|
+
/**
|
|
1923
|
+
* Maximum tokens to budget for context entries.
|
|
1924
|
+
* When set, entries are ranked by priority score (confidence × recency × type weight)
|
|
1925
|
+
* and packed within the budget. The response includes token_estimate and truncated flag.
|
|
1926
|
+
* Estimated at ~4 chars/token (body + title + overhead per entry).
|
|
1927
|
+
*/
|
|
1928
|
+
token_budget: z.ZodOptional<z.ZodNumber>;
|
|
1666
1929
|
}, "strip", z.ZodTypeAny, {
|
|
1667
1930
|
subject_type: "contact" | "account" | "opportunity" | "use_case";
|
|
1668
1931
|
subject_id: string;
|
|
1669
1932
|
include_stale: boolean;
|
|
1670
1933
|
format: "text" | "json";
|
|
1934
|
+
context_radius: "direct" | "adjacent" | "account_wide";
|
|
1671
1935
|
since?: string | undefined;
|
|
1672
1936
|
context_types?: string[] | undefined;
|
|
1937
|
+
token_budget?: number | undefined;
|
|
1673
1938
|
}, {
|
|
1674
1939
|
subject_type: "contact" | "account" | "opportunity" | "use_case";
|
|
1675
1940
|
subject_id: string;
|
|
@@ -1677,6 +1942,8 @@ export declare const briefingGet: z.ZodObject<{
|
|
|
1677
1942
|
context_types?: string[] | undefined;
|
|
1678
1943
|
include_stale?: boolean | undefined;
|
|
1679
1944
|
format?: "text" | "json" | undefined;
|
|
1945
|
+
context_radius?: "direct" | "adjacent" | "account_wide" | undefined;
|
|
1946
|
+
token_budget?: number | undefined;
|
|
1680
1947
|
}>;
|
|
1681
1948
|
export declare const contextSearch: z.ZodObject<{
|
|
1682
1949
|
query: z.ZodString;
|
|
@@ -1686,6 +1953,40 @@ export declare const contextSearch: z.ZodObject<{
|
|
|
1686
1953
|
tag: z.ZodOptional<z.ZodString>;
|
|
1687
1954
|
current_only: z.ZodDefault<z.ZodBoolean>;
|
|
1688
1955
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1956
|
+
/**
|
|
1957
|
+
* Partial JSONB match against structured_data (PostgreSQL @> operator).
|
|
1958
|
+
* Example: { "status": "open" } matches all entries where structured_data contains status=open.
|
|
1959
|
+
* Combine with context_type to query e.g. all open objections, high-severity deal risks, etc.
|
|
1960
|
+
*/
|
|
1961
|
+
structured_data_filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1962
|
+
}, "strip", z.ZodTypeAny, {
|
|
1963
|
+
query: string;
|
|
1964
|
+
limit: number;
|
|
1965
|
+
current_only: boolean;
|
|
1966
|
+
subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
|
|
1967
|
+
subject_id?: string | undefined;
|
|
1968
|
+
context_type?: string | undefined;
|
|
1969
|
+
tag?: string | undefined;
|
|
1970
|
+
structured_data_filter?: Record<string, unknown> | undefined;
|
|
1971
|
+
}, {
|
|
1972
|
+
query: string;
|
|
1973
|
+
limit?: number | undefined;
|
|
1974
|
+
subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
|
|
1975
|
+
subject_id?: string | undefined;
|
|
1976
|
+
context_type?: string | undefined;
|
|
1977
|
+
tag?: string | undefined;
|
|
1978
|
+
current_only?: boolean | undefined;
|
|
1979
|
+
structured_data_filter?: Record<string, unknown> | undefined;
|
|
1980
|
+
}>;
|
|
1981
|
+
export declare const contextSemanticSearch: z.ZodObject<{
|
|
1982
|
+
query: z.ZodString;
|
|
1983
|
+
subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
|
|
1984
|
+
subject_id: z.ZodOptional<z.ZodString>;
|
|
1985
|
+
context_type: z.ZodOptional<z.ZodString>;
|
|
1986
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1987
|
+
current_only: z.ZodDefault<z.ZodBoolean>;
|
|
1988
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
1989
|
+
structured_data_filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1689
1990
|
}, "strip", z.ZodTypeAny, {
|
|
1690
1991
|
query: string;
|
|
1691
1992
|
limit: number;
|
|
@@ -1694,6 +1995,7 @@ export declare const contextSearch: z.ZodObject<{
|
|
|
1694
1995
|
subject_id?: string | undefined;
|
|
1695
1996
|
context_type?: string | undefined;
|
|
1696
1997
|
tag?: string | undefined;
|
|
1998
|
+
structured_data_filter?: Record<string, unknown> | undefined;
|
|
1697
1999
|
}, {
|
|
1698
2000
|
query: string;
|
|
1699
2001
|
limit?: number | undefined;
|
|
@@ -1702,6 +2004,20 @@ export declare const contextSearch: z.ZodObject<{
|
|
|
1702
2004
|
context_type?: string | undefined;
|
|
1703
2005
|
tag?: string | undefined;
|
|
1704
2006
|
current_only?: boolean | undefined;
|
|
2007
|
+
structured_data_filter?: Record<string, unknown> | undefined;
|
|
2008
|
+
}>;
|
|
2009
|
+
export declare const contextEmbedBackfill: z.ZodObject<{
|
|
2010
|
+
batch_size: z.ZodDefault<z.ZodNumber>;
|
|
2011
|
+
subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
|
|
2012
|
+
dry_run: z.ZodDefault<z.ZodBoolean>;
|
|
2013
|
+
}, "strip", z.ZodTypeAny, {
|
|
2014
|
+
batch_size: number;
|
|
2015
|
+
dry_run: boolean;
|
|
2016
|
+
subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
|
|
2017
|
+
}, {
|
|
2018
|
+
subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
|
|
2019
|
+
batch_size?: number | undefined;
|
|
2020
|
+
dry_run?: boolean | undefined;
|
|
1705
2021
|
}>;
|
|
1706
2022
|
export declare const contextReview: z.ZodObject<{
|
|
1707
2023
|
id: z.ZodString;
|
|
@@ -1734,9 +2050,9 @@ export declare const actorCreate: z.ZodObject<{
|
|
|
1734
2050
|
agent_model: z.ZodOptional<z.ZodString>;
|
|
1735
2051
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1736
2052
|
}, "strip", z.ZodTypeAny, {
|
|
1737
|
-
actor_type: "agent" | "human";
|
|
1738
|
-
display_name: string;
|
|
1739
2053
|
metadata: Record<string, unknown>;
|
|
2054
|
+
actor_type: "human" | "agent";
|
|
2055
|
+
display_name: string;
|
|
1740
2056
|
email?: string | undefined;
|
|
1741
2057
|
phone?: string | undefined;
|
|
1742
2058
|
role?: string | undefined;
|
|
@@ -1744,15 +2060,15 @@ export declare const actorCreate: z.ZodObject<{
|
|
|
1744
2060
|
agent_identifier?: string | undefined;
|
|
1745
2061
|
agent_model?: string | undefined;
|
|
1746
2062
|
}, {
|
|
1747
|
-
actor_type: "
|
|
2063
|
+
actor_type: "human" | "agent";
|
|
1748
2064
|
display_name: string;
|
|
1749
2065
|
email?: string | undefined;
|
|
1750
2066
|
phone?: string | undefined;
|
|
1751
2067
|
role?: string | undefined;
|
|
2068
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1752
2069
|
user_id?: string | undefined;
|
|
1753
2070
|
agent_identifier?: string | undefined;
|
|
1754
2071
|
agent_model?: string | undefined;
|
|
1755
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1756
2072
|
}>;
|
|
1757
2073
|
export declare const actorUpdate: z.ZodObject<{
|
|
1758
2074
|
id: z.ZodString;
|
|
@@ -1772,20 +2088,20 @@ export declare const actorUpdate: z.ZodObject<{
|
|
|
1772
2088
|
scopes?: string[] | undefined;
|
|
1773
2089
|
role?: string | null | undefined;
|
|
1774
2090
|
is_active?: boolean | undefined;
|
|
2091
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1775
2092
|
display_name?: string | undefined;
|
|
1776
2093
|
agent_identifier?: string | null | undefined;
|
|
1777
2094
|
agent_model?: string | null | undefined;
|
|
1778
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1779
2095
|
}, {
|
|
1780
2096
|
email?: string | null | undefined;
|
|
1781
2097
|
phone?: string | null | undefined;
|
|
1782
2098
|
scopes?: string[] | undefined;
|
|
1783
2099
|
role?: string | null | undefined;
|
|
1784
2100
|
is_active?: boolean | undefined;
|
|
2101
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1785
2102
|
display_name?: string | undefined;
|
|
1786
2103
|
agent_identifier?: string | null | undefined;
|
|
1787
2104
|
agent_model?: string | null | undefined;
|
|
1788
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1789
2105
|
}>;
|
|
1790
2106
|
}, "strip", z.ZodTypeAny, {
|
|
1791
2107
|
id: string;
|
|
@@ -1795,10 +2111,10 @@ export declare const actorUpdate: z.ZodObject<{
|
|
|
1795
2111
|
scopes?: string[] | undefined;
|
|
1796
2112
|
role?: string | null | undefined;
|
|
1797
2113
|
is_active?: boolean | undefined;
|
|
2114
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1798
2115
|
display_name?: string | undefined;
|
|
1799
2116
|
agent_identifier?: string | null | undefined;
|
|
1800
2117
|
agent_model?: string | null | undefined;
|
|
1801
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1802
2118
|
};
|
|
1803
2119
|
}, {
|
|
1804
2120
|
id: string;
|
|
@@ -1808,10 +2124,10 @@ export declare const actorUpdate: z.ZodObject<{
|
|
|
1808
2124
|
scopes?: string[] | undefined;
|
|
1809
2125
|
role?: string | null | undefined;
|
|
1810
2126
|
is_active?: boolean | undefined;
|
|
2127
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1811
2128
|
display_name?: string | undefined;
|
|
1812
2129
|
agent_identifier?: string | null | undefined;
|
|
1813
2130
|
agent_model?: string | null | undefined;
|
|
1814
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1815
2131
|
};
|
|
1816
2132
|
}>;
|
|
1817
2133
|
export declare const actorGet: z.ZodObject<{
|
|
@@ -1832,13 +2148,13 @@ export declare const actorSearch: z.ZodObject<{
|
|
|
1832
2148
|
query?: string | undefined;
|
|
1833
2149
|
cursor?: string | undefined;
|
|
1834
2150
|
is_active?: boolean | undefined;
|
|
1835
|
-
actor_type?: "
|
|
2151
|
+
actor_type?: "human" | "agent" | undefined;
|
|
1836
2152
|
}, {
|
|
1837
2153
|
query?: string | undefined;
|
|
1838
2154
|
limit?: number | undefined;
|
|
1839
2155
|
cursor?: string | undefined;
|
|
1840
2156
|
is_active?: boolean | undefined;
|
|
1841
|
-
actor_type?: "
|
|
2157
|
+
actor_type?: "human" | "agent" | undefined;
|
|
1842
2158
|
}>;
|
|
1843
2159
|
export declare const assignmentCreate: z.ZodObject<{
|
|
1844
2160
|
title: z.ZodString;
|
|
@@ -1870,9 +2186,9 @@ export declare const assignmentCreate: z.ZodObject<{
|
|
|
1870
2186
|
due_at?: string | undefined;
|
|
1871
2187
|
subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
|
|
1872
2188
|
subject_id?: string | undefined;
|
|
2189
|
+
context?: string | undefined;
|
|
1873
2190
|
metadata?: Record<string, unknown> | undefined;
|
|
1874
2191
|
priority?: "low" | "normal" | "high" | "urgent" | undefined;
|
|
1875
|
-
context?: string | undefined;
|
|
1876
2192
|
}>;
|
|
1877
2193
|
export declare const assignmentUpdate: z.ZodObject<{
|
|
1878
2194
|
id: z.ZodString;
|
|
@@ -1885,43 +2201,43 @@ export declare const assignmentUpdate: z.ZodObject<{
|
|
|
1885
2201
|
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1886
2202
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1887
2203
|
}, "strip", z.ZodTypeAny, {
|
|
1888
|
-
status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
|
|
1889
2204
|
title?: string | undefined;
|
|
2205
|
+
status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
|
|
1890
2206
|
description?: string | null | undefined;
|
|
1891
2207
|
due_at?: string | null | undefined;
|
|
2208
|
+
context?: string | null | undefined;
|
|
1892
2209
|
metadata?: Record<string, unknown> | undefined;
|
|
1893
2210
|
priority?: "low" | "normal" | "high" | "urgent" | undefined;
|
|
1894
|
-
context?: string | null | undefined;
|
|
1895
2211
|
}, {
|
|
1896
|
-
status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
|
|
1897
2212
|
title?: string | undefined;
|
|
2213
|
+
status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
|
|
1898
2214
|
description?: string | null | undefined;
|
|
1899
2215
|
due_at?: string | null | undefined;
|
|
2216
|
+
context?: string | null | undefined;
|
|
1900
2217
|
metadata?: Record<string, unknown> | undefined;
|
|
1901
2218
|
priority?: "low" | "normal" | "high" | "urgent" | undefined;
|
|
1902
|
-
context?: string | null | undefined;
|
|
1903
2219
|
}>;
|
|
1904
2220
|
}, "strip", z.ZodTypeAny, {
|
|
1905
2221
|
id: string;
|
|
1906
2222
|
patch: {
|
|
1907
|
-
status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
|
|
1908
2223
|
title?: string | undefined;
|
|
2224
|
+
status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
|
|
1909
2225
|
description?: string | null | undefined;
|
|
1910
2226
|
due_at?: string | null | undefined;
|
|
2227
|
+
context?: string | null | undefined;
|
|
1911
2228
|
metadata?: Record<string, unknown> | undefined;
|
|
1912
2229
|
priority?: "low" | "normal" | "high" | "urgent" | undefined;
|
|
1913
|
-
context?: string | null | undefined;
|
|
1914
2230
|
};
|
|
1915
2231
|
}, {
|
|
1916
2232
|
id: string;
|
|
1917
2233
|
patch: {
|
|
1918
|
-
status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
|
|
1919
2234
|
title?: string | undefined;
|
|
2235
|
+
status?: "pending" | "completed" | "cancelled" | "accepted" | "in_progress" | "blocked" | "declined" | undefined;
|
|
1920
2236
|
description?: string | null | undefined;
|
|
1921
2237
|
due_at?: string | null | undefined;
|
|
2238
|
+
context?: string | null | undefined;
|
|
1922
2239
|
metadata?: Record<string, unknown> | undefined;
|
|
1923
2240
|
priority?: "low" | "normal" | "high" | "urgent" | undefined;
|
|
1924
|
-
context?: string | null | undefined;
|
|
1925
2241
|
};
|
|
1926
2242
|
}>;
|
|
1927
2243
|
export declare const assignmentGet: z.ZodObject<{
|
|
@@ -2026,6 +2342,10 @@ export declare const contextEntryCreate: z.ZodObject<{
|
|
|
2026
2342
|
source_ref: z.ZodOptional<z.ZodString>;
|
|
2027
2343
|
source_activity_id: z.ZodOptional<z.ZodString>;
|
|
2028
2344
|
valid_until: z.ZodOptional<z.ZodString>;
|
|
2345
|
+
parent_id: z.ZodOptional<z.ZodString>;
|
|
2346
|
+
visibility: z.ZodDefault<z.ZodEnum<["internal", "external"]>>;
|
|
2347
|
+
mentions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2348
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
2029
2349
|
}, "strip", z.ZodTypeAny, {
|
|
2030
2350
|
tags: string[];
|
|
2031
2351
|
body: string;
|
|
@@ -2033,8 +2353,12 @@ export declare const contextEntryCreate: z.ZodObject<{
|
|
|
2033
2353
|
subject_id: string;
|
|
2034
2354
|
context_type: string;
|
|
2035
2355
|
structured_data: Record<string, unknown>;
|
|
2356
|
+
visibility: "internal" | "external";
|
|
2357
|
+
mentions: string[];
|
|
2358
|
+
pinned: boolean;
|
|
2036
2359
|
title?: string | undefined;
|
|
2037
2360
|
source?: string | undefined;
|
|
2361
|
+
parent_id?: string | undefined;
|
|
2038
2362
|
confidence?: number | undefined;
|
|
2039
2363
|
source_ref?: string | undefined;
|
|
2040
2364
|
source_activity_id?: string | undefined;
|
|
@@ -2047,11 +2371,15 @@ export declare const contextEntryCreate: z.ZodObject<{
|
|
|
2047
2371
|
title?: string | undefined;
|
|
2048
2372
|
tags?: string[] | undefined;
|
|
2049
2373
|
source?: string | undefined;
|
|
2374
|
+
parent_id?: string | undefined;
|
|
2050
2375
|
structured_data?: Record<string, unknown> | undefined;
|
|
2051
2376
|
confidence?: number | undefined;
|
|
2052
2377
|
source_ref?: string | undefined;
|
|
2053
2378
|
source_activity_id?: string | undefined;
|
|
2054
2379
|
valid_until?: string | undefined;
|
|
2380
|
+
visibility?: "internal" | "external" | undefined;
|
|
2381
|
+
mentions?: string[] | undefined;
|
|
2382
|
+
pinned?: boolean | undefined;
|
|
2055
2383
|
}>;
|
|
2056
2384
|
export declare const contextEntryGet: z.ZodObject<{
|
|
2057
2385
|
id: z.ZodString;
|
|
@@ -2067,6 +2395,10 @@ export declare const contextEntrySearch: z.ZodObject<{
|
|
|
2067
2395
|
authored_by: z.ZodOptional<z.ZodString>;
|
|
2068
2396
|
is_current: z.ZodOptional<z.ZodBoolean>;
|
|
2069
2397
|
query: z.ZodOptional<z.ZodString>;
|
|
2398
|
+
/** Partial JSONB match against structured_data. Example: { "severity": "critical" } */
|
|
2399
|
+
structured_data_filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2400
|
+
visibility: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
|
|
2401
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
2070
2402
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
2071
2403
|
cursor: z.ZodOptional<z.ZodString>;
|
|
2072
2404
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2076,6 +2408,9 @@ export declare const contextEntrySearch: z.ZodObject<{
|
|
|
2076
2408
|
subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
|
|
2077
2409
|
subject_id?: string | undefined;
|
|
2078
2410
|
context_type?: string | undefined;
|
|
2411
|
+
structured_data_filter?: Record<string, unknown> | undefined;
|
|
2412
|
+
visibility?: "internal" | "external" | undefined;
|
|
2413
|
+
pinned?: boolean | undefined;
|
|
2079
2414
|
authored_by?: string | undefined;
|
|
2080
2415
|
is_current?: boolean | undefined;
|
|
2081
2416
|
}, {
|
|
@@ -2085,6 +2420,9 @@ export declare const contextEntrySearch: z.ZodObject<{
|
|
|
2085
2420
|
subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
|
|
2086
2421
|
subject_id?: string | undefined;
|
|
2087
2422
|
context_type?: string | undefined;
|
|
2423
|
+
structured_data_filter?: Record<string, unknown> | undefined;
|
|
2424
|
+
visibility?: "internal" | "external" | undefined;
|
|
2425
|
+
pinned?: boolean | undefined;
|
|
2088
2426
|
authored_by?: string | undefined;
|
|
2089
2427
|
is_current?: boolean | undefined;
|
|
2090
2428
|
}>;
|
|
@@ -2114,16 +2452,75 @@ export declare const activityGetTimeline: z.ZodObject<{
|
|
|
2114
2452
|
subject_type: z.ZodEnum<["contact", "account", "opportunity", "use_case"]>;
|
|
2115
2453
|
subject_id: z.ZodString;
|
|
2116
2454
|
limit: z.ZodDefault<z.ZodDefault<z.ZodNumber>>;
|
|
2117
|
-
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task"]>, "many">>;
|
|
2455
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "note", "task", "demo", "proposal", "research", "handoff", "status_update"]>, "many">>;
|
|
2118
2456
|
}, "strip", z.ZodTypeAny, {
|
|
2119
2457
|
limit: number;
|
|
2120
2458
|
subject_type: "contact" | "account" | "opportunity" | "use_case";
|
|
2121
2459
|
subject_id: string;
|
|
2122
|
-
types?: ("call" | "email" | "meeting" | "note" | "task")[] | undefined;
|
|
2460
|
+
types?: ("proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update")[] | undefined;
|
|
2461
|
+
}, {
|
|
2462
|
+
subject_type: "contact" | "account" | "opportunity" | "use_case";
|
|
2463
|
+
subject_id: string;
|
|
2464
|
+
limit?: number | undefined;
|
|
2465
|
+
types?: ("proposal" | "call" | "email" | "meeting" | "note" | "task" | "demo" | "research" | "handoff" | "status_update")[] | undefined;
|
|
2466
|
+
}>;
|
|
2467
|
+
/** context_diff — catch-up briefing showing what changed since a given timestamp */
|
|
2468
|
+
export declare const contextDiff: z.ZodObject<{
|
|
2469
|
+
subject_type: z.ZodEnum<["contact", "account", "opportunity", "use_case"]>;
|
|
2470
|
+
subject_id: z.ZodString;
|
|
2471
|
+
/** Relative ("7d", "24h", "30m") or ISO timestamp */
|
|
2472
|
+
since: z.ZodString;
|
|
2473
|
+
}, "strip", z.ZodTypeAny, {
|
|
2474
|
+
subject_type: "contact" | "account" | "opportunity" | "use_case";
|
|
2475
|
+
subject_id: string;
|
|
2476
|
+
since: string;
|
|
2123
2477
|
}, {
|
|
2124
2478
|
subject_type: "contact" | "account" | "opportunity" | "use_case";
|
|
2125
2479
|
subject_id: string;
|
|
2480
|
+
since: string;
|
|
2481
|
+
}>;
|
|
2482
|
+
/**
|
|
2483
|
+
* actor_expertise — query actor knowledge contributions.
|
|
2484
|
+
* Provide actor_id to see what subjects an actor knows about.
|
|
2485
|
+
* Provide subject_type + subject_id to see which actors know most about a subject.
|
|
2486
|
+
* At least one must be provided.
|
|
2487
|
+
*/
|
|
2488
|
+
export declare const actorExpertise: z.ZodObject<{
|
|
2489
|
+
actor_id: z.ZodOptional<z.ZodString>;
|
|
2490
|
+
subject_type: z.ZodOptional<z.ZodEnum<["contact", "account", "opportunity", "use_case"]>>;
|
|
2491
|
+
subject_id: z.ZodOptional<z.ZodString>;
|
|
2492
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
2493
|
+
}, "strip", z.ZodTypeAny, {
|
|
2494
|
+
limit: number;
|
|
2495
|
+
subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
|
|
2496
|
+
subject_id?: string | undefined;
|
|
2497
|
+
actor_id?: string | undefined;
|
|
2498
|
+
}, {
|
|
2126
2499
|
limit?: number | undefined;
|
|
2127
|
-
|
|
2500
|
+
subject_type?: "contact" | "account" | "opportunity" | "use_case" | undefined;
|
|
2501
|
+
subject_id?: string | undefined;
|
|
2502
|
+
actor_id?: string | undefined;
|
|
2503
|
+
}>;
|
|
2504
|
+
/**
|
|
2505
|
+
* context_ingest — ingest a raw document (transcript, email, notes) and auto-extract context.
|
|
2506
|
+
* Creates an activity from the document and runs the full extraction pipeline.
|
|
2507
|
+
* Returns all context entries that were extracted.
|
|
2508
|
+
*/
|
|
2509
|
+
export declare const contextIngest: z.ZodObject<{
|
|
2510
|
+
subject_type: z.ZodEnum<["contact", "account", "opportunity", "use_case"]>;
|
|
2511
|
+
subject_id: z.ZodString;
|
|
2512
|
+
document: z.ZodString;
|
|
2513
|
+
/** Short description of the document (appears as the activity subject) */
|
|
2514
|
+
source_label: z.ZodOptional<z.ZodString>;
|
|
2515
|
+
}, "strip", z.ZodTypeAny, {
|
|
2516
|
+
subject_type: "contact" | "account" | "opportunity" | "use_case";
|
|
2517
|
+
subject_id: string;
|
|
2518
|
+
document: string;
|
|
2519
|
+
source_label?: string | undefined;
|
|
2520
|
+
}, {
|
|
2521
|
+
subject_type: "contact" | "account" | "opportunity" | "use_case";
|
|
2522
|
+
subject_id: string;
|
|
2523
|
+
document: string;
|
|
2524
|
+
source_label?: string | undefined;
|
|
2128
2525
|
}>;
|
|
2129
2526
|
//# sourceMappingURL=schemas.d.ts.map
|