@marlinjai/mail-sdk 0.3.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 +412 -169
- package/dist/index.d.ts +412 -169
- package/dist/index.js +6 -2
- package/dist/index.mjs +6 -2
- 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
|
}>;
|
|
@@ -354,7 +354,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
354
354
|
id: string;
|
|
355
355
|
details: Record<string, unknown>;
|
|
356
356
|
created_at: string;
|
|
357
|
-
action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "topic.created" | "topic.updated" | "template.created" | "template.updated" | "template.deleted" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
|
|
357
|
+
action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
|
|
358
358
|
actor: {
|
|
359
359
|
type: "member";
|
|
360
360
|
subject: string;
|
|
@@ -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,29 @@ 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;
|
|
1246
|
+
}>;
|
|
1247
|
+
/** Refused with `conflict` while a mailing or an automation step still uses the topic. */
|
|
1248
|
+
delete: (id: string, opts?: RequestOpts) => Promise<{
|
|
1249
|
+
ok: true;
|
|
1152
1250
|
}>;
|
|
1153
1251
|
};
|
|
1154
1252
|
contacts: {
|
|
@@ -1156,13 +1254,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1156
1254
|
created: boolean;
|
|
1157
1255
|
contact: {
|
|
1158
1256
|
id: string;
|
|
1257
|
+
locale: string | null;
|
|
1159
1258
|
created_at: string;
|
|
1160
1259
|
updated_at: string;
|
|
1161
1260
|
email: string;
|
|
1162
1261
|
external_id: string | null;
|
|
1163
1262
|
first_name: string | null;
|
|
1164
1263
|
last_name: string | null;
|
|
1165
|
-
locale: string | null;
|
|
1166
1264
|
topics: string[];
|
|
1167
1265
|
tags: string[];
|
|
1168
1266
|
timezone: string | null;
|
|
@@ -1172,13 +1270,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1172
1270
|
list: (query?: RouteQuery<"contacts.list">, opts?: RequestOpts) => Promise<{
|
|
1173
1271
|
data: {
|
|
1174
1272
|
id: string;
|
|
1273
|
+
locale: string | null;
|
|
1175
1274
|
created_at: string;
|
|
1176
1275
|
updated_at: string;
|
|
1177
1276
|
email: string;
|
|
1178
1277
|
external_id: string | null;
|
|
1179
1278
|
first_name: string | null;
|
|
1180
1279
|
last_name: string | null;
|
|
1181
|
-
locale: string | null;
|
|
1182
1280
|
topics: string[];
|
|
1183
1281
|
tags: string[];
|
|
1184
1282
|
timezone: string | null;
|
|
@@ -1188,13 +1286,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1188
1286
|
}>;
|
|
1189
1287
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
1190
1288
|
id: string;
|
|
1289
|
+
locale: string | null;
|
|
1191
1290
|
created_at: string;
|
|
1192
1291
|
updated_at: string;
|
|
1193
1292
|
email: string;
|
|
1194
1293
|
external_id: string | null;
|
|
1195
1294
|
first_name: string | null;
|
|
1196
1295
|
last_name: string | null;
|
|
1197
|
-
locale: string | null;
|
|
1198
1296
|
topics: string[];
|
|
1199
1297
|
tags: string[];
|
|
1200
1298
|
timezone: string | null;
|
|
@@ -1210,8 +1308,9 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1210
1308
|
data: {
|
|
1211
1309
|
id: string;
|
|
1212
1310
|
error: string | null;
|
|
1213
|
-
created_at: string;
|
|
1214
1311
|
subject: string;
|
|
1312
|
+
locale: string | null;
|
|
1313
|
+
created_at: string;
|
|
1215
1314
|
provider_id: string;
|
|
1216
1315
|
to: string;
|
|
1217
1316
|
provider_message_id: string | null;
|
|
@@ -1231,7 +1330,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1231
1330
|
id: string;
|
|
1232
1331
|
version: number;
|
|
1233
1332
|
automation: {
|
|
1234
|
-
status: "
|
|
1333
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
1235
1334
|
id: string;
|
|
1236
1335
|
name: string;
|
|
1237
1336
|
};
|
|
@@ -1282,14 +1381,16 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1282
1381
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1283
1382
|
id: string;
|
|
1284
1383
|
metadata: Record<string, string>;
|
|
1384
|
+
subject: string;
|
|
1385
|
+
preheader: string | null;
|
|
1285
1386
|
name: string | null;
|
|
1387
|
+
locale: string;
|
|
1286
1388
|
created_at: string;
|
|
1287
1389
|
updated_at: string;
|
|
1288
1390
|
template_id: string | null;
|
|
1289
|
-
subject: string;
|
|
1290
1391
|
kind: "broadcast" | "automation" | "notification";
|
|
1291
|
-
|
|
1292
|
-
topic: string;
|
|
1392
|
+
send_locale: string | null;
|
|
1393
|
+
topic: string | null;
|
|
1293
1394
|
provider_id: string;
|
|
1294
1395
|
counts: {
|
|
1295
1396
|
sending: number;
|
|
@@ -1303,8 +1404,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1303
1404
|
ab_test: {
|
|
1304
1405
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1305
1406
|
variants: {
|
|
1306
|
-
key: string;
|
|
1307
1407
|
subject: string | null;
|
|
1408
|
+
key: string;
|
|
1308
1409
|
has_document: boolean;
|
|
1309
1410
|
}[];
|
|
1310
1411
|
test_fraction: number;
|
|
@@ -1325,7 +1426,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1325
1426
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1326
1427
|
id: string;
|
|
1327
1428
|
metadata: Record<string, string>;
|
|
1328
|
-
|
|
1429
|
+
subject: string;
|
|
1430
|
+
preheader: string | null;
|
|
1329
1431
|
document: {
|
|
1330
1432
|
version: "1.0" | "1.1";
|
|
1331
1433
|
metadata: Record<string, unknown>;
|
|
@@ -1333,13 +1435,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1333
1435
|
} & {
|
|
1334
1436
|
[k: string]: unknown;
|
|
1335
1437
|
};
|
|
1438
|
+
name: string | null;
|
|
1439
|
+
locale: string;
|
|
1336
1440
|
created_at: string;
|
|
1337
1441
|
updated_at: string;
|
|
1338
1442
|
template_id: string | null;
|
|
1339
|
-
subject: string;
|
|
1340
1443
|
kind: "broadcast" | "automation" | "notification";
|
|
1341
|
-
|
|
1342
|
-
topic: string;
|
|
1444
|
+
send_locale: string | null;
|
|
1445
|
+
topic: string | null;
|
|
1343
1446
|
provider_id: string;
|
|
1344
1447
|
counts: {
|
|
1345
1448
|
sending: number;
|
|
@@ -1353,8 +1456,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1353
1456
|
ab_test: {
|
|
1354
1457
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1355
1458
|
variants: {
|
|
1356
|
-
key: string;
|
|
1357
1459
|
subject: string | null;
|
|
1460
|
+
key: string;
|
|
1358
1461
|
has_document: boolean;
|
|
1359
1462
|
}[];
|
|
1360
1463
|
test_fraction: number;
|
|
@@ -1373,7 +1476,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1373
1476
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1374
1477
|
id: string;
|
|
1375
1478
|
metadata: Record<string, string>;
|
|
1376
|
-
|
|
1479
|
+
subject: string;
|
|
1480
|
+
preheader: string | null;
|
|
1377
1481
|
document: {
|
|
1378
1482
|
version: "1.0" | "1.1";
|
|
1379
1483
|
metadata: Record<string, unknown>;
|
|
@@ -1381,13 +1485,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1381
1485
|
} & {
|
|
1382
1486
|
[k: string]: unknown;
|
|
1383
1487
|
};
|
|
1488
|
+
name: string | null;
|
|
1489
|
+
locale: string;
|
|
1384
1490
|
created_at: string;
|
|
1385
1491
|
updated_at: string;
|
|
1386
1492
|
template_id: string | null;
|
|
1387
|
-
subject: string;
|
|
1388
1493
|
kind: "broadcast" | "automation" | "notification";
|
|
1389
|
-
|
|
1390
|
-
topic: string;
|
|
1494
|
+
send_locale: string | null;
|
|
1495
|
+
topic: string | null;
|
|
1391
1496
|
provider_id: string;
|
|
1392
1497
|
counts: {
|
|
1393
1498
|
sending: number;
|
|
@@ -1401,8 +1506,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1401
1506
|
ab_test: {
|
|
1402
1507
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1403
1508
|
variants: {
|
|
1404
|
-
key: string;
|
|
1405
1509
|
subject: string | null;
|
|
1510
|
+
key: string;
|
|
1406
1511
|
has_document: boolean;
|
|
1407
1512
|
}[];
|
|
1408
1513
|
test_fraction: number;
|
|
@@ -1423,7 +1528,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1423
1528
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1424
1529
|
id: string;
|
|
1425
1530
|
metadata: Record<string, string>;
|
|
1426
|
-
|
|
1531
|
+
subject: string;
|
|
1532
|
+
preheader: string | null;
|
|
1427
1533
|
document: {
|
|
1428
1534
|
version: "1.0" | "1.1";
|
|
1429
1535
|
metadata: Record<string, unknown>;
|
|
@@ -1431,13 +1537,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1431
1537
|
} & {
|
|
1432
1538
|
[k: string]: unknown;
|
|
1433
1539
|
};
|
|
1540
|
+
name: string | null;
|
|
1541
|
+
locale: string;
|
|
1434
1542
|
created_at: string;
|
|
1435
1543
|
updated_at: string;
|
|
1436
1544
|
template_id: string | null;
|
|
1437
|
-
subject: string;
|
|
1438
1545
|
kind: "broadcast" | "automation" | "notification";
|
|
1439
|
-
|
|
1440
|
-
topic: string;
|
|
1546
|
+
send_locale: string | null;
|
|
1547
|
+
topic: string | null;
|
|
1441
1548
|
provider_id: string;
|
|
1442
1549
|
counts: {
|
|
1443
1550
|
sending: number;
|
|
@@ -1451,8 +1558,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1451
1558
|
ab_test: {
|
|
1452
1559
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1453
1560
|
variants: {
|
|
1454
|
-
key: string;
|
|
1455
1561
|
subject: string | null;
|
|
1562
|
+
key: string;
|
|
1456
1563
|
has_document: boolean;
|
|
1457
1564
|
}[];
|
|
1458
1565
|
test_fraction: number;
|
|
@@ -1479,9 +1586,9 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1479
1586
|
data: {
|
|
1480
1587
|
status: "sending" | "sent" | "queued" | "failed" | "skipped";
|
|
1481
1588
|
id: string;
|
|
1589
|
+
merge: Record<string, _marlinjai_mail_contract.JsonValue>;
|
|
1482
1590
|
created_at: string;
|
|
1483
1591
|
updated_at: string;
|
|
1484
|
-
merge: Record<string, _marlinjai_mail_contract.JsonValue>;
|
|
1485
1592
|
message_id: string | null;
|
|
1486
1593
|
mailing_id: string;
|
|
1487
1594
|
contact_id: string | null;
|
|
@@ -1500,7 +1607,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1500
1607
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1501
1608
|
id: string;
|
|
1502
1609
|
metadata: Record<string, string>;
|
|
1503
|
-
|
|
1610
|
+
subject: string;
|
|
1611
|
+
preheader: string | null;
|
|
1504
1612
|
document: {
|
|
1505
1613
|
version: "1.0" | "1.1";
|
|
1506
1614
|
metadata: Record<string, unknown>;
|
|
@@ -1508,13 +1616,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1508
1616
|
} & {
|
|
1509
1617
|
[k: string]: unknown;
|
|
1510
1618
|
};
|
|
1619
|
+
name: string | null;
|
|
1620
|
+
locale: string;
|
|
1511
1621
|
created_at: string;
|
|
1512
1622
|
updated_at: string;
|
|
1513
1623
|
template_id: string | null;
|
|
1514
|
-
subject: string;
|
|
1515
1624
|
kind: "broadcast" | "automation" | "notification";
|
|
1516
|
-
|
|
1517
|
-
topic: string;
|
|
1625
|
+
send_locale: string | null;
|
|
1626
|
+
topic: string | null;
|
|
1518
1627
|
provider_id: string;
|
|
1519
1628
|
counts: {
|
|
1520
1629
|
sending: number;
|
|
@@ -1528,8 +1637,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1528
1637
|
ab_test: {
|
|
1529
1638
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1530
1639
|
variants: {
|
|
1531
|
-
key: string;
|
|
1532
1640
|
subject: string | null;
|
|
1641
|
+
key: string;
|
|
1533
1642
|
has_document: boolean;
|
|
1534
1643
|
}[];
|
|
1535
1644
|
test_fraction: number;
|
|
@@ -1548,7 +1657,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1548
1657
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1549
1658
|
id: string;
|
|
1550
1659
|
metadata: Record<string, string>;
|
|
1551
|
-
|
|
1660
|
+
subject: string;
|
|
1661
|
+
preheader: string | null;
|
|
1552
1662
|
document: {
|
|
1553
1663
|
version: "1.0" | "1.1";
|
|
1554
1664
|
metadata: Record<string, unknown>;
|
|
@@ -1556,13 +1666,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1556
1666
|
} & {
|
|
1557
1667
|
[k: string]: unknown;
|
|
1558
1668
|
};
|
|
1669
|
+
name: string | null;
|
|
1670
|
+
locale: string;
|
|
1559
1671
|
created_at: string;
|
|
1560
1672
|
updated_at: string;
|
|
1561
1673
|
template_id: string | null;
|
|
1562
|
-
subject: string;
|
|
1563
1674
|
kind: "broadcast" | "automation" | "notification";
|
|
1564
|
-
|
|
1565
|
-
topic: string;
|
|
1675
|
+
send_locale: string | null;
|
|
1676
|
+
topic: string | null;
|
|
1566
1677
|
provider_id: string;
|
|
1567
1678
|
counts: {
|
|
1568
1679
|
sending: number;
|
|
@@ -1576,8 +1687,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1576
1687
|
ab_test: {
|
|
1577
1688
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1578
1689
|
variants: {
|
|
1579
|
-
key: string;
|
|
1580
1690
|
subject: string | null;
|
|
1691
|
+
key: string;
|
|
1581
1692
|
has_document: boolean;
|
|
1582
1693
|
}[];
|
|
1583
1694
|
test_fraction: number;
|
|
@@ -1596,7 +1707,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1596
1707
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1597
1708
|
id: string;
|
|
1598
1709
|
metadata: Record<string, string>;
|
|
1599
|
-
|
|
1710
|
+
subject: string;
|
|
1711
|
+
preheader: string | null;
|
|
1600
1712
|
document: {
|
|
1601
1713
|
version: "1.0" | "1.1";
|
|
1602
1714
|
metadata: Record<string, unknown>;
|
|
@@ -1604,13 +1716,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1604
1716
|
} & {
|
|
1605
1717
|
[k: string]: unknown;
|
|
1606
1718
|
};
|
|
1719
|
+
name: string | null;
|
|
1720
|
+
locale: string;
|
|
1607
1721
|
created_at: string;
|
|
1608
1722
|
updated_at: string;
|
|
1609
1723
|
template_id: string | null;
|
|
1610
|
-
subject: string;
|
|
1611
1724
|
kind: "broadcast" | "automation" | "notification";
|
|
1612
|
-
|
|
1613
|
-
topic: string;
|
|
1725
|
+
send_locale: string | null;
|
|
1726
|
+
topic: string | null;
|
|
1614
1727
|
provider_id: string;
|
|
1615
1728
|
counts: {
|
|
1616
1729
|
sending: number;
|
|
@@ -1624,8 +1737,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1624
1737
|
ab_test: {
|
|
1625
1738
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1626
1739
|
variants: {
|
|
1627
|
-
key: string;
|
|
1628
1740
|
subject: string | null;
|
|
1741
|
+
key: string;
|
|
1629
1742
|
has_document: boolean;
|
|
1630
1743
|
}[];
|
|
1631
1744
|
test_fraction: number;
|
|
@@ -1644,7 +1757,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1644
1757
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1645
1758
|
id: string;
|
|
1646
1759
|
metadata: Record<string, string>;
|
|
1647
|
-
|
|
1760
|
+
subject: string;
|
|
1761
|
+
preheader: string | null;
|
|
1648
1762
|
document: {
|
|
1649
1763
|
version: "1.0" | "1.1";
|
|
1650
1764
|
metadata: Record<string, unknown>;
|
|
@@ -1652,13 +1766,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1652
1766
|
} & {
|
|
1653
1767
|
[k: string]: unknown;
|
|
1654
1768
|
};
|
|
1769
|
+
name: string | null;
|
|
1770
|
+
locale: string;
|
|
1655
1771
|
created_at: string;
|
|
1656
1772
|
updated_at: string;
|
|
1657
1773
|
template_id: string | null;
|
|
1658
|
-
subject: string;
|
|
1659
1774
|
kind: "broadcast" | "automation" | "notification";
|
|
1660
|
-
|
|
1661
|
-
topic: string;
|
|
1775
|
+
send_locale: string | null;
|
|
1776
|
+
topic: string | null;
|
|
1662
1777
|
provider_id: string;
|
|
1663
1778
|
counts: {
|
|
1664
1779
|
sending: number;
|
|
@@ -1672,8 +1787,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1672
1787
|
ab_test: {
|
|
1673
1788
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1674
1789
|
variants: {
|
|
1675
|
-
key: string;
|
|
1676
1790
|
subject: string | null;
|
|
1791
|
+
key: string;
|
|
1677
1792
|
has_document: boolean;
|
|
1678
1793
|
}[];
|
|
1679
1794
|
test_fraction: number;
|
|
@@ -1692,7 +1807,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1692
1807
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1693
1808
|
id: string;
|
|
1694
1809
|
metadata: Record<string, string>;
|
|
1695
|
-
|
|
1810
|
+
subject: string;
|
|
1811
|
+
preheader: string | null;
|
|
1696
1812
|
document: {
|
|
1697
1813
|
version: "1.0" | "1.1";
|
|
1698
1814
|
metadata: Record<string, unknown>;
|
|
@@ -1700,13 +1816,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1700
1816
|
} & {
|
|
1701
1817
|
[k: string]: unknown;
|
|
1702
1818
|
};
|
|
1819
|
+
name: string | null;
|
|
1820
|
+
locale: string;
|
|
1703
1821
|
created_at: string;
|
|
1704
1822
|
updated_at: string;
|
|
1705
1823
|
template_id: string | null;
|
|
1706
|
-
subject: string;
|
|
1707
1824
|
kind: "broadcast" | "automation" | "notification";
|
|
1708
|
-
|
|
1709
|
-
topic: string;
|
|
1825
|
+
send_locale: string | null;
|
|
1826
|
+
topic: string | null;
|
|
1710
1827
|
provider_id: string;
|
|
1711
1828
|
counts: {
|
|
1712
1829
|
sending: number;
|
|
@@ -1720,8 +1837,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1720
1837
|
ab_test: {
|
|
1721
1838
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1722
1839
|
variants: {
|
|
1723
|
-
key: string;
|
|
1724
1840
|
subject: string | null;
|
|
1841
|
+
key: string;
|
|
1725
1842
|
has_document: boolean;
|
|
1726
1843
|
}[];
|
|
1727
1844
|
test_fraction: number;
|
|
@@ -1740,7 +1857,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1740
1857
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1741
1858
|
id: string;
|
|
1742
1859
|
metadata: Record<string, string>;
|
|
1743
|
-
|
|
1860
|
+
subject: string;
|
|
1861
|
+
preheader: string | null;
|
|
1744
1862
|
document: {
|
|
1745
1863
|
version: "1.0" | "1.1";
|
|
1746
1864
|
metadata: Record<string, unknown>;
|
|
@@ -1748,13 +1866,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1748
1866
|
} & {
|
|
1749
1867
|
[k: string]: unknown;
|
|
1750
1868
|
};
|
|
1869
|
+
name: string | null;
|
|
1870
|
+
locale: string;
|
|
1751
1871
|
created_at: string;
|
|
1752
1872
|
updated_at: string;
|
|
1753
1873
|
template_id: string | null;
|
|
1754
|
-
subject: string;
|
|
1755
1874
|
kind: "broadcast" | "automation" | "notification";
|
|
1756
|
-
|
|
1757
|
-
topic: string;
|
|
1875
|
+
send_locale: string | null;
|
|
1876
|
+
topic: string | null;
|
|
1758
1877
|
provider_id: string;
|
|
1759
1878
|
counts: {
|
|
1760
1879
|
sending: number;
|
|
@@ -1768,8 +1887,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1768
1887
|
ab_test: {
|
|
1769
1888
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1770
1889
|
variants: {
|
|
1771
|
-
key: string;
|
|
1772
1890
|
subject: string | null;
|
|
1891
|
+
key: string;
|
|
1773
1892
|
has_document: boolean;
|
|
1774
1893
|
}[];
|
|
1775
1894
|
test_fraction: number;
|
|
@@ -1796,7 +1915,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1796
1915
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1797
1916
|
id: string;
|
|
1798
1917
|
metadata: Record<string, string>;
|
|
1799
|
-
|
|
1918
|
+
subject: string;
|
|
1919
|
+
preheader: string | null;
|
|
1800
1920
|
document: {
|
|
1801
1921
|
version: "1.0" | "1.1";
|
|
1802
1922
|
metadata: Record<string, unknown>;
|
|
@@ -1804,13 +1924,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1804
1924
|
} & {
|
|
1805
1925
|
[k: string]: unknown;
|
|
1806
1926
|
};
|
|
1927
|
+
name: string | null;
|
|
1928
|
+
locale: string;
|
|
1807
1929
|
created_at: string;
|
|
1808
1930
|
updated_at: string;
|
|
1809
1931
|
template_id: string | null;
|
|
1810
|
-
subject: string;
|
|
1811
1932
|
kind: "broadcast" | "automation" | "notification";
|
|
1812
|
-
|
|
1813
|
-
topic: string;
|
|
1933
|
+
send_locale: string | null;
|
|
1934
|
+
topic: string | null;
|
|
1814
1935
|
provider_id: string;
|
|
1815
1936
|
counts: {
|
|
1816
1937
|
sending: number;
|
|
@@ -1824,8 +1945,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1824
1945
|
ab_test: {
|
|
1825
1946
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1826
1947
|
variants: {
|
|
1827
|
-
key: string;
|
|
1828
1948
|
subject: string | null;
|
|
1949
|
+
key: string;
|
|
1829
1950
|
has_document: boolean;
|
|
1830
1951
|
}[];
|
|
1831
1952
|
test_fraction: number;
|
|
@@ -1844,7 +1965,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1844
1965
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1845
1966
|
id: string;
|
|
1846
1967
|
metadata: Record<string, string>;
|
|
1847
|
-
|
|
1968
|
+
subject: string;
|
|
1969
|
+
preheader: string | null;
|
|
1848
1970
|
document: {
|
|
1849
1971
|
version: "1.0" | "1.1";
|
|
1850
1972
|
metadata: Record<string, unknown>;
|
|
@@ -1852,13 +1974,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1852
1974
|
} & {
|
|
1853
1975
|
[k: string]: unknown;
|
|
1854
1976
|
};
|
|
1977
|
+
name: string | null;
|
|
1978
|
+
locale: string;
|
|
1855
1979
|
created_at: string;
|
|
1856
1980
|
updated_at: string;
|
|
1857
1981
|
template_id: string | null;
|
|
1858
|
-
subject: string;
|
|
1859
1982
|
kind: "broadcast" | "automation" | "notification";
|
|
1860
|
-
|
|
1861
|
-
topic: string;
|
|
1983
|
+
send_locale: string | null;
|
|
1984
|
+
topic: string | null;
|
|
1862
1985
|
provider_id: string;
|
|
1863
1986
|
counts: {
|
|
1864
1987
|
sending: number;
|
|
@@ -1872,8 +1995,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1872
1995
|
ab_test: {
|
|
1873
1996
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1874
1997
|
variants: {
|
|
1875
|
-
key: string;
|
|
1876
1998
|
subject: string | null;
|
|
1999
|
+
key: string;
|
|
1877
2000
|
has_document: boolean;
|
|
1878
2001
|
}[];
|
|
1879
2002
|
test_fraction: number;
|
|
@@ -1892,7 +2015,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1892
2015
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1893
2016
|
id: string;
|
|
1894
2017
|
metadata: Record<string, string>;
|
|
1895
|
-
|
|
2018
|
+
subject: string;
|
|
2019
|
+
preheader: string | null;
|
|
1896
2020
|
document: {
|
|
1897
2021
|
version: "1.0" | "1.1";
|
|
1898
2022
|
metadata: Record<string, unknown>;
|
|
@@ -1900,13 +2024,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1900
2024
|
} & {
|
|
1901
2025
|
[k: string]: unknown;
|
|
1902
2026
|
};
|
|
2027
|
+
name: string | null;
|
|
2028
|
+
locale: string;
|
|
1903
2029
|
created_at: string;
|
|
1904
2030
|
updated_at: string;
|
|
1905
2031
|
template_id: string | null;
|
|
1906
|
-
subject: string;
|
|
1907
2032
|
kind: "broadcast" | "automation" | "notification";
|
|
1908
|
-
|
|
1909
|
-
topic: string;
|
|
2033
|
+
send_locale: string | null;
|
|
2034
|
+
topic: string | null;
|
|
1910
2035
|
provider_id: string;
|
|
1911
2036
|
counts: {
|
|
1912
2037
|
sending: number;
|
|
@@ -1920,8 +2045,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1920
2045
|
ab_test: {
|
|
1921
2046
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1922
2047
|
variants: {
|
|
1923
|
-
key: string;
|
|
1924
2048
|
subject: string | null;
|
|
2049
|
+
key: string;
|
|
1925
2050
|
has_document: boolean;
|
|
1926
2051
|
}[];
|
|
1927
2052
|
test_fraction: number;
|
|
@@ -1940,7 +2065,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1940
2065
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1941
2066
|
id: string;
|
|
1942
2067
|
metadata: Record<string, string>;
|
|
1943
|
-
|
|
2068
|
+
subject: string;
|
|
2069
|
+
preheader: string | null;
|
|
1944
2070
|
document: {
|
|
1945
2071
|
version: "1.0" | "1.1";
|
|
1946
2072
|
metadata: Record<string, unknown>;
|
|
@@ -1948,13 +2074,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1948
2074
|
} & {
|
|
1949
2075
|
[k: string]: unknown;
|
|
1950
2076
|
};
|
|
2077
|
+
name: string | null;
|
|
2078
|
+
locale: string;
|
|
1951
2079
|
created_at: string;
|
|
1952
2080
|
updated_at: string;
|
|
1953
2081
|
template_id: string | null;
|
|
1954
|
-
subject: string;
|
|
1955
2082
|
kind: "broadcast" | "automation" | "notification";
|
|
1956
|
-
|
|
1957
|
-
topic: string;
|
|
2083
|
+
send_locale: string | null;
|
|
2084
|
+
topic: string | null;
|
|
1958
2085
|
provider_id: string;
|
|
1959
2086
|
counts: {
|
|
1960
2087
|
sending: number;
|
|
@@ -1968,8 +2095,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1968
2095
|
ab_test: {
|
|
1969
2096
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
1970
2097
|
variants: {
|
|
1971
|
-
key: string;
|
|
1972
2098
|
subject: string | null;
|
|
2099
|
+
key: string;
|
|
1973
2100
|
has_document: boolean;
|
|
1974
2101
|
}[];
|
|
1975
2102
|
test_fraction: number;
|
|
@@ -1988,7 +2115,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1988
2115
|
status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
|
|
1989
2116
|
id: string;
|
|
1990
2117
|
metadata: Record<string, string>;
|
|
1991
|
-
|
|
2118
|
+
subject: string;
|
|
2119
|
+
preheader: string | null;
|
|
1992
2120
|
document: {
|
|
1993
2121
|
version: "1.0" | "1.1";
|
|
1994
2122
|
metadata: Record<string, unknown>;
|
|
@@ -1996,13 +2124,14 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
1996
2124
|
} & {
|
|
1997
2125
|
[k: string]: unknown;
|
|
1998
2126
|
};
|
|
2127
|
+
name: string | null;
|
|
2128
|
+
locale: string;
|
|
1999
2129
|
created_at: string;
|
|
2000
2130
|
updated_at: string;
|
|
2001
2131
|
template_id: string | null;
|
|
2002
|
-
subject: string;
|
|
2003
2132
|
kind: "broadcast" | "automation" | "notification";
|
|
2004
|
-
|
|
2005
|
-
topic: string;
|
|
2133
|
+
send_locale: string | null;
|
|
2134
|
+
topic: string | null;
|
|
2006
2135
|
provider_id: string;
|
|
2007
2136
|
counts: {
|
|
2008
2137
|
sending: number;
|
|
@@ -2016,8 +2145,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2016
2145
|
ab_test: {
|
|
2017
2146
|
status: "pending" | "testing" | "awaiting_pick" | "decided";
|
|
2018
2147
|
variants: {
|
|
2019
|
-
key: string;
|
|
2020
2148
|
subject: string | null;
|
|
2149
|
+
key: string;
|
|
2021
2150
|
has_document: boolean;
|
|
2022
2151
|
}[];
|
|
2023
2152
|
test_fraction: number;
|
|
@@ -2064,14 +2193,31 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2064
2193
|
unique_clicks: number;
|
|
2065
2194
|
}[] | null;
|
|
2066
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
|
+
}>;
|
|
2067
2212
|
};
|
|
2068
2213
|
messages: {
|
|
2069
2214
|
list: (query?: RouteQuery<"messages.list">, opts?: RequestOpts) => Promise<{
|
|
2070
2215
|
data: {
|
|
2071
2216
|
id: string;
|
|
2072
2217
|
error: string | null;
|
|
2073
|
-
created_at: string;
|
|
2074
2218
|
subject: string;
|
|
2219
|
+
locale: string | null;
|
|
2220
|
+
created_at: string;
|
|
2075
2221
|
provider_id: string;
|
|
2076
2222
|
to: string;
|
|
2077
2223
|
provider_message_id: string | null;
|
|
@@ -2087,9 +2233,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2087
2233
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
2088
2234
|
id: string;
|
|
2089
2235
|
error: string | null;
|
|
2236
|
+
subject: string;
|
|
2237
|
+
locale: string | null;
|
|
2090
2238
|
created_at: string;
|
|
2091
2239
|
html: string;
|
|
2092
|
-
subject: string;
|
|
2093
2240
|
provider_id: string;
|
|
2094
2241
|
to: string;
|
|
2095
2242
|
provider_message_id: string | null;
|
|
@@ -2279,15 +2426,15 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2279
2426
|
id: string;
|
|
2280
2427
|
version: number;
|
|
2281
2428
|
name: string;
|
|
2429
|
+
translations: Record<string, {
|
|
2430
|
+
title: string;
|
|
2431
|
+
consent_text: string;
|
|
2432
|
+
}>;
|
|
2282
2433
|
created_at: string;
|
|
2283
2434
|
updated_at: string;
|
|
2284
2435
|
provider_id: string;
|
|
2285
2436
|
title: string;
|
|
2286
2437
|
consent_text: string;
|
|
2287
|
-
translations: Record<string, {
|
|
2288
|
-
title: string;
|
|
2289
|
-
consent_text: string;
|
|
2290
|
-
}>;
|
|
2291
2438
|
topics: string[];
|
|
2292
2439
|
tags: string[];
|
|
2293
2440
|
fields: ("first_name" | "last_name")[];
|
|
@@ -2302,15 +2449,15 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2302
2449
|
id: string;
|
|
2303
2450
|
version: number;
|
|
2304
2451
|
name: string;
|
|
2452
|
+
translations: Record<string, {
|
|
2453
|
+
title: string;
|
|
2454
|
+
consent_text: string;
|
|
2455
|
+
}>;
|
|
2305
2456
|
created_at: string;
|
|
2306
2457
|
updated_at: string;
|
|
2307
2458
|
provider_id: string;
|
|
2308
2459
|
title: string;
|
|
2309
2460
|
consent_text: string;
|
|
2310
|
-
translations: Record<string, {
|
|
2311
|
-
title: string;
|
|
2312
|
-
consent_text: string;
|
|
2313
|
-
}>;
|
|
2314
2461
|
topics: string[];
|
|
2315
2462
|
tags: string[];
|
|
2316
2463
|
fields: ("first_name" | "last_name")[];
|
|
@@ -2323,15 +2470,15 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2323
2470
|
id: string;
|
|
2324
2471
|
version: number;
|
|
2325
2472
|
name: string;
|
|
2473
|
+
translations: Record<string, {
|
|
2474
|
+
title: string;
|
|
2475
|
+
consent_text: string;
|
|
2476
|
+
}>;
|
|
2326
2477
|
created_at: string;
|
|
2327
2478
|
updated_at: string;
|
|
2328
2479
|
provider_id: string;
|
|
2329
2480
|
title: string;
|
|
2330
2481
|
consent_text: string;
|
|
2331
|
-
translations: Record<string, {
|
|
2332
|
-
title: string;
|
|
2333
|
-
consent_text: string;
|
|
2334
|
-
}>;
|
|
2335
2482
|
topics: string[];
|
|
2336
2483
|
tags: string[];
|
|
2337
2484
|
fields: ("first_name" | "last_name")[];
|
|
@@ -2350,15 +2497,15 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2350
2497
|
id: string;
|
|
2351
2498
|
version: number;
|
|
2352
2499
|
name: string;
|
|
2500
|
+
translations: Record<string, {
|
|
2501
|
+
title: string;
|
|
2502
|
+
consent_text: string;
|
|
2503
|
+
}>;
|
|
2353
2504
|
created_at: string;
|
|
2354
2505
|
updated_at: string;
|
|
2355
2506
|
provider_id: string;
|
|
2356
2507
|
title: string;
|
|
2357
2508
|
consent_text: string;
|
|
2358
|
-
translations: Record<string, {
|
|
2359
|
-
title: string;
|
|
2360
|
-
consent_text: string;
|
|
2361
|
-
}>;
|
|
2362
2509
|
topics: string[];
|
|
2363
2510
|
tags: string[];
|
|
2364
2511
|
fields: ("first_name" | "last_name")[];
|
|
@@ -2654,8 +2801,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2654
2801
|
data: {
|
|
2655
2802
|
id: "free" | "starter" | "growth" | "design_partner";
|
|
2656
2803
|
name: string;
|
|
2657
|
-
monthly_price_cents: number | null;
|
|
2658
2804
|
currency: string;
|
|
2805
|
+
monthly_price_cents: number | null;
|
|
2659
2806
|
limits: {
|
|
2660
2807
|
monthly_messages: number | null;
|
|
2661
2808
|
contacts: number | null;
|
|
@@ -2708,7 +2855,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2708
2855
|
automations: {
|
|
2709
2856
|
list: (query?: RouteQuery<"automations.list">, opts?: RequestOpts) => Promise<{
|
|
2710
2857
|
data: {
|
|
2711
|
-
status: "
|
|
2858
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
2712
2859
|
id: string;
|
|
2713
2860
|
name: string;
|
|
2714
2861
|
created_at: string;
|
|
@@ -2739,7 +2886,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2739
2886
|
next_cursor: string | null;
|
|
2740
2887
|
}>;
|
|
2741
2888
|
create: (body: RouteBody<"automations.create">, opts?: RequestOpts) => Promise<{
|
|
2742
|
-
status: "
|
|
2889
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
2743
2890
|
id: string;
|
|
2744
2891
|
name: string;
|
|
2745
2892
|
created_at: string;
|
|
@@ -2782,13 +2929,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2782
2929
|
} | {
|
|
2783
2930
|
key: string;
|
|
2784
2931
|
kind: "property_changed";
|
|
2785
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
2786
2932
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2933
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
2787
2934
|
} | {
|
|
2788
2935
|
name: string;
|
|
2789
2936
|
kind: "event";
|
|
2790
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2791
2937
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2938
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2792
2939
|
} | {
|
|
2793
2940
|
kind: "manual";
|
|
2794
2941
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -2802,8 +2949,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2802
2949
|
at: string;
|
|
2803
2950
|
kind: "exact_date";
|
|
2804
2951
|
on: string;
|
|
2805
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2806
2952
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2953
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2807
2954
|
} | {
|
|
2808
2955
|
kind: "segment_entered";
|
|
2809
2956
|
segment_id: string;
|
|
@@ -2811,21 +2958,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2811
2958
|
} | {
|
|
2812
2959
|
kind: "link_clicked";
|
|
2813
2960
|
mailing_id: string;
|
|
2814
|
-
url?: string | undefined;
|
|
2815
2961
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2962
|
+
url?: string | undefined;
|
|
2816
2963
|
})[];
|
|
2817
2964
|
entry: string | null;
|
|
2818
2965
|
steps: Record<string, {
|
|
2819
2966
|
subject: string;
|
|
2820
2967
|
kind: "email";
|
|
2821
2968
|
next: string | null;
|
|
2969
|
+
preheader?: string | null | undefined;
|
|
2822
2970
|
document?: zod.objectOutputType<{
|
|
2823
2971
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
2824
2972
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
2825
2973
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
2826
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;
|
|
2827
2987
|
template_id?: string | null | undefined;
|
|
2828
|
-
preheader?: string | null | undefined;
|
|
2829
2988
|
label?: string | null | undefined;
|
|
2830
2989
|
} | {
|
|
2831
2990
|
kind: "delay";
|
|
@@ -2937,13 +3096,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2937
3096
|
} | {
|
|
2938
3097
|
key: string;
|
|
2939
3098
|
kind: "property_changed";
|
|
2940
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
2941
3099
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3100
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
2942
3101
|
} | {
|
|
2943
3102
|
name: string;
|
|
2944
3103
|
kind: "event";
|
|
2945
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2946
3104
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3105
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2947
3106
|
} | {
|
|
2948
3107
|
kind: "manual";
|
|
2949
3108
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -2957,8 +3116,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2957
3116
|
at: string;
|
|
2958
3117
|
kind: "exact_date";
|
|
2959
3118
|
on: string;
|
|
2960
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2961
3119
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3120
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
2962
3121
|
} | {
|
|
2963
3122
|
kind: "segment_entered";
|
|
2964
3123
|
segment_id: string;
|
|
@@ -2966,21 +3125,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
2966
3125
|
} | {
|
|
2967
3126
|
kind: "link_clicked";
|
|
2968
3127
|
mailing_id: string;
|
|
2969
|
-
url?: string | undefined;
|
|
2970
3128
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3129
|
+
url?: string | undefined;
|
|
2971
3130
|
})[];
|
|
2972
3131
|
entry: string | null;
|
|
2973
3132
|
steps: Record<string, {
|
|
2974
3133
|
subject: string;
|
|
2975
3134
|
kind: "email";
|
|
2976
3135
|
next: string | null;
|
|
3136
|
+
preheader?: string | null | undefined;
|
|
2977
3137
|
document?: zod.objectOutputType<{
|
|
2978
3138
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
2979
3139
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
2980
3140
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
2981
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;
|
|
2982
3154
|
template_id?: string | null | undefined;
|
|
2983
|
-
preheader?: string | null | undefined;
|
|
2984
3155
|
label?: string | null | undefined;
|
|
2985
3156
|
} | {
|
|
2986
3157
|
kind: "delay";
|
|
@@ -3078,7 +3249,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3078
3249
|
} | null;
|
|
3079
3250
|
}>;
|
|
3080
3251
|
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
3081
|
-
status: "
|
|
3252
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3082
3253
|
id: string;
|
|
3083
3254
|
name: string;
|
|
3084
3255
|
created_at: string;
|
|
@@ -3121,13 +3292,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3121
3292
|
} | {
|
|
3122
3293
|
key: string;
|
|
3123
3294
|
kind: "property_changed";
|
|
3124
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3125
3295
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3296
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3126
3297
|
} | {
|
|
3127
3298
|
name: string;
|
|
3128
3299
|
kind: "event";
|
|
3129
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3130
3300
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3301
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3131
3302
|
} | {
|
|
3132
3303
|
kind: "manual";
|
|
3133
3304
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3141,8 +3312,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3141
3312
|
at: string;
|
|
3142
3313
|
kind: "exact_date";
|
|
3143
3314
|
on: string;
|
|
3144
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3145
3315
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3316
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3146
3317
|
} | {
|
|
3147
3318
|
kind: "segment_entered";
|
|
3148
3319
|
segment_id: string;
|
|
@@ -3150,21 +3321,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3150
3321
|
} | {
|
|
3151
3322
|
kind: "link_clicked";
|
|
3152
3323
|
mailing_id: string;
|
|
3153
|
-
url?: string | undefined;
|
|
3154
3324
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3325
|
+
url?: string | undefined;
|
|
3155
3326
|
})[];
|
|
3156
3327
|
entry: string | null;
|
|
3157
3328
|
steps: Record<string, {
|
|
3158
3329
|
subject: string;
|
|
3159
3330
|
kind: "email";
|
|
3160
3331
|
next: string | null;
|
|
3332
|
+
preheader?: string | null | undefined;
|
|
3161
3333
|
document?: zod.objectOutputType<{
|
|
3162
3334
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3163
3335
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3164
3336
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3165
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;
|
|
3166
3350
|
template_id?: string | null | undefined;
|
|
3167
|
-
preheader?: string | null | undefined;
|
|
3168
3351
|
label?: string | null | undefined;
|
|
3169
3352
|
} | {
|
|
3170
3353
|
kind: "delay";
|
|
@@ -3276,13 +3459,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3276
3459
|
} | {
|
|
3277
3460
|
key: string;
|
|
3278
3461
|
kind: "property_changed";
|
|
3279
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3280
3462
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3463
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3281
3464
|
} | {
|
|
3282
3465
|
name: string;
|
|
3283
3466
|
kind: "event";
|
|
3284
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3285
3467
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3468
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3286
3469
|
} | {
|
|
3287
3470
|
kind: "manual";
|
|
3288
3471
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3296,8 +3479,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3296
3479
|
at: string;
|
|
3297
3480
|
kind: "exact_date";
|
|
3298
3481
|
on: string;
|
|
3299
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3300
3482
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3483
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3301
3484
|
} | {
|
|
3302
3485
|
kind: "segment_entered";
|
|
3303
3486
|
segment_id: string;
|
|
@@ -3305,21 +3488,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3305
3488
|
} | {
|
|
3306
3489
|
kind: "link_clicked";
|
|
3307
3490
|
mailing_id: string;
|
|
3308
|
-
url?: string | undefined;
|
|
3309
3491
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3492
|
+
url?: string | undefined;
|
|
3310
3493
|
})[];
|
|
3311
3494
|
entry: string | null;
|
|
3312
3495
|
steps: Record<string, {
|
|
3313
3496
|
subject: string;
|
|
3314
3497
|
kind: "email";
|
|
3315
3498
|
next: string | null;
|
|
3499
|
+
preheader?: string | null | undefined;
|
|
3316
3500
|
document?: zod.objectOutputType<{
|
|
3317
3501
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3318
3502
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3319
3503
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3320
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;
|
|
3321
3517
|
template_id?: string | null | undefined;
|
|
3322
|
-
preheader?: string | null | undefined;
|
|
3323
3518
|
label?: string | null | undefined;
|
|
3324
3519
|
} | {
|
|
3325
3520
|
kind: "delay";
|
|
@@ -3418,7 +3613,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3418
3613
|
}>;
|
|
3419
3614
|
/** Saves the draft. `base_version` is the draft version you loaded; a stale one is `conflict` (409). */
|
|
3420
3615
|
update: (id: string, body: RouteBody<"automations.update">, opts?: RequestOpts) => Promise<{
|
|
3421
|
-
status: "
|
|
3616
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3422
3617
|
id: string;
|
|
3423
3618
|
name: string;
|
|
3424
3619
|
created_at: string;
|
|
@@ -3461,13 +3656,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3461
3656
|
} | {
|
|
3462
3657
|
key: string;
|
|
3463
3658
|
kind: "property_changed";
|
|
3464
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3465
3659
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3660
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3466
3661
|
} | {
|
|
3467
3662
|
name: string;
|
|
3468
3663
|
kind: "event";
|
|
3469
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3470
3664
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3665
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3471
3666
|
} | {
|
|
3472
3667
|
kind: "manual";
|
|
3473
3668
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3481,8 +3676,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3481
3676
|
at: string;
|
|
3482
3677
|
kind: "exact_date";
|
|
3483
3678
|
on: string;
|
|
3484
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3485
3679
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3680
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3486
3681
|
} | {
|
|
3487
3682
|
kind: "segment_entered";
|
|
3488
3683
|
segment_id: string;
|
|
@@ -3490,21 +3685,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3490
3685
|
} | {
|
|
3491
3686
|
kind: "link_clicked";
|
|
3492
3687
|
mailing_id: string;
|
|
3493
|
-
url?: string | undefined;
|
|
3494
3688
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3689
|
+
url?: string | undefined;
|
|
3495
3690
|
})[];
|
|
3496
3691
|
entry: string | null;
|
|
3497
3692
|
steps: Record<string, {
|
|
3498
3693
|
subject: string;
|
|
3499
3694
|
kind: "email";
|
|
3500
3695
|
next: string | null;
|
|
3696
|
+
preheader?: string | null | undefined;
|
|
3501
3697
|
document?: zod.objectOutputType<{
|
|
3502
3698
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3503
3699
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3504
3700
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3505
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;
|
|
3506
3714
|
template_id?: string | null | undefined;
|
|
3507
|
-
preheader?: string | null | undefined;
|
|
3508
3715
|
label?: string | null | undefined;
|
|
3509
3716
|
} | {
|
|
3510
3717
|
kind: "delay";
|
|
@@ -3616,13 +3823,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3616
3823
|
} | {
|
|
3617
3824
|
key: string;
|
|
3618
3825
|
kind: "property_changed";
|
|
3619
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3620
3826
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3827
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3621
3828
|
} | {
|
|
3622
3829
|
name: string;
|
|
3623
3830
|
kind: "event";
|
|
3624
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3625
3831
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3832
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3626
3833
|
} | {
|
|
3627
3834
|
kind: "manual";
|
|
3628
3835
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3636,8 +3843,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3636
3843
|
at: string;
|
|
3637
3844
|
kind: "exact_date";
|
|
3638
3845
|
on: string;
|
|
3639
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3640
3846
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3847
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3641
3848
|
} | {
|
|
3642
3849
|
kind: "segment_entered";
|
|
3643
3850
|
segment_id: string;
|
|
@@ -3645,21 +3852,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3645
3852
|
} | {
|
|
3646
3853
|
kind: "link_clicked";
|
|
3647
3854
|
mailing_id: string;
|
|
3648
|
-
url?: string | undefined;
|
|
3649
3855
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3856
|
+
url?: string | undefined;
|
|
3650
3857
|
})[];
|
|
3651
3858
|
entry: string | null;
|
|
3652
3859
|
steps: Record<string, {
|
|
3653
3860
|
subject: string;
|
|
3654
3861
|
kind: "email";
|
|
3655
3862
|
next: string | null;
|
|
3863
|
+
preheader?: string | null | undefined;
|
|
3656
3864
|
document?: zod.objectOutputType<{
|
|
3657
3865
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3658
3866
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3659
3867
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3660
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;
|
|
3661
3881
|
template_id?: string | null | undefined;
|
|
3662
|
-
preheader?: string | null | undefined;
|
|
3663
3882
|
label?: string | null | undefined;
|
|
3664
3883
|
} | {
|
|
3665
3884
|
kind: "delay";
|
|
@@ -3782,7 +4001,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3782
4001
|
step_id: string | null;
|
|
3783
4002
|
}[];
|
|
3784
4003
|
automation: {
|
|
3785
|
-
status: "
|
|
4004
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3786
4005
|
id: string;
|
|
3787
4006
|
name: string;
|
|
3788
4007
|
created_at: string;
|
|
@@ -3820,7 +4039,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3820
4039
|
published: boolean;
|
|
3821
4040
|
}>;
|
|
3822
4041
|
pause: (id: string, opts?: RequestOpts) => Promise<{
|
|
3823
|
-
status: "
|
|
4042
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3824
4043
|
id: string;
|
|
3825
4044
|
name: string;
|
|
3826
4045
|
created_at: string;
|
|
@@ -3849,7 +4068,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3849
4068
|
published_at: string | null;
|
|
3850
4069
|
}>;
|
|
3851
4070
|
resume: (id: string, opts?: RequestOpts) => Promise<{
|
|
3852
|
-
status: "
|
|
4071
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3853
4072
|
id: string;
|
|
3854
4073
|
name: string;
|
|
3855
4074
|
created_at: string;
|
|
@@ -3878,7 +4097,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3878
4097
|
published_at: string | null;
|
|
3879
4098
|
}>;
|
|
3880
4099
|
archive: (id: string, opts?: RequestOpts) => Promise<{
|
|
3881
|
-
status: "
|
|
4100
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3882
4101
|
id: string;
|
|
3883
4102
|
name: string;
|
|
3884
4103
|
created_at: string;
|
|
@@ -3907,7 +4126,7 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3907
4126
|
published_at: string | null;
|
|
3908
4127
|
}>;
|
|
3909
4128
|
duplicate: (id: string, body?: RouteBody<"automations.duplicate">, opts?: RequestOpts) => Promise<{
|
|
3910
|
-
status: "
|
|
4129
|
+
status: "draft" | "archived" | "paused" | "active";
|
|
3911
4130
|
id: string;
|
|
3912
4131
|
name: string;
|
|
3913
4132
|
created_at: string;
|
|
@@ -3950,13 +4169,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3950
4169
|
} | {
|
|
3951
4170
|
key: string;
|
|
3952
4171
|
kind: "property_changed";
|
|
3953
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3954
4172
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4173
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
3955
4174
|
} | {
|
|
3956
4175
|
name: string;
|
|
3957
4176
|
kind: "event";
|
|
3958
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3959
4177
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4178
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3960
4179
|
} | {
|
|
3961
4180
|
kind: "manual";
|
|
3962
4181
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -3970,8 +4189,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3970
4189
|
at: string;
|
|
3971
4190
|
kind: "exact_date";
|
|
3972
4191
|
on: string;
|
|
3973
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3974
4192
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4193
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
3975
4194
|
} | {
|
|
3976
4195
|
kind: "segment_entered";
|
|
3977
4196
|
segment_id: string;
|
|
@@ -3979,21 +4198,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3979
4198
|
} | {
|
|
3980
4199
|
kind: "link_clicked";
|
|
3981
4200
|
mailing_id: string;
|
|
3982
|
-
url?: string | undefined;
|
|
3983
4201
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4202
|
+
url?: string | undefined;
|
|
3984
4203
|
})[];
|
|
3985
4204
|
entry: string | null;
|
|
3986
4205
|
steps: Record<string, {
|
|
3987
4206
|
subject: string;
|
|
3988
4207
|
kind: "email";
|
|
3989
4208
|
next: string | null;
|
|
4209
|
+
preheader?: string | null | undefined;
|
|
3990
4210
|
document?: zod.objectOutputType<{
|
|
3991
4211
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
3992
4212
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
3993
4213
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
3994
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;
|
|
3995
4227
|
template_id?: string | null | undefined;
|
|
3996
|
-
preheader?: string | null | undefined;
|
|
3997
4228
|
label?: string | null | undefined;
|
|
3998
4229
|
} | {
|
|
3999
4230
|
kind: "delay";
|
|
@@ -4105,13 +4336,13 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4105
4336
|
} | {
|
|
4106
4337
|
key: string;
|
|
4107
4338
|
kind: "property_changed";
|
|
4108
|
-
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
4109
4339
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4340
|
+
to?: _marlinjai_mail_contract.JsonValue | undefined;
|
|
4110
4341
|
} | {
|
|
4111
4342
|
name: string;
|
|
4112
4343
|
kind: "event";
|
|
4113
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4114
4344
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4345
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4115
4346
|
} | {
|
|
4116
4347
|
kind: "manual";
|
|
4117
4348
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
@@ -4125,8 +4356,8 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4125
4356
|
at: string;
|
|
4126
4357
|
kind: "exact_date";
|
|
4127
4358
|
on: string;
|
|
4128
|
-
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4129
4359
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4360
|
+
where?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4130
4361
|
} | {
|
|
4131
4362
|
kind: "segment_entered";
|
|
4132
4363
|
segment_id: string;
|
|
@@ -4134,21 +4365,33 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
4134
4365
|
} | {
|
|
4135
4366
|
kind: "link_clicked";
|
|
4136
4367
|
mailing_id: string;
|
|
4137
|
-
url?: string | undefined;
|
|
4138
4368
|
exclude?: _marlinjai_mail_contract.SegmentFilter | null | undefined;
|
|
4369
|
+
url?: string | undefined;
|
|
4139
4370
|
})[];
|
|
4140
4371
|
entry: string | null;
|
|
4141
4372
|
steps: Record<string, {
|
|
4142
4373
|
subject: string;
|
|
4143
4374
|
kind: "email";
|
|
4144
4375
|
next: string | null;
|
|
4376
|
+
preheader?: string | null | undefined;
|
|
4145
4377
|
document?: zod.objectOutputType<{
|
|
4146
4378
|
version: zod.ZodEnum<["1.0", "1.1"]>;
|
|
4147
4379
|
metadata: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
4148
4380
|
sections: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, "many">;
|
|
4149
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;
|
|
4150
4394
|
template_id?: string | null | undefined;
|
|
4151
|
-
preheader?: string | null | undefined;
|
|
4152
4395
|
label?: string | null | undefined;
|
|
4153
4396
|
} | {
|
|
4154
4397
|
kind: "delay";
|