@marlinjai/mail-sdk 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -0
- package/dist/index.d.mts +283 -99
- package/dist/index.d.ts +283 -99
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -204,10 +204,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
204
204
|
list: (query?: RouteQuery<"members.list">, opts?: RequestOpts) => Promise<{
|
|
205
205
|
data: {
|
|
206
206
|
id: string;
|
|
207
|
-
|
|
207
|
+
email: string;
|
|
208
208
|
name: string | null;
|
|
209
|
+
subject: string;
|
|
209
210
|
created_at: string;
|
|
210
|
-
email: string;
|
|
211
211
|
role: "owner" | "admin" | "editor" | "viewer";
|
|
212
212
|
}[];
|
|
213
213
|
next_cursor: string | null;
|
|
@@ -219,18 +219,18 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
219
219
|
*/
|
|
220
220
|
add: (body: RouteBody<"members.add">, opts?: RequestOpts) => Promise<{
|
|
221
221
|
id: string;
|
|
222
|
-
|
|
222
|
+
email: string;
|
|
223
223
|
name: string | null;
|
|
224
|
+
subject: string;
|
|
224
225
|
created_at: string;
|
|
225
|
-
email: string;
|
|
226
226
|
role: "owner" | "admin" | "editor" | "viewer";
|
|
227
227
|
}>;
|
|
228
228
|
update: (id: string, body: RouteBody<"members.update">, opts?: RequestOpts) => Promise<{
|
|
229
229
|
id: string;
|
|
230
|
-
|
|
230
|
+
email: string;
|
|
231
231
|
name: string | null;
|
|
232
|
+
subject: string;
|
|
232
233
|
created_at: string;
|
|
233
|
-
email: string;
|
|
234
234
|
role: "owner" | "admin" | "editor" | "viewer";
|
|
235
235
|
}>;
|
|
236
236
|
remove: (id: string, opts?: RequestOpts) => Promise<{
|
|
@@ -247,8 +247,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
247
247
|
invite: {
|
|
248
248
|
status: "pending" | "accepted" | "revoked" | "expired";
|
|
249
249
|
id: string;
|
|
250
|
-
created_at: string;
|
|
251
250
|
email: string;
|
|
251
|
+
created_at: string;
|
|
252
252
|
role: "owner" | "admin" | "editor" | "viewer";
|
|
253
253
|
revoked_at: string | null;
|
|
254
254
|
invited_by: {
|
|
@@ -264,8 +264,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
264
264
|
data: {
|
|
265
265
|
status: "pending" | "accepted" | "revoked" | "expired";
|
|
266
266
|
id: string;
|
|
267
|
-
created_at: string;
|
|
268
267
|
email: string;
|
|
268
|
+
created_at: string;
|
|
269
269
|
role: "owner" | "admin" | "editor" | "viewer";
|
|
270
270
|
revoked_at: string | null;
|
|
271
271
|
invited_by: {
|
|
@@ -280,8 +280,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
280
280
|
revoke: (id: string, opts?: RequestOpts) => Promise<{
|
|
281
281
|
status: "pending" | "accepted" | "revoked" | "expired";
|
|
282
282
|
id: string;
|
|
283
|
-
created_at: string;
|
|
284
283
|
email: string;
|
|
284
|
+
created_at: string;
|
|
285
285
|
role: "owner" | "admin" | "editor" | "viewer";
|
|
286
286
|
revoked_at: string | null;
|
|
287
287
|
invited_by: {
|
|
@@ -377,10 +377,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
377
377
|
list: (query?: RouteQuery<"templates.list">, opts?: RequestOpts) => Promise<{
|
|
378
378
|
data: {
|
|
379
379
|
id: string;
|
|
380
|
+
name: string;
|
|
380
381
|
version: number;
|
|
381
382
|
subject: string | null;
|
|
382
383
|
preheader: string | null;
|
|
383
|
-
name: string;
|
|
384
384
|
description: string | null;
|
|
385
385
|
locale: string;
|
|
386
386
|
thumbnail_url: string | null;
|
|
@@ -388,11 +388,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
388
388
|
created_at: string;
|
|
389
389
|
updated_at: string;
|
|
390
390
|
languages: Record<string, "draft" | "ready">;
|
|
391
|
+
insertion_names: string[];
|
|
391
392
|
}[];
|
|
392
393
|
next_cursor: string | null;
|
|
393
394
|
}>;
|
|
394
395
|
create: (body: RouteBody<"templates.create">, opts?: RequestOpts) => Promise<{
|
|
395
396
|
id: string;
|
|
397
|
+
name: string;
|
|
396
398
|
version: number;
|
|
397
399
|
subject: string | null;
|
|
398
400
|
preheader: string | null;
|
|
@@ -403,7 +405,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
403
405
|
} & {
|
|
404
406
|
[k: string]: unknown;
|
|
405
407
|
};
|
|
406
|
-
|
|
408
|
+
insertions: Record<string, {
|
|
409
|
+
filled: string | null;
|
|
410
|
+
otherwise: string;
|
|
411
|
+
by: string;
|
|
412
|
+
choices: Record<string, string>;
|
|
413
|
+
}>;
|
|
407
414
|
description: string | null;
|
|
408
415
|
locale: string;
|
|
409
416
|
translations: Record<string, {
|
|
@@ -417,6 +424,11 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
417
424
|
} & {
|
|
418
425
|
[k: string]: unknown;
|
|
419
426
|
};
|
|
427
|
+
insertions?: Record<string, {
|
|
428
|
+
filled: string | null;
|
|
429
|
+
otherwise: string | null;
|
|
430
|
+
choices: Record<string, string | null>;
|
|
431
|
+
}> | undefined;
|
|
420
432
|
}>;
|
|
421
433
|
thumbnail_url: string | null;
|
|
422
434
|
archived_at: string | null;
|
|
@@ -425,6 +437,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
425
437
|
}>;
|
|
426
438
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
427
439
|
id: string;
|
|
440
|
+
name: string;
|
|
428
441
|
version: number;
|
|
429
442
|
subject: string | null;
|
|
430
443
|
preheader: string | null;
|
|
@@ -435,7 +448,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
435
448
|
} & {
|
|
436
449
|
[k: string]: unknown;
|
|
437
450
|
};
|
|
438
|
-
|
|
451
|
+
insertions: Record<string, {
|
|
452
|
+
filled: string | null;
|
|
453
|
+
otherwise: string;
|
|
454
|
+
by: string;
|
|
455
|
+
choices: Record<string, string>;
|
|
456
|
+
}>;
|
|
439
457
|
description: string | null;
|
|
440
458
|
locale: string;
|
|
441
459
|
translations: Record<string, {
|
|
@@ -449,6 +467,11 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
449
467
|
} & {
|
|
450
468
|
[k: string]: unknown;
|
|
451
469
|
};
|
|
470
|
+
insertions?: Record<string, {
|
|
471
|
+
filled: string | null;
|
|
472
|
+
otherwise: string | null;
|
|
473
|
+
choices: Record<string, string | null>;
|
|
474
|
+
}> | undefined;
|
|
452
475
|
}>;
|
|
453
476
|
thumbnail_url: string | null;
|
|
454
477
|
archived_at: string | null;
|
|
@@ -457,6 +480,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
457
480
|
}>;
|
|
458
481
|
update: (id: string, body: RouteBody<"templates.update">, opts?: RequestOpts) => Promise<{
|
|
459
482
|
id: string;
|
|
483
|
+
name: string;
|
|
460
484
|
version: number;
|
|
461
485
|
subject: string | null;
|
|
462
486
|
preheader: string | null;
|
|
@@ -467,7 +491,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
467
491
|
} & {
|
|
468
492
|
[k: string]: unknown;
|
|
469
493
|
};
|
|
470
|
-
|
|
494
|
+
insertions: Record<string, {
|
|
495
|
+
filled: string | null;
|
|
496
|
+
otherwise: string;
|
|
497
|
+
by: string;
|
|
498
|
+
choices: Record<string, string>;
|
|
499
|
+
}>;
|
|
471
500
|
description: string | null;
|
|
472
501
|
locale: string;
|
|
473
502
|
translations: Record<string, {
|
|
@@ -481,6 +510,11 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
481
510
|
} & {
|
|
482
511
|
[k: string]: unknown;
|
|
483
512
|
};
|
|
513
|
+
insertions?: Record<string, {
|
|
514
|
+
filled: string | null;
|
|
515
|
+
otherwise: string | null;
|
|
516
|
+
choices: Record<string, string | null>;
|
|
517
|
+
}> | undefined;
|
|
484
518
|
}>;
|
|
485
519
|
thumbnail_url: string | null;
|
|
486
520
|
archived_at: string | null;
|
|
@@ -502,6 +536,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
502
536
|
} & {
|
|
503
537
|
[k: string]: unknown;
|
|
504
538
|
};
|
|
539
|
+
insertions: Record<string, {
|
|
540
|
+
filled: string | null;
|
|
541
|
+
otherwise: string;
|
|
542
|
+
by: string;
|
|
543
|
+
choices: Record<string, string>;
|
|
544
|
+
}>;
|
|
505
545
|
locale: string;
|
|
506
546
|
translations: Record<string, {
|
|
507
547
|
status: "draft" | "ready";
|
|
@@ -514,6 +554,11 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
514
554
|
} & {
|
|
515
555
|
[k: string]: unknown;
|
|
516
556
|
};
|
|
557
|
+
insertions?: Record<string, {
|
|
558
|
+
filled: string | null;
|
|
559
|
+
otherwise: string | null;
|
|
560
|
+
choices: Record<string, string | null>;
|
|
561
|
+
}> | undefined;
|
|
517
562
|
}>;
|
|
518
563
|
created_at: string;
|
|
519
564
|
created_by: string | null;
|
|
@@ -532,6 +577,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
532
577
|
} & {
|
|
533
578
|
[k: string]: unknown;
|
|
534
579
|
};
|
|
580
|
+
insertions: Record<string, {
|
|
581
|
+
filled: string | null;
|
|
582
|
+
otherwise: string;
|
|
583
|
+
by: string;
|
|
584
|
+
choices: Record<string, string>;
|
|
585
|
+
}>;
|
|
535
586
|
locale: string;
|
|
536
587
|
translations: Record<string, {
|
|
537
588
|
status: "draft" | "ready";
|
|
@@ -544,6 +595,11 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
544
595
|
} & {
|
|
545
596
|
[k: string]: unknown;
|
|
546
597
|
};
|
|
598
|
+
insertions?: Record<string, {
|
|
599
|
+
filled: string | null;
|
|
600
|
+
otherwise: string | null;
|
|
601
|
+
choices: Record<string, string | null>;
|
|
602
|
+
}> | undefined;
|
|
547
603
|
}>;
|
|
548
604
|
created_at: string;
|
|
549
605
|
created_by: string | null;
|
|
@@ -579,6 +635,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
579
635
|
}[];
|
|
580
636
|
template: {
|
|
581
637
|
id: string;
|
|
638
|
+
name: string;
|
|
582
639
|
version: number;
|
|
583
640
|
subject: string | null;
|
|
584
641
|
preheader: string | null;
|
|
@@ -589,7 +646,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
589
646
|
} & {
|
|
590
647
|
[k: string]: unknown;
|
|
591
648
|
};
|
|
592
|
-
|
|
649
|
+
insertions: Record<string, {
|
|
650
|
+
filled: string | null;
|
|
651
|
+
otherwise: string;
|
|
652
|
+
by: string;
|
|
653
|
+
choices: Record<string, string>;
|
|
654
|
+
}>;
|
|
593
655
|
description: string | null;
|
|
594
656
|
locale: string;
|
|
595
657
|
translations: Record<string, {
|
|
@@ -603,6 +665,11 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
603
665
|
} & {
|
|
604
666
|
[k: string]: unknown;
|
|
605
667
|
};
|
|
668
|
+
insertions?: Record<string, {
|
|
669
|
+
filled: string | null;
|
|
670
|
+
otherwise: string | null;
|
|
671
|
+
choices: Record<string, string | null>;
|
|
672
|
+
}> | undefined;
|
|
606
673
|
}>;
|
|
607
674
|
thumbnail_url: string | null;
|
|
608
675
|
archived_at: string | null;
|
|
@@ -722,8 +789,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
722
789
|
/** `file` must be a `Blob` (edge-safe): wrap a Node `Buffer` with `new Blob([buffer])`. */
|
|
723
790
|
upload: (file: Blob, filename?: string, opts?: RequestOpts) => Promise<{
|
|
724
791
|
id: string;
|
|
725
|
-
created_at: string;
|
|
726
792
|
url: string;
|
|
793
|
+
created_at: string;
|
|
727
794
|
content_type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
|
|
728
795
|
size_bytes: number;
|
|
729
796
|
width: number | null;
|
|
@@ -739,8 +806,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
739
806
|
*/
|
|
740
807
|
import: (body: RouteBody<"assets.import">, opts?: RequestOpts) => Promise<{
|
|
741
808
|
id: string;
|
|
742
|
-
created_at: string;
|
|
743
809
|
url: string;
|
|
810
|
+
created_at: string;
|
|
744
811
|
content_type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
|
|
745
812
|
size_bytes: number;
|
|
746
813
|
width: number | null;
|
|
@@ -749,8 +816,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
749
816
|
}>;
|
|
750
817
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
751
818
|
id: string;
|
|
752
|
-
created_at: string;
|
|
753
819
|
url: string;
|
|
820
|
+
created_at: string;
|
|
754
821
|
content_type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
|
|
755
822
|
size_bytes: number;
|
|
756
823
|
width: number | null;
|
|
@@ -1251,32 +1318,32 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1251
1318
|
};
|
|
1252
1319
|
contacts: {
|
|
1253
1320
|
upsert: (body: RouteBody<"contacts.upsert">, opts?: RequestOpts) => Promise<{
|
|
1254
|
-
created: boolean;
|
|
1255
1321
|
contact: {
|
|
1256
1322
|
id: string;
|
|
1323
|
+
first_name: string | null;
|
|
1324
|
+
last_name: string | null;
|
|
1325
|
+
email: string;
|
|
1257
1326
|
locale: string | null;
|
|
1258
1327
|
created_at: string;
|
|
1259
1328
|
updated_at: string;
|
|
1260
|
-
email: string;
|
|
1261
1329
|
external_id: string | null;
|
|
1262
|
-
first_name: string | null;
|
|
1263
|
-
last_name: string | null;
|
|
1264
1330
|
topics: string[];
|
|
1265
1331
|
tags: string[];
|
|
1266
1332
|
timezone: string | null;
|
|
1267
1333
|
properties: Record<string, _marlinjai_mail_contract.JsonValue>;
|
|
1268
1334
|
};
|
|
1335
|
+
created: boolean;
|
|
1269
1336
|
}>;
|
|
1270
1337
|
list: (query?: RouteQuery<"contacts.list">, opts?: RequestOpts) => Promise<{
|
|
1271
1338
|
data: {
|
|
1272
1339
|
id: string;
|
|
1340
|
+
first_name: string | null;
|
|
1341
|
+
last_name: string | null;
|
|
1342
|
+
email: string;
|
|
1273
1343
|
locale: string | null;
|
|
1274
1344
|
created_at: string;
|
|
1275
1345
|
updated_at: string;
|
|
1276
|
-
email: string;
|
|
1277
1346
|
external_id: string | null;
|
|
1278
|
-
first_name: string | null;
|
|
1279
|
-
last_name: string | null;
|
|
1280
1347
|
topics: string[];
|
|
1281
1348
|
tags: string[];
|
|
1282
1349
|
timezone: string | null;
|
|
@@ -1286,13 +1353,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1286
1353
|
}>;
|
|
1287
1354
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
1288
1355
|
id: string;
|
|
1356
|
+
first_name: string | null;
|
|
1357
|
+
last_name: string | null;
|
|
1358
|
+
email: string;
|
|
1289
1359
|
locale: string | null;
|
|
1290
1360
|
created_at: string;
|
|
1291
1361
|
updated_at: string;
|
|
1292
|
-
email: string;
|
|
1293
1362
|
external_id: string | null;
|
|
1294
|
-
first_name: string | null;
|
|
1295
|
-
last_name: string | null;
|
|
1296
1363
|
topics: string[];
|
|
1297
1364
|
tags: string[];
|
|
1298
1365
|
timezone: string | null;
|
|
@@ -1309,6 +1376,11 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1309
1376
|
id: string;
|
|
1310
1377
|
error: string | null;
|
|
1311
1378
|
subject: string;
|
|
1379
|
+
insertions: Record<string, {
|
|
1380
|
+
value: string | null;
|
|
1381
|
+
chosen: string;
|
|
1382
|
+
matched: boolean;
|
|
1383
|
+
}> | null;
|
|
1312
1384
|
locale: string | null;
|
|
1313
1385
|
created_at: string;
|
|
1314
1386
|
provider_id: string;
|
|
@@ -1328,6 +1400,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1328
1400
|
data: {
|
|
1329
1401
|
status: "failed" | "completed" | "active" | "exited" | "waiting";
|
|
1330
1402
|
id: string;
|
|
1403
|
+
email: string;
|
|
1331
1404
|
version: number;
|
|
1332
1405
|
automation: {
|
|
1333
1406
|
status: "draft" | "archived" | "paused" | "active";
|
|
@@ -1336,7 +1409,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1336
1409
|
};
|
|
1337
1410
|
automation_id: string;
|
|
1338
1411
|
contact_id: string;
|
|
1339
|
-
email: string;
|
|
1340
1412
|
last_error: string | null;
|
|
1341
1413
|
external_id: string | null;
|
|
1342
1414
|
current_step_id: string | null;
|
|
@@ -1354,9 +1426,9 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1354
1426
|
data: {
|
|
1355
1427
|
id: string;
|
|
1356
1428
|
reason: "manual" | "unsubscribed" | "bounced" | "complained";
|
|
1429
|
+
email: string;
|
|
1357
1430
|
created_at: string;
|
|
1358
1431
|
topic: string | null;
|
|
1359
|
-
email: string;
|
|
1360
1432
|
source_message_id: string | null;
|
|
1361
1433
|
note: string | null;
|
|
1362
1434
|
}[];
|
|
@@ -1365,9 +1437,9 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1365
1437
|
create: (body: RouteBody<"suppressions.create">, opts?: RequestOpts) => Promise<{
|
|
1366
1438
|
id: string;
|
|
1367
1439
|
reason: "manual" | "unsubscribed" | "bounced" | "complained";
|
|
1440
|
+
email: string;
|
|
1368
1441
|
created_at: string;
|
|
1369
1442
|
topic: string | null;
|
|
1370
|
-
email: string;
|
|
1371
1443
|
source_message_id: string | null;
|
|
1372
1444
|
note: string | null;
|
|
1373
1445
|
}>;
|
|
@@ -1380,10 +1452,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1380
1452
|
data: {
|
|
1381
1453
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1382
1454
|
id: string;
|
|
1455
|
+
name: string | null;
|
|
1383
1456
|
metadata: Record<string, string>;
|
|
1384
1457
|
subject: string;
|
|
1385
1458
|
preheader: string | null;
|
|
1386
|
-
name: string | null;
|
|
1387
1459
|
locale: string;
|
|
1388
1460
|
created_at: string;
|
|
1389
1461
|
updated_at: string;
|
|
@@ -1404,8 +1476,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1404
1476
|
ab_test: {
|
|
1405
1477
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1406
1478
|
variants: {
|
|
1407
|
-
subject: string | null;
|
|
1408
1479
|
key: string;
|
|
1480
|
+
subject: string | null;
|
|
1409
1481
|
has_document: boolean;
|
|
1410
1482
|
}[];
|
|
1411
1483
|
test_fraction: number;
|
|
@@ -1425,6 +1497,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1425
1497
|
create: (body: RouteBody<"mailings.create">, opts?: RequestOpts) => Promise<{
|
|
1426
1498
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1427
1499
|
id: string;
|
|
1500
|
+
name: string | null;
|
|
1428
1501
|
metadata: Record<string, string>;
|
|
1429
1502
|
subject: string;
|
|
1430
1503
|
preheader: string | null;
|
|
@@ -1435,7 +1508,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1435
1508
|
} & {
|
|
1436
1509
|
[k: string]: unknown;
|
|
1437
1510
|
};
|
|
1438
|
-
name: string | null;
|
|
1439
1511
|
locale: string;
|
|
1440
1512
|
created_at: string;
|
|
1441
1513
|
updated_at: string;
|
|
@@ -1456,8 +1528,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1456
1528
|
ab_test: {
|
|
1457
1529
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1458
1530
|
variants: {
|
|
1459
|
-
subject: string | null;
|
|
1460
1531
|
key: string;
|
|
1532
|
+
subject: string | null;
|
|
1461
1533
|
has_document: boolean;
|
|
1462
1534
|
}[];
|
|
1463
1535
|
test_fraction: number;
|
|
@@ -1475,6 +1547,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1475
1547
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
1476
1548
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1477
1549
|
id: string;
|
|
1550
|
+
name: string | null;
|
|
1478
1551
|
metadata: Record<string, string>;
|
|
1479
1552
|
subject: string;
|
|
1480
1553
|
preheader: string | null;
|
|
@@ -1485,7 +1558,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1485
1558
|
} & {
|
|
1486
1559
|
[k: string]: unknown;
|
|
1487
1560
|
};
|
|
1488
|
-
name: string | null;
|
|
1489
1561
|
locale: string;
|
|
1490
1562
|
created_at: string;
|
|
1491
1563
|
updated_at: string;
|
|
@@ -1506,8 +1578,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1506
1578
|
ab_test: {
|
|
1507
1579
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1508
1580
|
variants: {
|
|
1509
|
-
subject: string | null;
|
|
1510
1581
|
key: string;
|
|
1582
|
+
subject: string | null;
|
|
1511
1583
|
has_document: boolean;
|
|
1512
1584
|
}[];
|
|
1513
1585
|
test_fraction: number;
|
|
@@ -1527,6 +1599,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1527
1599
|
update: (id: string, body: RouteBody<"mailings.update">, opts?: RequestOpts) => Promise<{
|
|
1528
1600
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1529
1601
|
id: string;
|
|
1602
|
+
name: string | null;
|
|
1530
1603
|
metadata: Record<string, string>;
|
|
1531
1604
|
subject: string;
|
|
1532
1605
|
preheader: string | null;
|
|
@@ -1537,7 +1610,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1537
1610
|
} & {
|
|
1538
1611
|
[k: string]: unknown;
|
|
1539
1612
|
};
|
|
1540
|
-
name: string | null;
|
|
1541
1613
|
locale: string;
|
|
1542
1614
|
created_at: string;
|
|
1543
1615
|
updated_at: string;
|
|
@@ -1558,8 +1630,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1558
1630
|
ab_test: {
|
|
1559
1631
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1560
1632
|
variants: {
|
|
1561
|
-
subject: string | null;
|
|
1562
1633
|
key: string;
|
|
1634
|
+
subject: string | null;
|
|
1563
1635
|
has_document: boolean;
|
|
1564
1636
|
}[];
|
|
1565
1637
|
test_fraction: number;
|
|
@@ -1586,13 +1658,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1586
1658
|
data: {
|
|
1587
1659
|
status: "sending" | "sent" | "queued" | "failed" | "skipped";
|
|
1588
1660
|
id: string;
|
|
1661
|
+
email: string;
|
|
1589
1662
|
merge: Record<string, _marlinjai_mail_contract.JsonValue>;
|
|
1590
1663
|
created_at: string;
|
|
1591
1664
|
updated_at: string;
|
|
1592
1665
|
message_id: string | null;
|
|
1593
1666
|
mailing_id: string;
|
|
1594
1667
|
contact_id: string | null;
|
|
1595
|
-
email: string;
|
|
1596
1668
|
skip_reason: "cancelled" | "suppressed" | "not_subscribed" | "contact_erased" | "outcome_unknown" | null;
|
|
1597
1669
|
attempts: number;
|
|
1598
1670
|
last_error: string | null;
|
|
@@ -1606,6 +1678,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1606
1678
|
send: (id: string, opts?: RequestOpts) => Promise<{
|
|
1607
1679
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1608
1680
|
id: string;
|
|
1681
|
+
name: string | null;
|
|
1609
1682
|
metadata: Record<string, string>;
|
|
1610
1683
|
subject: string;
|
|
1611
1684
|
preheader: string | null;
|
|
@@ -1616,7 +1689,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1616
1689
|
} & {
|
|
1617
1690
|
[k: string]: unknown;
|
|
1618
1691
|
};
|
|
1619
|
-
name: string | null;
|
|
1620
1692
|
locale: string;
|
|
1621
1693
|
created_at: string;
|
|
1622
1694
|
updated_at: string;
|
|
@@ -1637,8 +1709,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1637
1709
|
ab_test: {
|
|
1638
1710
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1639
1711
|
variants: {
|
|
1640
|
-
subject: string | null;
|
|
1641
1712
|
key: string;
|
|
1713
|
+
subject: string | null;
|
|
1642
1714
|
has_document: boolean;
|
|
1643
1715
|
}[];
|
|
1644
1716
|
test_fraction: number;
|
|
@@ -1656,6 +1728,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1656
1728
|
pause: (id: string, opts?: RequestOpts) => Promise<{
|
|
1657
1729
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1658
1730
|
id: string;
|
|
1731
|
+
name: string | null;
|
|
1659
1732
|
metadata: Record<string, string>;
|
|
1660
1733
|
subject: string;
|
|
1661
1734
|
preheader: string | null;
|
|
@@ -1666,7 +1739,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1666
1739
|
} & {
|
|
1667
1740
|
[k: string]: unknown;
|
|
1668
1741
|
};
|
|
1669
|
-
name: string | null;
|
|
1670
1742
|
locale: string;
|
|
1671
1743
|
created_at: string;
|
|
1672
1744
|
updated_at: string;
|
|
@@ -1687,8 +1759,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1687
1759
|
ab_test: {
|
|
1688
1760
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1689
1761
|
variants: {
|
|
1690
|
-
subject: string | null;
|
|
1691
1762
|
key: string;
|
|
1763
|
+
subject: string | null;
|
|
1692
1764
|
has_document: boolean;
|
|
1693
1765
|
}[];
|
|
1694
1766
|
test_fraction: number;
|
|
@@ -1706,6 +1778,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1706
1778
|
resume: (id: string, opts?: RequestOpts) => Promise<{
|
|
1707
1779
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1708
1780
|
id: string;
|
|
1781
|
+
name: string | null;
|
|
1709
1782
|
metadata: Record<string, string>;
|
|
1710
1783
|
subject: string;
|
|
1711
1784
|
preheader: string | null;
|
|
@@ -1716,7 +1789,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1716
1789
|
} & {
|
|
1717
1790
|
[k: string]: unknown;
|
|
1718
1791
|
};
|
|
1719
|
-
name: string | null;
|
|
1720
1792
|
locale: string;
|
|
1721
1793
|
created_at: string;
|
|
1722
1794
|
updated_at: string;
|
|
@@ -1737,8 +1809,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1737
1809
|
ab_test: {
|
|
1738
1810
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1739
1811
|
variants: {
|
|
1740
|
-
subject: string | null;
|
|
1741
1812
|
key: string;
|
|
1813
|
+
subject: string | null;
|
|
1742
1814
|
has_document: boolean;
|
|
1743
1815
|
}[];
|
|
1744
1816
|
test_fraction: number;
|
|
@@ -1756,6 +1828,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1756
1828
|
cancel: (id: string, opts?: RequestOpts) => Promise<{
|
|
1757
1829
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1758
1830
|
id: string;
|
|
1831
|
+
name: string | null;
|
|
1759
1832
|
metadata: Record<string, string>;
|
|
1760
1833
|
subject: string;
|
|
1761
1834
|
preheader: string | null;
|
|
@@ -1766,7 +1839,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1766
1839
|
} & {
|
|
1767
1840
|
[k: string]: unknown;
|
|
1768
1841
|
};
|
|
1769
|
-
name: string | null;
|
|
1770
1842
|
locale: string;
|
|
1771
1843
|
created_at: string;
|
|
1772
1844
|
updated_at: string;
|
|
@@ -1787,8 +1859,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1787
1859
|
ab_test: {
|
|
1788
1860
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1789
1861
|
variants: {
|
|
1790
|
-
subject: string | null;
|
|
1791
1862
|
key: string;
|
|
1863
|
+
subject: string | null;
|
|
1792
1864
|
has_document: boolean;
|
|
1793
1865
|
}[];
|
|
1794
1866
|
test_fraction: number;
|
|
@@ -1806,6 +1878,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1806
1878
|
retryFailed: (id: string, body?: RouteBody<"mailings.retryFailed">, opts?: RequestOpts) => Promise<{
|
|
1807
1879
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1808
1880
|
id: string;
|
|
1881
|
+
name: string | null;
|
|
1809
1882
|
metadata: Record<string, string>;
|
|
1810
1883
|
subject: string;
|
|
1811
1884
|
preheader: string | null;
|
|
@@ -1816,7 +1889,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1816
1889
|
} & {
|
|
1817
1890
|
[k: string]: unknown;
|
|
1818
1891
|
};
|
|
1819
|
-
name: string | null;
|
|
1820
1892
|
locale: string;
|
|
1821
1893
|
created_at: string;
|
|
1822
1894
|
updated_at: string;
|
|
@@ -1837,8 +1909,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1837
1909
|
ab_test: {
|
|
1838
1910
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1839
1911
|
variants: {
|
|
1840
|
-
subject: string | null;
|
|
1841
1912
|
key: string;
|
|
1913
|
+
subject: string | null;
|
|
1842
1914
|
has_document: boolean;
|
|
1843
1915
|
}[];
|
|
1844
1916
|
test_fraction: number;
|
|
@@ -1856,6 +1928,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1856
1928
|
duplicate: (id: string, opts?: RequestOpts) => Promise<{
|
|
1857
1929
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1858
1930
|
id: string;
|
|
1931
|
+
name: string | null;
|
|
1859
1932
|
metadata: Record<string, string>;
|
|
1860
1933
|
subject: string;
|
|
1861
1934
|
preheader: string | null;
|
|
@@ -1866,7 +1939,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1866
1939
|
} & {
|
|
1867
1940
|
[k: string]: unknown;
|
|
1868
1941
|
};
|
|
1869
|
-
name: string | null;
|
|
1870
1942
|
locale: string;
|
|
1871
1943
|
created_at: string;
|
|
1872
1944
|
updated_at: string;
|
|
@@ -1887,8 +1959,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1887
1959
|
ab_test: {
|
|
1888
1960
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1889
1961
|
variants: {
|
|
1890
|
-
subject: string | null;
|
|
1891
1962
|
key: string;
|
|
1963
|
+
subject: string | null;
|
|
1892
1964
|
has_document: boolean;
|
|
1893
1965
|
}[];
|
|
1894
1966
|
test_fraction: number;
|
|
@@ -1914,6 +1986,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1914
1986
|
schedule: (id: string, body: RouteBody<"mailings.schedule">, opts?: RequestOpts) => Promise<{
|
|
1915
1987
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1916
1988
|
id: string;
|
|
1989
|
+
name: string | null;
|
|
1917
1990
|
metadata: Record<string, string>;
|
|
1918
1991
|
subject: string;
|
|
1919
1992
|
preheader: string | null;
|
|
@@ -1924,7 +1997,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1924
1997
|
} & {
|
|
1925
1998
|
[k: string]: unknown;
|
|
1926
1999
|
};
|
|
1927
|
-
name: string | null;
|
|
1928
2000
|
locale: string;
|
|
1929
2001
|
created_at: string;
|
|
1930
2002
|
updated_at: string;
|
|
@@ -1945,8 +2017,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1945
2017
|
ab_test: {
|
|
1946
2018
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1947
2019
|
variants: {
|
|
1948
|
-
subject: string | null;
|
|
1949
2020
|
key: string;
|
|
2021
|
+
subject: string | null;
|
|
1950
2022
|
has_document: boolean;
|
|
1951
2023
|
}[];
|
|
1952
2024
|
test_fraction: number;
|
|
@@ -1964,6 +2036,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1964
2036
|
unschedule: (id: string, opts?: RequestOpts) => Promise<{
|
|
1965
2037
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1966
2038
|
id: string;
|
|
2039
|
+
name: string | null;
|
|
1967
2040
|
metadata: Record<string, string>;
|
|
1968
2041
|
subject: string;
|
|
1969
2042
|
preheader: string | null;
|
|
@@ -1974,7 +2047,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1974
2047
|
} & {
|
|
1975
2048
|
[k: string]: unknown;
|
|
1976
2049
|
};
|
|
1977
|
-
name: string | null;
|
|
1978
2050
|
locale: string;
|
|
1979
2051
|
created_at: string;
|
|
1980
2052
|
updated_at: string;
|
|
@@ -1995,8 +2067,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1995
2067
|
ab_test: {
|
|
1996
2068
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1997
2069
|
variants: {
|
|
1998
|
-
subject: string | null;
|
|
1999
2070
|
key: string;
|
|
2071
|
+
subject: string | null;
|
|
2000
2072
|
has_document: boolean;
|
|
2001
2073
|
}[];
|
|
2002
2074
|
test_fraction: number;
|
|
@@ -2014,6 +2086,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2014
2086
|
setAbTest: (id: string, body: RouteBody<"mailings.setAbTest">, opts?: RequestOpts) => Promise<{
|
|
2015
2087
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
2016
2088
|
id: string;
|
|
2089
|
+
name: string | null;
|
|
2017
2090
|
metadata: Record<string, string>;
|
|
2018
2091
|
subject: string;
|
|
2019
2092
|
preheader: string | null;
|
|
@@ -2024,7 +2097,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2024
2097
|
} & {
|
|
2025
2098
|
[k: string]: unknown;
|
|
2026
2099
|
};
|
|
2027
|
-
name: string | null;
|
|
2028
2100
|
locale: string;
|
|
2029
2101
|
created_at: string;
|
|
2030
2102
|
updated_at: string;
|
|
@@ -2045,8 +2117,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2045
2117
|
ab_test: {
|
|
2046
2118
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
2047
2119
|
variants: {
|
|
2048
|
-
subject: string | null;
|
|
2049
2120
|
key: string;
|
|
2121
|
+
subject: string | null;
|
|
2050
2122
|
has_document: boolean;
|
|
2051
2123
|
}[];
|
|
2052
2124
|
test_fraction: number;
|
|
@@ -2064,6 +2136,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2064
2136
|
clearAbTest: (id: string, opts?: RequestOpts) => Promise<{
|
|
2065
2137
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
2066
2138
|
id: string;
|
|
2139
|
+
name: string | null;
|
|
2067
2140
|
metadata: Record<string, string>;
|
|
2068
2141
|
subject: string;
|
|
2069
2142
|
preheader: string | null;
|
|
@@ -2074,7 +2147,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2074
2147
|
} & {
|
|
2075
2148
|
[k: string]: unknown;
|
|
2076
2149
|
};
|
|
2077
|
-
name: string | null;
|
|
2078
2150
|
locale: string;
|
|
2079
2151
|
created_at: string;
|
|
2080
2152
|
updated_at: string;
|
|
@@ -2095,8 +2167,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2095
2167
|
ab_test: {
|
|
2096
2168
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
2097
2169
|
variants: {
|
|
2098
|
-
subject: string | null;
|
|
2099
2170
|
key: string;
|
|
2171
|
+
subject: string | null;
|
|
2100
2172
|
has_document: boolean;
|
|
2101
2173
|
}[];
|
|
2102
2174
|
test_fraction: number;
|
|
@@ -2114,6 +2186,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2114
2186
|
pickAbWinner: (id: string, body: RouteBody<"mailings.pickAbWinner">, opts?: RequestOpts) => Promise<{
|
|
2115
2187
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
2116
2188
|
id: string;
|
|
2189
|
+
name: string | null;
|
|
2117
2190
|
metadata: Record<string, string>;
|
|
2118
2191
|
subject: string;
|
|
2119
2192
|
preheader: string | null;
|
|
@@ -2124,7 +2197,6 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2124
2197
|
} & {
|
|
2125
2198
|
[k: string]: unknown;
|
|
2126
2199
|
};
|
|
2127
|
-
name: string | null;
|
|
2128
2200
|
locale: string;
|
|
2129
2201
|
created_at: string;
|
|
2130
2202
|
updated_at: string;
|
|
@@ -2145,8 +2217,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2145
2217
|
ab_test: {
|
|
2146
2218
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
2147
2219
|
variants: {
|
|
2148
|
-
subject: string | null;
|
|
2149
2220
|
key: string;
|
|
2221
|
+
subject: string | null;
|
|
2150
2222
|
has_document: boolean;
|
|
2151
2223
|
}[];
|
|
2152
2224
|
test_fraction: number;
|
|
@@ -2208,6 +2280,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2208
2280
|
wanted: string;
|
|
2209
2281
|
}[];
|
|
2210
2282
|
no_language: number;
|
|
2283
|
+
insertion_misses: {
|
|
2284
|
+
value: string;
|
|
2285
|
+
sent: number;
|
|
2286
|
+
planned: number;
|
|
2287
|
+
insertion: string;
|
|
2288
|
+
}[];
|
|
2211
2289
|
}>;
|
|
2212
2290
|
};
|
|
2213
2291
|
messages: {
|
|
@@ -2216,6 +2294,11 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2216
2294
|
id: string;
|
|
2217
2295
|
error: string | null;
|
|
2218
2296
|
subject: string;
|
|
2297
|
+
insertions: Record<string, {
|
|
2298
|
+
value: string | null;
|
|
2299
|
+
chosen: string;
|
|
2300
|
+
matched: boolean;
|
|
2301
|
+
}> | null;
|
|
2219
2302
|
locale: string | null;
|
|
2220
2303
|
created_at: string;
|
|
2221
2304
|
provider_id: string;
|
|
@@ -2234,6 +2317,11 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2234
2317
|
id: string;
|
|
2235
2318
|
error: string | null;
|
|
2236
2319
|
subject: string;
|
|
2320
|
+
insertions: Record<string, {
|
|
2321
|
+
value: string | null;
|
|
2322
|
+
chosen: string;
|
|
2323
|
+
matched: boolean;
|
|
2324
|
+
}> | null;
|
|
2237
2325
|
locale: string | null;
|
|
2238
2326
|
created_at: string;
|
|
2239
2327
|
html: string;
|
|
@@ -2252,10 +2340,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2252
2340
|
list: (query?: RouteQuery<"webhooks.list">, opts?: RequestOpts) => Promise<{
|
|
2253
2341
|
data: {
|
|
2254
2342
|
id: string;
|
|
2343
|
+
url: string;
|
|
2255
2344
|
description: string | null;
|
|
2256
2345
|
created_at: string;
|
|
2257
2346
|
updated_at: string;
|
|
2258
|
-
url: string;
|
|
2259
2347
|
events: ("template.created" | "template.updated" | "template.deleted" | "contact.unsubscribed" | "contact.subscribed" | "import.finished" | "mailing.scheduled" | "mailing.schedule_failed" | "mailing.ab_winner_selected" | "message.sent" | "message.failed" | "contact.resubscribed" | "contact.bounced" | "mailing.finished" | "mailing.started" | "contact.tagged" | "contact.updated" | "automation.run_started" | "automation.run_completed" | "automation.run_exited" | "automation.run_failed" | "automation.webhook")[];
|
|
2260
2348
|
enabled: boolean;
|
|
2261
2349
|
}[];
|
|
@@ -2264,10 +2352,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2264
2352
|
create: (body: RouteBody<"webhooks.create">, opts?: RequestOpts) => Promise<{
|
|
2265
2353
|
endpoint: {
|
|
2266
2354
|
id: string;
|
|
2355
|
+
url: string;
|
|
2267
2356
|
description: string | null;
|
|
2268
2357
|
created_at: string;
|
|
2269
2358
|
updated_at: string;
|
|
2270
|
-
url: string;
|
|
2271
2359
|
events: ("template.created" | "template.updated" | "template.deleted" | "contact.unsubscribed" | "contact.subscribed" | "import.finished" | "mailing.scheduled" | "mailing.schedule_failed" | "mailing.ab_winner_selected" | "message.sent" | "message.failed" | "contact.resubscribed" | "contact.bounced" | "mailing.finished" | "mailing.started" | "contact.tagged" | "contact.updated" | "automation.run_started" | "automation.run_completed" | "automation.run_exited" | "automation.run_failed" | "automation.webhook")[];
|
|
2272
2360
|
enabled: boolean;
|
|
2273
2361
|
};
|
|
@@ -2275,19 +2363,19 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2275
2363
|
}>;
|
|
2276
2364
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
2277
2365
|
id: string;
|
|
2366
|
+
url: string;
|
|
2278
2367
|
description: string | null;
|
|
2279
2368
|
created_at: string;
|
|
2280
2369
|
updated_at: string;
|
|
2281
|
-
url: string;
|
|
2282
2370
|
events: ("template.created" | "template.updated" | "template.deleted" | "contact.unsubscribed" | "contact.subscribed" | "import.finished" | "mailing.scheduled" | "mailing.schedule_failed" | "mailing.ab_winner_selected" | "message.sent" | "message.failed" | "contact.resubscribed" | "contact.bounced" | "mailing.finished" | "mailing.started" | "contact.tagged" | "contact.updated" | "automation.run_started" | "automation.run_completed" | "automation.run_exited" | "automation.run_failed" | "automation.webhook")[];
|
|
2283
2371
|
enabled: boolean;
|
|
2284
2372
|
}>;
|
|
2285
2373
|
update: (id: string, body: RouteBody<"webhooks.update">, opts?: RequestOpts) => Promise<{
|
|
2286
2374
|
id: string;
|
|
2375
|
+
url: string;
|
|
2287
2376
|
description: string | null;
|
|
2288
2377
|
created_at: string;
|
|
2289
2378
|
updated_at: string;
|
|
2290
|
-
url: string;
|
|
2291
2379
|
events: ("template.created" | "template.updated" | "template.deleted" | "contact.unsubscribed" | "contact.subscribed" | "import.finished" | "mailing.scheduled" | "mailing.schedule_failed" | "mailing.ab_winner_selected" | "message.sent" | "message.failed" | "contact.resubscribed" | "contact.bounced" | "mailing.finished" | "mailing.started" | "contact.tagged" | "contact.updated" | "automation.run_started" | "automation.run_completed" | "automation.run_exited" | "automation.run_failed" | "automation.webhook")[];
|
|
2292
2380
|
enabled: boolean;
|
|
2293
2381
|
}>;
|
|
@@ -2297,10 +2385,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2297
2385
|
rotateSecret: (id: string, opts?: RequestOpts) => Promise<{
|
|
2298
2386
|
endpoint: {
|
|
2299
2387
|
id: string;
|
|
2388
|
+
url: string;
|
|
2300
2389
|
description: string | null;
|
|
2301
2390
|
created_at: string;
|
|
2302
2391
|
updated_at: string;
|
|
2303
|
-
url: string;
|
|
2304
2392
|
events: ("template.created" | "template.updated" | "template.deleted" | "contact.unsubscribed" | "contact.subscribed" | "import.finished" | "mailing.scheduled" | "mailing.schedule_failed" | "mailing.ab_winner_selected" | "message.sent" | "message.failed" | "contact.resubscribed" | "contact.bounced" | "mailing.finished" | "mailing.started" | "contact.tagged" | "contact.updated" | "automation.run_started" | "automation.run_completed" | "automation.run_exited" | "automation.run_failed" | "automation.webhook")[];
|
|
2305
2393
|
enabled: boolean;
|
|
2306
2394
|
};
|
|
@@ -2424,8 +2512,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2424
2512
|
list: (query?: RouteQuery<"signupForms.list">, opts?: RequestOpts) => Promise<{
|
|
2425
2513
|
data: {
|
|
2426
2514
|
id: string;
|
|
2427
|
-
version: number;
|
|
2428
2515
|
name: string;
|
|
2516
|
+
version: number;
|
|
2429
2517
|
translations: Record<string, {
|
|
2430
2518
|
title: string;
|
|
2431
2519
|
consent_text: string;
|
|
@@ -2447,8 +2535,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2447
2535
|
}>;
|
|
2448
2536
|
create: (body: RouteBody<"signupForms.create">, opts?: RequestOpts) => Promise<{
|
|
2449
2537
|
id: string;
|
|
2450
|
-
version: number;
|
|
2451
2538
|
name: string;
|
|
2539
|
+
version: number;
|
|
2452
2540
|
translations: Record<string, {
|
|
2453
2541
|
title: string;
|
|
2454
2542
|
consent_text: string;
|
|
@@ -2468,8 +2556,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2468
2556
|
}>;
|
|
2469
2557
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
2470
2558
|
id: string;
|
|
2471
|
-
version: number;
|
|
2472
2559
|
name: string;
|
|
2560
|
+
version: number;
|
|
2473
2561
|
translations: Record<string, {
|
|
2474
2562
|
title: string;
|
|
2475
2563
|
consent_text: string;
|
|
@@ -2495,8 +2583,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2495
2583
|
}>;
|
|
2496
2584
|
update: (id: string, body: RouteBody<"signupForms.update">, opts?: RequestOpts) => Promise<{
|
|
2497
2585
|
id: string;
|
|
2498
|
-
version: number;
|
|
2499
2586
|
name: string;
|
|
2587
|
+
version: number;
|
|
2500
2588
|
translations: Record<string, {
|
|
2501
2589
|
title: string;
|
|
2502
2590
|
consent_text: string;
|
|
@@ -2761,8 +2849,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2761
2849
|
data: {
|
|
2762
2850
|
message: string | null;
|
|
2763
2851
|
reason: "missing_email" | "invalid_email" | "duplicate_in_file" | "invalid_value" | "external_id_conflict" | "wrong_column_count" | null;
|
|
2764
|
-
contact_id: string | null;
|
|
2765
2852
|
email: string | null;
|
|
2853
|
+
contact_id: string | null;
|
|
2766
2854
|
outcome: "skipped" | "suppressed" | "created" | "updated" | "unchanged";
|
|
2767
2855
|
row: number;
|
|
2768
2856
|
}[];
|
|
@@ -2934,8 +3022,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2934
3022
|
} | {
|
|
2935
3023
|
name: string;
|
|
2936
3024
|
kind: "event";
|
|
2937
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2938
3025
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3026
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2939
3027
|
} | {
|
|
2940
3028
|
kind: "manual";
|
|
2941
3029
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -2949,8 +3037,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2949
3037
|
at: string;
|
|
2950
3038
|
kind: "exact_date";
|
|
2951
3039
|
on: string;
|
|
2952
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2953
3040
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3041
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2954
3042
|
} | {
|
|
2955
3043
|
kind: "segment_entered";
|
|
2956
3044
|
segment_id: string;
|
|
@@ -2958,8 +3046,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2958
3046
|
} | {
|
|
2959
3047
|
kind: "link_clicked";
|
|
2960
3048
|
mailing_id: string;
|
|
2961
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2962
3049
|
url?: string | undefined;
|
|
3050
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2963
3051
|
})[];
|
|
2964
3052
|
entry: string | null;
|
|
2965
3053
|
steps: Record<string, {
|
|
@@ -2972,6 +3060,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2972
3060
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
2973
3061
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
2974
3062
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
3063
|
+
insertions?: Record<string, {
|
|
3064
|
+
filled: string | null;
|
|
3065
|
+
otherwise: string;
|
|
3066
|
+
by: string;
|
|
3067
|
+
choices: Record<string, string>;
|
|
3068
|
+
}> | null | undefined;
|
|
2975
3069
|
locale?: string | null | undefined;
|
|
2976
3070
|
languages?: Record<string, {
|
|
2977
3071
|
subject: string;
|
|
@@ -2983,6 +3077,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2983
3077
|
} & {
|
|
2984
3078
|
[k: string]: unknown;
|
|
2985
3079
|
};
|
|
3080
|
+
insertions?: Record<string, {
|
|
3081
|
+
filled: string | null;
|
|
3082
|
+
otherwise: string;
|
|
3083
|
+
by: string;
|
|
3084
|
+
choices: Record<string, string>;
|
|
3085
|
+
}> | null | undefined;
|
|
2986
3086
|
}> | null | undefined;
|
|
2987
3087
|
template_id?: string | null | undefined;
|
|
2988
3088
|
label?: string | null | undefined;
|
|
@@ -3101,8 +3201,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3101
3201
|
} | {
|
|
3102
3202
|
name: string;
|
|
3103
3203
|
kind: "event";
|
|
3104
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3105
3204
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3205
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3106
3206
|
} | {
|
|
3107
3207
|
kind: "manual";
|
|
3108
3208
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3116,8 +3216,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3116
3216
|
at: string;
|
|
3117
3217
|
kind: "exact_date";
|
|
3118
3218
|
on: string;
|
|
3119
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3120
3219
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3220
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3121
3221
|
} | {
|
|
3122
3222
|
kind: "segment_entered";
|
|
3123
3223
|
segment_id: string;
|
|
@@ -3125,8 +3225,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3125
3225
|
} | {
|
|
3126
3226
|
kind: "link_clicked";
|
|
3127
3227
|
mailing_id: string;
|
|
3128
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3129
3228
|
url?: string | undefined;
|
|
3229
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3130
3230
|
})[];
|
|
3131
3231
|
entry: string | null;
|
|
3132
3232
|
steps: Record<string, {
|
|
@@ -3139,6 +3239,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3139
3239
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3140
3240
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3141
3241
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
3242
|
+
insertions?: Record<string, {
|
|
3243
|
+
filled: string | null;
|
|
3244
|
+
otherwise: string;
|
|
3245
|
+
by: string;
|
|
3246
|
+
choices: Record<string, string>;
|
|
3247
|
+
}> | null | undefined;
|
|
3142
3248
|
locale?: string | null | undefined;
|
|
3143
3249
|
languages?: Record<string, {
|
|
3144
3250
|
subject: string;
|
|
@@ -3150,6 +3256,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3150
3256
|
} & {
|
|
3151
3257
|
[k: string]: unknown;
|
|
3152
3258
|
};
|
|
3259
|
+
insertions?: Record<string, {
|
|
3260
|
+
filled: string | null;
|
|
3261
|
+
otherwise: string;
|
|
3262
|
+
by: string;
|
|
3263
|
+
choices: Record<string, string>;
|
|
3264
|
+
}> | null | undefined;
|
|
3153
3265
|
}> | null | undefined;
|
|
3154
3266
|
template_id?: string | null | undefined;
|
|
3155
3267
|
label?: string | null | undefined;
|
|
@@ -3297,8 +3409,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3297
3409
|
} | {
|
|
3298
3410
|
name: string;
|
|
3299
3411
|
kind: "event";
|
|
3300
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3301
3412
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3413
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3302
3414
|
} | {
|
|
3303
3415
|
kind: "manual";
|
|
3304
3416
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3312,8 +3424,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3312
3424
|
at: string;
|
|
3313
3425
|
kind: "exact_date";
|
|
3314
3426
|
on: string;
|
|
3315
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3316
3427
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3428
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3317
3429
|
} | {
|
|
3318
3430
|
kind: "segment_entered";
|
|
3319
3431
|
segment_id: string;
|
|
@@ -3321,8 +3433,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3321
3433
|
} | {
|
|
3322
3434
|
kind: "link_clicked";
|
|
3323
3435
|
mailing_id: string;
|
|
3324
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3325
3436
|
url?: string | undefined;
|
|
3437
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3326
3438
|
})[];
|
|
3327
3439
|
entry: string | null;
|
|
3328
3440
|
steps: Record<string, {
|
|
@@ -3335,6 +3447,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3335
3447
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3336
3448
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3337
3449
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
3450
|
+
insertions?: Record<string, {
|
|
3451
|
+
filled: string | null;
|
|
3452
|
+
otherwise: string;
|
|
3453
|
+
by: string;
|
|
3454
|
+
choices: Record<string, string>;
|
|
3455
|
+
}> | null | undefined;
|
|
3338
3456
|
locale?: string | null | undefined;
|
|
3339
3457
|
languages?: Record<string, {
|
|
3340
3458
|
subject: string;
|
|
@@ -3346,6 +3464,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3346
3464
|
} & {
|
|
3347
3465
|
[k: string]: unknown;
|
|
3348
3466
|
};
|
|
3467
|
+
insertions?: Record<string, {
|
|
3468
|
+
filled: string | null;
|
|
3469
|
+
otherwise: string;
|
|
3470
|
+
by: string;
|
|
3471
|
+
choices: Record<string, string>;
|
|
3472
|
+
}> | null | undefined;
|
|
3349
3473
|
}> | null | undefined;
|
|
3350
3474
|
template_id?: string | null | undefined;
|
|
3351
3475
|
label?: string | null | undefined;
|
|
@@ -3464,8 +3588,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3464
3588
|
} | {
|
|
3465
3589
|
name: string;
|
|
3466
3590
|
kind: "event";
|
|
3467
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3468
3591
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3592
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3469
3593
|
} | {
|
|
3470
3594
|
kind: "manual";
|
|
3471
3595
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3479,8 +3603,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3479
3603
|
at: string;
|
|
3480
3604
|
kind: "exact_date";
|
|
3481
3605
|
on: string;
|
|
3482
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3483
3606
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3607
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3484
3608
|
} | {
|
|
3485
3609
|
kind: "segment_entered";
|
|
3486
3610
|
segment_id: string;
|
|
@@ -3488,8 +3612,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3488
3612
|
} | {
|
|
3489
3613
|
kind: "link_clicked";
|
|
3490
3614
|
mailing_id: string;
|
|
3491
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3492
3615
|
url?: string | undefined;
|
|
3616
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3493
3617
|
})[];
|
|
3494
3618
|
entry: string | null;
|
|
3495
3619
|
steps: Record<string, {
|
|
@@ -3502,6 +3626,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3502
3626
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3503
3627
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3504
3628
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
3629
|
+
insertions?: Record<string, {
|
|
3630
|
+
filled: string | null;
|
|
3631
|
+
otherwise: string;
|
|
3632
|
+
by: string;
|
|
3633
|
+
choices: Record<string, string>;
|
|
3634
|
+
}> | null | undefined;
|
|
3505
3635
|
locale?: string | null | undefined;
|
|
3506
3636
|
languages?: Record<string, {
|
|
3507
3637
|
subject: string;
|
|
@@ -3513,6 +3643,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3513
3643
|
} & {
|
|
3514
3644
|
[k: string]: unknown;
|
|
3515
3645
|
};
|
|
3646
|
+
insertions?: Record<string, {
|
|
3647
|
+
filled: string | null;
|
|
3648
|
+
otherwise: string;
|
|
3649
|
+
by: string;
|
|
3650
|
+
choices: Record<string, string>;
|
|
3651
|
+
}> | null | undefined;
|
|
3516
3652
|
}> | null | undefined;
|
|
3517
3653
|
template_id?: string | null | undefined;
|
|
3518
3654
|
label?: string | null | undefined;
|
|
@@ -3661,8 +3797,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3661
3797
|
} | {
|
|
3662
3798
|
name: string;
|
|
3663
3799
|
kind: "event";
|
|
3664
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3665
3800
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3801
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3666
3802
|
} | {
|
|
3667
3803
|
kind: "manual";
|
|
3668
3804
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3676,8 +3812,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3676
3812
|
at: string;
|
|
3677
3813
|
kind: "exact_date";
|
|
3678
3814
|
on: string;
|
|
3679
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3680
3815
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3816
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3681
3817
|
} | {
|
|
3682
3818
|
kind: "segment_entered";
|
|
3683
3819
|
segment_id: string;
|
|
@@ -3685,8 +3821,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3685
3821
|
} | {
|
|
3686
3822
|
kind: "link_clicked";
|
|
3687
3823
|
mailing_id: string;
|
|
3688
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3689
3824
|
url?: string | undefined;
|
|
3825
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3690
3826
|
})[];
|
|
3691
3827
|
entry: string | null;
|
|
3692
3828
|
steps: Record<string, {
|
|
@@ -3699,6 +3835,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3699
3835
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3700
3836
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3701
3837
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
3838
|
+
insertions?: Record<string, {
|
|
3839
|
+
filled: string | null;
|
|
3840
|
+
otherwise: string;
|
|
3841
|
+
by: string;
|
|
3842
|
+
choices: Record<string, string>;
|
|
3843
|
+
}> | null | undefined;
|
|
3702
3844
|
locale?: string | null | undefined;
|
|
3703
3845
|
languages?: Record<string, {
|
|
3704
3846
|
subject: string;
|
|
@@ -3710,6 +3852,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3710
3852
|
} & {
|
|
3711
3853
|
[k: string]: unknown;
|
|
3712
3854
|
};
|
|
3855
|
+
insertions?: Record<string, {
|
|
3856
|
+
filled: string | null;
|
|
3857
|
+
otherwise: string;
|
|
3858
|
+
by: string;
|
|
3859
|
+
choices: Record<string, string>;
|
|
3860
|
+
}> | null | undefined;
|
|
3713
3861
|
}> | null | undefined;
|
|
3714
3862
|
template_id?: string | null | undefined;
|
|
3715
3863
|
label?: string | null | undefined;
|
|
@@ -3828,8 +3976,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3828
3976
|
} | {
|
|
3829
3977
|
name: string;
|
|
3830
3978
|
kind: "event";
|
|
3831
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3832
3979
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3980
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3833
3981
|
} | {
|
|
3834
3982
|
kind: "manual";
|
|
3835
3983
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3843,8 +3991,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3843
3991
|
at: string;
|
|
3844
3992
|
kind: "exact_date";
|
|
3845
3993
|
on: string;
|
|
3846
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3847
3994
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3995
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3848
3996
|
} | {
|
|
3849
3997
|
kind: "segment_entered";
|
|
3850
3998
|
segment_id: string;
|
|
@@ -3852,8 +4000,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3852
4000
|
} | {
|
|
3853
4001
|
kind: "link_clicked";
|
|
3854
4002
|
mailing_id: string;
|
|
3855
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3856
4003
|
url?: string | undefined;
|
|
4004
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3857
4005
|
})[];
|
|
3858
4006
|
entry: string | null;
|
|
3859
4007
|
steps: Record<string, {
|
|
@@ -3866,6 +4014,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3866
4014
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3867
4015
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3868
4016
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
4017
|
+
insertions?: Record<string, {
|
|
4018
|
+
filled: string | null;
|
|
4019
|
+
otherwise: string;
|
|
4020
|
+
by: string;
|
|
4021
|
+
choices: Record<string, string>;
|
|
4022
|
+
}> | null | undefined;
|
|
3869
4023
|
locale?: string | null | undefined;
|
|
3870
4024
|
languages?: Record<string, {
|
|
3871
4025
|
subject: string;
|
|
@@ -3877,6 +4031,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3877
4031
|
} & {
|
|
3878
4032
|
[k: string]: unknown;
|
|
3879
4033
|
};
|
|
4034
|
+
insertions?: Record<string, {
|
|
4035
|
+
filled: string | null;
|
|
4036
|
+
otherwise: string;
|
|
4037
|
+
by: string;
|
|
4038
|
+
choices: Record<string, string>;
|
|
4039
|
+
}> | null | undefined;
|
|
3880
4040
|
}> | null | undefined;
|
|
3881
4041
|
template_id?: string | null | undefined;
|
|
3882
4042
|
label?: string | null | undefined;
|
|
@@ -4174,8 +4334,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4174
4334
|
} | {
|
|
4175
4335
|
name: string;
|
|
4176
4336
|
kind: "event";
|
|
4177
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4178
4337
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4338
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4179
4339
|
} | {
|
|
4180
4340
|
kind: "manual";
|
|
4181
4341
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -4189,8 +4349,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4189
4349
|
at: string;
|
|
4190
4350
|
kind: "exact_date";
|
|
4191
4351
|
on: string;
|
|
4192
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4193
4352
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4353
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4194
4354
|
} | {
|
|
4195
4355
|
kind: "segment_entered";
|
|
4196
4356
|
segment_id: string;
|
|
@@ -4198,8 +4358,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4198
4358
|
} | {
|
|
4199
4359
|
kind: "link_clicked";
|
|
4200
4360
|
mailing_id: string;
|
|
4201
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4202
4361
|
url?: string | undefined;
|
|
4362
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4203
4363
|
})[];
|
|
4204
4364
|
entry: string | null;
|
|
4205
4365
|
steps: Record<string, {
|
|
@@ -4212,6 +4372,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4212
4372
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
4213
4373
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
4214
4374
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
4375
|
+
insertions?: Record<string, {
|
|
4376
|
+
filled: string | null;
|
|
4377
|
+
otherwise: string;
|
|
4378
|
+
by: string;
|
|
4379
|
+
choices: Record<string, string>;
|
|
4380
|
+
}> | null | undefined;
|
|
4215
4381
|
locale?: string | null | undefined;
|
|
4216
4382
|
languages?: Record<string, {
|
|
4217
4383
|
subject: string;
|
|
@@ -4223,6 +4389,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4223
4389
|
} & {
|
|
4224
4390
|
[k: string]: unknown;
|
|
4225
4391
|
};
|
|
4392
|
+
insertions?: Record<string, {
|
|
4393
|
+
filled: string | null;
|
|
4394
|
+
otherwise: string;
|
|
4395
|
+
by: string;
|
|
4396
|
+
choices: Record<string, string>;
|
|
4397
|
+
}> | null | undefined;
|
|
4226
4398
|
}> | null | undefined;
|
|
4227
4399
|
template_id?: string | null | undefined;
|
|
4228
4400
|
label?: string | null | undefined;
|
|
@@ -4341,8 +4513,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4341
4513
|
} | {
|
|
4342
4514
|
name: string;
|
|
4343
4515
|
kind: "event";
|
|
4344
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4345
4516
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4517
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4346
4518
|
} | {
|
|
4347
4519
|
kind: "manual";
|
|
4348
4520
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -4356,8 +4528,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4356
4528
|
at: string;
|
|
4357
4529
|
kind: "exact_date";
|
|
4358
4530
|
on: string;
|
|
4359
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4360
4531
|
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4532
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4361
4533
|
} | {
|
|
4362
4534
|
kind: "segment_entered";
|
|
4363
4535
|
segment_id: string;
|
|
@@ -4365,8 +4537,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4365
4537
|
} | {
|
|
4366
4538
|
kind: "link_clicked";
|
|
4367
4539
|
mailing_id: string;
|
|
4368
|
-
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4369
4540
|
url?: string | undefined;
|
|
4541
|
+
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4370
4542
|
})[];
|
|
4371
4543
|
entry: string | null;
|
|
4372
4544
|
steps: Record<string, {
|
|
@@ -4379,6 +4551,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4379
4551
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
4380
4552
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
4381
4553
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
4554
|
+
insertions?: Record<string, {
|
|
4555
|
+
filled: string | null;
|
|
4556
|
+
otherwise: string;
|
|
4557
|
+
by: string;
|
|
4558
|
+
choices: Record<string, string>;
|
|
4559
|
+
}> | null | undefined;
|
|
4382
4560
|
locale?: string | null | undefined;
|
|
4383
4561
|
languages?: Record<string, {
|
|
4384
4562
|
subject: string;
|
|
@@ -4390,6 +4568,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4390
4568
|
} & {
|
|
4391
4569
|
[k: string]: unknown;
|
|
4392
4570
|
};
|
|
4571
|
+
insertions?: Record<string, {
|
|
4572
|
+
filled: string | null;
|
|
4573
|
+
otherwise: string;
|
|
4574
|
+
by: string;
|
|
4575
|
+
choices: Record<string, string>;
|
|
4576
|
+
}> | null | undefined;
|
|
4393
4577
|
}> | null | undefined;
|
|
4394
4578
|
template_id?: string | null | undefined;
|
|
4395
4579
|
label?: string | null | undefined;
|
|
@@ -4494,8 +4678,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4494
4678
|
refused: number;
|
|
4495
4679
|
results: {
|
|
4496
4680
|
reason: "suppressed" | "not_subscribed" | "unknown_contact" | "already_inside" | "re_entry_off" | "in_cooldown" | "excluded" | "not_active" | null;
|
|
4497
|
-
contact_id: string | null;
|
|
4498
4681
|
email: string | null;
|
|
4682
|
+
contact_id: string | null;
|
|
4499
4683
|
external_id: string | null;
|
|
4500
4684
|
entered: boolean;
|
|
4501
4685
|
run_id: string | null;
|
|
@@ -4509,10 +4693,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4509
4693
|
data: {
|
|
4510
4694
|
status: "failed" | "completed" | "active" | "exited" | "waiting";
|
|
4511
4695
|
id: string;
|
|
4696
|
+
email: string;
|
|
4512
4697
|
version: number;
|
|
4513
4698
|
automation_id: string;
|
|
4514
4699
|
contact_id: string;
|
|
4515
|
-
email: string;
|
|
4516
4700
|
last_error: string | null;
|
|
4517
4701
|
external_id: string | null;
|
|
4518
4702
|
current_step_id: string | null;
|
|
@@ -4537,10 +4721,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4537
4721
|
run: {
|
|
4538
4722
|
status: "failed" | "completed" | "active" | "exited" | "waiting";
|
|
4539
4723
|
id: string;
|
|
4724
|
+
email: string;
|
|
4540
4725
|
version: number;
|
|
4541
4726
|
automation_id: string;
|
|
4542
4727
|
contact_id: string;
|
|
4543
|
-
email: string;
|
|
4544
4728
|
last_error: string | null;
|
|
4545
4729
|
external_id: string | null;
|
|
4546
4730
|
current_step_id: string | null;
|
|
@@ -4554,10 +4738,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4554
4738
|
exitRun: (id: string, runId: string, body?: RouteBody<"automations.exitRun">, opts?: RequestOpts) => Promise<{
|
|
4555
4739
|
status: "failed" | "completed" | "active" | "exited" | "waiting";
|
|
4556
4740
|
id: string;
|
|
4741
|
+
email: string;
|
|
4557
4742
|
version: number;
|
|
4558
4743
|
automation_id: string;
|
|
4559
4744
|
contact_id: string;
|
|
4560
|
-
email: string;
|
|
4561
4745
|
last_error: string | null;
|
|
4562
4746
|
external_id: string | null;
|
|
4563
4747
|
current_step_id: string | null;
|