@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
package/dist/x10.d.ts ADDED
@@ -0,0 +1,1608 @@
1
+ import type { z } from 'zod';
2
+ import type { X10AiFirstLinesBody, X10AttendanceBody, X10BudgetBody, X10BudgetDto, X10BudgetPatch, X10BulkQuotaBody, X10ClientGroupBody, X10ClientGroupDto, X10CompanyListBody, X10CompanyListDto, X10EventBody, X10EventPatch, X10InvitationDto, X10NoteBody, X10NoteDto, X10SequenceDraftBody, X10SpendBody, X10SpendDto, X10UserGroupBody, X10UserGroupDto, ApiKeyCreate } from './contracts/index.ts';
3
+ import type { createTransport, RequestOptions } from './http.ts';
4
+ type In<S extends z.ZodType> = z.input<S>;
5
+ type Out<S extends z.ZodType> = z.infer<S>;
6
+ /** Agency groups, permission matrix, jobs, budgets, marketing events, company notes/lists and AI bulk jobs. Mutations take `idempotencyKey` through the usual RequestOptions. */
7
+ export declare function x10Resources(http: ReturnType<typeof createTransport>): {
8
+ agencyGroups: {
9
+ list: () => Promise<{
10
+ items: Out<typeof X10ClientGroupDto>[];
11
+ nextCursor: string | null;
12
+ }>;
13
+ create: (body: In<typeof X10ClientGroupBody>) => Promise<{
14
+ id: string;
15
+ name: string;
16
+ workspaceIds: string[];
17
+ createdAt: string;
18
+ }>;
19
+ update: (id: string, body: {
20
+ name?: string;
21
+ workspaceIds?: string[];
22
+ }) => Promise<{
23
+ id: string;
24
+ name: string;
25
+ workspaceIds: string[];
26
+ createdAt: string;
27
+ }>;
28
+ unlink: (id: string, workspaceIds: string[]) => Promise<{
29
+ id: string;
30
+ name: string;
31
+ workspaceIds: string[];
32
+ createdAt: string;
33
+ }>;
34
+ remove: (id: string) => Promise<{
35
+ ok: true;
36
+ }>;
37
+ setQuota: (body: In<typeof X10BulkQuotaBody>) => Promise<{
38
+ updated: number;
39
+ workspaceIds: string[];
40
+ }>;
41
+ /** Mints a key inside a client workspace. Plaintext is returned once. */
42
+ createClientApiKey: (workspaceId: string, body: In<typeof ApiKeyCreate>) => Promise<{
43
+ id: string;
44
+ name: string;
45
+ kind: "secret" | "site";
46
+ prefix: string;
47
+ scopes: string[];
48
+ allowedOrigins: string[];
49
+ allowedDomains?: string[] | undefined;
50
+ allowedConnectionIds?: string[] | undefined;
51
+ allowedSequenceIds?: string[] | undefined;
52
+ rateLimitPerMin?: number | null | undefined;
53
+ app?: string | null | undefined;
54
+ lastUsedAt: string | null;
55
+ revokedAt: string | null;
56
+ expiresAt?: string | null | undefined;
57
+ createdBy?: string | null | undefined;
58
+ createdAt: string;
59
+ plaintext: string;
60
+ }>;
61
+ };
62
+ permissions: {
63
+ matrix: () => Promise<{
64
+ modules: string[];
65
+ baseRoles: Record<string, Record<string, {
66
+ read: boolean;
67
+ write: boolean;
68
+ }>>;
69
+ roles: {
70
+ id: string;
71
+ name: string;
72
+ baseRole: string;
73
+ matrix: Record<string, {
74
+ read: boolean;
75
+ write: boolean;
76
+ }>;
77
+ }[];
78
+ }>;
79
+ setRoleMatrix: (roleId: string, matrix: Record<string, {
80
+ read: boolean;
81
+ write: boolean;
82
+ }>) => Promise<{
83
+ id: string;
84
+ name: string;
85
+ baseRole: string;
86
+ matrix: Record<string, {
87
+ read: boolean;
88
+ write: boolean;
89
+ }>;
90
+ }>;
91
+ userGroups: {
92
+ list: () => Promise<{
93
+ items: Out<typeof X10UserGroupDto>[];
94
+ }>;
95
+ create: (body: In<typeof X10UserGroupBody>) => Promise<{
96
+ id: string;
97
+ name: string;
98
+ customRoleId: string;
99
+ userIds: string[];
100
+ createdAt: string;
101
+ }>;
102
+ remove: (id: string) => Promise<{
103
+ ok: true;
104
+ }>;
105
+ };
106
+ invitations: {
107
+ list: () => Promise<{
108
+ items: Out<typeof X10InvitationDto>[];
109
+ }>;
110
+ cancel: (id: string) => Promise<{
111
+ ok: true;
112
+ }>;
113
+ };
114
+ };
115
+ /** Any async job (bulk, export, import, catalog, lead, AI, account export, estimate) by id. */
116
+ jobs: {
117
+ get: (id: string) => Promise<{
118
+ id: string;
119
+ kind: "account_export" | "ai" | "bulk" | "catalog_bulk" | "estimate" | "export" | "import" | "lead";
120
+ status: string;
121
+ total: number | null;
122
+ processed: number | null;
123
+ error: string | null;
124
+ createdAt: string;
125
+ detailPath: string;
126
+ }>;
127
+ };
128
+ budgets: {
129
+ list: (campaignRef?: string) => Promise<{
130
+ items: Out<typeof X10BudgetDto>[];
131
+ }>;
132
+ get: (id: string) => Promise<{
133
+ id: string;
134
+ name: string;
135
+ campaignRef: string | null;
136
+ currency: string;
137
+ amountMinor: number;
138
+ startsOn: string | null;
139
+ endsOn: string | null;
140
+ notes: string | null;
141
+ spentMinor: number;
142
+ remainingMinor: number;
143
+ overBudget: boolean;
144
+ createdAt: string;
145
+ }>;
146
+ create: (body: In<typeof X10BudgetBody>) => Promise<{
147
+ id: string;
148
+ name: string;
149
+ campaignRef: string | null;
150
+ currency: string;
151
+ amountMinor: number;
152
+ startsOn: string | null;
153
+ endsOn: string | null;
154
+ notes: string | null;
155
+ spentMinor: number;
156
+ remainingMinor: number;
157
+ overBudget: boolean;
158
+ createdAt: string;
159
+ }>;
160
+ update: (id: string, body: In<typeof X10BudgetPatch>) => Promise<{
161
+ id: string;
162
+ name: string;
163
+ campaignRef: string | null;
164
+ currency: string;
165
+ amountMinor: number;
166
+ startsOn: string | null;
167
+ endsOn: string | null;
168
+ notes: string | null;
169
+ spentMinor: number;
170
+ remainingMinor: number;
171
+ overBudget: boolean;
172
+ createdAt: string;
173
+ }>;
174
+ spend: (id: string) => Promise<{
175
+ items: Out<typeof X10SpendDto>[];
176
+ }>;
177
+ addSpend: (id: string, body: In<typeof X10SpendBody>, o?: RequestOptions) => Promise<{
178
+ id: string;
179
+ budgetId: string;
180
+ amountMinor: number;
181
+ spentOn: string;
182
+ description: string | null;
183
+ createdAt: string;
184
+ }>;
185
+ };
186
+ marketingEvents: {
187
+ list: (query?: {
188
+ limit?: number;
189
+ cursor?: string;
190
+ status?: string;
191
+ }) => Promise<{
192
+ items: {
193
+ id: string;
194
+ name: string;
195
+ kind: "conference" | "event" | "webinar" | "workshop";
196
+ startsAt: string | null;
197
+ endsAt: string | null;
198
+ url: string | null;
199
+ organizer: string | null;
200
+ capacity: number | null;
201
+ status: "cancelled" | "completed" | "live" | "scheduled";
202
+ externalRef: string | null;
203
+ registered: number;
204
+ attended: number;
205
+ createdAt: string;
206
+ }[];
207
+ nextCursor: string | null;
208
+ }>;
209
+ get: (id: string) => Promise<{
210
+ id: string;
211
+ name: string;
212
+ kind: "conference" | "event" | "webinar" | "workshop";
213
+ startsAt: string | null;
214
+ endsAt: string | null;
215
+ url: string | null;
216
+ organizer: string | null;
217
+ capacity: number | null;
218
+ status: "cancelled" | "completed" | "live" | "scheduled";
219
+ externalRef: string | null;
220
+ registered: number;
221
+ attended: number;
222
+ createdAt: string;
223
+ }>;
224
+ create: (body: In<typeof X10EventBody>) => Promise<{
225
+ id: string;
226
+ name: string;
227
+ kind: "conference" | "event" | "webinar" | "workshop";
228
+ startsAt: string | null;
229
+ endsAt: string | null;
230
+ url: string | null;
231
+ organizer: string | null;
232
+ capacity: number | null;
233
+ status: "cancelled" | "completed" | "live" | "scheduled";
234
+ externalRef: string | null;
235
+ registered: number;
236
+ attended: number;
237
+ createdAt: string;
238
+ }>;
239
+ update: (id: string, body: In<typeof X10EventPatch>) => Promise<{
240
+ id: string;
241
+ name: string;
242
+ kind: "conference" | "event" | "webinar" | "workshop";
243
+ startsAt: string | null;
244
+ endsAt: string | null;
245
+ url: string | null;
246
+ organizer: string | null;
247
+ capacity: number | null;
248
+ status: "cancelled" | "completed" | "live" | "scheduled";
249
+ externalRef: string | null;
250
+ registered: number;
251
+ attended: number;
252
+ createdAt: string;
253
+ }>;
254
+ registrations: (id: string, query?: {
255
+ limit?: number;
256
+ cursor?: string;
257
+ status?: string;
258
+ }) => Promise<{
259
+ items: {
260
+ id: string;
261
+ eventId: string;
262
+ email: string;
263
+ profileId: string | null;
264
+ status: "attended" | "cancelled" | "no_show" | "registered";
265
+ attendedAt: string | null;
266
+ durationSec: number | null;
267
+ createdAt: string;
268
+ }[];
269
+ nextCursor: string | null;
270
+ }>;
271
+ register: (id: string, emails: string[]) => Promise<{
272
+ registered: number;
273
+ skipped: {
274
+ email: string;
275
+ reason: string;
276
+ }[];
277
+ }>;
278
+ attendance: (id: string, body: In<typeof X10AttendanceBody>) => Promise<{
279
+ attended: number;
280
+ noShows: number;
281
+ }>;
282
+ };
283
+ companies: {
284
+ notes: (id: string, query?: {
285
+ limit?: number;
286
+ cursor?: string;
287
+ }) => Promise<{
288
+ items: Out<typeof X10NoteDto>[];
289
+ nextCursor: string | null;
290
+ }>;
291
+ addNote: (id: string, body: In<typeof X10NoteBody>) => Promise<{
292
+ id: string;
293
+ companyId: string;
294
+ body: string;
295
+ authorId: string;
296
+ createdAt: string;
297
+ }>;
298
+ merge: (id: string, mergeIds: string[]) => Promise<unknown>;
299
+ sourceContacts: (id: string, body: {
300
+ providerId: string;
301
+ titles?: string[];
302
+ seniorities?: string[];
303
+ limit?: number;
304
+ offer?: string;
305
+ }) => Promise<unknown>;
306
+ unifyAccounts: () => Promise<{
307
+ linked: number;
308
+ created: number;
309
+ }>;
310
+ lists: {
311
+ list: () => Promise<{
312
+ items: Out<typeof X10CompanyListDto>[];
313
+ }>;
314
+ create: (body: In<typeof X10CompanyListBody>) => Promise<{
315
+ id: string;
316
+ name: string;
317
+ description: string | null;
318
+ companyCount: number;
319
+ createdAt: string;
320
+ }>;
321
+ add: (id: string, companyIds: string[]) => Promise<{
322
+ added: number;
323
+ }>;
324
+ };
325
+ };
326
+ ai: {
327
+ firstLines: (body: In<typeof X10AiFirstLinesBody>) => Promise<{
328
+ id: string;
329
+ kind: "custom" | "first_line";
330
+ status: "done" | "failed" | "queued" | "running";
331
+ total: number;
332
+ processed: number;
333
+ results: {
334
+ key: string;
335
+ text: string | null;
336
+ error?: string | undefined;
337
+ }[];
338
+ model: string | null;
339
+ error: string | null;
340
+ createdAt: string;
341
+ }>;
342
+ job: (id: string) => Promise<{
343
+ id: string;
344
+ kind: "custom" | "first_line";
345
+ status: "done" | "failed" | "queued" | "running";
346
+ total: number;
347
+ processed: number;
348
+ results: {
349
+ key: string;
350
+ text: string | null;
351
+ error?: string | undefined;
352
+ }[];
353
+ model: string | null;
354
+ error: string | null;
355
+ createdAt: string;
356
+ }>;
357
+ draftSequence: (body: In<typeof X10SequenceDraftBody>) => Promise<{
358
+ name: string;
359
+ settings: {
360
+ steps: ({
361
+ waitDays: number;
362
+ businessDays: boolean;
363
+ when?: {
364
+ kind: "engagement";
365
+ event: "clicked" | "opened" | "replied";
366
+ negate: boolean;
367
+ } | {
368
+ kind: "task_outcome";
369
+ outcome: string;
370
+ step?: string | undefined;
371
+ negate: boolean;
372
+ } | {
373
+ kind: "has_phone";
374
+ negate: boolean;
375
+ } | {
376
+ kind: "linkedin_connected";
377
+ negate: boolean;
378
+ } | {
379
+ kind: "reply";
380
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
381
+ negate: boolean;
382
+ } | {
383
+ kind: "verified";
384
+ negate: boolean;
385
+ } | {
386
+ kind: "field";
387
+ field: string;
388
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
389
+ value?: unknown;
390
+ } | undefined;
391
+ window?: {
392
+ startMin: number;
393
+ endMin: number;
394
+ weekdays?: number[] | undefined;
395
+ } | undefined;
396
+ type: "email";
397
+ templateId: string;
398
+ versionId?: string | undefined;
399
+ thread: "new" | "reply";
400
+ alternates: {
401
+ templateId: string;
402
+ versionId?: string | undefined;
403
+ weight: number;
404
+ }[];
405
+ weightA: number;
406
+ optimize: boolean;
407
+ senderConnectionId?: string | undefined;
408
+ } | {
409
+ type: "wait";
410
+ days: number;
411
+ businessDays: boolean;
412
+ } | {
413
+ waitDays: number;
414
+ businessDays: boolean;
415
+ when?: {
416
+ kind: "engagement";
417
+ event: "clicked" | "opened" | "replied";
418
+ negate: boolean;
419
+ } | {
420
+ kind: "task_outcome";
421
+ outcome: string;
422
+ step?: string | undefined;
423
+ negate: boolean;
424
+ } | {
425
+ kind: "has_phone";
426
+ negate: boolean;
427
+ } | {
428
+ kind: "linkedin_connected";
429
+ negate: boolean;
430
+ } | {
431
+ kind: "reply";
432
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
433
+ negate: boolean;
434
+ } | {
435
+ kind: "verified";
436
+ negate: boolean;
437
+ } | {
438
+ kind: "field";
439
+ field: string;
440
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
441
+ value?: unknown;
442
+ } | undefined;
443
+ window?: {
444
+ startMin: number;
445
+ endMin: number;
446
+ weekdays?: number[] | undefined;
447
+ } | undefined;
448
+ type: "task";
449
+ kind: "call" | "custom" | "linkedin_connect" | "linkedin_message" | "linkedin_visit" | "manual_email" | "sms" | "whatsapp";
450
+ title: string;
451
+ notes?: string | undefined;
452
+ draft?: string | undefined;
453
+ } | {
454
+ waitDays: number;
455
+ businessDays: boolean;
456
+ when?: {
457
+ kind: "engagement";
458
+ event: "clicked" | "opened" | "replied";
459
+ negate: boolean;
460
+ } | {
461
+ kind: "task_outcome";
462
+ outcome: string;
463
+ step?: string | undefined;
464
+ negate: boolean;
465
+ } | {
466
+ kind: "has_phone";
467
+ negate: boolean;
468
+ } | {
469
+ kind: "linkedin_connected";
470
+ negate: boolean;
471
+ } | {
472
+ kind: "reply";
473
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
474
+ negate: boolean;
475
+ } | {
476
+ kind: "verified";
477
+ negate: boolean;
478
+ } | {
479
+ kind: "field";
480
+ field: string;
481
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
482
+ value?: unknown;
483
+ } | undefined;
484
+ window?: {
485
+ startMin: number;
486
+ endMin: number;
487
+ weekdays?: number[] | undefined;
488
+ } | undefined;
489
+ type: "jump";
490
+ sequenceId: string;
491
+ } | {
492
+ waitDays: number;
493
+ businessDays: boolean;
494
+ when?: {
495
+ kind: "engagement";
496
+ event: "clicked" | "opened" | "replied";
497
+ negate: boolean;
498
+ } | {
499
+ kind: "task_outcome";
500
+ outcome: string;
501
+ step?: string | undefined;
502
+ negate: boolean;
503
+ } | {
504
+ kind: "has_phone";
505
+ negate: boolean;
506
+ } | {
507
+ kind: "linkedin_connected";
508
+ negate: boolean;
509
+ } | {
510
+ kind: "reply";
511
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
512
+ negate: boolean;
513
+ } | {
514
+ kind: "verified";
515
+ negate: boolean;
516
+ } | {
517
+ kind: "field";
518
+ field: string;
519
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
520
+ value?: unknown;
521
+ } | undefined;
522
+ window?: {
523
+ startMin: number;
524
+ endMin: number;
525
+ weekdays?: number[] | undefined;
526
+ } | undefined;
527
+ type: "sms";
528
+ templateId: string;
529
+ versionId?: string | undefined;
530
+ } | {
531
+ waitDays: number;
532
+ businessDays: boolean;
533
+ when?: {
534
+ kind: "engagement";
535
+ event: "clicked" | "opened" | "replied";
536
+ negate: boolean;
537
+ } | {
538
+ kind: "task_outcome";
539
+ outcome: string;
540
+ step?: string | undefined;
541
+ negate: boolean;
542
+ } | {
543
+ kind: "has_phone";
544
+ negate: boolean;
545
+ } | {
546
+ kind: "linkedin_connected";
547
+ negate: boolean;
548
+ } | {
549
+ kind: "reply";
550
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
551
+ negate: boolean;
552
+ } | {
553
+ kind: "verified";
554
+ negate: boolean;
555
+ } | {
556
+ kind: "field";
557
+ field: string;
558
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
559
+ value?: unknown;
560
+ } | undefined;
561
+ window?: {
562
+ startMin: number;
563
+ endMin: number;
564
+ weekdays?: number[] | undefined;
565
+ } | undefined;
566
+ type: "webhook";
567
+ url: string;
568
+ body?: Record<string, unknown> | undefined;
569
+ headers?: Record<string, string> | undefined;
570
+ maxAttempts: number;
571
+ signingSecret?: string | undefined;
572
+ signingSecretSealed?: string | undefined;
573
+ signingSecretSet?: boolean | undefined;
574
+ responseMap: {
575
+ path: string;
576
+ field: string;
577
+ }[];
578
+ } | {
579
+ waitDays: number;
580
+ businessDays: boolean;
581
+ when?: {
582
+ kind: "engagement";
583
+ event: "clicked" | "opened" | "replied";
584
+ negate: boolean;
585
+ } | {
586
+ kind: "task_outcome";
587
+ outcome: string;
588
+ step?: string | undefined;
589
+ negate: boolean;
590
+ } | {
591
+ kind: "has_phone";
592
+ negate: boolean;
593
+ } | {
594
+ kind: "linkedin_connected";
595
+ negate: boolean;
596
+ } | {
597
+ kind: "reply";
598
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
599
+ negate: boolean;
600
+ } | {
601
+ kind: "verified";
602
+ negate: boolean;
603
+ } | {
604
+ kind: "field";
605
+ field: string;
606
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
607
+ value?: unknown;
608
+ } | undefined;
609
+ window?: {
610
+ startMin: number;
611
+ endMin: number;
612
+ weekdays?: number[] | undefined;
613
+ } | undefined;
614
+ type: "linkedin";
615
+ action: "connect" | "inmail" | "like_post" | "message" | "visit";
616
+ message?: string | undefined;
617
+ } | {
618
+ waitDays: number;
619
+ businessDays: boolean;
620
+ when?: {
621
+ kind: "engagement";
622
+ event: "clicked" | "opened" | "replied";
623
+ negate: boolean;
624
+ } | {
625
+ kind: "task_outcome";
626
+ outcome: string;
627
+ step?: string | undefined;
628
+ negate: boolean;
629
+ } | {
630
+ kind: "has_phone";
631
+ negate: boolean;
632
+ } | {
633
+ kind: "linkedin_connected";
634
+ negate: boolean;
635
+ } | {
636
+ kind: "reply";
637
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
638
+ negate: boolean;
639
+ } | {
640
+ kind: "verified";
641
+ negate: boolean;
642
+ } | {
643
+ kind: "field";
644
+ field: string;
645
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
646
+ value?: unknown;
647
+ } | undefined;
648
+ window?: {
649
+ startMin: number;
650
+ endMin: number;
651
+ weekdays?: number[] | undefined;
652
+ } | undefined;
653
+ type: "whatsapp";
654
+ templateId: string;
655
+ versionId?: string | undefined;
656
+ } | {
657
+ waitDays: number;
658
+ businessDays: boolean;
659
+ when?: {
660
+ kind: "engagement";
661
+ event: "clicked" | "opened" | "replied";
662
+ negate: boolean;
663
+ } | {
664
+ kind: "task_outcome";
665
+ outcome: string;
666
+ step?: string | undefined;
667
+ negate: boolean;
668
+ } | {
669
+ kind: "has_phone";
670
+ negate: boolean;
671
+ } | {
672
+ kind: "linkedin_connected";
673
+ negate: boolean;
674
+ } | {
675
+ kind: "reply";
676
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
677
+ negate: boolean;
678
+ } | {
679
+ kind: "verified";
680
+ negate: boolean;
681
+ } | {
682
+ kind: "field";
683
+ field: string;
684
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
685
+ value?: unknown;
686
+ } | undefined;
687
+ window?: {
688
+ startMin: number;
689
+ endMin: number;
690
+ weekdays?: number[] | undefined;
691
+ } | undefined;
692
+ type: "voice";
693
+ clipId: string;
694
+ via: "linkedin" | "voicemail";
695
+ message?: string | undefined;
696
+ title?: string | undefined;
697
+ } | {
698
+ waitDays: number;
699
+ businessDays: boolean;
700
+ when?: {
701
+ kind: "engagement";
702
+ event: "clicked" | "opened" | "replied";
703
+ negate: boolean;
704
+ } | {
705
+ kind: "task_outcome";
706
+ outcome: string;
707
+ step?: string | undefined;
708
+ negate: boolean;
709
+ } | {
710
+ kind: "has_phone";
711
+ negate: boolean;
712
+ } | {
713
+ kind: "linkedin_connected";
714
+ negate: boolean;
715
+ } | {
716
+ kind: "reply";
717
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
718
+ negate: boolean;
719
+ } | {
720
+ kind: "verified";
721
+ negate: boolean;
722
+ } | {
723
+ kind: "field";
724
+ field: string;
725
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
726
+ value?: unknown;
727
+ } | undefined;
728
+ window?: {
729
+ startMin: number;
730
+ endMin: number;
731
+ weekdays?: number[] | undefined;
732
+ } | undefined;
733
+ type: "postcard";
734
+ design: {
735
+ size: "6x4" | "9x6";
736
+ front: string;
737
+ back: string;
738
+ };
739
+ connectionId: string;
740
+ } | {
741
+ waitDays: number;
742
+ businessDays: boolean;
743
+ type: "branch";
744
+ branches: {
745
+ key: string;
746
+ label?: string | undefined;
747
+ when: {
748
+ kind: "engagement";
749
+ event: "clicked" | "opened" | "replied";
750
+ negate: boolean;
751
+ } | {
752
+ kind: "task_outcome";
753
+ outcome: string;
754
+ step?: string | undefined;
755
+ negate: boolean;
756
+ } | {
757
+ kind: "has_phone";
758
+ negate: boolean;
759
+ } | {
760
+ kind: "linkedin_connected";
761
+ negate: boolean;
762
+ } | {
763
+ kind: "reply";
764
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
765
+ negate: boolean;
766
+ } | {
767
+ kind: "verified";
768
+ negate: boolean;
769
+ } | {
770
+ kind: "field";
771
+ field: string;
772
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
773
+ value?: unknown;
774
+ };
775
+ steps: ({
776
+ waitDays: number;
777
+ businessDays: boolean;
778
+ when?: {
779
+ kind: "engagement";
780
+ event: "clicked" | "opened" | "replied";
781
+ negate: boolean;
782
+ } | {
783
+ kind: "task_outcome";
784
+ outcome: string;
785
+ step?: string | undefined;
786
+ negate: boolean;
787
+ } | {
788
+ kind: "has_phone";
789
+ negate: boolean;
790
+ } | {
791
+ kind: "linkedin_connected";
792
+ negate: boolean;
793
+ } | {
794
+ kind: "reply";
795
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
796
+ negate: boolean;
797
+ } | {
798
+ kind: "verified";
799
+ negate: boolean;
800
+ } | {
801
+ kind: "field";
802
+ field: string;
803
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
804
+ value?: unknown;
805
+ } | undefined;
806
+ window?: {
807
+ startMin: number;
808
+ endMin: number;
809
+ weekdays?: number[] | undefined;
810
+ } | undefined;
811
+ type: "email";
812
+ templateId: string;
813
+ versionId?: string | undefined;
814
+ thread: "new" | "reply";
815
+ alternates: {
816
+ templateId: string;
817
+ versionId?: string | undefined;
818
+ weight: number;
819
+ }[];
820
+ weightA: number;
821
+ optimize: boolean;
822
+ senderConnectionId?: string | undefined;
823
+ } | {
824
+ type: "wait";
825
+ days: number;
826
+ businessDays: boolean;
827
+ } | {
828
+ waitDays: number;
829
+ businessDays: boolean;
830
+ when?: {
831
+ kind: "engagement";
832
+ event: "clicked" | "opened" | "replied";
833
+ negate: boolean;
834
+ } | {
835
+ kind: "task_outcome";
836
+ outcome: string;
837
+ step?: string | undefined;
838
+ negate: boolean;
839
+ } | {
840
+ kind: "has_phone";
841
+ negate: boolean;
842
+ } | {
843
+ kind: "linkedin_connected";
844
+ negate: boolean;
845
+ } | {
846
+ kind: "reply";
847
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
848
+ negate: boolean;
849
+ } | {
850
+ kind: "verified";
851
+ negate: boolean;
852
+ } | {
853
+ kind: "field";
854
+ field: string;
855
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
856
+ value?: unknown;
857
+ } | undefined;
858
+ window?: {
859
+ startMin: number;
860
+ endMin: number;
861
+ weekdays?: number[] | undefined;
862
+ } | undefined;
863
+ type: "task";
864
+ kind: "call" | "custom" | "linkedin_connect" | "linkedin_message" | "linkedin_visit" | "manual_email" | "sms" | "whatsapp";
865
+ title: string;
866
+ notes?: string | undefined;
867
+ draft?: string | undefined;
868
+ } | {
869
+ waitDays: number;
870
+ businessDays: boolean;
871
+ when?: {
872
+ kind: "engagement";
873
+ event: "clicked" | "opened" | "replied";
874
+ negate: boolean;
875
+ } | {
876
+ kind: "task_outcome";
877
+ outcome: string;
878
+ step?: string | undefined;
879
+ negate: boolean;
880
+ } | {
881
+ kind: "has_phone";
882
+ negate: boolean;
883
+ } | {
884
+ kind: "linkedin_connected";
885
+ negate: boolean;
886
+ } | {
887
+ kind: "reply";
888
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
889
+ negate: boolean;
890
+ } | {
891
+ kind: "verified";
892
+ negate: boolean;
893
+ } | {
894
+ kind: "field";
895
+ field: string;
896
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
897
+ value?: unknown;
898
+ } | undefined;
899
+ window?: {
900
+ startMin: number;
901
+ endMin: number;
902
+ weekdays?: number[] | undefined;
903
+ } | undefined;
904
+ type: "jump";
905
+ sequenceId: string;
906
+ } | {
907
+ waitDays: number;
908
+ businessDays: boolean;
909
+ when?: {
910
+ kind: "engagement";
911
+ event: "clicked" | "opened" | "replied";
912
+ negate: boolean;
913
+ } | {
914
+ kind: "task_outcome";
915
+ outcome: string;
916
+ step?: string | undefined;
917
+ negate: boolean;
918
+ } | {
919
+ kind: "has_phone";
920
+ negate: boolean;
921
+ } | {
922
+ kind: "linkedin_connected";
923
+ negate: boolean;
924
+ } | {
925
+ kind: "reply";
926
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
927
+ negate: boolean;
928
+ } | {
929
+ kind: "verified";
930
+ negate: boolean;
931
+ } | {
932
+ kind: "field";
933
+ field: string;
934
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
935
+ value?: unknown;
936
+ } | undefined;
937
+ window?: {
938
+ startMin: number;
939
+ endMin: number;
940
+ weekdays?: number[] | undefined;
941
+ } | undefined;
942
+ type: "sms";
943
+ templateId: string;
944
+ versionId?: string | undefined;
945
+ } | {
946
+ waitDays: number;
947
+ businessDays: boolean;
948
+ when?: {
949
+ kind: "engagement";
950
+ event: "clicked" | "opened" | "replied";
951
+ negate: boolean;
952
+ } | {
953
+ kind: "task_outcome";
954
+ outcome: string;
955
+ step?: string | undefined;
956
+ negate: boolean;
957
+ } | {
958
+ kind: "has_phone";
959
+ negate: boolean;
960
+ } | {
961
+ kind: "linkedin_connected";
962
+ negate: boolean;
963
+ } | {
964
+ kind: "reply";
965
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
966
+ negate: boolean;
967
+ } | {
968
+ kind: "verified";
969
+ negate: boolean;
970
+ } | {
971
+ kind: "field";
972
+ field: string;
973
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
974
+ value?: unknown;
975
+ } | undefined;
976
+ window?: {
977
+ startMin: number;
978
+ endMin: number;
979
+ weekdays?: number[] | undefined;
980
+ } | undefined;
981
+ type: "webhook";
982
+ url: string;
983
+ body?: Record<string, unknown> | undefined;
984
+ headers?: Record<string, string> | undefined;
985
+ maxAttempts: number;
986
+ signingSecret?: string | undefined;
987
+ signingSecretSealed?: string | undefined;
988
+ signingSecretSet?: boolean | undefined;
989
+ responseMap: {
990
+ path: string;
991
+ field: string;
992
+ }[];
993
+ } | {
994
+ waitDays: number;
995
+ businessDays: boolean;
996
+ when?: {
997
+ kind: "engagement";
998
+ event: "clicked" | "opened" | "replied";
999
+ negate: boolean;
1000
+ } | {
1001
+ kind: "task_outcome";
1002
+ outcome: string;
1003
+ step?: string | undefined;
1004
+ negate: boolean;
1005
+ } | {
1006
+ kind: "has_phone";
1007
+ negate: boolean;
1008
+ } | {
1009
+ kind: "linkedin_connected";
1010
+ negate: boolean;
1011
+ } | {
1012
+ kind: "reply";
1013
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1014
+ negate: boolean;
1015
+ } | {
1016
+ kind: "verified";
1017
+ negate: boolean;
1018
+ } | {
1019
+ kind: "field";
1020
+ field: string;
1021
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
1022
+ value?: unknown;
1023
+ } | undefined;
1024
+ window?: {
1025
+ startMin: number;
1026
+ endMin: number;
1027
+ weekdays?: number[] | undefined;
1028
+ } | undefined;
1029
+ type: "linkedin";
1030
+ action: "connect" | "inmail" | "like_post" | "message" | "visit";
1031
+ message?: string | undefined;
1032
+ } | {
1033
+ waitDays: number;
1034
+ businessDays: boolean;
1035
+ when?: {
1036
+ kind: "engagement";
1037
+ event: "clicked" | "opened" | "replied";
1038
+ negate: boolean;
1039
+ } | {
1040
+ kind: "task_outcome";
1041
+ outcome: string;
1042
+ step?: string | undefined;
1043
+ negate: boolean;
1044
+ } | {
1045
+ kind: "has_phone";
1046
+ negate: boolean;
1047
+ } | {
1048
+ kind: "linkedin_connected";
1049
+ negate: boolean;
1050
+ } | {
1051
+ kind: "reply";
1052
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1053
+ negate: boolean;
1054
+ } | {
1055
+ kind: "verified";
1056
+ negate: boolean;
1057
+ } | {
1058
+ kind: "field";
1059
+ field: string;
1060
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
1061
+ value?: unknown;
1062
+ } | undefined;
1063
+ window?: {
1064
+ startMin: number;
1065
+ endMin: number;
1066
+ weekdays?: number[] | undefined;
1067
+ } | undefined;
1068
+ type: "whatsapp";
1069
+ templateId: string;
1070
+ versionId?: string | undefined;
1071
+ } | {
1072
+ waitDays: number;
1073
+ businessDays: boolean;
1074
+ when?: {
1075
+ kind: "engagement";
1076
+ event: "clicked" | "opened" | "replied";
1077
+ negate: boolean;
1078
+ } | {
1079
+ kind: "task_outcome";
1080
+ outcome: string;
1081
+ step?: string | undefined;
1082
+ negate: boolean;
1083
+ } | {
1084
+ kind: "has_phone";
1085
+ negate: boolean;
1086
+ } | {
1087
+ kind: "linkedin_connected";
1088
+ negate: boolean;
1089
+ } | {
1090
+ kind: "reply";
1091
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1092
+ negate: boolean;
1093
+ } | {
1094
+ kind: "verified";
1095
+ negate: boolean;
1096
+ } | {
1097
+ kind: "field";
1098
+ field: string;
1099
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
1100
+ value?: unknown;
1101
+ } | undefined;
1102
+ window?: {
1103
+ startMin: number;
1104
+ endMin: number;
1105
+ weekdays?: number[] | undefined;
1106
+ } | undefined;
1107
+ type: "voice";
1108
+ clipId: string;
1109
+ via: "linkedin" | "voicemail";
1110
+ message?: string | undefined;
1111
+ title?: string | undefined;
1112
+ } | {
1113
+ waitDays: number;
1114
+ businessDays: boolean;
1115
+ when?: {
1116
+ kind: "engagement";
1117
+ event: "clicked" | "opened" | "replied";
1118
+ negate: boolean;
1119
+ } | {
1120
+ kind: "task_outcome";
1121
+ outcome: string;
1122
+ step?: string | undefined;
1123
+ negate: boolean;
1124
+ } | {
1125
+ kind: "has_phone";
1126
+ negate: boolean;
1127
+ } | {
1128
+ kind: "linkedin_connected";
1129
+ negate: boolean;
1130
+ } | {
1131
+ kind: "reply";
1132
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1133
+ negate: boolean;
1134
+ } | {
1135
+ kind: "verified";
1136
+ negate: boolean;
1137
+ } | {
1138
+ kind: "field";
1139
+ field: string;
1140
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
1141
+ value?: unknown;
1142
+ } | undefined;
1143
+ window?: {
1144
+ startMin: number;
1145
+ endMin: number;
1146
+ weekdays?: number[] | undefined;
1147
+ } | undefined;
1148
+ type: "postcard";
1149
+ design: {
1150
+ size: "6x4" | "9x6";
1151
+ front: string;
1152
+ back: string;
1153
+ };
1154
+ connectionId: string;
1155
+ })[];
1156
+ }[];
1157
+ otherwise: ({
1158
+ waitDays: number;
1159
+ businessDays: boolean;
1160
+ when?: {
1161
+ kind: "engagement";
1162
+ event: "clicked" | "opened" | "replied";
1163
+ negate: boolean;
1164
+ } | {
1165
+ kind: "task_outcome";
1166
+ outcome: string;
1167
+ step?: string | undefined;
1168
+ negate: boolean;
1169
+ } | {
1170
+ kind: "has_phone";
1171
+ negate: boolean;
1172
+ } | {
1173
+ kind: "linkedin_connected";
1174
+ negate: boolean;
1175
+ } | {
1176
+ kind: "reply";
1177
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1178
+ negate: boolean;
1179
+ } | {
1180
+ kind: "verified";
1181
+ negate: boolean;
1182
+ } | {
1183
+ kind: "field";
1184
+ field: string;
1185
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
1186
+ value?: unknown;
1187
+ } | undefined;
1188
+ window?: {
1189
+ startMin: number;
1190
+ endMin: number;
1191
+ weekdays?: number[] | undefined;
1192
+ } | undefined;
1193
+ type: "email";
1194
+ templateId: string;
1195
+ versionId?: string | undefined;
1196
+ thread: "new" | "reply";
1197
+ alternates: {
1198
+ templateId: string;
1199
+ versionId?: string | undefined;
1200
+ weight: number;
1201
+ }[];
1202
+ weightA: number;
1203
+ optimize: boolean;
1204
+ senderConnectionId?: string | undefined;
1205
+ } | {
1206
+ type: "wait";
1207
+ days: number;
1208
+ businessDays: boolean;
1209
+ } | {
1210
+ waitDays: number;
1211
+ businessDays: boolean;
1212
+ when?: {
1213
+ kind: "engagement";
1214
+ event: "clicked" | "opened" | "replied";
1215
+ negate: boolean;
1216
+ } | {
1217
+ kind: "task_outcome";
1218
+ outcome: string;
1219
+ step?: string | undefined;
1220
+ negate: boolean;
1221
+ } | {
1222
+ kind: "has_phone";
1223
+ negate: boolean;
1224
+ } | {
1225
+ kind: "linkedin_connected";
1226
+ negate: boolean;
1227
+ } | {
1228
+ kind: "reply";
1229
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1230
+ negate: boolean;
1231
+ } | {
1232
+ kind: "verified";
1233
+ negate: boolean;
1234
+ } | {
1235
+ kind: "field";
1236
+ field: string;
1237
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
1238
+ value?: unknown;
1239
+ } | undefined;
1240
+ window?: {
1241
+ startMin: number;
1242
+ endMin: number;
1243
+ weekdays?: number[] | undefined;
1244
+ } | undefined;
1245
+ type: "task";
1246
+ kind: "call" | "custom" | "linkedin_connect" | "linkedin_message" | "linkedin_visit" | "manual_email" | "sms" | "whatsapp";
1247
+ title: string;
1248
+ notes?: string | undefined;
1249
+ draft?: string | undefined;
1250
+ } | {
1251
+ waitDays: number;
1252
+ businessDays: boolean;
1253
+ when?: {
1254
+ kind: "engagement";
1255
+ event: "clicked" | "opened" | "replied";
1256
+ negate: boolean;
1257
+ } | {
1258
+ kind: "task_outcome";
1259
+ outcome: string;
1260
+ step?: string | undefined;
1261
+ negate: boolean;
1262
+ } | {
1263
+ kind: "has_phone";
1264
+ negate: boolean;
1265
+ } | {
1266
+ kind: "linkedin_connected";
1267
+ negate: boolean;
1268
+ } | {
1269
+ kind: "reply";
1270
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1271
+ negate: boolean;
1272
+ } | {
1273
+ kind: "verified";
1274
+ negate: boolean;
1275
+ } | {
1276
+ kind: "field";
1277
+ field: string;
1278
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
1279
+ value?: unknown;
1280
+ } | undefined;
1281
+ window?: {
1282
+ startMin: number;
1283
+ endMin: number;
1284
+ weekdays?: number[] | undefined;
1285
+ } | undefined;
1286
+ type: "jump";
1287
+ sequenceId: string;
1288
+ } | {
1289
+ waitDays: number;
1290
+ businessDays: boolean;
1291
+ when?: {
1292
+ kind: "engagement";
1293
+ event: "clicked" | "opened" | "replied";
1294
+ negate: boolean;
1295
+ } | {
1296
+ kind: "task_outcome";
1297
+ outcome: string;
1298
+ step?: string | undefined;
1299
+ negate: boolean;
1300
+ } | {
1301
+ kind: "has_phone";
1302
+ negate: boolean;
1303
+ } | {
1304
+ kind: "linkedin_connected";
1305
+ negate: boolean;
1306
+ } | {
1307
+ kind: "reply";
1308
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1309
+ negate: boolean;
1310
+ } | {
1311
+ kind: "verified";
1312
+ negate: boolean;
1313
+ } | {
1314
+ kind: "field";
1315
+ field: string;
1316
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
1317
+ value?: unknown;
1318
+ } | undefined;
1319
+ window?: {
1320
+ startMin: number;
1321
+ endMin: number;
1322
+ weekdays?: number[] | undefined;
1323
+ } | undefined;
1324
+ type: "sms";
1325
+ templateId: string;
1326
+ versionId?: string | undefined;
1327
+ } | {
1328
+ waitDays: number;
1329
+ businessDays: boolean;
1330
+ when?: {
1331
+ kind: "engagement";
1332
+ event: "clicked" | "opened" | "replied";
1333
+ negate: boolean;
1334
+ } | {
1335
+ kind: "task_outcome";
1336
+ outcome: string;
1337
+ step?: string | undefined;
1338
+ negate: boolean;
1339
+ } | {
1340
+ kind: "has_phone";
1341
+ negate: boolean;
1342
+ } | {
1343
+ kind: "linkedin_connected";
1344
+ negate: boolean;
1345
+ } | {
1346
+ kind: "reply";
1347
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1348
+ negate: boolean;
1349
+ } | {
1350
+ kind: "verified";
1351
+ negate: boolean;
1352
+ } | {
1353
+ kind: "field";
1354
+ field: string;
1355
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
1356
+ value?: unknown;
1357
+ } | undefined;
1358
+ window?: {
1359
+ startMin: number;
1360
+ endMin: number;
1361
+ weekdays?: number[] | undefined;
1362
+ } | undefined;
1363
+ type: "webhook";
1364
+ url: string;
1365
+ body?: Record<string, unknown> | undefined;
1366
+ headers?: Record<string, string> | undefined;
1367
+ maxAttempts: number;
1368
+ signingSecret?: string | undefined;
1369
+ signingSecretSealed?: string | undefined;
1370
+ signingSecretSet?: boolean | undefined;
1371
+ responseMap: {
1372
+ path: string;
1373
+ field: string;
1374
+ }[];
1375
+ } | {
1376
+ waitDays: number;
1377
+ businessDays: boolean;
1378
+ when?: {
1379
+ kind: "engagement";
1380
+ event: "clicked" | "opened" | "replied";
1381
+ negate: boolean;
1382
+ } | {
1383
+ kind: "task_outcome";
1384
+ outcome: string;
1385
+ step?: string | undefined;
1386
+ negate: boolean;
1387
+ } | {
1388
+ kind: "has_phone";
1389
+ negate: boolean;
1390
+ } | {
1391
+ kind: "linkedin_connected";
1392
+ negate: boolean;
1393
+ } | {
1394
+ kind: "reply";
1395
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1396
+ negate: boolean;
1397
+ } | {
1398
+ kind: "verified";
1399
+ negate: boolean;
1400
+ } | {
1401
+ kind: "field";
1402
+ field: string;
1403
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
1404
+ value?: unknown;
1405
+ } | undefined;
1406
+ window?: {
1407
+ startMin: number;
1408
+ endMin: number;
1409
+ weekdays?: number[] | undefined;
1410
+ } | undefined;
1411
+ type: "linkedin";
1412
+ action: "connect" | "inmail" | "like_post" | "message" | "visit";
1413
+ message?: string | undefined;
1414
+ } | {
1415
+ waitDays: number;
1416
+ businessDays: boolean;
1417
+ when?: {
1418
+ kind: "engagement";
1419
+ event: "clicked" | "opened" | "replied";
1420
+ negate: boolean;
1421
+ } | {
1422
+ kind: "task_outcome";
1423
+ outcome: string;
1424
+ step?: string | undefined;
1425
+ negate: boolean;
1426
+ } | {
1427
+ kind: "has_phone";
1428
+ negate: boolean;
1429
+ } | {
1430
+ kind: "linkedin_connected";
1431
+ negate: boolean;
1432
+ } | {
1433
+ kind: "reply";
1434
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1435
+ negate: boolean;
1436
+ } | {
1437
+ kind: "verified";
1438
+ negate: boolean;
1439
+ } | {
1440
+ kind: "field";
1441
+ field: string;
1442
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
1443
+ value?: unknown;
1444
+ } | undefined;
1445
+ window?: {
1446
+ startMin: number;
1447
+ endMin: number;
1448
+ weekdays?: number[] | undefined;
1449
+ } | undefined;
1450
+ type: "whatsapp";
1451
+ templateId: string;
1452
+ versionId?: string | undefined;
1453
+ } | {
1454
+ waitDays: number;
1455
+ businessDays: boolean;
1456
+ when?: {
1457
+ kind: "engagement";
1458
+ event: "clicked" | "opened" | "replied";
1459
+ negate: boolean;
1460
+ } | {
1461
+ kind: "task_outcome";
1462
+ outcome: string;
1463
+ step?: string | undefined;
1464
+ negate: boolean;
1465
+ } | {
1466
+ kind: "has_phone";
1467
+ negate: boolean;
1468
+ } | {
1469
+ kind: "linkedin_connected";
1470
+ negate: boolean;
1471
+ } | {
1472
+ kind: "reply";
1473
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1474
+ negate: boolean;
1475
+ } | {
1476
+ kind: "verified";
1477
+ negate: boolean;
1478
+ } | {
1479
+ kind: "field";
1480
+ field: string;
1481
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
1482
+ value?: unknown;
1483
+ } | undefined;
1484
+ window?: {
1485
+ startMin: number;
1486
+ endMin: number;
1487
+ weekdays?: number[] | undefined;
1488
+ } | undefined;
1489
+ type: "voice";
1490
+ clipId: string;
1491
+ via: "linkedin" | "voicemail";
1492
+ message?: string | undefined;
1493
+ title?: string | undefined;
1494
+ } | {
1495
+ waitDays: number;
1496
+ businessDays: boolean;
1497
+ when?: {
1498
+ kind: "engagement";
1499
+ event: "clicked" | "opened" | "replied";
1500
+ negate: boolean;
1501
+ } | {
1502
+ kind: "task_outcome";
1503
+ outcome: string;
1504
+ step?: string | undefined;
1505
+ negate: boolean;
1506
+ } | {
1507
+ kind: "has_phone";
1508
+ negate: boolean;
1509
+ } | {
1510
+ kind: "linkedin_connected";
1511
+ negate: boolean;
1512
+ } | {
1513
+ kind: "reply";
1514
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1515
+ negate: boolean;
1516
+ } | {
1517
+ kind: "verified";
1518
+ negate: boolean;
1519
+ } | {
1520
+ kind: "field";
1521
+ field: string;
1522
+ op: "contains" | "eq" | "exists" | "gt" | "gte" | "lt" | "lte" | "ne" | "not_exists";
1523
+ value?: unknown;
1524
+ } | undefined;
1525
+ window?: {
1526
+ startMin: number;
1527
+ endMin: number;
1528
+ weekdays?: number[] | undefined;
1529
+ } | undefined;
1530
+ type: "postcard";
1531
+ design: {
1532
+ size: "6x4" | "9x6";
1533
+ front: string;
1534
+ back: string;
1535
+ };
1536
+ connectionId: string;
1537
+ })[];
1538
+ })[];
1539
+ schedule: {
1540
+ weekdays: number[];
1541
+ startMin: number;
1542
+ endMin: number;
1543
+ timezoneSource: "prospect" | "sequence";
1544
+ timezone: string;
1545
+ };
1546
+ mailbox: {
1547
+ poolId?: string | undefined;
1548
+ connectionId?: string | undefined;
1549
+ sticky: boolean;
1550
+ onUnavailable: "pause" | "reassign";
1551
+ matchProvider?: boolean | undefined;
1552
+ };
1553
+ dailyNewLimit?: number | undefined;
1554
+ followUpPercent?: number | undefined;
1555
+ plainTextOnly?: boolean | undefined;
1556
+ trackOpens?: boolean | undefined;
1557
+ unsubscribeText?: string | undefined;
1558
+ spintaxMode?: "random" | "sequential" | undefined;
1559
+ variables?: Record<string, string> | undefined;
1560
+ blocklist?: {
1561
+ emails: string[];
1562
+ domains: string[];
1563
+ } | undefined;
1564
+ reviewBeforeSend?: boolean | undefined;
1565
+ reviewEachMessage?: boolean | undefined;
1566
+ stop: {
1567
+ onReply: "any" | "human";
1568
+ onAutoReply: "continue" | "pause";
1569
+ onOoo: "continue" | "pause_until_return" | "stop";
1570
+ onCompanyReply: "none" | "pause" | "stop";
1571
+ };
1572
+ onCategory?: {
1573
+ category: "auto_reply" | "bounce" | "meeting" | "negative" | "neutral" | "ooo" | "positive" | "unsubscribe" | "wrong_person";
1574
+ sequenceId: string;
1575
+ stopCurrent: boolean;
1576
+ }[] | undefined;
1577
+ optInAsk?: {
1578
+ listId: string;
1579
+ connectionId?: string | undefined;
1580
+ } | undefined;
1581
+ ownerUserId?: string | undefined;
1582
+ scheduleId?: string | undefined;
1583
+ dedupe: {
1584
+ crossSequence: "allow" | "skip";
1585
+ contactedWithinDays: number;
1586
+ domain: boolean;
1587
+ };
1588
+ startAt?: Date | undefined;
1589
+ minGapMinutes?: number | undefined;
1590
+ senderOverrides?: Record<string, {
1591
+ dailyLimit?: number | undefined;
1592
+ paused?: boolean | undefined;
1593
+ }> | undefined;
1594
+ abm?: {
1595
+ maxPerAccount: number;
1596
+ onAccountReply: "none" | "pause" | "stop";
1597
+ } | undefined;
1598
+ };
1599
+ templates: {
1600
+ id: string;
1601
+ subject: string;
1602
+ }[];
1603
+ draft: true;
1604
+ model: string;
1605
+ }>;
1606
+ };
1607
+ };
1608
+ export {};