@automate.ax/integration-contracts 0.87.7 → 0.88.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1900 @@
1
+ import * as z from "zod";
2
+ export declare const CLOSE_DATE_SCHEMA: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
3
+ export declare const CLOSE_ADDRESS_SCHEMA: z.ZodObject<{
4
+ address1: z.ZodNullable<z.ZodString>;
5
+ address2: z.ZodNullable<z.ZodString>;
6
+ city: z.ZodNullable<z.ZodString>;
7
+ country: z.ZodNullable<z.ZodString>;
8
+ label: z.ZodNullable<z.ZodString>;
9
+ state: z.ZodNullable<z.ZodString>;
10
+ tzIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ zipcode: z.ZodNullable<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ export declare const CLOSE_CONTACT_EMAIL_SCHEMA: z.ZodObject<{
14
+ email: z.ZodEmail;
15
+ isUnsubscribed: z.ZodPrefault<z.ZodBoolean>;
16
+ type: z.ZodString;
17
+ }, z.core.$strip>;
18
+ export declare const CLOSE_CONTACT_PHONE_SCHEMA: z.ZodObject<{
19
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ outboundSmsBlocked: z.ZodOptional<z.ZodBoolean>;
21
+ phone: z.ZodString;
22
+ phoneFormatted: z.ZodOptional<z.ZodString>;
23
+ tzIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
+ type: z.ZodString;
25
+ }, z.core.$strip>;
26
+ export declare const CLOSE_CONTACT_URL_SCHEMA: z.ZodObject<{
27
+ type: z.ZodString;
28
+ url: z.ZodString;
29
+ }, z.core.$strip>;
30
+ export declare const CLOSE_LEAD_SCHEMA: z.ZodObject<{
31
+ addresses: z.ZodPrefault<z.ZodArray<z.ZodObject<{
32
+ address1: z.ZodNullable<z.ZodString>;
33
+ address2: z.ZodNullable<z.ZodString>;
34
+ city: z.ZodNullable<z.ZodString>;
35
+ country: z.ZodNullable<z.ZodString>;
36
+ label: z.ZodNullable<z.ZodString>;
37
+ state: z.ZodNullable<z.ZodString>;
38
+ tzIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
39
+ zipcode: z.ZodNullable<z.ZodString>;
40
+ }, z.core.$strip>>>;
41
+ contactIds: z.ZodArray<z.ZodString>;
42
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
43
+ createdBy: z.ZodNullable<z.ZodString>;
44
+ customFields: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
45
+ description: z.ZodNullable<z.ZodString>;
46
+ displayName: z.ZodOptional<z.ZodString>;
47
+ htmlUrl: z.ZodURL;
48
+ id: z.ZodString;
49
+ name: z.ZodNullable<z.ZodString>;
50
+ organizationId: z.ZodString;
51
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ statusId: z.ZodString;
53
+ statusLabel: z.ZodOptional<z.ZodString>;
54
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
55
+ updatedBy: z.ZodNullable<z.ZodString>;
56
+ url: z.ZodNullable<z.ZodString>;
57
+ }, z.core.$strip>;
58
+ export declare const CLOSE_CONTACT_SCHEMA: z.ZodObject<{
59
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
60
+ createdBy: z.ZodNullable<z.ZodString>;
61
+ customFields: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
62
+ displayName: z.ZodString;
63
+ emails: z.ZodPrefault<z.ZodArray<z.ZodObject<{
64
+ email: z.ZodEmail;
65
+ isUnsubscribed: z.ZodPrefault<z.ZodBoolean>;
66
+ type: z.ZodString;
67
+ }, z.core.$strip>>>;
68
+ id: z.ZodString;
69
+ leadId: z.ZodNullable<z.ZodString>;
70
+ name: z.ZodNullable<z.ZodString>;
71
+ organizationId: z.ZodString;
72
+ phones: z.ZodPrefault<z.ZodArray<z.ZodObject<{
73
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ outboundSmsBlocked: z.ZodOptional<z.ZodBoolean>;
75
+ phone: z.ZodString;
76
+ phoneFormatted: z.ZodOptional<z.ZodString>;
77
+ tzIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
+ type: z.ZodString;
79
+ }, z.core.$strip>>>;
80
+ title: z.ZodNullable<z.ZodString>;
81
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
82
+ updatedBy: z.ZodNullable<z.ZodString>;
83
+ urls: z.ZodPrefault<z.ZodArray<z.ZodObject<{
84
+ type: z.ZodString;
85
+ url: z.ZodString;
86
+ }, z.core.$strip>>>;
87
+ }, z.core.$strip>;
88
+ export declare const CLOSE_OPPORTUNITY_STATUS_TYPE_SCHEMA: z.ZodEnum<{
89
+ active: "active";
90
+ lost: "lost";
91
+ won: "won";
92
+ }>;
93
+ export declare const CLOSE_ATTACHMENT_SCHEMA: z.ZodObject<{
94
+ contentType: z.ZodNullable<z.ZodString>;
95
+ filename: z.ZodNullable<z.ZodString>;
96
+ size: z.ZodNullable<z.ZodNumber>;
97
+ thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
98
+ url: z.ZodURL;
99
+ }, z.core.$strip>;
100
+ export declare const CLOSE_OPPORTUNITY_SCHEMA: z.ZodObject<{
101
+ annualizedExpectedValue: z.ZodNullable<z.ZodNumber>;
102
+ annualizedValue: z.ZodNullable<z.ZodNumber>;
103
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
104
+ contentType: z.ZodNullable<z.ZodString>;
105
+ filename: z.ZodNullable<z.ZodString>;
106
+ size: z.ZodNullable<z.ZodNumber>;
107
+ thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
108
+ url: z.ZodURL;
109
+ }, z.core.$strip>>>;
110
+ commentSummary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
111
+ commentCount: z.ZodNumber;
112
+ threadId: z.ZodString;
113
+ }, z.core.$strip>>>;
114
+ confidence: z.ZodNumber;
115
+ contactId: z.ZodNullable<z.ZodString>;
116
+ contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
118
+ createdBy: z.ZodNullable<z.ZodString>;
119
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ customFields: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
121
+ dateLost: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
122
+ dateWon: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
123
+ expectedValue: z.ZodNullable<z.ZodNumber>;
124
+ id: z.ZodString;
125
+ integrationLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
+ name: z.ZodString;
127
+ url: z.ZodURL;
128
+ }, z.core.$strip>>>;
129
+ isStalled: z.ZodOptional<z.ZodBoolean>;
130
+ leadId: z.ZodString;
131
+ leadName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
+ leadPrimaryEmail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
133
+ email: z.ZodEmail;
134
+ isUnsubscribed: z.ZodPrefault<z.ZodBoolean>;
135
+ type: z.ZodString;
136
+ }, z.core.$strip>>>;
137
+ leadPrimaryPhone: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
138
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
+ outboundSmsBlocked: z.ZodOptional<z.ZodBoolean>;
140
+ phone: z.ZodString;
141
+ phoneFormatted: z.ZodOptional<z.ZodString>;
142
+ tzIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
+ type: z.ZodString;
144
+ }, z.core.$strip>>>>;
145
+ note: z.ZodNullable<z.ZodString>;
146
+ noteHtml: z.ZodNullable<z.ZodString>;
147
+ organizationId: z.ZodString;
148
+ pipelineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
+ pipelineName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
+ stallStatus: z.ZodOptional<z.ZodNullable<z.ZodObject<{
151
+ communicationIssue: z.ZodEnum<{
152
+ no_issue: "no_issue";
153
+ cant_get_in_touch: "cant_get_in_touch";
154
+ no_communication_attempts: "no_communication_attempts";
155
+ }>;
156
+ nextAction: z.ZodObject<{
157
+ action: z.ZodEnum<{
158
+ change_status: "change_status";
159
+ adjust_close_date: "adjust_close_date";
160
+ mark_as_lost: "mark_as_lost";
161
+ follow_up: "follow_up";
162
+ ask_someone_else_to_reach_out: "ask_someone_else_to_reach_out";
163
+ change_communication_method: "change_communication_method";
164
+ }>;
165
+ justification: z.ZodString;
166
+ }, z.core.$strip>;
167
+ }, z.core.$strip>>>;
168
+ statusId: z.ZodString;
169
+ statusDisplayName: z.ZodOptional<z.ZodString>;
170
+ statusLabel: z.ZodOptional<z.ZodString>;
171
+ statusType: z.ZodOptional<z.ZodEnum<{
172
+ active: "active";
173
+ lost: "lost";
174
+ won: "won";
175
+ }>>;
176
+ suggestedAction: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
177
+ action: z.ZodLiteral<"change_status">;
178
+ details: z.ZodNullable<z.ZodObject<{
179
+ statusId: z.ZodString;
180
+ }, z.core.$strip>>;
181
+ justification: z.ZodString;
182
+ }, z.core.$strip>, z.ZodObject<{
183
+ action: z.ZodLiteral<"adjust_close_date">;
184
+ details: z.ZodNullable<z.ZodObject<{
185
+ closeDate: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
186
+ }, z.core.$strip>>;
187
+ justification: z.ZodString;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ action: z.ZodLiteral<"follow_up_email">;
190
+ details: z.ZodNullable<z.ZodObject<{
191
+ contactId: z.ZodString;
192
+ messageDraft: z.ZodString;
193
+ subjectDraft: z.ZodString;
194
+ }, z.core.$strip>>;
195
+ justification: z.ZodString;
196
+ }, z.core.$strip>, z.ZodObject<{
197
+ action: z.ZodLiteral<"follow_up_sms">;
198
+ details: z.ZodNullable<z.ZodObject<{
199
+ contactId: z.ZodString;
200
+ messageDraft: z.ZodString;
201
+ }, z.core.$strip>>;
202
+ justification: z.ZodString;
203
+ }, z.core.$strip>, z.ZodObject<{
204
+ action: z.ZodLiteral<"follow_up_call">;
205
+ details: z.ZodNullable<z.ZodObject<{
206
+ callPlan: z.ZodString;
207
+ contactId: z.ZodString;
208
+ }, z.core.$strip>>;
209
+ justification: z.ZodString;
210
+ }, z.core.$strip>], "action">>>;
211
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
212
+ updatedBy: z.ZodNullable<z.ZodString>;
213
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
+ userId: z.ZodString;
215
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
+ value: z.ZodNullable<z.ZodNumber>;
217
+ valueCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ valueFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
+ valuePeriod: z.ZodEnum<{
220
+ annual: "annual";
221
+ monthly: "monthly";
222
+ one_time: "one_time";
223
+ }>;
224
+ }, z.core.$strip>;
225
+ export declare const CLOSE_OPPORTUNITY_PAGE_SCHEMA: z.ZodObject<{
226
+ countByValuePeriod: z.ZodRecord<z.ZodString, z.ZodNumber>;
227
+ data: z.ZodArray<z.ZodObject<{
228
+ annualizedExpectedValue: z.ZodNullable<z.ZodNumber>;
229
+ annualizedValue: z.ZodNullable<z.ZodNumber>;
230
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
231
+ contentType: z.ZodNullable<z.ZodString>;
232
+ filename: z.ZodNullable<z.ZodString>;
233
+ size: z.ZodNullable<z.ZodNumber>;
234
+ thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
235
+ url: z.ZodURL;
236
+ }, z.core.$strip>>>;
237
+ commentSummary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
238
+ commentCount: z.ZodNumber;
239
+ threadId: z.ZodString;
240
+ }, z.core.$strip>>>;
241
+ confidence: z.ZodNumber;
242
+ contactId: z.ZodNullable<z.ZodString>;
243
+ contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
245
+ createdBy: z.ZodNullable<z.ZodString>;
246
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
+ customFields: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
248
+ dateLost: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
249
+ dateWon: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
250
+ expectedValue: z.ZodNullable<z.ZodNumber>;
251
+ id: z.ZodString;
252
+ integrationLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
253
+ name: z.ZodString;
254
+ url: z.ZodURL;
255
+ }, z.core.$strip>>>;
256
+ isStalled: z.ZodOptional<z.ZodBoolean>;
257
+ leadId: z.ZodString;
258
+ leadName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
+ leadPrimaryEmail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
260
+ email: z.ZodEmail;
261
+ isUnsubscribed: z.ZodPrefault<z.ZodBoolean>;
262
+ type: z.ZodString;
263
+ }, z.core.$strip>>>;
264
+ leadPrimaryPhone: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
265
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
+ outboundSmsBlocked: z.ZodOptional<z.ZodBoolean>;
267
+ phone: z.ZodString;
268
+ phoneFormatted: z.ZodOptional<z.ZodString>;
269
+ tzIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
270
+ type: z.ZodString;
271
+ }, z.core.$strip>>>>;
272
+ note: z.ZodNullable<z.ZodString>;
273
+ noteHtml: z.ZodNullable<z.ZodString>;
274
+ organizationId: z.ZodString;
275
+ pipelineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
276
+ pipelineName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
+ stallStatus: z.ZodOptional<z.ZodNullable<z.ZodObject<{
278
+ communicationIssue: z.ZodEnum<{
279
+ no_issue: "no_issue";
280
+ cant_get_in_touch: "cant_get_in_touch";
281
+ no_communication_attempts: "no_communication_attempts";
282
+ }>;
283
+ nextAction: z.ZodObject<{
284
+ action: z.ZodEnum<{
285
+ change_status: "change_status";
286
+ adjust_close_date: "adjust_close_date";
287
+ mark_as_lost: "mark_as_lost";
288
+ follow_up: "follow_up";
289
+ ask_someone_else_to_reach_out: "ask_someone_else_to_reach_out";
290
+ change_communication_method: "change_communication_method";
291
+ }>;
292
+ justification: z.ZodString;
293
+ }, z.core.$strip>;
294
+ }, z.core.$strip>>>;
295
+ statusId: z.ZodString;
296
+ statusDisplayName: z.ZodOptional<z.ZodString>;
297
+ statusLabel: z.ZodOptional<z.ZodString>;
298
+ statusType: z.ZodOptional<z.ZodEnum<{
299
+ active: "active";
300
+ lost: "lost";
301
+ won: "won";
302
+ }>>;
303
+ suggestedAction: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
304
+ action: z.ZodLiteral<"change_status">;
305
+ details: z.ZodNullable<z.ZodObject<{
306
+ statusId: z.ZodString;
307
+ }, z.core.$strip>>;
308
+ justification: z.ZodString;
309
+ }, z.core.$strip>, z.ZodObject<{
310
+ action: z.ZodLiteral<"adjust_close_date">;
311
+ details: z.ZodNullable<z.ZodObject<{
312
+ closeDate: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
313
+ }, z.core.$strip>>;
314
+ justification: z.ZodString;
315
+ }, z.core.$strip>, z.ZodObject<{
316
+ action: z.ZodLiteral<"follow_up_email">;
317
+ details: z.ZodNullable<z.ZodObject<{
318
+ contactId: z.ZodString;
319
+ messageDraft: z.ZodString;
320
+ subjectDraft: z.ZodString;
321
+ }, z.core.$strip>>;
322
+ justification: z.ZodString;
323
+ }, z.core.$strip>, z.ZodObject<{
324
+ action: z.ZodLiteral<"follow_up_sms">;
325
+ details: z.ZodNullable<z.ZodObject<{
326
+ contactId: z.ZodString;
327
+ messageDraft: z.ZodString;
328
+ }, z.core.$strip>>;
329
+ justification: z.ZodString;
330
+ }, z.core.$strip>, z.ZodObject<{
331
+ action: z.ZodLiteral<"follow_up_call">;
332
+ details: z.ZodNullable<z.ZodObject<{
333
+ callPlan: z.ZodString;
334
+ contactId: z.ZodString;
335
+ }, z.core.$strip>>;
336
+ justification: z.ZodString;
337
+ }, z.core.$strip>], "action">>>;
338
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
339
+ updatedBy: z.ZodNullable<z.ZodString>;
340
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
341
+ userId: z.ZodString;
342
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
+ value: z.ZodNullable<z.ZodNumber>;
344
+ valueCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
345
+ valueFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
346
+ valuePeriod: z.ZodEnum<{
347
+ annual: "annual";
348
+ monthly: "monthly";
349
+ one_time: "one_time";
350
+ }>;
351
+ }, z.core.$strip>>;
352
+ expectedValueAnnual: z.ZodNumber;
353
+ expectedValueAnnualFormatted: z.ZodString;
354
+ expectedValueAnnualized: z.ZodNumber;
355
+ expectedValueAnnualizedFormatted: z.ZodString;
356
+ expectedValueMonthly: z.ZodNumber;
357
+ expectedValueMonthlyFormatted: z.ZodString;
358
+ expectedValueOneTime: z.ZodNumber;
359
+ expectedValueOneTimeFormatted: z.ZodString;
360
+ hasMore: z.ZodBoolean;
361
+ totalResults: z.ZodNumber;
362
+ totalValueAnnual: z.ZodNumber;
363
+ totalValueAnnualFormatted: z.ZodString;
364
+ totalValueAnnualized: z.ZodNumber;
365
+ totalValueAnnualizedFormatted: z.ZodString;
366
+ totalValueMonthly: z.ZodNumber;
367
+ totalValueMonthlyFormatted: z.ZodString;
368
+ totalValueOneTime: z.ZodNumber;
369
+ totalValueOneTimeFormatted: z.ZodString;
370
+ }, z.core.$strip>;
371
+ export declare const CLOSE_TASK_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
372
+ type: z.ZodLiteral<"lead">;
373
+ assignedTo: z.ZodNullable<z.ZodString>;
374
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
375
+ contactId: z.ZodNullable<z.ZodString>;
376
+ contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
377
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
378
+ createdBy: z.ZodNullable<z.ZodString>;
379
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
380
+ date: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
381
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
382
+ id: z.ZodString;
383
+ isComplete: z.ZodBoolean;
384
+ isDateless: z.ZodOptional<z.ZodBoolean>;
385
+ leadId: z.ZodNullable<z.ZodString>;
386
+ leadName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
387
+ objectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
388
+ objectType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
389
+ organizationId: z.ZodString;
390
+ priority: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
391
+ high: "high";
392
+ medium: "medium";
393
+ }>>>;
394
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
395
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
396
+ updatedBy: z.ZodNullable<z.ZodString>;
397
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
398
+ view: z.ZodOptional<z.ZodEnum<{
399
+ archive: "archive";
400
+ future: "future";
401
+ inbox: "inbox";
402
+ }>>;
403
+ }, z.core.$strip>, z.ZodObject<{
404
+ type: z.ZodLiteral<"missed_call">;
405
+ localPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
407
+ phoneFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
408
+ phoneNumberDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
409
+ assignedTo: z.ZodNullable<z.ZodString>;
410
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
+ contactId: z.ZodNullable<z.ZodString>;
412
+ contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
414
+ createdBy: z.ZodNullable<z.ZodString>;
415
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ date: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
417
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
418
+ id: z.ZodString;
419
+ isComplete: z.ZodBoolean;
420
+ isDateless: z.ZodOptional<z.ZodBoolean>;
421
+ leadId: z.ZodNullable<z.ZodString>;
422
+ leadName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
+ objectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
424
+ objectType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
425
+ organizationId: z.ZodString;
426
+ priority: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
427
+ high: "high";
428
+ medium: "medium";
429
+ }>>>;
430
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
431
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
432
+ updatedBy: z.ZodNullable<z.ZodString>;
433
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
+ view: z.ZodOptional<z.ZodEnum<{
435
+ archive: "archive";
436
+ future: "future";
437
+ inbox: "inbox";
438
+ }>>;
439
+ }, z.core.$strip>, z.ZodObject<{
440
+ type: z.ZodLiteral<"voicemail">;
441
+ voicemailDuration: z.ZodOptional<z.ZodNumber>;
442
+ voicemailUrl: z.ZodOptional<z.ZodURL>;
443
+ localPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
+ phoneFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
446
+ phoneNumberDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
447
+ assignedTo: z.ZodNullable<z.ZodString>;
448
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
449
+ contactId: z.ZodNullable<z.ZodString>;
450
+ contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
452
+ createdBy: z.ZodNullable<z.ZodString>;
453
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
454
+ date: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
455
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
456
+ id: z.ZodString;
457
+ isComplete: z.ZodBoolean;
458
+ isDateless: z.ZodOptional<z.ZodBoolean>;
459
+ leadId: z.ZodNullable<z.ZodString>;
460
+ leadName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
+ objectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
462
+ objectType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
463
+ organizationId: z.ZodString;
464
+ priority: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
465
+ high: "high";
466
+ medium: "medium";
467
+ }>>>;
468
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
470
+ updatedBy: z.ZodNullable<z.ZodString>;
471
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
+ view: z.ZodOptional<z.ZodEnum<{
473
+ archive: "archive";
474
+ future: "future";
475
+ inbox: "inbox";
476
+ }>>;
477
+ }, z.core.$strip>, z.ZodObject<{
478
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
479
+ emails: z.ZodOptional<z.ZodArray<z.ZodString>>;
480
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
481
+ type: z.ZodLiteral<"incoming_email">;
482
+ assignedTo: z.ZodNullable<z.ZodString>;
483
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
484
+ contactId: z.ZodNullable<z.ZodString>;
485
+ contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
486
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
487
+ createdBy: z.ZodNullable<z.ZodString>;
488
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
+ date: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
490
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
491
+ id: z.ZodString;
492
+ isComplete: z.ZodBoolean;
493
+ isDateless: z.ZodOptional<z.ZodBoolean>;
494
+ leadId: z.ZodNullable<z.ZodString>;
495
+ leadName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
496
+ objectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
497
+ objectType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
498
+ organizationId: z.ZodString;
499
+ priority: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
500
+ high: "high";
501
+ medium: "medium";
502
+ }>>>;
503
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
504
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
505
+ updatedBy: z.ZodNullable<z.ZodString>;
506
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
507
+ view: z.ZodOptional<z.ZodEnum<{
508
+ archive: "archive";
509
+ future: "future";
510
+ inbox: "inbox";
511
+ }>>;
512
+ }, z.core.$strip>, z.ZodObject<{
513
+ bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
514
+ emailId: z.ZodOptional<z.ZodString>;
515
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
516
+ type: z.ZodLiteral<"email_followup">;
517
+ assignedTo: z.ZodNullable<z.ZodString>;
518
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
519
+ contactId: z.ZodNullable<z.ZodString>;
520
+ contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
521
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
522
+ createdBy: z.ZodNullable<z.ZodString>;
523
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
524
+ date: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
525
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
526
+ id: z.ZodString;
527
+ isComplete: z.ZodBoolean;
528
+ isDateless: z.ZodOptional<z.ZodBoolean>;
529
+ leadId: z.ZodNullable<z.ZodString>;
530
+ leadName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
531
+ objectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
532
+ objectType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
533
+ organizationId: z.ZodString;
534
+ priority: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
535
+ high: "high";
536
+ medium: "medium";
537
+ }>>>;
538
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
539
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
540
+ updatedBy: z.ZodNullable<z.ZodString>;
541
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
542
+ view: z.ZodOptional<z.ZodEnum<{
543
+ archive: "archive";
544
+ future: "future";
545
+ inbox: "inbox";
546
+ }>>;
547
+ }, z.core.$strip>, z.ZodObject<{
548
+ recordingUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
549
+ type: z.ZodLiteral<"answered_detached_call">;
550
+ localPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
551
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
552
+ phoneFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
553
+ phoneNumberDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
554
+ assignedTo: z.ZodNullable<z.ZodString>;
555
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
556
+ contactId: z.ZodNullable<z.ZodString>;
557
+ contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
558
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
559
+ createdBy: z.ZodNullable<z.ZodString>;
560
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
561
+ date: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
562
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
563
+ id: z.ZodString;
564
+ isComplete: z.ZodBoolean;
565
+ isDateless: z.ZodOptional<z.ZodBoolean>;
566
+ leadId: z.ZodNullable<z.ZodString>;
567
+ leadName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
568
+ objectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
569
+ objectType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
570
+ organizationId: z.ZodString;
571
+ priority: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
572
+ high: "high";
573
+ medium: "medium";
574
+ }>>>;
575
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
576
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
577
+ updatedBy: z.ZodNullable<z.ZodString>;
578
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
579
+ view: z.ZodOptional<z.ZodEnum<{
580
+ archive: "archive";
581
+ future: "future";
582
+ inbox: "inbox";
583
+ }>>;
584
+ }, z.core.$strip>, z.ZodObject<{
585
+ opportunityNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
586
+ opportunityValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
587
+ opportunityValueCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
588
+ opportunityValueFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
589
+ opportunityValuePeriod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
590
+ annual: "annual";
591
+ monthly: "monthly";
592
+ one_time: "one_time";
593
+ }>>>;
594
+ type: z.ZodLiteral<"opportunity_due">;
595
+ assignedTo: z.ZodNullable<z.ZodString>;
596
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
597
+ contactId: z.ZodNullable<z.ZodString>;
598
+ contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
599
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
600
+ createdBy: z.ZodNullable<z.ZodString>;
601
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
602
+ date: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
603
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
604
+ id: z.ZodString;
605
+ isComplete: z.ZodBoolean;
606
+ isDateless: z.ZodOptional<z.ZodBoolean>;
607
+ leadId: z.ZodNullable<z.ZodString>;
608
+ leadName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
609
+ objectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
610
+ objectType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
611
+ organizationId: z.ZodString;
612
+ priority: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
613
+ high: "high";
614
+ medium: "medium";
615
+ }>>>;
616
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
617
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
618
+ updatedBy: z.ZodNullable<z.ZodString>;
619
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
620
+ view: z.ZodOptional<z.ZodEnum<{
621
+ archive: "archive";
622
+ future: "future";
623
+ inbox: "inbox";
624
+ }>>;
625
+ }, z.core.$strip>, z.ZodObject<{
626
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
627
+ contentType: z.ZodString;
628
+ filename: z.ZodString;
629
+ mediaId: z.ZodString;
630
+ size: z.ZodNumber;
631
+ thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
632
+ url: z.ZodURL;
633
+ }, z.core.$strip>>>;
634
+ localPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
635
+ remotePhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
636
+ remotePhoneDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
637
+ remotePhoneFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
638
+ type: z.ZodLiteral<"incoming_sms">;
639
+ assignedTo: z.ZodNullable<z.ZodString>;
640
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
641
+ contactId: z.ZodNullable<z.ZodString>;
642
+ contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
643
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
644
+ createdBy: z.ZodNullable<z.ZodString>;
645
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
646
+ date: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
647
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
648
+ id: z.ZodString;
649
+ isComplete: z.ZodBoolean;
650
+ isDateless: z.ZodOptional<z.ZodBoolean>;
651
+ leadId: z.ZodNullable<z.ZodString>;
652
+ leadName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
653
+ objectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
654
+ objectType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
655
+ organizationId: z.ZodString;
656
+ priority: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
657
+ high: "high";
658
+ medium: "medium";
659
+ }>>>;
660
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
661
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
662
+ updatedBy: z.ZodNullable<z.ZodString>;
663
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
664
+ view: z.ZodOptional<z.ZodEnum<{
665
+ archive: "archive";
666
+ future: "future";
667
+ inbox: "inbox";
668
+ }>>;
669
+ }, z.core.$strip>, z.ZodObject<{
670
+ agentConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
671
+ deduplicationKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
672
+ isPrimaryLeadNotification: z.ZodOptional<z.ZodBoolean>;
673
+ resolution: z.ZodOptional<z.ZodNullable<z.ZodString>>;
674
+ sequenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
675
+ sequenceSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
676
+ stepId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
677
+ type: z.ZodLiteral<"outgoing_call">;
678
+ assignedTo: z.ZodNullable<z.ZodString>;
679
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
680
+ contactId: z.ZodNullable<z.ZodString>;
681
+ contactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
682
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
683
+ createdBy: z.ZodNullable<z.ZodString>;
684
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
685
+ date: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
686
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
687
+ id: z.ZodString;
688
+ isComplete: z.ZodBoolean;
689
+ isDateless: z.ZodOptional<z.ZodBoolean>;
690
+ leadId: z.ZodNullable<z.ZodString>;
691
+ leadName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
692
+ objectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
693
+ objectType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
694
+ organizationId: z.ZodString;
695
+ priority: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
696
+ high: "high";
697
+ medium: "medium";
698
+ }>>>;
699
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
700
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
701
+ updatedBy: z.ZodNullable<z.ZodString>;
702
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
703
+ view: z.ZodOptional<z.ZodEnum<{
704
+ archive: "archive";
705
+ future: "future";
706
+ inbox: "inbox";
707
+ }>>;
708
+ }, z.core.$strip>], "type">;
709
+ export declare const CLOSE_NOTE_SCHEMA: z.ZodObject<{
710
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
711
+ attachments: z.ZodArray<z.ZodObject<{
712
+ contentType: z.ZodNullable<z.ZodString>;
713
+ filename: z.ZodNullable<z.ZodString>;
714
+ size: z.ZodNullable<z.ZodNumber>;
715
+ thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
716
+ url: z.ZodURL;
717
+ }, z.core.$strip>>;
718
+ contactId: z.ZodNullable<z.ZodString>;
719
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
720
+ createdBy: z.ZodNullable<z.ZodString>;
721
+ id: z.ZodString;
722
+ leadId: z.ZodNullable<z.ZodString>;
723
+ note: z.ZodString;
724
+ noteHtml: z.ZodString;
725
+ noteMentions: z.ZodArray<z.ZodString>;
726
+ organizationId: z.ZodString;
727
+ pinned: z.ZodBoolean;
728
+ pinnedAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
729
+ source: z.ZodNullable<z.ZodEnum<{
730
+ email: "email";
731
+ ui: "ui";
732
+ api: "api";
733
+ import: "import";
734
+ clipper: "clipper";
735
+ suggestion: "suggestion";
736
+ "segment-integration": "segment-integration";
737
+ "customerio-integration": "customerio-integration";
738
+ "calendly-integration": "calendly-integration";
739
+ ai: "ai";
740
+ whatsapp: "whatsapp";
741
+ webform: "webform";
742
+ }>>;
743
+ title: z.ZodNullable<z.ZodString>;
744
+ type: z.ZodLiteral<"Note">;
745
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
746
+ updatedBy: z.ZodNullable<z.ZodString>;
747
+ userId: z.ZodNullable<z.ZodString>;
748
+ users: z.ZodArray<z.ZodString>;
749
+ }, z.core.$strip>;
750
+ export declare const CLOSE_CALL_SCHEMA: z.ZodObject<{
751
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
752
+ callMethod: z.ZodOptional<z.ZodNullable<z.ZodString>>;
753
+ contactId: z.ZodNullable<z.ZodString>;
754
+ cost: z.ZodOptional<z.ZodNullable<z.ZodString>>;
755
+ dialerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
756
+ dialerSavedSearchId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
757
+ direction: z.ZodEnum<{
758
+ inbound: "inbound";
759
+ outbound: "outbound";
760
+ }>;
761
+ disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
762
+ duration: z.ZodNullable<z.ZodNumber>;
763
+ localCountryIso: z.ZodOptional<z.ZodNullable<z.ZodString>>;
764
+ localPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
765
+ localPhoneFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
766
+ note: z.ZodNullable<z.ZodString>;
767
+ noteHtml: z.ZodNullable<z.ZodString>;
768
+ outcomeId: z.ZodNullable<z.ZodString>;
769
+ phone: z.ZodNullable<z.ZodString>;
770
+ recordingUrl: z.ZodNullable<z.ZodURL>;
771
+ remoteCountryIso: z.ZodOptional<z.ZodNullable<z.ZodString>>;
772
+ remotePhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
773
+ remotePhoneFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
774
+ source: z.ZodEnum<{
775
+ "Close.io": "Close.io";
776
+ External: "External";
777
+ }>;
778
+ status: z.ZodEnum<{
779
+ completed: "completed";
780
+ created: "created";
781
+ busy: "busy";
782
+ cancel: "cancel";
783
+ failed: "failed";
784
+ "in-progress": "in-progress";
785
+ "no-answer": "no-answer";
786
+ timeout: "timeout";
787
+ }>;
788
+ type: z.ZodLiteral<"Call">;
789
+ userId: z.ZodNullable<z.ZodString>;
790
+ voicemailDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
791
+ voicemailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
792
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
793
+ createdBy: z.ZodNullable<z.ZodString>;
794
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
795
+ id: z.ZodString;
796
+ leadId: z.ZodNullable<z.ZodString>;
797
+ organizationId: z.ZodString;
798
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
799
+ updatedBy: z.ZodNullable<z.ZodString>;
800
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
801
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
802
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
803
+ }, z.core.$catchall<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>>;
804
+ export declare const CLOSE_EMAIL_SCHEMA: z.ZodObject<{
805
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
806
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
807
+ contentType: z.ZodNullable<z.ZodString>;
808
+ filename: z.ZodNullable<z.ZodString>;
809
+ size: z.ZodNullable<z.ZodNumber>;
810
+ thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
811
+ url: z.ZodURL;
812
+ }, z.core.$strip>>>>;
813
+ bcc: z.ZodPrefault<z.ZodArray<z.ZodString>>;
814
+ bodyHtml: z.ZodNullable<z.ZodString>;
815
+ bodyText: z.ZodNullable<z.ZodString>;
816
+ bulkEmailActionId: z.ZodNullable<z.ZodString>;
817
+ cc: z.ZodPrefault<z.ZodArray<z.ZodString>>;
818
+ contactId: z.ZodNullable<z.ZodString>;
819
+ dateScheduled: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
820
+ dateSent: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
821
+ direction: z.ZodNullable<z.ZodEnum<{
822
+ incoming: "incoming";
823
+ outgoing: "outgoing";
824
+ }>>;
825
+ emailAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
826
+ followupSequenceAddCcBcc: z.ZodBoolean;
827
+ followupSequenceDelay: z.ZodNullable<z.ZodNumber>;
828
+ hasReply: z.ZodBoolean;
829
+ inReplyToId: z.ZodNullable<z.ZodString>;
830
+ messageIds: z.ZodPrefault<z.ZodArray<z.ZodString>>;
831
+ needSmtpCredentials: z.ZodBoolean;
832
+ opens: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
833
+ ipAddress: z.ZodNullable<z.ZodString>;
834
+ openedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
835
+ openedBy: z.ZodNullable<z.ZodString>;
836
+ userAgent: z.ZodNullable<z.ZodString>;
837
+ }, z.core.$strip>>>>;
838
+ opensSummary: z.ZodNullable<z.ZodString>;
839
+ references: z.ZodPrefault<z.ZodArray<z.ZodString>>;
840
+ sendAsId: z.ZodNullable<z.ZodString>;
841
+ sendAttempts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>>>>;
842
+ sender: z.ZodNullable<z.ZodString>;
843
+ sequenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
844
+ sequenceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
845
+ sequenceSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
846
+ status: z.ZodEnum<{
847
+ error: "error";
848
+ inbox: "inbox";
849
+ draft: "draft";
850
+ outbox: "outbox";
851
+ scheduled: "scheduled";
852
+ sent: "sent";
853
+ }>;
854
+ subject: z.ZodNullable<z.ZodString>;
855
+ templateId: z.ZodNullable<z.ZodString>;
856
+ threadId: z.ZodNullable<z.ZodString>;
857
+ to: z.ZodPrefault<z.ZodArray<z.ZodString>>;
858
+ type: z.ZodLiteral<"Email">;
859
+ userId: z.ZodNullable<z.ZodString>;
860
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
861
+ createdBy: z.ZodNullable<z.ZodString>;
862
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
863
+ id: z.ZodString;
864
+ leadId: z.ZodNullable<z.ZodString>;
865
+ organizationId: z.ZodString;
866
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
867
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
868
+ updatedBy: z.ZodNullable<z.ZodString>;
869
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
870
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
871
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
872
+ }, z.core.$catchall<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>>;
873
+ export declare const CLOSE_SMS_SCHEMA: z.ZodObject<{
874
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
875
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
876
+ contentType: z.ZodNullable<z.ZodString>;
877
+ filename: z.ZodNullable<z.ZodString>;
878
+ size: z.ZodNullable<z.ZodNumber>;
879
+ thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
880
+ url: z.ZodURL;
881
+ }, z.core.$strip>>>>;
882
+ contactId: z.ZodNullable<z.ZodString>;
883
+ cost: z.ZodNullable<z.ZodString>;
884
+ dateScheduled: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
885
+ dateSent: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
886
+ direction: z.ZodEnum<{
887
+ inbound: "inbound";
888
+ outbound: "outbound";
889
+ }>;
890
+ errorMessage: z.ZodNullable<z.ZodString>;
891
+ localCountryIso: z.ZodNullable<z.ZodString>;
892
+ localPhone: z.ZodNullable<z.ZodString>;
893
+ localPhoneFormatted: z.ZodNullable<z.ZodString>;
894
+ remoteCountryIso: z.ZodNullable<z.ZodString>;
895
+ remotePhone: z.ZodNullable<z.ZodString>;
896
+ remotePhoneFormatted: z.ZodNullable<z.ZodString>;
897
+ source: z.ZodEnum<{
898
+ "Close.io": "Close.io";
899
+ External: "External";
900
+ }>;
901
+ status: z.ZodEnum<{
902
+ error: "error";
903
+ inbox: "inbox";
904
+ draft: "draft";
905
+ outbox: "outbox";
906
+ scheduled: "scheduled";
907
+ sent: "sent";
908
+ }>;
909
+ templateId: z.ZodNullable<z.ZodString>;
910
+ text: z.ZodNullable<z.ZodString>;
911
+ type: z.ZodLiteral<"SMS">;
912
+ userId: z.ZodNullable<z.ZodString>;
913
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
914
+ createdBy: z.ZodNullable<z.ZodString>;
915
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
916
+ id: z.ZodString;
917
+ leadId: z.ZodNullable<z.ZodString>;
918
+ organizationId: z.ZodString;
919
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
920
+ updatedBy: z.ZodNullable<z.ZodString>;
921
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
922
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
923
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
924
+ }, z.core.$catchall<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>>;
925
+ export declare const CLOSE_MEETING_SCHEMA: z.ZodObject<{
926
+ actualDuration: z.ZodNullable<z.ZodNumber>;
927
+ attachedCallIds: z.ZodPrefault<z.ZodArray<z.ZodString>>;
928
+ attendees: z.ZodPrefault<z.ZodArray<z.ZodCustom<Record<string, import("@automate.ax/codec").Encodable>, Record<string, import("@automate.ax/codec").Encodable>>>>;
929
+ calendarEventLink: z.ZodNullable<z.ZodURL>;
930
+ calendarEventUids: z.ZodPrefault<z.ZodArray<z.ZodString>>;
931
+ conferenceLinks: z.ZodPrefault<z.ZodArray<z.ZodCustom<Record<string, import("@automate.ax/codec").Encodable>, Record<string, import("@automate.ax/codec").Encodable>>>>;
932
+ connectedAccountId: z.ZodNullable<z.ZodString>;
933
+ duration: z.ZodNumber;
934
+ endsAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
935
+ integrations: z.ZodPrefault<z.ZodArray<z.ZodCustom<Record<string, import("@automate.ax/codec").Encodable>, Record<string, import("@automate.ax/codec").Encodable>>>>;
936
+ isRecurring: z.ZodBoolean;
937
+ location: z.ZodNullable<z.ZodString>;
938
+ note: z.ZodNullable<z.ZodString>;
939
+ outcomeId: z.ZodNullable<z.ZodString>;
940
+ providerCalendarEventId: z.ZodNullable<z.ZodString>;
941
+ providerCalendarIds: z.ZodPrefault<z.ZodArray<z.ZodString>>;
942
+ providerCalendarType: z.ZodNullable<z.ZodEnum<{
943
+ google: "google";
944
+ microsoft: "microsoft";
945
+ }>>;
946
+ source: z.ZodEnum<{
947
+ manual: "manual";
948
+ calendar: "calendar";
949
+ }>;
950
+ startsAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
951
+ status: z.ZodNullable<z.ZodEnum<{
952
+ completed: "completed";
953
+ "in-progress": "in-progress";
954
+ upcoming: "upcoming";
955
+ canceled: "canceled";
956
+ "declined-by-org": "declined-by-org";
957
+ "declined-by-lead": "declined-by-lead";
958
+ }>>;
959
+ summary: z.ZodNullable<z.ZodObject<{
960
+ html: z.ZodString;
961
+ text: z.ZodString;
962
+ }, z.core.$strip>>;
963
+ title: z.ZodNullable<z.ZodString>;
964
+ type: z.ZodLiteral<"Meeting">;
965
+ activityAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
966
+ contactId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
967
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
968
+ createdBy: z.ZodNullable<z.ZodString>;
969
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
970
+ id: z.ZodString;
971
+ leadId: z.ZodNullable<z.ZodString>;
972
+ organizationId: z.ZodString;
973
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
974
+ updatedBy: z.ZodNullable<z.ZodString>;
975
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
976
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
977
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
978
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
979
+ }, z.core.$catchall<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>>;
980
+ export declare const CLOSE_ACTIVITY_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
981
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
982
+ callMethod: z.ZodOptional<z.ZodNullable<z.ZodString>>;
983
+ contactId: z.ZodNullable<z.ZodString>;
984
+ cost: z.ZodOptional<z.ZodNullable<z.ZodString>>;
985
+ dialerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
986
+ dialerSavedSearchId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
987
+ direction: z.ZodEnum<{
988
+ inbound: "inbound";
989
+ outbound: "outbound";
990
+ }>;
991
+ disposition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
992
+ duration: z.ZodNullable<z.ZodNumber>;
993
+ localCountryIso: z.ZodOptional<z.ZodNullable<z.ZodString>>;
994
+ localPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
995
+ localPhoneFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
996
+ note: z.ZodNullable<z.ZodString>;
997
+ noteHtml: z.ZodNullable<z.ZodString>;
998
+ outcomeId: z.ZodNullable<z.ZodString>;
999
+ phone: z.ZodNullable<z.ZodString>;
1000
+ recordingUrl: z.ZodNullable<z.ZodURL>;
1001
+ remoteCountryIso: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1002
+ remotePhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1003
+ remotePhoneFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1004
+ source: z.ZodEnum<{
1005
+ "Close.io": "Close.io";
1006
+ External: "External";
1007
+ }>;
1008
+ status: z.ZodEnum<{
1009
+ completed: "completed";
1010
+ created: "created";
1011
+ busy: "busy";
1012
+ cancel: "cancel";
1013
+ failed: "failed";
1014
+ "in-progress": "in-progress";
1015
+ "no-answer": "no-answer";
1016
+ timeout: "timeout";
1017
+ }>;
1018
+ type: z.ZodLiteral<"Call">;
1019
+ userId: z.ZodNullable<z.ZodString>;
1020
+ voicemailDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1021
+ voicemailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
1022
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1023
+ createdBy: z.ZodNullable<z.ZodString>;
1024
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1025
+ id: z.ZodString;
1026
+ leadId: z.ZodNullable<z.ZodString>;
1027
+ organizationId: z.ZodString;
1028
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1029
+ updatedBy: z.ZodNullable<z.ZodString>;
1030
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1031
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1032
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1033
+ }, z.core.$catchall<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>>, z.ZodObject<{
1034
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1035
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1036
+ contentType: z.ZodNullable<z.ZodString>;
1037
+ filename: z.ZodNullable<z.ZodString>;
1038
+ size: z.ZodNullable<z.ZodNumber>;
1039
+ thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
1040
+ url: z.ZodURL;
1041
+ }, z.core.$strip>>>>;
1042
+ bcc: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1043
+ bodyHtml: z.ZodNullable<z.ZodString>;
1044
+ bodyText: z.ZodNullable<z.ZodString>;
1045
+ cc: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1046
+ contactId: z.ZodNullable<z.ZodString>;
1047
+ dateScheduled: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1048
+ direction: z.ZodNullable<z.ZodEnum<{
1049
+ incoming: "incoming";
1050
+ outgoing: "outgoing";
1051
+ }>>;
1052
+ emailAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1053
+ followupSequenceAddCcBcc: z.ZodBoolean;
1054
+ followupSequenceDelay: z.ZodNullable<z.ZodNumber>;
1055
+ messageIds: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1056
+ opens: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1057
+ ipAddress: z.ZodNullable<z.ZodString>;
1058
+ openedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1059
+ openedBy: z.ZodNullable<z.ZodString>;
1060
+ userAgent: z.ZodNullable<z.ZodString>;
1061
+ }, z.core.$strip>>>>;
1062
+ references: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1063
+ sendAttempts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>>>>;
1064
+ sender: z.ZodNullable<z.ZodString>;
1065
+ sequenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1066
+ sequenceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1067
+ sequenceSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1068
+ status: z.ZodEnum<{
1069
+ error: "error";
1070
+ inbox: "inbox";
1071
+ draft: "draft";
1072
+ outbox: "outbox";
1073
+ scheduled: "scheduled";
1074
+ sent: "sent";
1075
+ }>;
1076
+ subject: z.ZodNullable<z.ZodString>;
1077
+ templateId: z.ZodNullable<z.ZodString>;
1078
+ to: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1079
+ type: z.ZodLiteral<"Email">;
1080
+ userId: z.ZodNullable<z.ZodString>;
1081
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1082
+ createdBy: z.ZodNullable<z.ZodString>;
1083
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1084
+ id: z.ZodString;
1085
+ leadId: z.ZodNullable<z.ZodString>;
1086
+ organizationId: z.ZodString;
1087
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1088
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1089
+ updatedBy: z.ZodNullable<z.ZodString>;
1090
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1091
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1092
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1093
+ bulkEmailActionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1094
+ dateSent: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
1095
+ hasReply: z.ZodOptional<z.ZodBoolean>;
1096
+ inReplyToId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1097
+ needSmtpCredentials: z.ZodOptional<z.ZodBoolean>;
1098
+ opensSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1099
+ sendAsId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1100
+ threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1101
+ }, z.core.$catchall<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>>, z.ZodObject<{
1102
+ actualDuration: z.ZodNullable<z.ZodNumber>;
1103
+ attachedCallIds: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1104
+ attendees: z.ZodPrefault<z.ZodArray<z.ZodCustom<Record<string, import("@automate.ax/codec").Encodable>, Record<string, import("@automate.ax/codec").Encodable>>>>;
1105
+ calendarEventLink: z.ZodNullable<z.ZodURL>;
1106
+ calendarEventUids: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1107
+ conferenceLinks: z.ZodPrefault<z.ZodArray<z.ZodCustom<Record<string, import("@automate.ax/codec").Encodable>, Record<string, import("@automate.ax/codec").Encodable>>>>;
1108
+ connectedAccountId: z.ZodNullable<z.ZodString>;
1109
+ duration: z.ZodNumber;
1110
+ endsAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1111
+ integrations: z.ZodPrefault<z.ZodArray<z.ZodCustom<Record<string, import("@automate.ax/codec").Encodable>, Record<string, import("@automate.ax/codec").Encodable>>>>;
1112
+ isRecurring: z.ZodBoolean;
1113
+ location: z.ZodNullable<z.ZodString>;
1114
+ note: z.ZodNullable<z.ZodString>;
1115
+ outcomeId: z.ZodNullable<z.ZodString>;
1116
+ providerCalendarEventId: z.ZodNullable<z.ZodString>;
1117
+ providerCalendarIds: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1118
+ providerCalendarType: z.ZodNullable<z.ZodEnum<{
1119
+ google: "google";
1120
+ microsoft: "microsoft";
1121
+ }>>;
1122
+ source: z.ZodEnum<{
1123
+ manual: "manual";
1124
+ calendar: "calendar";
1125
+ }>;
1126
+ startsAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1127
+ status: z.ZodNullable<z.ZodEnum<{
1128
+ completed: "completed";
1129
+ "in-progress": "in-progress";
1130
+ upcoming: "upcoming";
1131
+ canceled: "canceled";
1132
+ "declined-by-org": "declined-by-org";
1133
+ "declined-by-lead": "declined-by-lead";
1134
+ }>>;
1135
+ summary: z.ZodNullable<z.ZodObject<{
1136
+ html: z.ZodString;
1137
+ text: z.ZodString;
1138
+ }, z.core.$strip>>;
1139
+ title: z.ZodNullable<z.ZodString>;
1140
+ type: z.ZodLiteral<"Meeting">;
1141
+ activityAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
1142
+ contactId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1143
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1144
+ createdBy: z.ZodNullable<z.ZodString>;
1145
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1146
+ id: z.ZodString;
1147
+ leadId: z.ZodNullable<z.ZodString>;
1148
+ organizationId: z.ZodString;
1149
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1150
+ updatedBy: z.ZodNullable<z.ZodString>;
1151
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1152
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1153
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1154
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1155
+ }, z.core.$catchall<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>>, z.ZodObject<{
1156
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1157
+ contactId: z.ZodNullable<z.ZodString>;
1158
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1159
+ createdBy: z.ZodNullable<z.ZodString>;
1160
+ id: z.ZodString;
1161
+ leadId: z.ZodNullable<z.ZodString>;
1162
+ note: z.ZodString;
1163
+ noteMentions: z.ZodArray<z.ZodString>;
1164
+ organizationId: z.ZodString;
1165
+ type: z.ZodLiteral<"Note">;
1166
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1167
+ updatedBy: z.ZodNullable<z.ZodString>;
1168
+ userId: z.ZodNullable<z.ZodString>;
1169
+ users: z.ZodArray<z.ZodString>;
1170
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1171
+ contentType: z.ZodNullable<z.ZodString>;
1172
+ filename: z.ZodNullable<z.ZodString>;
1173
+ size: z.ZodNullable<z.ZodNumber>;
1174
+ thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
1175
+ url: z.ZodURL;
1176
+ }, z.core.$strip>>>;
1177
+ noteHtml: z.ZodOptional<z.ZodString>;
1178
+ pinned: z.ZodOptional<z.ZodBoolean>;
1179
+ pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
1180
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1181
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1182
+ }, z.core.$strip>, z.ZodObject<{
1183
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1184
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1185
+ contentType: z.ZodNullable<z.ZodString>;
1186
+ filename: z.ZodNullable<z.ZodString>;
1187
+ size: z.ZodNullable<z.ZodNumber>;
1188
+ thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
1189
+ url: z.ZodURL;
1190
+ }, z.core.$strip>>>>;
1191
+ contactId: z.ZodNullable<z.ZodString>;
1192
+ cost: z.ZodNullable<z.ZodString>;
1193
+ dateScheduled: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1194
+ dateSent: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1195
+ direction: z.ZodEnum<{
1196
+ inbound: "inbound";
1197
+ outbound: "outbound";
1198
+ }>;
1199
+ errorMessage: z.ZodNullable<z.ZodString>;
1200
+ localCountryIso: z.ZodNullable<z.ZodString>;
1201
+ localPhone: z.ZodNullable<z.ZodString>;
1202
+ localPhoneFormatted: z.ZodNullable<z.ZodString>;
1203
+ remoteCountryIso: z.ZodNullable<z.ZodString>;
1204
+ remotePhone: z.ZodNullable<z.ZodString>;
1205
+ remotePhoneFormatted: z.ZodNullable<z.ZodString>;
1206
+ source: z.ZodEnum<{
1207
+ "Close.io": "Close.io";
1208
+ External: "External";
1209
+ }>;
1210
+ status: z.ZodEnum<{
1211
+ error: "error";
1212
+ inbox: "inbox";
1213
+ draft: "draft";
1214
+ outbox: "outbox";
1215
+ scheduled: "scheduled";
1216
+ sent: "sent";
1217
+ }>;
1218
+ templateId: z.ZodNullable<z.ZodString>;
1219
+ text: z.ZodNullable<z.ZodString>;
1220
+ type: z.ZodLiteral<"SMS">;
1221
+ userId: z.ZodNullable<z.ZodString>;
1222
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1223
+ createdBy: z.ZodNullable<z.ZodString>;
1224
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1225
+ id: z.ZodString;
1226
+ leadId: z.ZodNullable<z.ZodString>;
1227
+ organizationId: z.ZodString;
1228
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1229
+ updatedBy: z.ZodNullable<z.ZodString>;
1230
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1231
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1232
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1233
+ }, z.core.$catchall<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>>, z.ZodObject<{
1234
+ source: z.ZodNullable<z.ZodEnum<{
1235
+ email: "email";
1236
+ ui: "ui";
1237
+ api: "api";
1238
+ import: "import";
1239
+ clipper: "clipper";
1240
+ suggestion: "suggestion";
1241
+ "segment-integration": "segment-integration";
1242
+ "customerio-integration": "customerio-integration";
1243
+ "calendly-integration": "calendly-integration";
1244
+ ai: "ai";
1245
+ whatsapp: "whatsapp";
1246
+ webform: "webform";
1247
+ }>>;
1248
+ type: z.ZodLiteral<"Created">;
1249
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1250
+ contactId: z.ZodNullable<z.ZodString>;
1251
+ userId: z.ZodNullable<z.ZodString>;
1252
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1253
+ createdBy: z.ZodNullable<z.ZodString>;
1254
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1255
+ id: z.ZodString;
1256
+ leadId: z.ZodNullable<z.ZodString>;
1257
+ organizationId: z.ZodString;
1258
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1259
+ updatedBy: z.ZodNullable<z.ZodString>;
1260
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1261
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1262
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1263
+ importId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1264
+ }, z.core.$strip>, z.ZodObject<{
1265
+ commentSummary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1266
+ commentCount: z.ZodNumber;
1267
+ threadId: z.ZodString;
1268
+ }, z.core.$strip>>>;
1269
+ customActivityTypeId: z.ZodString;
1270
+ customFields: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1271
+ lastPublishedAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1272
+ mentions: z.ZodArray<z.ZodString>;
1273
+ mentionsUpdatedAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1274
+ pinned: z.ZodBoolean;
1275
+ pinnedAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1276
+ source: z.ZodNullable<z.ZodEnum<{
1277
+ email: "email";
1278
+ ui: "ui";
1279
+ api: "api";
1280
+ import: "import";
1281
+ clipper: "clipper";
1282
+ suggestion: "suggestion";
1283
+ "segment-integration": "segment-integration";
1284
+ "customerio-integration": "customerio-integration";
1285
+ "calendly-integration": "calendly-integration";
1286
+ ai: "ai";
1287
+ whatsapp: "whatsapp";
1288
+ webform: "webform";
1289
+ }>>;
1290
+ status: z.ZodEnum<{
1291
+ draft: "draft";
1292
+ published: "published";
1293
+ }>;
1294
+ type: z.ZodLiteral<"CustomActivity">;
1295
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1296
+ contactId: z.ZodNullable<z.ZodString>;
1297
+ userId: z.ZodNullable<z.ZodString>;
1298
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1299
+ createdBy: z.ZodNullable<z.ZodString>;
1300
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1301
+ id: z.ZodString;
1302
+ leadId: z.ZodNullable<z.ZodString>;
1303
+ organizationId: z.ZodString;
1304
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1305
+ updatedBy: z.ZodNullable<z.ZodString>;
1306
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1307
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1308
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1309
+ }, z.core.$catchall<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>>, z.ZodObject<{
1310
+ emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
1311
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1312
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1313
+ contentType: z.ZodNullable<z.ZodString>;
1314
+ filename: z.ZodNullable<z.ZodString>;
1315
+ size: z.ZodNullable<z.ZodNumber>;
1316
+ thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
1317
+ url: z.ZodURL;
1318
+ }, z.core.$strip>>>>;
1319
+ bcc: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1320
+ bulkEmailActionId: z.ZodNullable<z.ZodString>;
1321
+ cc: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1322
+ contactId: z.ZodNullable<z.ZodString>;
1323
+ dateScheduled: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1324
+ dateSent: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1325
+ direction: z.ZodNullable<z.ZodEnum<{
1326
+ incoming: "incoming";
1327
+ outgoing: "outgoing";
1328
+ }>>;
1329
+ emailAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1330
+ followupSequenceAddCcBcc: z.ZodBoolean;
1331
+ followupSequenceDelay: z.ZodNullable<z.ZodNumber>;
1332
+ hasReply: z.ZodBoolean;
1333
+ inReplyToId: z.ZodNullable<z.ZodString>;
1334
+ messageIds: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1335
+ needSmtpCredentials: z.ZodBoolean;
1336
+ opens: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1337
+ ipAddress: z.ZodNullable<z.ZodString>;
1338
+ openedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1339
+ openedBy: z.ZodNullable<z.ZodString>;
1340
+ userAgent: z.ZodNullable<z.ZodString>;
1341
+ }, z.core.$strip>>>>;
1342
+ opensSummary: z.ZodNullable<z.ZodString>;
1343
+ references: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1344
+ sendAsId: z.ZodNullable<z.ZodString>;
1345
+ sendAttempts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>>>>;
1346
+ sender: z.ZodNullable<z.ZodString>;
1347
+ sequenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1348
+ sequenceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1349
+ sequenceSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1350
+ status: z.ZodEnum<{
1351
+ error: "error";
1352
+ inbox: "inbox";
1353
+ draft: "draft";
1354
+ outbox: "outbox";
1355
+ scheduled: "scheduled";
1356
+ sent: "sent";
1357
+ }>;
1358
+ subject: z.ZodNullable<z.ZodString>;
1359
+ templateId: z.ZodNullable<z.ZodString>;
1360
+ threadId: z.ZodNullable<z.ZodString>;
1361
+ to: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1362
+ type: z.ZodLiteral<"Email">;
1363
+ userId: z.ZodNullable<z.ZodString>;
1364
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1365
+ createdBy: z.ZodNullable<z.ZodString>;
1366
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1367
+ id: z.ZodString;
1368
+ leadId: z.ZodNullable<z.ZodString>;
1369
+ organizationId: z.ZodString;
1370
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1371
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1372
+ updatedBy: z.ZodNullable<z.ZodString>;
1373
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1374
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1375
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1376
+ bodyHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1377
+ bodyText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1378
+ }, z.core.$catchall<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>>>>;
1379
+ importance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1380
+ reason: z.ZodEnum<{
1381
+ manual: "manual";
1382
+ "contains-manual-message": "contains-manual-message";
1383
+ "most-recent-communication": "most-recent-communication";
1384
+ "has-response": "has-response";
1385
+ whitelisted: "whitelisted";
1386
+ "by-default": "by-default";
1387
+ "unset-initial-default": "unset-initial-default";
1388
+ }>;
1389
+ type: z.ZodLiteral<"important">;
1390
+ }, z.core.$strip>, z.ZodObject<{
1391
+ reason: z.ZodEnum<{
1392
+ manual: "manual";
1393
+ "by-default": "by-default";
1394
+ "scheduling-emails": "scheduling-emails";
1395
+ "automated-outbound": "automated-outbound";
1396
+ "marketing-or-transactional": "marketing-or-transactional";
1397
+ }>;
1398
+ type: z.ZodLiteral<"not_important">;
1399
+ }, z.core.$strip>], "type">>;
1400
+ latestEmails: z.ZodOptional<z.ZodArray<z.ZodObject<{
1401
+ bcc: z.ZodArray<z.ZodString>;
1402
+ bodyPreview: z.ZodNullable<z.ZodString>;
1403
+ cc: z.ZodArray<z.ZodString>;
1404
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1405
+ dateSent: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1406
+ direction: z.ZodEnum<{
1407
+ incoming: "incoming";
1408
+ outgoing: "outgoing";
1409
+ }>;
1410
+ envelope: z.ZodNullable<z.ZodObject<{
1411
+ bcc: z.ZodArray<z.ZodObject<{
1412
+ email: z.ZodString;
1413
+ name: z.ZodString;
1414
+ }, z.core.$strip>>;
1415
+ cc: z.ZodArray<z.ZodObject<{
1416
+ email: z.ZodString;
1417
+ name: z.ZodString;
1418
+ }, z.core.$strip>>;
1419
+ date: z.ZodNullable<z.ZodString>;
1420
+ from: z.ZodArray<z.ZodObject<{
1421
+ email: z.ZodString;
1422
+ name: z.ZodString;
1423
+ }, z.core.$strip>>;
1424
+ inReplyTo: z.ZodNullable<z.ZodString>;
1425
+ isAutoreply: z.ZodBoolean;
1426
+ messageId: z.ZodNullable<z.ZodString>;
1427
+ replyTo: z.ZodArray<z.ZodObject<{
1428
+ email: z.ZodString;
1429
+ name: z.ZodString;
1430
+ }, z.core.$strip>>;
1431
+ sender: z.ZodArray<z.ZodObject<{
1432
+ email: z.ZodString;
1433
+ name: z.ZodString;
1434
+ }, z.core.$strip>>;
1435
+ subject: z.ZodNullable<z.ZodString>;
1436
+ to: z.ZodArray<z.ZodObject<{
1437
+ email: z.ZodString;
1438
+ name: z.ZodString;
1439
+ }, z.core.$strip>>;
1440
+ }, z.core.$strip>>;
1441
+ hasAttachments: z.ZodNullable<z.ZodBoolean>;
1442
+ id: z.ZodNullable<z.ZodString>;
1443
+ opensSummary: z.ZodNullable<z.ZodString>;
1444
+ sendAsId: z.ZodNullable<z.ZodString>;
1445
+ sender: z.ZodNullable<z.ZodString>;
1446
+ status: z.ZodEnum<{
1447
+ error: "error";
1448
+ inbox: "inbox";
1449
+ draft: "draft";
1450
+ outbox: "outbox";
1451
+ scheduled: "scheduled";
1452
+ sent: "sent";
1453
+ }>;
1454
+ subject: z.ZodNullable<z.ZodString>;
1455
+ to: z.ZodArray<z.ZodString>;
1456
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1457
+ userId: z.ZodNullable<z.ZodString>;
1458
+ }, z.core.$strip>>>;
1459
+ latestNormalizedSubject: z.ZodNullable<z.ZodString>;
1460
+ nEmails: z.ZodNullable<z.ZodNumber>;
1461
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1462
+ email: z.ZodString;
1463
+ name: z.ZodString;
1464
+ }, z.core.$strip>>>;
1465
+ summary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1466
+ expiredAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1467
+ feedback: z.ZodOptional<z.ZodObject<{
1468
+ detail: z.ZodNullable<z.ZodString>;
1469
+ givenAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1470
+ rating: z.ZodEnum<{
1471
+ positive: "positive";
1472
+ negative: "negative";
1473
+ }>;
1474
+ }, z.core.$strip>>;
1475
+ generatedAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1476
+ status: z.ZodEnum<{
1477
+ success: "success";
1478
+ pending: "pending";
1479
+ failure: "failure";
1480
+ expired: "expired";
1481
+ }>;
1482
+ summaryHtml: z.ZodNullable<z.ZodString>;
1483
+ summaryText: z.ZodNullable<z.ZodString>;
1484
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1485
+ }, z.core.$strip>>>;
1486
+ type: z.ZodLiteral<"EmailThread">;
1487
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1488
+ contactId: z.ZodNullable<z.ZodString>;
1489
+ userId: z.ZodNullable<z.ZodString>;
1490
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1491
+ createdBy: z.ZodNullable<z.ZodString>;
1492
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1493
+ id: z.ZodString;
1494
+ leadId: z.ZodNullable<z.ZodString>;
1495
+ organizationId: z.ZodString;
1496
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1497
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1498
+ updatedBy: z.ZodNullable<z.ZodString>;
1499
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1500
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1501
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1502
+ }, z.core.$strip>, z.ZodObject<{
1503
+ formConfigurationId: z.ZodString;
1504
+ formId: z.ZodString;
1505
+ formName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1506
+ ipAddress: z.ZodNullable<z.ZodString>;
1507
+ origin: z.ZodNullable<z.ZodString>;
1508
+ sourceUrl: z.ZodNullable<z.ZodString>;
1509
+ sourceUrlNormalized: z.ZodNullable<z.ZodString>;
1510
+ type: z.ZodLiteral<"FormSubmission">;
1511
+ values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>;
1512
+ valuesByName: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>;
1513
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1514
+ contactId: z.ZodNullable<z.ZodString>;
1515
+ userId: z.ZodNullable<z.ZodString>;
1516
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1517
+ createdBy: z.ZodNullable<z.ZodString>;
1518
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1519
+ id: z.ZodString;
1520
+ leadId: z.ZodNullable<z.ZodString>;
1521
+ organizationId: z.ZodString;
1522
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1523
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1524
+ updatedBy: z.ZodNullable<z.ZodString>;
1525
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1526
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1527
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1528
+ }, z.core.$strip>, z.ZodObject<{
1529
+ importId: z.ZodNullable<z.ZodString>;
1530
+ reverted: z.ZodBoolean;
1531
+ type: z.ZodLiteral<"ImportUpdate">;
1532
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1533
+ contactId: z.ZodNullable<z.ZodString>;
1534
+ userId: z.ZodNullable<z.ZodString>;
1535
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1536
+ createdBy: z.ZodNullable<z.ZodString>;
1537
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1538
+ id: z.ZodString;
1539
+ leadId: z.ZodNullable<z.ZodString>;
1540
+ organizationId: z.ZodString;
1541
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1542
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1543
+ updatedBy: z.ZodNullable<z.ZodString>;
1544
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1545
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1546
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1547
+ }, z.core.$strip>, z.ZodObject<{
1548
+ destinationDisplayName: z.ZodNullable<z.ZodString>;
1549
+ destinationLeadId: z.ZodString;
1550
+ errorMessage: z.ZodNullable<z.ZodString>;
1551
+ mergeStatus: z.ZodEnum<{
1552
+ completed: "completed";
1553
+ pending: "pending";
1554
+ in_progress: "in_progress";
1555
+ errored: "errored";
1556
+ }>;
1557
+ sourceDisplayName: z.ZodNullable<z.ZodString>;
1558
+ sourceLeadId: z.ZodString;
1559
+ type: z.ZodLiteral<"LeadMerge">;
1560
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1561
+ contactId: z.ZodNullable<z.ZodString>;
1562
+ userId: z.ZodNullable<z.ZodString>;
1563
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1564
+ createdBy: z.ZodNullable<z.ZodString>;
1565
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1566
+ id: z.ZodString;
1567
+ leadId: z.ZodNullable<z.ZodString>;
1568
+ organizationId: z.ZodString;
1569
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1570
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1571
+ updatedBy: z.ZodNullable<z.ZodString>;
1572
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1573
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1574
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1575
+ }, z.core.$strip>, z.ZodObject<{
1576
+ newStatusId: z.ZodString;
1577
+ newStatusLabel: z.ZodOptional<z.ZodString>;
1578
+ oldStatusId: z.ZodString;
1579
+ oldStatusLabel: z.ZodOptional<z.ZodString>;
1580
+ pausedSubscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1581
+ contactId: z.ZodNullable<z.ZodString>;
1582
+ contactName: z.ZodNullable<z.ZodString>;
1583
+ id: z.ZodString;
1584
+ sequenceId: z.ZodString;
1585
+ sequenceName: z.ZodString;
1586
+ sequenceStatus: z.ZodString;
1587
+ }, z.core.$strip>>>;
1588
+ type: z.ZodLiteral<"LeadStatusChange">;
1589
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1590
+ contactId: z.ZodNullable<z.ZodString>;
1591
+ userId: z.ZodNullable<z.ZodString>;
1592
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1593
+ createdBy: z.ZodNullable<z.ZodString>;
1594
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1595
+ id: z.ZodString;
1596
+ leadId: z.ZodNullable<z.ZodString>;
1597
+ organizationId: z.ZodString;
1598
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1599
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1600
+ updatedBy: z.ZodNullable<z.ZodString>;
1601
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1602
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1603
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1604
+ }, z.core.$strip>, z.ZodObject<{
1605
+ newPipelineId: z.ZodOptional<z.ZodString>;
1606
+ newPipelineName: z.ZodOptional<z.ZodString>;
1607
+ newStatusId: z.ZodString;
1608
+ newStatusLabel: z.ZodOptional<z.ZodString>;
1609
+ newStatusType: z.ZodOptional<z.ZodEnum<{
1610
+ active: "active";
1611
+ lost: "lost";
1612
+ won: "won";
1613
+ }>>;
1614
+ oldPipelineId: z.ZodOptional<z.ZodString>;
1615
+ oldPipelineName: z.ZodOptional<z.ZodString>;
1616
+ oldStatusId: z.ZodString;
1617
+ oldStatusLabel: z.ZodOptional<z.ZodString>;
1618
+ oldStatusType: z.ZodOptional<z.ZodEnum<{
1619
+ active: "active";
1620
+ lost: "lost";
1621
+ won: "won";
1622
+ }>>;
1623
+ opportunityConfidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1624
+ opportunityDateWon: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>>;
1625
+ opportunityId: z.ZodNullable<z.ZodString>;
1626
+ opportunityValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1627
+ opportunityValueCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1628
+ opportunityValueFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1629
+ opportunityValuePeriod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1630
+ annual: "annual";
1631
+ monthly: "monthly";
1632
+ one_time: "one_time";
1633
+ }>>>;
1634
+ type: z.ZodLiteral<"OpportunityStatusChange">;
1635
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1636
+ contactId: z.ZodNullable<z.ZodString>;
1637
+ userId: z.ZodNullable<z.ZodString>;
1638
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1639
+ createdBy: z.ZodNullable<z.ZodString>;
1640
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1641
+ id: z.ZodString;
1642
+ leadId: z.ZodNullable<z.ZodString>;
1643
+ organizationId: z.ZodString;
1644
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1645
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1646
+ updatedBy: z.ZodNullable<z.ZodString>;
1647
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1648
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1649
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1650
+ }, z.core.$strip>, z.ZodObject<{
1651
+ commentSummary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1652
+ commentCount: z.ZodNumber;
1653
+ threadId: z.ZodString;
1654
+ }, z.core.$strip>>>;
1655
+ sequenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1656
+ sequenceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1657
+ sequenceSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1658
+ taskAssignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1659
+ taskAssignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1660
+ taskId: z.ZodNullable<z.ZodString>;
1661
+ taskText: z.ZodNullable<z.ZodString>;
1662
+ type: z.ZodLiteral<"TaskCompleted">;
1663
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1664
+ userId: z.ZodNullable<z.ZodString>;
1665
+ contactId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1666
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1667
+ createdBy: z.ZodNullable<z.ZodString>;
1668
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1669
+ id: z.ZodString;
1670
+ leadId: z.ZodNullable<z.ZodString>;
1671
+ organizationId: z.ZodString;
1672
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1673
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1674
+ updatedBy: z.ZodNullable<z.ZodString>;
1675
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1676
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1677
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1678
+ }, z.core.$strip>, z.ZodObject<{
1679
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1680
+ contentType: z.ZodNullable<z.ZodString>;
1681
+ filename: z.ZodNullable<z.ZodString>;
1682
+ size: z.ZodNullable<z.ZodNumber>;
1683
+ thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
1684
+ url: z.ZodURL;
1685
+ }, z.core.$strip>>>;
1686
+ direction: z.ZodEnum<{
1687
+ incoming: "incoming";
1688
+ outgoing: "outgoing";
1689
+ }>;
1690
+ externalWhatsappMessageId: z.ZodString;
1691
+ integrationLink: z.ZodNullable<z.ZodString>;
1692
+ integrationName: z.ZodNullable<z.ZodString>;
1693
+ localPhone: z.ZodString;
1694
+ localPhoneFormatted: z.ZodString;
1695
+ messageHtml: z.ZodString;
1696
+ messageMarkdown: z.ZodString;
1697
+ remotePhone: z.ZodString;
1698
+ remotePhoneFormatted: z.ZodString;
1699
+ responseToId: z.ZodNullable<z.ZodString>;
1700
+ sequenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1701
+ sequenceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1702
+ sequenceSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1703
+ source: z.ZodEnum<{
1704
+ email: "email";
1705
+ ui: "ui";
1706
+ api: "api";
1707
+ import: "import";
1708
+ clipper: "clipper";
1709
+ suggestion: "suggestion";
1710
+ "segment-integration": "segment-integration";
1711
+ "customerio-integration": "customerio-integration";
1712
+ "calendly-integration": "calendly-integration";
1713
+ ai: "ai";
1714
+ whatsapp: "whatsapp";
1715
+ webform: "webform";
1716
+ }>;
1717
+ text: z.ZodString;
1718
+ type: z.ZodLiteral<"WhatsAppMessage">;
1719
+ activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1720
+ contactId: z.ZodNullable<z.ZodString>;
1721
+ userId: z.ZodNullable<z.ZodString>;
1722
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1723
+ createdBy: z.ZodNullable<z.ZodString>;
1724
+ createdByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1725
+ id: z.ZodString;
1726
+ leadId: z.ZodNullable<z.ZodString>;
1727
+ organizationId: z.ZodString;
1728
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1729
+ updatedBy: z.ZodNullable<z.ZodString>;
1730
+ updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1731
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1732
+ users: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1733
+ }, z.core.$strip>], "type">;
1734
+ export declare const CLOSE_COMMENT_SCHEMA: z.ZodObject<{
1735
+ body: z.ZodString;
1736
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1737
+ createdBy: z.ZodString;
1738
+ id: z.ZodString;
1739
+ leadId: z.ZodString;
1740
+ mentions: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1741
+ organizationId: z.ZodString;
1742
+ removedAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1743
+ removedBy: z.ZodNullable<z.ZodString>;
1744
+ threadId: z.ZodString;
1745
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1746
+ updatedBy: z.ZodString;
1747
+ }, z.core.$strip>;
1748
+ export declare const CLOSE_SEQUENCE_SCHEMA: z.ZodObject<{
1749
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1750
+ createdById: z.ZodString;
1751
+ id: z.ZodString;
1752
+ name: z.ZodString;
1753
+ organizationId: z.ZodString;
1754
+ schedule: z.ZodNullable<z.ZodObject<{
1755
+ ranges: z.ZodArray<z.ZodObject<{
1756
+ end: z.ZodString;
1757
+ start: z.ZodString;
1758
+ weekday: z.ZodNumber;
1759
+ }, z.core.$strip>>;
1760
+ }, z.core.$strip>>;
1761
+ status: z.ZodString;
1762
+ steps: z.ZodArray<z.ZodObject<{
1763
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1764
+ createdById: z.ZodString;
1765
+ delay: z.ZodNumber;
1766
+ emailTemplateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1767
+ id: z.ZodString;
1768
+ required: z.ZodBoolean;
1769
+ stepAllowedDelay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1770
+ stepType: z.ZodOptional<z.ZodEnum<{
1771
+ email: "email";
1772
+ call: "call";
1773
+ }>>;
1774
+ threading: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"old_thread">>>;
1775
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1776
+ updatedById: z.ZodString;
1777
+ }, z.core.$strip>>;
1778
+ subscriptionCountsByStatus: z.ZodOptional<z.ZodObject<{
1779
+ active: z.ZodNumber;
1780
+ error: z.ZodNumber;
1781
+ finished: z.ZodNumber;
1782
+ goal: z.ZodNumber;
1783
+ paused: z.ZodNumber;
1784
+ }, z.core.$strip>>;
1785
+ timezone: z.ZodString;
1786
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1787
+ updatedById: z.ZodString;
1788
+ }, z.core.$strip>;
1789
+ export declare const CLOSE_SEQUENCE_SUBSCRIPTION_SCHEMA: z.ZodObject<{
1790
+ callsAssignedTo: z.ZodPrefault<z.ZodArray<z.ZodString>>;
1791
+ contactEmail: z.ZodNullable<z.ZodEmail>;
1792
+ contactId: z.ZodNullable<z.ZodString>;
1793
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1794
+ createdById: z.ZodString;
1795
+ id: z.ZodString;
1796
+ leadId: z.ZodString;
1797
+ organizationId: z.ZodString;
1798
+ senderAccountId: z.ZodNullable<z.ZodString>;
1799
+ senderEmail: z.ZodNullable<z.ZodEmail>;
1800
+ senderName: z.ZodNullable<z.ZodString>;
1801
+ sequenceId: z.ZodString;
1802
+ startDate: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
1803
+ status: z.ZodEnum<{
1804
+ error: "error";
1805
+ active: "active";
1806
+ finished: "finished";
1807
+ goal: "goal";
1808
+ paused: "paused";
1809
+ }>;
1810
+ statusReason: z.ZodNullable<z.ZodString>;
1811
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1812
+ updatedById: z.ZodString;
1813
+ }, z.core.$strip>;
1814
+ export declare const CLOSE_USER_SCHEMA: z.ZodPipe<z.ZodObject<{
1815
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1816
+ email: z.ZodEmail;
1817
+ firstName: z.ZodString;
1818
+ id: z.ZodString;
1819
+ image: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
1820
+ lastName: z.ZodString;
1821
+ organizationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1822
+ organizations: z.ZodPrefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1823
+ id: z.ZodString;
1824
+ }, z.core.$strip>]>>>;
1825
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1826
+ }, z.core.$strip>, z.ZodTransform<{
1827
+ organizationIds: string[];
1828
+ createdAt: Date;
1829
+ email: string;
1830
+ firstName: string;
1831
+ id: string;
1832
+ lastName: string;
1833
+ updatedAt: Date;
1834
+ image?: string | null | undefined;
1835
+ }, {
1836
+ createdAt: Date;
1837
+ email: string;
1838
+ firstName: string;
1839
+ id: string;
1840
+ lastName: string;
1841
+ organizations: (string | {
1842
+ id: string;
1843
+ })[];
1844
+ updatedAt: Date;
1845
+ image?: string | null | undefined;
1846
+ organizationIds?: string[] | undefined;
1847
+ }>>;
1848
+ export declare const CLOSE_LEAD_STATUS_SCHEMA: z.ZodObject<{
1849
+ color: z.ZodNullable<z.ZodEnum<{
1850
+ blue: "blue";
1851
+ gray: "gray";
1852
+ green: "green";
1853
+ magenta: "magenta";
1854
+ orange: "orange";
1855
+ purple: "purple";
1856
+ teal: "teal";
1857
+ yellow: "yellow";
1858
+ }>>;
1859
+ id: z.ZodString;
1860
+ label: z.ZodString;
1861
+ organizationId: z.ZodString;
1862
+ }, z.core.$strip>;
1863
+ export declare const CLOSE_OPPORTUNITY_STATUS_SCHEMA: z.ZodObject<{
1864
+ id: z.ZodString;
1865
+ label: z.ZodString;
1866
+ organizationId: z.ZodString;
1867
+ pipelineId: z.ZodOptional<z.ZodString>;
1868
+ type: z.ZodEnum<{
1869
+ active: "active";
1870
+ lost: "lost";
1871
+ won: "won";
1872
+ }>;
1873
+ }, z.core.$strip>;
1874
+ export declare const CLOSE_PIPELINE_SCHEMA: z.ZodObject<{
1875
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1876
+ createdBy: z.ZodNullable<z.ZodString>;
1877
+ id: z.ZodString;
1878
+ name: z.ZodString;
1879
+ organizationId: z.ZodString;
1880
+ statuses: z.ZodArray<z.ZodObject<{
1881
+ id: z.ZodString;
1882
+ label: z.ZodString;
1883
+ type: z.ZodEnum<{
1884
+ active: "active";
1885
+ lost: "lost";
1886
+ won: "won";
1887
+ }>;
1888
+ }, z.core.$strip>>;
1889
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
1890
+ updatedBy: z.ZodNullable<z.ZodString>;
1891
+ }, z.core.$strip>;
1892
+ /**
1893
+ * Creates a schema for a paginated Close collection response.
1894
+ *
1895
+ * @param schema - Schema for one collection item.
1896
+ */
1897
+ export declare function closePageSchema<TSchema extends z.ZodType>(schema: TSchema): z.ZodObject<{
1898
+ data: z.ZodArray<TSchema>;
1899
+ hasMore: z.ZodPrefault<z.ZodBoolean>;
1900
+ }, z.core.$strip>;