@marlinjai/mail-sdk 0.4.0 → 0.5.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/dist/index.d.mts +392 -153
- package/dist/index.d.ts +392 -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,9 +204,9 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
204
204
|
list: (query?: RouteQuery<"members.list">, opts?: RequestOpts) => Promise<{
|
|
205
205
|
data: {
|
|
206
206
|
id: string;
|
|
207
|
+
subject: string;
|
|
207
208
|
name: string | null;
|
|
208
209
|
created_at: string;
|
|
209
|
-
subject: string;
|
|
210
210
|
email: string;
|
|
211
211
|
role: "owner" | "admin" | "editor" | "viewer";
|
|
212
212
|
}[];
|
|
@@ -219,17 +219,17 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
219
219
|
*/
|
|
220
220
|
add: (body: RouteBody<"members.add">, opts?: RequestOpts) => Promise<{
|
|
221
221
|
id: string;
|
|
222
|
+
subject: string;
|
|
222
223
|
name: string | null;
|
|
223
224
|
created_at: string;
|
|
224
|
-
subject: string;
|
|
225
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
|
+
subject: string;
|
|
230
231
|
name: string | null;
|
|
231
232
|
created_at: string;
|
|
232
|
-
subject: string;
|
|
233
233
|
email: string;
|
|
234
234
|
role: "owner" | "admin" | "editor" | "viewer";
|
|
235
235
|
}>;
|
|
@@ -378,20 +378,24 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
378
378
|
data: {
|
|
379
379
|
id: string;
|
|
380
380
|
version: number;
|
|
381
|
+
subject: string | null;
|
|
382
|
+
preheader: string | null;
|
|
381
383
|
name: string;
|
|
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">;
|
|
387
391
|
}[];
|
|
388
392
|
next_cursor: string | null;
|
|
389
393
|
}>;
|
|
390
394
|
create: (body: RouteBody<"templates.create">, opts?: RequestOpts) => Promise<{
|
|
391
395
|
id: string;
|
|
392
396
|
version: number;
|
|
393
|
-
|
|
394
|
-
|
|
397
|
+
subject: string | null;
|
|
398
|
+
preheader: string | null;
|
|
395
399
|
document: {
|
|
396
400
|
version: "1.0" | "1.1";
|
|
397
401
|
metadata: Record<string, unknown>;
|
|
@@ -399,6 +403,21 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
399
403
|
} & {
|
|
400
404
|
[k: string]: unknown;
|
|
401
405
|
};
|
|
406
|
+
name: string;
|
|
407
|
+
description: string | null;
|
|
408
|
+
locale: string;
|
|
409
|
+
translations: Record<string, {
|
|
410
|
+
status: "draft" | "ready";
|
|
411
|
+
subject: string | null;
|
|
412
|
+
preheader: string | null;
|
|
413
|
+
document: {
|
|
414
|
+
version: "1.0" | "1.1";
|
|
415
|
+
metadata: Record<string, unknown>;
|
|
416
|
+
sections: Record<string, unknown>[];
|
|
417
|
+
} & {
|
|
418
|
+
[k: string]: unknown;
|
|
419
|
+
};
|
|
420
|
+
}>;
|
|
402
421
|
thumbnail_url: string | null;
|
|
403
422
|
archived_at: string | null;
|
|
404
423
|
created_at: string;
|
|
@@ -407,8 +426,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
407
426
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
408
427
|
id: string;
|
|
409
428
|
version: number;
|
|
410
|
-
|
|
411
|
-
|
|
429
|
+
subject: string | null;
|
|
430
|
+
preheader: string | null;
|
|
412
431
|
document: {
|
|
413
432
|
version: "1.0" | "1.1";
|
|
414
433
|
metadata: Record<string, unknown>;
|
|
@@ -416,6 +435,21 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
416
435
|
} & {
|
|
417
436
|
[k: string]: unknown;
|
|
418
437
|
};
|
|
438
|
+
name: string;
|
|
439
|
+
description: string | null;
|
|
440
|
+
locale: string;
|
|
441
|
+
translations: Record<string, {
|
|
442
|
+
status: "draft" | "ready";
|
|
443
|
+
subject: string | null;
|
|
444
|
+
preheader: string | null;
|
|
445
|
+
document: {
|
|
446
|
+
version: "1.0" | "1.1";
|
|
447
|
+
metadata: Record<string, unknown>;
|
|
448
|
+
sections: Record<string, unknown>[];
|
|
449
|
+
} & {
|
|
450
|
+
[k: string]: unknown;
|
|
451
|
+
};
|
|
452
|
+
}>;
|
|
419
453
|
thumbnail_url: string | null;
|
|
420
454
|
archived_at: string | null;
|
|
421
455
|
created_at: string;
|
|
@@ -424,8 +458,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
424
458
|
update: (id: string, body: RouteBody<"templates.update">, opts?: RequestOpts) => Promise<{
|
|
425
459
|
id: string;
|
|
426
460
|
version: number;
|
|
427
|
-
|
|
428
|
-
|
|
461
|
+
subject: string | null;
|
|
462
|
+
preheader: string | null;
|
|
429
463
|
document: {
|
|
430
464
|
version: "1.0" | "1.1";
|
|
431
465
|
metadata: Record<string, unknown>;
|
|
@@ -433,6 +467,21 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
433
467
|
} & {
|
|
434
468
|
[k: string]: unknown;
|
|
435
469
|
};
|
|
470
|
+
name: string;
|
|
471
|
+
description: string | null;
|
|
472
|
+
locale: string;
|
|
473
|
+
translations: Record<string, {
|
|
474
|
+
status: "draft" | "ready";
|
|
475
|
+
subject: string | null;
|
|
476
|
+
preheader: string | null;
|
|
477
|
+
document: {
|
|
478
|
+
version: "1.0" | "1.1";
|
|
479
|
+
metadata: Record<string, unknown>;
|
|
480
|
+
sections: Record<string, unknown>[];
|
|
481
|
+
} & {
|
|
482
|
+
[k: string]: unknown;
|
|
483
|
+
};
|
|
484
|
+
}>;
|
|
436
485
|
thumbnail_url: string | null;
|
|
437
486
|
archived_at: string | null;
|
|
438
487
|
created_at: string;
|
|
@@ -444,6 +493,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
444
493
|
versions: (id: string, query?: RouteQuery<"templates.versions">, opts?: RequestOpts) => Promise<{
|
|
445
494
|
data: {
|
|
446
495
|
version: number;
|
|
496
|
+
subject: string | null;
|
|
497
|
+
preheader: string | null;
|
|
447
498
|
document: {
|
|
448
499
|
version: "1.0" | "1.1";
|
|
449
500
|
metadata: Record<string, unknown>;
|
|
@@ -451,6 +502,19 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
451
502
|
} & {
|
|
452
503
|
[k: string]: unknown;
|
|
453
504
|
};
|
|
505
|
+
locale: string;
|
|
506
|
+
translations: Record<string, {
|
|
507
|
+
status: "draft" | "ready";
|
|
508
|
+
subject: string | null;
|
|
509
|
+
preheader: string | null;
|
|
510
|
+
document: {
|
|
511
|
+
version: "1.0" | "1.1";
|
|
512
|
+
metadata: Record<string, unknown>;
|
|
513
|
+
sections: Record<string, unknown>[];
|
|
514
|
+
} & {
|
|
515
|
+
[k: string]: unknown;
|
|
516
|
+
};
|
|
517
|
+
}>;
|
|
454
518
|
created_at: string;
|
|
455
519
|
created_by: string | null;
|
|
456
520
|
template_id: string;
|
|
@@ -459,6 +523,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
459
523
|
}>;
|
|
460
524
|
version: (id: string, version: number, opts?: RequestOpts) => Promise<{
|
|
461
525
|
version: number;
|
|
526
|
+
subject: string | null;
|
|
527
|
+
preheader: string | null;
|
|
462
528
|
document: {
|
|
463
529
|
version: "1.0" | "1.1";
|
|
464
530
|
metadata: Record<string, unknown>;
|
|
@@ -466,6 +532,19 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
466
532
|
} & {
|
|
467
533
|
[k: string]: unknown;
|
|
468
534
|
};
|
|
535
|
+
locale: string;
|
|
536
|
+
translations: Record<string, {
|
|
537
|
+
status: "draft" | "ready";
|
|
538
|
+
subject: string | null;
|
|
539
|
+
preheader: string | null;
|
|
540
|
+
document: {
|
|
541
|
+
version: "1.0" | "1.1";
|
|
542
|
+
metadata: Record<string, unknown>;
|
|
543
|
+
sections: Record<string, unknown>[];
|
|
544
|
+
} & {
|
|
545
|
+
[k: string]: unknown;
|
|
546
|
+
};
|
|
547
|
+
}>;
|
|
469
548
|
created_at: string;
|
|
470
549
|
created_by: string | null;
|
|
471
550
|
template_id: string;
|
|
@@ -501,8 +580,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
501
580
|
template: {
|
|
502
581
|
id: string;
|
|
503
582
|
version: number;
|
|
504
|
-
|
|
505
|
-
|
|
583
|
+
subject: string | null;
|
|
584
|
+
preheader: string | null;
|
|
506
585
|
document: {
|
|
507
586
|
version: "1.0" | "1.1";
|
|
508
587
|
metadata: Record<string, unknown>;
|
|
@@ -510,6 +589,21 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
510
589
|
} & {
|
|
511
590
|
[k: string]: unknown;
|
|
512
591
|
};
|
|
592
|
+
name: string;
|
|
593
|
+
description: string | null;
|
|
594
|
+
locale: string;
|
|
595
|
+
translations: Record<string, {
|
|
596
|
+
status: "draft" | "ready";
|
|
597
|
+
subject: string | null;
|
|
598
|
+
preheader: string | null;
|
|
599
|
+
document: {
|
|
600
|
+
version: "1.0" | "1.1";
|
|
601
|
+
metadata: Record<string, unknown>;
|
|
602
|
+
sections: Record<string, unknown>[];
|
|
603
|
+
} & {
|
|
604
|
+
[k: string]: unknown;
|
|
605
|
+
};
|
|
606
|
+
}>;
|
|
513
607
|
thumbnail_url: string | null;
|
|
514
608
|
archived_at: string | null;
|
|
515
609
|
created_at: string;
|
|
@@ -1116,13 +1210,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1116
1210
|
id: string;
|
|
1117
1211
|
name: string;
|
|
1118
1212
|
description: string | null;
|
|
1119
|
-
created_at: string;
|
|
1120
|
-
updated_at: string;
|
|
1121
|
-
slug: string;
|
|
1122
1213
|
translations: Record<string, {
|
|
1123
1214
|
name: string;
|
|
1124
1215
|
description: string | null;
|
|
1125
1216
|
}>;
|
|
1217
|
+
created_at: string;
|
|
1218
|
+
updated_at: string;
|
|
1219
|
+
slug: string;
|
|
1126
1220
|
}[];
|
|
1127
1221
|
next_cursor: string | null;
|
|
1128
1222
|
}>;
|
|
@@ -1130,25 +1224,25 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1130
1224
|
id: string;
|
|
1131
1225
|
name: string;
|
|
1132
1226
|
description: string | null;
|
|
1133
|
-
created_at: string;
|
|
1134
|
-
updated_at: string;
|
|
1135
|
-
slug: string;
|
|
1136
1227
|
translations: Record<string, {
|
|
1137
1228
|
name: string;
|
|
1138
1229
|
description: string | null;
|
|
1139
1230
|
}>;
|
|
1231
|
+
created_at: string;
|
|
1232
|
+
updated_at: string;
|
|
1233
|
+
slug: string;
|
|
1140
1234
|
}>;
|
|
1141
1235
|
update: (id: string, body: RouteBody<"topics.update">, opts?: RequestOpts) => Promise<{
|
|
1142
1236
|
id: string;
|
|
1143
1237
|
name: string;
|
|
1144
1238
|
description: string | null;
|
|
1145
|
-
created_at: string;
|
|
1146
|
-
updated_at: string;
|
|
1147
|
-
slug: string;
|
|
1148
1239
|
translations: Record<string, {
|
|
1149
1240
|
name: string;
|
|
1150
1241
|
description: string | null;
|
|
1151
1242
|
}>;
|
|
1243
|
+
created_at: string;
|
|
1244
|
+
updated_at: string;
|
|
1245
|
+
slug: string;
|
|
1152
1246
|
}>;
|
|
1153
1247
|
/** Refused with `conflict` while a mailing or an automation step still uses the topic. */
|
|
1154
1248
|
delete: (id: string, opts?: RequestOpts) => Promise<{
|
|
@@ -1160,13 +1254,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1160
1254
|
created: boolean;
|
|
1161
1255
|
contact: {
|
|
1162
1256
|
id: string;
|
|
1257
|
+
locale: string | null;
|
|
1163
1258
|
created_at: string;
|
|
1164
1259
|
updated_at: string;
|
|
1165
1260
|
email: string;
|
|
1166
1261
|
external_id: string | null;
|
|
1167
1262
|
first_name: string | null;
|
|
1168
1263
|
last_name: string | null;
|
|
1169
|
-
locale: string | null;
|
|
1170
1264
|
topics: string[];
|
|
1171
1265
|
tags: string[];
|
|
1172
1266
|
timezone: string | null;
|
|
@@ -1176,13 +1270,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1176
1270
|
list: (query?: RouteQuery<"contacts.list">, opts?: RequestOpts) => Promise<{
|
|
1177
1271
|
data: {
|
|
1178
1272
|
id: string;
|
|
1273
|
+
locale: string | null;
|
|
1179
1274
|
created_at: string;
|
|
1180
1275
|
updated_at: string;
|
|
1181
1276
|
email: string;
|
|
1182
1277
|
external_id: string | null;
|
|
1183
1278
|
first_name: string | null;
|
|
1184
1279
|
last_name: string | null;
|
|
1185
|
-
locale: string | null;
|
|
1186
1280
|
topics: string[];
|
|
1187
1281
|
tags: string[];
|
|
1188
1282
|
timezone: string | null;
|
|
@@ -1192,13 +1286,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1192
1286
|
}>;
|
|
1193
1287
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
1194
1288
|
id: string;
|
|
1289
|
+
locale: string | null;
|
|
1195
1290
|
created_at: string;
|
|
1196
1291
|
updated_at: string;
|
|
1197
1292
|
email: string;
|
|
1198
1293
|
external_id: string | null;
|
|
1199
1294
|
first_name: string | null;
|
|
1200
1295
|
last_name: string | null;
|
|
1201
|
-
locale: string | null;
|
|
1202
1296
|
topics: string[];
|
|
1203
1297
|
tags: string[];
|
|
1204
1298
|
timezone: string | null;
|
|
@@ -1214,8 +1308,9 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1214
1308
|
data: {
|
|
1215
1309
|
id: string;
|
|
1216
1310
|
error: string | null;
|
|
1217
|
-
created_at: string;
|
|
1218
1311
|
subject: string;
|
|
1312
|
+
locale: string | null;
|
|
1313
|
+
created_at: string;
|
|
1219
1314
|
provider_id: string;
|
|
1220
1315
|
to: string;
|
|
1221
1316
|
provider_message_id: string | null;
|
|
@@ -1235,7 +1330,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1235
1330
|
id: string;
|
|
1236
1331
|
version: number;
|
|
1237
1332
|
automation: {
|
|
1238
|
-
status: "
|
|
1333
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
1239
1334
|
id: string;
|
|
1240
1335
|
name: string;
|
|
1241
1336
|
};
|
|
@@ -1286,13 +1381,15 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1286
1381
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1287
1382
|
id: string;
|
|
1288
1383
|
metadata: Record<string, string>;
|
|
1384
|
+
subject: string;
|
|
1385
|
+
preheader: string | null;
|
|
1289
1386
|
name: string | null;
|
|
1387
|
+
locale: string;
|
|
1290
1388
|
created_at: string;
|
|
1291
1389
|
updated_at: string;
|
|
1292
1390
|
template_id: string | null;
|
|
1293
|
-
subject: string;
|
|
1294
1391
|
kind: "broadcast" | "automation" | "notification";
|
|
1295
|
-
|
|
1392
|
+
send_locale: string | null;
|
|
1296
1393
|
topic: string | null;
|
|
1297
1394
|
provider_id: string;
|
|
1298
1395
|
counts: {
|
|
@@ -1307,8 +1404,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1307
1404
|
ab_test: {
|
|
1308
1405
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1309
1406
|
variants: {
|
|
1310
|
-
key: string;
|
|
1311
1407
|
subject: string | null;
|
|
1408
|
+
key: string;
|
|
1312
1409
|
has_document: boolean;
|
|
1313
1410
|
}[];
|
|
1314
1411
|
test_fraction: number;
|
|
@@ -1329,7 +1426,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1329
1426
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1330
1427
|
id: string;
|
|
1331
1428
|
metadata: Record<string, string>;
|
|
1332
|
-
|
|
1429
|
+
subject: string;
|
|
1430
|
+
preheader: string | null;
|
|
1333
1431
|
document: {
|
|
1334
1432
|
version: "1.0" | "1.1";
|
|
1335
1433
|
metadata: Record<string, unknown>;
|
|
@@ -1337,12 +1435,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1337
1435
|
} & {
|
|
1338
1436
|
[k: string]: unknown;
|
|
1339
1437
|
};
|
|
1438
|
+
name: string | null;
|
|
1439
|
+
locale: string;
|
|
1340
1440
|
created_at: string;
|
|
1341
1441
|
updated_at: string;
|
|
1342
1442
|
template_id: string | null;
|
|
1343
|
-
subject: string;
|
|
1344
1443
|
kind: "broadcast" | "automation" | "notification";
|
|
1345
|
-
|
|
1444
|
+
send_locale: string | null;
|
|
1346
1445
|
topic: string | null;
|
|
1347
1446
|
provider_id: string;
|
|
1348
1447
|
counts: {
|
|
@@ -1357,8 +1456,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1357
1456
|
ab_test: {
|
|
1358
1457
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1359
1458
|
variants: {
|
|
1360
|
-
key: string;
|
|
1361
1459
|
subject: string | null;
|
|
1460
|
+
key: string;
|
|
1362
1461
|
has_document: boolean;
|
|
1363
1462
|
}[];
|
|
1364
1463
|
test_fraction: number;
|
|
@@ -1377,7 +1476,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1377
1476
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1378
1477
|
id: string;
|
|
1379
1478
|
metadata: Record<string, string>;
|
|
1380
|
-
|
|
1479
|
+
subject: string;
|
|
1480
|
+
preheader: string | null;
|
|
1381
1481
|
document: {
|
|
1382
1482
|
version: "1.0" | "1.1";
|
|
1383
1483
|
metadata: Record<string, unknown>;
|
|
@@ -1385,12 +1485,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1385
1485
|
} & {
|
|
1386
1486
|
[k: string]: unknown;
|
|
1387
1487
|
};
|
|
1488
|
+
name: string | null;
|
|
1489
|
+
locale: string;
|
|
1388
1490
|
created_at: string;
|
|
1389
1491
|
updated_at: string;
|
|
1390
1492
|
template_id: string | null;
|
|
1391
|
-
subject: string;
|
|
1392
1493
|
kind: "broadcast" | "automation" | "notification";
|
|
1393
|
-
|
|
1494
|
+
send_locale: string | null;
|
|
1394
1495
|
topic: string | null;
|
|
1395
1496
|
provider_id: string;
|
|
1396
1497
|
counts: {
|
|
@@ -1405,8 +1506,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1405
1506
|
ab_test: {
|
|
1406
1507
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1407
1508
|
variants: {
|
|
1408
|
-
key: string;
|
|
1409
1509
|
subject: string | null;
|
|
1510
|
+
key: string;
|
|
1410
1511
|
has_document: boolean;
|
|
1411
1512
|
}[];
|
|
1412
1513
|
test_fraction: number;
|
|
@@ -1427,7 +1528,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1427
1528
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1428
1529
|
id: string;
|
|
1429
1530
|
metadata: Record<string, string>;
|
|
1430
|
-
|
|
1531
|
+
subject: string;
|
|
1532
|
+
preheader: string | null;
|
|
1431
1533
|
document: {
|
|
1432
1534
|
version: "1.0" | "1.1";
|
|
1433
1535
|
metadata: Record<string, unknown>;
|
|
@@ -1435,12 +1537,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1435
1537
|
} & {
|
|
1436
1538
|
[k: string]: unknown;
|
|
1437
1539
|
};
|
|
1540
|
+
name: string | null;
|
|
1541
|
+
locale: string;
|
|
1438
1542
|
created_at: string;
|
|
1439
1543
|
updated_at: string;
|
|
1440
1544
|
template_id: string | null;
|
|
1441
|
-
subject: string;
|
|
1442
1545
|
kind: "broadcast" | "automation" | "notification";
|
|
1443
|
-
|
|
1546
|
+
send_locale: string | null;
|
|
1444
1547
|
topic: string | null;
|
|
1445
1548
|
provider_id: string;
|
|
1446
1549
|
counts: {
|
|
@@ -1455,8 +1558,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1455
1558
|
ab_test: {
|
|
1456
1559
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1457
1560
|
variants: {
|
|
1458
|
-
key: string;
|
|
1459
1561
|
subject: string | null;
|
|
1562
|
+
key: string;
|
|
1460
1563
|
has_document: boolean;
|
|
1461
1564
|
}[];
|
|
1462
1565
|
test_fraction: number;
|
|
@@ -1483,9 +1586,9 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1483
1586
|
data: {
|
|
1484
1587
|
status: "sending" | "sent" | "queued" | "failed" | "skipped";
|
|
1485
1588
|
id: string;
|
|
1589
|
+
merge: Record<string, _marlinjai_mail_contract.JsonValue>;
|
|
1486
1590
|
created_at: string;
|
|
1487
1591
|
updated_at: string;
|
|
1488
|
-
merge: Record<string, _marlinjai_mail_contract.JsonValue>;
|
|
1489
1592
|
message_id: string | null;
|
|
1490
1593
|
mailing_id: string;
|
|
1491
1594
|
contact_id: string | null;
|
|
@@ -1504,7 +1607,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1504
1607
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1505
1608
|
id: string;
|
|
1506
1609
|
metadata: Record<string, string>;
|
|
1507
|
-
|
|
1610
|
+
subject: string;
|
|
1611
|
+
preheader: string | null;
|
|
1508
1612
|
document: {
|
|
1509
1613
|
version: "1.0" | "1.1";
|
|
1510
1614
|
metadata: Record<string, unknown>;
|
|
@@ -1512,12 +1616,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1512
1616
|
} & {
|
|
1513
1617
|
[k: string]: unknown;
|
|
1514
1618
|
};
|
|
1619
|
+
name: string | null;
|
|
1620
|
+
locale: string;
|
|
1515
1621
|
created_at: string;
|
|
1516
1622
|
updated_at: string;
|
|
1517
1623
|
template_id: string | null;
|
|
1518
|
-
subject: string;
|
|
1519
1624
|
kind: "broadcast" | "automation" | "notification";
|
|
1520
|
-
|
|
1625
|
+
send_locale: string | null;
|
|
1521
1626
|
topic: string | null;
|
|
1522
1627
|
provider_id: string;
|
|
1523
1628
|
counts: {
|
|
@@ -1532,8 +1637,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1532
1637
|
ab_test: {
|
|
1533
1638
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1534
1639
|
variants: {
|
|
1535
|
-
key: string;
|
|
1536
1640
|
subject: string | null;
|
|
1641
|
+
key: string;
|
|
1537
1642
|
has_document: boolean;
|
|
1538
1643
|
}[];
|
|
1539
1644
|
test_fraction: number;
|
|
@@ -1552,7 +1657,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1552
1657
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1553
1658
|
id: string;
|
|
1554
1659
|
metadata: Record<string, string>;
|
|
1555
|
-
|
|
1660
|
+
subject: string;
|
|
1661
|
+
preheader: string | null;
|
|
1556
1662
|
document: {
|
|
1557
1663
|
version: "1.0" | "1.1";
|
|
1558
1664
|
metadata: Record<string, unknown>;
|
|
@@ -1560,12 +1666,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1560
1666
|
} & {
|
|
1561
1667
|
[k: string]: unknown;
|
|
1562
1668
|
};
|
|
1669
|
+
name: string | null;
|
|
1670
|
+
locale: string;
|
|
1563
1671
|
created_at: string;
|
|
1564
1672
|
updated_at: string;
|
|
1565
1673
|
template_id: string | null;
|
|
1566
|
-
subject: string;
|
|
1567
1674
|
kind: "broadcast" | "automation" | "notification";
|
|
1568
|
-
|
|
1675
|
+
send_locale: string | null;
|
|
1569
1676
|
topic: string | null;
|
|
1570
1677
|
provider_id: string;
|
|
1571
1678
|
counts: {
|
|
@@ -1580,8 +1687,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1580
1687
|
ab_test: {
|
|
1581
1688
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1582
1689
|
variants: {
|
|
1583
|
-
key: string;
|
|
1584
1690
|
subject: string | null;
|
|
1691
|
+
key: string;
|
|
1585
1692
|
has_document: boolean;
|
|
1586
1693
|
}[];
|
|
1587
1694
|
test_fraction: number;
|
|
@@ -1600,7 +1707,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1600
1707
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1601
1708
|
id: string;
|
|
1602
1709
|
metadata: Record<string, string>;
|
|
1603
|
-
|
|
1710
|
+
subject: string;
|
|
1711
|
+
preheader: string | null;
|
|
1604
1712
|
document: {
|
|
1605
1713
|
version: "1.0" | "1.1";
|
|
1606
1714
|
metadata: Record<string, unknown>;
|
|
@@ -1608,12 +1716,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1608
1716
|
} & {
|
|
1609
1717
|
[k: string]: unknown;
|
|
1610
1718
|
};
|
|
1719
|
+
name: string | null;
|
|
1720
|
+
locale: string;
|
|
1611
1721
|
created_at: string;
|
|
1612
1722
|
updated_at: string;
|
|
1613
1723
|
template_id: string | null;
|
|
1614
|
-
subject: string;
|
|
1615
1724
|
kind: "broadcast" | "automation" | "notification";
|
|
1616
|
-
|
|
1725
|
+
send_locale: string | null;
|
|
1617
1726
|
topic: string | null;
|
|
1618
1727
|
provider_id: string;
|
|
1619
1728
|
counts: {
|
|
@@ -1628,8 +1737,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1628
1737
|
ab_test: {
|
|
1629
1738
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1630
1739
|
variants: {
|
|
1631
|
-
key: string;
|
|
1632
1740
|
subject: string | null;
|
|
1741
|
+
key: string;
|
|
1633
1742
|
has_document: boolean;
|
|
1634
1743
|
}[];
|
|
1635
1744
|
test_fraction: number;
|
|
@@ -1648,7 +1757,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1648
1757
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1649
1758
|
id: string;
|
|
1650
1759
|
metadata: Record<string, string>;
|
|
1651
|
-
|
|
1760
|
+
subject: string;
|
|
1761
|
+
preheader: string | null;
|
|
1652
1762
|
document: {
|
|
1653
1763
|
version: "1.0" | "1.1";
|
|
1654
1764
|
metadata: Record<string, unknown>;
|
|
@@ -1656,12 +1766,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1656
1766
|
} & {
|
|
1657
1767
|
[k: string]: unknown;
|
|
1658
1768
|
};
|
|
1769
|
+
name: string | null;
|
|
1770
|
+
locale: string;
|
|
1659
1771
|
created_at: string;
|
|
1660
1772
|
updated_at: string;
|
|
1661
1773
|
template_id: string | null;
|
|
1662
|
-
subject: string;
|
|
1663
1774
|
kind: "broadcast" | "automation" | "notification";
|
|
1664
|
-
|
|
1775
|
+
send_locale: string | null;
|
|
1665
1776
|
topic: string | null;
|
|
1666
1777
|
provider_id: string;
|
|
1667
1778
|
counts: {
|
|
@@ -1676,8 +1787,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1676
1787
|
ab_test: {
|
|
1677
1788
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1678
1789
|
variants: {
|
|
1679
|
-
key: string;
|
|
1680
1790
|
subject: string | null;
|
|
1791
|
+
key: string;
|
|
1681
1792
|
has_document: boolean;
|
|
1682
1793
|
}[];
|
|
1683
1794
|
test_fraction: number;
|
|
@@ -1696,7 +1807,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1696
1807
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1697
1808
|
id: string;
|
|
1698
1809
|
metadata: Record<string, string>;
|
|
1699
|
-
|
|
1810
|
+
subject: string;
|
|
1811
|
+
preheader: string | null;
|
|
1700
1812
|
document: {
|
|
1701
1813
|
version: "1.0" | "1.1";
|
|
1702
1814
|
metadata: Record<string, unknown>;
|
|
@@ -1704,12 +1816,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1704
1816
|
} & {
|
|
1705
1817
|
[k: string]: unknown;
|
|
1706
1818
|
};
|
|
1819
|
+
name: string | null;
|
|
1820
|
+
locale: string;
|
|
1707
1821
|
created_at: string;
|
|
1708
1822
|
updated_at: string;
|
|
1709
1823
|
template_id: string | null;
|
|
1710
|
-
subject: string;
|
|
1711
1824
|
kind: "broadcast" | "automation" | "notification";
|
|
1712
|
-
|
|
1825
|
+
send_locale: string | null;
|
|
1713
1826
|
topic: string | null;
|
|
1714
1827
|
provider_id: string;
|
|
1715
1828
|
counts: {
|
|
@@ -1724,8 +1837,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1724
1837
|
ab_test: {
|
|
1725
1838
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1726
1839
|
variants: {
|
|
1727
|
-
key: string;
|
|
1728
1840
|
subject: string | null;
|
|
1841
|
+
key: string;
|
|
1729
1842
|
has_document: boolean;
|
|
1730
1843
|
}[];
|
|
1731
1844
|
test_fraction: number;
|
|
@@ -1744,7 +1857,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1744
1857
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1745
1858
|
id: string;
|
|
1746
1859
|
metadata: Record<string, string>;
|
|
1747
|
-
|
|
1860
|
+
subject: string;
|
|
1861
|
+
preheader: string | null;
|
|
1748
1862
|
document: {
|
|
1749
1863
|
version: "1.0" | "1.1";
|
|
1750
1864
|
metadata: Record<string, unknown>;
|
|
@@ -1752,12 +1866,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1752
1866
|
} & {
|
|
1753
1867
|
[k: string]: unknown;
|
|
1754
1868
|
};
|
|
1869
|
+
name: string | null;
|
|
1870
|
+
locale: string;
|
|
1755
1871
|
created_at: string;
|
|
1756
1872
|
updated_at: string;
|
|
1757
1873
|
template_id: string | null;
|
|
1758
|
-
subject: string;
|
|
1759
1874
|
kind: "broadcast" | "automation" | "notification";
|
|
1760
|
-
|
|
1875
|
+
send_locale: string | null;
|
|
1761
1876
|
topic: string | null;
|
|
1762
1877
|
provider_id: string;
|
|
1763
1878
|
counts: {
|
|
@@ -1772,8 +1887,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1772
1887
|
ab_test: {
|
|
1773
1888
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1774
1889
|
variants: {
|
|
1775
|
-
key: string;
|
|
1776
1890
|
subject: string | null;
|
|
1891
|
+
key: string;
|
|
1777
1892
|
has_document: boolean;
|
|
1778
1893
|
}[];
|
|
1779
1894
|
test_fraction: number;
|
|
@@ -1800,7 +1915,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1800
1915
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1801
1916
|
id: string;
|
|
1802
1917
|
metadata: Record<string, string>;
|
|
1803
|
-
|
|
1918
|
+
subject: string;
|
|
1919
|
+
preheader: string | null;
|
|
1804
1920
|
document: {
|
|
1805
1921
|
version: "1.0" | "1.1";
|
|
1806
1922
|
metadata: Record<string, unknown>;
|
|
@@ -1808,12 +1924,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1808
1924
|
} & {
|
|
1809
1925
|
[k: string]: unknown;
|
|
1810
1926
|
};
|
|
1927
|
+
name: string | null;
|
|
1928
|
+
locale: string;
|
|
1811
1929
|
created_at: string;
|
|
1812
1930
|
updated_at: string;
|
|
1813
1931
|
template_id: string | null;
|
|
1814
|
-
subject: string;
|
|
1815
1932
|
kind: "broadcast" | "automation" | "notification";
|
|
1816
|
-
|
|
1933
|
+
send_locale: string | null;
|
|
1817
1934
|
topic: string | null;
|
|
1818
1935
|
provider_id: string;
|
|
1819
1936
|
counts: {
|
|
@@ -1828,8 +1945,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1828
1945
|
ab_test: {
|
|
1829
1946
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1830
1947
|
variants: {
|
|
1831
|
-
key: string;
|
|
1832
1948
|
subject: string | null;
|
|
1949
|
+
key: string;
|
|
1833
1950
|
has_document: boolean;
|
|
1834
1951
|
}[];
|
|
1835
1952
|
test_fraction: number;
|
|
@@ -1848,7 +1965,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1848
1965
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1849
1966
|
id: string;
|
|
1850
1967
|
metadata: Record<string, string>;
|
|
1851
|
-
|
|
1968
|
+
subject: string;
|
|
1969
|
+
preheader: string | null;
|
|
1852
1970
|
document: {
|
|
1853
1971
|
version: "1.0" | "1.1";
|
|
1854
1972
|
metadata: Record<string, unknown>;
|
|
@@ -1856,12 +1974,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1856
1974
|
} & {
|
|
1857
1975
|
[k: string]: unknown;
|
|
1858
1976
|
};
|
|
1977
|
+
name: string | null;
|
|
1978
|
+
locale: string;
|
|
1859
1979
|
created_at: string;
|
|
1860
1980
|
updated_at: string;
|
|
1861
1981
|
template_id: string | null;
|
|
1862
|
-
subject: string;
|
|
1863
1982
|
kind: "broadcast" | "automation" | "notification";
|
|
1864
|
-
|
|
1983
|
+
send_locale: string | null;
|
|
1865
1984
|
topic: string | null;
|
|
1866
1985
|
provider_id: string;
|
|
1867
1986
|
counts: {
|
|
@@ -1876,8 +1995,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1876
1995
|
ab_test: {
|
|
1877
1996
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1878
1997
|
variants: {
|
|
1879
|
-
key: string;
|
|
1880
1998
|
subject: string | null;
|
|
1999
|
+
key: string;
|
|
1881
2000
|
has_document: boolean;
|
|
1882
2001
|
}[];
|
|
1883
2002
|
test_fraction: number;
|
|
@@ -1896,7 +2015,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1896
2015
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1897
2016
|
id: string;
|
|
1898
2017
|
metadata: Record<string, string>;
|
|
1899
|
-
|
|
2018
|
+
subject: string;
|
|
2019
|
+
preheader: string | null;
|
|
1900
2020
|
document: {
|
|
1901
2021
|
version: "1.0" | "1.1";
|
|
1902
2022
|
metadata: Record<string, unknown>;
|
|
@@ -1904,12 +2024,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1904
2024
|
} & {
|
|
1905
2025
|
[k: string]: unknown;
|
|
1906
2026
|
};
|
|
2027
|
+
name: string | null;
|
|
2028
|
+
locale: string;
|
|
1907
2029
|
created_at: string;
|
|
1908
2030
|
updated_at: string;
|
|
1909
2031
|
template_id: string | null;
|
|
1910
|
-
subject: string;
|
|
1911
2032
|
kind: "broadcast" | "automation" | "notification";
|
|
1912
|
-
|
|
2033
|
+
send_locale: string | null;
|
|
1913
2034
|
topic: string | null;
|
|
1914
2035
|
provider_id: string;
|
|
1915
2036
|
counts: {
|
|
@@ -1924,8 +2045,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1924
2045
|
ab_test: {
|
|
1925
2046
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1926
2047
|
variants: {
|
|
1927
|
-
key: string;
|
|
1928
2048
|
subject: string | null;
|
|
2049
|
+
key: string;
|
|
1929
2050
|
has_document: boolean;
|
|
1930
2051
|
}[];
|
|
1931
2052
|
test_fraction: number;
|
|
@@ -1944,7 +2065,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1944
2065
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1945
2066
|
id: string;
|
|
1946
2067
|
metadata: Record<string, string>;
|
|
1947
|
-
|
|
2068
|
+
subject: string;
|
|
2069
|
+
preheader: string | null;
|
|
1948
2070
|
document: {
|
|
1949
2071
|
version: "1.0" | "1.1";
|
|
1950
2072
|
metadata: Record<string, unknown>;
|
|
@@ -1952,12 +2074,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1952
2074
|
} & {
|
|
1953
2075
|
[k: string]: unknown;
|
|
1954
2076
|
};
|
|
2077
|
+
name: string | null;
|
|
2078
|
+
locale: string;
|
|
1955
2079
|
created_at: string;
|
|
1956
2080
|
updated_at: string;
|
|
1957
2081
|
template_id: string | null;
|
|
1958
|
-
subject: string;
|
|
1959
2082
|
kind: "broadcast" | "automation" | "notification";
|
|
1960
|
-
|
|
2083
|
+
send_locale: string | null;
|
|
1961
2084
|
topic: string | null;
|
|
1962
2085
|
provider_id: string;
|
|
1963
2086
|
counts: {
|
|
@@ -1972,8 +2095,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1972
2095
|
ab_test: {
|
|
1973
2096
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1974
2097
|
variants: {
|
|
1975
|
-
key: string;
|
|
1976
2098
|
subject: string | null;
|
|
2099
|
+
key: string;
|
|
1977
2100
|
has_document: boolean;
|
|
1978
2101
|
}[];
|
|
1979
2102
|
test_fraction: number;
|
|
@@ -1992,7 +2115,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1992
2115
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1993
2116
|
id: string;
|
|
1994
2117
|
metadata: Record<string, string>;
|
|
1995
|
-
|
|
2118
|
+
subject: string;
|
|
2119
|
+
preheader: string | null;
|
|
1996
2120
|
document: {
|
|
1997
2121
|
version: "1.0" | "1.1";
|
|
1998
2122
|
metadata: Record<string, unknown>;
|
|
@@ -2000,12 +2124,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2000
2124
|
} & {
|
|
2001
2125
|
[k: string]: unknown;
|
|
2002
2126
|
};
|
|
2127
|
+
name: string | null;
|
|
2128
|
+
locale: string;
|
|
2003
2129
|
created_at: string;
|
|
2004
2130
|
updated_at: string;
|
|
2005
2131
|
template_id: string | null;
|
|
2006
|
-
subject: string;
|
|
2007
2132
|
kind: "broadcast" | "automation" | "notification";
|
|
2008
|
-
|
|
2133
|
+
send_locale: string | null;
|
|
2009
2134
|
topic: string | null;
|
|
2010
2135
|
provider_id: string;
|
|
2011
2136
|
counts: {
|
|
@@ -2020,8 +2145,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2020
2145
|
ab_test: {
|
|
2021
2146
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
2022
2147
|
variants: {
|
|
2023
|
-
key: string;
|
|
2024
2148
|
subject: string | null;
|
|
2149
|
+
key: string;
|
|
2025
2150
|
has_document: boolean;
|
|
2026
2151
|
}[];
|
|
2027
2152
|
test_fraction: number;
|
|
@@ -2068,14 +2193,31 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2068
2193
|
unique_clicks: number;
|
|
2069
2194
|
}[] | null;
|
|
2070
2195
|
}>;
|
|
2196
|
+
/** Who reads which language version, and who gets the main language instead. */
|
|
2197
|
+
languages: (id: string, opts?: RequestOpts) => Promise<{
|
|
2198
|
+
languages: {
|
|
2199
|
+
status: "draft" | "ready" | "main" | "not_a_workspace_language";
|
|
2200
|
+
locale: string;
|
|
2201
|
+
sent: number;
|
|
2202
|
+
planned: number;
|
|
2203
|
+
}[];
|
|
2204
|
+
send_locale: string | null;
|
|
2205
|
+
main_locale: string;
|
|
2206
|
+
fallback: {
|
|
2207
|
+
planned: number;
|
|
2208
|
+
wanted: string;
|
|
2209
|
+
}[];
|
|
2210
|
+
no_language: number;
|
|
2211
|
+
}>;
|
|
2071
2212
|
};
|
|
2072
2213
|
messages: {
|
|
2073
2214
|
list: (query?: RouteQuery<"messages.list">, opts?: RequestOpts) => Promise<{
|
|
2074
2215
|
data: {
|
|
2075
2216
|
id: string;
|
|
2076
2217
|
error: string | null;
|
|
2077
|
-
created_at: string;
|
|
2078
2218
|
subject: string;
|
|
2219
|
+
locale: string | null;
|
|
2220
|
+
created_at: string;
|
|
2079
2221
|
provider_id: string;
|
|
2080
2222
|
to: string;
|
|
2081
2223
|
provider_message_id: string | null;
|
|
@@ -2091,9 +2233,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2091
2233
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
2092
2234
|
id: string;
|
|
2093
2235
|
error: string | null;
|
|
2236
|
+
subject: string;
|
|
2237
|
+
locale: string | null;
|
|
2094
2238
|
created_at: string;
|
|
2095
2239
|
html: string;
|
|
2096
|
-
subject: string;
|
|
2097
2240
|
provider_id: string;
|
|
2098
2241
|
to: string;
|
|
2099
2242
|
provider_message_id: string | null;
|
|
@@ -2283,15 +2426,15 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2283
2426
|
id: string;
|
|
2284
2427
|
version: number;
|
|
2285
2428
|
name: string;
|
|
2429
|
+
translations: Record<string, {
|
|
2430
|
+
title: string;
|
|
2431
|
+
consent_text: string;
|
|
2432
|
+
}>;
|
|
2286
2433
|
created_at: string;
|
|
2287
2434
|
updated_at: string;
|
|
2288
2435
|
provider_id: string;
|
|
2289
2436
|
title: string;
|
|
2290
2437
|
consent_text: string;
|
|
2291
|
-
translations: Record<string, {
|
|
2292
|
-
title: string;
|
|
2293
|
-
consent_text: string;
|
|
2294
|
-
}>;
|
|
2295
2438
|
topics: string[];
|
|
2296
2439
|
tags: string[];
|
|
2297
2440
|
fields: ("first_name" | "last_name")[];
|
|
@@ -2306,15 +2449,15 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2306
2449
|
id: string;
|
|
2307
2450
|
version: number;
|
|
2308
2451
|
name: string;
|
|
2452
|
+
translations: Record<string, {
|
|
2453
|
+
title: string;
|
|
2454
|
+
consent_text: string;
|
|
2455
|
+
}>;
|
|
2309
2456
|
created_at: string;
|
|
2310
2457
|
updated_at: string;
|
|
2311
2458
|
provider_id: string;
|
|
2312
2459
|
title: string;
|
|
2313
2460
|
consent_text: string;
|
|
2314
|
-
translations: Record<string, {
|
|
2315
|
-
title: string;
|
|
2316
|
-
consent_text: string;
|
|
2317
|
-
}>;
|
|
2318
2461
|
topics: string[];
|
|
2319
2462
|
tags: string[];
|
|
2320
2463
|
fields: ("first_name" | "last_name")[];
|
|
@@ -2327,15 +2470,15 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2327
2470
|
id: string;
|
|
2328
2471
|
version: number;
|
|
2329
2472
|
name: string;
|
|
2473
|
+
translations: Record<string, {
|
|
2474
|
+
title: string;
|
|
2475
|
+
consent_text: string;
|
|
2476
|
+
}>;
|
|
2330
2477
|
created_at: string;
|
|
2331
2478
|
updated_at: string;
|
|
2332
2479
|
provider_id: string;
|
|
2333
2480
|
title: string;
|
|
2334
2481
|
consent_text: string;
|
|
2335
|
-
translations: Record<string, {
|
|
2336
|
-
title: string;
|
|
2337
|
-
consent_text: string;
|
|
2338
|
-
}>;
|
|
2339
2482
|
topics: string[];
|
|
2340
2483
|
tags: string[];
|
|
2341
2484
|
fields: ("first_name" | "last_name")[];
|
|
@@ -2354,15 +2497,15 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2354
2497
|
id: string;
|
|
2355
2498
|
version: number;
|
|
2356
2499
|
name: string;
|
|
2500
|
+
translations: Record<string, {
|
|
2501
|
+
title: string;
|
|
2502
|
+
consent_text: string;
|
|
2503
|
+
}>;
|
|
2357
2504
|
created_at: string;
|
|
2358
2505
|
updated_at: string;
|
|
2359
2506
|
provider_id: string;
|
|
2360
2507
|
title: string;
|
|
2361
2508
|
consent_text: string;
|
|
2362
|
-
translations: Record<string, {
|
|
2363
|
-
title: string;
|
|
2364
|
-
consent_text: string;
|
|
2365
|
-
}>;
|
|
2366
2509
|
topics: string[];
|
|
2367
2510
|
tags: string[];
|
|
2368
2511
|
fields: ("first_name" | "last_name")[];
|
|
@@ -2658,8 +2801,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2658
2801
|
data: {
|
|
2659
2802
|
id: "free" | "starter" | "growth" | "design_partner";
|
|
2660
2803
|
name: string;
|
|
2661
|
-
monthly_price_cents: number | null;
|
|
2662
2804
|
currency: string;
|
|
2805
|
+
monthly_price_cents: number | null;
|
|
2663
2806
|
limits: {
|
|
2664
2807
|
monthly_messages: number | null;
|
|
2665
2808
|
contacts: number | null;
|
|
@@ -2712,7 +2855,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2712
2855
|
automations: {
|
|
2713
2856
|
list: (query?: RouteQuery<"automations.list">, opts?: RequestOpts) => Promise<{
|
|
2714
2857
|
data: {
|
|
2715
|
-
status: "
|
|
2858
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
2716
2859
|
id: string;
|
|
2717
2860
|
name: string;
|
|
2718
2861
|
created_at: string;
|
|
@@ -2743,7 +2886,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2743
2886
|
next_cursor: string | null;
|
|
2744
2887
|
}>;
|
|
2745
2888
|
create: (body: RouteBody<"automations.create">, opts?: RequestOpts) => Promise<{
|
|
2746
|
-
status: "
|
|
2889
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
2747
2890
|
id: string;
|
|
2748
2891
|
name: string;
|
|
2749
2892
|
created_at: string;
|
|
@@ -2786,13 +2929,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2786
2929
|
} | {
|
|
2787
2930
|
key: string;
|
|
2788
2931
|
kind: "property_changed";
|
|
2789
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
2790
2932
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2933
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
2791
2934
|
} | {
|
|
2792
2935
|
name: string;
|
|
2793
2936
|
kind: "event";
|
|
2794
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2795
2937
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2938
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2796
2939
|
} | {
|
|
2797
2940
|
kind: "manual";
|
|
2798
2941
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -2806,8 +2949,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2806
2949
|
at: string;
|
|
2807
2950
|
kind: "exact_date";
|
|
2808
2951
|
on: string;
|
|
2809
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2810
2952
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2953
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2811
2954
|
} | {
|
|
2812
2955
|
kind: "segment_entered";
|
|
2813
2956
|
segment_id: string;
|
|
@@ -2815,21 +2958,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2815
2958
|
} | {
|
|
2816
2959
|
kind: "link_clicked";
|
|
2817
2960
|
mailing_id: string;
|
|
2818
|
-
url?: string | undefined;
|
|
2819
2961
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2962
|
+
url?: string | undefined;
|
|
2820
2963
|
})[];
|
|
2821
2964
|
entry: string | null;
|
|
2822
2965
|
steps: Record<string, {
|
|
2823
2966
|
subject: string;
|
|
2824
2967
|
kind: "email";
|
|
2825
2968
|
next: string | null;
|
|
2969
|
+
preheader?: string | null | undefined;
|
|
2826
2970
|
document?: zod.objectOutputType<{
|
|
2827
2971
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
2828
2972
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
2829
2973
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
2830
2974
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
2975
|
+
locale?: string | null | undefined;
|
|
2976
|
+
languages?: Record<string, {
|
|
2977
|
+
subject: string;
|
|
2978
|
+
preheader: string | null;
|
|
2979
|
+
document: {
|
|
2980
|
+
version: "1.0" | "1.1";
|
|
2981
|
+
metadata: Record<string, unknown>;
|
|
2982
|
+
sections: Record<string, unknown>[];
|
|
2983
|
+
} & {
|
|
2984
|
+
[k: string]: unknown;
|
|
2985
|
+
};
|
|
2986
|
+
}> | null | undefined;
|
|
2831
2987
|
template_id?: string | null | undefined;
|
|
2832
|
-
preheader?: string | null | undefined;
|
|
2833
2988
|
label?: string | null | undefined;
|
|
2834
2989
|
} | {
|
|
2835
2990
|
kind: "delay";
|
|
@@ -2941,13 +3096,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2941
3096
|
} | {
|
|
2942
3097
|
key: string;
|
|
2943
3098
|
kind: "property_changed";
|
|
2944
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
2945
3099
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3100
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
2946
3101
|
} | {
|
|
2947
3102
|
name: string;
|
|
2948
3103
|
kind: "event";
|
|
2949
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2950
3104
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3105
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2951
3106
|
} | {
|
|
2952
3107
|
kind: "manual";
|
|
2953
3108
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -2961,8 +3116,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2961
3116
|
at: string;
|
|
2962
3117
|
kind: "exact_date";
|
|
2963
3118
|
on: string;
|
|
2964
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2965
3119
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3120
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2966
3121
|
} | {
|
|
2967
3122
|
kind: "segment_entered";
|
|
2968
3123
|
segment_id: string;
|
|
@@ -2970,21 +3125,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2970
3125
|
} | {
|
|
2971
3126
|
kind: "link_clicked";
|
|
2972
3127
|
mailing_id: string;
|
|
2973
|
-
url?: string | undefined;
|
|
2974
3128
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3129
|
+
url?: string | undefined;
|
|
2975
3130
|
})[];
|
|
2976
3131
|
entry: string | null;
|
|
2977
3132
|
steps: Record<string, {
|
|
2978
3133
|
subject: string;
|
|
2979
3134
|
kind: "email";
|
|
2980
3135
|
next: string | null;
|
|
3136
|
+
preheader?: string | null | undefined;
|
|
2981
3137
|
document?: zod.objectOutputType<{
|
|
2982
3138
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
2983
3139
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
2984
3140
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
2985
3141
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
3142
|
+
locale?: string | null | undefined;
|
|
3143
|
+
languages?: Record<string, {
|
|
3144
|
+
subject: string;
|
|
3145
|
+
preheader: string | null;
|
|
3146
|
+
document: {
|
|
3147
|
+
version: "1.0" | "1.1";
|
|
3148
|
+
metadata: Record<string, unknown>;
|
|
3149
|
+
sections: Record<string, unknown>[];
|
|
3150
|
+
} & {
|
|
3151
|
+
[k: string]: unknown;
|
|
3152
|
+
};
|
|
3153
|
+
}> | null | undefined;
|
|
2986
3154
|
template_id?: string | null | undefined;
|
|
2987
|
-
preheader?: string | null | undefined;
|
|
2988
3155
|
label?: string | null | undefined;
|
|
2989
3156
|
} | {
|
|
2990
3157
|
kind: "delay";
|
|
@@ -3082,7 +3249,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3082
3249
|
} | null;
|
|
3083
3250
|
}>;
|
|
3084
3251
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
3085
|
-
status: "
|
|
3252
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3086
3253
|
id: string;
|
|
3087
3254
|
name: string;
|
|
3088
3255
|
created_at: string;
|
|
@@ -3125,13 +3292,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3125
3292
|
} | {
|
|
3126
3293
|
key: string;
|
|
3127
3294
|
kind: "property_changed";
|
|
3128
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3129
3295
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3296
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3130
3297
|
} | {
|
|
3131
3298
|
name: string;
|
|
3132
3299
|
kind: "event";
|
|
3133
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3134
3300
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3301
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3135
3302
|
} | {
|
|
3136
3303
|
kind: "manual";
|
|
3137
3304
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3145,8 +3312,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3145
3312
|
at: string;
|
|
3146
3313
|
kind: "exact_date";
|
|
3147
3314
|
on: string;
|
|
3148
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3149
3315
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3316
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3150
3317
|
} | {
|
|
3151
3318
|
kind: "segment_entered";
|
|
3152
3319
|
segment_id: string;
|
|
@@ -3154,21 +3321,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3154
3321
|
} | {
|
|
3155
3322
|
kind: "link_clicked";
|
|
3156
3323
|
mailing_id: string;
|
|
3157
|
-
url?: string | undefined;
|
|
3158
3324
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3325
|
+
url?: string | undefined;
|
|
3159
3326
|
})[];
|
|
3160
3327
|
entry: string | null;
|
|
3161
3328
|
steps: Record<string, {
|
|
3162
3329
|
subject: string;
|
|
3163
3330
|
kind: "email";
|
|
3164
3331
|
next: string | null;
|
|
3332
|
+
preheader?: string | null | undefined;
|
|
3165
3333
|
document?: zod.objectOutputType<{
|
|
3166
3334
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3167
3335
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3168
3336
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3169
3337
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
3338
|
+
locale?: string | null | undefined;
|
|
3339
|
+
languages?: Record<string, {
|
|
3340
|
+
subject: string;
|
|
3341
|
+
preheader: string | null;
|
|
3342
|
+
document: {
|
|
3343
|
+
version: "1.0" | "1.1";
|
|
3344
|
+
metadata: Record<string, unknown>;
|
|
3345
|
+
sections: Record<string, unknown>[];
|
|
3346
|
+
} & {
|
|
3347
|
+
[k: string]: unknown;
|
|
3348
|
+
};
|
|
3349
|
+
}> | null | undefined;
|
|
3170
3350
|
template_id?: string | null | undefined;
|
|
3171
|
-
preheader?: string | null | undefined;
|
|
3172
3351
|
label?: string | null | undefined;
|
|
3173
3352
|
} | {
|
|
3174
3353
|
kind: "delay";
|
|
@@ -3280,13 +3459,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3280
3459
|
} | {
|
|
3281
3460
|
key: string;
|
|
3282
3461
|
kind: "property_changed";
|
|
3283
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3284
3462
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3463
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3285
3464
|
} | {
|
|
3286
3465
|
name: string;
|
|
3287
3466
|
kind: "event";
|
|
3288
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3289
3467
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3468
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3290
3469
|
} | {
|
|
3291
3470
|
kind: "manual";
|
|
3292
3471
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3300,8 +3479,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3300
3479
|
at: string;
|
|
3301
3480
|
kind: "exact_date";
|
|
3302
3481
|
on: string;
|
|
3303
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3304
3482
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3483
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3305
3484
|
} | {
|
|
3306
3485
|
kind: "segment_entered";
|
|
3307
3486
|
segment_id: string;
|
|
@@ -3309,21 +3488,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3309
3488
|
} | {
|
|
3310
3489
|
kind: "link_clicked";
|
|
3311
3490
|
mailing_id: string;
|
|
3312
|
-
url?: string | undefined;
|
|
3313
3491
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3492
|
+
url?: string | undefined;
|
|
3314
3493
|
})[];
|
|
3315
3494
|
entry: string | null;
|
|
3316
3495
|
steps: Record<string, {
|
|
3317
3496
|
subject: string;
|
|
3318
3497
|
kind: "email";
|
|
3319
3498
|
next: string | null;
|
|
3499
|
+
preheader?: string | null | undefined;
|
|
3320
3500
|
document?: zod.objectOutputType<{
|
|
3321
3501
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3322
3502
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3323
3503
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3324
3504
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
3505
|
+
locale?: string | null | undefined;
|
|
3506
|
+
languages?: Record<string, {
|
|
3507
|
+
subject: string;
|
|
3508
|
+
preheader: string | null;
|
|
3509
|
+
document: {
|
|
3510
|
+
version: "1.0" | "1.1";
|
|
3511
|
+
metadata: Record<string, unknown>;
|
|
3512
|
+
sections: Record<string, unknown>[];
|
|
3513
|
+
} & {
|
|
3514
|
+
[k: string]: unknown;
|
|
3515
|
+
};
|
|
3516
|
+
}> | null | undefined;
|
|
3325
3517
|
template_id?: string | null | undefined;
|
|
3326
|
-
preheader?: string | null | undefined;
|
|
3327
3518
|
label?: string | null | undefined;
|
|
3328
3519
|
} | {
|
|
3329
3520
|
kind: "delay";
|
|
@@ -3422,7 +3613,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3422
3613
|
}>;
|
|
3423
3614
|
/** Saves the draft. `base_version` is the draft version you loaded; a stale one is `conflict` (409). */
|
|
3424
3615
|
update: (id: string, body: RouteBody<"automations.update">, opts?: RequestOpts) => Promise<{
|
|
3425
|
-
status: "
|
|
3616
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3426
3617
|
id: string;
|
|
3427
3618
|
name: string;
|
|
3428
3619
|
created_at: string;
|
|
@@ -3465,13 +3656,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3465
3656
|
} | {
|
|
3466
3657
|
key: string;
|
|
3467
3658
|
kind: "property_changed";
|
|
3468
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3469
3659
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3660
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3470
3661
|
} | {
|
|
3471
3662
|
name: string;
|
|
3472
3663
|
kind: "event";
|
|
3473
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3474
3664
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3665
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3475
3666
|
} | {
|
|
3476
3667
|
kind: "manual";
|
|
3477
3668
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3485,8 +3676,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3485
3676
|
at: string;
|
|
3486
3677
|
kind: "exact_date";
|
|
3487
3678
|
on: string;
|
|
3488
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3489
3679
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3680
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3490
3681
|
} | {
|
|
3491
3682
|
kind: "segment_entered";
|
|
3492
3683
|
segment_id: string;
|
|
@@ -3494,21 +3685,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3494
3685
|
} | {
|
|
3495
3686
|
kind: "link_clicked";
|
|
3496
3687
|
mailing_id: string;
|
|
3497
|
-
url?: string | undefined;
|
|
3498
3688
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3689
|
+
url?: string | undefined;
|
|
3499
3690
|
})[];
|
|
3500
3691
|
entry: string | null;
|
|
3501
3692
|
steps: Record<string, {
|
|
3502
3693
|
subject: string;
|
|
3503
3694
|
kind: "email";
|
|
3504
3695
|
next: string | null;
|
|
3696
|
+
preheader?: string | null | undefined;
|
|
3505
3697
|
document?: zod.objectOutputType<{
|
|
3506
3698
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3507
3699
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3508
3700
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3509
3701
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
3702
|
+
locale?: string | null | undefined;
|
|
3703
|
+
languages?: Record<string, {
|
|
3704
|
+
subject: string;
|
|
3705
|
+
preheader: string | null;
|
|
3706
|
+
document: {
|
|
3707
|
+
version: "1.0" | "1.1";
|
|
3708
|
+
metadata: Record<string, unknown>;
|
|
3709
|
+
sections: Record<string, unknown>[];
|
|
3710
|
+
} & {
|
|
3711
|
+
[k: string]: unknown;
|
|
3712
|
+
};
|
|
3713
|
+
}> | null | undefined;
|
|
3510
3714
|
template_id?: string | null | undefined;
|
|
3511
|
-
preheader?: string | null | undefined;
|
|
3512
3715
|
label?: string | null | undefined;
|
|
3513
3716
|
} | {
|
|
3514
3717
|
kind: "delay";
|
|
@@ -3620,13 +3823,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3620
3823
|
} | {
|
|
3621
3824
|
key: string;
|
|
3622
3825
|
kind: "property_changed";
|
|
3623
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3624
3826
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3827
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3625
3828
|
} | {
|
|
3626
3829
|
name: string;
|
|
3627
3830
|
kind: "event";
|
|
3628
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3629
3831
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3832
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3630
3833
|
} | {
|
|
3631
3834
|
kind: "manual";
|
|
3632
3835
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3640,8 +3843,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3640
3843
|
at: string;
|
|
3641
3844
|
kind: "exact_date";
|
|
3642
3845
|
on: string;
|
|
3643
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3644
3846
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3847
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3645
3848
|
} | {
|
|
3646
3849
|
kind: "segment_entered";
|
|
3647
3850
|
segment_id: string;
|
|
@@ -3649,21 +3852,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3649
3852
|
} | {
|
|
3650
3853
|
kind: "link_clicked";
|
|
3651
3854
|
mailing_id: string;
|
|
3652
|
-
url?: string | undefined;
|
|
3653
3855
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3856
|
+
url?: string | undefined;
|
|
3654
3857
|
})[];
|
|
3655
3858
|
entry: string | null;
|
|
3656
3859
|
steps: Record<string, {
|
|
3657
3860
|
subject: string;
|
|
3658
3861
|
kind: "email";
|
|
3659
3862
|
next: string | null;
|
|
3863
|
+
preheader?: string | null | undefined;
|
|
3660
3864
|
document?: zod.objectOutputType<{
|
|
3661
3865
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3662
3866
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3663
3867
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3664
3868
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
3869
|
+
locale?: string | null | undefined;
|
|
3870
|
+
languages?: Record<string, {
|
|
3871
|
+
subject: string;
|
|
3872
|
+
preheader: string | null;
|
|
3873
|
+
document: {
|
|
3874
|
+
version: "1.0" | "1.1";
|
|
3875
|
+
metadata: Record<string, unknown>;
|
|
3876
|
+
sections: Record<string, unknown>[];
|
|
3877
|
+
} & {
|
|
3878
|
+
[k: string]: unknown;
|
|
3879
|
+
};
|
|
3880
|
+
}> | null | undefined;
|
|
3665
3881
|
template_id?: string | null | undefined;
|
|
3666
|
-
preheader?: string | null | undefined;
|
|
3667
3882
|
label?: string | null | undefined;
|
|
3668
3883
|
} | {
|
|
3669
3884
|
kind: "delay";
|
|
@@ -3786,7 +4001,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3786
4001
|
step_id: string | null;
|
|
3787
4002
|
}[];
|
|
3788
4003
|
automation: {
|
|
3789
|
-
status: "
|
|
4004
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3790
4005
|
id: string;
|
|
3791
4006
|
name: string;
|
|
3792
4007
|
created_at: string;
|
|
@@ -3824,7 +4039,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3824
4039
|
published: boolean;
|
|
3825
4040
|
}>;
|
|
3826
4041
|
pause: (id: string, opts?: RequestOpts) => Promise<{
|
|
3827
|
-
status: "
|
|
4042
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3828
4043
|
id: string;
|
|
3829
4044
|
name: string;
|
|
3830
4045
|
created_at: string;
|
|
@@ -3853,7 +4068,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3853
4068
|
published_at: string | null;
|
|
3854
4069
|
}>;
|
|
3855
4070
|
resume: (id: string, opts?: RequestOpts) => Promise<{
|
|
3856
|
-
status: "
|
|
4071
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3857
4072
|
id: string;
|
|
3858
4073
|
name: string;
|
|
3859
4074
|
created_at: string;
|
|
@@ -3882,7 +4097,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3882
4097
|
published_at: string | null;
|
|
3883
4098
|
}>;
|
|
3884
4099
|
archive: (id: string, opts?: RequestOpts) => Promise<{
|
|
3885
|
-
status: "
|
|
4100
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3886
4101
|
id: string;
|
|
3887
4102
|
name: string;
|
|
3888
4103
|
created_at: string;
|
|
@@ -3911,7 +4126,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3911
4126
|
published_at: string | null;
|
|
3912
4127
|
}>;
|
|
3913
4128
|
duplicate: (id: string, body?: RouteBody<"automations.duplicate">, opts?: RequestOpts) => Promise<{
|
|
3914
|
-
status: "
|
|
4129
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3915
4130
|
id: string;
|
|
3916
4131
|
name: string;
|
|
3917
4132
|
created_at: string;
|
|
@@ -3954,13 +4169,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3954
4169
|
} | {
|
|
3955
4170
|
key: string;
|
|
3956
4171
|
kind: "property_changed";
|
|
3957
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3958
4172
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4173
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3959
4174
|
} | {
|
|
3960
4175
|
name: string;
|
|
3961
4176
|
kind: "event";
|
|
3962
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3963
4177
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4178
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3964
4179
|
} | {
|
|
3965
4180
|
kind: "manual";
|
|
3966
4181
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3974,8 +4189,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3974
4189
|
at: string;
|
|
3975
4190
|
kind: "exact_date";
|
|
3976
4191
|
on: string;
|
|
3977
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3978
4192
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4193
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3979
4194
|
} | {
|
|
3980
4195
|
kind: "segment_entered";
|
|
3981
4196
|
segment_id: string;
|
|
@@ -3983,21 +4198,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3983
4198
|
} | {
|
|
3984
4199
|
kind: "link_clicked";
|
|
3985
4200
|
mailing_id: string;
|
|
3986
|
-
url?: string | undefined;
|
|
3987
4201
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4202
|
+
url?: string | undefined;
|
|
3988
4203
|
})[];
|
|
3989
4204
|
entry: string | null;
|
|
3990
4205
|
steps: Record<string, {
|
|
3991
4206
|
subject: string;
|
|
3992
4207
|
kind: "email";
|
|
3993
4208
|
next: string | null;
|
|
4209
|
+
preheader?: string | null | undefined;
|
|
3994
4210
|
document?: zod.objectOutputType<{
|
|
3995
4211
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3996
4212
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3997
4213
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3998
4214
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
4215
|
+
locale?: string | null | undefined;
|
|
4216
|
+
languages?: Record<string, {
|
|
4217
|
+
subject: string;
|
|
4218
|
+
preheader: string | null;
|
|
4219
|
+
document: {
|
|
4220
|
+
version: "1.0" | "1.1";
|
|
4221
|
+
metadata: Record<string, unknown>;
|
|
4222
|
+
sections: Record<string, unknown>[];
|
|
4223
|
+
} & {
|
|
4224
|
+
[k: string]: unknown;
|
|
4225
|
+
};
|
|
4226
|
+
}> | null | undefined;
|
|
3999
4227
|
template_id?: string | null | undefined;
|
|
4000
|
-
preheader?: string | null | undefined;
|
|
4001
4228
|
label?: string | null | undefined;
|
|
4002
4229
|
} | {
|
|
4003
4230
|
kind: "delay";
|
|
@@ -4109,13 +4336,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4109
4336
|
} | {
|
|
4110
4337
|
key: string;
|
|
4111
4338
|
kind: "property_changed";
|
|
4112
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
4113
4339
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4340
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
4114
4341
|
} | {
|
|
4115
4342
|
name: string;
|
|
4116
4343
|
kind: "event";
|
|
4117
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4118
4344
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4345
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4119
4346
|
} | {
|
|
4120
4347
|
kind: "manual";
|
|
4121
4348
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -4129,8 +4356,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4129
4356
|
at: string;
|
|
4130
4357
|
kind: "exact_date";
|
|
4131
4358
|
on: string;
|
|
4132
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4133
4359
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4360
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4134
4361
|
} | {
|
|
4135
4362
|
kind: "segment_entered";
|
|
4136
4363
|
segment_id: string;
|
|
@@ -4138,21 +4365,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4138
4365
|
} | {
|
|
4139
4366
|
kind: "link_clicked";
|
|
4140
4367
|
mailing_id: string;
|
|
4141
|
-
url?: string | undefined;
|
|
4142
4368
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4369
|
+
url?: string | undefined;
|
|
4143
4370
|
})[];
|
|
4144
4371
|
entry: string | null;
|
|
4145
4372
|
steps: Record<string, {
|
|
4146
4373
|
subject: string;
|
|
4147
4374
|
kind: "email";
|
|
4148
4375
|
next: string | null;
|
|
4376
|
+
preheader?: string | null | undefined;
|
|
4149
4377
|
document?: zod.objectOutputType<{
|
|
4150
4378
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
4151
4379
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
4152
4380
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
4153
4381
|
}, zod.ZodTypeAny, "passthrough"> | null | undefined;
|
|
4382
|
+
locale?: string | null | undefined;
|
|
4383
|
+
languages?: Record<string, {
|
|
4384
|
+
subject: string;
|
|
4385
|
+
preheader: string | null;
|
|
4386
|
+
document: {
|
|
4387
|
+
version: "1.0" | "1.1";
|
|
4388
|
+
metadata: Record<string, unknown>;
|
|
4389
|
+
sections: Record<string, unknown>[];
|
|
4390
|
+
} & {
|
|
4391
|
+
[k: string]: unknown;
|
|
4392
|
+
};
|
|
4393
|
+
}> | null | undefined;
|
|
4154
4394
|
template_id?: string | null | undefined;
|
|
4155
|
-
preheader?: string | null | undefined;
|
|
4156
4395
|
label?: string | null | undefined;
|
|
4157
4396
|
} | {
|
|
4158
4397
|
kind: "delay";
|