@hermeticacomms/sdk-node 0.0.0-stage → 0.4.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.
Files changed (73) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +12 -2
  3. package/dist/contracts/analytics.d.ts +405 -0
  4. package/dist/contracts/analytics.js +77 -0
  5. package/dist/contracts/auth.d.ts +363 -0
  6. package/dist/contracts/auth.js +130 -0
  7. package/dist/contracts/billing.d.ts +143 -0
  8. package/dist/contracts/billing.js +32 -0
  9. package/dist/contracts/campaigns.d.ts +915 -0
  10. package/dist/contracts/campaigns.js +276 -0
  11. package/dist/contracts/common.d.ts +57 -0
  12. package/dist/contracts/common.js +35 -0
  13. package/dist/contracts/connectors.d.ts +179 -0
  14. package/dist/contracts/connectors.js +46 -0
  15. package/dist/contracts/consent.d.ts +628 -0
  16. package/dist/contracts/consent.js +194 -0
  17. package/dist/contracts/content-blocks.d.ts +165 -0
  18. package/dist/contracts/content-blocks.js +62 -0
  19. package/dist/contracts/content-library.d.ts +347 -0
  20. package/dist/contracts/content-library.js +52 -0
  21. package/dist/contracts/content.d.ts +955 -0
  22. package/dist/contracts/content.js +194 -0
  23. package/dist/contracts/delivery.d.ts +602 -0
  24. package/dist/contracts/delivery.js +220 -0
  25. package/dist/contracts/events.d.ts +514 -0
  26. package/dist/contracts/events.js +180 -0
  27. package/dist/contracts/experiments.d.ts +378 -0
  28. package/dist/contracts/experiments.js +140 -0
  29. package/dist/contracts/identity.d.ts +761 -0
  30. package/dist/contracts/identity.js +226 -0
  31. package/dist/contracts/index.d.ts +15 -0
  32. package/dist/contracts/index.js +15 -0
  33. package/dist/contracts/integrations.d.ts +445 -0
  34. package/dist/contracts/integrations.js +139 -0
  35. package/dist/contracts/leads.d.ts +733 -0
  36. package/dist/contracts/leads.js +125 -0
  37. package/dist/contracts/metrics.d.ts +465 -0
  38. package/dist/contracts/metrics.js +96 -0
  39. package/dist/contracts/outbound.d.ts +15535 -0
  40. package/dist/contracts/outbound.js +432 -0
  41. package/dist/contracts/pickers.d.ts +12 -0
  42. package/dist/contracts/pickers.js +20 -0
  43. package/dist/contracts/platform-admin.d.ts +244 -0
  44. package/dist/contracts/platform-admin.js +98 -0
  45. package/dist/contracts/postcards.d.ts +79 -0
  46. package/dist/contracts/postcards.js +29 -0
  47. package/dist/contracts/push.d.ts +530 -0
  48. package/dist/contracts/push.js +102 -0
  49. package/dist/contracts/rcs.d.ts +39 -0
  50. package/dist/contracts/rcs.js +19 -0
  51. package/dist/contracts/segments.d.ts +3187 -0
  52. package/dist/contracts/segments.js +421 -0
  53. package/dist/contracts/workflow-nodes.d.ts +2130 -0
  54. package/dist/contracts/workflow-nodes.js +346 -0
  55. package/dist/contracts/workflows.d.ts +46811 -0
  56. package/dist/contracts/workflows.js +350 -0
  57. package/dist/contracts/x10-platform.d.ts +2603 -0
  58. package/dist/contracts/x10-platform.js +129 -0
  59. package/dist/http.d.ts +30 -0
  60. package/dist/http.js +65 -0
  61. package/dist/index.d.ts +11631 -0
  62. package/dist/index.js +63 -0
  63. package/dist/platform.d.ts +163 -0
  64. package/dist/platform.js +40 -0
  65. package/dist/resources.d.ts +1338 -0
  66. package/dist/resources.js +56 -0
  67. package/dist/signature.d.ts +5 -0
  68. package/dist/signature.js +19 -0
  69. package/dist/x10.d.ts +1608 -0
  70. package/dist/x10.js +66 -0
  71. package/dist/z10.d.ts +256 -0
  72. package/dist/z10.js +46 -0
  73. package/package.json +40 -4
@@ -0,0 +1,3187 @@
1
+ import { z } from 'zod';
2
+ export declare const MAX_SEGMENT_DEPTH = 5;
3
+ export declare const MAX_SEGMENT_CONDITIONS = 100;
4
+ export declare const PROPERTY_PATH_RE: RegExp;
5
+ /** Standard profile fields (camelCase like the profile DTO) and their value type. */
6
+ export declare const STANDARD_FIELDS: {
7
+ readonly email: 'string';
8
+ readonly phone: 'string';
9
+ readonly firstName: 'string';
10
+ readonly lastName: 'string';
11
+ readonly timezone: 'string';
12
+ readonly locale: 'string';
13
+ readonly country: 'string';
14
+ readonly city: 'string';
15
+ readonly region: 'string';
16
+ readonly source: 'string';
17
+ readonly lifecycleStage: 'string';
18
+ readonly ownerUserId: 'string';
19
+ readonly kind: 'string';
20
+ readonly createdAt: 'date';
21
+ /** 'unverified' (imported or acquired, no human open/click or confirmation yet), 'verified', or empty. */
22
+ readonly verification: 'string';
23
+ /** When the profile last changed (date_modified) and when it first got an email, phone or external id (date_identified). */
24
+ readonly updatedAt: 'date';
25
+ readonly identifiedAt: 'date';
26
+ };
27
+ export type StandardField = keyof typeof STANDARD_FIELDS;
28
+ export declare const ProfileField: z.ZodUnion<readonly [z.ZodEnum<{
29
+ city: "city";
30
+ country: "country";
31
+ createdAt: "createdAt";
32
+ email: "email";
33
+ firstName: "firstName";
34
+ identifiedAt: "identifiedAt";
35
+ kind: "kind";
36
+ lastName: "lastName";
37
+ lifecycleStage: "lifecycleStage";
38
+ locale: "locale";
39
+ ownerUserId: "ownerUserId";
40
+ phone: "phone";
41
+ region: "region";
42
+ source: "source";
43
+ timezone: "timezone";
44
+ updatedAt: "updatedAt";
45
+ verification: "verification";
46
+ }>, z.ZodString]>;
47
+ /** Calendar date tokens, in the workspace zone: weeks start on Monday. */
48
+ export declare const CALENDAR_PERIODS: readonly ['today', 'yesterday', 'tomorrow', 'this_week', 'last_week', 'next_week', 'this_month', 'last_month', 'next_month', 'this_year', 'last_year', 'next_year'];
49
+ export type CalendarPeriod = (typeof CALENDAR_PERIODS)[number];
50
+ /**
51
+ * A pattern is run by Postgres on every profile, so it must be small, valid, and free of the shapes that can blow up its matcher.
52
+ * These checks only remove the obvious ones (ambiguous alternation can still be slow): statement_timeout around every segment query is the real bound.
53
+ */
54
+ export declare function regexProblem(p: string): string | null;
55
+ declare const NumberPredicate: z.ZodDiscriminatedUnion<[z.ZodObject<{
56
+ valueType: z.ZodLiteral<"number">;
57
+ op: z.ZodEnum<{
58
+ eq: "eq";
59
+ gt: "gt";
60
+ gte: "gte";
61
+ lt: "lt";
62
+ lte: "lte";
63
+ neq: "neq";
64
+ }>;
65
+ value: z.ZodNumber;
66
+ }, z.core.$strip>, z.ZodObject<{
67
+ valueType: z.ZodLiteral<"number">;
68
+ op: z.ZodEnum<{
69
+ between: "between";
70
+ not_between: "not_between";
71
+ }>;
72
+ from: z.ZodNumber;
73
+ to: z.ZodNumber;
74
+ }, z.core.$strip>], "op">;
75
+ declare const DatePredicate: z.ZodDiscriminatedUnion<[z.ZodObject<{
76
+ valueType: z.ZodLiteral<"date">;
77
+ op: z.ZodEnum<{
78
+ after: "after";
79
+ before: "before";
80
+ }>;
81
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ valueType: z.ZodLiteral<"date">;
84
+ op: z.ZodEnum<{
85
+ between: "between";
86
+ not_between: "not_between";
87
+ }>;
88
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
89
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ valueType: z.ZodLiteral<"date">;
92
+ op: z.ZodEnum<{
93
+ anniversary_in_last: "anniversary_in_last";
94
+ is_anniversary_within: "is_anniversary_within";
95
+ not_within_last: "not_within_last";
96
+ within_last: "within_last";
97
+ within_next: "within_next";
98
+ }>;
99
+ days: z.ZodNumber;
100
+ }, z.core.$strip>, z.ZodObject<{
101
+ valueType: z.ZodLiteral<"date">;
102
+ op: z.ZodLiteral<"anniversary_this_month">;
103
+ }, z.core.$strip>, z.ZodObject<{
104
+ valueType: z.ZodLiteral<"date">;
105
+ op: z.ZodLiteral<"anniversary_in_month">;
106
+ month: z.ZodNumber;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ valueType: z.ZodLiteral<"date">;
109
+ op: z.ZodLiteral<"in_period">;
110
+ period: z.ZodEnum<{
111
+ last_month: "last_month";
112
+ last_week: "last_week";
113
+ last_year: "last_year";
114
+ next_month: "next_month";
115
+ next_week: "next_week";
116
+ next_year: "next_year";
117
+ this_month: "this_month";
118
+ this_week: "this_week";
119
+ this_year: "this_year";
120
+ today: "today";
121
+ tomorrow: "tomorrow";
122
+ yesterday: "yesterday";
123
+ }>;
124
+ }, z.core.$strip>], "op">;
125
+ export declare const Predicate: z.ZodUnion<readonly [z.ZodObject<{
126
+ valueType: z.ZodEnum<{
127
+ boolean: "boolean";
128
+ date: "date";
129
+ list: "list";
130
+ number: "number";
131
+ }>;
132
+ op: z.ZodEnum<{
133
+ exists: "exists";
134
+ not_exists: "not_exists";
135
+ }>;
136
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
137
+ valueType: z.ZodLiteral<"string">;
138
+ op: z.ZodEnum<{
139
+ matches_regex: "matches_regex";
140
+ not_matches_regex: "not_matches_regex";
141
+ }>;
142
+ value: z.ZodString;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ valueType: z.ZodLiteral<"string">;
145
+ op: z.ZodEnum<{
146
+ contains: "contains";
147
+ ends_with: "ends_with";
148
+ eq: "eq";
149
+ neq: "neq";
150
+ not_contains: "not_contains";
151
+ not_ends_with: "not_ends_with";
152
+ not_starts_with: "not_starts_with";
153
+ starts_with: "starts_with";
154
+ }>;
155
+ value: z.ZodString;
156
+ }, z.core.$strip>, z.ZodObject<{
157
+ valueType: z.ZodLiteral<"string">;
158
+ op: z.ZodEnum<{
159
+ in: "in";
160
+ not_in: "not_in";
161
+ }>;
162
+ values: z.ZodArray<z.ZodString>;
163
+ }, z.core.$strip>, z.ZodObject<{
164
+ valueType: z.ZodLiteral<"string">;
165
+ op: z.ZodEnum<{
166
+ exists: "exists";
167
+ not_exists: "not_exists";
168
+ }>;
169
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
170
+ valueType: z.ZodLiteral<"number">;
171
+ op: z.ZodEnum<{
172
+ eq: "eq";
173
+ gt: "gt";
174
+ gte: "gte";
175
+ lt: "lt";
176
+ lte: "lte";
177
+ neq: "neq";
178
+ }>;
179
+ value: z.ZodNumber;
180
+ }, z.core.$strip>, z.ZodObject<{
181
+ valueType: z.ZodLiteral<"number">;
182
+ op: z.ZodEnum<{
183
+ between: "between";
184
+ not_between: "not_between";
185
+ }>;
186
+ from: z.ZodNumber;
187
+ to: z.ZodNumber;
188
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
189
+ valueType: z.ZodLiteral<"date">;
190
+ op: z.ZodEnum<{
191
+ after: "after";
192
+ before: "before";
193
+ }>;
194
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
195
+ }, z.core.$strip>, z.ZodObject<{
196
+ valueType: z.ZodLiteral<"date">;
197
+ op: z.ZodEnum<{
198
+ between: "between";
199
+ not_between: "not_between";
200
+ }>;
201
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
202
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
203
+ }, z.core.$strip>, z.ZodObject<{
204
+ valueType: z.ZodLiteral<"date">;
205
+ op: z.ZodEnum<{
206
+ anniversary_in_last: "anniversary_in_last";
207
+ is_anniversary_within: "is_anniversary_within";
208
+ not_within_last: "not_within_last";
209
+ within_last: "within_last";
210
+ within_next: "within_next";
211
+ }>;
212
+ days: z.ZodNumber;
213
+ }, z.core.$strip>, z.ZodObject<{
214
+ valueType: z.ZodLiteral<"date">;
215
+ op: z.ZodLiteral<"anniversary_this_month">;
216
+ }, z.core.$strip>, z.ZodObject<{
217
+ valueType: z.ZodLiteral<"date">;
218
+ op: z.ZodLiteral<"anniversary_in_month">;
219
+ month: z.ZodNumber;
220
+ }, z.core.$strip>, z.ZodObject<{
221
+ valueType: z.ZodLiteral<"date">;
222
+ op: z.ZodLiteral<"in_period">;
223
+ period: z.ZodEnum<{
224
+ last_month: "last_month";
225
+ last_week: "last_week";
226
+ last_year: "last_year";
227
+ next_month: "next_month";
228
+ next_week: "next_week";
229
+ next_year: "next_year";
230
+ this_month: "this_month";
231
+ this_week: "this_week";
232
+ this_year: "this_year";
233
+ today: "today";
234
+ tomorrow: "tomorrow";
235
+ yesterday: "yesterday";
236
+ }>;
237
+ }, z.core.$strip>], "op">, z.ZodObject<{
238
+ valueType: z.ZodLiteral<"boolean">;
239
+ op: z.ZodEnum<{
240
+ is_false: "is_false";
241
+ is_true: "is_true";
242
+ }>;
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ valueType: z.ZodLiteral<"list">;
245
+ op: z.ZodEnum<{
246
+ contains_all: "contains_all";
247
+ contains_any: "contains_any";
248
+ not_contains_all: "not_contains_all";
249
+ not_contains_any: "not_contains_any";
250
+ }>;
251
+ values: z.ZodArray<z.ZodString>;
252
+ }, z.core.$strip>, z.ZodObject<{
253
+ valueType: z.ZodLiteral<"list">;
254
+ op: z.ZodEnum<{
255
+ contains_text: "contains_text";
256
+ not_contains_text: "not_contains_text";
257
+ }>;
258
+ value: z.ZodString;
259
+ }, z.core.$strip>, z.ZodObject<{
260
+ valueType: z.ZodLiteral<"list">;
261
+ op: z.ZodEnum<{
262
+ is_empty: "is_empty";
263
+ is_not_empty: "is_not_empty";
264
+ }>;
265
+ }, z.core.$strip>, z.ZodObject<{
266
+ valueType: z.ZodLiteral<"list">;
267
+ op: z.ZodEnum<{
268
+ length_eq: "length_eq";
269
+ length_gt: "length_gt";
270
+ length_gte: "length_gte";
271
+ length_lt: "length_lt";
272
+ length_lte: "length_lte";
273
+ }>;
274
+ value: z.ZodNumber;
275
+ }, z.core.$strip>]>;
276
+ export type Predicate = z.infer<typeof Predicate>;
277
+ export type DatePredicate = z.infer<typeof DatePredicate>;
278
+ export type NumberPredicate = z.infer<typeof NumberPredicate>;
279
+ /** Event property path; `[]` after a segment steps into every item of an array (e.g. `Items[].Categories[]`). */
280
+ export declare const EVENT_PATH_RE: RegExp;
281
+ /** Predictive values the nightly job stores under `attributes.predictive` (see analytics predict), with their type. */
282
+ export declare const PREDICTIVE_METRICS: {
283
+ readonly churn_risk: 'number';
284
+ readonly predicted_clv: 'number';
285
+ readonly historic_clv: 'number';
286
+ readonly total_clv: 'number';
287
+ readonly avg_order_value: 'number';
288
+ readonly avg_order_interval_days: 'number';
289
+ readonly order_count: 'number';
290
+ readonly predicted_orders: 'number';
291
+ readonly expected_next_order_at: 'date';
292
+ readonly p_alive: 'number';
293
+ /** Inferred from the first name (analytics `profile_gender_predictions`, not an attribute): likely_female | likely_male | uncertain. */
294
+ readonly predicted_gender: 'string';
295
+ };
296
+ export type PredictiveMetric = keyof typeof PREDICTIVE_METRICS;
297
+ export declare const SEGMENT_SUPPRESSION_REASONS: readonly ['unsubscribe', 'hard_bounce', 'complaint', 'stop_keyword', 'manual', 'invalid', 'dnc'];
298
+ /** Countries where distance from a postal code can be judged: US, UK, Canada, Australia, New Zealand and most EU countries (not CY, EE, GR, MT). */
299
+ export declare const PROXIMITY_COUNTRIES: readonly ['US', 'GB', 'CA', 'AU', 'NZ', 'AT', 'BE', 'BG', 'HR', 'CZ', 'DK', 'FI', 'FR', 'DE', 'HU', 'IE', 'IT', 'LV', 'LT', 'LU', 'NL', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'SE'];
300
+ export declare const ProximityCountry: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
301
+ /** Fixed company columns and their type. */
302
+ export declare const COMPANY_FIELDS: {
303
+ readonly name: 'string';
304
+ readonly domain: 'string';
305
+ readonly industry: 'string';
306
+ readonly sizeBand: 'string';
307
+ readonly country: 'string';
308
+ readonly stage: 'string';
309
+ readonly createdAt: 'date';
310
+ };
311
+ export type CompanyFixedField = keyof typeof COMPANY_FIELDS;
312
+ export declare const EventWindow: z.ZodDiscriminatedUnion<[z.ZodObject<{
313
+ kind: z.ZodLiteral<"ever">;
314
+ }, z.core.$strip>, z.ZodObject<{
315
+ kind: z.ZodLiteral<"last_days">;
316
+ days: z.ZodNumber;
317
+ }, z.core.$strip>, z.ZodObject<{
318
+ kind: z.ZodLiteral<"between">;
319
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
320
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
321
+ }, z.core.$strip>, z.ZodObject<{
322
+ kind: z.ZodLiteral<"since">;
323
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
324
+ }, z.core.$strip>, z.ZodObject<{
325
+ kind: z.ZodLiteral<"before">;
326
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
327
+ }, z.core.$strip>, z.ZodObject<{
328
+ kind: z.ZodLiteral<"older_than_days">;
329
+ days: z.ZodNumber;
330
+ }, z.core.$strip>, z.ZodObject<{
331
+ kind: z.ZodLiteral<"next_days">;
332
+ days: z.ZodNumber;
333
+ }, z.core.$strip>, z.ZodObject<{
334
+ kind: z.ZodLiteral<"calendar">;
335
+ unit: z.ZodEnum<{
336
+ day: "day";
337
+ month: "month";
338
+ quarter: "quarter";
339
+ week: "week";
340
+ year: "year";
341
+ }>;
342
+ which: z.ZodEnum<{
343
+ last: "last";
344
+ next: "next";
345
+ this: "this";
346
+ }>;
347
+ }, z.core.$strip>], "kind">;
348
+ export type EventWindow = z.infer<typeof EventWindow>;
349
+ export declare const EventMeasure: z.ZodDiscriminatedUnion<[z.ZodObject<{
350
+ kind: z.ZodLiteral<"count">;
351
+ op: z.ZodEnum<{
352
+ eq: "eq";
353
+ gt: "gt";
354
+ gte: "gte";
355
+ lt: "lt";
356
+ lte: "lte";
357
+ neq: "neq";
358
+ }>;
359
+ value: z.ZodNumber;
360
+ }, z.core.$strip>, z.ZodObject<{
361
+ kind: z.ZodEnum<{
362
+ first: "first";
363
+ last: "last";
364
+ }>;
365
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
366
+ valueType: z.ZodLiteral<"date">;
367
+ op: z.ZodEnum<{
368
+ after: "after";
369
+ before: "before";
370
+ }>;
371
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
372
+ }, z.core.$strip>, z.ZodObject<{
373
+ valueType: z.ZodLiteral<"date">;
374
+ op: z.ZodEnum<{
375
+ between: "between";
376
+ not_between: "not_between";
377
+ }>;
378
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
379
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
380
+ }, z.core.$strip>, z.ZodObject<{
381
+ valueType: z.ZodLiteral<"date">;
382
+ op: z.ZodEnum<{
383
+ anniversary_in_last: "anniversary_in_last";
384
+ is_anniversary_within: "is_anniversary_within";
385
+ not_within_last: "not_within_last";
386
+ within_last: "within_last";
387
+ within_next: "within_next";
388
+ }>;
389
+ days: z.ZodNumber;
390
+ }, z.core.$strip>, z.ZodObject<{
391
+ valueType: z.ZodLiteral<"date">;
392
+ op: z.ZodLiteral<"anniversary_this_month">;
393
+ }, z.core.$strip>, z.ZodObject<{
394
+ valueType: z.ZodLiteral<"date">;
395
+ op: z.ZodLiteral<"anniversary_in_month">;
396
+ month: z.ZodNumber;
397
+ }, z.core.$strip>, z.ZodObject<{
398
+ valueType: z.ZodLiteral<"date">;
399
+ op: z.ZodLiteral<"in_period">;
400
+ period: z.ZodEnum<{
401
+ last_month: "last_month";
402
+ last_week: "last_week";
403
+ last_year: "last_year";
404
+ next_month: "next_month";
405
+ next_week: "next_week";
406
+ next_year: "next_year";
407
+ this_month: "this_month";
408
+ this_week: "this_week";
409
+ this_year: "this_year";
410
+ today: "today";
411
+ tomorrow: "tomorrow";
412
+ yesterday: "yesterday";
413
+ }>;
414
+ }, z.core.$strip>], "op">;
415
+ }, z.core.$strip>, z.ZodObject<{
416
+ kind: z.ZodLiteral<"value_sum">;
417
+ predicate: z.ZodDiscriminatedUnion<[z.ZodObject<{
418
+ valueType: z.ZodLiteral<"number">;
419
+ op: z.ZodEnum<{
420
+ eq: "eq";
421
+ gt: "gt";
422
+ gte: "gte";
423
+ lt: "lt";
424
+ lte: "lte";
425
+ neq: "neq";
426
+ }>;
427
+ value: z.ZodNumber;
428
+ }, z.core.$strip>, z.ZodObject<{
429
+ valueType: z.ZodLiteral<"number">;
430
+ op: z.ZodEnum<{
431
+ between: "between";
432
+ not_between: "not_between";
433
+ }>;
434
+ from: z.ZodNumber;
435
+ to: z.ZodNumber;
436
+ }, z.core.$strip>], "op">;
437
+ }, z.core.$strip>, z.ZodObject<{
438
+ kind: z.ZodLiteral<"distinct_count">;
439
+ property: z.ZodString;
440
+ op: z.ZodEnum<{
441
+ eq: "eq";
442
+ gt: "gt";
443
+ gte: "gte";
444
+ lt: "lt";
445
+ lte: "lte";
446
+ neq: "neq";
447
+ }>;
448
+ value: z.ZodNumber;
449
+ }, z.core.$strip>, z.ZodObject<{
450
+ kind: z.ZodLiteral<"last_has">;
451
+ has: z.ZodArray<z.ZodObject<{
452
+ path: z.ZodString;
453
+ predicate: z.ZodUnion<readonly [z.ZodObject<{
454
+ valueType: z.ZodEnum<{
455
+ boolean: "boolean";
456
+ date: "date";
457
+ list: "list";
458
+ number: "number";
459
+ }>;
460
+ op: z.ZodEnum<{
461
+ exists: "exists";
462
+ not_exists: "not_exists";
463
+ }>;
464
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
465
+ valueType: z.ZodLiteral<"string">;
466
+ op: z.ZodEnum<{
467
+ matches_regex: "matches_regex";
468
+ not_matches_regex: "not_matches_regex";
469
+ }>;
470
+ value: z.ZodString;
471
+ }, z.core.$strip>, z.ZodObject<{
472
+ valueType: z.ZodLiteral<"string">;
473
+ op: z.ZodEnum<{
474
+ contains: "contains";
475
+ ends_with: "ends_with";
476
+ eq: "eq";
477
+ neq: "neq";
478
+ not_contains: "not_contains";
479
+ not_ends_with: "not_ends_with";
480
+ not_starts_with: "not_starts_with";
481
+ starts_with: "starts_with";
482
+ }>;
483
+ value: z.ZodString;
484
+ }, z.core.$strip>, z.ZodObject<{
485
+ valueType: z.ZodLiteral<"string">;
486
+ op: z.ZodEnum<{
487
+ in: "in";
488
+ not_in: "not_in";
489
+ }>;
490
+ values: z.ZodArray<z.ZodString>;
491
+ }, z.core.$strip>, z.ZodObject<{
492
+ valueType: z.ZodLiteral<"string">;
493
+ op: z.ZodEnum<{
494
+ exists: "exists";
495
+ not_exists: "not_exists";
496
+ }>;
497
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
498
+ valueType: z.ZodLiteral<"number">;
499
+ op: z.ZodEnum<{
500
+ eq: "eq";
501
+ gt: "gt";
502
+ gte: "gte";
503
+ lt: "lt";
504
+ lte: "lte";
505
+ neq: "neq";
506
+ }>;
507
+ value: z.ZodNumber;
508
+ }, z.core.$strip>, z.ZodObject<{
509
+ valueType: z.ZodLiteral<"number">;
510
+ op: z.ZodEnum<{
511
+ between: "between";
512
+ not_between: "not_between";
513
+ }>;
514
+ from: z.ZodNumber;
515
+ to: z.ZodNumber;
516
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
517
+ valueType: z.ZodLiteral<"date">;
518
+ op: z.ZodEnum<{
519
+ after: "after";
520
+ before: "before";
521
+ }>;
522
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
523
+ }, z.core.$strip>, z.ZodObject<{
524
+ valueType: z.ZodLiteral<"date">;
525
+ op: z.ZodEnum<{
526
+ between: "between";
527
+ not_between: "not_between";
528
+ }>;
529
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
530
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
531
+ }, z.core.$strip>, z.ZodObject<{
532
+ valueType: z.ZodLiteral<"date">;
533
+ op: z.ZodEnum<{
534
+ anniversary_in_last: "anniversary_in_last";
535
+ is_anniversary_within: "is_anniversary_within";
536
+ not_within_last: "not_within_last";
537
+ within_last: "within_last";
538
+ within_next: "within_next";
539
+ }>;
540
+ days: z.ZodNumber;
541
+ }, z.core.$strip>, z.ZodObject<{
542
+ valueType: z.ZodLiteral<"date">;
543
+ op: z.ZodLiteral<"anniversary_this_month">;
544
+ }, z.core.$strip>, z.ZodObject<{
545
+ valueType: z.ZodLiteral<"date">;
546
+ op: z.ZodLiteral<"anniversary_in_month">;
547
+ month: z.ZodNumber;
548
+ }, z.core.$strip>, z.ZodObject<{
549
+ valueType: z.ZodLiteral<"date">;
550
+ op: z.ZodLiteral<"in_period">;
551
+ period: z.ZodEnum<{
552
+ last_month: "last_month";
553
+ last_week: "last_week";
554
+ last_year: "last_year";
555
+ next_month: "next_month";
556
+ next_week: "next_week";
557
+ next_year: "next_year";
558
+ this_month: "this_month";
559
+ this_week: "this_week";
560
+ this_year: "this_year";
561
+ today: "today";
562
+ tomorrow: "tomorrow";
563
+ yesterday: "yesterday";
564
+ }>;
565
+ }, z.core.$strip>], "op">, z.ZodObject<{
566
+ valueType: z.ZodLiteral<"boolean">;
567
+ op: z.ZodEnum<{
568
+ is_false: "is_false";
569
+ is_true: "is_true";
570
+ }>;
571
+ }, z.core.$strip>, z.ZodObject<{
572
+ valueType: z.ZodLiteral<"list">;
573
+ op: z.ZodEnum<{
574
+ contains_all: "contains_all";
575
+ contains_any: "contains_any";
576
+ not_contains_all: "not_contains_all";
577
+ not_contains_any: "not_contains_any";
578
+ }>;
579
+ values: z.ZodArray<z.ZodString>;
580
+ }, z.core.$strip>, z.ZodObject<{
581
+ valueType: z.ZodLiteral<"list">;
582
+ op: z.ZodEnum<{
583
+ contains_text: "contains_text";
584
+ not_contains_text: "not_contains_text";
585
+ }>;
586
+ value: z.ZodString;
587
+ }, z.core.$strip>, z.ZodObject<{
588
+ valueType: z.ZodLiteral<"list">;
589
+ op: z.ZodEnum<{
590
+ is_empty: "is_empty";
591
+ is_not_empty: "is_not_empty";
592
+ }>;
593
+ }, z.core.$strip>, z.ZodObject<{
594
+ valueType: z.ZodLiteral<"list">;
595
+ op: z.ZodEnum<{
596
+ length_eq: "length_eq";
597
+ length_gt: "length_gt";
598
+ length_gte: "length_gte";
599
+ length_lt: "length_lt";
600
+ length_lte: "length_lte";
601
+ }>;
602
+ value: z.ZodNumber;
603
+ }, z.core.$strip>]>;
604
+ }, z.core.$strip>>;
605
+ }, z.core.$strip>, z.ZodObject<{
606
+ kind: z.ZodLiteral<"keyed_count">;
607
+ key: z.ZodString;
608
+ op: z.ZodEnum<{
609
+ eq: "eq";
610
+ gt: "gt";
611
+ gte: "gte";
612
+ lt: "lt";
613
+ lte: "lte";
614
+ neq: "neq";
615
+ }>;
616
+ value: z.ZodNumber;
617
+ has: z.ZodOptional<z.ZodArray<z.ZodObject<{
618
+ path: z.ZodString;
619
+ predicate: z.ZodUnion<readonly [z.ZodObject<{
620
+ valueType: z.ZodEnum<{
621
+ boolean: "boolean";
622
+ date: "date";
623
+ list: "list";
624
+ number: "number";
625
+ }>;
626
+ op: z.ZodEnum<{
627
+ exists: "exists";
628
+ not_exists: "not_exists";
629
+ }>;
630
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
631
+ valueType: z.ZodLiteral<"string">;
632
+ op: z.ZodEnum<{
633
+ matches_regex: "matches_regex";
634
+ not_matches_regex: "not_matches_regex";
635
+ }>;
636
+ value: z.ZodString;
637
+ }, z.core.$strip>, z.ZodObject<{
638
+ valueType: z.ZodLiteral<"string">;
639
+ op: z.ZodEnum<{
640
+ contains: "contains";
641
+ ends_with: "ends_with";
642
+ eq: "eq";
643
+ neq: "neq";
644
+ not_contains: "not_contains";
645
+ not_ends_with: "not_ends_with";
646
+ not_starts_with: "not_starts_with";
647
+ starts_with: "starts_with";
648
+ }>;
649
+ value: z.ZodString;
650
+ }, z.core.$strip>, z.ZodObject<{
651
+ valueType: z.ZodLiteral<"string">;
652
+ op: z.ZodEnum<{
653
+ in: "in";
654
+ not_in: "not_in";
655
+ }>;
656
+ values: z.ZodArray<z.ZodString>;
657
+ }, z.core.$strip>, z.ZodObject<{
658
+ valueType: z.ZodLiteral<"string">;
659
+ op: z.ZodEnum<{
660
+ exists: "exists";
661
+ not_exists: "not_exists";
662
+ }>;
663
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
664
+ valueType: z.ZodLiteral<"number">;
665
+ op: z.ZodEnum<{
666
+ eq: "eq";
667
+ gt: "gt";
668
+ gte: "gte";
669
+ lt: "lt";
670
+ lte: "lte";
671
+ neq: "neq";
672
+ }>;
673
+ value: z.ZodNumber;
674
+ }, z.core.$strip>, z.ZodObject<{
675
+ valueType: z.ZodLiteral<"number">;
676
+ op: z.ZodEnum<{
677
+ between: "between";
678
+ not_between: "not_between";
679
+ }>;
680
+ from: z.ZodNumber;
681
+ to: z.ZodNumber;
682
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
683
+ valueType: z.ZodLiteral<"date">;
684
+ op: z.ZodEnum<{
685
+ after: "after";
686
+ before: "before";
687
+ }>;
688
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
689
+ }, z.core.$strip>, z.ZodObject<{
690
+ valueType: z.ZodLiteral<"date">;
691
+ op: z.ZodEnum<{
692
+ between: "between";
693
+ not_between: "not_between";
694
+ }>;
695
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
696
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
697
+ }, z.core.$strip>, z.ZodObject<{
698
+ valueType: z.ZodLiteral<"date">;
699
+ op: z.ZodEnum<{
700
+ anniversary_in_last: "anniversary_in_last";
701
+ is_anniversary_within: "is_anniversary_within";
702
+ not_within_last: "not_within_last";
703
+ within_last: "within_last";
704
+ within_next: "within_next";
705
+ }>;
706
+ days: z.ZodNumber;
707
+ }, z.core.$strip>, z.ZodObject<{
708
+ valueType: z.ZodLiteral<"date">;
709
+ op: z.ZodLiteral<"anniversary_this_month">;
710
+ }, z.core.$strip>, z.ZodObject<{
711
+ valueType: z.ZodLiteral<"date">;
712
+ op: z.ZodLiteral<"anniversary_in_month">;
713
+ month: z.ZodNumber;
714
+ }, z.core.$strip>, z.ZodObject<{
715
+ valueType: z.ZodLiteral<"date">;
716
+ op: z.ZodLiteral<"in_period">;
717
+ period: z.ZodEnum<{
718
+ last_month: "last_month";
719
+ last_week: "last_week";
720
+ last_year: "last_year";
721
+ next_month: "next_month";
722
+ next_week: "next_week";
723
+ next_year: "next_year";
724
+ this_month: "this_month";
725
+ this_week: "this_week";
726
+ this_year: "this_year";
727
+ today: "today";
728
+ tomorrow: "tomorrow";
729
+ yesterday: "yesterday";
730
+ }>;
731
+ }, z.core.$strip>], "op">, z.ZodObject<{
732
+ valueType: z.ZodLiteral<"boolean">;
733
+ op: z.ZodEnum<{
734
+ is_false: "is_false";
735
+ is_true: "is_true";
736
+ }>;
737
+ }, z.core.$strip>, z.ZodObject<{
738
+ valueType: z.ZodLiteral<"list">;
739
+ op: z.ZodEnum<{
740
+ contains_all: "contains_all";
741
+ contains_any: "contains_any";
742
+ not_contains_all: "not_contains_all";
743
+ not_contains_any: "not_contains_any";
744
+ }>;
745
+ values: z.ZodArray<z.ZodString>;
746
+ }, z.core.$strip>, z.ZodObject<{
747
+ valueType: z.ZodLiteral<"list">;
748
+ op: z.ZodEnum<{
749
+ contains_text: "contains_text";
750
+ not_contains_text: "not_contains_text";
751
+ }>;
752
+ value: z.ZodString;
753
+ }, z.core.$strip>, z.ZodObject<{
754
+ valueType: z.ZodLiteral<"list">;
755
+ op: z.ZodEnum<{
756
+ is_empty: "is_empty";
757
+ is_not_empty: "is_not_empty";
758
+ }>;
759
+ }, z.core.$strip>, z.ZodObject<{
760
+ valueType: z.ZodLiteral<"list">;
761
+ op: z.ZodEnum<{
762
+ length_eq: "length_eq";
763
+ length_gt: "length_gt";
764
+ length_gte: "length_gte";
765
+ length_lt: "length_lt";
766
+ length_lte: "length_lte";
767
+ }>;
768
+ value: z.ZodNumber;
769
+ }, z.core.$strip>]>;
770
+ }, z.core.$strip>>>;
771
+ }, z.core.$strip>, z.ZodObject<{
772
+ kind: z.ZodLiteral<"aggregate">;
773
+ fn: z.ZodEnum<{
774
+ avg: "avg";
775
+ max: "max";
776
+ min: "min";
777
+ sum: "sum";
778
+ }>;
779
+ property: z.ZodString;
780
+ predicate: z.ZodDiscriminatedUnion<[z.ZodObject<{
781
+ valueType: z.ZodLiteral<"number">;
782
+ op: z.ZodEnum<{
783
+ eq: "eq";
784
+ gt: "gt";
785
+ gte: "gte";
786
+ lt: "lt";
787
+ lte: "lte";
788
+ neq: "neq";
789
+ }>;
790
+ value: z.ZodNumber;
791
+ }, z.core.$strip>, z.ZodObject<{
792
+ valueType: z.ZodLiteral<"number">;
793
+ op: z.ZodEnum<{
794
+ between: "between";
795
+ not_between: "not_between";
796
+ }>;
797
+ from: z.ZodNumber;
798
+ to: z.ZodNumber;
799
+ }, z.core.$strip>], "op">;
800
+ }, z.core.$strip>], "kind">;
801
+ export type EventMeasure = z.infer<typeof EventMeasure>;
802
+ export declare const SegmentCondition: z.ZodDiscriminatedUnion<[z.ZodObject<{
803
+ negate: z.ZodOptional<z.ZodBoolean>;
804
+ type: z.ZodLiteral<"profile_property">;
805
+ field: z.ZodUnion<readonly [z.ZodEnum<{
806
+ city: "city";
807
+ country: "country";
808
+ createdAt: "createdAt";
809
+ email: "email";
810
+ firstName: "firstName";
811
+ identifiedAt: "identifiedAt";
812
+ kind: "kind";
813
+ lastName: "lastName";
814
+ lifecycleStage: "lifecycleStage";
815
+ locale: "locale";
816
+ ownerUserId: "ownerUserId";
817
+ phone: "phone";
818
+ region: "region";
819
+ source: "source";
820
+ timezone: "timezone";
821
+ updatedAt: "updatedAt";
822
+ verification: "verification";
823
+ }>, z.ZodString]>;
824
+ predicate: z.ZodUnion<readonly [z.ZodObject<{
825
+ valueType: z.ZodEnum<{
826
+ boolean: "boolean";
827
+ date: "date";
828
+ list: "list";
829
+ number: "number";
830
+ }>;
831
+ op: z.ZodEnum<{
832
+ exists: "exists";
833
+ not_exists: "not_exists";
834
+ }>;
835
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
836
+ valueType: z.ZodLiteral<"string">;
837
+ op: z.ZodEnum<{
838
+ matches_regex: "matches_regex";
839
+ not_matches_regex: "not_matches_regex";
840
+ }>;
841
+ value: z.ZodString;
842
+ }, z.core.$strip>, z.ZodObject<{
843
+ valueType: z.ZodLiteral<"string">;
844
+ op: z.ZodEnum<{
845
+ contains: "contains";
846
+ ends_with: "ends_with";
847
+ eq: "eq";
848
+ neq: "neq";
849
+ not_contains: "not_contains";
850
+ not_ends_with: "not_ends_with";
851
+ not_starts_with: "not_starts_with";
852
+ starts_with: "starts_with";
853
+ }>;
854
+ value: z.ZodString;
855
+ }, z.core.$strip>, z.ZodObject<{
856
+ valueType: z.ZodLiteral<"string">;
857
+ op: z.ZodEnum<{
858
+ in: "in";
859
+ not_in: "not_in";
860
+ }>;
861
+ values: z.ZodArray<z.ZodString>;
862
+ }, z.core.$strip>, z.ZodObject<{
863
+ valueType: z.ZodLiteral<"string">;
864
+ op: z.ZodEnum<{
865
+ exists: "exists";
866
+ not_exists: "not_exists";
867
+ }>;
868
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
869
+ valueType: z.ZodLiteral<"number">;
870
+ op: z.ZodEnum<{
871
+ eq: "eq";
872
+ gt: "gt";
873
+ gte: "gte";
874
+ lt: "lt";
875
+ lte: "lte";
876
+ neq: "neq";
877
+ }>;
878
+ value: z.ZodNumber;
879
+ }, z.core.$strip>, z.ZodObject<{
880
+ valueType: z.ZodLiteral<"number">;
881
+ op: z.ZodEnum<{
882
+ between: "between";
883
+ not_between: "not_between";
884
+ }>;
885
+ from: z.ZodNumber;
886
+ to: z.ZodNumber;
887
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
888
+ valueType: z.ZodLiteral<"date">;
889
+ op: z.ZodEnum<{
890
+ after: "after";
891
+ before: "before";
892
+ }>;
893
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
894
+ }, z.core.$strip>, z.ZodObject<{
895
+ valueType: z.ZodLiteral<"date">;
896
+ op: z.ZodEnum<{
897
+ between: "between";
898
+ not_between: "not_between";
899
+ }>;
900
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
901
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
902
+ }, z.core.$strip>, z.ZodObject<{
903
+ valueType: z.ZodLiteral<"date">;
904
+ op: z.ZodEnum<{
905
+ anniversary_in_last: "anniversary_in_last";
906
+ is_anniversary_within: "is_anniversary_within";
907
+ not_within_last: "not_within_last";
908
+ within_last: "within_last";
909
+ within_next: "within_next";
910
+ }>;
911
+ days: z.ZodNumber;
912
+ }, z.core.$strip>, z.ZodObject<{
913
+ valueType: z.ZodLiteral<"date">;
914
+ op: z.ZodLiteral<"anniversary_this_month">;
915
+ }, z.core.$strip>, z.ZodObject<{
916
+ valueType: z.ZodLiteral<"date">;
917
+ op: z.ZodLiteral<"anniversary_in_month">;
918
+ month: z.ZodNumber;
919
+ }, z.core.$strip>, z.ZodObject<{
920
+ valueType: z.ZodLiteral<"date">;
921
+ op: z.ZodLiteral<"in_period">;
922
+ period: z.ZodEnum<{
923
+ last_month: "last_month";
924
+ last_week: "last_week";
925
+ last_year: "last_year";
926
+ next_month: "next_month";
927
+ next_week: "next_week";
928
+ next_year: "next_year";
929
+ this_month: "this_month";
930
+ this_week: "this_week";
931
+ this_year: "this_year";
932
+ today: "today";
933
+ tomorrow: "tomorrow";
934
+ yesterday: "yesterday";
935
+ }>;
936
+ }, z.core.$strip>], "op">, z.ZodObject<{
937
+ valueType: z.ZodLiteral<"boolean">;
938
+ op: z.ZodEnum<{
939
+ is_false: "is_false";
940
+ is_true: "is_true";
941
+ }>;
942
+ }, z.core.$strip>, z.ZodObject<{
943
+ valueType: z.ZodLiteral<"list">;
944
+ op: z.ZodEnum<{
945
+ contains_all: "contains_all";
946
+ contains_any: "contains_any";
947
+ not_contains_all: "not_contains_all";
948
+ not_contains_any: "not_contains_any";
949
+ }>;
950
+ values: z.ZodArray<z.ZodString>;
951
+ }, z.core.$strip>, z.ZodObject<{
952
+ valueType: z.ZodLiteral<"list">;
953
+ op: z.ZodEnum<{
954
+ contains_text: "contains_text";
955
+ not_contains_text: "not_contains_text";
956
+ }>;
957
+ value: z.ZodString;
958
+ }, z.core.$strip>, z.ZodObject<{
959
+ valueType: z.ZodLiteral<"list">;
960
+ op: z.ZodEnum<{
961
+ is_empty: "is_empty";
962
+ is_not_empty: "is_not_empty";
963
+ }>;
964
+ }, z.core.$strip>, z.ZodObject<{
965
+ valueType: z.ZodLiteral<"list">;
966
+ op: z.ZodEnum<{
967
+ length_eq: "length_eq";
968
+ length_gt: "length_gt";
969
+ length_gte: "length_gte";
970
+ length_lt: "length_lt";
971
+ length_lte: "length_lte";
972
+ }>;
973
+ value: z.ZodNumber;
974
+ }, z.core.$strip>]>;
975
+ }, z.core.$strip>, z.ZodObject<{
976
+ negate: z.ZodOptional<z.ZodBoolean>;
977
+ type: z.ZodLiteral<"identifier_exists">;
978
+ identifierType: z.ZodEnum<{
979
+ anonymous_id: "anonymous_id";
980
+ crm_id: "crm_id";
981
+ email: "email";
982
+ external_id: "external_id";
983
+ phone: "phone";
984
+ }>;
985
+ verified: z.ZodOptional<z.ZodBoolean>;
986
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
987
+ }, z.core.$strip>, z.ZodObject<{
988
+ negate: z.ZodOptional<z.ZodBoolean>;
989
+ type: z.ZodLiteral<"tag">;
990
+ name: z.ZodString;
991
+ }, z.core.$strip>, z.ZodObject<{
992
+ negate: z.ZodOptional<z.ZodBoolean>;
993
+ type: z.ZodLiteral<"list_membership">;
994
+ listId: z.ZodUUID;
995
+ window: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
996
+ kind: z.ZodLiteral<"ever">;
997
+ }, z.core.$strip>, z.ZodObject<{
998
+ kind: z.ZodLiteral<"last_days">;
999
+ days: z.ZodNumber;
1000
+ }, z.core.$strip>, z.ZodObject<{
1001
+ kind: z.ZodLiteral<"between">;
1002
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1003
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1004
+ }, z.core.$strip>, z.ZodObject<{
1005
+ kind: z.ZodLiteral<"since">;
1006
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1007
+ }, z.core.$strip>, z.ZodObject<{
1008
+ kind: z.ZodLiteral<"before">;
1009
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1010
+ }, z.core.$strip>, z.ZodObject<{
1011
+ kind: z.ZodLiteral<"older_than_days">;
1012
+ days: z.ZodNumber;
1013
+ }, z.core.$strip>, z.ZodObject<{
1014
+ kind: z.ZodLiteral<"next_days">;
1015
+ days: z.ZodNumber;
1016
+ }, z.core.$strip>, z.ZodObject<{
1017
+ kind: z.ZodLiteral<"calendar">;
1018
+ unit: z.ZodEnum<{
1019
+ day: "day";
1020
+ month: "month";
1021
+ quarter: "quarter";
1022
+ week: "week";
1023
+ year: "year";
1024
+ }>;
1025
+ which: z.ZodEnum<{
1026
+ last: "last";
1027
+ next: "next";
1028
+ this: "this";
1029
+ }>;
1030
+ }, z.core.$strip>], "kind">>;
1031
+ meta: z.ZodOptional<z.ZodObject<{
1032
+ key: z.ZodString;
1033
+ predicate: z.ZodUnion<readonly [z.ZodObject<{
1034
+ valueType: z.ZodEnum<{
1035
+ boolean: "boolean";
1036
+ date: "date";
1037
+ list: "list";
1038
+ number: "number";
1039
+ }>;
1040
+ op: z.ZodEnum<{
1041
+ exists: "exists";
1042
+ not_exists: "not_exists";
1043
+ }>;
1044
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1045
+ valueType: z.ZodLiteral<"string">;
1046
+ op: z.ZodEnum<{
1047
+ matches_regex: "matches_regex";
1048
+ not_matches_regex: "not_matches_regex";
1049
+ }>;
1050
+ value: z.ZodString;
1051
+ }, z.core.$strip>, z.ZodObject<{
1052
+ valueType: z.ZodLiteral<"string">;
1053
+ op: z.ZodEnum<{
1054
+ contains: "contains";
1055
+ ends_with: "ends_with";
1056
+ eq: "eq";
1057
+ neq: "neq";
1058
+ not_contains: "not_contains";
1059
+ not_ends_with: "not_ends_with";
1060
+ not_starts_with: "not_starts_with";
1061
+ starts_with: "starts_with";
1062
+ }>;
1063
+ value: z.ZodString;
1064
+ }, z.core.$strip>, z.ZodObject<{
1065
+ valueType: z.ZodLiteral<"string">;
1066
+ op: z.ZodEnum<{
1067
+ in: "in";
1068
+ not_in: "not_in";
1069
+ }>;
1070
+ values: z.ZodArray<z.ZodString>;
1071
+ }, z.core.$strip>, z.ZodObject<{
1072
+ valueType: z.ZodLiteral<"string">;
1073
+ op: z.ZodEnum<{
1074
+ exists: "exists";
1075
+ not_exists: "not_exists";
1076
+ }>;
1077
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1078
+ valueType: z.ZodLiteral<"number">;
1079
+ op: z.ZodEnum<{
1080
+ eq: "eq";
1081
+ gt: "gt";
1082
+ gte: "gte";
1083
+ lt: "lt";
1084
+ lte: "lte";
1085
+ neq: "neq";
1086
+ }>;
1087
+ value: z.ZodNumber;
1088
+ }, z.core.$strip>, z.ZodObject<{
1089
+ valueType: z.ZodLiteral<"number">;
1090
+ op: z.ZodEnum<{
1091
+ between: "between";
1092
+ not_between: "not_between";
1093
+ }>;
1094
+ from: z.ZodNumber;
1095
+ to: z.ZodNumber;
1096
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1097
+ valueType: z.ZodLiteral<"date">;
1098
+ op: z.ZodEnum<{
1099
+ after: "after";
1100
+ before: "before";
1101
+ }>;
1102
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1103
+ }, z.core.$strip>, z.ZodObject<{
1104
+ valueType: z.ZodLiteral<"date">;
1105
+ op: z.ZodEnum<{
1106
+ between: "between";
1107
+ not_between: "not_between";
1108
+ }>;
1109
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1110
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1111
+ }, z.core.$strip>, z.ZodObject<{
1112
+ valueType: z.ZodLiteral<"date">;
1113
+ op: z.ZodEnum<{
1114
+ anniversary_in_last: "anniversary_in_last";
1115
+ is_anniversary_within: "is_anniversary_within";
1116
+ not_within_last: "not_within_last";
1117
+ within_last: "within_last";
1118
+ within_next: "within_next";
1119
+ }>;
1120
+ days: z.ZodNumber;
1121
+ }, z.core.$strip>, z.ZodObject<{
1122
+ valueType: z.ZodLiteral<"date">;
1123
+ op: z.ZodLiteral<"anniversary_this_month">;
1124
+ }, z.core.$strip>, z.ZodObject<{
1125
+ valueType: z.ZodLiteral<"date">;
1126
+ op: z.ZodLiteral<"anniversary_in_month">;
1127
+ month: z.ZodNumber;
1128
+ }, z.core.$strip>, z.ZodObject<{
1129
+ valueType: z.ZodLiteral<"date">;
1130
+ op: z.ZodLiteral<"in_period">;
1131
+ period: z.ZodEnum<{
1132
+ last_month: "last_month";
1133
+ last_week: "last_week";
1134
+ last_year: "last_year";
1135
+ next_month: "next_month";
1136
+ next_week: "next_week";
1137
+ next_year: "next_year";
1138
+ this_month: "this_month";
1139
+ this_week: "this_week";
1140
+ this_year: "this_year";
1141
+ today: "today";
1142
+ tomorrow: "tomorrow";
1143
+ yesterday: "yesterday";
1144
+ }>;
1145
+ }, z.core.$strip>], "op">, z.ZodObject<{
1146
+ valueType: z.ZodLiteral<"boolean">;
1147
+ op: z.ZodEnum<{
1148
+ is_false: "is_false";
1149
+ is_true: "is_true";
1150
+ }>;
1151
+ }, z.core.$strip>, z.ZodObject<{
1152
+ valueType: z.ZodLiteral<"list">;
1153
+ op: z.ZodEnum<{
1154
+ contains_all: "contains_all";
1155
+ contains_any: "contains_any";
1156
+ not_contains_all: "not_contains_all";
1157
+ not_contains_any: "not_contains_any";
1158
+ }>;
1159
+ values: z.ZodArray<z.ZodString>;
1160
+ }, z.core.$strip>, z.ZodObject<{
1161
+ valueType: z.ZodLiteral<"list">;
1162
+ op: z.ZodEnum<{
1163
+ contains_text: "contains_text";
1164
+ not_contains_text: "not_contains_text";
1165
+ }>;
1166
+ value: z.ZodString;
1167
+ }, z.core.$strip>, z.ZodObject<{
1168
+ valueType: z.ZodLiteral<"list">;
1169
+ op: z.ZodEnum<{
1170
+ is_empty: "is_empty";
1171
+ is_not_empty: "is_not_empty";
1172
+ }>;
1173
+ }, z.core.$strip>, z.ZodObject<{
1174
+ valueType: z.ZodLiteral<"list">;
1175
+ op: z.ZodEnum<{
1176
+ length_eq: "length_eq";
1177
+ length_gt: "length_gt";
1178
+ length_gte: "length_gte";
1179
+ length_lt: "length_lt";
1180
+ length_lte: "length_lte";
1181
+ }>;
1182
+ value: z.ZodNumber;
1183
+ }, z.core.$strip>]>;
1184
+ }, z.core.$strip>>;
1185
+ }, z.core.$strip>, z.ZodObject<{
1186
+ negate: z.ZodOptional<z.ZodBoolean>;
1187
+ type: z.ZodLiteral<"event">;
1188
+ name: z.ZodString;
1189
+ app: z.ZodOptional<z.ZodString>;
1190
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
1191
+ path: z.ZodString;
1192
+ predicate: z.ZodUnion<readonly [z.ZodObject<{
1193
+ valueType: z.ZodEnum<{
1194
+ boolean: "boolean";
1195
+ date: "date";
1196
+ list: "list";
1197
+ number: "number";
1198
+ }>;
1199
+ op: z.ZodEnum<{
1200
+ exists: "exists";
1201
+ not_exists: "not_exists";
1202
+ }>;
1203
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1204
+ valueType: z.ZodLiteral<"string">;
1205
+ op: z.ZodEnum<{
1206
+ matches_regex: "matches_regex";
1207
+ not_matches_regex: "not_matches_regex";
1208
+ }>;
1209
+ value: z.ZodString;
1210
+ }, z.core.$strip>, z.ZodObject<{
1211
+ valueType: z.ZodLiteral<"string">;
1212
+ op: z.ZodEnum<{
1213
+ contains: "contains";
1214
+ ends_with: "ends_with";
1215
+ eq: "eq";
1216
+ neq: "neq";
1217
+ not_contains: "not_contains";
1218
+ not_ends_with: "not_ends_with";
1219
+ not_starts_with: "not_starts_with";
1220
+ starts_with: "starts_with";
1221
+ }>;
1222
+ value: z.ZodString;
1223
+ }, z.core.$strip>, z.ZodObject<{
1224
+ valueType: z.ZodLiteral<"string">;
1225
+ op: z.ZodEnum<{
1226
+ in: "in";
1227
+ not_in: "not_in";
1228
+ }>;
1229
+ values: z.ZodArray<z.ZodString>;
1230
+ }, z.core.$strip>, z.ZodObject<{
1231
+ valueType: z.ZodLiteral<"string">;
1232
+ op: z.ZodEnum<{
1233
+ exists: "exists";
1234
+ not_exists: "not_exists";
1235
+ }>;
1236
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1237
+ valueType: z.ZodLiteral<"number">;
1238
+ op: z.ZodEnum<{
1239
+ eq: "eq";
1240
+ gt: "gt";
1241
+ gte: "gte";
1242
+ lt: "lt";
1243
+ lte: "lte";
1244
+ neq: "neq";
1245
+ }>;
1246
+ value: z.ZodNumber;
1247
+ }, z.core.$strip>, z.ZodObject<{
1248
+ valueType: z.ZodLiteral<"number">;
1249
+ op: z.ZodEnum<{
1250
+ between: "between";
1251
+ not_between: "not_between";
1252
+ }>;
1253
+ from: z.ZodNumber;
1254
+ to: z.ZodNumber;
1255
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1256
+ valueType: z.ZodLiteral<"date">;
1257
+ op: z.ZodEnum<{
1258
+ after: "after";
1259
+ before: "before";
1260
+ }>;
1261
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1262
+ }, z.core.$strip>, z.ZodObject<{
1263
+ valueType: z.ZodLiteral<"date">;
1264
+ op: z.ZodEnum<{
1265
+ between: "between";
1266
+ not_between: "not_between";
1267
+ }>;
1268
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1269
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1270
+ }, z.core.$strip>, z.ZodObject<{
1271
+ valueType: z.ZodLiteral<"date">;
1272
+ op: z.ZodEnum<{
1273
+ anniversary_in_last: "anniversary_in_last";
1274
+ is_anniversary_within: "is_anniversary_within";
1275
+ not_within_last: "not_within_last";
1276
+ within_last: "within_last";
1277
+ within_next: "within_next";
1278
+ }>;
1279
+ days: z.ZodNumber;
1280
+ }, z.core.$strip>, z.ZodObject<{
1281
+ valueType: z.ZodLiteral<"date">;
1282
+ op: z.ZodLiteral<"anniversary_this_month">;
1283
+ }, z.core.$strip>, z.ZodObject<{
1284
+ valueType: z.ZodLiteral<"date">;
1285
+ op: z.ZodLiteral<"anniversary_in_month">;
1286
+ month: z.ZodNumber;
1287
+ }, z.core.$strip>, z.ZodObject<{
1288
+ valueType: z.ZodLiteral<"date">;
1289
+ op: z.ZodLiteral<"in_period">;
1290
+ period: z.ZodEnum<{
1291
+ last_month: "last_month";
1292
+ last_week: "last_week";
1293
+ last_year: "last_year";
1294
+ next_month: "next_month";
1295
+ next_week: "next_week";
1296
+ next_year: "next_year";
1297
+ this_month: "this_month";
1298
+ this_week: "this_week";
1299
+ this_year: "this_year";
1300
+ today: "today";
1301
+ tomorrow: "tomorrow";
1302
+ yesterday: "yesterday";
1303
+ }>;
1304
+ }, z.core.$strip>], "op">, z.ZodObject<{
1305
+ valueType: z.ZodLiteral<"boolean">;
1306
+ op: z.ZodEnum<{
1307
+ is_false: "is_false";
1308
+ is_true: "is_true";
1309
+ }>;
1310
+ }, z.core.$strip>, z.ZodObject<{
1311
+ valueType: z.ZodLiteral<"list">;
1312
+ op: z.ZodEnum<{
1313
+ contains_all: "contains_all";
1314
+ contains_any: "contains_any";
1315
+ not_contains_all: "not_contains_all";
1316
+ not_contains_any: "not_contains_any";
1317
+ }>;
1318
+ values: z.ZodArray<z.ZodString>;
1319
+ }, z.core.$strip>, z.ZodObject<{
1320
+ valueType: z.ZodLiteral<"list">;
1321
+ op: z.ZodEnum<{
1322
+ contains_text: "contains_text";
1323
+ not_contains_text: "not_contains_text";
1324
+ }>;
1325
+ value: z.ZodString;
1326
+ }, z.core.$strip>, z.ZodObject<{
1327
+ valueType: z.ZodLiteral<"list">;
1328
+ op: z.ZodEnum<{
1329
+ is_empty: "is_empty";
1330
+ is_not_empty: "is_not_empty";
1331
+ }>;
1332
+ }, z.core.$strip>, z.ZodObject<{
1333
+ valueType: z.ZodLiteral<"list">;
1334
+ op: z.ZodEnum<{
1335
+ length_eq: "length_eq";
1336
+ length_gt: "length_gt";
1337
+ length_gte: "length_gte";
1338
+ length_lt: "length_lt";
1339
+ length_lte: "length_lte";
1340
+ }>;
1341
+ value: z.ZodNumber;
1342
+ }, z.core.$strip>]>;
1343
+ }, z.core.$strip>>>;
1344
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1345
+ kind: z.ZodLiteral<"ever">;
1346
+ }, z.core.$strip>, z.ZodObject<{
1347
+ kind: z.ZodLiteral<"last_days">;
1348
+ days: z.ZodNumber;
1349
+ }, z.core.$strip>, z.ZodObject<{
1350
+ kind: z.ZodLiteral<"between">;
1351
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1352
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1353
+ }, z.core.$strip>, z.ZodObject<{
1354
+ kind: z.ZodLiteral<"since">;
1355
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1356
+ }, z.core.$strip>, z.ZodObject<{
1357
+ kind: z.ZodLiteral<"before">;
1358
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1359
+ }, z.core.$strip>, z.ZodObject<{
1360
+ kind: z.ZodLiteral<"older_than_days">;
1361
+ days: z.ZodNumber;
1362
+ }, z.core.$strip>, z.ZodObject<{
1363
+ kind: z.ZodLiteral<"next_days">;
1364
+ days: z.ZodNumber;
1365
+ }, z.core.$strip>, z.ZodObject<{
1366
+ kind: z.ZodLiteral<"calendar">;
1367
+ unit: z.ZodEnum<{
1368
+ day: "day";
1369
+ month: "month";
1370
+ quarter: "quarter";
1371
+ week: "week";
1372
+ year: "year";
1373
+ }>;
1374
+ which: z.ZodEnum<{
1375
+ last: "last";
1376
+ next: "next";
1377
+ this: "this";
1378
+ }>;
1379
+ }, z.core.$strip>], "kind">>;
1380
+ measure: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1381
+ kind: z.ZodLiteral<"count">;
1382
+ op: z.ZodEnum<{
1383
+ eq: "eq";
1384
+ gt: "gt";
1385
+ gte: "gte";
1386
+ lt: "lt";
1387
+ lte: "lte";
1388
+ neq: "neq";
1389
+ }>;
1390
+ value: z.ZodNumber;
1391
+ }, z.core.$strip>, z.ZodObject<{
1392
+ kind: z.ZodEnum<{
1393
+ first: "first";
1394
+ last: "last";
1395
+ }>;
1396
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
1397
+ valueType: z.ZodLiteral<"date">;
1398
+ op: z.ZodEnum<{
1399
+ after: "after";
1400
+ before: "before";
1401
+ }>;
1402
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1403
+ }, z.core.$strip>, z.ZodObject<{
1404
+ valueType: z.ZodLiteral<"date">;
1405
+ op: z.ZodEnum<{
1406
+ between: "between";
1407
+ not_between: "not_between";
1408
+ }>;
1409
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1410
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1411
+ }, z.core.$strip>, z.ZodObject<{
1412
+ valueType: z.ZodLiteral<"date">;
1413
+ op: z.ZodEnum<{
1414
+ anniversary_in_last: "anniversary_in_last";
1415
+ is_anniversary_within: "is_anniversary_within";
1416
+ not_within_last: "not_within_last";
1417
+ within_last: "within_last";
1418
+ within_next: "within_next";
1419
+ }>;
1420
+ days: z.ZodNumber;
1421
+ }, z.core.$strip>, z.ZodObject<{
1422
+ valueType: z.ZodLiteral<"date">;
1423
+ op: z.ZodLiteral<"anniversary_this_month">;
1424
+ }, z.core.$strip>, z.ZodObject<{
1425
+ valueType: z.ZodLiteral<"date">;
1426
+ op: z.ZodLiteral<"anniversary_in_month">;
1427
+ month: z.ZodNumber;
1428
+ }, z.core.$strip>, z.ZodObject<{
1429
+ valueType: z.ZodLiteral<"date">;
1430
+ op: z.ZodLiteral<"in_period">;
1431
+ period: z.ZodEnum<{
1432
+ last_month: "last_month";
1433
+ last_week: "last_week";
1434
+ last_year: "last_year";
1435
+ next_month: "next_month";
1436
+ next_week: "next_week";
1437
+ next_year: "next_year";
1438
+ this_month: "this_month";
1439
+ this_week: "this_week";
1440
+ this_year: "this_year";
1441
+ today: "today";
1442
+ tomorrow: "tomorrow";
1443
+ yesterday: "yesterday";
1444
+ }>;
1445
+ }, z.core.$strip>], "op">;
1446
+ }, z.core.$strip>, z.ZodObject<{
1447
+ kind: z.ZodLiteral<"value_sum">;
1448
+ predicate: z.ZodDiscriminatedUnion<[z.ZodObject<{
1449
+ valueType: z.ZodLiteral<"number">;
1450
+ op: z.ZodEnum<{
1451
+ eq: "eq";
1452
+ gt: "gt";
1453
+ gte: "gte";
1454
+ lt: "lt";
1455
+ lte: "lte";
1456
+ neq: "neq";
1457
+ }>;
1458
+ value: z.ZodNumber;
1459
+ }, z.core.$strip>, z.ZodObject<{
1460
+ valueType: z.ZodLiteral<"number">;
1461
+ op: z.ZodEnum<{
1462
+ between: "between";
1463
+ not_between: "not_between";
1464
+ }>;
1465
+ from: z.ZodNumber;
1466
+ to: z.ZodNumber;
1467
+ }, z.core.$strip>], "op">;
1468
+ }, z.core.$strip>, z.ZodObject<{
1469
+ kind: z.ZodLiteral<"distinct_count">;
1470
+ property: z.ZodString;
1471
+ op: z.ZodEnum<{
1472
+ eq: "eq";
1473
+ gt: "gt";
1474
+ gte: "gte";
1475
+ lt: "lt";
1476
+ lte: "lte";
1477
+ neq: "neq";
1478
+ }>;
1479
+ value: z.ZodNumber;
1480
+ }, z.core.$strip>, z.ZodObject<{
1481
+ kind: z.ZodLiteral<"last_has">;
1482
+ has: z.ZodArray<z.ZodObject<{
1483
+ path: z.ZodString;
1484
+ predicate: z.ZodUnion<readonly [z.ZodObject<{
1485
+ valueType: z.ZodEnum<{
1486
+ boolean: "boolean";
1487
+ date: "date";
1488
+ list: "list";
1489
+ number: "number";
1490
+ }>;
1491
+ op: z.ZodEnum<{
1492
+ exists: "exists";
1493
+ not_exists: "not_exists";
1494
+ }>;
1495
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1496
+ valueType: z.ZodLiteral<"string">;
1497
+ op: z.ZodEnum<{
1498
+ matches_regex: "matches_regex";
1499
+ not_matches_regex: "not_matches_regex";
1500
+ }>;
1501
+ value: z.ZodString;
1502
+ }, z.core.$strip>, z.ZodObject<{
1503
+ valueType: z.ZodLiteral<"string">;
1504
+ op: z.ZodEnum<{
1505
+ contains: "contains";
1506
+ ends_with: "ends_with";
1507
+ eq: "eq";
1508
+ neq: "neq";
1509
+ not_contains: "not_contains";
1510
+ not_ends_with: "not_ends_with";
1511
+ not_starts_with: "not_starts_with";
1512
+ starts_with: "starts_with";
1513
+ }>;
1514
+ value: z.ZodString;
1515
+ }, z.core.$strip>, z.ZodObject<{
1516
+ valueType: z.ZodLiteral<"string">;
1517
+ op: z.ZodEnum<{
1518
+ in: "in";
1519
+ not_in: "not_in";
1520
+ }>;
1521
+ values: z.ZodArray<z.ZodString>;
1522
+ }, z.core.$strip>, z.ZodObject<{
1523
+ valueType: z.ZodLiteral<"string">;
1524
+ op: z.ZodEnum<{
1525
+ exists: "exists";
1526
+ not_exists: "not_exists";
1527
+ }>;
1528
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1529
+ valueType: z.ZodLiteral<"number">;
1530
+ op: z.ZodEnum<{
1531
+ eq: "eq";
1532
+ gt: "gt";
1533
+ gte: "gte";
1534
+ lt: "lt";
1535
+ lte: "lte";
1536
+ neq: "neq";
1537
+ }>;
1538
+ value: z.ZodNumber;
1539
+ }, z.core.$strip>, z.ZodObject<{
1540
+ valueType: z.ZodLiteral<"number">;
1541
+ op: z.ZodEnum<{
1542
+ between: "between";
1543
+ not_between: "not_between";
1544
+ }>;
1545
+ from: z.ZodNumber;
1546
+ to: z.ZodNumber;
1547
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1548
+ valueType: z.ZodLiteral<"date">;
1549
+ op: z.ZodEnum<{
1550
+ after: "after";
1551
+ before: "before";
1552
+ }>;
1553
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1554
+ }, z.core.$strip>, z.ZodObject<{
1555
+ valueType: z.ZodLiteral<"date">;
1556
+ op: z.ZodEnum<{
1557
+ between: "between";
1558
+ not_between: "not_between";
1559
+ }>;
1560
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1561
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1562
+ }, z.core.$strip>, z.ZodObject<{
1563
+ valueType: z.ZodLiteral<"date">;
1564
+ op: z.ZodEnum<{
1565
+ anniversary_in_last: "anniversary_in_last";
1566
+ is_anniversary_within: "is_anniversary_within";
1567
+ not_within_last: "not_within_last";
1568
+ within_last: "within_last";
1569
+ within_next: "within_next";
1570
+ }>;
1571
+ days: z.ZodNumber;
1572
+ }, z.core.$strip>, z.ZodObject<{
1573
+ valueType: z.ZodLiteral<"date">;
1574
+ op: z.ZodLiteral<"anniversary_this_month">;
1575
+ }, z.core.$strip>, z.ZodObject<{
1576
+ valueType: z.ZodLiteral<"date">;
1577
+ op: z.ZodLiteral<"anniversary_in_month">;
1578
+ month: z.ZodNumber;
1579
+ }, z.core.$strip>, z.ZodObject<{
1580
+ valueType: z.ZodLiteral<"date">;
1581
+ op: z.ZodLiteral<"in_period">;
1582
+ period: z.ZodEnum<{
1583
+ last_month: "last_month";
1584
+ last_week: "last_week";
1585
+ last_year: "last_year";
1586
+ next_month: "next_month";
1587
+ next_week: "next_week";
1588
+ next_year: "next_year";
1589
+ this_month: "this_month";
1590
+ this_week: "this_week";
1591
+ this_year: "this_year";
1592
+ today: "today";
1593
+ tomorrow: "tomorrow";
1594
+ yesterday: "yesterday";
1595
+ }>;
1596
+ }, z.core.$strip>], "op">, z.ZodObject<{
1597
+ valueType: z.ZodLiteral<"boolean">;
1598
+ op: z.ZodEnum<{
1599
+ is_false: "is_false";
1600
+ is_true: "is_true";
1601
+ }>;
1602
+ }, z.core.$strip>, z.ZodObject<{
1603
+ valueType: z.ZodLiteral<"list">;
1604
+ op: z.ZodEnum<{
1605
+ contains_all: "contains_all";
1606
+ contains_any: "contains_any";
1607
+ not_contains_all: "not_contains_all";
1608
+ not_contains_any: "not_contains_any";
1609
+ }>;
1610
+ values: z.ZodArray<z.ZodString>;
1611
+ }, z.core.$strip>, z.ZodObject<{
1612
+ valueType: z.ZodLiteral<"list">;
1613
+ op: z.ZodEnum<{
1614
+ contains_text: "contains_text";
1615
+ not_contains_text: "not_contains_text";
1616
+ }>;
1617
+ value: z.ZodString;
1618
+ }, z.core.$strip>, z.ZodObject<{
1619
+ valueType: z.ZodLiteral<"list">;
1620
+ op: z.ZodEnum<{
1621
+ is_empty: "is_empty";
1622
+ is_not_empty: "is_not_empty";
1623
+ }>;
1624
+ }, z.core.$strip>, z.ZodObject<{
1625
+ valueType: z.ZodLiteral<"list">;
1626
+ op: z.ZodEnum<{
1627
+ length_eq: "length_eq";
1628
+ length_gt: "length_gt";
1629
+ length_gte: "length_gte";
1630
+ length_lt: "length_lt";
1631
+ length_lte: "length_lte";
1632
+ }>;
1633
+ value: z.ZodNumber;
1634
+ }, z.core.$strip>]>;
1635
+ }, z.core.$strip>>;
1636
+ }, z.core.$strip>, z.ZodObject<{
1637
+ kind: z.ZodLiteral<"keyed_count">;
1638
+ key: z.ZodString;
1639
+ op: z.ZodEnum<{
1640
+ eq: "eq";
1641
+ gt: "gt";
1642
+ gte: "gte";
1643
+ lt: "lt";
1644
+ lte: "lte";
1645
+ neq: "neq";
1646
+ }>;
1647
+ value: z.ZodNumber;
1648
+ has: z.ZodOptional<z.ZodArray<z.ZodObject<{
1649
+ path: z.ZodString;
1650
+ predicate: z.ZodUnion<readonly [z.ZodObject<{
1651
+ valueType: z.ZodEnum<{
1652
+ boolean: "boolean";
1653
+ date: "date";
1654
+ list: "list";
1655
+ number: "number";
1656
+ }>;
1657
+ op: z.ZodEnum<{
1658
+ exists: "exists";
1659
+ not_exists: "not_exists";
1660
+ }>;
1661
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1662
+ valueType: z.ZodLiteral<"string">;
1663
+ op: z.ZodEnum<{
1664
+ matches_regex: "matches_regex";
1665
+ not_matches_regex: "not_matches_regex";
1666
+ }>;
1667
+ value: z.ZodString;
1668
+ }, z.core.$strip>, z.ZodObject<{
1669
+ valueType: z.ZodLiteral<"string">;
1670
+ op: z.ZodEnum<{
1671
+ contains: "contains";
1672
+ ends_with: "ends_with";
1673
+ eq: "eq";
1674
+ neq: "neq";
1675
+ not_contains: "not_contains";
1676
+ not_ends_with: "not_ends_with";
1677
+ not_starts_with: "not_starts_with";
1678
+ starts_with: "starts_with";
1679
+ }>;
1680
+ value: z.ZodString;
1681
+ }, z.core.$strip>, z.ZodObject<{
1682
+ valueType: z.ZodLiteral<"string">;
1683
+ op: z.ZodEnum<{
1684
+ in: "in";
1685
+ not_in: "not_in";
1686
+ }>;
1687
+ values: z.ZodArray<z.ZodString>;
1688
+ }, z.core.$strip>, z.ZodObject<{
1689
+ valueType: z.ZodLiteral<"string">;
1690
+ op: z.ZodEnum<{
1691
+ exists: "exists";
1692
+ not_exists: "not_exists";
1693
+ }>;
1694
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1695
+ valueType: z.ZodLiteral<"number">;
1696
+ op: z.ZodEnum<{
1697
+ eq: "eq";
1698
+ gt: "gt";
1699
+ gte: "gte";
1700
+ lt: "lt";
1701
+ lte: "lte";
1702
+ neq: "neq";
1703
+ }>;
1704
+ value: z.ZodNumber;
1705
+ }, z.core.$strip>, z.ZodObject<{
1706
+ valueType: z.ZodLiteral<"number">;
1707
+ op: z.ZodEnum<{
1708
+ between: "between";
1709
+ not_between: "not_between";
1710
+ }>;
1711
+ from: z.ZodNumber;
1712
+ to: z.ZodNumber;
1713
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1714
+ valueType: z.ZodLiteral<"date">;
1715
+ op: z.ZodEnum<{
1716
+ after: "after";
1717
+ before: "before";
1718
+ }>;
1719
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1720
+ }, z.core.$strip>, z.ZodObject<{
1721
+ valueType: z.ZodLiteral<"date">;
1722
+ op: z.ZodEnum<{
1723
+ between: "between";
1724
+ not_between: "not_between";
1725
+ }>;
1726
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1727
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1728
+ }, z.core.$strip>, z.ZodObject<{
1729
+ valueType: z.ZodLiteral<"date">;
1730
+ op: z.ZodEnum<{
1731
+ anniversary_in_last: "anniversary_in_last";
1732
+ is_anniversary_within: "is_anniversary_within";
1733
+ not_within_last: "not_within_last";
1734
+ within_last: "within_last";
1735
+ within_next: "within_next";
1736
+ }>;
1737
+ days: z.ZodNumber;
1738
+ }, z.core.$strip>, z.ZodObject<{
1739
+ valueType: z.ZodLiteral<"date">;
1740
+ op: z.ZodLiteral<"anniversary_this_month">;
1741
+ }, z.core.$strip>, z.ZodObject<{
1742
+ valueType: z.ZodLiteral<"date">;
1743
+ op: z.ZodLiteral<"anniversary_in_month">;
1744
+ month: z.ZodNumber;
1745
+ }, z.core.$strip>, z.ZodObject<{
1746
+ valueType: z.ZodLiteral<"date">;
1747
+ op: z.ZodLiteral<"in_period">;
1748
+ period: z.ZodEnum<{
1749
+ last_month: "last_month";
1750
+ last_week: "last_week";
1751
+ last_year: "last_year";
1752
+ next_month: "next_month";
1753
+ next_week: "next_week";
1754
+ next_year: "next_year";
1755
+ this_month: "this_month";
1756
+ this_week: "this_week";
1757
+ this_year: "this_year";
1758
+ today: "today";
1759
+ tomorrow: "tomorrow";
1760
+ yesterday: "yesterday";
1761
+ }>;
1762
+ }, z.core.$strip>], "op">, z.ZodObject<{
1763
+ valueType: z.ZodLiteral<"boolean">;
1764
+ op: z.ZodEnum<{
1765
+ is_false: "is_false";
1766
+ is_true: "is_true";
1767
+ }>;
1768
+ }, z.core.$strip>, z.ZodObject<{
1769
+ valueType: z.ZodLiteral<"list">;
1770
+ op: z.ZodEnum<{
1771
+ contains_all: "contains_all";
1772
+ contains_any: "contains_any";
1773
+ not_contains_all: "not_contains_all";
1774
+ not_contains_any: "not_contains_any";
1775
+ }>;
1776
+ values: z.ZodArray<z.ZodString>;
1777
+ }, z.core.$strip>, z.ZodObject<{
1778
+ valueType: z.ZodLiteral<"list">;
1779
+ op: z.ZodEnum<{
1780
+ contains_text: "contains_text";
1781
+ not_contains_text: "not_contains_text";
1782
+ }>;
1783
+ value: z.ZodString;
1784
+ }, z.core.$strip>, z.ZodObject<{
1785
+ valueType: z.ZodLiteral<"list">;
1786
+ op: z.ZodEnum<{
1787
+ is_empty: "is_empty";
1788
+ is_not_empty: "is_not_empty";
1789
+ }>;
1790
+ }, z.core.$strip>, z.ZodObject<{
1791
+ valueType: z.ZodLiteral<"list">;
1792
+ op: z.ZodEnum<{
1793
+ length_eq: "length_eq";
1794
+ length_gt: "length_gt";
1795
+ length_gte: "length_gte";
1796
+ length_lt: "length_lt";
1797
+ length_lte: "length_lte";
1798
+ }>;
1799
+ value: z.ZodNumber;
1800
+ }, z.core.$strip>]>;
1801
+ }, z.core.$strip>>>;
1802
+ }, z.core.$strip>, z.ZodObject<{
1803
+ kind: z.ZodLiteral<"aggregate">;
1804
+ fn: z.ZodEnum<{
1805
+ avg: "avg";
1806
+ max: "max";
1807
+ min: "min";
1808
+ sum: "sum";
1809
+ }>;
1810
+ property: z.ZodString;
1811
+ predicate: z.ZodDiscriminatedUnion<[z.ZodObject<{
1812
+ valueType: z.ZodLiteral<"number">;
1813
+ op: z.ZodEnum<{
1814
+ eq: "eq";
1815
+ gt: "gt";
1816
+ gte: "gte";
1817
+ lt: "lt";
1818
+ lte: "lte";
1819
+ neq: "neq";
1820
+ }>;
1821
+ value: z.ZodNumber;
1822
+ }, z.core.$strip>, z.ZodObject<{
1823
+ valueType: z.ZodLiteral<"number">;
1824
+ op: z.ZodEnum<{
1825
+ between: "between";
1826
+ not_between: "not_between";
1827
+ }>;
1828
+ from: z.ZodNumber;
1829
+ to: z.ZodNumber;
1830
+ }, z.core.$strip>], "op">;
1831
+ }, z.core.$strip>], "kind">>;
1832
+ }, z.core.$strip>, z.ZodObject<{
1833
+ negate: z.ZodOptional<z.ZodBoolean>;
1834
+ method: z.ZodOptional<z.ZodString>;
1835
+ window: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1836
+ kind: z.ZodLiteral<"ever">;
1837
+ }, z.core.$strip>, z.ZodObject<{
1838
+ kind: z.ZodLiteral<"last_days">;
1839
+ days: z.ZodNumber;
1840
+ }, z.core.$strip>, z.ZodObject<{
1841
+ kind: z.ZodLiteral<"between">;
1842
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1843
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1844
+ }, z.core.$strip>, z.ZodObject<{
1845
+ kind: z.ZodLiteral<"since">;
1846
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1847
+ }, z.core.$strip>, z.ZodObject<{
1848
+ kind: z.ZodLiteral<"before">;
1849
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1850
+ }, z.core.$strip>, z.ZodObject<{
1851
+ kind: z.ZodLiteral<"older_than_days">;
1852
+ days: z.ZodNumber;
1853
+ }, z.core.$strip>, z.ZodObject<{
1854
+ kind: z.ZodLiteral<"next_days">;
1855
+ days: z.ZodNumber;
1856
+ }, z.core.$strip>, z.ZodObject<{
1857
+ kind: z.ZodLiteral<"calendar">;
1858
+ unit: z.ZodEnum<{
1859
+ day: "day";
1860
+ month: "month";
1861
+ quarter: "quarter";
1862
+ week: "week";
1863
+ year: "year";
1864
+ }>;
1865
+ which: z.ZodEnum<{
1866
+ last: "last";
1867
+ next: "next";
1868
+ this: "this";
1869
+ }>;
1870
+ }, z.core.$strip>], "kind">>;
1871
+ doubleOptIn: z.ZodOptional<z.ZodBoolean>;
1872
+ type: z.ZodLiteral<"consent_status">;
1873
+ channel: z.ZodEnum<{
1874
+ email: "email";
1875
+ postcard: "postcard";
1876
+ push: "push";
1877
+ sms: "sms";
1878
+ whatsapp: "whatsapp";
1879
+ }>;
1880
+ purpose: z.ZodOptional<z.ZodString>;
1881
+ topic: z.ZodOptional<z.ZodString>;
1882
+ status: z.ZodEnum<{
1883
+ granted: "granted";
1884
+ none: "none";
1885
+ pending_confirmation: "pending_confirmation";
1886
+ revoked: "revoked";
1887
+ }>;
1888
+ }, z.core.$strip>, z.ZodObject<{
1889
+ negate: z.ZodOptional<z.ZodBoolean>;
1890
+ type: z.ZodLiteral<"suppressed">;
1891
+ channel: z.ZodEnum<{
1892
+ email: "email";
1893
+ postcard: "postcard";
1894
+ push: "push";
1895
+ sms: "sms";
1896
+ whatsapp: "whatsapp";
1897
+ }>;
1898
+ reason: z.ZodOptional<z.ZodEnum<{
1899
+ complaint: "complaint";
1900
+ dnc: "dnc";
1901
+ hard_bounce: "hard_bounce";
1902
+ invalid: "invalid";
1903
+ manual: "manual";
1904
+ stop_keyword: "stop_keyword";
1905
+ unsubscribe: "unsubscribe";
1906
+ }>>;
1907
+ }, z.core.$strip>, z.ZodObject<{
1908
+ negate: z.ZodOptional<z.ZodBoolean>;
1909
+ type: z.ZodLiteral<"in_region">;
1910
+ region: z.ZodEnum<{
1911
+ eu: "eu";
1912
+ us: "us";
1913
+ }>;
1914
+ }, z.core.$strip>, z.ZodObject<{
1915
+ negate: z.ZodOptional<z.ZodBoolean>;
1916
+ type: z.ZodLiteral<"tracking_opted_out">;
1917
+ }, z.core.$strip>, z.ZodObject<{
1918
+ negate: z.ZodOptional<z.ZodBoolean>;
1919
+ type: z.ZodLiteral<"spend_tier">;
1920
+ tier: z.ZodEnum<{
1921
+ high: "high";
1922
+ low: "low";
1923
+ medium: "medium";
1924
+ top: "top";
1925
+ }>;
1926
+ }, z.core.$strip>, z.ZodObject<{
1927
+ negate: z.ZodOptional<z.ZodBoolean>;
1928
+ method: z.ZodOptional<z.ZodString>;
1929
+ window: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1930
+ kind: z.ZodLiteral<"ever">;
1931
+ }, z.core.$strip>, z.ZodObject<{
1932
+ kind: z.ZodLiteral<"last_days">;
1933
+ days: z.ZodNumber;
1934
+ }, z.core.$strip>, z.ZodObject<{
1935
+ kind: z.ZodLiteral<"between">;
1936
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1937
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1938
+ }, z.core.$strip>, z.ZodObject<{
1939
+ kind: z.ZodLiteral<"since">;
1940
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1941
+ }, z.core.$strip>, z.ZodObject<{
1942
+ kind: z.ZodLiteral<"before">;
1943
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
1944
+ }, z.core.$strip>, z.ZodObject<{
1945
+ kind: z.ZodLiteral<"older_than_days">;
1946
+ days: z.ZodNumber;
1947
+ }, z.core.$strip>, z.ZodObject<{
1948
+ kind: z.ZodLiteral<"next_days">;
1949
+ days: z.ZodNumber;
1950
+ }, z.core.$strip>, z.ZodObject<{
1951
+ kind: z.ZodLiteral<"calendar">;
1952
+ unit: z.ZodEnum<{
1953
+ day: "day";
1954
+ month: "month";
1955
+ quarter: "quarter";
1956
+ week: "week";
1957
+ year: "year";
1958
+ }>;
1959
+ which: z.ZodEnum<{
1960
+ last: "last";
1961
+ next: "next";
1962
+ this: "this";
1963
+ }>;
1964
+ }, z.core.$strip>], "kind">>;
1965
+ doubleOptIn: z.ZodOptional<z.ZodBoolean>;
1966
+ type: z.ZodLiteral<"can_receive_marketing">;
1967
+ channel: z.ZodEnum<{
1968
+ email: "email";
1969
+ postcard: "postcard";
1970
+ push: "push";
1971
+ sms: "sms";
1972
+ whatsapp: "whatsapp";
1973
+ }>;
1974
+ topic: z.ZodOptional<z.ZodString>;
1975
+ }, z.core.$strip>, z.ZodObject<{
1976
+ negate: z.ZodOptional<z.ZodBoolean>;
1977
+ type: z.ZodLiteral<"predictive">;
1978
+ metric: z.ZodEnum<{
1979
+ avg_order_interval_days: "avg_order_interval_days";
1980
+ avg_order_value: "avg_order_value";
1981
+ churn_risk: "churn_risk";
1982
+ expected_next_order_at: "expected_next_order_at";
1983
+ historic_clv: "historic_clv";
1984
+ order_count: "order_count";
1985
+ p_alive: "p_alive";
1986
+ predicted_clv: "predicted_clv";
1987
+ predicted_gender: "predicted_gender";
1988
+ predicted_orders: "predicted_orders";
1989
+ total_clv: "total_clv";
1990
+ }>;
1991
+ predicate: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1992
+ valueType: z.ZodLiteral<"number">;
1993
+ op: z.ZodEnum<{
1994
+ eq: "eq";
1995
+ gt: "gt";
1996
+ gte: "gte";
1997
+ lt: "lt";
1998
+ lte: "lte";
1999
+ neq: "neq";
2000
+ }>;
2001
+ value: z.ZodNumber;
2002
+ }, z.core.$strip>, z.ZodObject<{
2003
+ valueType: z.ZodLiteral<"number">;
2004
+ op: z.ZodEnum<{
2005
+ between: "between";
2006
+ not_between: "not_between";
2007
+ }>;
2008
+ from: z.ZodNumber;
2009
+ to: z.ZodNumber;
2010
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
2011
+ valueType: z.ZodLiteral<"date">;
2012
+ op: z.ZodEnum<{
2013
+ after: "after";
2014
+ before: "before";
2015
+ }>;
2016
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2017
+ }, z.core.$strip>, z.ZodObject<{
2018
+ valueType: z.ZodLiteral<"date">;
2019
+ op: z.ZodEnum<{
2020
+ between: "between";
2021
+ not_between: "not_between";
2022
+ }>;
2023
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2024
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2025
+ }, z.core.$strip>, z.ZodObject<{
2026
+ valueType: z.ZodLiteral<"date">;
2027
+ op: z.ZodEnum<{
2028
+ anniversary_in_last: "anniversary_in_last";
2029
+ is_anniversary_within: "is_anniversary_within";
2030
+ not_within_last: "not_within_last";
2031
+ within_last: "within_last";
2032
+ within_next: "within_next";
2033
+ }>;
2034
+ days: z.ZodNumber;
2035
+ }, z.core.$strip>, z.ZodObject<{
2036
+ valueType: z.ZodLiteral<"date">;
2037
+ op: z.ZodLiteral<"anniversary_this_month">;
2038
+ }, z.core.$strip>, z.ZodObject<{
2039
+ valueType: z.ZodLiteral<"date">;
2040
+ op: z.ZodLiteral<"anniversary_in_month">;
2041
+ month: z.ZodNumber;
2042
+ }, z.core.$strip>, z.ZodObject<{
2043
+ valueType: z.ZodLiteral<"date">;
2044
+ op: z.ZodLiteral<"in_period">;
2045
+ period: z.ZodEnum<{
2046
+ last_month: "last_month";
2047
+ last_week: "last_week";
2048
+ last_year: "last_year";
2049
+ next_month: "next_month";
2050
+ next_week: "next_week";
2051
+ next_year: "next_year";
2052
+ this_month: "this_month";
2053
+ this_week: "this_week";
2054
+ this_year: "this_year";
2055
+ today: "today";
2056
+ tomorrow: "tomorrow";
2057
+ yesterday: "yesterday";
2058
+ }>;
2059
+ }, z.core.$strip>], "op">, z.ZodObject<{
2060
+ valueType: z.ZodEnum<{
2061
+ boolean: "boolean";
2062
+ date: "date";
2063
+ list: "list";
2064
+ number: "number";
2065
+ }>;
2066
+ op: z.ZodEnum<{
2067
+ exists: "exists";
2068
+ not_exists: "not_exists";
2069
+ }>;
2070
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2071
+ valueType: z.ZodLiteral<"string">;
2072
+ op: z.ZodEnum<{
2073
+ matches_regex: "matches_regex";
2074
+ not_matches_regex: "not_matches_regex";
2075
+ }>;
2076
+ value: z.ZodString;
2077
+ }, z.core.$strip>, z.ZodObject<{
2078
+ valueType: z.ZodLiteral<"string">;
2079
+ op: z.ZodEnum<{
2080
+ contains: "contains";
2081
+ ends_with: "ends_with";
2082
+ eq: "eq";
2083
+ neq: "neq";
2084
+ not_contains: "not_contains";
2085
+ not_ends_with: "not_ends_with";
2086
+ not_starts_with: "not_starts_with";
2087
+ starts_with: "starts_with";
2088
+ }>;
2089
+ value: z.ZodString;
2090
+ }, z.core.$strip>, z.ZodObject<{
2091
+ valueType: z.ZodLiteral<"string">;
2092
+ op: z.ZodEnum<{
2093
+ in: "in";
2094
+ not_in: "not_in";
2095
+ }>;
2096
+ values: z.ZodArray<z.ZodString>;
2097
+ }, z.core.$strip>, z.ZodObject<{
2098
+ valueType: z.ZodLiteral<"string">;
2099
+ op: z.ZodEnum<{
2100
+ exists: "exists";
2101
+ not_exists: "not_exists";
2102
+ }>;
2103
+ }, z.core.$strip>], "op">]>;
2104
+ }, z.core.$strip>, z.ZodObject<{
2105
+ negate: z.ZodOptional<z.ZodBoolean>;
2106
+ type: z.ZodLiteral<"location_radius">;
2107
+ center: z.ZodUnion<readonly [z.ZodObject<{
2108
+ kind: z.ZodLiteral<"point">;
2109
+ lat: z.ZodNumber;
2110
+ lng: z.ZodNumber;
2111
+ }, z.core.$strip>, z.ZodObject<{
2112
+ kind: z.ZodLiteral<"postal">;
2113
+ postalCode: z.ZodString;
2114
+ country: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
2115
+ }, z.core.$strip>]>;
2116
+ radius: z.ZodNumber;
2117
+ unit: z.ZodEnum<{
2118
+ km: "km";
2119
+ mi: "mi";
2120
+ }>;
2121
+ }, z.core.$strip>, z.ZodObject<{
2122
+ negate: z.ZodOptional<z.ZodBoolean>;
2123
+ type: z.ZodLiteral<"object_link">;
2124
+ objectType: z.ZodString;
2125
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
2126
+ path: z.ZodString;
2127
+ predicate: z.ZodUnion<readonly [z.ZodObject<{
2128
+ valueType: z.ZodEnum<{
2129
+ boolean: "boolean";
2130
+ date: "date";
2131
+ list: "list";
2132
+ number: "number";
2133
+ }>;
2134
+ op: z.ZodEnum<{
2135
+ exists: "exists";
2136
+ not_exists: "not_exists";
2137
+ }>;
2138
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2139
+ valueType: z.ZodLiteral<"string">;
2140
+ op: z.ZodEnum<{
2141
+ matches_regex: "matches_regex";
2142
+ not_matches_regex: "not_matches_regex";
2143
+ }>;
2144
+ value: z.ZodString;
2145
+ }, z.core.$strip>, z.ZodObject<{
2146
+ valueType: z.ZodLiteral<"string">;
2147
+ op: z.ZodEnum<{
2148
+ contains: "contains";
2149
+ ends_with: "ends_with";
2150
+ eq: "eq";
2151
+ neq: "neq";
2152
+ not_contains: "not_contains";
2153
+ not_ends_with: "not_ends_with";
2154
+ not_starts_with: "not_starts_with";
2155
+ starts_with: "starts_with";
2156
+ }>;
2157
+ value: z.ZodString;
2158
+ }, z.core.$strip>, z.ZodObject<{
2159
+ valueType: z.ZodLiteral<"string">;
2160
+ op: z.ZodEnum<{
2161
+ in: "in";
2162
+ not_in: "not_in";
2163
+ }>;
2164
+ values: z.ZodArray<z.ZodString>;
2165
+ }, z.core.$strip>, z.ZodObject<{
2166
+ valueType: z.ZodLiteral<"string">;
2167
+ op: z.ZodEnum<{
2168
+ exists: "exists";
2169
+ not_exists: "not_exists";
2170
+ }>;
2171
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
2172
+ valueType: z.ZodLiteral<"number">;
2173
+ op: z.ZodEnum<{
2174
+ eq: "eq";
2175
+ gt: "gt";
2176
+ gte: "gte";
2177
+ lt: "lt";
2178
+ lte: "lte";
2179
+ neq: "neq";
2180
+ }>;
2181
+ value: z.ZodNumber;
2182
+ }, z.core.$strip>, z.ZodObject<{
2183
+ valueType: z.ZodLiteral<"number">;
2184
+ op: z.ZodEnum<{
2185
+ between: "between";
2186
+ not_between: "not_between";
2187
+ }>;
2188
+ from: z.ZodNumber;
2189
+ to: z.ZodNumber;
2190
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
2191
+ valueType: z.ZodLiteral<"date">;
2192
+ op: z.ZodEnum<{
2193
+ after: "after";
2194
+ before: "before";
2195
+ }>;
2196
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2197
+ }, z.core.$strip>, z.ZodObject<{
2198
+ valueType: z.ZodLiteral<"date">;
2199
+ op: z.ZodEnum<{
2200
+ between: "between";
2201
+ not_between: "not_between";
2202
+ }>;
2203
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2204
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2205
+ }, z.core.$strip>, z.ZodObject<{
2206
+ valueType: z.ZodLiteral<"date">;
2207
+ op: z.ZodEnum<{
2208
+ anniversary_in_last: "anniversary_in_last";
2209
+ is_anniversary_within: "is_anniversary_within";
2210
+ not_within_last: "not_within_last";
2211
+ within_last: "within_last";
2212
+ within_next: "within_next";
2213
+ }>;
2214
+ days: z.ZodNumber;
2215
+ }, z.core.$strip>, z.ZodObject<{
2216
+ valueType: z.ZodLiteral<"date">;
2217
+ op: z.ZodLiteral<"anniversary_this_month">;
2218
+ }, z.core.$strip>, z.ZodObject<{
2219
+ valueType: z.ZodLiteral<"date">;
2220
+ op: z.ZodLiteral<"anniversary_in_month">;
2221
+ month: z.ZodNumber;
2222
+ }, z.core.$strip>, z.ZodObject<{
2223
+ valueType: z.ZodLiteral<"date">;
2224
+ op: z.ZodLiteral<"in_period">;
2225
+ period: z.ZodEnum<{
2226
+ last_month: "last_month";
2227
+ last_week: "last_week";
2228
+ last_year: "last_year";
2229
+ next_month: "next_month";
2230
+ next_week: "next_week";
2231
+ next_year: "next_year";
2232
+ this_month: "this_month";
2233
+ this_week: "this_week";
2234
+ this_year: "this_year";
2235
+ today: "today";
2236
+ tomorrow: "tomorrow";
2237
+ yesterday: "yesterday";
2238
+ }>;
2239
+ }, z.core.$strip>], "op">, z.ZodObject<{
2240
+ valueType: z.ZodLiteral<"boolean">;
2241
+ op: z.ZodEnum<{
2242
+ is_false: "is_false";
2243
+ is_true: "is_true";
2244
+ }>;
2245
+ }, z.core.$strip>, z.ZodObject<{
2246
+ valueType: z.ZodLiteral<"list">;
2247
+ op: z.ZodEnum<{
2248
+ contains_all: "contains_all";
2249
+ contains_any: "contains_any";
2250
+ not_contains_all: "not_contains_all";
2251
+ not_contains_any: "not_contains_any";
2252
+ }>;
2253
+ values: z.ZodArray<z.ZodString>;
2254
+ }, z.core.$strip>, z.ZodObject<{
2255
+ valueType: z.ZodLiteral<"list">;
2256
+ op: z.ZodEnum<{
2257
+ contains_text: "contains_text";
2258
+ not_contains_text: "not_contains_text";
2259
+ }>;
2260
+ value: z.ZodString;
2261
+ }, z.core.$strip>, z.ZodObject<{
2262
+ valueType: z.ZodLiteral<"list">;
2263
+ op: z.ZodEnum<{
2264
+ is_empty: "is_empty";
2265
+ is_not_empty: "is_not_empty";
2266
+ }>;
2267
+ }, z.core.$strip>, z.ZodObject<{
2268
+ valueType: z.ZodLiteral<"list">;
2269
+ op: z.ZodEnum<{
2270
+ length_eq: "length_eq";
2271
+ length_gt: "length_gt";
2272
+ length_gte: "length_gte";
2273
+ length_lt: "length_lt";
2274
+ length_lte: "length_lte";
2275
+ }>;
2276
+ value: z.ZodNumber;
2277
+ }, z.core.$strip>]>;
2278
+ }, z.core.$strip>>>;
2279
+ }, z.core.$strip>, z.ZodObject<{
2280
+ negate: z.ZodOptional<z.ZodBoolean>;
2281
+ type: z.ZodLiteral<"segment_membership">;
2282
+ segmentId: z.ZodUUID;
2283
+ }, z.core.$strip>, z.ZodObject<{
2284
+ negate: z.ZodOptional<z.ZodBoolean>;
2285
+ type: z.ZodLiteral<"location">;
2286
+ field: z.ZodEnum<{
2287
+ city: "city";
2288
+ country: "country";
2289
+ region: "region";
2290
+ }>;
2291
+ op: z.ZodEnum<{
2292
+ eq: "eq";
2293
+ in: "in";
2294
+ }>;
2295
+ values: z.ZodArray<z.ZodString>;
2296
+ }, z.core.$strip>, z.ZodObject<{
2297
+ negate: z.ZodOptional<z.ZodBoolean>;
2298
+ type: z.ZodLiteral<"message_engagement">;
2299
+ engagement: z.ZodEnum<{
2300
+ bounced: "bounced";
2301
+ clicked: "clicked";
2302
+ complained: "complained";
2303
+ dropped: "dropped";
2304
+ opened: "opened";
2305
+ received: "received";
2306
+ replied: "replied";
2307
+ sent: "sent";
2308
+ }>;
2309
+ channel: z.ZodOptional<z.ZodEnum<{
2310
+ email: "email";
2311
+ postcard: "postcard";
2312
+ push: "push";
2313
+ sms: "sms";
2314
+ whatsapp: "whatsapp";
2315
+ }>>;
2316
+ templateTag: z.ZodOptional<z.ZodString>;
2317
+ templateId: z.ZodOptional<z.ZodUUID>;
2318
+ sourceKind: z.ZodOptional<z.ZodString>;
2319
+ sourceId: z.ZodOptional<z.ZodUUID>;
2320
+ url: z.ZodOptional<z.ZodObject<{
2321
+ op: z.ZodEnum<{
2322
+ contains: "contains";
2323
+ equals: "equals";
2324
+ }>;
2325
+ value: z.ZodString;
2326
+ }, z.core.$strip>>;
2327
+ subjectContains: z.ZodOptional<z.ZodString>;
2328
+ campaignName: z.ZodOptional<z.ZodObject<{
2329
+ op: z.ZodEnum<{
2330
+ contains: "contains";
2331
+ equals: "equals";
2332
+ }>;
2333
+ value: z.ZodString;
2334
+ }, z.core.$strip>>;
2335
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2336
+ kind: z.ZodLiteral<"ever">;
2337
+ }, z.core.$strip>, z.ZodObject<{
2338
+ kind: z.ZodLiteral<"last_days">;
2339
+ days: z.ZodNumber;
2340
+ }, z.core.$strip>, z.ZodObject<{
2341
+ kind: z.ZodLiteral<"between">;
2342
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2343
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2344
+ }, z.core.$strip>, z.ZodObject<{
2345
+ kind: z.ZodLiteral<"since">;
2346
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2347
+ }, z.core.$strip>, z.ZodObject<{
2348
+ kind: z.ZodLiteral<"before">;
2349
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2350
+ }, z.core.$strip>, z.ZodObject<{
2351
+ kind: z.ZodLiteral<"older_than_days">;
2352
+ days: z.ZodNumber;
2353
+ }, z.core.$strip>, z.ZodObject<{
2354
+ kind: z.ZodLiteral<"next_days">;
2355
+ days: z.ZodNumber;
2356
+ }, z.core.$strip>, z.ZodObject<{
2357
+ kind: z.ZodLiteral<"calendar">;
2358
+ unit: z.ZodEnum<{
2359
+ day: "day";
2360
+ month: "month";
2361
+ quarter: "quarter";
2362
+ week: "week";
2363
+ year: "year";
2364
+ }>;
2365
+ which: z.ZodEnum<{
2366
+ last: "last";
2367
+ next: "next";
2368
+ this: "this";
2369
+ }>;
2370
+ }, z.core.$strip>], "kind">>;
2371
+ minCount: z.ZodOptional<z.ZodNumber>;
2372
+ }, z.core.$strip>, z.ZodObject<{
2373
+ negate: z.ZodOptional<z.ZodBoolean>;
2374
+ type: z.ZodLiteral<"attribute_has_been">;
2375
+ key: z.ZodString;
2376
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2377
+ atLeastDays: z.ZodNumber;
2378
+ comparator: z.ZodOptional<z.ZodEnum<{
2379
+ at_least: "at_least";
2380
+ under: "under";
2381
+ }>>;
2382
+ }, z.core.$strip>, z.ZodObject<{
2383
+ negate: z.ZodOptional<z.ZodBoolean>;
2384
+ type: z.ZodLiteral<"attribute_changed">;
2385
+ key: z.ZodString;
2386
+ to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2387
+ from: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2388
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2389
+ kind: z.ZodLiteral<"ever">;
2390
+ }, z.core.$strip>, z.ZodObject<{
2391
+ kind: z.ZodLiteral<"last_days">;
2392
+ days: z.ZodNumber;
2393
+ }, z.core.$strip>, z.ZodObject<{
2394
+ kind: z.ZodLiteral<"between">;
2395
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2396
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2397
+ }, z.core.$strip>, z.ZodObject<{
2398
+ kind: z.ZodLiteral<"since">;
2399
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2400
+ }, z.core.$strip>, z.ZodObject<{
2401
+ kind: z.ZodLiteral<"before">;
2402
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2403
+ }, z.core.$strip>, z.ZodObject<{
2404
+ kind: z.ZodLiteral<"older_than_days">;
2405
+ days: z.ZodNumber;
2406
+ }, z.core.$strip>, z.ZodObject<{
2407
+ kind: z.ZodLiteral<"next_days">;
2408
+ days: z.ZodNumber;
2409
+ }, z.core.$strip>, z.ZodObject<{
2410
+ kind: z.ZodLiteral<"calendar">;
2411
+ unit: z.ZodEnum<{
2412
+ day: "day";
2413
+ month: "month";
2414
+ quarter: "quarter";
2415
+ week: "week";
2416
+ year: "year";
2417
+ }>;
2418
+ which: z.ZodEnum<{
2419
+ last: "last";
2420
+ next: "next";
2421
+ this: "this";
2422
+ }>;
2423
+ }, z.core.$strip>], "kind">>;
2424
+ }, z.core.$strip>, z.ZodObject<{
2425
+ negate: z.ZodOptional<z.ZodBoolean>;
2426
+ type: z.ZodLiteral<"last_active">;
2427
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
2428
+ valueType: z.ZodLiteral<"date">;
2429
+ op: z.ZodEnum<{
2430
+ after: "after";
2431
+ before: "before";
2432
+ }>;
2433
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2434
+ }, z.core.$strip>, z.ZodObject<{
2435
+ valueType: z.ZodLiteral<"date">;
2436
+ op: z.ZodEnum<{
2437
+ between: "between";
2438
+ not_between: "not_between";
2439
+ }>;
2440
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2441
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2442
+ }, z.core.$strip>, z.ZodObject<{
2443
+ valueType: z.ZodLiteral<"date">;
2444
+ op: z.ZodEnum<{
2445
+ anniversary_in_last: "anniversary_in_last";
2446
+ is_anniversary_within: "is_anniversary_within";
2447
+ not_within_last: "not_within_last";
2448
+ within_last: "within_last";
2449
+ within_next: "within_next";
2450
+ }>;
2451
+ days: z.ZodNumber;
2452
+ }, z.core.$strip>, z.ZodObject<{
2453
+ valueType: z.ZodLiteral<"date">;
2454
+ op: z.ZodLiteral<"anniversary_this_month">;
2455
+ }, z.core.$strip>, z.ZodObject<{
2456
+ valueType: z.ZodLiteral<"date">;
2457
+ op: z.ZodLiteral<"anniversary_in_month">;
2458
+ month: z.ZodNumber;
2459
+ }, z.core.$strip>, z.ZodObject<{
2460
+ valueType: z.ZodLiteral<"date">;
2461
+ op: z.ZodLiteral<"in_period">;
2462
+ period: z.ZodEnum<{
2463
+ last_month: "last_month";
2464
+ last_week: "last_week";
2465
+ last_year: "last_year";
2466
+ next_month: "next_month";
2467
+ next_week: "next_week";
2468
+ next_year: "next_year";
2469
+ this_month: "this_month";
2470
+ this_week: "this_week";
2471
+ this_year: "this_year";
2472
+ today: "today";
2473
+ tomorrow: "tomorrow";
2474
+ yesterday: "yesterday";
2475
+ }>;
2476
+ }, z.core.$strip>], "op">;
2477
+ }, z.core.$strip>, z.ZodObject<{
2478
+ negate: z.ZodOptional<z.ZodBoolean>;
2479
+ type: z.ZodLiteral<"workflow_membership">;
2480
+ workflowId: z.ZodUUID;
2481
+ activeOnly: z.ZodOptional<z.ZodBoolean>;
2482
+ }, z.core.$strip>, z.ZodObject<{
2483
+ negate: z.ZodOptional<z.ZodBoolean>;
2484
+ type: z.ZodLiteral<"random_percent">;
2485
+ percent: z.ZodNumber;
2486
+ salt: z.ZodDefault<z.ZodString>;
2487
+ }, z.core.$strip>, z.ZodObject<{
2488
+ negate: z.ZodOptional<z.ZodBoolean>;
2489
+ type: z.ZodLiteral<"company_property">;
2490
+ field: z.ZodUnion<readonly [z.ZodEnum<{
2491
+ country: "country";
2492
+ createdAt: "createdAt";
2493
+ domain: "domain";
2494
+ industry: "industry";
2495
+ name: "name";
2496
+ sizeBand: "sizeBand";
2497
+ stage: "stage";
2498
+ }>, z.ZodString]>;
2499
+ predicate: z.ZodUnion<readonly [z.ZodObject<{
2500
+ valueType: z.ZodEnum<{
2501
+ boolean: "boolean";
2502
+ date: "date";
2503
+ list: "list";
2504
+ number: "number";
2505
+ }>;
2506
+ op: z.ZodEnum<{
2507
+ exists: "exists";
2508
+ not_exists: "not_exists";
2509
+ }>;
2510
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2511
+ valueType: z.ZodLiteral<"string">;
2512
+ op: z.ZodEnum<{
2513
+ matches_regex: "matches_regex";
2514
+ not_matches_regex: "not_matches_regex";
2515
+ }>;
2516
+ value: z.ZodString;
2517
+ }, z.core.$strip>, z.ZodObject<{
2518
+ valueType: z.ZodLiteral<"string">;
2519
+ op: z.ZodEnum<{
2520
+ contains: "contains";
2521
+ ends_with: "ends_with";
2522
+ eq: "eq";
2523
+ neq: "neq";
2524
+ not_contains: "not_contains";
2525
+ not_ends_with: "not_ends_with";
2526
+ not_starts_with: "not_starts_with";
2527
+ starts_with: "starts_with";
2528
+ }>;
2529
+ value: z.ZodString;
2530
+ }, z.core.$strip>, z.ZodObject<{
2531
+ valueType: z.ZodLiteral<"string">;
2532
+ op: z.ZodEnum<{
2533
+ in: "in";
2534
+ not_in: "not_in";
2535
+ }>;
2536
+ values: z.ZodArray<z.ZodString>;
2537
+ }, z.core.$strip>, z.ZodObject<{
2538
+ valueType: z.ZodLiteral<"string">;
2539
+ op: z.ZodEnum<{
2540
+ exists: "exists";
2541
+ not_exists: "not_exists";
2542
+ }>;
2543
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
2544
+ valueType: z.ZodLiteral<"number">;
2545
+ op: z.ZodEnum<{
2546
+ eq: "eq";
2547
+ gt: "gt";
2548
+ gte: "gte";
2549
+ lt: "lt";
2550
+ lte: "lte";
2551
+ neq: "neq";
2552
+ }>;
2553
+ value: z.ZodNumber;
2554
+ }, z.core.$strip>, z.ZodObject<{
2555
+ valueType: z.ZodLiteral<"number">;
2556
+ op: z.ZodEnum<{
2557
+ between: "between";
2558
+ not_between: "not_between";
2559
+ }>;
2560
+ from: z.ZodNumber;
2561
+ to: z.ZodNumber;
2562
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
2563
+ valueType: z.ZodLiteral<"date">;
2564
+ op: z.ZodEnum<{
2565
+ after: "after";
2566
+ before: "before";
2567
+ }>;
2568
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2569
+ }, z.core.$strip>, z.ZodObject<{
2570
+ valueType: z.ZodLiteral<"date">;
2571
+ op: z.ZodEnum<{
2572
+ between: "between";
2573
+ not_between: "not_between";
2574
+ }>;
2575
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2576
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2577
+ }, z.core.$strip>, z.ZodObject<{
2578
+ valueType: z.ZodLiteral<"date">;
2579
+ op: z.ZodEnum<{
2580
+ anniversary_in_last: "anniversary_in_last";
2581
+ is_anniversary_within: "is_anniversary_within";
2582
+ not_within_last: "not_within_last";
2583
+ within_last: "within_last";
2584
+ within_next: "within_next";
2585
+ }>;
2586
+ days: z.ZodNumber;
2587
+ }, z.core.$strip>, z.ZodObject<{
2588
+ valueType: z.ZodLiteral<"date">;
2589
+ op: z.ZodLiteral<"anniversary_this_month">;
2590
+ }, z.core.$strip>, z.ZodObject<{
2591
+ valueType: z.ZodLiteral<"date">;
2592
+ op: z.ZodLiteral<"anniversary_in_month">;
2593
+ month: z.ZodNumber;
2594
+ }, z.core.$strip>, z.ZodObject<{
2595
+ valueType: z.ZodLiteral<"date">;
2596
+ op: z.ZodLiteral<"in_period">;
2597
+ period: z.ZodEnum<{
2598
+ last_month: "last_month";
2599
+ last_week: "last_week";
2600
+ last_year: "last_year";
2601
+ next_month: "next_month";
2602
+ next_week: "next_week";
2603
+ next_year: "next_year";
2604
+ this_month: "this_month";
2605
+ this_week: "this_week";
2606
+ this_year: "this_year";
2607
+ today: "today";
2608
+ tomorrow: "tomorrow";
2609
+ yesterday: "yesterday";
2610
+ }>;
2611
+ }, z.core.$strip>], "op">, z.ZodObject<{
2612
+ valueType: z.ZodLiteral<"boolean">;
2613
+ op: z.ZodEnum<{
2614
+ is_false: "is_false";
2615
+ is_true: "is_true";
2616
+ }>;
2617
+ }, z.core.$strip>, z.ZodObject<{
2618
+ valueType: z.ZodLiteral<"list">;
2619
+ op: z.ZodEnum<{
2620
+ contains_all: "contains_all";
2621
+ contains_any: "contains_any";
2622
+ not_contains_all: "not_contains_all";
2623
+ not_contains_any: "not_contains_any";
2624
+ }>;
2625
+ values: z.ZodArray<z.ZodString>;
2626
+ }, z.core.$strip>, z.ZodObject<{
2627
+ valueType: z.ZodLiteral<"list">;
2628
+ op: z.ZodEnum<{
2629
+ contains_text: "contains_text";
2630
+ not_contains_text: "not_contains_text";
2631
+ }>;
2632
+ value: z.ZodString;
2633
+ }, z.core.$strip>, z.ZodObject<{
2634
+ valueType: z.ZodLiteral<"list">;
2635
+ op: z.ZodEnum<{
2636
+ is_empty: "is_empty";
2637
+ is_not_empty: "is_not_empty";
2638
+ }>;
2639
+ }, z.core.$strip>, z.ZodObject<{
2640
+ valueType: z.ZodLiteral<"list">;
2641
+ op: z.ZodEnum<{
2642
+ length_eq: "length_eq";
2643
+ length_gt: "length_gt";
2644
+ length_gte: "length_gte";
2645
+ length_lt: "length_lt";
2646
+ length_lte: "length_lte";
2647
+ }>;
2648
+ value: z.ZodNumber;
2649
+ }, z.core.$strip>]>;
2650
+ }, z.core.$strip>, z.ZodObject<{
2651
+ negate: z.ZodOptional<z.ZodBoolean>;
2652
+ type: z.ZodLiteral<"crm_list_membership">;
2653
+ connectionId: z.ZodOptional<z.ZodUUID>;
2654
+ crmListId: z.ZodString;
2655
+ }, z.core.$strip>, z.ZodObject<{
2656
+ negate: z.ZodOptional<z.ZodBoolean>;
2657
+ type: z.ZodLiteral<"object_property">;
2658
+ path: z.ZodString;
2659
+ predicate: z.ZodUnion<readonly [z.ZodObject<{
2660
+ valueType: z.ZodEnum<{
2661
+ boolean: "boolean";
2662
+ date: "date";
2663
+ list: "list";
2664
+ number: "number";
2665
+ }>;
2666
+ op: z.ZodEnum<{
2667
+ exists: "exists";
2668
+ not_exists: "not_exists";
2669
+ }>;
2670
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2671
+ valueType: z.ZodLiteral<"string">;
2672
+ op: z.ZodEnum<{
2673
+ matches_regex: "matches_regex";
2674
+ not_matches_regex: "not_matches_regex";
2675
+ }>;
2676
+ value: z.ZodString;
2677
+ }, z.core.$strip>, z.ZodObject<{
2678
+ valueType: z.ZodLiteral<"string">;
2679
+ op: z.ZodEnum<{
2680
+ contains: "contains";
2681
+ ends_with: "ends_with";
2682
+ eq: "eq";
2683
+ neq: "neq";
2684
+ not_contains: "not_contains";
2685
+ not_ends_with: "not_ends_with";
2686
+ not_starts_with: "not_starts_with";
2687
+ starts_with: "starts_with";
2688
+ }>;
2689
+ value: z.ZodString;
2690
+ }, z.core.$strip>, z.ZodObject<{
2691
+ valueType: z.ZodLiteral<"string">;
2692
+ op: z.ZodEnum<{
2693
+ in: "in";
2694
+ not_in: "not_in";
2695
+ }>;
2696
+ values: z.ZodArray<z.ZodString>;
2697
+ }, z.core.$strip>, z.ZodObject<{
2698
+ valueType: z.ZodLiteral<"string">;
2699
+ op: z.ZodEnum<{
2700
+ exists: "exists";
2701
+ not_exists: "not_exists";
2702
+ }>;
2703
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
2704
+ valueType: z.ZodLiteral<"number">;
2705
+ op: z.ZodEnum<{
2706
+ eq: "eq";
2707
+ gt: "gt";
2708
+ gte: "gte";
2709
+ lt: "lt";
2710
+ lte: "lte";
2711
+ neq: "neq";
2712
+ }>;
2713
+ value: z.ZodNumber;
2714
+ }, z.core.$strip>, z.ZodObject<{
2715
+ valueType: z.ZodLiteral<"number">;
2716
+ op: z.ZodEnum<{
2717
+ between: "between";
2718
+ not_between: "not_between";
2719
+ }>;
2720
+ from: z.ZodNumber;
2721
+ to: z.ZodNumber;
2722
+ }, z.core.$strip>], "op">, z.ZodDiscriminatedUnion<[z.ZodObject<{
2723
+ valueType: z.ZodLiteral<"date">;
2724
+ op: z.ZodEnum<{
2725
+ after: "after";
2726
+ before: "before";
2727
+ }>;
2728
+ value: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2729
+ }, z.core.$strip>, z.ZodObject<{
2730
+ valueType: z.ZodLiteral<"date">;
2731
+ op: z.ZodEnum<{
2732
+ between: "between";
2733
+ not_between: "not_between";
2734
+ }>;
2735
+ from: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2736
+ to: z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
2737
+ }, z.core.$strip>, z.ZodObject<{
2738
+ valueType: z.ZodLiteral<"date">;
2739
+ op: z.ZodEnum<{
2740
+ anniversary_in_last: "anniversary_in_last";
2741
+ is_anniversary_within: "is_anniversary_within";
2742
+ not_within_last: "not_within_last";
2743
+ within_last: "within_last";
2744
+ within_next: "within_next";
2745
+ }>;
2746
+ days: z.ZodNumber;
2747
+ }, z.core.$strip>, z.ZodObject<{
2748
+ valueType: z.ZodLiteral<"date">;
2749
+ op: z.ZodLiteral<"anniversary_this_month">;
2750
+ }, z.core.$strip>, z.ZodObject<{
2751
+ valueType: z.ZodLiteral<"date">;
2752
+ op: z.ZodLiteral<"anniversary_in_month">;
2753
+ month: z.ZodNumber;
2754
+ }, z.core.$strip>, z.ZodObject<{
2755
+ valueType: z.ZodLiteral<"date">;
2756
+ op: z.ZodLiteral<"in_period">;
2757
+ period: z.ZodEnum<{
2758
+ last_month: "last_month";
2759
+ last_week: "last_week";
2760
+ last_year: "last_year";
2761
+ next_month: "next_month";
2762
+ next_week: "next_week";
2763
+ next_year: "next_year";
2764
+ this_month: "this_month";
2765
+ this_week: "this_week";
2766
+ this_year: "this_year";
2767
+ today: "today";
2768
+ tomorrow: "tomorrow";
2769
+ yesterday: "yesterday";
2770
+ }>;
2771
+ }, z.core.$strip>], "op">, z.ZodObject<{
2772
+ valueType: z.ZodLiteral<"boolean">;
2773
+ op: z.ZodEnum<{
2774
+ is_false: "is_false";
2775
+ is_true: "is_true";
2776
+ }>;
2777
+ }, z.core.$strip>, z.ZodObject<{
2778
+ valueType: z.ZodLiteral<"list">;
2779
+ op: z.ZodEnum<{
2780
+ contains_all: "contains_all";
2781
+ contains_any: "contains_any";
2782
+ not_contains_all: "not_contains_all";
2783
+ not_contains_any: "not_contains_any";
2784
+ }>;
2785
+ values: z.ZodArray<z.ZodString>;
2786
+ }, z.core.$strip>, z.ZodObject<{
2787
+ valueType: z.ZodLiteral<"list">;
2788
+ op: z.ZodEnum<{
2789
+ contains_text: "contains_text";
2790
+ not_contains_text: "not_contains_text";
2791
+ }>;
2792
+ value: z.ZodString;
2793
+ }, z.core.$strip>, z.ZodObject<{
2794
+ valueType: z.ZodLiteral<"list">;
2795
+ op: z.ZodEnum<{
2796
+ is_empty: "is_empty";
2797
+ is_not_empty: "is_not_empty";
2798
+ }>;
2799
+ }, z.core.$strip>, z.ZodObject<{
2800
+ valueType: z.ZodLiteral<"list">;
2801
+ op: z.ZodEnum<{
2802
+ length_eq: "length_eq";
2803
+ length_gt: "length_gt";
2804
+ length_gte: "length_gte";
2805
+ length_lt: "length_lt";
2806
+ length_lte: "length_lte";
2807
+ }>;
2808
+ value: z.ZodNumber;
2809
+ }, z.core.$strip>]>;
2810
+ }, z.core.$strip>, z.ZodObject<{
2811
+ negate: z.ZodOptional<z.ZodBoolean>;
2812
+ type: z.ZodLiteral<"object_linked_profiles">;
2813
+ op: z.ZodEnum<{
2814
+ eq: "eq";
2815
+ gt: "gt";
2816
+ gte: "gte";
2817
+ lt: "lt";
2818
+ lte: "lte";
2819
+ neq: "neq";
2820
+ }>;
2821
+ value: z.ZodNumber;
2822
+ segmentId: z.ZodOptional<z.ZodUUID>;
2823
+ }, z.core.$strip>], "type">;
2824
+ /** Conditions that test an object instead of a person; only object segments use them, and object segments use only them. */
2825
+ export declare const OBJECT_CONDITIONS: readonly ['object_property', 'object_linked_profiles'];
2826
+ export type SegmentCondition = z.infer<typeof SegmentCondition>;
2827
+ export interface SegmentGroup {
2828
+ type: 'group';
2829
+ op: 'and' | 'or';
2830
+ negate?: boolean | undefined;
2831
+ children: SegmentNode[];
2832
+ }
2833
+ export type SegmentNode = SegmentGroup | SegmentCondition;
2834
+ /** Input side (before window/measure defaults): what callers may hand to services. */
2835
+ export interface SegmentGroupInput {
2836
+ type: 'group';
2837
+ op: 'and' | 'or';
2838
+ negate?: boolean | undefined;
2839
+ children: SegmentNodeInput[];
2840
+ }
2841
+ export type SegmentNodeInput = SegmentGroupInput | z.input<typeof SegmentCondition>;
2842
+ export declare const walkConditions: (n: SegmentNode, fn: (c: SegmentCondition) => void) => void;
2843
+ /** Root is always a group; an empty `and` group matches every profile. */
2844
+ export declare const SegmentDefinition: z.ZodType<SegmentGroup, SegmentGroupInput, z.core.$ZodTypeInternals<SegmentGroup, SegmentGroupInput>>;
2845
+ export type SegmentDefinition = z.output<typeof SegmentDefinition>;
2846
+ /** Before defaults (window/measure) are applied: what callers may pass to services. */
2847
+ export type SegmentDefinitionInput = SegmentGroupInput;
2848
+ export declare const SegmentDto: z.ZodObject<{
2849
+ id: z.ZodUUID;
2850
+ name: z.ZodString;
2851
+ description: z.ZodNullable<z.ZodString>;
2852
+ folder: z.ZodNullable<z.ZodString>;
2853
+ definition: z.ZodType<SegmentGroup, SegmentGroupInput, z.core.$ZodTypeInternals<SegmentGroup, SegmentGroupInput>>;
2854
+ status: z.ZodEnum<{
2855
+ active: "active";
2856
+ archived: "archived";
2857
+ }>;
2858
+ evalStatus: z.ZodEnum<{
2859
+ failed: "failed";
2860
+ pending: "pending";
2861
+ ready: "ready";
2862
+ }>;
2863
+ lastEvaluatedAt: z.ZodNullable<z.ZodISODateTime>;
2864
+ memberCount: z.ZodNumber;
2865
+ dependencyKeys: z.ZodArray<z.ZodString>;
2866
+ version: z.ZodNumber;
2867
+ subject: z.ZodString;
2868
+ starred: z.ZodBoolean;
2869
+ app: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2870
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2871
+ createdAt: z.ZodISODateTime;
2872
+ updatedAt: z.ZodISODateTime;
2873
+ }, z.core.$strip>;
2874
+ export declare const SegmentPage: z.ZodObject<{
2875
+ items: z.ZodArray<z.ZodObject<{
2876
+ id: z.ZodUUID;
2877
+ name: z.ZodString;
2878
+ description: z.ZodNullable<z.ZodString>;
2879
+ folder: z.ZodNullable<z.ZodString>;
2880
+ definition: z.ZodType<SegmentGroup, SegmentGroupInput, z.core.$ZodTypeInternals<SegmentGroup, SegmentGroupInput>>;
2881
+ status: z.ZodEnum<{
2882
+ active: "active";
2883
+ archived: "archived";
2884
+ }>;
2885
+ evalStatus: z.ZodEnum<{
2886
+ failed: "failed";
2887
+ pending: "pending";
2888
+ ready: "ready";
2889
+ }>;
2890
+ lastEvaluatedAt: z.ZodNullable<z.ZodISODateTime>;
2891
+ memberCount: z.ZodNumber;
2892
+ dependencyKeys: z.ZodArray<z.ZodString>;
2893
+ version: z.ZodNumber;
2894
+ subject: z.ZodString;
2895
+ starred: z.ZodBoolean;
2896
+ app: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2897
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2898
+ createdAt: z.ZodISODateTime;
2899
+ updatedAt: z.ZodISODateTime;
2900
+ }, z.core.$strip>>;
2901
+ nextCursor: z.ZodNullable<z.ZodUUID>;
2902
+ }, z.core.$strip>;
2903
+ /** `profile` (default) or a custom object type key (segments the objects themselves). */
2904
+ export declare const SegmentSubject: z.ZodString;
2905
+ export declare const CreateSegmentBody: z.ZodObject<{
2906
+ name: z.ZodString;
2907
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2908
+ folder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2909
+ definition: z.ZodType<SegmentGroup, SegmentGroupInput, z.core.$ZodTypeInternals<SegmentGroup, SegmentGroupInput>>;
2910
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2911
+ subject: z.ZodOptional<z.ZodString>;
2912
+ starred: z.ZodOptional<z.ZodBoolean>;
2913
+ app: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2914
+ }, z.core.$strip>;
2915
+ export declare const UpdateSegmentBody: z.ZodObject<{
2916
+ name: z.ZodOptional<z.ZodString>;
2917
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2918
+ folder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2919
+ definition: z.ZodOptional<z.ZodType<SegmentGroup, SegmentGroupInput, z.core.$ZodTypeInternals<SegmentGroup, SegmentGroupInput>>>;
2920
+ status: z.ZodOptional<z.ZodEnum<{
2921
+ active: "active";
2922
+ archived: "archived";
2923
+ }>>;
2924
+ starred: z.ZodOptional<z.ZodBoolean>;
2925
+ app: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2926
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2927
+ }, z.core.$strip>;
2928
+ export declare const SegmentPreviewBody: z.ZodObject<{
2929
+ definition: z.ZodType<SegmentGroup, SegmentGroupInput, z.core.$ZodTypeInternals<SegmentGroup, SegmentGroupInput>>;
2930
+ subject: z.ZodOptional<z.ZodString>;
2931
+ }, z.core.$strip>;
2932
+ export declare const SegmentPreviewResult: z.ZodObject<{
2933
+ count: z.ZodNumber;
2934
+ sample: z.ZodArray<z.ZodObject<{
2935
+ id: z.ZodUUID;
2936
+ emailPrimary: z.ZodNullable<z.ZodString>;
2937
+ phonePrimary: z.ZodNullable<z.ZodString>;
2938
+ firstName: z.ZodNullable<z.ZodString>;
2939
+ lastName: z.ZodNullable<z.ZodString>;
2940
+ timezone: z.ZodNullable<z.ZodString>;
2941
+ locale: z.ZodNullable<z.ZodString>;
2942
+ country: z.ZodNullable<z.ZodString>;
2943
+ city: z.ZodNullable<z.ZodString>;
2944
+ region: z.ZodNullable<z.ZodString>;
2945
+ source: z.ZodNullable<z.ZodString>;
2946
+ lifecycleStage: z.ZodNullable<z.ZodString>;
2947
+ verification: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2948
+ unverified: "unverified";
2949
+ verified: "verified";
2950
+ }>>>;
2951
+ ownerUserId: z.ZodNullable<z.ZodString>;
2952
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2953
+ tags: z.ZodArray<z.ZodString>;
2954
+ mergedIntoId: z.ZodNullable<z.ZodString>;
2955
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
2956
+ createdAt: z.ZodISODateTime;
2957
+ updatedAt: z.ZodISODateTime;
2958
+ consentIgnored: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2959
+ email: "email";
2960
+ postcard: "postcard";
2961
+ push: "push";
2962
+ sms: "sms";
2963
+ whatsapp: "whatsapp";
2964
+ }>>>;
2965
+ }, z.core.$strip>>;
2966
+ explanation: z.ZodArray<z.ZodString>;
2967
+ evaluatedAt: z.ZodISODateTime;
2968
+ }, z.core.$strip>;
2969
+ export declare const SegmentVersionDto: z.ZodObject<{
2970
+ id: z.ZodUUID;
2971
+ segmentId: z.ZodUUID;
2972
+ n: z.ZodNumber;
2973
+ definition: z.ZodType<SegmentGroup, SegmentGroupInput, z.core.$ZodTypeInternals<SegmentGroup, SegmentGroupInput>>;
2974
+ createdBy: z.ZodString;
2975
+ createdAt: z.ZodISODateTime;
2976
+ }, z.core.$strip>;
2977
+ export declare const SegmentVersionList: z.ZodObject<{
2978
+ items: z.ZodArray<z.ZodObject<{
2979
+ id: z.ZodUUID;
2980
+ segmentId: z.ZodUUID;
2981
+ n: z.ZodNumber;
2982
+ definition: z.ZodType<SegmentGroup, SegmentGroupInput, z.core.$ZodTypeInternals<SegmentGroup, SegmentGroupInput>>;
2983
+ createdBy: z.ZodString;
2984
+ createdAt: z.ZodISODateTime;
2985
+ }, z.core.$strip>>;
2986
+ }, z.core.$strip>;
2987
+ export declare const SnapshotDto: z.ZodObject<{
2988
+ id: z.ZodUUID;
2989
+ segmentId: z.ZodNullable<z.ZodUUID>;
2990
+ takenAt: z.ZodISODateTime;
2991
+ count: z.ZodNumber;
2992
+ }, z.core.$strip>;
2993
+ export declare const SEGMENT_SORTS: readonly ['name', '-name', 'created_at', '-created_at', 'updated_at', '-updated_at', 'member_count', '-member_count'];
2994
+ /** Members of a segment: filter by email, phone and joined-at; `sort` by joined-at (default: by profile id). */
2995
+ export declare const MembersQuery: z.ZodObject<{
2996
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
2997
+ cursor: z.ZodOptional<z.ZodUUID>;
2998
+ email: z.ZodOptional<z.ZodString>;
2999
+ phone: z.ZodOptional<z.ZodString>;
3000
+ joinedFrom: z.ZodOptional<z.ZodISODateTime>;
3001
+ joinedTo: z.ZodOptional<z.ZodISODateTime>;
3002
+ sort: z.ZodOptional<z.ZodEnum<{
3003
+ "-joined_at": "-joined_at";
3004
+ joined_at: "joined_at";
3005
+ }>>;
3006
+ }, z.core.$strip>;
3007
+ /** Segment list: name search (case-insensitive substring), ids, created/updated ranges, active or archived, starred, sort. */
3008
+ export declare const SegmentListQuery: z.ZodObject<{
3009
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3010
+ cursor: z.ZodOptional<z.ZodUUID>;
3011
+ q: z.ZodOptional<z.ZodString>;
3012
+ ids: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodUUID>>>;
3013
+ createdFrom: z.ZodOptional<z.ZodISODateTime>;
3014
+ createdTo: z.ZodOptional<z.ZodISODateTime>;
3015
+ updatedFrom: z.ZodOptional<z.ZodISODateTime>;
3016
+ updatedTo: z.ZodOptional<z.ZodISODateTime>;
3017
+ active: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
3018
+ false: "false";
3019
+ true: "true";
3020
+ }>, z.ZodTransform<boolean, "false" | "true">>>;
3021
+ starred: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
3022
+ false: "false";
3023
+ true: "true";
3024
+ }>, z.ZodTransform<boolean, "false" | "true">>>;
3025
+ app: z.ZodOptional<z.ZodString>;
3026
+ sort: z.ZodOptional<z.ZodEnum<{
3027
+ "-created_at": "-created_at";
3028
+ "-member_count": "-member_count";
3029
+ "-name": "-name";
3030
+ "-updated_at": "-updated_at";
3031
+ created_at: "created_at";
3032
+ member_count: "member_count";
3033
+ name: "name";
3034
+ updated_at: "updated_at";
3035
+ }>>;
3036
+ }, z.core.$strip>;
3037
+ export declare const EvaluateResult: z.ZodObject<{
3038
+ queued: z.ZodLiteral<true>;
3039
+ }, z.core.$strip>;
3040
+ export declare const SegmentDiffQuery: z.ZodObject<{
3041
+ from: z.ZodUnion<[z.ZodISODateTime, z.ZodISODate]>;
3042
+ to: z.ZodUnion<[z.ZodISODateTime, z.ZodISODate]>;
3043
+ }, z.core.$strip>;
3044
+ export declare const SegmentDiff: z.ZodObject<{
3045
+ segmentId: z.ZodUUID;
3046
+ from: z.ZodISODateTime;
3047
+ to: z.ZodISODateTime;
3048
+ joined: z.ZodObject<{
3049
+ count: z.ZodNumber;
3050
+ sample: z.ZodArray<z.ZodObject<{
3051
+ profileId: z.ZodUUID;
3052
+ email: z.ZodNullable<z.ZodString>;
3053
+ firstName: z.ZodNullable<z.ZodString>;
3054
+ lastName: z.ZodNullable<z.ZodString>;
3055
+ at: z.ZodISODateTime;
3056
+ }, z.core.$strip>>;
3057
+ }, z.core.$strip>;
3058
+ left: z.ZodObject<{
3059
+ count: z.ZodNumber;
3060
+ sample: z.ZodArray<z.ZodObject<{
3061
+ profileId: z.ZodUUID;
3062
+ email: z.ZodNullable<z.ZodString>;
3063
+ firstName: z.ZodNullable<z.ZodString>;
3064
+ lastName: z.ZodNullable<z.ZodString>;
3065
+ at: z.ZodISODateTime;
3066
+ }, z.core.$strip>>;
3067
+ }, z.core.$strip>;
3068
+ }, z.core.$strip>;
3069
+ export declare const SegmentExplainMatchBody: z.ZodObject<{
3070
+ definition: z.ZodType<SegmentGroup, SegmentGroupInput, z.core.$ZodTypeInternals<SegmentGroup, SegmentGroupInput>>;
3071
+ profileId: z.ZodUUID;
3072
+ }, z.core.$strip>;
3073
+ export interface SegmentMatchNode {
3074
+ kind: 'group' | 'condition';
3075
+ label: string;
3076
+ matched: boolean;
3077
+ /** Group operator, for groups. */
3078
+ op?: 'and' | 'or' | undefined;
3079
+ negated?: boolean | undefined;
3080
+ children?: SegmentMatchNode[] | undefined;
3081
+ }
3082
+ export declare const SegmentExplainMatch: z.ZodObject<{
3083
+ segmentId: z.ZodNullable<z.ZodUUID>;
3084
+ profileId: z.ZodUUID;
3085
+ matched: z.ZodBoolean;
3086
+ member: z.ZodNullable<z.ZodBoolean>;
3087
+ tree: z.ZodType<SegmentMatchNode, unknown, z.core.$ZodTypeInternals<SegmentMatchNode, unknown>>;
3088
+ evaluatedAt: z.ZodISODateTime;
3089
+ }, z.core.$strip>;
3090
+ export declare const SegmentSuggestQuery: z.ZodObject<{
3091
+ source: z.ZodEnum<{
3092
+ consent: "consent";
3093
+ event: "event";
3094
+ list_meta: "list_meta";
3095
+ profile: "profile";
3096
+ }>;
3097
+ name: z.ZodOptional<z.ZodString>;
3098
+ path: z.ZodString;
3099
+ channel: z.ZodOptional<z.ZodEnum<{
3100
+ email: "email";
3101
+ postcard: "postcard";
3102
+ push: "push";
3103
+ sms: "sms";
3104
+ whatsapp: "whatsapp";
3105
+ }>>;
3106
+ }, z.core.$strip>;
3107
+ export declare const SegmentSuggestResult: z.ZodObject<{
3108
+ values: z.ZodArray<z.ZodObject<{
3109
+ value: z.ZodString;
3110
+ count: z.ZodNumber;
3111
+ }, z.core.$strip>>;
3112
+ }, z.core.$strip>;
3113
+ export declare const SegmentExportResult: z.ZodObject<{
3114
+ filename: z.ZodString;
3115
+ csv: z.ZodString;
3116
+ count: z.ZodNumber;
3117
+ truncated: z.ZodBoolean;
3118
+ }, z.core.$strip>;
3119
+ export declare const SegmentSpendTiers: z.ZodObject<{
3120
+ mid: z.ZodNumber;
3121
+ high: z.ZodNumber;
3122
+ top: z.ZodNumber;
3123
+ }, z.core.$strip>;
3124
+ /** Evaluation tuning; defaults (60 min, 60 s, 20) are the behaviour before these became settings. */
3125
+ export declare const SegmentEvalSettings: z.ZodObject<{
3126
+ sweepMinutes: z.ZodNumber;
3127
+ evalTimeoutSeconds: z.ZodNumber;
3128
+ previewSampleSize: z.ZodNumber;
3129
+ }, z.core.$strip>;
3130
+ export declare const SegmentSettingsDto: z.ZodObject<{
3131
+ sweepMinutes: z.ZodNumber;
3132
+ evalTimeoutSeconds: z.ZodNumber;
3133
+ previewSampleSize: z.ZodNumber;
3134
+ spendTiers: z.ZodObject<{
3135
+ mid: z.ZodNumber;
3136
+ high: z.ZodNumber;
3137
+ top: z.ZodNumber;
3138
+ }, z.core.$strip>;
3139
+ geocoder: z.ZodEnum<{
3140
+ none: "none";
3141
+ opencage: "opencage";
3142
+ }>;
3143
+ geocoderKeySet: z.ZodBoolean;
3144
+ }, z.core.$strip>;
3145
+ export declare const UpdateSegmentSettingsBody: z.ZodObject<{
3146
+ sweepMinutes: z.ZodOptional<z.ZodNumber>;
3147
+ evalTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
3148
+ previewSampleSize: z.ZodOptional<z.ZodNumber>;
3149
+ spendTiers: z.ZodOptional<z.ZodObject<{
3150
+ mid: z.ZodNumber;
3151
+ high: z.ZodNumber;
3152
+ top: z.ZodNumber;
3153
+ }, z.core.$strip>>;
3154
+ geocoder: z.ZodOptional<z.ZodEnum<{
3155
+ none: "none";
3156
+ opencage: "opencage";
3157
+ }>>;
3158
+ geocoderKey: z.ZodOptional<z.ZodString>;
3159
+ }, z.core.$strip>;
3160
+ export declare const SegmentPlaceCheckBody: z.ZodObject<{
3161
+ country: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
3162
+ postalCode: z.ZodString;
3163
+ }, z.core.$strip>;
3164
+ export declare const SegmentPlaceBody: z.ZodObject<{
3165
+ country: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
3166
+ postalCode: z.ZodString;
3167
+ lat: z.ZodNumber;
3168
+ lng: z.ZodNumber;
3169
+ }, z.core.$strip>;
3170
+ export declare const SegmentPlaceStatus: z.ZodObject<{
3171
+ placed: z.ZodBoolean;
3172
+ lat: z.ZodNullable<z.ZodNumber>;
3173
+ lng: z.ZodNullable<z.ZodNumber>;
3174
+ source: z.ZodNullable<z.ZodString>;
3175
+ profilesPositioned: z.ZodNumber;
3176
+ profilesTotal: z.ZodNumber;
3177
+ geocoder: z.ZodEnum<{
3178
+ none: "none";
3179
+ opencage: "opencage";
3180
+ }>;
3181
+ }, z.core.$strip>;
3182
+ export declare const SegmentGeocodeResult: z.ZodObject<{
3183
+ placed: z.ZodNumber;
3184
+ failed: z.ZodNumber;
3185
+ remaining: z.ZodNumber;
3186
+ }, z.core.$strip>;
3187
+ export {};