@marlinjai/mail-sdk 0.4.0 → 0.6.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.
- package/README.md +116 -0
- package/dist/index.d.mts +576 -153
- package/dist/index.d.ts +576 -153
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +2 -2
package/dist/index.d.mts
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
|
+
email: string;
|
|
207
208
|
name: string | null;
|
|
208
|
-
created_at: string;
|
|
209
209
|
subject: string;
|
|
210
|
-
|
|
210
|
+
created_at: 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
|
+
email: string;
|
|
222
223
|
name: string | null;
|
|
223
|
-
created_at: string;
|
|
224
224
|
subject: string;
|
|
225
|
-
|
|
225
|
+
created_at: 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
|
+
email: string;
|
|
230
231
|
name: string | null;
|
|
231
|
-
created_at: string;
|
|
232
232
|
subject: string;
|
|
233
|
-
|
|
233
|
+
created_at: 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,21 +377,27 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
377
377
|
list: (query?: RouteQuery<"templates.list">, opts?: RequestOpts) => Promise<{
|
|
378
378
|
data: {
|
|
379
379
|
id: string;
|
|
380
|
-
version: number;
|
|
381
380
|
name: string;
|
|
381
|
+
version: number;
|
|
382
|
+
subject: string | null;
|
|
383
|
+
preheader: string | null;
|
|
382
384
|
description: string | null;
|
|
385
|
+
locale: string;
|
|
383
386
|
thumbnail_url: string | null;
|
|
384
387
|
archived_at: string | null;
|
|
385
388
|
created_at: string;
|
|
386
389
|
updated_at: string;
|
|
390
|
+
languages: Record<string, "draft" | "ready">;
|
|
391
|
+
insertion_names: string[];
|
|
387
392
|
}[];
|
|
388
393
|
next_cursor: string | null;
|
|
389
394
|
}>;
|
|
390
395
|
create: (body: RouteBody<"templates.create">, opts?: RequestOpts) => Promise<{
|
|
391
396
|
id: string;
|
|
392
|
-
version: number;
|
|
393
397
|
name: string;
|
|
394
|
-
|
|
398
|
+
version: number;
|
|
399
|
+
subject: string | null;
|
|
400
|
+
preheader: string | null;
|
|
395
401
|
document: {
|
|
396
402
|
version: "1.0" | "1.1";
|
|
397
403
|
metadata: Record<string, unknown>;
|
|
@@ -399,6 +405,31 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
399
405
|
} & {
|
|
400
406
|
[k: string]: unknown;
|
|
401
407
|
};
|
|
408
|
+
insertions: Record<string, {
|
|
409
|
+
filled: string | null;
|
|
410
|
+
otherwise: string;
|
|
411
|
+
by: string;
|
|
412
|
+
choices: Record<string, string>;
|
|
413
|
+
}>;
|
|
414
|
+
description: string | null;
|
|
415
|
+
locale: string;
|
|
416
|
+
translations: Record<string, {
|
|
417
|
+
status: "draft" | "ready";
|
|
418
|
+
subject: string | null;
|
|
419
|
+
preheader: string | null;
|
|
420
|
+
document: {
|
|
421
|
+
version: "1.0" | "1.1";
|
|
422
|
+
metadata: Record<string, unknown>;
|
|
423
|
+
sections: Record<string, unknown>[];
|
|
424
|
+
} & {
|
|
425
|
+
[k: string]: unknown;
|
|
426
|
+
};
|
|
427
|
+
insertions?: Record<string, {
|
|
428
|
+
filled: string | null;
|
|
429
|
+
otherwise: string | null;
|
|
430
|
+
choices: Record<string, string | null>;
|
|
431
|
+
}> | undefined;
|
|
432
|
+
}>;
|
|
402
433
|
thumbnail_url: string | null;
|
|
403
434
|
archived_at: string | null;
|
|
404
435
|
created_at: string;
|
|
@@ -406,9 +437,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
406
437
|
}>;
|
|
407
438
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
408
439
|
id: string;
|
|
409
|
-
version: number;
|
|
410
440
|
name: string;
|
|
411
|
-
|
|
441
|
+
version: number;
|
|
442
|
+
subject: string | null;
|
|
443
|
+
preheader: string | null;
|
|
412
444
|
document: {
|
|
413
445
|
version: "1.0" | "1.1";
|
|
414
446
|
metadata: Record<string, unknown>;
|
|
@@ -416,6 +448,31 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
416
448
|
} & {
|
|
417
449
|
[k: string]: unknown;
|
|
418
450
|
};
|
|
451
|
+
insertions: Record<string, {
|
|
452
|
+
filled: string | null;
|
|
453
|
+
otherwise: string;
|
|
454
|
+
by: string;
|
|
455
|
+
choices: Record<string, string>;
|
|
456
|
+
}>;
|
|
457
|
+
description: string | null;
|
|
458
|
+
locale: string;
|
|
459
|
+
translations: Record<string, {
|
|
460
|
+
status: "draft" | "ready";
|
|
461
|
+
subject: string | null;
|
|
462
|
+
preheader: string | null;
|
|
463
|
+
document: {
|
|
464
|
+
version: "1.0" | "1.1";
|
|
465
|
+
metadata: Record<string, unknown>;
|
|
466
|
+
sections: Record<string, unknown>[];
|
|
467
|
+
} & {
|
|
468
|
+
[k: string]: unknown;
|
|
469
|
+
};
|
|
470
|
+
insertions?: Record<string, {
|
|
471
|
+
filled: string | null;
|
|
472
|
+
otherwise: string | null;
|
|
473
|
+
choices: Record<string, string | null>;
|
|
474
|
+
}> | undefined;
|
|
475
|
+
}>;
|
|
419
476
|
thumbnail_url: string | null;
|
|
420
477
|
archived_at: string | null;
|
|
421
478
|
created_at: string;
|
|
@@ -423,9 +480,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
423
480
|
}>;
|
|
424
481
|
update: (id: string, body: RouteBody<"templates.update">, opts?: RequestOpts) => Promise<{
|
|
425
482
|
id: string;
|
|
426
|
-
version: number;
|
|
427
483
|
name: string;
|
|
428
|
-
|
|
484
|
+
version: number;
|
|
485
|
+
subject: string | null;
|
|
486
|
+
preheader: string | null;
|
|
429
487
|
document: {
|
|
430
488
|
version: "1.0" | "1.1";
|
|
431
489
|
metadata: Record<string, unknown>;
|
|
@@ -433,6 +491,31 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
433
491
|
} & {
|
|
434
492
|
[k: string]: unknown;
|
|
435
493
|
};
|
|
494
|
+
insertions: Record<string, {
|
|
495
|
+
filled: string | null;
|
|
496
|
+
otherwise: string;
|
|
497
|
+
by: string;
|
|
498
|
+
choices: Record<string, string>;
|
|
499
|
+
}>;
|
|
500
|
+
description: string | null;
|
|
501
|
+
locale: string;
|
|
502
|
+
translations: Record<string, {
|
|
503
|
+
status: "draft" | "ready";
|
|
504
|
+
subject: string | null;
|
|
505
|
+
preheader: string | null;
|
|
506
|
+
document: {
|
|
507
|
+
version: "1.0" | "1.1";
|
|
508
|
+
metadata: Record<string, unknown>;
|
|
509
|
+
sections: Record<string, unknown>[];
|
|
510
|
+
} & {
|
|
511
|
+
[k: string]: unknown;
|
|
512
|
+
};
|
|
513
|
+
insertions?: Record<string, {
|
|
514
|
+
filled: string | null;
|
|
515
|
+
otherwise: string | null;
|
|
516
|
+
choices: Record<string, string | null>;
|
|
517
|
+
}> | undefined;
|
|
518
|
+
}>;
|
|
436
519
|
thumbnail_url: string | null;
|
|
437
520
|
archived_at: string | null;
|
|
438
521
|
created_at: string;
|
|
@@ -444,6 +527,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
444
527
|
versions: (id: string, query?: RouteQuery<"templates.versions">, opts?: RequestOpts) => Promise<{
|
|
445
528
|
data: {
|
|
446
529
|
version: number;
|
|
530
|
+
subject: string | null;
|
|
531
|
+
preheader: string | null;
|
|
447
532
|
document: {
|
|
448
533
|
version: "1.0" | "1.1";
|
|
449
534
|
metadata: Record<string, unknown>;
|
|
@@ -451,6 +536,30 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
451
536
|
} & {
|
|
452
537
|
[k: string]: unknown;
|
|
453
538
|
};
|
|
539
|
+
insertions: Record<string, {
|
|
540
|
+
filled: string | null;
|
|
541
|
+
otherwise: string;
|
|
542
|
+
by: string;
|
|
543
|
+
choices: Record<string, string>;
|
|
544
|
+
}>;
|
|
545
|
+
locale: string;
|
|
546
|
+
translations: Record<string, {
|
|
547
|
+
status: "draft" | "ready";
|
|
548
|
+
subject: string | null;
|
|
549
|
+
preheader: string | null;
|
|
550
|
+
document: {
|
|
551
|
+
version: "1.0" | "1.1";
|
|
552
|
+
metadata: Record<string, unknown>;
|
|
553
|
+
sections: Record<string, unknown>[];
|
|
554
|
+
} & {
|
|
555
|
+
[k: string]: unknown;
|
|
556
|
+
};
|
|
557
|
+
insertions?: Record<string, {
|
|
558
|
+
filled: string | null;
|
|
559
|
+
otherwise: string | null;
|
|
560
|
+
choices: Record<string, string | null>;
|
|
561
|
+
}> | undefined;
|
|
562
|
+
}>;
|
|
454
563
|
created_at: string;
|
|
455
564
|
created_by: string | null;
|
|
456
565
|
template_id: string;
|
|
@@ -459,6 +568,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
459
568
|
}>;
|
|
460
569
|
version: (id: string, version: number, opts?: RequestOpts) => Promise<{
|
|
461
570
|
version: number;
|
|
571
|
+
subject: string | null;
|
|
572
|
+
preheader: string | null;
|
|
462
573
|
document: {
|
|
463
574
|
version: "1.0" | "1.1";
|
|
464
575
|
metadata: Record<string, unknown>;
|
|
@@ -466,6 +577,30 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
466
577
|
} & {
|
|
467
578
|
[k: string]: unknown;
|
|
468
579
|
};
|
|
580
|
+
insertions: Record<string, {
|
|
581
|
+
filled: string | null;
|
|
582
|
+
otherwise: string;
|
|
583
|
+
by: string;
|
|
584
|
+
choices: Record<string, string>;
|
|
585
|
+
}>;
|
|
586
|
+
locale: string;
|
|
587
|
+
translations: Record<string, {
|
|
588
|
+
status: "draft" | "ready";
|
|
589
|
+
subject: string | null;
|
|
590
|
+
preheader: string | null;
|
|
591
|
+
document: {
|
|
592
|
+
version: "1.0" | "1.1";
|
|
593
|
+
metadata: Record<string, unknown>;
|
|
594
|
+
sections: Record<string, unknown>[];
|
|
595
|
+
} & {
|
|
596
|
+
[k: string]: unknown;
|
|
597
|
+
};
|
|
598
|
+
insertions?: Record<string, {
|
|
599
|
+
filled: string | null;
|
|
600
|
+
otherwise: string | null;
|
|
601
|
+
choices: Record<string, string | null>;
|
|
602
|
+
}> | undefined;
|
|
603
|
+
}>;
|
|
469
604
|
created_at: string;
|
|
470
605
|
created_by: string | null;
|
|
471
606
|
template_id: string;
|
|
@@ -500,9 +635,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
500
635
|
}[];
|
|
501
636
|
template: {
|
|
502
637
|
id: string;
|
|
503
|
-
version: number;
|
|
504
638
|
name: string;
|
|
505
|
-
|
|
639
|
+
version: number;
|
|
640
|
+
subject: string | null;
|
|
641
|
+
preheader: string | null;
|
|
506
642
|
document: {
|
|
507
643
|
version: "1.0" | "1.1";
|
|
508
644
|
metadata: Record<string, unknown>;
|
|
@@ -510,6 +646,31 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
510
646
|
} & {
|
|
511
647
|
[k: string]: unknown;
|
|
512
648
|
};
|
|
649
|
+
insertions: Record<string, {
|
|
650
|
+
filled: string | null;
|
|
651
|
+
otherwise: string;
|
|
652
|
+
by: string;
|
|
653
|
+
choices: Record<string, string>;
|
|
654
|
+
}>;
|
|
655
|
+
description: string | null;
|
|
656
|
+
locale: string;
|
|
657
|
+
translations: Record<string, {
|
|
658
|
+
status: "draft" | "ready";
|
|
659
|
+
subject: string | null;
|
|
660
|
+
preheader: string | null;
|
|
661
|
+
document: {
|
|
662
|
+
version: "1.0" | "1.1";
|
|
663
|
+
metadata: Record<string, unknown>;
|
|
664
|
+
sections: Record<string, unknown>[];
|
|
665
|
+
} & {
|
|
666
|
+
[k: string]: unknown;
|
|
667
|
+
};
|
|
668
|
+
insertions?: Record<string, {
|
|
669
|
+
filled: string | null;
|
|
670
|
+
otherwise: string | null;
|
|
671
|
+
choices: Record<string, string | null>;
|
|
672
|
+
}> | undefined;
|
|
673
|
+
}>;
|
|
513
674
|
thumbnail_url: string | null;
|
|
514
675
|
archived_at: string | null;
|
|
515
676
|
created_at: string;
|
|
@@ -628,8 +789,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
628
789
|
/** `file` must be a `Blob` (edge-safe): wrap a Node `Buffer` with `new Blob([buffer])`. */
|
|
629
790
|
upload: (file: Blob, filename?: string, opts?: RequestOpts) => Promise<{
|
|
630
791
|
id: string;
|
|
631
|
-
created_at: string;
|
|
632
792
|
url: string;
|
|
793
|
+
created_at: string;
|
|
633
794
|
content_type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
|
|
634
795
|
size_bytes: number;
|
|
635
796
|
width: number | null;
|
|
@@ -645,8 +806,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
645
806
|
*/
|
|
646
807
|
import: (body: RouteBody<"assets.import">, opts?: RequestOpts) => Promise<{
|
|
647
808
|
id: string;
|
|
648
|
-
created_at: string;
|
|
649
809
|
url: string;
|
|
810
|
+
created_at: string;
|
|
650
811
|
content_type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
|
|
651
812
|
size_bytes: number;
|
|
652
813
|
width: number | null;
|
|
@@ -655,8 +816,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
655
816
|
}>;
|
|
656
817
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
657
818
|
id: string;
|
|
658
|
-
created_at: string;
|
|
659
819
|
url: string;
|
|
820
|
+
created_at: string;
|
|
660
821
|
content_type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
|
|
661
822
|
size_bytes: number;
|
|
662
823
|
width: number | null;
|
|
@@ -1116,13 +1277,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1116
1277
|
id: string;
|
|
1117
1278
|
name: string;
|
|
1118
1279
|
description: string | null;
|
|
1119
|
-
created_at: string;
|
|
1120
|
-
updated_at: string;
|
|
1121
|
-
slug: string;
|
|
1122
1280
|
translations: Record<string, {
|
|
1123
1281
|
name: string;
|
|
1124
1282
|
description: string | null;
|
|
1125
1283
|
}>;
|
|
1284
|
+
created_at: string;
|
|
1285
|
+
updated_at: string;
|
|
1286
|
+
slug: string;
|
|
1126
1287
|
}[];
|
|
1127
1288
|
next_cursor: string | null;
|
|
1128
1289
|
}>;
|
|
@@ -1130,25 +1291,25 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1130
1291
|
id: string;
|
|
1131
1292
|
name: string;
|
|
1132
1293
|
description: string | null;
|
|
1133
|
-
created_at: string;
|
|
1134
|
-
updated_at: string;
|
|
1135
|
-
slug: string;
|
|
1136
1294
|
translations: Record<string, {
|
|
1137
1295
|
name: string;
|
|
1138
1296
|
description: string | null;
|
|
1139
1297
|
}>;
|
|
1298
|
+
created_at: string;
|
|
1299
|
+
updated_at: string;
|
|
1300
|
+
slug: string;
|
|
1140
1301
|
}>;
|
|
1141
1302
|
update: (id: string, body: RouteBody<"topics.update">, opts?: RequestOpts) => Promise<{
|
|
1142
1303
|
id: string;
|
|
1143
1304
|
name: string;
|
|
1144
1305
|
description: string | null;
|
|
1145
|
-
created_at: string;
|
|
1146
|
-
updated_at: string;
|
|
1147
|
-
slug: string;
|
|
1148
1306
|
translations: Record<string, {
|
|
1149
1307
|
name: string;
|
|
1150
1308
|
description: string | null;
|
|
1151
1309
|
}>;
|
|
1310
|
+
created_at: string;
|
|
1311
|
+
updated_at: string;
|
|
1312
|
+
slug: string;
|
|
1152
1313
|
}>;
|
|
1153
1314
|
/** Refused with `conflict` while a mailing or an automation step still uses the topic. */
|
|
1154
1315
|
delete: (id: string, opts?: RequestOpts) => Promise<{
|
|
@@ -1157,32 +1318,32 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1157
1318
|
};
|
|
1158
1319
|
contacts: {
|
|
1159
1320
|
upsert: (body: RouteBody<"contacts.upsert">, opts?: RequestOpts) => Promise<{
|
|
1160
|
-
created: boolean;
|
|
1161
1321
|
contact: {
|
|
1162
1322
|
id: string;
|
|
1163
|
-
created_at: string;
|
|
1164
|
-
updated_at: string;
|
|
1165
|
-
email: string;
|
|
1166
|
-
external_id: string | null;
|
|
1167
1323
|
first_name: string | null;
|
|
1168
1324
|
last_name: string | null;
|
|
1325
|
+
email: string;
|
|
1169
1326
|
locale: string | null;
|
|
1327
|
+
created_at: string;
|
|
1328
|
+
updated_at: string;
|
|
1329
|
+
external_id: string | null;
|
|
1170
1330
|
topics: string[];
|
|
1171
1331
|
tags: string[];
|
|
1172
1332
|
timezone: string | null;
|
|
1173
1333
|
properties: Record<string, _marlinjai_mail_contract.JsonValue>;
|
|
1174
1334
|
};
|
|
1335
|
+
created: boolean;
|
|
1175
1336
|
}>;
|
|
1176
1337
|
list: (query?: RouteQuery<"contacts.list">, opts?: RequestOpts) => Promise<{
|
|
1177
1338
|
data: {
|
|
1178
1339
|
id: string;
|
|
1179
|
-
created_at: string;
|
|
1180
|
-
updated_at: string;
|
|
1181
|
-
email: string;
|
|
1182
|
-
external_id: string | null;
|
|
1183
1340
|
first_name: string | null;
|
|
1184
1341
|
last_name: string | null;
|
|
1342
|
+
email: string;
|
|
1185
1343
|
locale: string | null;
|
|
1344
|
+
created_at: string;
|
|
1345
|
+
updated_at: string;
|
|
1346
|
+
external_id: string | null;
|
|
1186
1347
|
topics: string[];
|
|
1187
1348
|
tags: string[];
|
|
1188
1349
|
timezone: string | null;
|
|
@@ -1192,13 +1353,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1192
1353
|
}>;
|
|
1193
1354
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
1194
1355
|
id: string;
|
|
1195
|
-
created_at: string;
|
|
1196
|
-
updated_at: string;
|
|
1197
|
-
email: string;
|
|
1198
|
-
external_id: string | null;
|
|
1199
1356
|
first_name: string | null;
|
|
1200
1357
|
last_name: string | null;
|
|
1358
|
+
email: string;
|
|
1201
1359
|
locale: string | null;
|
|
1360
|
+
created_at: string;
|
|
1361
|
+
updated_at: string;
|
|
1362
|
+
external_id: string | null;
|
|
1202
1363
|
topics: string[];
|
|
1203
1364
|
tags: string[];
|
|
1204
1365
|
timezone: string | null;
|
|
@@ -1214,8 +1375,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1214
1375
|
data: {
|
|
1215
1376
|
id: string;
|
|
1216
1377
|
error: string | null;
|
|
1217
|
-
created_at: string;
|
|
1218
1378
|
subject: string;
|
|
1379
|
+
insertions: Record<string, {
|
|
1380
|
+
value: string | null;
|
|
1381
|
+
chosen: string;
|
|
1382
|
+
matched: boolean;
|
|
1383
|
+
}> | null;
|
|
1384
|
+
locale: string | null;
|
|
1385
|
+
created_at: string;
|
|
1219
1386
|
provider_id: string;
|
|
1220
1387
|
to: string;
|
|
1221
1388
|
provider_message_id: string | null;
|
|
@@ -1233,15 +1400,15 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1233
1400
|
data: {
|
|
1234
1401
|
status: "failed" | "completed" | "active" | "exited" | "waiting";
|
|
1235
1402
|
id: string;
|
|
1403
|
+
email: string;
|
|
1236
1404
|
version: number;
|
|
1237
1405
|
automation: {
|
|
1238
|
-
status: "
|
|
1406
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
1239
1407
|
id: string;
|
|
1240
1408
|
name: string;
|
|
1241
1409
|
};
|
|
1242
1410
|
automation_id: string;
|
|
1243
1411
|
contact_id: string;
|
|
1244
|
-
email: string;
|
|
1245
1412
|
last_error: string | null;
|
|
1246
1413
|
external_id: string | null;
|
|
1247
1414
|
current_step_id: string | null;
|
|
@@ -1259,9 +1426,9 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1259
1426
|
data: {
|
|
1260
1427
|
id: string;
|
|
1261
1428
|
reason: "manual" | "unsubscribed" | "bounced" | "complained";
|
|
1429
|
+
email: string;
|
|
1262
1430
|
created_at: string;
|
|
1263
1431
|
topic: string | null;
|
|
1264
|
-
email: string;
|
|
1265
1432
|
source_message_id: string | null;
|
|
1266
1433
|
note: string | null;
|
|
1267
1434
|
}[];
|
|
@@ -1270,9 +1437,9 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1270
1437
|
create: (body: RouteBody<"suppressions.create">, opts?: RequestOpts) => Promise<{
|
|
1271
1438
|
id: string;
|
|
1272
1439
|
reason: "manual" | "unsubscribed" | "bounced" | "complained";
|
|
1440
|
+
email: string;
|
|
1273
1441
|
created_at: string;
|
|
1274
1442
|
topic: string | null;
|
|
1275
|
-
email: string;
|
|
1276
1443
|
source_message_id: string | null;
|
|
1277
1444
|
note: string | null;
|
|
1278
1445
|
}>;
|
|
@@ -1285,14 +1452,16 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1285
1452
|
data: {
|
|
1286
1453
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1287
1454
|
id: string;
|
|
1288
|
-
metadata: Record<string, string>;
|
|
1289
1455
|
name: string | null;
|
|
1456
|
+
metadata: Record<string, string>;
|
|
1457
|
+
subject: string;
|
|
1458
|
+
preheader: string | null;
|
|
1459
|
+
locale: string;
|
|
1290
1460
|
created_at: string;
|
|
1291
1461
|
updated_at: string;
|
|
1292
1462
|
template_id: string | null;
|
|
1293
|
-
subject: string;
|
|
1294
1463
|
kind: "broadcast" | "automation" | "notification";
|
|
1295
|
-
|
|
1464
|
+
send_locale: string | null;
|
|
1296
1465
|
topic: string | null;
|
|
1297
1466
|
provider_id: string;
|
|
1298
1467
|
counts: {
|
|
@@ -1328,8 +1497,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1328
1497
|
create: (body: RouteBody<"mailings.create">, opts?: RequestOpts) => Promise<{
|
|
1329
1498
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1330
1499
|
id: string;
|
|
1331
|
-
metadata: Record<string, string>;
|
|
1332
1500
|
name: string | null;
|
|
1501
|
+
metadata: Record<string, string>;
|
|
1502
|
+
subject: string;
|
|
1503
|
+
preheader: string | null;
|
|
1333
1504
|
document: {
|
|
1334
1505
|
version: "1.0" | "1.1";
|
|
1335
1506
|
metadata: Record<string, unknown>;
|
|
@@ -1337,12 +1508,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1337
1508
|
} & {
|
|
1338
1509
|
[k: string]: unknown;
|
|
1339
1510
|
};
|
|
1511
|
+
locale: string;
|
|
1340
1512
|
created_at: string;
|
|
1341
1513
|
updated_at: string;
|
|
1342
1514
|
template_id: string | null;
|
|
1343
|
-
subject: string;
|
|
1344
1515
|
kind: "broadcast" | "automation" | "notification";
|
|
1345
|
-
|
|
1516
|
+
send_locale: string | null;
|
|
1346
1517
|
topic: string | null;
|
|
1347
1518
|
provider_id: string;
|
|
1348
1519
|
counts: {
|
|
@@ -1376,8 +1547,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1376
1547
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
1377
1548
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1378
1549
|
id: string;
|
|
1379
|
-
metadata: Record<string, string>;
|
|
1380
1550
|
name: string | null;
|
|
1551
|
+
metadata: Record<string, string>;
|
|
1552
|
+
subject: string;
|
|
1553
|
+
preheader: string | null;
|
|
1381
1554
|
document: {
|
|
1382
1555
|
version: "1.0" | "1.1";
|
|
1383
1556
|
metadata: Record<string, unknown>;
|
|
@@ -1385,12 +1558,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1385
1558
|
} & {
|
|
1386
1559
|
[k: string]: unknown;
|
|
1387
1560
|
};
|
|
1561
|
+
locale: string;
|
|
1388
1562
|
created_at: string;
|
|
1389
1563
|
updated_at: string;
|
|
1390
1564
|
template_id: string | null;
|
|
1391
|
-
subject: string;
|
|
1392
1565
|
kind: "broadcast" | "automation" | "notification";
|
|
1393
|
-
|
|
1566
|
+
send_locale: string | null;
|
|
1394
1567
|
topic: string | null;
|
|
1395
1568
|
provider_id: string;
|
|
1396
1569
|
counts: {
|
|
@@ -1426,8 +1599,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1426
1599
|
update: (id: string, body: RouteBody<"mailings.update">, opts?: RequestOpts) => Promise<{
|
|
1427
1600
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1428
1601
|
id: string;
|
|
1429
|
-
metadata: Record<string, string>;
|
|
1430
1602
|
name: string | null;
|
|
1603
|
+
metadata: Record<string, string>;
|
|
1604
|
+
subject: string;
|
|
1605
|
+
preheader: string | null;
|
|
1431
1606
|
document: {
|
|
1432
1607
|
version: "1.0" | "1.1";
|
|
1433
1608
|
metadata: Record<string, unknown>;
|
|
@@ -1435,12 +1610,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1435
1610
|
} & {
|
|
1436
1611
|
[k: string]: unknown;
|
|
1437
1612
|
};
|
|
1613
|
+
locale: string;
|
|
1438
1614
|
created_at: string;
|
|
1439
1615
|
updated_at: string;
|
|
1440
1616
|
template_id: string | null;
|
|
1441
|
-
subject: string;
|
|
1442
1617
|
kind: "broadcast" | "automation" | "notification";
|
|
1443
|
-
|
|
1618
|
+
send_locale: string | null;
|
|
1444
1619
|
topic: string | null;
|
|
1445
1620
|
provider_id: string;
|
|
1446
1621
|
counts: {
|
|
@@ -1483,13 +1658,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1483
1658
|
data: {
|
|
1484
1659
|
status: "sending" | "sent" | "queued" | "failed" | "skipped";
|
|
1485
1660
|
id: string;
|
|
1661
|
+
email: string;
|
|
1662
|
+
merge: Record<string, _marlinjai_mail_contract.JsonValue>;
|
|
1486
1663
|
created_at: string;
|
|
1487
1664
|
updated_at: string;
|
|
1488
|
-
merge: Record<string, _marlinjai_mail_contract.JsonValue>;
|
|
1489
1665
|
message_id: string | null;
|
|
1490
1666
|
mailing_id: string;
|
|
1491
1667
|
contact_id: string | null;
|
|
1492
|
-
email: string;
|
|
1493
1668
|
skip_reason: "cancelled" | "suppressed" | "not_subscribed" | "contact_erased" | "outcome_unknown" | null;
|
|
1494
1669
|
attempts: number;
|
|
1495
1670
|
last_error: string | null;
|
|
@@ -1503,8 +1678,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1503
1678
|
send: (id: string, opts?: RequestOpts) => Promise<{
|
|
1504
1679
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1505
1680
|
id: string;
|
|
1506
|
-
metadata: Record<string, string>;
|
|
1507
1681
|
name: string | null;
|
|
1682
|
+
metadata: Record<string, string>;
|
|
1683
|
+
subject: string;
|
|
1684
|
+
preheader: string | null;
|
|
1508
1685
|
document: {
|
|
1509
1686
|
version: "1.0" | "1.1";
|
|
1510
1687
|
metadata: Record<string, unknown>;
|
|
@@ -1512,12 +1689,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1512
1689
|
} & {
|
|
1513
1690
|
[k: string]: unknown;
|
|
1514
1691
|
};
|
|
1692
|
+
locale: string;
|
|
1515
1693
|
created_at: string;
|
|
1516
1694
|
updated_at: string;
|
|
1517
1695
|
template_id: string | null;
|
|
1518
|
-
subject: string;
|
|
1519
1696
|
kind: "broadcast" | "automation" | "notification";
|
|
1520
|
-
|
|
1697
|
+
send_locale: string | null;
|
|
1521
1698
|
topic: string | null;
|
|
1522
1699
|
provider_id: string;
|
|
1523
1700
|
counts: {
|
|
@@ -1551,8 +1728,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1551
1728
|
pause: (id: string, opts?: RequestOpts) => Promise<{
|
|
1552
1729
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1553
1730
|
id: string;
|
|
1554
|
-
metadata: Record<string, string>;
|
|
1555
1731
|
name: string | null;
|
|
1732
|
+
metadata: Record<string, string>;
|
|
1733
|
+
subject: string;
|
|
1734
|
+
preheader: string | null;
|
|
1556
1735
|
document: {
|
|
1557
1736
|
version: "1.0" | "1.1";
|
|
1558
1737
|
metadata: Record<string, unknown>;
|
|
@@ -1560,12 +1739,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1560
1739
|
} & {
|
|
1561
1740
|
[k: string]: unknown;
|
|
1562
1741
|
};
|
|
1742
|
+
locale: string;
|
|
1563
1743
|
created_at: string;
|
|
1564
1744
|
updated_at: string;
|
|
1565
1745
|
template_id: string | null;
|
|
1566
|
-
subject: string;
|
|
1567
1746
|
kind: "broadcast" | "automation" | "notification";
|
|
1568
|
-
|
|
1747
|
+
send_locale: string | null;
|
|
1569
1748
|
topic: string | null;
|
|
1570
1749
|
provider_id: string;
|
|
1571
1750
|
counts: {
|
|
@@ -1599,8 +1778,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1599
1778
|
resume: (id: string, opts?: RequestOpts) => Promise<{
|
|
1600
1779
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1601
1780
|
id: string;
|
|
1602
|
-
metadata: Record<string, string>;
|
|
1603
1781
|
name: string | null;
|
|
1782
|
+
metadata: Record<string, string>;
|
|
1783
|
+
subject: string;
|
|
1784
|
+
preheader: string | null;
|
|
1604
1785
|
document: {
|
|
1605
1786
|
version: "1.0" | "1.1";
|
|
1606
1787
|
metadata: Record<string, unknown>;
|
|
@@ -1608,12 +1789,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1608
1789
|
} & {
|
|
1609
1790
|
[k: string]: unknown;
|
|
1610
1791
|
};
|
|
1792
|
+
locale: string;
|
|
1611
1793
|
created_at: string;
|
|
1612
1794
|
updated_at: string;
|
|
1613
1795
|
template_id: string | null;
|
|
1614
|
-
subject: string;
|
|
1615
1796
|
kind: "broadcast" | "automation" | "notification";
|
|
1616
|
-
|
|
1797
|
+
send_locale: string | null;
|
|
1617
1798
|
topic: string | null;
|
|
1618
1799
|
provider_id: string;
|
|
1619
1800
|
counts: {
|
|
@@ -1647,8 +1828,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1647
1828
|
cancel: (id: string, opts?: RequestOpts) => Promise<{
|
|
1648
1829
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1649
1830
|
id: string;
|
|
1650
|
-
metadata: Record<string, string>;
|
|
1651
1831
|
name: string | null;
|
|
1832
|
+
metadata: Record<string, string>;
|
|
1833
|
+
subject: string;
|
|
1834
|
+
preheader: string | null;
|
|
1652
1835
|
document: {
|
|
1653
1836
|
version: "1.0" | "1.1";
|
|
1654
1837
|
metadata: Record<string, unknown>;
|
|
@@ -1656,12 +1839,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1656
1839
|
} & {
|
|
1657
1840
|
[k: string]: unknown;
|
|
1658
1841
|
};
|
|
1842
|
+
locale: string;
|
|
1659
1843
|
created_at: string;
|
|
1660
1844
|
updated_at: string;
|
|
1661
1845
|
template_id: string | null;
|
|
1662
|
-
subject: string;
|
|
1663
1846
|
kind: "broadcast" | "automation" | "notification";
|
|
1664
|
-
|
|
1847
|
+
send_locale: string | null;
|
|
1665
1848
|
topic: string | null;
|
|
1666
1849
|
provider_id: string;
|
|
1667
1850
|
counts: {
|
|
@@ -1695,8 +1878,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1695
1878
|
retryFailed: (id: string, body?: RouteBody<"mailings.retryFailed">, opts?: RequestOpts) => Promise<{
|
|
1696
1879
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1697
1880
|
id: string;
|
|
1698
|
-
metadata: Record<string, string>;
|
|
1699
1881
|
name: string | null;
|
|
1882
|
+
metadata: Record<string, string>;
|
|
1883
|
+
subject: string;
|
|
1884
|
+
preheader: string | null;
|
|
1700
1885
|
document: {
|
|
1701
1886
|
version: "1.0" | "1.1";
|
|
1702
1887
|
metadata: Record<string, unknown>;
|
|
@@ -1704,12 +1889,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1704
1889
|
} & {
|
|
1705
1890
|
[k: string]: unknown;
|
|
1706
1891
|
};
|
|
1892
|
+
locale: string;
|
|
1707
1893
|
created_at: string;
|
|
1708
1894
|
updated_at: string;
|
|
1709
1895
|
template_id: string | null;
|
|
1710
|
-
subject: string;
|
|
1711
1896
|
kind: "broadcast" | "automation" | "notification";
|
|
1712
|
-
|
|
1897
|
+
send_locale: string | null;
|
|
1713
1898
|
topic: string | null;
|
|
1714
1899
|
provider_id: string;
|
|
1715
1900
|
counts: {
|
|
@@ -1743,8 +1928,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1743
1928
|
duplicate: (id: string, opts?: RequestOpts) => Promise<{
|
|
1744
1929
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1745
1930
|
id: string;
|
|
1746
|
-
metadata: Record<string, string>;
|
|
1747
1931
|
name: string | null;
|
|
1932
|
+
metadata: Record<string, string>;
|
|
1933
|
+
subject: string;
|
|
1934
|
+
preheader: string | null;
|
|
1748
1935
|
document: {
|
|
1749
1936
|
version: "1.0" | "1.1";
|
|
1750
1937
|
metadata: Record<string, unknown>;
|
|
@@ -1752,12 +1939,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1752
1939
|
} & {
|
|
1753
1940
|
[k: string]: unknown;
|
|
1754
1941
|
};
|
|
1942
|
+
locale: string;
|
|
1755
1943
|
created_at: string;
|
|
1756
1944
|
updated_at: string;
|
|
1757
1945
|
template_id: string | null;
|
|
1758
|
-
subject: string;
|
|
1759
1946
|
kind: "broadcast" | "automation" | "notification";
|
|
1760
|
-
|
|
1947
|
+
send_locale: string | null;
|
|
1761
1948
|
topic: string | null;
|
|
1762
1949
|
provider_id: string;
|
|
1763
1950
|
counts: {
|
|
@@ -1799,8 +1986,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1799
1986
|
schedule: (id: string, body: RouteBody<"mailings.schedule">, opts?: RequestOpts) => Promise<{
|
|
1800
1987
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1801
1988
|
id: string;
|
|
1802
|
-
metadata: Record<string, string>;
|
|
1803
1989
|
name: string | null;
|
|
1990
|
+
metadata: Record<string, string>;
|
|
1991
|
+
subject: string;
|
|
1992
|
+
preheader: string | null;
|
|
1804
1993
|
document: {
|
|
1805
1994
|
version: "1.0" | "1.1";
|
|
1806
1995
|
metadata: Record<string, unknown>;
|
|
@@ -1808,12 +1997,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1808
1997
|
} & {
|
|
1809
1998
|
[k: string]: unknown;
|
|
1810
1999
|
};
|
|
2000
|
+
locale: string;
|
|
1811
2001
|
created_at: string;
|
|
1812
2002
|
updated_at: string;
|
|
1813
2003
|
template_id: string | null;
|
|
1814
|
-
subject: string;
|
|
1815
2004
|
kind: "broadcast" | "automation" | "notification";
|
|
1816
|
-
|
|
2005
|
+
send_locale: string | null;
|
|
1817
2006
|
topic: string | null;
|
|
1818
2007
|
provider_id: string;
|
|
1819
2008
|
counts: {
|
|
@@ -1847,8 +2036,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1847
2036
|
unschedule: (id: string, opts?: RequestOpts) => Promise<{
|
|
1848
2037
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1849
2038
|
id: string;
|
|
1850
|
-
metadata: Record<string, string>;
|
|
1851
2039
|
name: string | null;
|
|
2040
|
+
metadata: Record<string, string>;
|
|
2041
|
+
subject: string;
|
|
2042
|
+
preheader: string | null;
|
|
1852
2043
|
document: {
|
|
1853
2044
|
version: "1.0" | "1.1";
|
|
1854
2045
|
metadata: Record<string, unknown>;
|
|
@@ -1856,12 +2047,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1856
2047
|
} & {
|
|
1857
2048
|
[k: string]: unknown;
|
|
1858
2049
|
};
|
|
2050
|
+
locale: string;
|
|
1859
2051
|
created_at: string;
|
|
1860
2052
|
updated_at: string;
|
|
1861
2053
|
template_id: string | null;
|
|
1862
|
-
subject: string;
|
|
1863
2054
|
kind: "broadcast" | "automation" | "notification";
|
|
1864
|
-
|
|
2055
|
+
send_locale: string | null;
|
|
1865
2056
|
topic: string | null;
|
|
1866
2057
|
provider_id: string;
|
|
1867
2058
|
counts: {
|
|
@@ -1895,8 +2086,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1895
2086
|
setAbTest: (id: string, body: RouteBody<"mailings.setAbTest">, opts?: RequestOpts) => Promise<{
|
|
1896
2087
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1897
2088
|
id: string;
|
|
1898
|
-
metadata: Record<string, string>;
|
|
1899
2089
|
name: string | null;
|
|
2090
|
+
metadata: Record<string, string>;
|
|
2091
|
+
subject: string;
|
|
2092
|
+
preheader: string | null;
|
|
1900
2093
|
document: {
|
|
1901
2094
|
version: "1.0" | "1.1";
|
|
1902
2095
|
metadata: Record<string, unknown>;
|
|
@@ -1904,12 +2097,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1904
2097
|
} & {
|
|
1905
2098
|
[k: string]: unknown;
|
|
1906
2099
|
};
|
|
2100
|
+
locale: string;
|
|
1907
2101
|
created_at: string;
|
|
1908
2102
|
updated_at: string;
|
|
1909
2103
|
template_id: string | null;
|
|
1910
|
-
subject: string;
|
|
1911
2104
|
kind: "broadcast" | "automation" | "notification";
|
|
1912
|
-
|
|
2105
|
+
send_locale: string | null;
|
|
1913
2106
|
topic: string | null;
|
|
1914
2107
|
provider_id: string;
|
|
1915
2108
|
counts: {
|
|
@@ -1943,8 +2136,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1943
2136
|
clearAbTest: (id: string, opts?: RequestOpts) => Promise<{
|
|
1944
2137
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1945
2138
|
id: string;
|
|
1946
|
-
metadata: Record<string, string>;
|
|
1947
2139
|
name: string | null;
|
|
2140
|
+
metadata: Record<string, string>;
|
|
2141
|
+
subject: string;
|
|
2142
|
+
preheader: string | null;
|
|
1948
2143
|
document: {
|
|
1949
2144
|
version: "1.0" | "1.1";
|
|
1950
2145
|
metadata: Record<string, unknown>;
|
|
@@ -1952,12 +2147,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1952
2147
|
} & {
|
|
1953
2148
|
[k: string]: unknown;
|
|
1954
2149
|
};
|
|
2150
|
+
locale: string;
|
|
1955
2151
|
created_at: string;
|
|
1956
2152
|
updated_at: string;
|
|
1957
2153
|
template_id: string | null;
|
|
1958
|
-
subject: string;
|
|
1959
2154
|
kind: "broadcast" | "automation" | "notification";
|
|
1960
|
-
|
|
2155
|
+
send_locale: string | null;
|
|
1961
2156
|
topic: string | null;
|
|
1962
2157
|
provider_id: string;
|
|
1963
2158
|
counts: {
|
|
@@ -1991,8 +2186,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1991
2186
|
pickAbWinner: (id: string, body: RouteBody<"mailings.pickAbWinner">, opts?: RequestOpts) => Promise<{
|
|
1992
2187
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1993
2188
|
id: string;
|
|
1994
|
-
metadata: Record<string, string>;
|
|
1995
2189
|
name: string | null;
|
|
2190
|
+
metadata: Record<string, string>;
|
|
2191
|
+
subject: string;
|
|
2192
|
+
preheader: string | null;
|
|
1996
2193
|
document: {
|
|
1997
2194
|
version: "1.0" | "1.1";
|
|
1998
2195
|
metadata: Record<string, unknown>;
|
|
@@ -2000,12 +2197,12 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2000
2197
|
} & {
|
|
2001
2198
|
[k: string]: unknown;
|
|
2002
2199
|
};
|
|
2200
|
+
locale: string;
|
|
2003
2201
|
created_at: string;
|
|
2004
2202
|
updated_at: string;
|
|
2005
2203
|
template_id: string | null;
|
|
2006
|
-
subject: string;
|
|
2007
2204
|
kind: "broadcast" | "automation" | "notification";
|
|
2008
|
-
|
|
2205
|
+
send_locale: string | null;
|
|
2009
2206
|
topic: string | null;
|
|
2010
2207
|
provider_id: string;
|
|
2011
2208
|
counts: {
|
|
@@ -2068,14 +2265,42 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2068
2265
|
unique_clicks: number;
|
|
2069
2266
|
}[] | null;
|
|
2070
2267
|
}>;
|
|
2268
|
+
/** Who reads which language version, and who gets the main language instead. */
|
|
2269
|
+
languages: (id: string, opts?: RequestOpts) => Promise<{
|
|
2270
|
+
languages: {
|
|
2271
|
+
status: "draft" | "ready" | "main" | "not_a_workspace_language";
|
|
2272
|
+
locale: string;
|
|
2273
|
+
sent: number;
|
|
2274
|
+
planned: number;
|
|
2275
|
+
}[];
|
|
2276
|
+
send_locale: string | null;
|
|
2277
|
+
main_locale: string;
|
|
2278
|
+
fallback: {
|
|
2279
|
+
planned: number;
|
|
2280
|
+
wanted: string;
|
|
2281
|
+
}[];
|
|
2282
|
+
no_language: number;
|
|
2283
|
+
insertion_misses: {
|
|
2284
|
+
value: string;
|
|
2285
|
+
sent: number;
|
|
2286
|
+
planned: number;
|
|
2287
|
+
insertion: string;
|
|
2288
|
+
}[];
|
|
2289
|
+
}>;
|
|
2071
2290
|
};
|
|
2072
2291
|
messages: {
|
|
2073
2292
|
list: (query?: RouteQuery<"messages.list">, opts?: RequestOpts) => Promise<{
|
|
2074
2293
|
data: {
|
|
2075
2294
|
id: string;
|
|
2076
2295
|
error: string | null;
|
|
2077
|
-
created_at: string;
|
|
2078
2296
|
subject: string;
|
|
2297
|
+
insertions: Record<string, {
|
|
2298
|
+
value: string | null;
|
|
2299
|
+
chosen: string;
|
|
2300
|
+
matched: boolean;
|
|
2301
|
+
}> | null;
|
|
2302
|
+
locale: string | null;
|
|
2303
|
+
created_at: string;
|
|
2079
2304
|
provider_id: string;
|
|
2080
2305
|
to: string;
|
|
2081
2306
|
provider_message_id: string | null;
|
|
@@ -2091,9 +2316,15 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2091
2316
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
2092
2317
|
id: string;
|
|
2093
2318
|
error: string | null;
|
|
2319
|
+
subject: string;
|
|
2320
|
+
insertions: Record<string, {
|
|
2321
|
+
value: string | null;
|
|
2322
|
+
chosen: string;
|
|
2323
|
+
matched: boolean;
|
|
2324
|
+
}> | null;
|
|
2325
|
+
locale: string | null;
|
|
2094
2326
|
created_at: string;
|
|
2095
2327
|
html: string;
|
|
2096
|
-
subject: string;
|
|
2097
2328
|
provider_id: string;
|
|
2098
2329
|
to: string;
|
|
2099
2330
|
provider_message_id: string | null;
|
|
@@ -2109,10 +2340,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2109
2340
|
list: (query?: RouteQuery<"webhooks.list">, opts?: RequestOpts) => Promise<{
|
|
2110
2341
|
data: {
|
|
2111
2342
|
id: string;
|
|
2343
|
+
url: string;
|
|
2112
2344
|
description: string | null;
|
|
2113
2345
|
created_at: string;
|
|
2114
2346
|
updated_at: string;
|
|
2115
|
-
url: string;
|
|
2116
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")[];
|
|
2117
2348
|
enabled: boolean;
|
|
2118
2349
|
}[];
|
|
@@ -2121,10 +2352,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2121
2352
|
create: (body: RouteBody<"webhooks.create">, opts?: RequestOpts) => Promise<{
|
|
2122
2353
|
endpoint: {
|
|
2123
2354
|
id: string;
|
|
2355
|
+
url: string;
|
|
2124
2356
|
description: string | null;
|
|
2125
2357
|
created_at: string;
|
|
2126
2358
|
updated_at: string;
|
|
2127
|
-
url: string;
|
|
2128
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")[];
|
|
2129
2360
|
enabled: boolean;
|
|
2130
2361
|
};
|
|
@@ -2132,19 +2363,19 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2132
2363
|
}>;
|
|
2133
2364
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
2134
2365
|
id: string;
|
|
2366
|
+
url: string;
|
|
2135
2367
|
description: string | null;
|
|
2136
2368
|
created_at: string;
|
|
2137
2369
|
updated_at: string;
|
|
2138
|
-
url: string;
|
|
2139
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")[];
|
|
2140
2371
|
enabled: boolean;
|
|
2141
2372
|
}>;
|
|
2142
2373
|
update: (id: string, body: RouteBody<"webhooks.update">, opts?: RequestOpts) => Promise<{
|
|
2143
2374
|
id: string;
|
|
2375
|
+
url: string;
|
|
2144
2376
|
description: string | null;
|
|
2145
2377
|
created_at: string;
|
|
2146
2378
|
updated_at: string;
|
|
2147
|
-
url: string;
|
|
2148
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")[];
|
|
2149
2380
|
enabled: boolean;
|
|
2150
2381
|
}>;
|
|
@@ -2154,10 +2385,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2154
2385
|
rotateSecret: (id: string, opts?: RequestOpts) => Promise<{
|
|
2155
2386
|
endpoint: {
|
|
2156
2387
|
id: string;
|
|
2388
|
+
url: string;
|
|
2157
2389
|
description: string | null;
|
|
2158
2390
|
created_at: string;
|
|
2159
2391
|
updated_at: string;
|
|
2160
|
-
url: string;
|
|
2161
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")[];
|
|
2162
2393
|
enabled: boolean;
|
|
2163
2394
|
};
|
|
@@ -2281,17 +2512,17 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2281
2512
|
list: (query?: RouteQuery<"signupForms.list">, opts?: RequestOpts) => Promise<{
|
|
2282
2513
|
data: {
|
|
2283
2514
|
id: string;
|
|
2284
|
-
version: number;
|
|
2285
2515
|
name: string;
|
|
2516
|
+
version: number;
|
|
2517
|
+
translations: Record<string, {
|
|
2518
|
+
title: string;
|
|
2519
|
+
consent_text: string;
|
|
2520
|
+
}>;
|
|
2286
2521
|
created_at: string;
|
|
2287
2522
|
updated_at: string;
|
|
2288
2523
|
provider_id: string;
|
|
2289
2524
|
title: string;
|
|
2290
2525
|
consent_text: string;
|
|
2291
|
-
translations: Record<string, {
|
|
2292
|
-
title: string;
|
|
2293
|
-
consent_text: string;
|
|
2294
|
-
}>;
|
|
2295
2526
|
topics: string[];
|
|
2296
2527
|
tags: string[];
|
|
2297
2528
|
fields: ("first_name" | "last_name")[];
|
|
@@ -2304,17 +2535,17 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2304
2535
|
}>;
|
|
2305
2536
|
create: (body: RouteBody<"signupForms.create">, opts?: RequestOpts) => Promise<{
|
|
2306
2537
|
id: string;
|
|
2307
|
-
version: number;
|
|
2308
2538
|
name: string;
|
|
2539
|
+
version: number;
|
|
2540
|
+
translations: Record<string, {
|
|
2541
|
+
title: string;
|
|
2542
|
+
consent_text: string;
|
|
2543
|
+
}>;
|
|
2309
2544
|
created_at: string;
|
|
2310
2545
|
updated_at: string;
|
|
2311
2546
|
provider_id: string;
|
|
2312
2547
|
title: string;
|
|
2313
2548
|
consent_text: string;
|
|
2314
|
-
translations: Record<string, {
|
|
2315
|
-
title: string;
|
|
2316
|
-
consent_text: string;
|
|
2317
|
-
}>;
|
|
2318
2549
|
topics: string[];
|
|
2319
2550
|
tags: string[];
|
|
2320
2551
|
fields: ("first_name" | "last_name")[];
|
|
@@ -2325,17 +2556,17 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2325
2556
|
}>;
|
|
2326
2557
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
2327
2558
|
id: string;
|
|
2328
|
-
version: number;
|
|
2329
2559
|
name: string;
|
|
2560
|
+
version: number;
|
|
2561
|
+
translations: Record<string, {
|
|
2562
|
+
title: string;
|
|
2563
|
+
consent_text: string;
|
|
2564
|
+
}>;
|
|
2330
2565
|
created_at: string;
|
|
2331
2566
|
updated_at: string;
|
|
2332
2567
|
provider_id: string;
|
|
2333
2568
|
title: string;
|
|
2334
2569
|
consent_text: string;
|
|
2335
|
-
translations: Record<string, {
|
|
2336
|
-
title: string;
|
|
2337
|
-
consent_text: string;
|
|
2338
|
-
}>;
|
|
2339
2570
|
topics: string[];
|
|
2340
2571
|
tags: string[];
|
|
2341
2572
|
fields: ("first_name" | "last_name")[];
|
|
@@ -2352,17 +2583,17 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2352
2583
|
}>;
|
|
2353
2584
|
update: (id: string, body: RouteBody<"signupForms.update">, opts?: RequestOpts) => Promise<{
|
|
2354
2585
|
id: string;
|
|
2355
|
-
version: number;
|
|
2356
2586
|
name: string;
|
|
2587
|
+
version: number;
|
|
2588
|
+
translations: Record<string, {
|
|
2589
|
+
title: string;
|
|
2590
|
+
consent_text: string;
|
|
2591
|
+
}>;
|
|
2357
2592
|
created_at: string;
|
|
2358
2593
|
updated_at: string;
|
|
2359
2594
|
provider_id: string;
|
|
2360
2595
|
title: string;
|
|
2361
2596
|
consent_text: string;
|
|
2362
|
-
translations: Record<string, {
|
|
2363
|
-
title: string;
|
|
2364
|
-
consent_text: string;
|
|
2365
|
-
}>;
|
|
2366
2597
|
topics: string[];
|
|
2367
2598
|
tags: string[];
|
|
2368
2599
|
fields: ("first_name" | "last_name")[];
|
|
@@ -2618,8 +2849,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2618
2849
|
data: {
|
|
2619
2850
|
message: string | null;
|
|
2620
2851
|
reason: "missing_email" | "invalid_email" | "duplicate_in_file" | "invalid_value" | "external_id_conflict" | "wrong_column_count" | null;
|
|
2621
|
-
contact_id: string | null;
|
|
2622
2852
|
email: string | null;
|
|
2853
|
+
contact_id: string | null;
|
|
2623
2854
|
outcome: "skipped" | "suppressed" | "created" | "updated" | "unchanged";
|
|
2624
2855
|
row: number;
|
|
2625
2856
|
}[];
|
|
@@ -2658,8 +2889,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2658
2889
|
data: {
|
|
2659
2890
|
id: "free" | "starter" | "growth" | "design_partner";
|
|
2660
2891
|
name: string;
|
|
2661
|
-
monthly_price_cents: number | null;
|
|
2662
2892
|
currency: string;
|
|
2893
|
+
monthly_price_cents: number | null;
|
|
2663
2894
|
limits: {
|
|
2664
2895
|
monthly_messages: number | null;
|
|
2665
2896
|
contacts: number | null;
|
|
@@ -2712,7 +2943,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2712
2943
|
automations: {
|
|
2713
2944
|
list: (query?: RouteQuery<"automations.list">, opts?: RequestOpts) => Promise<{
|
|
2714
2945
|
data: {
|
|
2715
|
-
status: "
|
|
2946
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
2716
2947
|
id: string;
|
|
2717
2948
|
name: string;
|
|
2718
2949
|
created_at: string;
|
|
@@ -2743,7 +2974,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2743
2974
|
next_cursor: string | null;
|
|
2744
2975
|
}>;
|
|
2745
2976
|
create: (body: RouteBody<"automations.create">, opts?: RequestOpts) => Promise<{
|
|
2746
|
-
status: "
|
|
2977
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
2747
2978
|
id: string;
|
|
2748
2979
|
name: string;
|
|
2749
2980
|
created_at: string;
|
|
@@ -2786,8 +3017,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2786
3017
|
} | {
|
|
2787
3018
|
key: string;
|
|
2788
3019
|
kind: "property_changed";
|
|
2789
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
2790
3020
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3021
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
2791
3022
|
} | {
|
|
2792
3023
|
name: string;
|
|
2793
3024
|
kind: "event";
|
|
@@ -2823,13 +3054,37 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2823
3054
|
subject: string;
|
|
2824
3055
|
kind: "email";
|
|
2825
3056
|
next: string | null;
|
|
3057
|
+
preheader?: string | null | undefined;
|
|
2826
3058
|
document?: zod.objectOutputType<{
|
|
2827
3059
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
2828
3060
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
2829
3061
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
2830
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;
|
|
3069
|
+
locale?: string | null | undefined;
|
|
3070
|
+
languages?: Record<string, {
|
|
3071
|
+
subject: string;
|
|
3072
|
+
preheader: string | null;
|
|
3073
|
+
document: {
|
|
3074
|
+
version: "1.0" | "1.1";
|
|
3075
|
+
metadata: Record<string, unknown>;
|
|
3076
|
+
sections: Record<string, unknown>[];
|
|
3077
|
+
} & {
|
|
3078
|
+
[k: string]: unknown;
|
|
3079
|
+
};
|
|
3080
|
+
insertions?: Record<string, {
|
|
3081
|
+
filled: string | null;
|
|
3082
|
+
otherwise: string;
|
|
3083
|
+
by: string;
|
|
3084
|
+
choices: Record<string, string>;
|
|
3085
|
+
}> | null | undefined;
|
|
3086
|
+
}> | null | undefined;
|
|
2831
3087
|
template_id?: string | null | undefined;
|
|
2832
|
-
preheader?: string | null | undefined;
|
|
2833
3088
|
label?: string | null | undefined;
|
|
2834
3089
|
} | {
|
|
2835
3090
|
kind: "delay";
|
|
@@ -2941,8 +3196,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2941
3196
|
} | {
|
|
2942
3197
|
key: string;
|
|
2943
3198
|
kind: "property_changed";
|
|
2944
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
2945
3199
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3200
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
2946
3201
|
} | {
|
|
2947
3202
|
name: string;
|
|
2948
3203
|
kind: "event";
|
|
@@ -2978,13 +3233,37 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2978
3233
|
subject: string;
|
|
2979
3234
|
kind: "email";
|
|
2980
3235
|
next: string | null;
|
|
3236
|
+
preheader?: string | null | undefined;
|
|
2981
3237
|
document?: zod.objectOutputType<{
|
|
2982
3238
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
2983
3239
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
2984
3240
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
2985
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;
|
|
3248
|
+
locale?: string | null | undefined;
|
|
3249
|
+
languages?: Record<string, {
|
|
3250
|
+
subject: string;
|
|
3251
|
+
preheader: string | null;
|
|
3252
|
+
document: {
|
|
3253
|
+
version: "1.0" | "1.1";
|
|
3254
|
+
metadata: Record<string, unknown>;
|
|
3255
|
+
sections: Record<string, unknown>[];
|
|
3256
|
+
} & {
|
|
3257
|
+
[k: string]: unknown;
|
|
3258
|
+
};
|
|
3259
|
+
insertions?: Record<string, {
|
|
3260
|
+
filled: string | null;
|
|
3261
|
+
otherwise: string;
|
|
3262
|
+
by: string;
|
|
3263
|
+
choices: Record<string, string>;
|
|
3264
|
+
}> | null | undefined;
|
|
3265
|
+
}> | null | undefined;
|
|
2986
3266
|
template_id?: string | null | undefined;
|
|
2987
|
-
preheader?: string | null | undefined;
|
|
2988
3267
|
label?: string | null | undefined;
|
|
2989
3268
|
} | {
|
|
2990
3269
|
kind: "delay";
|
|
@@ -3082,7 +3361,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3082
3361
|
} | null;
|
|
3083
3362
|
}>;
|
|
3084
3363
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
3085
|
-
status: "
|
|
3364
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3086
3365
|
id: string;
|
|
3087
3366
|
name: string;
|
|
3088
3367
|
created_at: string;
|
|
@@ -3125,8 +3404,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3125
3404
|
} | {
|
|
3126
3405
|
key: string;
|
|
3127
3406
|
kind: "property_changed";
|
|
3128
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3129
3407
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3408
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3130
3409
|
} | {
|
|
3131
3410
|
name: string;
|
|
3132
3411
|
kind: "event";
|
|
@@ -3162,13 +3441,37 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3162
3441
|
subject: string;
|
|
3163
3442
|
kind: "email";
|
|
3164
3443
|
next: string | null;
|
|
3444
|
+
preheader?: string | null | undefined;
|
|
3165
3445
|
document?: zod.objectOutputType<{
|
|
3166
3446
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3167
3447
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3168
3448
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3169
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;
|
|
3456
|
+
locale?: string | null | undefined;
|
|
3457
|
+
languages?: Record<string, {
|
|
3458
|
+
subject: string;
|
|
3459
|
+
preheader: string | null;
|
|
3460
|
+
document: {
|
|
3461
|
+
version: "1.0" | "1.1";
|
|
3462
|
+
metadata: Record<string, unknown>;
|
|
3463
|
+
sections: Record<string, unknown>[];
|
|
3464
|
+
} & {
|
|
3465
|
+
[k: string]: unknown;
|
|
3466
|
+
};
|
|
3467
|
+
insertions?: Record<string, {
|
|
3468
|
+
filled: string | null;
|
|
3469
|
+
otherwise: string;
|
|
3470
|
+
by: string;
|
|
3471
|
+
choices: Record<string, string>;
|
|
3472
|
+
}> | null | undefined;
|
|
3473
|
+
}> | null | undefined;
|
|
3170
3474
|
template_id?: string | null | undefined;
|
|
3171
|
-
preheader?: string | null | undefined;
|
|
3172
3475
|
label?: string | null | undefined;
|
|
3173
3476
|
} | {
|
|
3174
3477
|
kind: "delay";
|
|
@@ -3280,8 +3583,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3280
3583
|
} | {
|
|
3281
3584
|
key: string;
|
|
3282
3585
|
kind: "property_changed";
|
|
3283
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3284
3586
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3587
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3285
3588
|
} | {
|
|
3286
3589
|
name: string;
|
|
3287
3590
|
kind: "event";
|
|
@@ -3317,13 +3620,37 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3317
3620
|
subject: string;
|
|
3318
3621
|
kind: "email";
|
|
3319
3622
|
next: string | null;
|
|
3623
|
+
preheader?: string | null | undefined;
|
|
3320
3624
|
document?: zod.objectOutputType<{
|
|
3321
3625
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3322
3626
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3323
3627
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3324
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;
|
|
3635
|
+
locale?: string | null | undefined;
|
|
3636
|
+
languages?: Record<string, {
|
|
3637
|
+
subject: string;
|
|
3638
|
+
preheader: string | null;
|
|
3639
|
+
document: {
|
|
3640
|
+
version: "1.0" | "1.1";
|
|
3641
|
+
metadata: Record<string, unknown>;
|
|
3642
|
+
sections: Record<string, unknown>[];
|
|
3643
|
+
} & {
|
|
3644
|
+
[k: string]: unknown;
|
|
3645
|
+
};
|
|
3646
|
+
insertions?: Record<string, {
|
|
3647
|
+
filled: string | null;
|
|
3648
|
+
otherwise: string;
|
|
3649
|
+
by: string;
|
|
3650
|
+
choices: Record<string, string>;
|
|
3651
|
+
}> | null | undefined;
|
|
3652
|
+
}> | null | undefined;
|
|
3325
3653
|
template_id?: string | null | undefined;
|
|
3326
|
-
preheader?: string | null | undefined;
|
|
3327
3654
|
label?: string | null | undefined;
|
|
3328
3655
|
} | {
|
|
3329
3656
|
kind: "delay";
|
|
@@ -3422,7 +3749,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3422
3749
|
}>;
|
|
3423
3750
|
/** Saves the draft. `base_version` is the draft version you loaded; a stale one is `conflict` (409). */
|
|
3424
3751
|
update: (id: string, body: RouteBody<"automations.update">, opts?: RequestOpts) => Promise<{
|
|
3425
|
-
status: "
|
|
3752
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3426
3753
|
id: string;
|
|
3427
3754
|
name: string;
|
|
3428
3755
|
created_at: string;
|
|
@@ -3465,8 +3792,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3465
3792
|
} | {
|
|
3466
3793
|
key: string;
|
|
3467
3794
|
kind: "property_changed";
|
|
3468
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3469
3795
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3796
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3470
3797
|
} | {
|
|
3471
3798
|
name: string;
|
|
3472
3799
|
kind: "event";
|
|
@@ -3502,13 +3829,37 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3502
3829
|
subject: string;
|
|
3503
3830
|
kind: "email";
|
|
3504
3831
|
next: string | null;
|
|
3832
|
+
preheader?: string | null | undefined;
|
|
3505
3833
|
document?: zod.objectOutputType<{
|
|
3506
3834
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3507
3835
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3508
3836
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3509
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;
|
|
3844
|
+
locale?: string | null | undefined;
|
|
3845
|
+
languages?: Record<string, {
|
|
3846
|
+
subject: string;
|
|
3847
|
+
preheader: string | null;
|
|
3848
|
+
document: {
|
|
3849
|
+
version: "1.0" | "1.1";
|
|
3850
|
+
metadata: Record<string, unknown>;
|
|
3851
|
+
sections: Record<string, unknown>[];
|
|
3852
|
+
} & {
|
|
3853
|
+
[k: string]: unknown;
|
|
3854
|
+
};
|
|
3855
|
+
insertions?: Record<string, {
|
|
3856
|
+
filled: string | null;
|
|
3857
|
+
otherwise: string;
|
|
3858
|
+
by: string;
|
|
3859
|
+
choices: Record<string, string>;
|
|
3860
|
+
}> | null | undefined;
|
|
3861
|
+
}> | null | undefined;
|
|
3510
3862
|
template_id?: string | null | undefined;
|
|
3511
|
-
preheader?: string | null | undefined;
|
|
3512
3863
|
label?: string | null | undefined;
|
|
3513
3864
|
} | {
|
|
3514
3865
|
kind: "delay";
|
|
@@ -3620,8 +3971,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3620
3971
|
} | {
|
|
3621
3972
|
key: string;
|
|
3622
3973
|
kind: "property_changed";
|
|
3623
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3624
3974
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3975
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3625
3976
|
} | {
|
|
3626
3977
|
name: string;
|
|
3627
3978
|
kind: "event";
|
|
@@ -3657,13 +4008,37 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3657
4008
|
subject: string;
|
|
3658
4009
|
kind: "email";
|
|
3659
4010
|
next: string | null;
|
|
4011
|
+
preheader?: string | null | undefined;
|
|
3660
4012
|
document?: zod.objectOutputType<{
|
|
3661
4013
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3662
4014
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3663
4015
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3664
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;
|
|
4023
|
+
locale?: string | null | undefined;
|
|
4024
|
+
languages?: Record<string, {
|
|
4025
|
+
subject: string;
|
|
4026
|
+
preheader: string | null;
|
|
4027
|
+
document: {
|
|
4028
|
+
version: "1.0" | "1.1";
|
|
4029
|
+
metadata: Record<string, unknown>;
|
|
4030
|
+
sections: Record<string, unknown>[];
|
|
4031
|
+
} & {
|
|
4032
|
+
[k: string]: unknown;
|
|
4033
|
+
};
|
|
4034
|
+
insertions?: Record<string, {
|
|
4035
|
+
filled: string | null;
|
|
4036
|
+
otherwise: string;
|
|
4037
|
+
by: string;
|
|
4038
|
+
choices: Record<string, string>;
|
|
4039
|
+
}> | null | undefined;
|
|
4040
|
+
}> | null | undefined;
|
|
3665
4041
|
template_id?: string | null | undefined;
|
|
3666
|
-
preheader?: string | null | undefined;
|
|
3667
4042
|
label?: string | null | undefined;
|
|
3668
4043
|
} | {
|
|
3669
4044
|
kind: "delay";
|
|
@@ -3786,7 +4161,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3786
4161
|
step_id: string | null;
|
|
3787
4162
|
}[];
|
|
3788
4163
|
automation: {
|
|
3789
|
-
status: "
|
|
4164
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3790
4165
|
id: string;
|
|
3791
4166
|
name: string;
|
|
3792
4167
|
created_at: string;
|
|
@@ -3824,7 +4199,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3824
4199
|
published: boolean;
|
|
3825
4200
|
}>;
|
|
3826
4201
|
pause: (id: string, opts?: RequestOpts) => Promise<{
|
|
3827
|
-
status: "
|
|
4202
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3828
4203
|
id: string;
|
|
3829
4204
|
name: string;
|
|
3830
4205
|
created_at: string;
|
|
@@ -3853,7 +4228,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3853
4228
|
published_at: string | null;
|
|
3854
4229
|
}>;
|
|
3855
4230
|
resume: (id: string, opts?: RequestOpts) => Promise<{
|
|
3856
|
-
status: "
|
|
4231
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3857
4232
|
id: string;
|
|
3858
4233
|
name: string;
|
|
3859
4234
|
created_at: string;
|
|
@@ -3882,7 +4257,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3882
4257
|
published_at: string | null;
|
|
3883
4258
|
}>;
|
|
3884
4259
|
archive: (id: string, opts?: RequestOpts) => Promise<{
|
|
3885
|
-
status: "
|
|
4260
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3886
4261
|
id: string;
|
|
3887
4262
|
name: string;
|
|
3888
4263
|
created_at: string;
|
|
@@ -3911,7 +4286,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3911
4286
|
published_at: string | null;
|
|
3912
4287
|
}>;
|
|
3913
4288
|
duplicate: (id: string, body?: RouteBody<"automations.duplicate">, opts?: RequestOpts) => Promise<{
|
|
3914
|
-
status: "
|
|
4289
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3915
4290
|
id: string;
|
|
3916
4291
|
name: string;
|
|
3917
4292
|
created_at: string;
|
|
@@ -3954,8 +4329,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3954
4329
|
} | {
|
|
3955
4330
|
key: string;
|
|
3956
4331
|
kind: "property_changed";
|
|
3957
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3958
4332
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4333
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3959
4334
|
} | {
|
|
3960
4335
|
name: string;
|
|
3961
4336
|
kind: "event";
|
|
@@ -3991,13 +4366,37 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3991
4366
|
subject: string;
|
|
3992
4367
|
kind: "email";
|
|
3993
4368
|
next: string | null;
|
|
4369
|
+
preheader?: string | null | undefined;
|
|
3994
4370
|
document?: zod.objectOutputType<{
|
|
3995
4371
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3996
4372
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3997
4373
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3998
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;
|
|
4381
|
+
locale?: string | null | undefined;
|
|
4382
|
+
languages?: Record<string, {
|
|
4383
|
+
subject: string;
|
|
4384
|
+
preheader: string | null;
|
|
4385
|
+
document: {
|
|
4386
|
+
version: "1.0" | "1.1";
|
|
4387
|
+
metadata: Record<string, unknown>;
|
|
4388
|
+
sections: Record<string, unknown>[];
|
|
4389
|
+
} & {
|
|
4390
|
+
[k: string]: unknown;
|
|
4391
|
+
};
|
|
4392
|
+
insertions?: Record<string, {
|
|
4393
|
+
filled: string | null;
|
|
4394
|
+
otherwise: string;
|
|
4395
|
+
by: string;
|
|
4396
|
+
choices: Record<string, string>;
|
|
4397
|
+
}> | null | undefined;
|
|
4398
|
+
}> | null | undefined;
|
|
3999
4399
|
template_id?: string | null | undefined;
|
|
4000
|
-
preheader?: string | null | undefined;
|
|
4001
4400
|
label?: string | null | undefined;
|
|
4002
4401
|
} | {
|
|
4003
4402
|
kind: "delay";
|
|
@@ -4109,8 +4508,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4109
4508
|
} | {
|
|
4110
4509
|
key: string;
|
|
4111
4510
|
kind: "property_changed";
|
|
4112
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
4113
4511
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4512
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
4114
4513
|
} | {
|
|
4115
4514
|
name: string;
|
|
4116
4515
|
kind: "event";
|
|
@@ -4146,13 +4545,37 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4146
4545
|
subject: string;
|
|
4147
4546
|
kind: "email";
|
|
4148
4547
|
next: string | null;
|
|
4548
|
+
preheader?: string | null | undefined;
|
|
4149
4549
|
document?: zod.objectOutputType<{
|
|
4150
4550
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
4151
4551
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
4152
4552
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
4153
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;
|
|
4560
|
+
locale?: string | null | undefined;
|
|
4561
|
+
languages?: Record<string, {
|
|
4562
|
+
subject: string;
|
|
4563
|
+
preheader: string | null;
|
|
4564
|
+
document: {
|
|
4565
|
+
version: "1.0" | "1.1";
|
|
4566
|
+
metadata: Record<string, unknown>;
|
|
4567
|
+
sections: Record<string, unknown>[];
|
|
4568
|
+
} & {
|
|
4569
|
+
[k: string]: unknown;
|
|
4570
|
+
};
|
|
4571
|
+
insertions?: Record<string, {
|
|
4572
|
+
filled: string | null;
|
|
4573
|
+
otherwise: string;
|
|
4574
|
+
by: string;
|
|
4575
|
+
choices: Record<string, string>;
|
|
4576
|
+
}> | null | undefined;
|
|
4577
|
+
}> | null | undefined;
|
|
4154
4578
|
template_id?: string | null | undefined;
|
|
4155
|
-
preheader?: string | null | undefined;
|
|
4156
4579
|
label?: string | null | undefined;
|
|
4157
4580
|
} | {
|
|
4158
4581
|
kind: "delay";
|
|
@@ -4255,8 +4678,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4255
4678
|
refused: number;
|
|
4256
4679
|
results: {
|
|
4257
4680
|
reason: "suppressed" | "not_subscribed" | "unknown_contact" | "already_inside" | "re_entry_off" | "in_cooldown" | "excluded" | "not_active" | null;
|
|
4258
|
-
contact_id: string | null;
|
|
4259
4681
|
email: string | null;
|
|
4682
|
+
contact_id: string | null;
|
|
4260
4683
|
external_id: string | null;
|
|
4261
4684
|
entered: boolean;
|
|
4262
4685
|
run_id: string | null;
|
|
@@ -4270,10 +4693,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4270
4693
|
data: {
|
|
4271
4694
|
status: "failed" | "completed" | "active" | "exited" | "waiting";
|
|
4272
4695
|
id: string;
|
|
4696
|
+
email: string;
|
|
4273
4697
|
version: number;
|
|
4274
4698
|
automation_id: string;
|
|
4275
4699
|
contact_id: string;
|
|
4276
|
-
email: string;
|
|
4277
4700
|
last_error: string | null;
|
|
4278
4701
|
external_id: string | null;
|
|
4279
4702
|
current_step_id: string | null;
|
|
@@ -4298,10 +4721,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4298
4721
|
run: {
|
|
4299
4722
|
status: "failed" | "completed" | "active" | "exited" | "waiting";
|
|
4300
4723
|
id: string;
|
|
4724
|
+
email: string;
|
|
4301
4725
|
version: number;
|
|
4302
4726
|
automation_id: string;
|
|
4303
4727
|
contact_id: string;
|
|
4304
|
-
email: string;
|
|
4305
4728
|
last_error: string | null;
|
|
4306
4729
|
external_id: string | null;
|
|
4307
4730
|
current_step_id: string | null;
|
|
@@ -4315,10 +4738,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4315
4738
|
exitRun: (id: string, runId: string, body?: RouteBody<"automations.exitRun">, opts?: RequestOpts) => Promise<{
|
|
4316
4739
|
status: "failed" | "completed" | "active" | "exited" | "waiting";
|
|
4317
4740
|
id: string;
|
|
4741
|
+
email: string;
|
|
4318
4742
|
version: number;
|
|
4319
4743
|
automation_id: string;
|
|
4320
4744
|
contact_id: string;
|
|
4321
|
-
email: string;
|
|
4322
4745
|
last_error: string | null;
|
|
4323
4746
|
external_id: string | null;
|
|
4324
4747
|
current_step_id: string | null;
|