@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,2130 @@
1
+ import { z } from 'zod';
2
+ import { type PickerKind } from './pickers.ts';
3
+ export declare const NodeId: z.ZodString;
4
+ /** Config values that name another entity carry a picker hint (pickers.ts) so the builder offers live choices. */
5
+ export declare const refId: (kind: PickerKind) => z.ZodUUID;
6
+ export declare const EventRef: z.ZodString;
7
+ export declare const TagRef: z.ZodString;
8
+ export declare const FieldRef: z.ZodString;
9
+ export declare const ZoneRef: z.ZodString;
10
+ export declare const Duration: z.ZodObject<{
11
+ amount: z.ZodNumber;
12
+ unit: z.ZodEnum<{
13
+ days: "days";
14
+ hours: "hours";
15
+ minutes: "minutes";
16
+ weeks: "weeks";
17
+ }>;
18
+ }, z.core.$strip>;
19
+ export type Duration = z.infer<typeof Duration>;
20
+ export declare const Condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
21
+ op: z.ZodEnum<{
22
+ contains: "contains";
23
+ eq: "eq";
24
+ exists: "exists";
25
+ gt: "gt";
26
+ gte: "gte";
27
+ lt: "lt";
28
+ lte: "lte";
29
+ ne: "ne";
30
+ not_exists: "not_exists";
31
+ }>;
32
+ value: z.ZodOptional<z.ZodUnknown>;
33
+ kind: z.ZodLiteral<"field">;
34
+ field: z.ZodString;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ kind: z.ZodLiteral<"tag">;
37
+ name: z.ZodString;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ kind: z.ZodLiteral<"in_list">;
40
+ listId: z.ZodUUID;
41
+ }, z.core.$strip>, z.ZodObject<{
42
+ kind: z.ZodLiteral<"in_segment">;
43
+ segmentId: z.ZodUUID;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ kind: z.ZodLiteral<"consent">;
46
+ channel: z.ZodEnum<{
47
+ email: "email";
48
+ postcard: "postcard";
49
+ push: "push";
50
+ sms: "sms";
51
+ whatsapp: "whatsapp";
52
+ }>;
53
+ purpose: z.ZodDefault<z.ZodEnum<{
54
+ marketing: "marketing";
55
+ operational: "operational";
56
+ prospecting: "prospecting";
57
+ transactional: "transactional";
58
+ }>>;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ op: z.ZodEnum<{
61
+ contains: "contains";
62
+ eq: "eq";
63
+ exists: "exists";
64
+ gt: "gt";
65
+ gte: "gte";
66
+ lt: "lt";
67
+ lte: "lte";
68
+ ne: "ne";
69
+ not_exists: "not_exists";
70
+ }>;
71
+ value: z.ZodOptional<z.ZodUnknown>;
72
+ kind: z.ZodLiteral<"trigger">;
73
+ path: z.ZodString;
74
+ }, z.core.$strip>, z.ZodObject<{
75
+ op: z.ZodEnum<{
76
+ contains: "contains";
77
+ eq: "eq";
78
+ exists: "exists";
79
+ gt: "gt";
80
+ gte: "gte";
81
+ lt: "lt";
82
+ lte: "lte";
83
+ ne: "ne";
84
+ not_exists: "not_exists";
85
+ }>;
86
+ value: z.ZodOptional<z.ZodUnknown>;
87
+ kind: z.ZodLiteral<"var">;
88
+ key: z.ZodString;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ kind: z.ZodLiteral<"definition">;
91
+ definition: z.ZodType<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput, z.core.$ZodTypeInternals<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput>>;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ kind: z.ZodLiteral<"field_changed">;
94
+ field: z.ZodString;
95
+ from: z.ZodOptional<z.ZodUnknown>;
96
+ to: z.ZodOptional<z.ZodUnknown>;
97
+ }, z.core.$strip>, z.ZodObject<{
98
+ kind: z.ZodLiteral<"in_workflow">;
99
+ workflowId: z.ZodUUID;
100
+ state: z.ZodDefault<z.ZodEnum<{
101
+ active: "active";
102
+ completed: "completed";
103
+ ever: "ever";
104
+ }>>;
105
+ }, z.core.$strip>, z.ZodObject<{
106
+ kind: z.ZodLiteral<"time">;
107
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
108
+ startMin: z.ZodOptional<z.ZodNumber>;
109
+ endMin: z.ZodOptional<z.ZodNumber>;
110
+ tz: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strip>, z.ZodObject<{
112
+ kind: z.ZodLiteral<"push_token">;
113
+ platform: z.ZodOptional<z.ZodEnum<{
114
+ android: "android";
115
+ ios: "ios";
116
+ web: "web";
117
+ }>>;
118
+ }, z.core.$strip>, z.ZodObject<{
119
+ kind: z.ZodLiteral<"date">;
120
+ source: z.ZodDefault<z.ZodEnum<{
121
+ field: "field";
122
+ trigger: "trigger";
123
+ var: "var";
124
+ }>>;
125
+ path: z.ZodString;
126
+ op: z.ZodEnum<{
127
+ after: "after";
128
+ anniversary_within_days: "anniversary_within_days";
129
+ before: "before";
130
+ today: "today";
131
+ within_next_days: "within_next_days";
132
+ within_past_days: "within_past_days";
133
+ }>;
134
+ days: z.ZodDefault<z.ZodNumber>;
135
+ }, z.core.$strip>], "kind">;
136
+ export type Condition = z.infer<typeof Condition>;
137
+ /** What reaching a goal means: an event (with property filter) or a segment definition. */
138
+ export declare const GoalMatch: z.ZodObject<{
139
+ kind: z.ZodEnum<{
140
+ event: "event";
141
+ segment: "segment";
142
+ }>;
143
+ eventName: z.ZodOptional<z.ZodString>;
144
+ filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
145
+ definition: z.ZodOptional<z.ZodType<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput, z.core.$ZodTypeInternals<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput>>>;
146
+ }, z.core.$strip>;
147
+ export type GoalMatch = z.infer<typeof GoalMatch>;
148
+ export declare const WorkflowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
149
+ id: z.ZodString;
150
+ type: z.ZodLiteral<"send_email">;
151
+ config: z.ZodObject<{
152
+ templateId: z.ZodUUID;
153
+ versionId: z.ZodOptional<z.ZodUUID>;
154
+ route: z.ZodObject<{
155
+ connectionId: z.ZodOptional<z.ZodUUID>;
156
+ poolId: z.ZodOptional<z.ZodUUID>;
157
+ routePolicyId: z.ZodOptional<z.ZodUUID>;
158
+ }, z.core.$strip>;
159
+ topicId: z.ZodOptional<z.ZodUUID>;
160
+ replyToStep: z.ZodOptional<z.ZodString>;
161
+ onBlocked: z.ZodDefault<z.ZodEnum<{
162
+ continue: "continue";
163
+ exit: "exit";
164
+ }>>;
165
+ skipOnFailure: z.ZodOptional<z.ZodBoolean>;
166
+ skipIfMessagedWithinHours: z.ZodOptional<z.ZodNumber>;
167
+ filter: z.ZodOptional<z.ZodType<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput, z.core.$ZodTypeInternals<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput>>>;
168
+ retries: z.ZodOptional<z.ZodNumber>;
169
+ senderIdentityId: z.ZodOptional<z.ZodUUID>;
170
+ replyTo: z.ZodOptional<z.ZodString>;
171
+ oneClickUnsubscribe: z.ZodOptional<z.ZodBoolean>;
172
+ }, z.core.$strip>;
173
+ position: z.ZodOptional<z.ZodObject<{
174
+ x: z.ZodNumber;
175
+ y: z.ZodNumber;
176
+ }, z.core.$strip>>;
177
+ name: z.ZodOptional<z.ZodString>;
178
+ }, z.core.$strip>, z.ZodObject<{
179
+ id: z.ZodString;
180
+ type: z.ZodLiteral<"send_sms">;
181
+ config: z.ZodObject<{
182
+ templateId: z.ZodUUID;
183
+ versionId: z.ZodOptional<z.ZodUUID>;
184
+ route: z.ZodObject<{
185
+ connectionId: z.ZodOptional<z.ZodUUID>;
186
+ poolId: z.ZodOptional<z.ZodUUID>;
187
+ routePolicyId: z.ZodOptional<z.ZodUUID>;
188
+ }, z.core.$strip>;
189
+ topicId: z.ZodOptional<z.ZodUUID>;
190
+ replyToStep: z.ZodOptional<z.ZodString>;
191
+ onBlocked: z.ZodDefault<z.ZodEnum<{
192
+ continue: "continue";
193
+ exit: "exit";
194
+ }>>;
195
+ skipOnFailure: z.ZodOptional<z.ZodBoolean>;
196
+ skipIfMessagedWithinHours: z.ZodOptional<z.ZodNumber>;
197
+ filter: z.ZodOptional<z.ZodType<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput, z.core.$ZodTypeInternals<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput>>>;
198
+ retries: z.ZodOptional<z.ZodNumber>;
199
+ senderIdentityId: z.ZodOptional<z.ZodUUID>;
200
+ replyTo: z.ZodOptional<z.ZodString>;
201
+ oneClickUnsubscribe: z.ZodOptional<z.ZodBoolean>;
202
+ purpose: z.ZodOptional<z.ZodEnum<{
203
+ marketing: "marketing";
204
+ operational: "operational";
205
+ prospecting: "prospecting";
206
+ transactional: "transactional";
207
+ }>>;
208
+ }, z.core.$strip>;
209
+ position: z.ZodOptional<z.ZodObject<{
210
+ x: z.ZodNumber;
211
+ y: z.ZodNumber;
212
+ }, z.core.$strip>>;
213
+ name: z.ZodOptional<z.ZodString>;
214
+ }, z.core.$strip>, z.ZodObject<{
215
+ id: z.ZodString;
216
+ type: z.ZodLiteral<"send_whatsapp">;
217
+ config: z.ZodObject<{
218
+ templateId: z.ZodUUID;
219
+ versionId: z.ZodOptional<z.ZodUUID>;
220
+ route: z.ZodObject<{
221
+ connectionId: z.ZodOptional<z.ZodUUID>;
222
+ poolId: z.ZodOptional<z.ZodUUID>;
223
+ routePolicyId: z.ZodOptional<z.ZodUUID>;
224
+ }, z.core.$strip>;
225
+ topicId: z.ZodOptional<z.ZodUUID>;
226
+ replyToStep: z.ZodOptional<z.ZodString>;
227
+ onBlocked: z.ZodDefault<z.ZodEnum<{
228
+ continue: "continue";
229
+ exit: "exit";
230
+ }>>;
231
+ skipOnFailure: z.ZodOptional<z.ZodBoolean>;
232
+ skipIfMessagedWithinHours: z.ZodOptional<z.ZodNumber>;
233
+ filter: z.ZodOptional<z.ZodType<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput, z.core.$ZodTypeInternals<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput>>>;
234
+ retries: z.ZodOptional<z.ZodNumber>;
235
+ senderIdentityId: z.ZodOptional<z.ZodUUID>;
236
+ replyTo: z.ZodOptional<z.ZodString>;
237
+ oneClickUnsubscribe: z.ZodOptional<z.ZodBoolean>;
238
+ purpose: z.ZodOptional<z.ZodEnum<{
239
+ marketing: "marketing";
240
+ operational: "operational";
241
+ prospecting: "prospecting";
242
+ transactional: "transactional";
243
+ }>>;
244
+ }, z.core.$strip>;
245
+ position: z.ZodOptional<z.ZodObject<{
246
+ x: z.ZodNumber;
247
+ y: z.ZodNumber;
248
+ }, z.core.$strip>>;
249
+ name: z.ZodOptional<z.ZodString>;
250
+ }, z.core.$strip>, z.ZodObject<{
251
+ id: z.ZodString;
252
+ type: z.ZodLiteral<"send_push">;
253
+ config: z.ZodObject<{
254
+ templateId: z.ZodUUID;
255
+ versionId: z.ZodOptional<z.ZodUUID>;
256
+ route: z.ZodObject<{
257
+ connectionId: z.ZodOptional<z.ZodUUID>;
258
+ poolId: z.ZodOptional<z.ZodUUID>;
259
+ routePolicyId: z.ZodOptional<z.ZodUUID>;
260
+ }, z.core.$strip>;
261
+ topicId: z.ZodOptional<z.ZodUUID>;
262
+ replyToStep: z.ZodOptional<z.ZodString>;
263
+ onBlocked: z.ZodDefault<z.ZodEnum<{
264
+ continue: "continue";
265
+ exit: "exit";
266
+ }>>;
267
+ skipOnFailure: z.ZodOptional<z.ZodBoolean>;
268
+ skipIfMessagedWithinHours: z.ZodOptional<z.ZodNumber>;
269
+ filter: z.ZodOptional<z.ZodType<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput, z.core.$ZodTypeInternals<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput>>>;
270
+ retries: z.ZodOptional<z.ZodNumber>;
271
+ senderIdentityId: z.ZodOptional<z.ZodUUID>;
272
+ replyTo: z.ZodOptional<z.ZodString>;
273
+ oneClickUnsubscribe: z.ZodOptional<z.ZodBoolean>;
274
+ purpose: z.ZodOptional<z.ZodEnum<{
275
+ marketing: "marketing";
276
+ operational: "operational";
277
+ prospecting: "prospecting";
278
+ transactional: "transactional";
279
+ }>>;
280
+ push: z.ZodOptional<z.ZodObject<{
281
+ imageUrl: z.ZodOptional<z.ZodString>;
282
+ url: z.ZodOptional<z.ZodString>;
283
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
284
+ badge: z.ZodOptional<z.ZodNumber>;
285
+ sound: z.ZodOptional<z.ZodString>;
286
+ ttlSeconds: z.ZodOptional<z.ZodNumber>;
287
+ priority: z.ZodOptional<z.ZodEnum<{
288
+ high: "high";
289
+ normal: "normal";
290
+ }>>;
291
+ collapseKey: z.ZodOptional<z.ZodString>;
292
+ ios: z.ZodOptional<z.ZodObject<{
293
+ title: z.ZodOptional<z.ZodString>;
294
+ body: z.ZodOptional<z.ZodString>;
295
+ imageUrl: z.ZodOptional<z.ZodURL>;
296
+ url: z.ZodOptional<z.ZodString>;
297
+ sound: z.ZodOptional<z.ZodString>;
298
+ badge: z.ZodOptional<z.ZodNumber>;
299
+ }, z.core.$strip>>;
300
+ android: z.ZodOptional<z.ZodObject<{
301
+ title: z.ZodOptional<z.ZodString>;
302
+ body: z.ZodOptional<z.ZodString>;
303
+ imageUrl: z.ZodOptional<z.ZodURL>;
304
+ url: z.ZodOptional<z.ZodString>;
305
+ sound: z.ZodOptional<z.ZodString>;
306
+ badge: z.ZodOptional<z.ZodNumber>;
307
+ }, z.core.$strip>>;
308
+ web: z.ZodOptional<z.ZodObject<{
309
+ title: z.ZodOptional<z.ZodString>;
310
+ body: z.ZodOptional<z.ZodString>;
311
+ imageUrl: z.ZodOptional<z.ZodURL>;
312
+ url: z.ZodOptional<z.ZodString>;
313
+ sound: z.ZodOptional<z.ZodString>;
314
+ badge: z.ZodOptional<z.ZodNumber>;
315
+ }, z.core.$strip>>;
316
+ }, z.core.$strip>>;
317
+ }, z.core.$strip>;
318
+ position: z.ZodOptional<z.ZodObject<{
319
+ x: z.ZodNumber;
320
+ y: z.ZodNumber;
321
+ }, z.core.$strip>>;
322
+ name: z.ZodOptional<z.ZodString>;
323
+ }, z.core.$strip>, z.ZodObject<{
324
+ id: z.ZodString;
325
+ type: z.ZodLiteral<"send_transactional_email">;
326
+ config: z.ZodObject<{
327
+ templateId: z.ZodUUID;
328
+ versionId: z.ZodOptional<z.ZodUUID>;
329
+ route: z.ZodObject<{
330
+ connectionId: z.ZodOptional<z.ZodUUID>;
331
+ poolId: z.ZodOptional<z.ZodUUID>;
332
+ routePolicyId: z.ZodOptional<z.ZodUUID>;
333
+ }, z.core.$strip>;
334
+ topicId: z.ZodOptional<z.ZodUUID>;
335
+ replyToStep: z.ZodOptional<z.ZodString>;
336
+ onBlocked: z.ZodDefault<z.ZodEnum<{
337
+ continue: "continue";
338
+ exit: "exit";
339
+ }>>;
340
+ skipOnFailure: z.ZodOptional<z.ZodBoolean>;
341
+ skipIfMessagedWithinHours: z.ZodOptional<z.ZodNumber>;
342
+ filter: z.ZodOptional<z.ZodType<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput, z.core.$ZodTypeInternals<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput>>>;
343
+ retries: z.ZodOptional<z.ZodNumber>;
344
+ senderIdentityId: z.ZodOptional<z.ZodUUID>;
345
+ replyTo: z.ZodOptional<z.ZodString>;
346
+ oneClickUnsubscribe: z.ZodOptional<z.ZodBoolean>;
347
+ }, z.core.$strip>;
348
+ position: z.ZodOptional<z.ZodObject<{
349
+ x: z.ZodNumber;
350
+ y: z.ZodNumber;
351
+ }, z.core.$strip>>;
352
+ name: z.ZodOptional<z.ZodString>;
353
+ }, z.core.$strip>, z.ZodObject<{
354
+ id: z.ZodString;
355
+ type: z.ZodLiteral<"send_postcard">;
356
+ config: z.ZodObject<{
357
+ design: z.ZodObject<{
358
+ size: z.ZodDefault<z.ZodEnum<{
359
+ "6x4": "6x4";
360
+ "9x6": "9x6";
361
+ }>>;
362
+ front: z.ZodString;
363
+ back: z.ZodString;
364
+ }, z.core.$strip>;
365
+ route: z.ZodObject<{
366
+ connectionId: z.ZodOptional<z.ZodUUID>;
367
+ poolId: z.ZodOptional<z.ZodUUID>;
368
+ routePolicyId: z.ZodOptional<z.ZodUUID>;
369
+ }, z.core.$strip>;
370
+ purpose: z.ZodOptional<z.ZodEnum<{
371
+ marketing: "marketing";
372
+ operational: "operational";
373
+ prospecting: "prospecting";
374
+ transactional: "transactional";
375
+ }>>;
376
+ onBlocked: z.ZodDefault<z.ZodEnum<{
377
+ continue: "continue";
378
+ exit: "exit";
379
+ }>>;
380
+ skipOnFailure: z.ZodOptional<z.ZodBoolean>;
381
+ }, z.core.$strip>;
382
+ position: z.ZodOptional<z.ZodObject<{
383
+ x: z.ZodNumber;
384
+ y: z.ZodNumber;
385
+ }, z.core.$strip>>;
386
+ name: z.ZodOptional<z.ZodString>;
387
+ }, z.core.$strip>, z.ZodObject<{
388
+ id: z.ZodString;
389
+ type: z.ZodLiteral<"notify_internal">;
390
+ config: z.ZodDefault<z.ZodObject<{
391
+ title: z.ZodOptional<z.ZodString>;
392
+ subject: z.ZodOptional<z.ZodString>;
393
+ body: z.ZodOptional<z.ZodString>;
394
+ to: z.ZodDefault<z.ZodObject<{
395
+ userIds: z.ZodDefault<z.ZodArray<z.ZodUUID>>;
396
+ emails: z.ZodDefault<z.ZodArray<z.ZodEmail>>;
397
+ slackWebhookUrl: z.ZodOptional<z.ZodURL>;
398
+ webhookUrl: z.ZodOptional<z.ZodURL>;
399
+ discordWebhookUrl: z.ZodOptional<z.ZodURL>;
400
+ }, z.core.$strip>>;
401
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
402
+ }, z.core.$strip>>;
403
+ position: z.ZodOptional<z.ZodObject<{
404
+ x: z.ZodNumber;
405
+ y: z.ZodNumber;
406
+ }, z.core.$strip>>;
407
+ name: z.ZodOptional<z.ZodString>;
408
+ }, z.core.$strip>, z.ZodObject<{
409
+ id: z.ZodString;
410
+ type: z.ZodLiteral<"create_task">;
411
+ config: z.ZodDefault<z.ZodObject<{
412
+ title: z.ZodOptional<z.ZodString>;
413
+ kind: z.ZodOptional<z.ZodEnum<{
414
+ call: "call";
415
+ custom: "custom";
416
+ linkedin_connect: "linkedin_connect";
417
+ linkedin_message: "linkedin_message";
418
+ linkedin_visit: "linkedin_visit";
419
+ manual_email: "manual_email";
420
+ reply_received: "reply_received";
421
+ sms: "sms";
422
+ whatsapp: "whatsapp";
423
+ }>>;
424
+ assigneeUserId: z.ZodOptional<z.ZodUUID>;
425
+ notes: z.ZodOptional<z.ZodString>;
426
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
427
+ }, z.core.$strip>>;
428
+ position: z.ZodOptional<z.ZodObject<{
429
+ x: z.ZodNumber;
430
+ y: z.ZodNumber;
431
+ }, z.core.$strip>>;
432
+ name: z.ZodOptional<z.ZodString>;
433
+ }, z.core.$strip>, z.ZodObject<{
434
+ id: z.ZodString;
435
+ type: z.ZodLiteral<"send_webhook">;
436
+ config: z.ZodObject<{
437
+ webhookTemplateId: z.ZodOptional<z.ZodUUID>;
438
+ url: z.ZodOptional<z.ZodURL>;
439
+ method: z.ZodOptional<z.ZodEnum<{
440
+ DELETE: "DELETE";
441
+ GET: "GET";
442
+ HEAD: "HEAD";
443
+ OPTIONS: "OPTIONS";
444
+ PATCH: "PATCH";
445
+ POST: "POST";
446
+ PUT: "PUT";
447
+ }>>;
448
+ bodyFormat: z.ZodDefault<z.ZodEnum<{
449
+ form: "form";
450
+ json: "json";
451
+ text: "text";
452
+ xml: "xml";
453
+ }>>;
454
+ rawBody: z.ZodOptional<z.ZodString>;
455
+ authHeaders: z.ZodOptional<z.ZodArray<z.ZodObject<{
456
+ header: z.ZodString;
457
+ secretName: z.ZodString;
458
+ prefix: z.ZodOptional<z.ZodString>;
459
+ }, z.core.$strip>>>;
460
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
461
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
462
+ maxAttempts: z.ZodDefault<z.ZodNumber>;
463
+ signingSecret: z.ZodOptional<z.ZodString>;
464
+ signingSecretSealed: z.ZodOptional<z.ZodString>;
465
+ signingSecretSet: z.ZodOptional<z.ZodBoolean>;
466
+ responseMap: z.ZodDefault<z.ZodArray<z.ZodObject<{
467
+ path: z.ZodString;
468
+ field: z.ZodString;
469
+ }, z.core.$strip>>>;
470
+ inputFields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
471
+ awaitResponse: z.ZodDefault<z.ZodBoolean>;
472
+ awaitCallback: z.ZodDefault<z.ZodBoolean>;
473
+ responseTimeout: z.ZodDefault<z.ZodObject<{
474
+ amount: z.ZodNumber;
475
+ unit: z.ZodEnum<{
476
+ days: "days";
477
+ hours: "hours";
478
+ minutes: "minutes";
479
+ weeks: "weeks";
480
+ }>;
481
+ }, z.core.$strip>>;
482
+ }, z.core.$strip>;
483
+ position: z.ZodOptional<z.ZodObject<{
484
+ x: z.ZodNumber;
485
+ y: z.ZodNumber;
486
+ }, z.core.$strip>>;
487
+ name: z.ZodOptional<z.ZodString>;
488
+ }, z.core.$strip>, z.ZodObject<{
489
+ id: z.ZodString;
490
+ type: z.ZodLiteral<"add_note">;
491
+ config: z.ZodObject<{
492
+ body: z.ZodString;
493
+ }, z.core.$strip>;
494
+ position: z.ZodOptional<z.ZodObject<{
495
+ x: z.ZodNumber;
496
+ y: z.ZodNumber;
497
+ }, z.core.$strip>>;
498
+ name: z.ZodOptional<z.ZodString>;
499
+ }, z.core.$strip>, z.ZodObject<{
500
+ id: z.ZodString;
501
+ type: z.ZodLiteral<"show_in_app">;
502
+ config: z.ZodObject<{
503
+ messageId: z.ZodUUID;
504
+ expiresInHours: z.ZodDefault<z.ZodNumber>;
505
+ }, z.core.$strip>;
506
+ position: z.ZodOptional<z.ZodObject<{
507
+ x: z.ZodNumber;
508
+ y: z.ZodNumber;
509
+ }, z.core.$strip>>;
510
+ name: z.ZodOptional<z.ZodString>;
511
+ }, z.core.$strip>, z.ZodObject<{
512
+ id: z.ZodString;
513
+ type: z.ZodLiteral<"if_else">;
514
+ config: z.ZodObject<{
515
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
516
+ op: z.ZodEnum<{
517
+ contains: "contains";
518
+ eq: "eq";
519
+ exists: "exists";
520
+ gt: "gt";
521
+ gte: "gte";
522
+ lt: "lt";
523
+ lte: "lte";
524
+ ne: "ne";
525
+ not_exists: "not_exists";
526
+ }>;
527
+ value: z.ZodOptional<z.ZodUnknown>;
528
+ kind: z.ZodLiteral<"field">;
529
+ field: z.ZodString;
530
+ }, z.core.$strip>, z.ZodObject<{
531
+ kind: z.ZodLiteral<"tag">;
532
+ name: z.ZodString;
533
+ }, z.core.$strip>, z.ZodObject<{
534
+ kind: z.ZodLiteral<"in_list">;
535
+ listId: z.ZodUUID;
536
+ }, z.core.$strip>, z.ZodObject<{
537
+ kind: z.ZodLiteral<"in_segment">;
538
+ segmentId: z.ZodUUID;
539
+ }, z.core.$strip>, z.ZodObject<{
540
+ kind: z.ZodLiteral<"consent">;
541
+ channel: z.ZodEnum<{
542
+ email: "email";
543
+ postcard: "postcard";
544
+ push: "push";
545
+ sms: "sms";
546
+ whatsapp: "whatsapp";
547
+ }>;
548
+ purpose: z.ZodDefault<z.ZodEnum<{
549
+ marketing: "marketing";
550
+ operational: "operational";
551
+ prospecting: "prospecting";
552
+ transactional: "transactional";
553
+ }>>;
554
+ }, z.core.$strip>, z.ZodObject<{
555
+ op: z.ZodEnum<{
556
+ contains: "contains";
557
+ eq: "eq";
558
+ exists: "exists";
559
+ gt: "gt";
560
+ gte: "gte";
561
+ lt: "lt";
562
+ lte: "lte";
563
+ ne: "ne";
564
+ not_exists: "not_exists";
565
+ }>;
566
+ value: z.ZodOptional<z.ZodUnknown>;
567
+ kind: z.ZodLiteral<"trigger">;
568
+ path: z.ZodString;
569
+ }, z.core.$strip>, z.ZodObject<{
570
+ op: z.ZodEnum<{
571
+ contains: "contains";
572
+ eq: "eq";
573
+ exists: "exists";
574
+ gt: "gt";
575
+ gte: "gte";
576
+ lt: "lt";
577
+ lte: "lte";
578
+ ne: "ne";
579
+ not_exists: "not_exists";
580
+ }>;
581
+ value: z.ZodOptional<z.ZodUnknown>;
582
+ kind: z.ZodLiteral<"var">;
583
+ key: z.ZodString;
584
+ }, z.core.$strip>, z.ZodObject<{
585
+ kind: z.ZodLiteral<"definition">;
586
+ definition: z.ZodType<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput, z.core.$ZodTypeInternals<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput>>;
587
+ }, z.core.$strip>, z.ZodObject<{
588
+ kind: z.ZodLiteral<"field_changed">;
589
+ field: z.ZodString;
590
+ from: z.ZodOptional<z.ZodUnknown>;
591
+ to: z.ZodOptional<z.ZodUnknown>;
592
+ }, z.core.$strip>, z.ZodObject<{
593
+ kind: z.ZodLiteral<"in_workflow">;
594
+ workflowId: z.ZodUUID;
595
+ state: z.ZodDefault<z.ZodEnum<{
596
+ active: "active";
597
+ completed: "completed";
598
+ ever: "ever";
599
+ }>>;
600
+ }, z.core.$strip>, z.ZodObject<{
601
+ kind: z.ZodLiteral<"time">;
602
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
603
+ startMin: z.ZodOptional<z.ZodNumber>;
604
+ endMin: z.ZodOptional<z.ZodNumber>;
605
+ tz: z.ZodOptional<z.ZodString>;
606
+ }, z.core.$strip>, z.ZodObject<{
607
+ kind: z.ZodLiteral<"push_token">;
608
+ platform: z.ZodOptional<z.ZodEnum<{
609
+ android: "android";
610
+ ios: "ios";
611
+ web: "web";
612
+ }>>;
613
+ }, z.core.$strip>, z.ZodObject<{
614
+ kind: z.ZodLiteral<"date">;
615
+ source: z.ZodDefault<z.ZodEnum<{
616
+ field: "field";
617
+ trigger: "trigger";
618
+ var: "var";
619
+ }>>;
620
+ path: z.ZodString;
621
+ op: z.ZodEnum<{
622
+ after: "after";
623
+ anniversary_within_days: "anniversary_within_days";
624
+ before: "before";
625
+ today: "today";
626
+ within_next_days: "within_next_days";
627
+ within_past_days: "within_past_days";
628
+ }>;
629
+ days: z.ZodDefault<z.ZodNumber>;
630
+ }, z.core.$strip>], "kind">;
631
+ }, z.core.$strip>;
632
+ position: z.ZodOptional<z.ZodObject<{
633
+ x: z.ZodNumber;
634
+ y: z.ZodNumber;
635
+ }, z.core.$strip>>;
636
+ name: z.ZodOptional<z.ZodString>;
637
+ }, z.core.$strip>, z.ZodObject<{
638
+ id: z.ZodString;
639
+ type: z.ZodLiteral<"multi_branch">;
640
+ config: z.ZodObject<{
641
+ branches: z.ZodArray<z.ZodObject<{
642
+ key: z.ZodString;
643
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
644
+ op: z.ZodEnum<{
645
+ contains: "contains";
646
+ eq: "eq";
647
+ exists: "exists";
648
+ gt: "gt";
649
+ gte: "gte";
650
+ lt: "lt";
651
+ lte: "lte";
652
+ ne: "ne";
653
+ not_exists: "not_exists";
654
+ }>;
655
+ value: z.ZodOptional<z.ZodUnknown>;
656
+ kind: z.ZodLiteral<"field">;
657
+ field: z.ZodString;
658
+ }, z.core.$strip>, z.ZodObject<{
659
+ kind: z.ZodLiteral<"tag">;
660
+ name: z.ZodString;
661
+ }, z.core.$strip>, z.ZodObject<{
662
+ kind: z.ZodLiteral<"in_list">;
663
+ listId: z.ZodUUID;
664
+ }, z.core.$strip>, z.ZodObject<{
665
+ kind: z.ZodLiteral<"in_segment">;
666
+ segmentId: z.ZodUUID;
667
+ }, z.core.$strip>, z.ZodObject<{
668
+ kind: z.ZodLiteral<"consent">;
669
+ channel: z.ZodEnum<{
670
+ email: "email";
671
+ postcard: "postcard";
672
+ push: "push";
673
+ sms: "sms";
674
+ whatsapp: "whatsapp";
675
+ }>;
676
+ purpose: z.ZodDefault<z.ZodEnum<{
677
+ marketing: "marketing";
678
+ operational: "operational";
679
+ prospecting: "prospecting";
680
+ transactional: "transactional";
681
+ }>>;
682
+ }, z.core.$strip>, z.ZodObject<{
683
+ op: z.ZodEnum<{
684
+ contains: "contains";
685
+ eq: "eq";
686
+ exists: "exists";
687
+ gt: "gt";
688
+ gte: "gte";
689
+ lt: "lt";
690
+ lte: "lte";
691
+ ne: "ne";
692
+ not_exists: "not_exists";
693
+ }>;
694
+ value: z.ZodOptional<z.ZodUnknown>;
695
+ kind: z.ZodLiteral<"trigger">;
696
+ path: z.ZodString;
697
+ }, z.core.$strip>, z.ZodObject<{
698
+ op: z.ZodEnum<{
699
+ contains: "contains";
700
+ eq: "eq";
701
+ exists: "exists";
702
+ gt: "gt";
703
+ gte: "gte";
704
+ lt: "lt";
705
+ lte: "lte";
706
+ ne: "ne";
707
+ not_exists: "not_exists";
708
+ }>;
709
+ value: z.ZodOptional<z.ZodUnknown>;
710
+ kind: z.ZodLiteral<"var">;
711
+ key: z.ZodString;
712
+ }, z.core.$strip>, z.ZodObject<{
713
+ kind: z.ZodLiteral<"definition">;
714
+ definition: z.ZodType<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput, z.core.$ZodTypeInternals<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput>>;
715
+ }, z.core.$strip>, z.ZodObject<{
716
+ kind: z.ZodLiteral<"field_changed">;
717
+ field: z.ZodString;
718
+ from: z.ZodOptional<z.ZodUnknown>;
719
+ to: z.ZodOptional<z.ZodUnknown>;
720
+ }, z.core.$strip>, z.ZodObject<{
721
+ kind: z.ZodLiteral<"in_workflow">;
722
+ workflowId: z.ZodUUID;
723
+ state: z.ZodDefault<z.ZodEnum<{
724
+ active: "active";
725
+ completed: "completed";
726
+ ever: "ever";
727
+ }>>;
728
+ }, z.core.$strip>, z.ZodObject<{
729
+ kind: z.ZodLiteral<"time">;
730
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
731
+ startMin: z.ZodOptional<z.ZodNumber>;
732
+ endMin: z.ZodOptional<z.ZodNumber>;
733
+ tz: z.ZodOptional<z.ZodString>;
734
+ }, z.core.$strip>, z.ZodObject<{
735
+ kind: z.ZodLiteral<"push_token">;
736
+ platform: z.ZodOptional<z.ZodEnum<{
737
+ android: "android";
738
+ ios: "ios";
739
+ web: "web";
740
+ }>>;
741
+ }, z.core.$strip>, z.ZodObject<{
742
+ kind: z.ZodLiteral<"date">;
743
+ source: z.ZodDefault<z.ZodEnum<{
744
+ field: "field";
745
+ trigger: "trigger";
746
+ var: "var";
747
+ }>>;
748
+ path: z.ZodString;
749
+ op: z.ZodEnum<{
750
+ after: "after";
751
+ anniversary_within_days: "anniversary_within_days";
752
+ before: "before";
753
+ today: "today";
754
+ within_next_days: "within_next_days";
755
+ within_past_days: "within_past_days";
756
+ }>;
757
+ days: z.ZodDefault<z.ZodNumber>;
758
+ }, z.core.$strip>], "kind">;
759
+ weight: z.ZodDefault<z.ZodNumber>;
760
+ }, z.core.$strip>>;
761
+ pick: z.ZodDefault<z.ZodEnum<{
762
+ first: "first";
763
+ weighted: "weighted";
764
+ }>>;
765
+ }, z.core.$strip>;
766
+ position: z.ZodOptional<z.ZodObject<{
767
+ x: z.ZodNumber;
768
+ y: z.ZodNumber;
769
+ }, z.core.$strip>>;
770
+ name: z.ZodOptional<z.ZodString>;
771
+ }, z.core.$strip>, z.ZodObject<{
772
+ id: z.ZodString;
773
+ type: z.ZodLiteral<"random_split">;
774
+ config: z.ZodObject<{
775
+ splits: z.ZodArray<z.ZodObject<{
776
+ key: z.ZodString;
777
+ weight: z.ZodNumber;
778
+ }, z.core.$strip>>;
779
+ }, z.core.$strip>;
780
+ position: z.ZodOptional<z.ZodObject<{
781
+ x: z.ZodNumber;
782
+ y: z.ZodNumber;
783
+ }, z.core.$strip>>;
784
+ name: z.ZodOptional<z.ZodString>;
785
+ }, z.core.$strip>, z.ZodObject<{
786
+ id: z.ZodString;
787
+ type: z.ZodLiteral<"ab_test">;
788
+ config: z.ZodObject<{
789
+ experimentId: z.ZodOptional<z.ZodUUID>;
790
+ variants: z.ZodArray<z.ZodObject<{
791
+ key: z.ZodString;
792
+ weight: z.ZodNumber;
793
+ }, z.core.$strip>>;
794
+ autoWinner: z.ZodOptional<z.ZodObject<{
795
+ metric: z.ZodDefault<z.ZodEnum<{
796
+ clicks: "clicks";
797
+ conversions: "conversions";
798
+ opens: "opens";
799
+ replies: "replies";
800
+ revenue: "revenue";
801
+ }>>;
802
+ afterHours: z.ZodDefault<z.ZodNumber>;
803
+ minRecipients: z.ZodDefault<z.ZodNumber>;
804
+ minConversions: z.ZodDefault<z.ZodNumber>;
805
+ pBest: z.ZodDefault<z.ZodNumber>;
806
+ stopAt: z.ZodOptional<z.ZodISODateTime>;
807
+ shift: z.ZodOptional<z.ZodBoolean>;
808
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodObject<{
809
+ metric: z.ZodEnum<{
810
+ bounce: "bounce";
811
+ complaint: "complaint";
812
+ unsubscribe: "unsubscribe";
813
+ }>;
814
+ threshold: z.ZodDefault<z.ZodNumber>;
815
+ }, z.core.$strip>>>;
816
+ stopOnGuardrail: z.ZodOptional<z.ZodBoolean>;
817
+ }, z.core.$strip>>;
818
+ }, z.core.$strip>;
819
+ position: z.ZodOptional<z.ZodObject<{
820
+ x: z.ZodNumber;
821
+ y: z.ZodNumber;
822
+ }, z.core.$strip>>;
823
+ name: z.ZodOptional<z.ZodString>;
824
+ }, z.core.$strip>, z.ZodObject<{
825
+ id: z.ZodString;
826
+ type: z.ZodLiteral<"for_each_item">;
827
+ config: z.ZodObject<{
828
+ path: z.ZodString;
829
+ max: z.ZodDefault<z.ZodNumber>;
830
+ }, z.core.$strip>;
831
+ position: z.ZodOptional<z.ZodObject<{
832
+ x: z.ZodNumber;
833
+ y: z.ZodNumber;
834
+ }, z.core.$strip>>;
835
+ name: z.ZodOptional<z.ZodString>;
836
+ }, z.core.$strip>, z.ZodObject<{
837
+ id: z.ZodString;
838
+ type: z.ZodLiteral<"query_collection">;
839
+ config: z.ZodObject<{
840
+ collectionId: z.ZodUUID;
841
+ column: z.ZodString;
842
+ value: z.ZodDefault<z.ZodString>;
843
+ saveAs: z.ZodDefault<z.ZodString>;
844
+ }, z.core.$strip>;
845
+ position: z.ZodOptional<z.ZodObject<{
846
+ x: z.ZodNumber;
847
+ y: z.ZodNumber;
848
+ }, z.core.$strip>>;
849
+ name: z.ZodOptional<z.ZodString>;
850
+ }, z.core.$strip>, z.ZodObject<{
851
+ id: z.ZodString;
852
+ type: z.ZodLiteral<"switch">;
853
+ config: z.ZodObject<{
854
+ field: z.ZodString;
855
+ cases: z.ZodArray<z.ZodString>;
856
+ }, z.core.$strip>;
857
+ position: z.ZodOptional<z.ZodObject<{
858
+ x: z.ZodNumber;
859
+ y: z.ZodNumber;
860
+ }, z.core.$strip>>;
861
+ name: z.ZodOptional<z.ZodString>;
862
+ }, z.core.$strip>, z.ZodObject<{
863
+ id: z.ZodString;
864
+ type: z.ZodLiteral<"merge">;
865
+ config: z.ZodDefault<z.ZodObject<{}, z.core.$strip>>;
866
+ position: z.ZodOptional<z.ZodObject<{
867
+ x: z.ZodNumber;
868
+ y: z.ZodNumber;
869
+ }, z.core.$strip>>;
870
+ name: z.ZodOptional<z.ZodString>;
871
+ }, z.core.$strip>, z.ZodObject<{
872
+ id: z.ZodString;
873
+ type: z.ZodLiteral<"goto">;
874
+ config: z.ZodObject<{
875
+ target: z.ZodString;
876
+ condition: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
877
+ op: z.ZodEnum<{
878
+ contains: "contains";
879
+ eq: "eq";
880
+ exists: "exists";
881
+ gt: "gt";
882
+ gte: "gte";
883
+ lt: "lt";
884
+ lte: "lte";
885
+ ne: "ne";
886
+ not_exists: "not_exists";
887
+ }>;
888
+ value: z.ZodOptional<z.ZodUnknown>;
889
+ kind: z.ZodLiteral<"field">;
890
+ field: z.ZodString;
891
+ }, z.core.$strip>, z.ZodObject<{
892
+ kind: z.ZodLiteral<"tag">;
893
+ name: z.ZodString;
894
+ }, z.core.$strip>, z.ZodObject<{
895
+ kind: z.ZodLiteral<"in_list">;
896
+ listId: z.ZodUUID;
897
+ }, z.core.$strip>, z.ZodObject<{
898
+ kind: z.ZodLiteral<"in_segment">;
899
+ segmentId: z.ZodUUID;
900
+ }, z.core.$strip>, z.ZodObject<{
901
+ kind: z.ZodLiteral<"consent">;
902
+ channel: z.ZodEnum<{
903
+ email: "email";
904
+ postcard: "postcard";
905
+ push: "push";
906
+ sms: "sms";
907
+ whatsapp: "whatsapp";
908
+ }>;
909
+ purpose: z.ZodDefault<z.ZodEnum<{
910
+ marketing: "marketing";
911
+ operational: "operational";
912
+ prospecting: "prospecting";
913
+ transactional: "transactional";
914
+ }>>;
915
+ }, z.core.$strip>, z.ZodObject<{
916
+ op: z.ZodEnum<{
917
+ contains: "contains";
918
+ eq: "eq";
919
+ exists: "exists";
920
+ gt: "gt";
921
+ gte: "gte";
922
+ lt: "lt";
923
+ lte: "lte";
924
+ ne: "ne";
925
+ not_exists: "not_exists";
926
+ }>;
927
+ value: z.ZodOptional<z.ZodUnknown>;
928
+ kind: z.ZodLiteral<"trigger">;
929
+ path: z.ZodString;
930
+ }, z.core.$strip>, z.ZodObject<{
931
+ op: z.ZodEnum<{
932
+ contains: "contains";
933
+ eq: "eq";
934
+ exists: "exists";
935
+ gt: "gt";
936
+ gte: "gte";
937
+ lt: "lt";
938
+ lte: "lte";
939
+ ne: "ne";
940
+ not_exists: "not_exists";
941
+ }>;
942
+ value: z.ZodOptional<z.ZodUnknown>;
943
+ kind: z.ZodLiteral<"var">;
944
+ key: z.ZodString;
945
+ }, z.core.$strip>, z.ZodObject<{
946
+ kind: z.ZodLiteral<"definition">;
947
+ definition: z.ZodType<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput, z.core.$ZodTypeInternals<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput>>;
948
+ }, z.core.$strip>, z.ZodObject<{
949
+ kind: z.ZodLiteral<"field_changed">;
950
+ field: z.ZodString;
951
+ from: z.ZodOptional<z.ZodUnknown>;
952
+ to: z.ZodOptional<z.ZodUnknown>;
953
+ }, z.core.$strip>, z.ZodObject<{
954
+ kind: z.ZodLiteral<"in_workflow">;
955
+ workflowId: z.ZodUUID;
956
+ state: z.ZodDefault<z.ZodEnum<{
957
+ active: "active";
958
+ completed: "completed";
959
+ ever: "ever";
960
+ }>>;
961
+ }, z.core.$strip>, z.ZodObject<{
962
+ kind: z.ZodLiteral<"time">;
963
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
964
+ startMin: z.ZodOptional<z.ZodNumber>;
965
+ endMin: z.ZodOptional<z.ZodNumber>;
966
+ tz: z.ZodOptional<z.ZodString>;
967
+ }, z.core.$strip>, z.ZodObject<{
968
+ kind: z.ZodLiteral<"push_token">;
969
+ platform: z.ZodOptional<z.ZodEnum<{
970
+ android: "android";
971
+ ios: "ios";
972
+ web: "web";
973
+ }>>;
974
+ }, z.core.$strip>, z.ZodObject<{
975
+ kind: z.ZodLiteral<"date">;
976
+ source: z.ZodDefault<z.ZodEnum<{
977
+ field: "field";
978
+ trigger: "trigger";
979
+ var: "var";
980
+ }>>;
981
+ path: z.ZodString;
982
+ op: z.ZodEnum<{
983
+ after: "after";
984
+ anniversary_within_days: "anniversary_within_days";
985
+ before: "before";
986
+ today: "today";
987
+ within_next_days: "within_next_days";
988
+ within_past_days: "within_past_days";
989
+ }>;
990
+ days: z.ZodDefault<z.ZodNumber>;
991
+ }, z.core.$strip>], "kind">>;
992
+ }, z.core.$strip>;
993
+ position: z.ZodOptional<z.ZodObject<{
994
+ x: z.ZodNumber;
995
+ y: z.ZodNumber;
996
+ }, z.core.$strip>>;
997
+ name: z.ZodOptional<z.ZodString>;
998
+ }, z.core.$strip>, z.ZodObject<{
999
+ id: z.ZodString;
1000
+ type: z.ZodLiteral<"exit_workflow">;
1001
+ config: z.ZodObject<{
1002
+ workflowId: z.ZodUUID;
1003
+ reason: z.ZodDefault<z.ZodString>;
1004
+ }, z.core.$strip>;
1005
+ position: z.ZodOptional<z.ZodObject<{
1006
+ x: z.ZodNumber;
1007
+ y: z.ZodNumber;
1008
+ }, z.core.$strip>>;
1009
+ name: z.ZodOptional<z.ZodString>;
1010
+ }, z.core.$strip>, z.ZodObject<{
1011
+ id: z.ZodString;
1012
+ type: z.ZodLiteral<"exit">;
1013
+ config: z.ZodDefault<z.ZodObject<{
1014
+ reason: z.ZodDefault<z.ZodString>;
1015
+ }, z.core.$strip>>;
1016
+ position: z.ZodOptional<z.ZodObject<{
1017
+ x: z.ZodNumber;
1018
+ y: z.ZodNumber;
1019
+ }, z.core.$strip>>;
1020
+ name: z.ZodOptional<z.ZodString>;
1021
+ }, z.core.$strip>, z.ZodObject<{
1022
+ id: z.ZodString;
1023
+ type: z.ZodLiteral<"enroll_workflow">;
1024
+ config: z.ZodObject<{
1025
+ workflowId: z.ZodUUID;
1026
+ }, z.core.$strip>;
1027
+ position: z.ZodOptional<z.ZodObject<{
1028
+ x: z.ZodNumber;
1029
+ y: z.ZodNumber;
1030
+ }, z.core.$strip>>;
1031
+ name: z.ZodOptional<z.ZodString>;
1032
+ }, z.core.$strip>, z.ZodObject<{
1033
+ id: z.ZodString;
1034
+ type: z.ZodLiteral<"delay">;
1035
+ config: z.ZodObject<{
1036
+ duration: z.ZodObject<{
1037
+ amount: z.ZodNumber;
1038
+ unit: z.ZodEnum<{
1039
+ days: "days";
1040
+ hours: "hours";
1041
+ minutes: "minutes";
1042
+ weeks: "weeks";
1043
+ }>;
1044
+ }, z.core.$strip>;
1045
+ mode: z.ZodDefault<z.ZodEnum<{
1046
+ calendar: "calendar";
1047
+ exact: "exact";
1048
+ }>>;
1049
+ atTime: z.ZodOptional<z.ZodString>;
1050
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1051
+ tz: z.ZodOptional<z.ZodString>;
1052
+ }, z.core.$strip>;
1053
+ position: z.ZodOptional<z.ZodObject<{
1054
+ x: z.ZodNumber;
1055
+ y: z.ZodNumber;
1056
+ }, z.core.$strip>>;
1057
+ name: z.ZodOptional<z.ZodString>;
1058
+ }, z.core.$strip>, z.ZodObject<{
1059
+ id: z.ZodString;
1060
+ type: z.ZodLiteral<"wait_until_date">;
1061
+ config: z.ZodObject<{
1062
+ attribute: z.ZodOptional<z.ZodString>;
1063
+ at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1064
+ offsetDays: z.ZodDefault<z.ZodNumber>;
1065
+ yearly: z.ZodDefault<z.ZodBoolean>;
1066
+ }, z.core.$strip>;
1067
+ position: z.ZodOptional<z.ZodObject<{
1068
+ x: z.ZodNumber;
1069
+ y: z.ZodNumber;
1070
+ }, z.core.$strip>>;
1071
+ name: z.ZodOptional<z.ZodString>;
1072
+ }, z.core.$strip>, z.ZodObject<{
1073
+ id: z.ZodString;
1074
+ type: z.ZodLiteral<"batch">;
1075
+ config: z.ZodObject<{
1076
+ window: z.ZodObject<{
1077
+ amount: z.ZodNumber;
1078
+ unit: z.ZodEnum<{
1079
+ days: "days";
1080
+ hours: "hours";
1081
+ minutes: "minutes";
1082
+ weeks: "weeks";
1083
+ }>;
1084
+ }, z.core.$strip>;
1085
+ }, z.core.$strip>;
1086
+ position: z.ZodOptional<z.ZodObject<{
1087
+ x: z.ZodNumber;
1088
+ y: z.ZodNumber;
1089
+ }, z.core.$strip>>;
1090
+ name: z.ZodOptional<z.ZodString>;
1091
+ }, z.core.$strip>, z.ZodObject<{
1092
+ id: z.ZodString;
1093
+ type: z.ZodLiteral<"wait_best_send_time">;
1094
+ config: z.ZodDefault<z.ZodObject<{}, z.core.$strip>>;
1095
+ position: z.ZodOptional<z.ZodObject<{
1096
+ x: z.ZodNumber;
1097
+ y: z.ZodNumber;
1098
+ }, z.core.$strip>>;
1099
+ name: z.ZodOptional<z.ZodString>;
1100
+ }, z.core.$strip>, z.ZodObject<{
1101
+ id: z.ZodString;
1102
+ type: z.ZodLiteral<"wait_for_event">;
1103
+ config: z.ZodObject<{
1104
+ eventName: z.ZodString;
1105
+ filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1106
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1107
+ property: z.ZodString;
1108
+ op: z.ZodDefault<z.ZodEnum<{
1109
+ between: "between";
1110
+ contains: "contains";
1111
+ ends_with: "ends_with";
1112
+ eq: "eq";
1113
+ exists: "exists";
1114
+ gt: "gt";
1115
+ gte: "gte";
1116
+ in: "in";
1117
+ lt: "lt";
1118
+ lte: "lte";
1119
+ neq: "neq";
1120
+ not_contains: "not_contains";
1121
+ not_exists: "not_exists";
1122
+ not_in: "not_in";
1123
+ starts_with: "starts_with";
1124
+ }>>;
1125
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>;
1126
+ }, z.core.$strip>>>;
1127
+ timeout: z.ZodObject<{
1128
+ amount: z.ZodNumber;
1129
+ unit: z.ZodEnum<{
1130
+ days: "days";
1131
+ hours: "hours";
1132
+ minutes: "minutes";
1133
+ weeks: "weeks";
1134
+ }>;
1135
+ }, z.core.$strip>;
1136
+ }, z.core.$strip>;
1137
+ position: z.ZodOptional<z.ZodObject<{
1138
+ x: z.ZodNumber;
1139
+ y: z.ZodNumber;
1140
+ }, z.core.$strip>>;
1141
+ name: z.ZodOptional<z.ZodString>;
1142
+ }, z.core.$strip>, z.ZodObject<{
1143
+ id: z.ZodString;
1144
+ type: z.ZodLiteral<"wait_for_any_event">;
1145
+ config: z.ZodObject<{
1146
+ events: z.ZodArray<z.ZodObject<{
1147
+ key: z.ZodString;
1148
+ eventName: z.ZodString;
1149
+ filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1150
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1151
+ property: z.ZodString;
1152
+ op: z.ZodDefault<z.ZodEnum<{
1153
+ between: "between";
1154
+ contains: "contains";
1155
+ ends_with: "ends_with";
1156
+ eq: "eq";
1157
+ exists: "exists";
1158
+ gt: "gt";
1159
+ gte: "gte";
1160
+ in: "in";
1161
+ lt: "lt";
1162
+ lte: "lte";
1163
+ neq: "neq";
1164
+ not_contains: "not_contains";
1165
+ not_exists: "not_exists";
1166
+ not_in: "not_in";
1167
+ starts_with: "starts_with";
1168
+ }>>;
1169
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>;
1170
+ }, z.core.$strip>>>;
1171
+ }, z.core.$strip>>;
1172
+ timeout: z.ZodObject<{
1173
+ amount: z.ZodNumber;
1174
+ unit: z.ZodEnum<{
1175
+ days: "days";
1176
+ hours: "hours";
1177
+ minutes: "minutes";
1178
+ weeks: "weeks";
1179
+ }>;
1180
+ }, z.core.$strip>;
1181
+ }, z.core.$strip>;
1182
+ position: z.ZodOptional<z.ZodObject<{
1183
+ x: z.ZodNumber;
1184
+ y: z.ZodNumber;
1185
+ }, z.core.$strip>>;
1186
+ name: z.ZodOptional<z.ZodString>;
1187
+ }, z.core.$strip>, z.ZodObject<{
1188
+ id: z.ZodString;
1189
+ type: z.ZodLiteral<"wait_until_condition">;
1190
+ config: z.ZodObject<{
1191
+ definition: z.ZodType<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput, z.core.$ZodTypeInternals<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput>>;
1192
+ timeout: z.ZodObject<{
1193
+ amount: z.ZodNumber;
1194
+ unit: z.ZodEnum<{
1195
+ days: "days";
1196
+ hours: "hours";
1197
+ minutes: "minutes";
1198
+ weeks: "weeks";
1199
+ }>;
1200
+ }, z.core.$strip>;
1201
+ }, z.core.$strip>;
1202
+ position: z.ZodOptional<z.ZodObject<{
1203
+ x: z.ZodNumber;
1204
+ y: z.ZodNumber;
1205
+ }, z.core.$strip>>;
1206
+ name: z.ZodOptional<z.ZodString>;
1207
+ }, z.core.$strip>, z.ZodObject<{
1208
+ id: z.ZodString;
1209
+ type: z.ZodLiteral<"wait_for_segments">;
1210
+ config: z.ZodObject<{
1211
+ branches: z.ZodArray<z.ZodObject<{
1212
+ key: z.ZodString;
1213
+ definition: z.ZodType<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput, z.core.$ZodTypeInternals<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput>>;
1214
+ }, z.core.$strip>>;
1215
+ timeout: z.ZodObject<{
1216
+ amount: z.ZodNumber;
1217
+ unit: z.ZodEnum<{
1218
+ days: "days";
1219
+ hours: "hours";
1220
+ minutes: "minutes";
1221
+ weeks: "weeks";
1222
+ }>;
1223
+ }, z.core.$strip>;
1224
+ }, z.core.$strip>;
1225
+ position: z.ZodOptional<z.ZodObject<{
1226
+ x: z.ZodNumber;
1227
+ y: z.ZodNumber;
1228
+ }, z.core.$strip>>;
1229
+ name: z.ZodOptional<z.ZodString>;
1230
+ }, z.core.$strip>, z.ZodObject<{
1231
+ id: z.ZodString;
1232
+ type: z.ZodLiteral<"wait_for_attribute_change">;
1233
+ config: z.ZodObject<{
1234
+ field: z.ZodString;
1235
+ from: z.ZodOptional<z.ZodUnknown>;
1236
+ to: z.ZodOptional<z.ZodUnknown>;
1237
+ timeout: z.ZodObject<{
1238
+ amount: z.ZodNumber;
1239
+ unit: z.ZodEnum<{
1240
+ days: "days";
1241
+ hours: "hours";
1242
+ minutes: "minutes";
1243
+ weeks: "weeks";
1244
+ }>;
1245
+ }, z.core.$strip>;
1246
+ }, z.core.$strip>;
1247
+ position: z.ZodOptional<z.ZodObject<{
1248
+ x: z.ZodNumber;
1249
+ y: z.ZodNumber;
1250
+ }, z.core.$strip>>;
1251
+ name: z.ZodOptional<z.ZodString>;
1252
+ }, z.core.$strip>, z.ZodObject<{
1253
+ id: z.ZodString;
1254
+ type: z.ZodLiteral<"wait_until_weekday">;
1255
+ config: z.ZodObject<{
1256
+ weekdays: z.ZodArray<z.ZodNumber>;
1257
+ time: z.ZodString;
1258
+ tz: z.ZodOptional<z.ZodString>;
1259
+ }, z.core.$strip>;
1260
+ position: z.ZodOptional<z.ZodObject<{
1261
+ x: z.ZodNumber;
1262
+ y: z.ZodNumber;
1263
+ }, z.core.$strip>>;
1264
+ name: z.ZodOptional<z.ZodString>;
1265
+ }, z.core.$strip>, z.ZodObject<{
1266
+ id: z.ZodString;
1267
+ type: z.ZodLiteral<"wait_until_reorder">;
1268
+ config: z.ZodObject<{
1269
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
1270
+ productId: z.ZodString;
1271
+ days: z.ZodNumber;
1272
+ }, z.core.$strip>>>;
1273
+ fallbackDays: z.ZodDefault<z.ZodNumber>;
1274
+ minOrders: z.ZodDefault<z.ZodNumber>;
1275
+ bufferDays: z.ZodDefault<z.ZodNumber>;
1276
+ }, z.core.$strip>;
1277
+ position: z.ZodOptional<z.ZodObject<{
1278
+ x: z.ZodNumber;
1279
+ y: z.ZodNumber;
1280
+ }, z.core.$strip>>;
1281
+ name: z.ZodOptional<z.ZodString>;
1282
+ }, z.core.$strip>, z.ZodObject<{
1283
+ id: z.ZodString;
1284
+ type: z.ZodLiteral<"random_delay">;
1285
+ config: z.ZodObject<{
1286
+ min: z.ZodObject<{
1287
+ amount: z.ZodNumber;
1288
+ unit: z.ZodEnum<{
1289
+ days: "days";
1290
+ hours: "hours";
1291
+ minutes: "minutes";
1292
+ weeks: "weeks";
1293
+ }>;
1294
+ }, z.core.$strip>;
1295
+ max: z.ZodObject<{
1296
+ amount: z.ZodNumber;
1297
+ unit: z.ZodEnum<{
1298
+ days: "days";
1299
+ hours: "hours";
1300
+ minutes: "minutes";
1301
+ weeks: "weeks";
1302
+ }>;
1303
+ }, z.core.$strip>;
1304
+ }, z.core.$strip>;
1305
+ position: z.ZodOptional<z.ZodObject<{
1306
+ x: z.ZodNumber;
1307
+ y: z.ZodNumber;
1308
+ }, z.core.$strip>>;
1309
+ name: z.ZodOptional<z.ZodString>;
1310
+ }, z.core.$strip>, z.ZodObject<{
1311
+ id: z.ZodString;
1312
+ type: z.ZodLiteral<"wait_for_engagement">;
1313
+ config: z.ZodObject<{
1314
+ kind: z.ZodEnum<{
1315
+ bounced: "bounced";
1316
+ click: "click";
1317
+ complained: "complained";
1318
+ delivered: "delivered";
1319
+ open: "open";
1320
+ reply: "reply";
1321
+ }>;
1322
+ stepKey: z.ZodOptional<z.ZodString>;
1323
+ timeout: z.ZodObject<{
1324
+ amount: z.ZodNumber;
1325
+ unit: z.ZodEnum<{
1326
+ days: "days";
1327
+ hours: "hours";
1328
+ minutes: "minutes";
1329
+ weeks: "weeks";
1330
+ }>;
1331
+ }, z.core.$strip>;
1332
+ }, z.core.$strip>;
1333
+ position: z.ZodOptional<z.ZodObject<{
1334
+ x: z.ZodNumber;
1335
+ y: z.ZodNumber;
1336
+ }, z.core.$strip>>;
1337
+ name: z.ZodOptional<z.ZodString>;
1338
+ }, z.core.$strip>, z.ZodObject<{
1339
+ id: z.ZodString;
1340
+ type: z.ZodLiteral<"business_hours">;
1341
+ config: z.ZodObject<{
1342
+ startMin: z.ZodNumber;
1343
+ endMin: z.ZodNumber;
1344
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1345
+ tz: z.ZodOptional<z.ZodString>;
1346
+ onClosed: z.ZodOptional<z.ZodEnum<{
1347
+ exit: "exit";
1348
+ wait: "wait";
1349
+ }>>;
1350
+ }, z.core.$strip>;
1351
+ position: z.ZodOptional<z.ZodObject<{
1352
+ x: z.ZodNumber;
1353
+ y: z.ZodNumber;
1354
+ }, z.core.$strip>>;
1355
+ name: z.ZodOptional<z.ZodString>;
1356
+ }, z.core.$strip>, z.ZodObject<{
1357
+ id: z.ZodString;
1358
+ type: z.ZodLiteral<"send_window">;
1359
+ config: z.ZodObject<{
1360
+ startMin: z.ZodNumber;
1361
+ endMin: z.ZodNumber;
1362
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1363
+ tz: z.ZodOptional<z.ZodString>;
1364
+ onClosed: z.ZodOptional<z.ZodEnum<{
1365
+ exit: "exit";
1366
+ wait: "wait";
1367
+ }>>;
1368
+ }, z.core.$strip>;
1369
+ position: z.ZodOptional<z.ZodObject<{
1370
+ x: z.ZodNumber;
1371
+ y: z.ZodNumber;
1372
+ }, z.core.$strip>>;
1373
+ name: z.ZodOptional<z.ZodString>;
1374
+ }, z.core.$strip>, z.ZodObject<{
1375
+ id: z.ZodString;
1376
+ type: z.ZodLiteral<"date_window">;
1377
+ config: z.ZodObject<{
1378
+ from: z.ZodOptional<z.ZodISODateTime>;
1379
+ to: z.ZodOptional<z.ZodISODateTime>;
1380
+ beforeStart: z.ZodDefault<z.ZodEnum<{
1381
+ exit: "exit";
1382
+ wait: "wait";
1383
+ }>>;
1384
+ }, z.core.$strip>;
1385
+ position: z.ZodOptional<z.ZodObject<{
1386
+ x: z.ZodNumber;
1387
+ y: z.ZodNumber;
1388
+ }, z.core.$strip>>;
1389
+ name: z.ZodOptional<z.ZodString>;
1390
+ }, z.core.$strip>, z.ZodObject<{
1391
+ id: z.ZodString;
1392
+ type: z.ZodLiteral<"add_tag">;
1393
+ config: z.ZodObject<{
1394
+ name: z.ZodString;
1395
+ }, z.core.$strip>;
1396
+ position: z.ZodOptional<z.ZodObject<{
1397
+ x: z.ZodNumber;
1398
+ y: z.ZodNumber;
1399
+ }, z.core.$strip>>;
1400
+ name: z.ZodOptional<z.ZodString>;
1401
+ }, z.core.$strip>, z.ZodObject<{
1402
+ id: z.ZodString;
1403
+ type: z.ZodLiteral<"remove_tag">;
1404
+ config: z.ZodObject<{
1405
+ name: z.ZodString;
1406
+ }, z.core.$strip>;
1407
+ position: z.ZodOptional<z.ZodObject<{
1408
+ x: z.ZodNumber;
1409
+ y: z.ZodNumber;
1410
+ }, z.core.$strip>>;
1411
+ name: z.ZodOptional<z.ZodString>;
1412
+ }, z.core.$strip>, z.ZodObject<{
1413
+ id: z.ZodString;
1414
+ type: z.ZodLiteral<"update_profile">;
1415
+ config: z.ZodObject<{
1416
+ set: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1417
+ ops: z.ZodDefault<z.ZodArray<z.ZodObject<{
1418
+ op: z.ZodEnum<{
1419
+ append: "append";
1420
+ increment: "increment";
1421
+ set: "set";
1422
+ unset: "unset";
1423
+ }>;
1424
+ field: z.ZodString;
1425
+ value: z.ZodOptional<z.ZodUnknown>;
1426
+ }, z.core.$strip>>>;
1427
+ }, z.core.$strip>;
1428
+ position: z.ZodOptional<z.ZodObject<{
1429
+ x: z.ZodNumber;
1430
+ y: z.ZodNumber;
1431
+ }, z.core.$strip>>;
1432
+ name: z.ZodOptional<z.ZodString>;
1433
+ }, z.core.$strip>, z.ZodObject<{
1434
+ id: z.ZodString;
1435
+ type: z.ZodLiteral<"add_to_list">;
1436
+ config: z.ZodObject<{
1437
+ listId: z.ZodUUID;
1438
+ }, z.core.$strip>;
1439
+ position: z.ZodOptional<z.ZodObject<{
1440
+ x: z.ZodNumber;
1441
+ y: z.ZodNumber;
1442
+ }, z.core.$strip>>;
1443
+ name: z.ZodOptional<z.ZodString>;
1444
+ }, z.core.$strip>, z.ZodObject<{
1445
+ id: z.ZodString;
1446
+ type: z.ZodLiteral<"remove_from_list">;
1447
+ config: z.ZodObject<{
1448
+ listId: z.ZodUUID;
1449
+ }, z.core.$strip>;
1450
+ position: z.ZodOptional<z.ZodObject<{
1451
+ x: z.ZodNumber;
1452
+ y: z.ZodNumber;
1453
+ }, z.core.$strip>>;
1454
+ name: z.ZodOptional<z.ZodString>;
1455
+ }, z.core.$strip>, z.ZodObject<{
1456
+ id: z.ZodString;
1457
+ type: z.ZodLiteral<"update_by_event">;
1458
+ config: z.ZodObject<{
1459
+ field: z.ZodString;
1460
+ path: z.ZodString;
1461
+ }, z.core.$strip>;
1462
+ position: z.ZodOptional<z.ZodObject<{
1463
+ x: z.ZodNumber;
1464
+ y: z.ZodNumber;
1465
+ }, z.core.$strip>>;
1466
+ name: z.ZodOptional<z.ZodString>;
1467
+ }, z.core.$strip>, z.ZodObject<{
1468
+ id: z.ZodString;
1469
+ type: z.ZodLiteral<"set_field">;
1470
+ config: z.ZodObject<{
1471
+ field: z.ZodString;
1472
+ value: z.ZodUnknown;
1473
+ }, z.core.$strip>;
1474
+ position: z.ZodOptional<z.ZodObject<{
1475
+ x: z.ZodNumber;
1476
+ y: z.ZodNumber;
1477
+ }, z.core.$strip>>;
1478
+ name: z.ZodOptional<z.ZodString>;
1479
+ }, z.core.$strip>, z.ZodObject<{
1480
+ id: z.ZodString;
1481
+ type: z.ZodLiteral<"score">;
1482
+ config: z.ZodObject<{
1483
+ delta: z.ZodNumber;
1484
+ field: z.ZodDefault<z.ZodString>;
1485
+ }, z.core.$strip>;
1486
+ position: z.ZodOptional<z.ZodObject<{
1487
+ x: z.ZodNumber;
1488
+ y: z.ZodNumber;
1489
+ }, z.core.$strip>>;
1490
+ name: z.ZodOptional<z.ZodString>;
1491
+ }, z.core.$strip>, z.ZodObject<{
1492
+ id: z.ZodString;
1493
+ type: z.ZodLiteral<"adjust_score">;
1494
+ config: z.ZodObject<{
1495
+ modelId: z.ZodUUID;
1496
+ delta: z.ZodNumber;
1497
+ }, z.core.$strip>;
1498
+ position: z.ZodOptional<z.ZodObject<{
1499
+ x: z.ZodNumber;
1500
+ y: z.ZodNumber;
1501
+ }, z.core.$strip>>;
1502
+ name: z.ZodOptional<z.ZodString>;
1503
+ }, z.core.$strip>, z.ZodObject<{
1504
+ id: z.ZodString;
1505
+ type: z.ZodLiteral<"update_company">;
1506
+ config: z.ZodObject<{
1507
+ set: z.ZodObject<{
1508
+ name: z.ZodOptional<z.ZodString>;
1509
+ industry: z.ZodOptional<z.ZodString>;
1510
+ sizeBand: z.ZodOptional<z.ZodString>;
1511
+ country: z.ZodOptional<z.ZodString>;
1512
+ }, z.core.$strip>;
1513
+ }, z.core.$strip>;
1514
+ position: z.ZodOptional<z.ZodObject<{
1515
+ x: z.ZodNumber;
1516
+ y: z.ZodNumber;
1517
+ }, z.core.$strip>>;
1518
+ name: z.ZodOptional<z.ZodString>;
1519
+ }, z.core.$strip>, z.ZodObject<{
1520
+ id: z.ZodString;
1521
+ type: z.ZodLiteral<"add_to_company">;
1522
+ config: z.ZodObject<{
1523
+ companyId: z.ZodUUID;
1524
+ }, z.core.$strip>;
1525
+ position: z.ZodOptional<z.ZodObject<{
1526
+ x: z.ZodNumber;
1527
+ y: z.ZodNumber;
1528
+ }, z.core.$strip>>;
1529
+ name: z.ZodOptional<z.ZodString>;
1530
+ }, z.core.$strip>, z.ZodObject<{
1531
+ id: z.ZodString;
1532
+ type: z.ZodLiteral<"push_integration">;
1533
+ config: z.ZodObject<{
1534
+ integrationId: z.ZodUUID;
1535
+ }, z.core.$strip>;
1536
+ position: z.ZodOptional<z.ZodObject<{
1537
+ x: z.ZodNumber;
1538
+ y: z.ZodNumber;
1539
+ }, z.core.$strip>>;
1540
+ name: z.ZodOptional<z.ZodString>;
1541
+ }, z.core.$strip>, z.ZodObject<{
1542
+ id: z.ZodString;
1543
+ type: z.ZodLiteral<"validate_email">;
1544
+ config: z.ZodObject<{
1545
+ rejectRole: z.ZodDefault<z.ZodBoolean>;
1546
+ }, z.core.$strip>;
1547
+ position: z.ZodOptional<z.ZodObject<{
1548
+ x: z.ZodNumber;
1549
+ y: z.ZodNumber;
1550
+ }, z.core.$strip>>;
1551
+ name: z.ZodOptional<z.ZodString>;
1552
+ }, z.core.$strip>, z.ZodObject<{
1553
+ id: z.ZodString;
1554
+ type: z.ZodLiteral<"delete_contact">;
1555
+ config: z.ZodObject<{
1556
+ confirm: z.ZodDefault<z.ZodBoolean>;
1557
+ }, z.core.$strip>;
1558
+ position: z.ZodOptional<z.ZodObject<{
1559
+ x: z.ZodNumber;
1560
+ y: z.ZodNumber;
1561
+ }, z.core.$strip>>;
1562
+ name: z.ZodOptional<z.ZodString>;
1563
+ }, z.core.$strip>, z.ZodObject<{
1564
+ id: z.ZodString;
1565
+ type: z.ZodLiteral<"company_branch">;
1566
+ config: z.ZodObject<{
1567
+ op: z.ZodEnum<{
1568
+ contains: "contains";
1569
+ eq: "eq";
1570
+ exists: "exists";
1571
+ gt: "gt";
1572
+ gte: "gte";
1573
+ lt: "lt";
1574
+ lte: "lte";
1575
+ ne: "ne";
1576
+ not_exists: "not_exists";
1577
+ }>;
1578
+ value: z.ZodOptional<z.ZodUnknown>;
1579
+ field: z.ZodEnum<{
1580
+ country: "country";
1581
+ domain: "domain";
1582
+ industry: "industry";
1583
+ name: "name";
1584
+ sizeBand: "sizeBand";
1585
+ stage: "stage";
1586
+ suppressed: "suppressed";
1587
+ }>;
1588
+ }, z.core.$strip>;
1589
+ position: z.ZodOptional<z.ZodObject<{
1590
+ x: z.ZodNumber;
1591
+ y: z.ZodNumber;
1592
+ }, z.core.$strip>>;
1593
+ name: z.ZodOptional<z.ZodString>;
1594
+ }, z.core.$strip>, z.ZodObject<{
1595
+ id: z.ZodString;
1596
+ type: z.ZodLiteral<"set_lifecycle">;
1597
+ config: z.ZodObject<{
1598
+ stage: z.ZodString;
1599
+ }, z.core.$strip>;
1600
+ position: z.ZodOptional<z.ZodObject<{
1601
+ x: z.ZodNumber;
1602
+ y: z.ZodNumber;
1603
+ }, z.core.$strip>>;
1604
+ name: z.ZodOptional<z.ZodString>;
1605
+ }, z.core.$strip>, z.ZodObject<{
1606
+ id: z.ZodString;
1607
+ type: z.ZodLiteral<"update_consent">;
1608
+ config: z.ZodObject<{
1609
+ channel: z.ZodEnum<{
1610
+ email: "email";
1611
+ postcard: "postcard";
1612
+ push: "push";
1613
+ sms: "sms";
1614
+ whatsapp: "whatsapp";
1615
+ }>;
1616
+ purpose: z.ZodDefault<z.ZodEnum<{
1617
+ marketing: "marketing";
1618
+ operational: "operational";
1619
+ prospecting: "prospecting";
1620
+ transactional: "transactional";
1621
+ }>>;
1622
+ status: z.ZodEnum<{
1623
+ granted: "granted";
1624
+ revoked: "revoked";
1625
+ }>;
1626
+ proofSource: z.ZodOptional<z.ZodEnum<{
1627
+ form: "form";
1628
+ trigger_event: "trigger_event";
1629
+ }>>;
1630
+ }, z.core.$strip>;
1631
+ position: z.ZodOptional<z.ZodObject<{
1632
+ x: z.ZodNumber;
1633
+ y: z.ZodNumber;
1634
+ }, z.core.$strip>>;
1635
+ name: z.ZodOptional<z.ZodString>;
1636
+ }, z.core.$strip>, z.ZodObject<{
1637
+ id: z.ZodString;
1638
+ type: z.ZodLiteral<"goal">;
1639
+ config: z.ZodObject<{
1640
+ name: z.ZodDefault<z.ZodString>;
1641
+ skipAhead: z.ZodDefault<z.ZodBoolean>;
1642
+ match: z.ZodOptional<z.ZodObject<{
1643
+ kind: z.ZodEnum<{
1644
+ event: "event";
1645
+ segment: "segment";
1646
+ }>;
1647
+ eventName: z.ZodOptional<z.ZodString>;
1648
+ filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1649
+ definition: z.ZodOptional<z.ZodType<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput, z.core.$ZodTypeInternals<import("./segments.ts").SegmentGroup, import("./segments.ts").SegmentGroupInput>>>;
1650
+ }, z.core.$strip>>;
1651
+ }, z.core.$strip>;
1652
+ position: z.ZodOptional<z.ZodObject<{
1653
+ x: z.ZodNumber;
1654
+ y: z.ZodNumber;
1655
+ }, z.core.$strip>>;
1656
+ name: z.ZodOptional<z.ZodString>;
1657
+ }, z.core.$strip>, z.ZodObject<{
1658
+ id: z.ZodString;
1659
+ type: z.ZodLiteral<"frequency_cap">;
1660
+ config: z.ZodObject<{
1661
+ maxSends: z.ZodNumber;
1662
+ windowHours: z.ZodNumber;
1663
+ channel: z.ZodOptional<z.ZodEnum<{
1664
+ email: "email";
1665
+ postcard: "postcard";
1666
+ push: "push";
1667
+ sms: "sms";
1668
+ whatsapp: "whatsapp";
1669
+ }>>;
1670
+ onExceed: z.ZodDefault<z.ZodEnum<{
1671
+ branch: "branch";
1672
+ exit: "exit";
1673
+ hold: "hold";
1674
+ }>>;
1675
+ }, z.core.$strip>;
1676
+ position: z.ZodOptional<z.ZodObject<{
1677
+ x: z.ZodNumber;
1678
+ y: z.ZodNumber;
1679
+ }, z.core.$strip>>;
1680
+ name: z.ZodOptional<z.ZodString>;
1681
+ }, z.core.$strip>, z.ZodObject<{
1682
+ id: z.ZodString;
1683
+ type: z.ZodLiteral<"suppression_check">;
1684
+ config: z.ZodObject<{
1685
+ channel: z.ZodEnum<{
1686
+ email: "email";
1687
+ postcard: "postcard";
1688
+ push: "push";
1689
+ sms: "sms";
1690
+ whatsapp: "whatsapp";
1691
+ }>;
1692
+ purpose: z.ZodDefault<z.ZodEnum<{
1693
+ marketing: "marketing";
1694
+ operational: "operational";
1695
+ prospecting: "prospecting";
1696
+ transactional: "transactional";
1697
+ }>>;
1698
+ }, z.core.$strip>;
1699
+ position: z.ZodOptional<z.ZodObject<{
1700
+ x: z.ZodNumber;
1701
+ y: z.ZodNumber;
1702
+ }, z.core.$strip>>;
1703
+ name: z.ZodOptional<z.ZodString>;
1704
+ }, z.core.$strip>, z.ZodObject<{
1705
+ id: z.ZodString;
1706
+ type: z.ZodLiteral<"rate_limit">;
1707
+ config: z.ZodObject<{
1708
+ perHour: z.ZodNumber;
1709
+ windowMinutes: z.ZodDefault<z.ZodNumber>;
1710
+ onExceed: z.ZodDefault<z.ZodEnum<{
1711
+ branch: "branch";
1712
+ exit: "exit";
1713
+ hold: "hold";
1714
+ }>>;
1715
+ slot: z.ZodOptional<z.ZodString>;
1716
+ perMailbox: z.ZodOptional<z.ZodBoolean>;
1717
+ }, z.core.$strip>;
1718
+ position: z.ZodOptional<z.ZodObject<{
1719
+ x: z.ZodNumber;
1720
+ y: z.ZodNumber;
1721
+ }, z.core.$strip>>;
1722
+ name: z.ZodOptional<z.ZodString>;
1723
+ }, z.core.$strip>, z.ZodObject<{
1724
+ id: z.ZodString;
1725
+ type: z.ZodLiteral<"add_suppression">;
1726
+ config: z.ZodObject<{
1727
+ channel: z.ZodEnum<{
1728
+ email: "email";
1729
+ postcard: "postcard";
1730
+ push: "push";
1731
+ sms: "sms";
1732
+ whatsapp: "whatsapp";
1733
+ }>;
1734
+ reason: z.ZodDefault<z.ZodString>;
1735
+ }, z.core.$strip>;
1736
+ position: z.ZodOptional<z.ZodObject<{
1737
+ x: z.ZodNumber;
1738
+ y: z.ZodNumber;
1739
+ }, z.core.$strip>>;
1740
+ name: z.ZodOptional<z.ZodString>;
1741
+ }, z.core.$strip>, z.ZodObject<{
1742
+ id: z.ZodString;
1743
+ type: z.ZodLiteral<"remove_suppression">;
1744
+ config: z.ZodObject<{
1745
+ channel: z.ZodEnum<{
1746
+ email: "email";
1747
+ postcard: "postcard";
1748
+ push: "push";
1749
+ sms: "sms";
1750
+ whatsapp: "whatsapp";
1751
+ }>;
1752
+ }, z.core.$strip>;
1753
+ position: z.ZodOptional<z.ZodObject<{
1754
+ x: z.ZodNumber;
1755
+ y: z.ZodNumber;
1756
+ }, z.core.$strip>>;
1757
+ name: z.ZodOptional<z.ZodString>;
1758
+ }, z.core.$strip>, z.ZodObject<{
1759
+ id: z.ZodString;
1760
+ type: z.ZodLiteral<"approval_gate">;
1761
+ config: z.ZodDefault<z.ZodObject<{}, z.core.$strip>>;
1762
+ position: z.ZodOptional<z.ZodObject<{
1763
+ x: z.ZodNumber;
1764
+ y: z.ZodNumber;
1765
+ }, z.core.$strip>>;
1766
+ name: z.ZodOptional<z.ZodString>;
1767
+ }, z.core.$strip>, z.ZodObject<{
1768
+ id: z.ZodString;
1769
+ type: z.ZodLiteral<"pause">;
1770
+ config: z.ZodDefault<z.ZodObject<{}, z.core.$strip>>;
1771
+ position: z.ZodOptional<z.ZodObject<{
1772
+ x: z.ZodNumber;
1773
+ y: z.ZodNumber;
1774
+ }, z.core.$strip>>;
1775
+ name: z.ZodOptional<z.ZodString>;
1776
+ }, z.core.$strip>, z.ZodObject<{
1777
+ id: z.ZodString;
1778
+ type: z.ZodLiteral<"end">;
1779
+ config: z.ZodDefault<z.ZodObject<{}, z.core.$strip>>;
1780
+ position: z.ZodOptional<z.ZodObject<{
1781
+ x: z.ZodNumber;
1782
+ y: z.ZodNumber;
1783
+ }, z.core.$strip>>;
1784
+ name: z.ZodOptional<z.ZodString>;
1785
+ }, z.core.$strip>, z.ZodObject<{
1786
+ id: z.ZodString;
1787
+ type: z.ZodLiteral<"stop_on_reply">;
1788
+ config: z.ZodDefault<z.ZodObject<{}, z.core.$strip>>;
1789
+ position: z.ZodOptional<z.ZodObject<{
1790
+ x: z.ZodNumber;
1791
+ y: z.ZodNumber;
1792
+ }, z.core.$strip>>;
1793
+ name: z.ZodOptional<z.ZodString>;
1794
+ }, z.core.$strip>, z.ZodObject<{
1795
+ id: z.ZodString;
1796
+ type: z.ZodLiteral<"stop_on_bounce">;
1797
+ config: z.ZodDefault<z.ZodObject<{}, z.core.$strip>>;
1798
+ position: z.ZodOptional<z.ZodObject<{
1799
+ x: z.ZodNumber;
1800
+ y: z.ZodNumber;
1801
+ }, z.core.$strip>>;
1802
+ name: z.ZodOptional<z.ZodString>;
1803
+ }, z.core.$strip>, z.ZodObject<{
1804
+ id: z.ZodString;
1805
+ type: z.ZodLiteral<"stop_on_unsubscribe">;
1806
+ config: z.ZodDefault<z.ZodObject<{}, z.core.$strip>>;
1807
+ position: z.ZodOptional<z.ZodObject<{
1808
+ x: z.ZodNumber;
1809
+ y: z.ZodNumber;
1810
+ }, z.core.$strip>>;
1811
+ name: z.ZodOptional<z.ZodString>;
1812
+ }, z.core.$strip>, z.ZodObject<{
1813
+ id: z.ZodString;
1814
+ type: z.ZodLiteral<"classify_reply">;
1815
+ config: z.ZodDefault<z.ZodObject<{
1816
+ title: z.ZodOptional<z.ZodString>;
1817
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1818
+ }, z.core.$strip>>;
1819
+ position: z.ZodOptional<z.ZodObject<{
1820
+ x: z.ZodNumber;
1821
+ y: z.ZodNumber;
1822
+ }, z.core.$strip>>;
1823
+ name: z.ZodOptional<z.ZodString>;
1824
+ }, z.core.$strip>, z.ZodObject<{
1825
+ id: z.ZodString;
1826
+ type: z.ZodLiteral<"assign_owner">;
1827
+ config: z.ZodDefault<z.ZodObject<{
1828
+ title: z.ZodOptional<z.ZodString>;
1829
+ userId: z.ZodOptional<z.ZodUUID>;
1830
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1831
+ }, z.core.$strip>>;
1832
+ position: z.ZodOptional<z.ZodObject<{
1833
+ x: z.ZodNumber;
1834
+ y: z.ZodNumber;
1835
+ }, z.core.$strip>>;
1836
+ name: z.ZodOptional<z.ZodString>;
1837
+ }, z.core.$strip>, z.ZodObject<{
1838
+ id: z.ZodString;
1839
+ type: z.ZodLiteral<"rotate_mailbox">;
1840
+ config: z.ZodDefault<z.ZodObject<{
1841
+ title: z.ZodOptional<z.ZodString>;
1842
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1843
+ }, z.core.$strip>>;
1844
+ position: z.ZodOptional<z.ZodObject<{
1845
+ x: z.ZodNumber;
1846
+ y: z.ZodNumber;
1847
+ }, z.core.$strip>>;
1848
+ name: z.ZodOptional<z.ZodString>;
1849
+ }, z.core.$strip>, z.ZodObject<{
1850
+ id: z.ZodString;
1851
+ type: z.ZodLiteral<"follow_up_task">;
1852
+ config: z.ZodDefault<z.ZodObject<{
1853
+ title: z.ZodOptional<z.ZodString>;
1854
+ kind: z.ZodOptional<z.ZodEnum<{
1855
+ call: "call";
1856
+ custom: "custom";
1857
+ linkedin_connect: "linkedin_connect";
1858
+ linkedin_message: "linkedin_message";
1859
+ linkedin_visit: "linkedin_visit";
1860
+ manual_email: "manual_email";
1861
+ reply_received: "reply_received";
1862
+ sms: "sms";
1863
+ whatsapp: "whatsapp";
1864
+ }>>;
1865
+ assigneeUserId: z.ZodOptional<z.ZodUUID>;
1866
+ notes: z.ZodOptional<z.ZodString>;
1867
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1868
+ }, z.core.$strip>>;
1869
+ position: z.ZodOptional<z.ZodObject<{
1870
+ x: z.ZodNumber;
1871
+ y: z.ZodNumber;
1872
+ }, z.core.$strip>>;
1873
+ name: z.ZodOptional<z.ZodString>;
1874
+ }, z.core.$strip>, z.ZodObject<{
1875
+ id: z.ZodString;
1876
+ type: z.ZodLiteral<"score_company">;
1877
+ config: z.ZodObject<{
1878
+ delta: z.ZodNumber;
1879
+ }, z.core.$strip>;
1880
+ position: z.ZodOptional<z.ZodObject<{
1881
+ x: z.ZodNumber;
1882
+ y: z.ZodNumber;
1883
+ }, z.core.$strip>>;
1884
+ name: z.ZodOptional<z.ZodString>;
1885
+ }, z.core.$strip>, z.ZodObject<{
1886
+ id: z.ZodString;
1887
+ type: z.ZodLiteral<"score_company_from_form">;
1888
+ config: z.ZodObject<{
1889
+ delta: z.ZodNumber;
1890
+ formId: z.ZodOptional<z.ZodUUID>;
1891
+ }, z.core.$strip>;
1892
+ position: z.ZodOptional<z.ZodObject<{
1893
+ x: z.ZodNumber;
1894
+ y: z.ZodNumber;
1895
+ }, z.core.$strip>>;
1896
+ name: z.ZodOptional<z.ZodString>;
1897
+ }, z.core.$strip>, z.ZodObject<{
1898
+ id: z.ZodString;
1899
+ type: z.ZodLiteral<"send_site_message">;
1900
+ config: z.ZodObject<{
1901
+ siteMessageId: z.ZodUUID;
1902
+ expiresInHours: z.ZodDefault<z.ZodNumber>;
1903
+ }, z.core.$strip>;
1904
+ position: z.ZodOptional<z.ZodObject<{
1905
+ x: z.ZodNumber;
1906
+ y: z.ZodNumber;
1907
+ }, z.core.$strip>>;
1908
+ name: z.ZodOptional<z.ZodString>;
1909
+ }, z.core.$strip>, z.ZodObject<{
1910
+ id: z.ZodString;
1911
+ type: z.ZodLiteral<"push_slot_content">;
1912
+ config: z.ZodObject<{
1913
+ slotKey: z.ZodString;
1914
+ html: z.ZodString;
1915
+ expiresInHours: z.ZodDefault<z.ZodNumber>;
1916
+ }, z.core.$strip>;
1917
+ position: z.ZodOptional<z.ZodObject<{
1918
+ x: z.ZodNumber;
1919
+ y: z.ZodNumber;
1920
+ }, z.core.$strip>>;
1921
+ name: z.ZodOptional<z.ZodString>;
1922
+ }, z.core.$strip>, z.ZodObject<{
1923
+ id: z.ZodString;
1924
+ type: z.ZodLiteral<"upsert_object">;
1925
+ config: z.ZodObject<{
1926
+ typeKey: z.ZodString;
1927
+ externalId: z.ZodString;
1928
+ name: z.ZodOptional<z.ZodString>;
1929
+ attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1930
+ link: z.ZodDefault<z.ZodBoolean>;
1931
+ role: z.ZodOptional<z.ZodString>;
1932
+ }, z.core.$strip>;
1933
+ position: z.ZodOptional<z.ZodObject<{
1934
+ x: z.ZodNumber;
1935
+ y: z.ZodNumber;
1936
+ }, z.core.$strip>>;
1937
+ name: z.ZodOptional<z.ZodString>;
1938
+ }, z.core.$strip>, z.ZodObject<{
1939
+ id: z.ZodString;
1940
+ type: z.ZodLiteral<"relate_object">;
1941
+ config: z.ZodObject<{
1942
+ typeKey: z.ZodString;
1943
+ externalId: z.ZodString;
1944
+ op: z.ZodDefault<z.ZodEnum<{
1945
+ link: "link";
1946
+ unlink: "unlink";
1947
+ }>>;
1948
+ role: z.ZodOptional<z.ZodString>;
1949
+ }, z.core.$strip>;
1950
+ position: z.ZodOptional<z.ZodObject<{
1951
+ x: z.ZodNumber;
1952
+ y: z.ZodNumber;
1953
+ }, z.core.$strip>>;
1954
+ name: z.ZodOptional<z.ZodString>;
1955
+ }, z.core.$strip>, z.ZodObject<{
1956
+ id: z.ZodString;
1957
+ type: z.ZodLiteral<"run_code">;
1958
+ config: z.ZodObject<{
1959
+ webhookTemplateId: z.ZodUUID;
1960
+ inputFields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1961
+ maxAttempts: z.ZodDefault<z.ZodNumber>;
1962
+ responseTimeout: z.ZodDefault<z.ZodObject<{
1963
+ amount: z.ZodNumber;
1964
+ unit: z.ZodEnum<{
1965
+ days: "days";
1966
+ hours: "hours";
1967
+ minutes: "minutes";
1968
+ weeks: "weeks";
1969
+ }>;
1970
+ }, z.core.$strip>>;
1971
+ }, z.core.$strip>;
1972
+ position: z.ZodOptional<z.ZodObject<{
1973
+ x: z.ZodNumber;
1974
+ y: z.ZodNumber;
1975
+ }, z.core.$strip>>;
1976
+ name: z.ZodOptional<z.ZodString>;
1977
+ }, z.core.$strip>, z.ZodObject<{
1978
+ id: z.ZodString;
1979
+ type: z.ZodLiteral<"custom_action">;
1980
+ config: z.ZodObject<{
1981
+ typeKey: z.ZodString;
1982
+ values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1983
+ responseTimeout: z.ZodDefault<z.ZodObject<{
1984
+ amount: z.ZodNumber;
1985
+ unit: z.ZodEnum<{
1986
+ days: "days";
1987
+ hours: "hours";
1988
+ minutes: "minutes";
1989
+ weeks: "weeks";
1990
+ }>;
1991
+ }, z.core.$strip>>;
1992
+ }, z.core.$strip>;
1993
+ position: z.ZodOptional<z.ZodObject<{
1994
+ x: z.ZodNumber;
1995
+ y: z.ZodNumber;
1996
+ }, z.core.$strip>>;
1997
+ name: z.ZodOptional<z.ZodString>;
1998
+ }, z.core.$strip>, z.ZodObject<{
1999
+ id: z.ZodString;
2000
+ type: z.ZodLiteral<"sheets_append_row">;
2001
+ config: z.ZodObject<{
2002
+ spreadsheetId: z.ZodString;
2003
+ sheet: z.ZodDefault<z.ZodString>;
2004
+ values: z.ZodArray<z.ZodString>;
2005
+ secretName: z.ZodString;
2006
+ }, z.core.$strip>;
2007
+ position: z.ZodOptional<z.ZodObject<{
2008
+ x: z.ZodNumber;
2009
+ y: z.ZodNumber;
2010
+ }, z.core.$strip>>;
2011
+ name: z.ZodOptional<z.ZodString>;
2012
+ }, z.core.$strip>, z.ZodObject<{
2013
+ id: z.ZodString;
2014
+ type: z.ZodLiteral<"calendly_link">;
2015
+ config: z.ZodObject<{
2016
+ eventTypeUri: z.ZodURL;
2017
+ secretName: z.ZodString;
2018
+ field: z.ZodDefault<z.ZodString>;
2019
+ maxEventCount: z.ZodDefault<z.ZodNumber>;
2020
+ }, z.core.$strip>;
2021
+ position: z.ZodOptional<z.ZodObject<{
2022
+ x: z.ZodNumber;
2023
+ y: z.ZodNumber;
2024
+ }, z.core.$strip>>;
2025
+ name: z.ZodOptional<z.ZodString>;
2026
+ }, z.core.$strip>, z.ZodObject<{
2027
+ id: z.ZodString;
2028
+ type: z.ZodLiteral<"send_slack">;
2029
+ config: z.ZodObject<{
2030
+ installId: z.ZodUUID;
2031
+ slackTemplateId: z.ZodOptional<z.ZodUUID>;
2032
+ text: z.ZodOptional<z.ZodString>;
2033
+ to: z.ZodDefault<z.ZodEnum<{
2034
+ channel: "channel";
2035
+ contact: "contact";
2036
+ }>>;
2037
+ channel: z.ZodOptional<z.ZodString>;
2038
+ }, z.core.$strip>;
2039
+ position: z.ZodOptional<z.ZodObject<{
2040
+ x: z.ZodNumber;
2041
+ y: z.ZodNumber;
2042
+ }, z.core.$strip>>;
2043
+ name: z.ZodOptional<z.ZodString>;
2044
+ }, z.core.$strip>, z.ZodObject<{
2045
+ id: z.ZodString;
2046
+ type: z.ZodLiteral<"send_whatsapp_flow">;
2047
+ config: z.ZodObject<{
2048
+ flowId: z.ZodUUID;
2049
+ purpose: z.ZodDefault<z.ZodEnum<{
2050
+ marketing: "marketing";
2051
+ operational: "operational";
2052
+ prospecting: "prospecting";
2053
+ transactional: "transactional";
2054
+ }>>;
2055
+ timeout: z.ZodDefault<z.ZodObject<{
2056
+ amount: z.ZodNumber;
2057
+ unit: z.ZodEnum<{
2058
+ days: "days";
2059
+ hours: "hours";
2060
+ minutes: "minutes";
2061
+ weeks: "weeks";
2062
+ }>;
2063
+ }, z.core.$strip>>;
2064
+ branches: z.ZodDefault<z.ZodArray<z.ZodObject<{
2065
+ key: z.ZodString;
2066
+ field: z.ZodString;
2067
+ value: z.ZodString;
2068
+ }, z.core.$strip>>>;
2069
+ }, z.core.$strip>;
2070
+ position: z.ZodOptional<z.ZodObject<{
2071
+ x: z.ZodNumber;
2072
+ y: z.ZodNumber;
2073
+ }, z.core.$strip>>;
2074
+ name: z.ZodOptional<z.ZodString>;
2075
+ }, z.core.$strip>, z.ZodObject<{
2076
+ id: z.ZodString;
2077
+ type: z.ZodLiteral<"in_app_tracker">;
2078
+ config: z.ZodObject<{
2079
+ componentKey: z.ZodString;
2080
+ fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2081
+ events: z.ZodArray<z.ZodString>;
2082
+ timeout: z.ZodDefault<z.ZodObject<{
2083
+ amount: z.ZodNumber;
2084
+ unit: z.ZodEnum<{
2085
+ days: "days";
2086
+ hours: "hours";
2087
+ minutes: "minutes";
2088
+ weeks: "weeks";
2089
+ }>;
2090
+ }, z.core.$strip>>;
2091
+ }, z.core.$strip>;
2092
+ position: z.ZodOptional<z.ZodObject<{
2093
+ x: z.ZodNumber;
2094
+ y: z.ZodNumber;
2095
+ }, z.core.$strip>>;
2096
+ name: z.ZodOptional<z.ZodString>;
2097
+ }, z.core.$strip>, z.ZodObject<{
2098
+ id: z.ZodString;
2099
+ type: z.ZodLiteral<"send_social_dm">;
2100
+ config: z.ZodObject<{
2101
+ accountId: z.ZodOptional<z.ZodUUID>;
2102
+ text: z.ZodString;
2103
+ }, z.core.$strip>;
2104
+ position: z.ZodOptional<z.ZodObject<{
2105
+ x: z.ZodNumber;
2106
+ y: z.ZodNumber;
2107
+ }, z.core.$strip>>;
2108
+ name: z.ZodOptional<z.ZodString>;
2109
+ }, z.core.$strip>, z.ZodObject<{
2110
+ id: z.ZodString;
2111
+ type: z.ZodLiteral<"ad_audience">;
2112
+ config: z.ZodObject<{
2113
+ adAccountId: z.ZodUUID;
2114
+ audienceId: z.ZodString;
2115
+ op: z.ZodDefault<z.ZodEnum<{
2116
+ add: "add";
2117
+ remove: "remove";
2118
+ }>>;
2119
+ }, z.core.$strip>;
2120
+ position: z.ZodOptional<z.ZodObject<{
2121
+ x: z.ZodNumber;
2122
+ y: z.ZodNumber;
2123
+ }, z.core.$strip>>;
2124
+ name: z.ZodOptional<z.ZodString>;
2125
+ }, z.core.$strip>], "type">;
2126
+ export type WorkflowNode = z.infer<typeof WorkflowNode>;
2127
+ export type NodeType = WorkflowNode['type'];
2128
+ export type NodeOf<T extends NodeType> = Extract<WorkflowNode, {
2129
+ type: T;
2130
+ }>;