@marlinjai/mail-sdk 0.6.1 → 0.8.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.ts CHANGED
@@ -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" | "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";
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" | "template.inputs_declared" | "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;
@@ -395,6 +395,76 @@ declare function createNamespaces(config: CoreConfig): {
395
395
  create: (body: RouteBody<"templates.create">, opts?: RequestOpts) => Promise<{
396
396
  id: string;
397
397
  name: string;
398
+ inputs: {
399
+ app: string;
400
+ app_version: string | null;
401
+ inputs: Record<string, {
402
+ kind: "text";
403
+ label: string;
404
+ source: {
405
+ kind: "form_field";
406
+ form: string;
407
+ field: string;
408
+ note?: string | undefined;
409
+ } | {
410
+ kind: "derived";
411
+ note: string;
412
+ };
413
+ example?: string | undefined;
414
+ optional?: boolean | undefined;
415
+ } | {
416
+ kind: "url";
417
+ label: string;
418
+ source: {
419
+ kind: "form_field";
420
+ form: string;
421
+ field: string;
422
+ note?: string | undefined;
423
+ } | {
424
+ kind: "derived";
425
+ note: string;
426
+ };
427
+ example?: string | undefined;
428
+ optional?: boolean | undefined;
429
+ } | {
430
+ kind: "boolean";
431
+ label: string;
432
+ source: {
433
+ kind: "form_field";
434
+ form: string;
435
+ field: string;
436
+ note?: string | undefined;
437
+ } | {
438
+ kind: "derived";
439
+ note: string;
440
+ };
441
+ example?: boolean | undefined;
442
+ optional?: boolean | undefined;
443
+ } | {
444
+ values: {
445
+ value: string;
446
+ label: string;
447
+ }[];
448
+ kind: "one_of";
449
+ label: string;
450
+ source: {
451
+ kind: "form_field";
452
+ form: string;
453
+ field: string;
454
+ note?: string | undefined;
455
+ } | {
456
+ kind: "derived";
457
+ note: string;
458
+ };
459
+ example?: string | undefined;
460
+ optional?: boolean | undefined;
461
+ }>;
462
+ declared_by: {
463
+ api_key_id: string;
464
+ api_key_name: string;
465
+ };
466
+ declared_at: string;
467
+ } | null;
398
468
  version: number;
399
469
  subject: string | null;
400
470
  preheader: string | null;
@@ -430,6 +500,11 @@ declare function createNamespaces(config: CoreConfig): {
430
500
  choices: Record<string, string | null>;
431
501
  }> | undefined;
432
502
  }>;
503
+ inputs_seen: Record<string, {
504
+ count: number;
505
+ first_seen_at: string;
506
+ last_seen_at: string;
507
+ }>;
433
508
  thumbnail_url: string | null;
434
509
  archived_at: string | null;
435
510
  created_at: string;
@@ -438,6 +513,76 @@ declare function createNamespaces(config: CoreConfig): {
438
513
  get: (id: string, opts?: RequestOpts) => Promise<{
439
514
  id: string;
440
515
  name: string;
516
+ inputs: {
517
+ app: string;
518
+ app_version: string | null;
519
+ inputs: Record<string, {
520
+ kind: "text";
521
+ label: string;
522
+ source: {
523
+ kind: "form_field";
524
+ form: string;
525
+ field: string;
526
+ note?: string | undefined;
527
+ } | {
528
+ kind: "derived";
529
+ note: string;
530
+ };
531
+ example?: string | undefined;
532
+ optional?: boolean | undefined;
533
+ } | {
534
+ kind: "url";
535
+ label: string;
536
+ source: {
537
+ kind: "form_field";
538
+ form: string;
539
+ field: string;
540
+ note?: string | undefined;
541
+ } | {
542
+ kind: "derived";
543
+ note: string;
544
+ };
545
+ example?: string | undefined;
546
+ optional?: boolean | undefined;
547
+ } | {
548
+ kind: "boolean";
549
+ label: string;
550
+ source: {
551
+ kind: "form_field";
552
+ form: string;
553
+ field: string;
554
+ note?: string | undefined;
555
+ } | {
556
+ kind: "derived";
557
+ note: string;
558
+ };
559
+ example?: boolean | undefined;
560
+ optional?: boolean | undefined;
561
+ } | {
562
+ values: {
563
+ value: string;
564
+ label: string;
565
+ }[];
566
+ kind: "one_of";
567
+ label: string;
568
+ source: {
569
+ kind: "form_field";
570
+ form: string;
571
+ field: string;
572
+ note?: string | undefined;
573
+ } | {
574
+ kind: "derived";
575
+ note: string;
576
+ };
577
+ example?: string | undefined;
578
+ optional?: boolean | undefined;
579
+ }>;
580
+ declared_by: {
581
+ api_key_id: string;
582
+ api_key_name: string;
583
+ };
584
+ declared_at: string;
585
+ } | null;
441
586
  version: number;
442
587
  subject: string | null;
443
588
  preheader: string | null;
@@ -473,6 +618,11 @@ declare function createNamespaces(config: CoreConfig): {
473
618
  choices: Record<string, string | null>;
474
619
  }> | undefined;
475
620
  }>;
621
+ inputs_seen: Record<string, {
622
+ count: number;
623
+ first_seen_at: string;
624
+ last_seen_at: string;
625
+ }>;
476
626
  thumbnail_url: string | null;
477
627
  archived_at: string | null;
478
628
  created_at: string;
@@ -481,6 +631,76 @@ declare function createNamespaces(config: CoreConfig): {
481
631
  update: (id: string, body: RouteBody<"templates.update">, opts?: RequestOpts) => Promise<{
482
632
  id: string;
483
633
  name: string;
634
+ inputs: {
635
+ app: string;
636
+ app_version: string | null;
637
+ inputs: Record<string, {
638
+ kind: "text";
639
+ label: string;
640
+ source: {
641
+ kind: "form_field";
642
+ form: string;
643
+ field: string;
644
+ note?: string | undefined;
645
+ } | {
646
+ kind: "derived";
647
+ note: string;
648
+ };
649
+ example?: string | undefined;
650
+ optional?: boolean | undefined;
651
+ } | {
652
+ kind: "url";
653
+ label: string;
654
+ source: {
655
+ kind: "form_field";
656
+ form: string;
657
+ field: string;
658
+ note?: string | undefined;
659
+ } | {
660
+ kind: "derived";
661
+ note: string;
662
+ };
663
+ example?: string | undefined;
664
+ optional?: boolean | undefined;
665
+ } | {
666
+ kind: "boolean";
667
+ label: string;
668
+ source: {
669
+ kind: "form_field";
670
+ form: string;
671
+ field: string;
672
+ note?: string | undefined;
673
+ } | {
674
+ kind: "derived";
675
+ note: string;
676
+ };
677
+ example?: boolean | undefined;
678
+ optional?: boolean | undefined;
679
+ } | {
680
+ values: {
681
+ value: string;
682
+ label: string;
683
+ }[];
684
+ kind: "one_of";
685
+ label: string;
686
+ source: {
687
+ kind: "form_field";
688
+ form: string;
689
+ field: string;
690
+ note?: string | undefined;
691
+ } | {
692
+ kind: "derived";
693
+ note: string;
694
+ };
695
+ example?: string | undefined;
696
+ optional?: boolean | undefined;
697
+ }>;
698
+ declared_by: {
699
+ api_key_id: string;
700
+ api_key_name: string;
701
+ };
702
+ declared_at: string;
703
+ } | null;
484
704
  version: number;
485
705
  subject: string | null;
486
706
  preheader: string | null;
@@ -516,6 +736,11 @@ declare function createNamespaces(config: CoreConfig): {
516
736
  choices: Record<string, string | null>;
517
737
  }> | undefined;
518
738
  }>;
739
+ inputs_seen: Record<string, {
740
+ count: number;
741
+ first_seen_at: string;
742
+ last_seen_at: string;
743
+ }>;
519
744
  thumbnail_url: string | null;
520
745
  archived_at: string | null;
521
746
  created_at: string;
@@ -524,8 +749,92 @@ declare function createNamespaces(config: CoreConfig): {
524
749
  delete: (id: string, opts?: RequestOpts) => Promise<{
525
750
  ok: true;
526
751
  }>;
752
+ /**
753
+ * Declares what the template receives from your app: each merge value's
754
+ * label, where it comes from, its kind and an example. Replaces the
755
+ * stored declaration whole; the same declaration again answers
756
+ * `changed: false` and writes nothing. Creates no template version, so
757
+ * it never conflicts with someone editing. Call it from your deploy with
758
+ * the commit as `app_version`. An API key with `send` or `full` scope
759
+ * only: the dashboard cannot declare.
760
+ */
761
+ declareInputs: (id: string, body: RouteBody<"templates.declareInputs">, opts?: RequestOpts) => Promise<{
762
+ inputs: {
763
+ app: string;
764
+ app_version: string | null;
765
+ inputs: Record<string, {
766
+ kind: "text";
767
+ label: string;
768
+ source: {
769
+ kind: "form_field";
770
+ form: string;
771
+ field: string;
772
+ note?: string | undefined;
773
+ } | {
774
+ kind: "derived";
775
+ note: string;
776
+ };
777
+ example?: string | undefined;
778
+ optional?: boolean | undefined;
779
+ } | {
780
+ kind: "url";
781
+ label: string;
782
+ source: {
783
+ kind: "form_field";
784
+ form: string;
785
+ field: string;
786
+ note?: string | undefined;
787
+ } | {
788
+ kind: "derived";
789
+ note: string;
790
+ };
791
+ example?: string | undefined;
792
+ optional?: boolean | undefined;
793
+ } | {
794
+ kind: "boolean";
795
+ label: string;
796
+ source: {
797
+ kind: "form_field";
798
+ form: string;
799
+ field: string;
800
+ note?: string | undefined;
801
+ } | {
802
+ kind: "derived";
803
+ note: string;
804
+ };
805
+ example?: boolean | undefined;
806
+ optional?: boolean | undefined;
807
+ } | {
808
+ values: {
809
+ value: string;
810
+ label: string;
811
+ }[];
812
+ kind: "one_of";
813
+ label: string;
814
+ source: {
815
+ kind: "form_field";
816
+ form: string;
817
+ field: string;
818
+ note?: string | undefined;
819
+ } | {
820
+ kind: "derived";
821
+ note: string;
822
+ };
823
+ example?: string | undefined;
824
+ optional?: boolean | undefined;
825
+ }>;
826
+ declared_by: {
827
+ api_key_id: string;
828
+ api_key_name: string;
829
+ };
830
+ declared_at: string;
831
+ };
832
+ template_id: string;
833
+ changed: boolean;
834
+ }>;
527
835
  versions: (id: string, query?: RouteQuery<"templates.versions">, opts?: RequestOpts) => Promise<{
528
836
  data: {
837
+ template_id: string;
529
838
  version: number;
530
839
  subject: string | null;
531
840
  preheader: string | null;
@@ -562,11 +871,11 @@ declare function createNamespaces(config: CoreConfig): {
562
871
  }>;
563
872
  created_at: string;
564
873
  created_by: string | null;
565
- template_id: string;
566
874
  }[];
567
875
  next_cursor: string | null;
568
876
  }>;
569
877
  version: (id: string, version: number, opts?: RequestOpts) => Promise<{
878
+ template_id: string;
570
879
  version: number;
571
880
  subject: string | null;
572
881
  preheader: string | null;
@@ -603,7 +912,6 @@ declare function createNamespaces(config: CoreConfig): {
603
912
  }>;
604
913
  created_at: string;
605
914
  created_by: string | null;
606
- template_id: string;
607
915
  }>;
608
916
  compile: (id: string, body?: RouteBody<"templates.compile">, opts?: RequestOpts) => Promise<{
609
917
  mjml: string;
@@ -636,6 +944,76 @@ declare function createNamespaces(config: CoreConfig): {
636
944
  template: {
637
945
  id: string;
638
946
  name: string;
947
+ inputs: {
948
+ app: string;
949
+ app_version: string | null;
950
+ inputs: Record<string, {
951
+ kind: "text";
952
+ label: string;
953
+ source: {
954
+ kind: "form_field";
955
+ form: string;
956
+ field: string;
957
+ note?: string | undefined;
958
+ } | {
959
+ kind: "derived";
960
+ note: string;
961
+ };
962
+ example?: string | undefined;
963
+ optional?: boolean | undefined;
964
+ } | {
965
+ kind: "url";
966
+ label: string;
967
+ source: {
968
+ kind: "form_field";
969
+ form: string;
970
+ field: string;
971
+ note?: string | undefined;
972
+ } | {
973
+ kind: "derived";
974
+ note: string;
975
+ };
976
+ example?: string | undefined;
977
+ optional?: boolean | undefined;
978
+ } | {
979
+ kind: "boolean";
980
+ label: string;
981
+ source: {
982
+ kind: "form_field";
983
+ form: string;
984
+ field: string;
985
+ note?: string | undefined;
986
+ } | {
987
+ kind: "derived";
988
+ note: string;
989
+ };
990
+ example?: boolean | undefined;
991
+ optional?: boolean | undefined;
992
+ } | {
993
+ values: {
994
+ value: string;
995
+ label: string;
996
+ }[];
997
+ kind: "one_of";
998
+ label: string;
999
+ source: {
1000
+ kind: "form_field";
1001
+ form: string;
1002
+ field: string;
1003
+ note?: string | undefined;
1004
+ } | {
1005
+ kind: "derived";
1006
+ note: string;
1007
+ };
1008
+ example?: string | undefined;
1009
+ optional?: boolean | undefined;
1010
+ }>;
1011
+ declared_by: {
1012
+ api_key_id: string;
1013
+ api_key_name: string;
1014
+ };
1015
+ declared_at: string;
1016
+ } | null;
639
1017
  version: number;
640
1018
  subject: string | null;
641
1019
  preheader: string | null;
@@ -671,6 +1049,11 @@ declare function createNamespaces(config: CoreConfig): {
671
1049
  choices: Record<string, string | null>;
672
1050
  }> | undefined;
673
1051
  }>;
1052
+ inputs_seen: Record<string, {
1053
+ count: number;
1054
+ first_seen_at: string;
1055
+ last_seen_at: string;
1056
+ }>;
674
1057
  thumbnail_url: string | null;
675
1058
  archived_at: string | null;
676
1059
  created_at: string;
@@ -830,9 +1213,9 @@ declare function createNamespaces(config: CoreConfig): {
830
1213
  data: ({
831
1214
  id: string;
832
1215
  name: string;
1216
+ kind: "smtp";
833
1217
  created_at: string;
834
1218
  updated_at: string;
835
- kind: "smtp";
836
1219
  config: {
837
1220
  host: string;
838
1221
  port: number;
@@ -841,8 +1224,8 @@ declare function createNamespaces(config: CoreConfig): {
841
1224
  };
842
1225
  has_secret: boolean;
843
1226
  rejections: {
844
- last_error: string | null;
845
1227
  count: number;
1228
+ last_error: string | null;
846
1229
  last_at: string | null;
847
1230
  anomaly: {
848
1231
  at: string;
@@ -864,14 +1247,14 @@ declare function createNamespaces(config: CoreConfig): {
864
1247
  } | {
865
1248
  id: string;
866
1249
  name: string;
1250
+ kind: "resend";
867
1251
  created_at: string;
868
1252
  updated_at: string;
869
- kind: "resend";
870
1253
  config: {};
871
1254
  has_secret: boolean;
872
1255
  rejections: {
873
- last_error: string | null;
874
1256
  count: number;
1257
+ last_error: string | null;
875
1258
  last_at: string | null;
876
1259
  anomaly: {
877
1260
  at: string;
@@ -903,9 +1286,9 @@ declare function createNamespaces(config: CoreConfig): {
903
1286
  create: (body: RouteBody<"providers.create">, opts?: RequestOpts) => Promise<{
904
1287
  id: string;
905
1288
  name: string;
1289
+ kind: "smtp";
906
1290
  created_at: string;
907
1291
  updated_at: string;
908
- kind: "smtp";
909
1292
  config: {
910
1293
  host: string;
911
1294
  port: number;
@@ -914,8 +1297,8 @@ declare function createNamespaces(config: CoreConfig): {
914
1297
  };
915
1298
  has_secret: boolean;
916
1299
  rejections: {
917
- last_error: string | null;
918
1300
  count: number;
1301
+ last_error: string | null;
919
1302
  last_at: string | null;
920
1303
  anomaly: {
921
1304
  at: string;
@@ -937,14 +1320,14 @@ declare function createNamespaces(config: CoreConfig): {
937
1320
  } | {
938
1321
  id: string;
939
1322
  name: string;
1323
+ kind: "resend";
940
1324
  created_at: string;
941
1325
  updated_at: string;
942
- kind: "resend";
943
1326
  config: {};
944
1327
  has_secret: boolean;
945
1328
  rejections: {
946
- last_error: string | null;
947
1329
  count: number;
1330
+ last_error: string | null;
948
1331
  last_at: string | null;
949
1332
  anomaly: {
950
1333
  at: string;
@@ -974,9 +1357,9 @@ declare function createNamespaces(config: CoreConfig): {
974
1357
  get: (id: string, opts?: RequestOpts) => Promise<{
975
1358
  id: string;
976
1359
  name: string;
1360
+ kind: "smtp";
977
1361
  created_at: string;
978
1362
  updated_at: string;
979
- kind: "smtp";
980
1363
  config: {
981
1364
  host: string;
982
1365
  port: number;
@@ -985,8 +1368,8 @@ declare function createNamespaces(config: CoreConfig): {
985
1368
  };
986
1369
  has_secret: boolean;
987
1370
  rejections: {
988
- last_error: string | null;
989
1371
  count: number;
1372
+ last_error: string | null;
990
1373
  last_at: string | null;
991
1374
  anomaly: {
992
1375
  at: string;
@@ -1008,14 +1391,14 @@ declare function createNamespaces(config: CoreConfig): {
1008
1391
  } | {
1009
1392
  id: string;
1010
1393
  name: string;
1394
+ kind: "resend";
1011
1395
  created_at: string;
1012
1396
  updated_at: string;
1013
- kind: "resend";
1014
1397
  config: {};
1015
1398
  has_secret: boolean;
1016
1399
  rejections: {
1017
- last_error: string | null;
1018
1400
  count: number;
1401
+ last_error: string | null;
1019
1402
  last_at: string | null;
1020
1403
  anomaly: {
1021
1404
  at: string;
@@ -1045,9 +1428,9 @@ declare function createNamespaces(config: CoreConfig): {
1045
1428
  update: (id: string, body: RouteBody<"providers.update">, opts?: RequestOpts) => Promise<{
1046
1429
  id: string;
1047
1430
  name: string;
1431
+ kind: "smtp";
1048
1432
  created_at: string;
1049
1433
  updated_at: string;
1050
- kind: "smtp";
1051
1434
  config: {
1052
1435
  host: string;
1053
1436
  port: number;
@@ -1056,8 +1439,8 @@ declare function createNamespaces(config: CoreConfig): {
1056
1439
  };
1057
1440
  has_secret: boolean;
1058
1441
  rejections: {
1059
- last_error: string | null;
1060
1442
  count: number;
1443
+ last_error: string | null;
1061
1444
  last_at: string | null;
1062
1445
  anomaly: {
1063
1446
  at: string;
@@ -1079,14 +1462,14 @@ declare function createNamespaces(config: CoreConfig): {
1079
1462
  } | {
1080
1463
  id: string;
1081
1464
  name: string;
1465
+ kind: "resend";
1082
1466
  created_at: string;
1083
1467
  updated_at: string;
1084
- kind: "resend";
1085
1468
  config: {};
1086
1469
  has_secret: boolean;
1087
1470
  rejections: {
1088
- last_error: string | null;
1089
1471
  count: number;
1472
+ last_error: string | null;
1090
1473
  last_at: string | null;
1091
1474
  anomaly: {
1092
1475
  at: string;
@@ -1130,9 +1513,9 @@ declare function createNamespaces(config: CoreConfig): {
1130
1513
  clearAnomaly: (id: string, opts?: RequestOpts) => Promise<{
1131
1514
  id: string;
1132
1515
  name: string;
1516
+ kind: "smtp";
1133
1517
  created_at: string;
1134
1518
  updated_at: string;
1135
- kind: "smtp";
1136
1519
  config: {
1137
1520
  host: string;
1138
1521
  port: number;
@@ -1141,8 +1524,8 @@ declare function createNamespaces(config: CoreConfig): {
1141
1524
  };
1142
1525
  has_secret: boolean;
1143
1526
  rejections: {
1144
- last_error: string | null;
1145
1527
  count: number;
1528
+ last_error: string | null;
1146
1529
  last_at: string | null;
1147
1530
  anomaly: {
1148
1531
  at: string;
@@ -1164,14 +1547,14 @@ declare function createNamespaces(config: CoreConfig): {
1164
1547
  } | {
1165
1548
  id: string;
1166
1549
  name: string;
1550
+ kind: "resend";
1167
1551
  created_at: string;
1168
1552
  updated_at: string;
1169
- kind: "resend";
1170
1553
  config: {};
1171
1554
  has_secret: boolean;
1172
1555
  rejections: {
1173
- last_error: string | null;
1174
1556
  count: number;
1557
+ last_error: string | null;
1175
1558
  last_at: string | null;
1176
1559
  anomaly: {
1177
1560
  at: string;
@@ -1202,9 +1585,9 @@ declare function createNamespaces(config: CoreConfig): {
1202
1585
  setEventsSecret: (id: string, body: RouteBody<"providers.setEventsSecret">, opts?: RequestOpts) => Promise<{
1203
1586
  id: string;
1204
1587
  name: string;
1588
+ kind: "smtp";
1205
1589
  created_at: string;
1206
1590
  updated_at: string;
1207
- kind: "smtp";
1208
1591
  config: {
1209
1592
  host: string;
1210
1593
  port: number;
@@ -1213,8 +1596,8 @@ declare function createNamespaces(config: CoreConfig): {
1213
1596
  };
1214
1597
  has_secret: boolean;
1215
1598
  rejections: {
1216
- last_error: string | null;
1217
1599
  count: number;
1600
+ last_error: string | null;
1218
1601
  last_at: string | null;
1219
1602
  anomaly: {
1220
1603
  at: string;
@@ -1236,14 +1619,14 @@ declare function createNamespaces(config: CoreConfig): {
1236
1619
  } | {
1237
1620
  id: string;
1238
1621
  name: string;
1622
+ kind: "resend";
1239
1623
  created_at: string;
1240
1624
  updated_at: string;
1241
- kind: "resend";
1242
1625
  config: {};
1243
1626
  has_secret: boolean;
1244
1627
  rejections: {
1245
- last_error: string | null;
1246
1628
  count: number;
1629
+ last_error: string | null;
1247
1630
  last_at: string | null;
1248
1631
  anomaly: {
1249
1632
  at: string;
@@ -1427,10 +1810,10 @@ declare function createNamespaces(config: CoreConfig): {
1427
1810
  id: string;
1428
1811
  reason: "manual" | "unsubscribed" | "bounced" | "complained";
1429
1812
  email: string;
1813
+ note: string | null;
1430
1814
  created_at: string;
1431
1815
  topic: string | null;
1432
1816
  source_message_id: string | null;
1433
- note: string | null;
1434
1817
  }[];
1435
1818
  next_cursor: string | null;
1436
1819
  }>;
@@ -1438,10 +1821,10 @@ declare function createNamespaces(config: CoreConfig): {
1438
1821
  id: string;
1439
1822
  reason: "manual" | "unsubscribed" | "bounced" | "complained";
1440
1823
  email: string;
1824
+ note: string | null;
1441
1825
  created_at: string;
1442
1826
  topic: string | null;
1443
1827
  source_message_id: string | null;
1444
- note: string | null;
1445
1828
  }>;
1446
1829
  delete: (id: string, opts?: RequestOpts) => Promise<{
1447
1830
  ok: true;
@@ -1453,14 +1836,14 @@ declare function createNamespaces(config: CoreConfig): {
1453
1836
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
1454
1837
  id: string;
1455
1838
  name: string | null;
1839
+ kind: "broadcast" | "automation" | "notification";
1840
+ template_id: string | null;
1456
1841
  metadata: Record<string, string>;
1457
1842
  subject: string;
1458
1843
  preheader: string | null;
1459
1844
  locale: string;
1460
1845
  created_at: string;
1461
1846
  updated_at: string;
1462
- template_id: string | null;
1463
- kind: "broadcast" | "automation" | "notification";
1464
1847
  send_locale: string | null;
1465
1848
  topic: string | null;
1466
1849
  provider_id: string;
@@ -1498,6 +1881,8 @@ declare function createNamespaces(config: CoreConfig): {
1498
1881
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
1499
1882
  id: string;
1500
1883
  name: string | null;
1884
+ kind: "broadcast" | "automation" | "notification";
1885
+ template_id: string | null;
1501
1886
  metadata: Record<string, string>;
1502
1887
  subject: string;
1503
1888
  preheader: string | null;
@@ -1511,8 +1896,6 @@ declare function createNamespaces(config: CoreConfig): {
1511
1896
  locale: string;
1512
1897
  created_at: string;
1513
1898
  updated_at: string;
1514
- template_id: string | null;
1515
- kind: "broadcast" | "automation" | "notification";
1516
1899
  send_locale: string | null;
1517
1900
  topic: string | null;
1518
1901
  provider_id: string;
@@ -1548,6 +1931,8 @@ declare function createNamespaces(config: CoreConfig): {
1548
1931
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
1549
1932
  id: string;
1550
1933
  name: string | null;
1934
+ kind: "broadcast" | "automation" | "notification";
1935
+ template_id: string | null;
1551
1936
  metadata: Record<string, string>;
1552
1937
  subject: string;
1553
1938
  preheader: string | null;
@@ -1561,8 +1946,6 @@ declare function createNamespaces(config: CoreConfig): {
1561
1946
  locale: string;
1562
1947
  created_at: string;
1563
1948
  updated_at: string;
1564
- template_id: string | null;
1565
- kind: "broadcast" | "automation" | "notification";
1566
1949
  send_locale: string | null;
1567
1950
  topic: string | null;
1568
1951
  provider_id: string;
@@ -1600,6 +1983,8 @@ declare function createNamespaces(config: CoreConfig): {
1600
1983
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
1601
1984
  id: string;
1602
1985
  name: string | null;
1986
+ kind: "broadcast" | "automation" | "notification";
1987
+ template_id: string | null;
1603
1988
  metadata: Record<string, string>;
1604
1989
  subject: string;
1605
1990
  preheader: string | null;
@@ -1613,8 +1998,6 @@ declare function createNamespaces(config: CoreConfig): {
1613
1998
  locale: string;
1614
1999
  created_at: string;
1615
2000
  updated_at: string;
1616
- template_id: string | null;
1617
- kind: "broadcast" | "automation" | "notification";
1618
2001
  send_locale: string | null;
1619
2002
  topic: string | null;
1620
2003
  provider_id: string;
@@ -1679,6 +2062,8 @@ declare function createNamespaces(config: CoreConfig): {
1679
2062
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
1680
2063
  id: string;
1681
2064
  name: string | null;
2065
+ kind: "broadcast" | "automation" | "notification";
2066
+ template_id: string | null;
1682
2067
  metadata: Record<string, string>;
1683
2068
  subject: string;
1684
2069
  preheader: string | null;
@@ -1692,8 +2077,6 @@ declare function createNamespaces(config: CoreConfig): {
1692
2077
  locale: string;
1693
2078
  created_at: string;
1694
2079
  updated_at: string;
1695
- template_id: string | null;
1696
- kind: "broadcast" | "automation" | "notification";
1697
2080
  send_locale: string | null;
1698
2081
  topic: string | null;
1699
2082
  provider_id: string;
@@ -1729,6 +2112,8 @@ declare function createNamespaces(config: CoreConfig): {
1729
2112
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
1730
2113
  id: string;
1731
2114
  name: string | null;
2115
+ kind: "broadcast" | "automation" | "notification";
2116
+ template_id: string | null;
1732
2117
  metadata: Record<string, string>;
1733
2118
  subject: string;
1734
2119
  preheader: string | null;
@@ -1742,8 +2127,6 @@ declare function createNamespaces(config: CoreConfig): {
1742
2127
  locale: string;
1743
2128
  created_at: string;
1744
2129
  updated_at: string;
1745
- template_id: string | null;
1746
- kind: "broadcast" | "automation" | "notification";
1747
2130
  send_locale: string | null;
1748
2131
  topic: string | null;
1749
2132
  provider_id: string;
@@ -1779,6 +2162,8 @@ declare function createNamespaces(config: CoreConfig): {
1779
2162
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
1780
2163
  id: string;
1781
2164
  name: string | null;
2165
+ kind: "broadcast" | "automation" | "notification";
2166
+ template_id: string | null;
1782
2167
  metadata: Record<string, string>;
1783
2168
  subject: string;
1784
2169
  preheader: string | null;
@@ -1792,8 +2177,6 @@ declare function createNamespaces(config: CoreConfig): {
1792
2177
  locale: string;
1793
2178
  created_at: string;
1794
2179
  updated_at: string;
1795
- template_id: string | null;
1796
- kind: "broadcast" | "automation" | "notification";
1797
2180
  send_locale: string | null;
1798
2181
  topic: string | null;
1799
2182
  provider_id: string;
@@ -1829,6 +2212,8 @@ declare function createNamespaces(config: CoreConfig): {
1829
2212
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
1830
2213
  id: string;
1831
2214
  name: string | null;
2215
+ kind: "broadcast" | "automation" | "notification";
2216
+ template_id: string | null;
1832
2217
  metadata: Record<string, string>;
1833
2218
  subject: string;
1834
2219
  preheader: string | null;
@@ -1842,8 +2227,6 @@ declare function createNamespaces(config: CoreConfig): {
1842
2227
  locale: string;
1843
2228
  created_at: string;
1844
2229
  updated_at: string;
1845
- template_id: string | null;
1846
- kind: "broadcast" | "automation" | "notification";
1847
2230
  send_locale: string | null;
1848
2231
  topic: string | null;
1849
2232
  provider_id: string;
@@ -1879,6 +2262,8 @@ declare function createNamespaces(config: CoreConfig): {
1879
2262
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
1880
2263
  id: string;
1881
2264
  name: string | null;
2265
+ kind: "broadcast" | "automation" | "notification";
2266
+ template_id: string | null;
1882
2267
  metadata: Record<string, string>;
1883
2268
  subject: string;
1884
2269
  preheader: string | null;
@@ -1892,8 +2277,6 @@ declare function createNamespaces(config: CoreConfig): {
1892
2277
  locale: string;
1893
2278
  created_at: string;
1894
2279
  updated_at: string;
1895
- template_id: string | null;
1896
- kind: "broadcast" | "automation" | "notification";
1897
2280
  send_locale: string | null;
1898
2281
  topic: string | null;
1899
2282
  provider_id: string;
@@ -1929,6 +2312,8 @@ declare function createNamespaces(config: CoreConfig): {
1929
2312
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
1930
2313
  id: string;
1931
2314
  name: string | null;
2315
+ kind: "broadcast" | "automation" | "notification";
2316
+ template_id: string | null;
1932
2317
  metadata: Record<string, string>;
1933
2318
  subject: string;
1934
2319
  preheader: string | null;
@@ -1942,8 +2327,6 @@ declare function createNamespaces(config: CoreConfig): {
1942
2327
  locale: string;
1943
2328
  created_at: string;
1944
2329
  updated_at: string;
1945
- template_id: string | null;
1946
- kind: "broadcast" | "automation" | "notification";
1947
2330
  send_locale: string | null;
1948
2331
  topic: string | null;
1949
2332
  provider_id: string;
@@ -1987,6 +2370,8 @@ declare function createNamespaces(config: CoreConfig): {
1987
2370
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
1988
2371
  id: string;
1989
2372
  name: string | null;
2373
+ kind: "broadcast" | "automation" | "notification";
2374
+ template_id: string | null;
1990
2375
  metadata: Record<string, string>;
1991
2376
  subject: string;
1992
2377
  preheader: string | null;
@@ -2000,8 +2385,6 @@ declare function createNamespaces(config: CoreConfig): {
2000
2385
  locale: string;
2001
2386
  created_at: string;
2002
2387
  updated_at: string;
2003
- template_id: string | null;
2004
- kind: "broadcast" | "automation" | "notification";
2005
2388
  send_locale: string | null;
2006
2389
  topic: string | null;
2007
2390
  provider_id: string;
@@ -2037,6 +2420,8 @@ declare function createNamespaces(config: CoreConfig): {
2037
2420
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
2038
2421
  id: string;
2039
2422
  name: string | null;
2423
+ kind: "broadcast" | "automation" | "notification";
2424
+ template_id: string | null;
2040
2425
  metadata: Record<string, string>;
2041
2426
  subject: string;
2042
2427
  preheader: string | null;
@@ -2050,8 +2435,6 @@ declare function createNamespaces(config: CoreConfig): {
2050
2435
  locale: string;
2051
2436
  created_at: string;
2052
2437
  updated_at: string;
2053
- template_id: string | null;
2054
- kind: "broadcast" | "automation" | "notification";
2055
2438
  send_locale: string | null;
2056
2439
  topic: string | null;
2057
2440
  provider_id: string;
@@ -2087,6 +2470,8 @@ declare function createNamespaces(config: CoreConfig): {
2087
2470
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
2088
2471
  id: string;
2089
2472
  name: string | null;
2473
+ kind: "broadcast" | "automation" | "notification";
2474
+ template_id: string | null;
2090
2475
  metadata: Record<string, string>;
2091
2476
  subject: string;
2092
2477
  preheader: string | null;
@@ -2100,8 +2485,6 @@ declare function createNamespaces(config: CoreConfig): {
2100
2485
  locale: string;
2101
2486
  created_at: string;
2102
2487
  updated_at: string;
2103
- template_id: string | null;
2104
- kind: "broadcast" | "automation" | "notification";
2105
2488
  send_locale: string | null;
2106
2489
  topic: string | null;
2107
2490
  provider_id: string;
@@ -2137,6 +2520,8 @@ declare function createNamespaces(config: CoreConfig): {
2137
2520
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
2138
2521
  id: string;
2139
2522
  name: string | null;
2523
+ kind: "broadcast" | "automation" | "notification";
2524
+ template_id: string | null;
2140
2525
  metadata: Record<string, string>;
2141
2526
  subject: string;
2142
2527
  preheader: string | null;
@@ -2150,8 +2535,6 @@ declare function createNamespaces(config: CoreConfig): {
2150
2535
  locale: string;
2151
2536
  created_at: string;
2152
2537
  updated_at: string;
2153
- template_id: string | null;
2154
- kind: "broadcast" | "automation" | "notification";
2155
2538
  send_locale: string | null;
2156
2539
  topic: string | null;
2157
2540
  provider_id: string;
@@ -2187,6 +2570,8 @@ declare function createNamespaces(config: CoreConfig): {
2187
2570
  status: "draft" | "scheduled" | "sending" | "paused" | "sent" | "partially_failed" | "cancelled";
2188
2571
  id: string;
2189
2572
  name: string | null;
2573
+ kind: "broadcast" | "automation" | "notification";
2574
+ template_id: string | null;
2190
2575
  metadata: Record<string, string>;
2191
2576
  subject: string;
2192
2577
  preheader: string | null;
@@ -2200,8 +2585,6 @@ declare function createNamespaces(config: CoreConfig): {
2200
2585
  locale: string;
2201
2586
  created_at: string;
2202
2587
  updated_at: string;
2203
- template_id: string | null;
2204
- kind: "broadcast" | "automation" | "notification";
2205
2588
  send_locale: string | null;
2206
2589
  topic: string | null;
2207
2590
  provider_id: string;
@@ -3051,9 +3434,11 @@ declare function createNamespaces(config: CoreConfig): {
3051
3434
  })[];
3052
3435
  entry: string | null;
3053
3436
  steps: Record<string, {
3054
- subject: string;
3055
3437
  kind: "email";
3438
+ subject: string;
3056
3439
  next: string | null;
3440
+ label?: string | null | undefined;
3441
+ template_id?: string | null | undefined;
3057
3442
  preheader?: string | null | undefined;
3058
3443
  document?: zod.objectOutputType<{
3059
3444
  version: zod.ZodEnum<["1.0", "1.1"]>;
@@ -3084,8 +3469,6 @@ declare function createNamespaces(config: CoreConfig): {
3084
3469
  choices: Record<string, string>;
3085
3470
  }> | null | undefined;
3086
3471
  }> | null | undefined;
3087
- template_id?: string | null | undefined;
3088
- label?: string | null | undefined;
3089
3472
  } | {
3090
3473
  kind: "delay";
3091
3474
  next: string | null;
@@ -3141,8 +3524,8 @@ declare function createNamespaces(config: CoreConfig): {
3141
3524
  label?: string | null | undefined;
3142
3525
  payload?: _marlinjai_mail_contract.JsonValue | undefined;
3143
3526
  } | {
3144
- subject: string;
3145
3527
  kind: "notify";
3528
+ subject: string;
3146
3529
  to: "owner" | "admins" | {
3147
3530
  member_id: string;
3148
3531
  };
@@ -3230,9 +3613,11 @@ declare function createNamespaces(config: CoreConfig): {
3230
3613
  })[];
3231
3614
  entry: string | null;
3232
3615
  steps: Record<string, {
3233
- subject: string;
3234
3616
  kind: "email";
3617
+ subject: string;
3235
3618
  next: string | null;
3619
+ label?: string | null | undefined;
3620
+ template_id?: string | null | undefined;
3236
3621
  preheader?: string | null | undefined;
3237
3622
  document?: zod.objectOutputType<{
3238
3623
  version: zod.ZodEnum<["1.0", "1.1"]>;
@@ -3263,8 +3648,6 @@ declare function createNamespaces(config: CoreConfig): {
3263
3648
  choices: Record<string, string>;
3264
3649
  }> | null | undefined;
3265
3650
  }> | null | undefined;
3266
- template_id?: string | null | undefined;
3267
- label?: string | null | undefined;
3268
3651
  } | {
3269
3652
  kind: "delay";
3270
3653
  next: string | null;
@@ -3320,8 +3703,8 @@ declare function createNamespaces(config: CoreConfig): {
3320
3703
  label?: string | null | undefined;
3321
3704
  payload?: _marlinjai_mail_contract.JsonValue | undefined;
3322
3705
  } | {
3323
- subject: string;
3324
3706
  kind: "notify";
3707
+ subject: string;
3325
3708
  to: "owner" | "admins" | {
3326
3709
  member_id: string;
3327
3710
  };
@@ -3438,9 +3821,11 @@ declare function createNamespaces(config: CoreConfig): {
3438
3821
  })[];
3439
3822
  entry: string | null;
3440
3823
  steps: Record<string, {
3441
- subject: string;
3442
3824
  kind: "email";
3825
+ subject: string;
3443
3826
  next: string | null;
3827
+ label?: string | null | undefined;
3828
+ template_id?: string | null | undefined;
3444
3829
  preheader?: string | null | undefined;
3445
3830
  document?: zod.objectOutputType<{
3446
3831
  version: zod.ZodEnum<["1.0", "1.1"]>;
@@ -3471,8 +3856,6 @@ declare function createNamespaces(config: CoreConfig): {
3471
3856
  choices: Record<string, string>;
3472
3857
  }> | null | undefined;
3473
3858
  }> | null | undefined;
3474
- template_id?: string | null | undefined;
3475
- label?: string | null | undefined;
3476
3859
  } | {
3477
3860
  kind: "delay";
3478
3861
  next: string | null;
@@ -3528,8 +3911,8 @@ declare function createNamespaces(config: CoreConfig): {
3528
3911
  label?: string | null | undefined;
3529
3912
  payload?: _marlinjai_mail_contract.JsonValue | undefined;
3530
3913
  } | {
3531
- subject: string;
3532
3914
  kind: "notify";
3915
+ subject: string;
3533
3916
  to: "owner" | "admins" | {
3534
3917
  member_id: string;
3535
3918
  };
@@ -3617,9 +4000,11 @@ declare function createNamespaces(config: CoreConfig): {
3617
4000
  })[];
3618
4001
  entry: string | null;
3619
4002
  steps: Record<string, {
3620
- subject: string;
3621
4003
  kind: "email";
4004
+ subject: string;
3622
4005
  next: string | null;
4006
+ label?: string | null | undefined;
4007
+ template_id?: string | null | undefined;
3623
4008
  preheader?: string | null | undefined;
3624
4009
  document?: zod.objectOutputType<{
3625
4010
  version: zod.ZodEnum<["1.0", "1.1"]>;
@@ -3650,8 +4035,6 @@ declare function createNamespaces(config: CoreConfig): {
3650
4035
  choices: Record<string, string>;
3651
4036
  }> | null | undefined;
3652
4037
  }> | null | undefined;
3653
- template_id?: string | null | undefined;
3654
- label?: string | null | undefined;
3655
4038
  } | {
3656
4039
  kind: "delay";
3657
4040
  next: string | null;
@@ -3707,8 +4090,8 @@ declare function createNamespaces(config: CoreConfig): {
3707
4090
  label?: string | null | undefined;
3708
4091
  payload?: _marlinjai_mail_contract.JsonValue | undefined;
3709
4092
  } | {
3710
- subject: string;
3711
4093
  kind: "notify";
4094
+ subject: string;
3712
4095
  to: "owner" | "admins" | {
3713
4096
  member_id: string;
3714
4097
  };
@@ -3826,9 +4209,11 @@ declare function createNamespaces(config: CoreConfig): {
3826
4209
  })[];
3827
4210
  entry: string | null;
3828
4211
  steps: Record<string, {
3829
- subject: string;
3830
4212
  kind: "email";
4213
+ subject: string;
3831
4214
  next: string | null;
4215
+ label?: string | null | undefined;
4216
+ template_id?: string | null | undefined;
3832
4217
  preheader?: string | null | undefined;
3833
4218
  document?: zod.objectOutputType<{
3834
4219
  version: zod.ZodEnum<["1.0", "1.1"]>;
@@ -3859,8 +4244,6 @@ declare function createNamespaces(config: CoreConfig): {
3859
4244
  choices: Record<string, string>;
3860
4245
  }> | null | undefined;
3861
4246
  }> | null | undefined;
3862
- template_id?: string | null | undefined;
3863
- label?: string | null | undefined;
3864
4247
  } | {
3865
4248
  kind: "delay";
3866
4249
  next: string | null;
@@ -3916,8 +4299,8 @@ declare function createNamespaces(config: CoreConfig): {
3916
4299
  label?: string | null | undefined;
3917
4300
  payload?: _marlinjai_mail_contract.JsonValue | undefined;
3918
4301
  } | {
3919
- subject: string;
3920
4302
  kind: "notify";
4303
+ subject: string;
3921
4304
  to: "owner" | "admins" | {
3922
4305
  member_id: string;
3923
4306
  };
@@ -4005,9 +4388,11 @@ declare function createNamespaces(config: CoreConfig): {
4005
4388
  })[];
4006
4389
  entry: string | null;
4007
4390
  steps: Record<string, {
4008
- subject: string;
4009
4391
  kind: "email";
4392
+ subject: string;
4010
4393
  next: string | null;
4394
+ label?: string | null | undefined;
4395
+ template_id?: string | null | undefined;
4011
4396
  preheader?: string | null | undefined;
4012
4397
  document?: zod.objectOutputType<{
4013
4398
  version: zod.ZodEnum<["1.0", "1.1"]>;
@@ -4038,8 +4423,6 @@ declare function createNamespaces(config: CoreConfig): {
4038
4423
  choices: Record<string, string>;
4039
4424
  }> | null | undefined;
4040
4425
  }> | null | undefined;
4041
- template_id?: string | null | undefined;
4042
- label?: string | null | undefined;
4043
4426
  } | {
4044
4427
  kind: "delay";
4045
4428
  next: string | null;
@@ -4095,8 +4478,8 @@ declare function createNamespaces(config: CoreConfig): {
4095
4478
  label?: string | null | undefined;
4096
4479
  payload?: _marlinjai_mail_contract.JsonValue | undefined;
4097
4480
  } | {
4098
- subject: string;
4099
4481
  kind: "notify";
4482
+ subject: string;
4100
4483
  to: "owner" | "admins" | {
4101
4484
  member_id: string;
4102
4485
  };
@@ -4363,9 +4746,11 @@ declare function createNamespaces(config: CoreConfig): {
4363
4746
  })[];
4364
4747
  entry: string | null;
4365
4748
  steps: Record<string, {
4366
- subject: string;
4367
4749
  kind: "email";
4750
+ subject: string;
4368
4751
  next: string | null;
4752
+ label?: string | null | undefined;
4753
+ template_id?: string | null | undefined;
4369
4754
  preheader?: string | null | undefined;
4370
4755
  document?: zod.objectOutputType<{
4371
4756
  version: zod.ZodEnum<["1.0", "1.1"]>;
@@ -4396,8 +4781,6 @@ declare function createNamespaces(config: CoreConfig): {
4396
4781
  choices: Record<string, string>;
4397
4782
  }> | null | undefined;
4398
4783
  }> | null | undefined;
4399
- template_id?: string | null | undefined;
4400
- label?: string | null | undefined;
4401
4784
  } | {
4402
4785
  kind: "delay";
4403
4786
  next: string | null;
@@ -4453,8 +4836,8 @@ declare function createNamespaces(config: CoreConfig): {
4453
4836
  label?: string | null | undefined;
4454
4837
  payload?: _marlinjai_mail_contract.JsonValue | undefined;
4455
4838
  } | {
4456
- subject: string;
4457
4839
  kind: "notify";
4840
+ subject: string;
4458
4841
  to: "owner" | "admins" | {
4459
4842
  member_id: string;
4460
4843
  };
@@ -4542,9 +4925,11 @@ declare function createNamespaces(config: CoreConfig): {
4542
4925
  })[];
4543
4926
  entry: string | null;
4544
4927
  steps: Record<string, {
4545
- subject: string;
4546
4928
  kind: "email";
4929
+ subject: string;
4547
4930
  next: string | null;
4931
+ label?: string | null | undefined;
4932
+ template_id?: string | null | undefined;
4548
4933
  preheader?: string | null | undefined;
4549
4934
  document?: zod.objectOutputType<{
4550
4935
  version: zod.ZodEnum<["1.0", "1.1"]>;
@@ -4575,8 +4960,6 @@ declare function createNamespaces(config: CoreConfig): {
4575
4960
  choices: Record<string, string>;
4576
4961
  }> | null | undefined;
4577
4962
  }> | null | undefined;
4578
- template_id?: string | null | undefined;
4579
- label?: string | null | undefined;
4580
4963
  } | {
4581
4964
  kind: "delay";
4582
4965
  next: string | null;
@@ -4632,8 +5015,8 @@ declare function createNamespaces(config: CoreConfig): {
4632
5015
  label?: string | null | undefined;
4633
5016
  payload?: _marlinjai_mail_contract.JsonValue | undefined;
4634
5017
  } | {
4635
- subject: string;
4636
5018
  kind: "notify";
5019
+ subject: string;
4637
5020
  to: "owner" | "admins" | {
4638
5021
  member_id: string;
4639
5022
  };