@marlinjai/mail-contract 0.9.0 → 0.10.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 CHANGED
@@ -10584,6 +10584,14 @@ declare const Mailing: z.ZodObject<{
10584
10584
  * language: without a ready version in it, the main language goes out.
10585
10585
  */
10586
10586
  send_locale: z.ZodNullable<z.ZodString>;
10587
+ /**
10588
+ * The template's language version the mailing was written from
10589
+ * (`MailingCreate.template_locale`), or null. When set, it equals `locale`
10590
+ * and `send_locale`: the mailing is one letter in that language, and the
10591
+ * template's other versions never go out with it (see "Writing from one
10592
+ * language version" in the contract's documentation).
10593
+ */
10594
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10587
10595
  /**
10588
10596
  * The topic the mailing is sent under. Null for a letter (a one-to-one
10589
10597
  * mailing with at most one recipient, which belongs to no topic and whose
@@ -10699,6 +10707,7 @@ declare const Mailing: z.ZodObject<{
10699
10707
  created_at: string;
10700
10708
  updated_at: string;
10701
10709
  send_locale: string | null;
10710
+ template_locale: string | null;
10702
10711
  topic: string | null;
10703
10712
  provider_id: string;
10704
10713
  counts: {
@@ -10776,6 +10785,7 @@ declare const Mailing: z.ZodObject<{
10776
10785
  } | null;
10777
10786
  started_at: string | null;
10778
10787
  finished_at: string | null;
10788
+ template_locale?: string | null | undefined;
10779
10789
  pause_reason?: string | null | undefined;
10780
10790
  }>;
10781
10791
  type Mailing = z.infer<typeof Mailing>;
@@ -10820,6 +10830,14 @@ declare const MailingSummary: z.ZodObject<Omit<{
10820
10830
  * language: without a ready version in it, the main language goes out.
10821
10831
  */
10822
10832
  send_locale: z.ZodNullable<z.ZodString>;
10833
+ /**
10834
+ * The template's language version the mailing was written from
10835
+ * (`MailingCreate.template_locale`), or null. When set, it equals `locale`
10836
+ * and `send_locale`: the mailing is one letter in that language, and the
10837
+ * template's other versions never go out with it (see "Writing from one
10838
+ * language version" in the contract's documentation).
10839
+ */
10840
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10823
10841
  /**
10824
10842
  * The topic the mailing is sent under. Null for a letter (a one-to-one
10825
10843
  * mailing with at most one recipient, which belongs to no topic and whose
@@ -10928,6 +10946,7 @@ declare const MailingSummary: z.ZodObject<Omit<{
10928
10946
  created_at: string;
10929
10947
  updated_at: string;
10930
10948
  send_locale: string | null;
10949
+ template_locale: string | null;
10931
10950
  topic: string | null;
10932
10951
  provider_id: string;
10933
10952
  counts: {
@@ -10998,6 +11017,7 @@ declare const MailingSummary: z.ZodObject<Omit<{
10998
11017
  } | null;
10999
11018
  started_at: string | null;
11000
11019
  finished_at: string | null;
11020
+ template_locale?: string | null | undefined;
11001
11021
  pause_reason?: string | null | undefined;
11002
11022
  }>;
11003
11023
  type MailingSummary = z.infer<typeof MailingSummary>;
@@ -11011,8 +11031,19 @@ type MailingSummary = z.infer<typeof MailingSummary>;
11011
11031
  * has a different one, it is refused (`validation_failed`,
11012
11032
  * `details.reason: "subject_from_template"`), since the subject belongs with
11013
11033
  * the template's text in each language. The same holds for `preheader`.
11034
+ *
11035
+ * `template_locale` writes the mailing from one language version of the
11036
+ * template, the main one or a translation, draft or ready: its document,
11037
+ * subject and preheader (the same rules as above, against that version), and
11038
+ * `locale` and `send_locale` set to it. The mailing then sends that one
11039
+ * version and none of the template's others. A language the template has no
11040
+ * version in is `validation_failed` with `details.reason:
11041
+ * "template_locale_missing"` and the template's languages in
11042
+ * `details.languages`; a version missing a text for one of its insertions is
11043
+ * `"template_locale_incomplete"`; a different `send_locale`, or null, is
11044
+ * `"send_locale_from_template_locale"`.
11014
11045
  */
11015
- declare const MailingCreate: z.ZodEffects<z.ZodEffects<z.ZodObject<{
11046
+ declare const MailingCreate: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
11016
11047
  subject: z.ZodOptional<z.ZodString>;
11017
11048
  document: z.ZodOptional<z.ZodObject<{
11018
11049
  version: z.ZodEnum<["1.0", "1.1"]>;
@@ -11028,6 +11059,7 @@ declare const MailingCreate: z.ZodEffects<z.ZodEffects<z.ZodObject<{
11028
11059
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
11029
11060
  }, z.ZodTypeAny, "passthrough">>>;
11030
11061
  template_id: z.ZodOptional<z.ZodString>;
11062
+ template_locale: z.ZodOptional<z.ZodString>;
11031
11063
  name: z.ZodOptional<z.ZodString>;
11032
11064
  preheader: z.ZodOptional<z.ZodString>;
11033
11065
  /** See `Mailing.send_locale`. */
@@ -11054,6 +11086,7 @@ declare const MailingCreate: z.ZodEffects<z.ZodEffects<z.ZodObject<{
11054
11086
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
11055
11087
  }, z.ZodTypeAny, "passthrough"> | undefined;
11056
11088
  send_locale?: string | null | undefined;
11089
+ template_locale?: string | undefined;
11057
11090
  topic?: string | null | undefined;
11058
11091
  }, {
11059
11092
  provider_id: string;
@@ -11068,6 +11101,7 @@ declare const MailingCreate: z.ZodEffects<z.ZodEffects<z.ZodObject<{
11068
11101
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
11069
11102
  }, z.ZodTypeAny, "passthrough"> | undefined;
11070
11103
  send_locale?: string | null | undefined;
11104
+ template_locale?: string | undefined;
11071
11105
  topic?: string | null | undefined;
11072
11106
  }>, {
11073
11107
  provider_id: string;
@@ -11082,6 +11116,7 @@ declare const MailingCreate: z.ZodEffects<z.ZodEffects<z.ZodObject<{
11082
11116
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
11083
11117
  }, z.ZodTypeAny, "passthrough"> | undefined;
11084
11118
  send_locale?: string | null | undefined;
11119
+ template_locale?: string | undefined;
11085
11120
  topic?: string | null | undefined;
11086
11121
  }, {
11087
11122
  provider_id: string;
@@ -11096,6 +11131,7 @@ declare const MailingCreate: z.ZodEffects<z.ZodEffects<z.ZodObject<{
11096
11131
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
11097
11132
  }, z.ZodTypeAny, "passthrough"> | undefined;
11098
11133
  send_locale?: string | null | undefined;
11134
+ template_locale?: string | undefined;
11099
11135
  topic?: string | null | undefined;
11100
11136
  }>, {
11101
11137
  provider_id: string;
@@ -11110,6 +11146,7 @@ declare const MailingCreate: z.ZodEffects<z.ZodEffects<z.ZodObject<{
11110
11146
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
11111
11147
  }, z.ZodTypeAny, "passthrough"> | undefined;
11112
11148
  send_locale?: string | null | undefined;
11149
+ template_locale?: string | undefined;
11113
11150
  topic?: string | null | undefined;
11114
11151
  }, {
11115
11152
  provider_id: string;
@@ -11124,6 +11161,37 @@ declare const MailingCreate: z.ZodEffects<z.ZodEffects<z.ZodObject<{
11124
11161
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
11125
11162
  }, z.ZodTypeAny, "passthrough"> | undefined;
11126
11163
  send_locale?: string | null | undefined;
11164
+ template_locale?: string | undefined;
11165
+ topic?: string | null | undefined;
11166
+ }>, {
11167
+ provider_id: string;
11168
+ name?: string | undefined;
11169
+ template_id?: string | undefined;
11170
+ metadata?: Record<string, string> | undefined;
11171
+ subject?: string | undefined;
11172
+ preheader?: string | undefined;
11173
+ document?: z.objectOutputType<{
11174
+ version: z.ZodEnum<["1.0", "1.1"]>;
11175
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11176
+ sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
11177
+ }, z.ZodTypeAny, "passthrough"> | undefined;
11178
+ send_locale?: string | null | undefined;
11179
+ template_locale?: string | undefined;
11180
+ topic?: string | null | undefined;
11181
+ }, {
11182
+ provider_id: string;
11183
+ name?: string | undefined;
11184
+ template_id?: string | undefined;
11185
+ metadata?: Record<string, string> | undefined;
11186
+ subject?: string | undefined;
11187
+ preheader?: string | undefined;
11188
+ document?: z.objectInputType<{
11189
+ version: z.ZodEnum<["1.0", "1.1"]>;
11190
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11191
+ sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
11192
+ }, z.ZodTypeAny, "passthrough"> | undefined;
11193
+ send_locale?: string | null | undefined;
11194
+ template_locale?: string | undefined;
11127
11195
  topic?: string | null | undefined;
11128
11196
  }>;
11129
11197
  type MailingCreate = z.infer<typeof MailingCreate>;
@@ -40417,6 +40485,7 @@ declare const sendingRoutes: {
40417
40485
  }, z.ZodTypeAny, "passthrough">>;
40418
40486
  locale: z.ZodString;
40419
40487
  send_locale: z.ZodNullable<z.ZodString>;
40488
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
40420
40489
  topic: z.ZodNullable<z.ZodString>;
40421
40490
  provider_id: z.ZodString;
40422
40491
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -40513,6 +40582,7 @@ declare const sendingRoutes: {
40513
40582
  created_at: string;
40514
40583
  updated_at: string;
40515
40584
  send_locale: string | null;
40585
+ template_locale: string | null;
40516
40586
  topic: string | null;
40517
40587
  provider_id: string;
40518
40588
  counts: {
@@ -40583,6 +40653,7 @@ declare const sendingRoutes: {
40583
40653
  } | null;
40584
40654
  started_at: string | null;
40585
40655
  finished_at: string | null;
40656
+ template_locale?: string | null | undefined;
40586
40657
  pause_reason?: string | null | undefined;
40587
40658
  }>, "many">;
40588
40659
  next_cursor: z.ZodNullable<z.ZodString>;
@@ -40600,6 +40671,7 @@ declare const sendingRoutes: {
40600
40671
  created_at: string;
40601
40672
  updated_at: string;
40602
40673
  send_locale: string | null;
40674
+ template_locale: string | null;
40603
40675
  topic: string | null;
40604
40676
  provider_id: string;
40605
40677
  counts: {
@@ -40673,6 +40745,7 @@ declare const sendingRoutes: {
40673
40745
  } | null;
40674
40746
  started_at: string | null;
40675
40747
  finished_at: string | null;
40748
+ template_locale?: string | null | undefined;
40676
40749
  pause_reason?: string | null | undefined;
40677
40750
  }[];
40678
40751
  next_cursor: string | null;
@@ -40684,7 +40757,7 @@ declare const sendingRoutes: {
40684
40757
  readonly 'mailings.create': {
40685
40758
  readonly method: "POST";
40686
40759
  readonly path: "/v1/mailings";
40687
- readonly body: z.ZodEffects<z.ZodEffects<z.ZodObject<{
40760
+ readonly body: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
40688
40761
  subject: z.ZodOptional<z.ZodString>;
40689
40762
  document: z.ZodOptional<z.ZodObject<{
40690
40763
  version: z.ZodEnum<["1.0", "1.1"]>;
@@ -40700,6 +40773,7 @@ declare const sendingRoutes: {
40700
40773
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
40701
40774
  }, z.ZodTypeAny, "passthrough">>>;
40702
40775
  template_id: z.ZodOptional<z.ZodString>;
40776
+ template_locale: z.ZodOptional<z.ZodString>;
40703
40777
  name: z.ZodOptional<z.ZodString>;
40704
40778
  preheader: z.ZodOptional<z.ZodString>;
40705
40779
  send_locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40719,6 +40793,7 @@ declare const sendingRoutes: {
40719
40793
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
40720
40794
  }, z.ZodTypeAny, "passthrough"> | undefined;
40721
40795
  send_locale?: string | null | undefined;
40796
+ template_locale?: string | undefined;
40722
40797
  topic?: string | null | undefined;
40723
40798
  }, {
40724
40799
  provider_id: string;
@@ -40733,6 +40808,7 @@ declare const sendingRoutes: {
40733
40808
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
40734
40809
  }, z.ZodTypeAny, "passthrough"> | undefined;
40735
40810
  send_locale?: string | null | undefined;
40811
+ template_locale?: string | undefined;
40736
40812
  topic?: string | null | undefined;
40737
40813
  }>, {
40738
40814
  provider_id: string;
@@ -40747,6 +40823,7 @@ declare const sendingRoutes: {
40747
40823
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
40748
40824
  }, z.ZodTypeAny, "passthrough"> | undefined;
40749
40825
  send_locale?: string | null | undefined;
40826
+ template_locale?: string | undefined;
40750
40827
  topic?: string | null | undefined;
40751
40828
  }, {
40752
40829
  provider_id: string;
@@ -40761,6 +40838,7 @@ declare const sendingRoutes: {
40761
40838
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
40762
40839
  }, z.ZodTypeAny, "passthrough"> | undefined;
40763
40840
  send_locale?: string | null | undefined;
40841
+ template_locale?: string | undefined;
40764
40842
  topic?: string | null | undefined;
40765
40843
  }>, {
40766
40844
  provider_id: string;
@@ -40775,6 +40853,7 @@ declare const sendingRoutes: {
40775
40853
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
40776
40854
  }, z.ZodTypeAny, "passthrough"> | undefined;
40777
40855
  send_locale?: string | null | undefined;
40856
+ template_locale?: string | undefined;
40778
40857
  topic?: string | null | undefined;
40779
40858
  }, {
40780
40859
  provider_id: string;
@@ -40789,6 +40868,37 @@ declare const sendingRoutes: {
40789
40868
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
40790
40869
  }, z.ZodTypeAny, "passthrough"> | undefined;
40791
40870
  send_locale?: string | null | undefined;
40871
+ template_locale?: string | undefined;
40872
+ topic?: string | null | undefined;
40873
+ }>, {
40874
+ provider_id: string;
40875
+ name?: string | undefined;
40876
+ template_id?: string | undefined;
40877
+ metadata?: Record<string, string> | undefined;
40878
+ subject?: string | undefined;
40879
+ preheader?: string | undefined;
40880
+ document?: z.objectOutputType<{
40881
+ version: z.ZodEnum<["1.0", "1.1"]>;
40882
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
40883
+ sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
40884
+ }, z.ZodTypeAny, "passthrough"> | undefined;
40885
+ send_locale?: string | null | undefined;
40886
+ template_locale?: string | undefined;
40887
+ topic?: string | null | undefined;
40888
+ }, {
40889
+ provider_id: string;
40890
+ name?: string | undefined;
40891
+ template_id?: string | undefined;
40892
+ metadata?: Record<string, string> | undefined;
40893
+ subject?: string | undefined;
40894
+ preheader?: string | undefined;
40895
+ document?: z.objectInputType<{
40896
+ version: z.ZodEnum<["1.0", "1.1"]>;
40897
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
40898
+ sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
40899
+ }, z.ZodTypeAny, "passthrough"> | undefined;
40900
+ send_locale?: string | null | undefined;
40901
+ template_locale?: string | undefined;
40792
40902
  topic?: string | null | undefined;
40793
40903
  }>;
40794
40904
  readonly response: z.ZodObject<{
@@ -40813,6 +40923,7 @@ declare const sendingRoutes: {
40813
40923
  }, z.ZodTypeAny, "passthrough">>;
40814
40924
  locale: z.ZodString;
40815
40925
  send_locale: z.ZodNullable<z.ZodString>;
40926
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
40816
40927
  topic: z.ZodNullable<z.ZodString>;
40817
40928
  provider_id: z.ZodString;
40818
40929
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -40916,6 +41027,7 @@ declare const sendingRoutes: {
40916
41027
  created_at: string;
40917
41028
  updated_at: string;
40918
41029
  send_locale: string | null;
41030
+ template_locale: string | null;
40919
41031
  topic: string | null;
40920
41032
  provider_id: string;
40921
41033
  counts: {
@@ -40993,6 +41105,7 @@ declare const sendingRoutes: {
40993
41105
  } | null;
40994
41106
  started_at: string | null;
40995
41107
  finished_at: string | null;
41108
+ template_locale?: string | null | undefined;
40996
41109
  pause_reason?: string | null | undefined;
40997
41110
  }>;
40998
41111
  readonly status: 201;
@@ -41031,6 +41144,7 @@ declare const sendingRoutes: {
41031
41144
  }, z.ZodTypeAny, "passthrough">>;
41032
41145
  locale: z.ZodString;
41033
41146
  send_locale: z.ZodNullable<z.ZodString>;
41147
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
41034
41148
  topic: z.ZodNullable<z.ZodString>;
41035
41149
  provider_id: z.ZodString;
41036
41150
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -41134,6 +41248,7 @@ declare const sendingRoutes: {
41134
41248
  created_at: string;
41135
41249
  updated_at: string;
41136
41250
  send_locale: string | null;
41251
+ template_locale: string | null;
41137
41252
  topic: string | null;
41138
41253
  provider_id: string;
41139
41254
  counts: {
@@ -41211,6 +41326,7 @@ declare const sendingRoutes: {
41211
41326
  } | null;
41212
41327
  started_at: string | null;
41213
41328
  finished_at: string | null;
41329
+ template_locale?: string | null | undefined;
41214
41330
  pause_reason?: string | null | undefined;
41215
41331
  }>;
41216
41332
  readonly status: 200;
@@ -41346,6 +41462,7 @@ declare const sendingRoutes: {
41346
41462
  }, z.ZodTypeAny, "passthrough">>;
41347
41463
  locale: z.ZodString;
41348
41464
  send_locale: z.ZodNullable<z.ZodString>;
41465
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
41349
41466
  topic: z.ZodNullable<z.ZodString>;
41350
41467
  provider_id: z.ZodString;
41351
41468
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -41449,6 +41566,7 @@ declare const sendingRoutes: {
41449
41566
  created_at: string;
41450
41567
  updated_at: string;
41451
41568
  send_locale: string | null;
41569
+ template_locale: string | null;
41452
41570
  topic: string | null;
41453
41571
  provider_id: string;
41454
41572
  counts: {
@@ -41526,6 +41644,7 @@ declare const sendingRoutes: {
41526
41644
  } | null;
41527
41645
  started_at: string | null;
41528
41646
  finished_at: string | null;
41647
+ template_locale?: string | null | undefined;
41529
41648
  pause_reason?: string | null | undefined;
41530
41649
  }>;
41531
41650
  readonly status: 200;
@@ -41792,6 +41911,7 @@ declare const sendingRoutes: {
41792
41911
  }, z.ZodTypeAny, "passthrough">>;
41793
41912
  locale: z.ZodString;
41794
41913
  send_locale: z.ZodNullable<z.ZodString>;
41914
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
41795
41915
  topic: z.ZodNullable<z.ZodString>;
41796
41916
  provider_id: z.ZodString;
41797
41917
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -41895,6 +42015,7 @@ declare const sendingRoutes: {
41895
42015
  created_at: string;
41896
42016
  updated_at: string;
41897
42017
  send_locale: string | null;
42018
+ template_locale: string | null;
41898
42019
  topic: string | null;
41899
42020
  provider_id: string;
41900
42021
  counts: {
@@ -41972,6 +42093,7 @@ declare const sendingRoutes: {
41972
42093
  } | null;
41973
42094
  started_at: string | null;
41974
42095
  finished_at: string | null;
42096
+ template_locale?: string | null | undefined;
41975
42097
  pause_reason?: string | null | undefined;
41976
42098
  }>;
41977
42099
  readonly status: 202;
@@ -42011,6 +42133,7 @@ declare const sendingRoutes: {
42011
42133
  }, z.ZodTypeAny, "passthrough">>;
42012
42134
  locale: z.ZodString;
42013
42135
  send_locale: z.ZodNullable<z.ZodString>;
42136
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
42014
42137
  topic: z.ZodNullable<z.ZodString>;
42015
42138
  provider_id: z.ZodString;
42016
42139
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -42114,6 +42237,7 @@ declare const sendingRoutes: {
42114
42237
  created_at: string;
42115
42238
  updated_at: string;
42116
42239
  send_locale: string | null;
42240
+ template_locale: string | null;
42117
42241
  topic: string | null;
42118
42242
  provider_id: string;
42119
42243
  counts: {
@@ -42191,6 +42315,7 @@ declare const sendingRoutes: {
42191
42315
  } | null;
42192
42316
  started_at: string | null;
42193
42317
  finished_at: string | null;
42318
+ template_locale?: string | null | undefined;
42194
42319
  pause_reason?: string | null | undefined;
42195
42320
  }>;
42196
42321
  readonly status: 200;
@@ -42230,6 +42355,7 @@ declare const sendingRoutes: {
42230
42355
  }, z.ZodTypeAny, "passthrough">>;
42231
42356
  locale: z.ZodString;
42232
42357
  send_locale: z.ZodNullable<z.ZodString>;
42358
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
42233
42359
  topic: z.ZodNullable<z.ZodString>;
42234
42360
  provider_id: z.ZodString;
42235
42361
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -42333,6 +42459,7 @@ declare const sendingRoutes: {
42333
42459
  created_at: string;
42334
42460
  updated_at: string;
42335
42461
  send_locale: string | null;
42462
+ template_locale: string | null;
42336
42463
  topic: string | null;
42337
42464
  provider_id: string;
42338
42465
  counts: {
@@ -42410,6 +42537,7 @@ declare const sendingRoutes: {
42410
42537
  } | null;
42411
42538
  started_at: string | null;
42412
42539
  finished_at: string | null;
42540
+ template_locale?: string | null | undefined;
42413
42541
  pause_reason?: string | null | undefined;
42414
42542
  }>;
42415
42543
  readonly status: 202;
@@ -42449,6 +42577,7 @@ declare const sendingRoutes: {
42449
42577
  }, z.ZodTypeAny, "passthrough">>;
42450
42578
  locale: z.ZodString;
42451
42579
  send_locale: z.ZodNullable<z.ZodString>;
42580
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
42452
42581
  topic: z.ZodNullable<z.ZodString>;
42453
42582
  provider_id: z.ZodString;
42454
42583
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -42552,6 +42681,7 @@ declare const sendingRoutes: {
42552
42681
  created_at: string;
42553
42682
  updated_at: string;
42554
42683
  send_locale: string | null;
42684
+ template_locale: string | null;
42555
42685
  topic: string | null;
42556
42686
  provider_id: string;
42557
42687
  counts: {
@@ -42629,6 +42759,7 @@ declare const sendingRoutes: {
42629
42759
  } | null;
42630
42760
  started_at: string | null;
42631
42761
  finished_at: string | null;
42762
+ template_locale?: string | null | undefined;
42632
42763
  pause_reason?: string | null | undefined;
42633
42764
  }>;
42634
42765
  readonly status: 200;
@@ -42674,6 +42805,7 @@ declare const sendingRoutes: {
42674
42805
  }, z.ZodTypeAny, "passthrough">>;
42675
42806
  locale: z.ZodString;
42676
42807
  send_locale: z.ZodNullable<z.ZodString>;
42808
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
42677
42809
  topic: z.ZodNullable<z.ZodString>;
42678
42810
  provider_id: z.ZodString;
42679
42811
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -42777,6 +42909,7 @@ declare const sendingRoutes: {
42777
42909
  created_at: string;
42778
42910
  updated_at: string;
42779
42911
  send_locale: string | null;
42912
+ template_locale: string | null;
42780
42913
  topic: string | null;
42781
42914
  provider_id: string;
42782
42915
  counts: {
@@ -42854,6 +42987,7 @@ declare const sendingRoutes: {
42854
42987
  } | null;
42855
42988
  started_at: string | null;
42856
42989
  finished_at: string | null;
42990
+ template_locale?: string | null | undefined;
42857
42991
  pause_reason?: string | null | undefined;
42858
42992
  }>;
42859
42993
  readonly status: 202;
@@ -42899,6 +43033,7 @@ declare const sendingRoutes: {
42899
43033
  }, z.ZodTypeAny, "passthrough">>;
42900
43034
  locale: z.ZodString;
42901
43035
  send_locale: z.ZodNullable<z.ZodString>;
43036
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
42902
43037
  topic: z.ZodNullable<z.ZodString>;
42903
43038
  provider_id: z.ZodString;
42904
43039
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -43002,6 +43137,7 @@ declare const sendingRoutes: {
43002
43137
  created_at: string;
43003
43138
  updated_at: string;
43004
43139
  send_locale: string | null;
43140
+ template_locale: string | null;
43005
43141
  topic: string | null;
43006
43142
  provider_id: string;
43007
43143
  counts: {
@@ -43079,6 +43215,7 @@ declare const sendingRoutes: {
43079
43215
  } | null;
43080
43216
  started_at: string | null;
43081
43217
  finished_at: string | null;
43218
+ template_locale?: string | null | undefined;
43082
43219
  pause_reason?: string | null | undefined;
43083
43220
  }>;
43084
43221
  readonly status: 201;
@@ -44417,6 +44554,7 @@ declare const platformRoutes: {
44417
44554
  }, z.ZodTypeAny, "passthrough">>;
44418
44555
  locale: z.ZodString;
44419
44556
  send_locale: z.ZodNullable<z.ZodString>;
44557
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
44420
44558
  topic: z.ZodNullable<z.ZodString>;
44421
44559
  provider_id: z.ZodString;
44422
44560
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -44520,6 +44658,7 @@ declare const platformRoutes: {
44520
44658
  created_at: string;
44521
44659
  updated_at: string;
44522
44660
  send_locale: string | null;
44661
+ template_locale: string | null;
44523
44662
  topic: string | null;
44524
44663
  provider_id: string;
44525
44664
  counts: {
@@ -44597,6 +44736,7 @@ declare const platformRoutes: {
44597
44736
  } | null;
44598
44737
  started_at: string | null;
44599
44738
  finished_at: string | null;
44739
+ template_locale?: string | null | undefined;
44600
44740
  pause_reason?: string | null | undefined;
44601
44741
  }>;
44602
44742
  readonly status: 200;
@@ -44637,6 +44777,7 @@ declare const platformRoutes: {
44637
44777
  }, z.ZodTypeAny, "passthrough">>;
44638
44778
  locale: z.ZodString;
44639
44779
  send_locale: z.ZodNullable<z.ZodString>;
44780
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
44640
44781
  topic: z.ZodNullable<z.ZodString>;
44641
44782
  provider_id: z.ZodString;
44642
44783
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -44740,6 +44881,7 @@ declare const platformRoutes: {
44740
44881
  created_at: string;
44741
44882
  updated_at: string;
44742
44883
  send_locale: string | null;
44884
+ template_locale: string | null;
44743
44885
  topic: string | null;
44744
44886
  provider_id: string;
44745
44887
  counts: {
@@ -44817,6 +44959,7 @@ declare const platformRoutes: {
44817
44959
  } | null;
44818
44960
  started_at: string | null;
44819
44961
  finished_at: string | null;
44962
+ template_locale?: string | null | undefined;
44820
44963
  pause_reason?: string | null | undefined;
44821
44964
  }>;
44822
44965
  readonly status: 200;
@@ -44977,6 +45120,7 @@ declare const platformRoutes: {
44977
45120
  }, z.ZodTypeAny, "passthrough">>;
44978
45121
  locale: z.ZodString;
44979
45122
  send_locale: z.ZodNullable<z.ZodString>;
45123
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
44980
45124
  topic: z.ZodNullable<z.ZodString>;
44981
45125
  provider_id: z.ZodString;
44982
45126
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -45080,6 +45224,7 @@ declare const platformRoutes: {
45080
45224
  created_at: string;
45081
45225
  updated_at: string;
45082
45226
  send_locale: string | null;
45227
+ template_locale: string | null;
45083
45228
  topic: string | null;
45084
45229
  provider_id: string;
45085
45230
  counts: {
@@ -45157,6 +45302,7 @@ declare const platformRoutes: {
45157
45302
  } | null;
45158
45303
  started_at: string | null;
45159
45304
  finished_at: string | null;
45305
+ template_locale?: string | null | undefined;
45160
45306
  pause_reason?: string | null | undefined;
45161
45307
  }>;
45162
45308
  readonly status: 200;
@@ -45195,6 +45341,7 @@ declare const platformRoutes: {
45195
45341
  }, z.ZodTypeAny, "passthrough">>;
45196
45342
  locale: z.ZodString;
45197
45343
  send_locale: z.ZodNullable<z.ZodString>;
45344
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
45198
45345
  topic: z.ZodNullable<z.ZodString>;
45199
45346
  provider_id: z.ZodString;
45200
45347
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -45298,6 +45445,7 @@ declare const platformRoutes: {
45298
45445
  created_at: string;
45299
45446
  updated_at: string;
45300
45447
  send_locale: string | null;
45448
+ template_locale: string | null;
45301
45449
  topic: string | null;
45302
45450
  provider_id: string;
45303
45451
  counts: {
@@ -45375,6 +45523,7 @@ declare const platformRoutes: {
45375
45523
  } | null;
45376
45524
  started_at: string | null;
45377
45525
  finished_at: string | null;
45526
+ template_locale?: string | null | undefined;
45378
45527
  pause_reason?: string | null | undefined;
45379
45528
  }>;
45380
45529
  readonly status: 200;
@@ -45421,6 +45570,7 @@ declare const platformRoutes: {
45421
45570
  }, z.ZodTypeAny, "passthrough">>;
45422
45571
  locale: z.ZodString;
45423
45572
  send_locale: z.ZodNullable<z.ZodString>;
45573
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
45424
45574
  topic: z.ZodNullable<z.ZodString>;
45425
45575
  provider_id: z.ZodString;
45426
45576
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -45524,6 +45674,7 @@ declare const platformRoutes: {
45524
45674
  created_at: string;
45525
45675
  updated_at: string;
45526
45676
  send_locale: string | null;
45677
+ template_locale: string | null;
45527
45678
  topic: string | null;
45528
45679
  provider_id: string;
45529
45680
  counts: {
@@ -45601,6 +45752,7 @@ declare const platformRoutes: {
45601
45752
  } | null;
45602
45753
  started_at: string | null;
45603
45754
  finished_at: string | null;
45755
+ template_locale?: string | null | undefined;
45604
45756
  pause_reason?: string | null | undefined;
45605
45757
  }>;
45606
45758
  readonly status: 200;
@@ -86046,6 +86198,7 @@ declare const routes: {
86046
86198
  }, z.ZodTypeAny, "passthrough">>;
86047
86199
  locale: z.ZodString;
86048
86200
  send_locale: z.ZodNullable<z.ZodString>;
86201
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
86049
86202
  topic: z.ZodNullable<z.ZodString>;
86050
86203
  provider_id: z.ZodString;
86051
86204
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -86149,6 +86302,7 @@ declare const routes: {
86149
86302
  created_at: string;
86150
86303
  updated_at: string;
86151
86304
  send_locale: string | null;
86305
+ template_locale: string | null;
86152
86306
  topic: string | null;
86153
86307
  provider_id: string;
86154
86308
  counts: {
@@ -86226,6 +86380,7 @@ declare const routes: {
86226
86380
  } | null;
86227
86381
  started_at: string | null;
86228
86382
  finished_at: string | null;
86383
+ template_locale?: string | null | undefined;
86229
86384
  pause_reason?: string | null | undefined;
86230
86385
  }>;
86231
86386
  readonly status: 200;
@@ -86266,6 +86421,7 @@ declare const routes: {
86266
86421
  }, z.ZodTypeAny, "passthrough">>;
86267
86422
  locale: z.ZodString;
86268
86423
  send_locale: z.ZodNullable<z.ZodString>;
86424
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
86269
86425
  topic: z.ZodNullable<z.ZodString>;
86270
86426
  provider_id: z.ZodString;
86271
86427
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -86369,6 +86525,7 @@ declare const routes: {
86369
86525
  created_at: string;
86370
86526
  updated_at: string;
86371
86527
  send_locale: string | null;
86528
+ template_locale: string | null;
86372
86529
  topic: string | null;
86373
86530
  provider_id: string;
86374
86531
  counts: {
@@ -86446,6 +86603,7 @@ declare const routes: {
86446
86603
  } | null;
86447
86604
  started_at: string | null;
86448
86605
  finished_at: string | null;
86606
+ template_locale?: string | null | undefined;
86449
86607
  pause_reason?: string | null | undefined;
86450
86608
  }>;
86451
86609
  readonly status: 200;
@@ -86606,6 +86764,7 @@ declare const routes: {
86606
86764
  }, z.ZodTypeAny, "passthrough">>;
86607
86765
  locale: z.ZodString;
86608
86766
  send_locale: z.ZodNullable<z.ZodString>;
86767
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
86609
86768
  topic: z.ZodNullable<z.ZodString>;
86610
86769
  provider_id: z.ZodString;
86611
86770
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -86709,6 +86868,7 @@ declare const routes: {
86709
86868
  created_at: string;
86710
86869
  updated_at: string;
86711
86870
  send_locale: string | null;
86871
+ template_locale: string | null;
86712
86872
  topic: string | null;
86713
86873
  provider_id: string;
86714
86874
  counts: {
@@ -86786,6 +86946,7 @@ declare const routes: {
86786
86946
  } | null;
86787
86947
  started_at: string | null;
86788
86948
  finished_at: string | null;
86949
+ template_locale?: string | null | undefined;
86789
86950
  pause_reason?: string | null | undefined;
86790
86951
  }>;
86791
86952
  readonly status: 200;
@@ -86824,6 +86985,7 @@ declare const routes: {
86824
86985
  }, z.ZodTypeAny, "passthrough">>;
86825
86986
  locale: z.ZodString;
86826
86987
  send_locale: z.ZodNullable<z.ZodString>;
86988
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
86827
86989
  topic: z.ZodNullable<z.ZodString>;
86828
86990
  provider_id: z.ZodString;
86829
86991
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -86927,6 +87089,7 @@ declare const routes: {
86927
87089
  created_at: string;
86928
87090
  updated_at: string;
86929
87091
  send_locale: string | null;
87092
+ template_locale: string | null;
86930
87093
  topic: string | null;
86931
87094
  provider_id: string;
86932
87095
  counts: {
@@ -87004,6 +87167,7 @@ declare const routes: {
87004
87167
  } | null;
87005
87168
  started_at: string | null;
87006
87169
  finished_at: string | null;
87170
+ template_locale?: string | null | undefined;
87007
87171
  pause_reason?: string | null | undefined;
87008
87172
  }>;
87009
87173
  readonly status: 200;
@@ -87050,6 +87214,7 @@ declare const routes: {
87050
87214
  }, z.ZodTypeAny, "passthrough">>;
87051
87215
  locale: z.ZodString;
87052
87216
  send_locale: z.ZodNullable<z.ZodString>;
87217
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
87053
87218
  topic: z.ZodNullable<z.ZodString>;
87054
87219
  provider_id: z.ZodString;
87055
87220
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -87153,6 +87318,7 @@ declare const routes: {
87153
87318
  created_at: string;
87154
87319
  updated_at: string;
87155
87320
  send_locale: string | null;
87321
+ template_locale: string | null;
87156
87322
  topic: string | null;
87157
87323
  provider_id: string;
87158
87324
  counts: {
@@ -87230,6 +87396,7 @@ declare const routes: {
87230
87396
  } | null;
87231
87397
  started_at: string | null;
87232
87398
  finished_at: string | null;
87399
+ template_locale?: string | null | undefined;
87233
87400
  pause_reason?: string | null | undefined;
87234
87401
  }>;
87235
87402
  readonly status: 200;
@@ -93082,6 +93249,7 @@ declare const routes: {
93082
93249
  }, z.ZodTypeAny, "passthrough">>;
93083
93250
  locale: z.ZodString;
93084
93251
  send_locale: z.ZodNullable<z.ZodString>;
93252
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
93085
93253
  topic: z.ZodNullable<z.ZodString>;
93086
93254
  provider_id: z.ZodString;
93087
93255
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -93178,6 +93346,7 @@ declare const routes: {
93178
93346
  created_at: string;
93179
93347
  updated_at: string;
93180
93348
  send_locale: string | null;
93349
+ template_locale: string | null;
93181
93350
  topic: string | null;
93182
93351
  provider_id: string;
93183
93352
  counts: {
@@ -93248,6 +93417,7 @@ declare const routes: {
93248
93417
  } | null;
93249
93418
  started_at: string | null;
93250
93419
  finished_at: string | null;
93420
+ template_locale?: string | null | undefined;
93251
93421
  pause_reason?: string | null | undefined;
93252
93422
  }>, "many">;
93253
93423
  next_cursor: z.ZodNullable<z.ZodString>;
@@ -93265,6 +93435,7 @@ declare const routes: {
93265
93435
  created_at: string;
93266
93436
  updated_at: string;
93267
93437
  send_locale: string | null;
93438
+ template_locale: string | null;
93268
93439
  topic: string | null;
93269
93440
  provider_id: string;
93270
93441
  counts: {
@@ -93338,6 +93509,7 @@ declare const routes: {
93338
93509
  } | null;
93339
93510
  started_at: string | null;
93340
93511
  finished_at: string | null;
93512
+ template_locale?: string | null | undefined;
93341
93513
  pause_reason?: string | null | undefined;
93342
93514
  }[];
93343
93515
  next_cursor: string | null;
@@ -93349,7 +93521,7 @@ declare const routes: {
93349
93521
  readonly 'mailings.create': {
93350
93522
  readonly method: "POST";
93351
93523
  readonly path: "/v1/mailings";
93352
- readonly body: z.ZodEffects<z.ZodEffects<z.ZodObject<{
93524
+ readonly body: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
93353
93525
  subject: z.ZodOptional<z.ZodString>;
93354
93526
  document: z.ZodOptional<z.ZodObject<{
93355
93527
  version: z.ZodEnum<["1.0", "1.1"]>;
@@ -93365,6 +93537,7 @@ declare const routes: {
93365
93537
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
93366
93538
  }, z.ZodTypeAny, "passthrough">>>;
93367
93539
  template_id: z.ZodOptional<z.ZodString>;
93540
+ template_locale: z.ZodOptional<z.ZodString>;
93368
93541
  name: z.ZodOptional<z.ZodString>;
93369
93542
  preheader: z.ZodOptional<z.ZodString>;
93370
93543
  send_locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -93384,6 +93557,37 @@ declare const routes: {
93384
93557
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
93385
93558
  }, z.ZodTypeAny, "passthrough"> | undefined;
93386
93559
  send_locale?: string | null | undefined;
93560
+ template_locale?: string | undefined;
93561
+ topic?: string | null | undefined;
93562
+ }, {
93563
+ provider_id: string;
93564
+ name?: string | undefined;
93565
+ template_id?: string | undefined;
93566
+ metadata?: Record<string, string> | undefined;
93567
+ subject?: string | undefined;
93568
+ preheader?: string | undefined;
93569
+ document?: z.objectInputType<{
93570
+ version: z.ZodEnum<["1.0", "1.1"]>;
93571
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
93572
+ sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
93573
+ }, z.ZodTypeAny, "passthrough"> | undefined;
93574
+ send_locale?: string | null | undefined;
93575
+ template_locale?: string | undefined;
93576
+ topic?: string | null | undefined;
93577
+ }>, {
93578
+ provider_id: string;
93579
+ name?: string | undefined;
93580
+ template_id?: string | undefined;
93581
+ metadata?: Record<string, string> | undefined;
93582
+ subject?: string | undefined;
93583
+ preheader?: string | undefined;
93584
+ document?: z.objectOutputType<{
93585
+ version: z.ZodEnum<["1.0", "1.1"]>;
93586
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
93587
+ sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
93588
+ }, z.ZodTypeAny, "passthrough"> | undefined;
93589
+ send_locale?: string | null | undefined;
93590
+ template_locale?: string | undefined;
93387
93591
  topic?: string | null | undefined;
93388
93592
  }, {
93389
93593
  provider_id: string;
@@ -93398,6 +93602,7 @@ declare const routes: {
93398
93602
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
93399
93603
  }, z.ZodTypeAny, "passthrough"> | undefined;
93400
93604
  send_locale?: string | null | undefined;
93605
+ template_locale?: string | undefined;
93401
93606
  topic?: string | null | undefined;
93402
93607
  }>, {
93403
93608
  provider_id: string;
@@ -93412,6 +93617,7 @@ declare const routes: {
93412
93617
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
93413
93618
  }, z.ZodTypeAny, "passthrough"> | undefined;
93414
93619
  send_locale?: string | null | undefined;
93620
+ template_locale?: string | undefined;
93415
93621
  topic?: string | null | undefined;
93416
93622
  }, {
93417
93623
  provider_id: string;
@@ -93426,6 +93632,7 @@ declare const routes: {
93426
93632
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
93427
93633
  }, z.ZodTypeAny, "passthrough"> | undefined;
93428
93634
  send_locale?: string | null | undefined;
93635
+ template_locale?: string | undefined;
93429
93636
  topic?: string | null | undefined;
93430
93637
  }>, {
93431
93638
  provider_id: string;
@@ -93440,6 +93647,7 @@ declare const routes: {
93440
93647
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
93441
93648
  }, z.ZodTypeAny, "passthrough"> | undefined;
93442
93649
  send_locale?: string | null | undefined;
93650
+ template_locale?: string | undefined;
93443
93651
  topic?: string | null | undefined;
93444
93652
  }, {
93445
93653
  provider_id: string;
@@ -93454,6 +93662,7 @@ declare const routes: {
93454
93662
  sections: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
93455
93663
  }, z.ZodTypeAny, "passthrough"> | undefined;
93456
93664
  send_locale?: string | null | undefined;
93665
+ template_locale?: string | undefined;
93457
93666
  topic?: string | null | undefined;
93458
93667
  }>;
93459
93668
  readonly response: z.ZodObject<{
@@ -93478,6 +93687,7 @@ declare const routes: {
93478
93687
  }, z.ZodTypeAny, "passthrough">>;
93479
93688
  locale: z.ZodString;
93480
93689
  send_locale: z.ZodNullable<z.ZodString>;
93690
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
93481
93691
  topic: z.ZodNullable<z.ZodString>;
93482
93692
  provider_id: z.ZodString;
93483
93693
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -93581,6 +93791,7 @@ declare const routes: {
93581
93791
  created_at: string;
93582
93792
  updated_at: string;
93583
93793
  send_locale: string | null;
93794
+ template_locale: string | null;
93584
93795
  topic: string | null;
93585
93796
  provider_id: string;
93586
93797
  counts: {
@@ -93658,6 +93869,7 @@ declare const routes: {
93658
93869
  } | null;
93659
93870
  started_at: string | null;
93660
93871
  finished_at: string | null;
93872
+ template_locale?: string | null | undefined;
93661
93873
  pause_reason?: string | null | undefined;
93662
93874
  }>;
93663
93875
  readonly status: 201;
@@ -93696,6 +93908,7 @@ declare const routes: {
93696
93908
  }, z.ZodTypeAny, "passthrough">>;
93697
93909
  locale: z.ZodString;
93698
93910
  send_locale: z.ZodNullable<z.ZodString>;
93911
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
93699
93912
  topic: z.ZodNullable<z.ZodString>;
93700
93913
  provider_id: z.ZodString;
93701
93914
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -93799,6 +94012,7 @@ declare const routes: {
93799
94012
  created_at: string;
93800
94013
  updated_at: string;
93801
94014
  send_locale: string | null;
94015
+ template_locale: string | null;
93802
94016
  topic: string | null;
93803
94017
  provider_id: string;
93804
94018
  counts: {
@@ -93876,6 +94090,7 @@ declare const routes: {
93876
94090
  } | null;
93877
94091
  started_at: string | null;
93878
94092
  finished_at: string | null;
94093
+ template_locale?: string | null | undefined;
93879
94094
  pause_reason?: string | null | undefined;
93880
94095
  }>;
93881
94096
  readonly status: 200;
@@ -94011,6 +94226,7 @@ declare const routes: {
94011
94226
  }, z.ZodTypeAny, "passthrough">>;
94012
94227
  locale: z.ZodString;
94013
94228
  send_locale: z.ZodNullable<z.ZodString>;
94229
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
94014
94230
  topic: z.ZodNullable<z.ZodString>;
94015
94231
  provider_id: z.ZodString;
94016
94232
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -94114,6 +94330,7 @@ declare const routes: {
94114
94330
  created_at: string;
94115
94331
  updated_at: string;
94116
94332
  send_locale: string | null;
94333
+ template_locale: string | null;
94117
94334
  topic: string | null;
94118
94335
  provider_id: string;
94119
94336
  counts: {
@@ -94191,6 +94408,7 @@ declare const routes: {
94191
94408
  } | null;
94192
94409
  started_at: string | null;
94193
94410
  finished_at: string | null;
94411
+ template_locale?: string | null | undefined;
94194
94412
  pause_reason?: string | null | undefined;
94195
94413
  }>;
94196
94414
  readonly status: 200;
@@ -94457,6 +94675,7 @@ declare const routes: {
94457
94675
  }, z.ZodTypeAny, "passthrough">>;
94458
94676
  locale: z.ZodString;
94459
94677
  send_locale: z.ZodNullable<z.ZodString>;
94678
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
94460
94679
  topic: z.ZodNullable<z.ZodString>;
94461
94680
  provider_id: z.ZodString;
94462
94681
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -94560,6 +94779,7 @@ declare const routes: {
94560
94779
  created_at: string;
94561
94780
  updated_at: string;
94562
94781
  send_locale: string | null;
94782
+ template_locale: string | null;
94563
94783
  topic: string | null;
94564
94784
  provider_id: string;
94565
94785
  counts: {
@@ -94637,6 +94857,7 @@ declare const routes: {
94637
94857
  } | null;
94638
94858
  started_at: string | null;
94639
94859
  finished_at: string | null;
94860
+ template_locale?: string | null | undefined;
94640
94861
  pause_reason?: string | null | undefined;
94641
94862
  }>;
94642
94863
  readonly status: 202;
@@ -94676,6 +94897,7 @@ declare const routes: {
94676
94897
  }, z.ZodTypeAny, "passthrough">>;
94677
94898
  locale: z.ZodString;
94678
94899
  send_locale: z.ZodNullable<z.ZodString>;
94900
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
94679
94901
  topic: z.ZodNullable<z.ZodString>;
94680
94902
  provider_id: z.ZodString;
94681
94903
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -94779,6 +95001,7 @@ declare const routes: {
94779
95001
  created_at: string;
94780
95002
  updated_at: string;
94781
95003
  send_locale: string | null;
95004
+ template_locale: string | null;
94782
95005
  topic: string | null;
94783
95006
  provider_id: string;
94784
95007
  counts: {
@@ -94856,6 +95079,7 @@ declare const routes: {
94856
95079
  } | null;
94857
95080
  started_at: string | null;
94858
95081
  finished_at: string | null;
95082
+ template_locale?: string | null | undefined;
94859
95083
  pause_reason?: string | null | undefined;
94860
95084
  }>;
94861
95085
  readonly status: 200;
@@ -94895,6 +95119,7 @@ declare const routes: {
94895
95119
  }, z.ZodTypeAny, "passthrough">>;
94896
95120
  locale: z.ZodString;
94897
95121
  send_locale: z.ZodNullable<z.ZodString>;
95122
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
94898
95123
  topic: z.ZodNullable<z.ZodString>;
94899
95124
  provider_id: z.ZodString;
94900
95125
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -94998,6 +95223,7 @@ declare const routes: {
94998
95223
  created_at: string;
94999
95224
  updated_at: string;
95000
95225
  send_locale: string | null;
95226
+ template_locale: string | null;
95001
95227
  topic: string | null;
95002
95228
  provider_id: string;
95003
95229
  counts: {
@@ -95075,6 +95301,7 @@ declare const routes: {
95075
95301
  } | null;
95076
95302
  started_at: string | null;
95077
95303
  finished_at: string | null;
95304
+ template_locale?: string | null | undefined;
95078
95305
  pause_reason?: string | null | undefined;
95079
95306
  }>;
95080
95307
  readonly status: 202;
@@ -95114,6 +95341,7 @@ declare const routes: {
95114
95341
  }, z.ZodTypeAny, "passthrough">>;
95115
95342
  locale: z.ZodString;
95116
95343
  send_locale: z.ZodNullable<z.ZodString>;
95344
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
95117
95345
  topic: z.ZodNullable<z.ZodString>;
95118
95346
  provider_id: z.ZodString;
95119
95347
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -95217,6 +95445,7 @@ declare const routes: {
95217
95445
  created_at: string;
95218
95446
  updated_at: string;
95219
95447
  send_locale: string | null;
95448
+ template_locale: string | null;
95220
95449
  topic: string | null;
95221
95450
  provider_id: string;
95222
95451
  counts: {
@@ -95294,6 +95523,7 @@ declare const routes: {
95294
95523
  } | null;
95295
95524
  started_at: string | null;
95296
95525
  finished_at: string | null;
95526
+ template_locale?: string | null | undefined;
95297
95527
  pause_reason?: string | null | undefined;
95298
95528
  }>;
95299
95529
  readonly status: 200;
@@ -95339,6 +95569,7 @@ declare const routes: {
95339
95569
  }, z.ZodTypeAny, "passthrough">>;
95340
95570
  locale: z.ZodString;
95341
95571
  send_locale: z.ZodNullable<z.ZodString>;
95572
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
95342
95573
  topic: z.ZodNullable<z.ZodString>;
95343
95574
  provider_id: z.ZodString;
95344
95575
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -95442,6 +95673,7 @@ declare const routes: {
95442
95673
  created_at: string;
95443
95674
  updated_at: string;
95444
95675
  send_locale: string | null;
95676
+ template_locale: string | null;
95445
95677
  topic: string | null;
95446
95678
  provider_id: string;
95447
95679
  counts: {
@@ -95519,6 +95751,7 @@ declare const routes: {
95519
95751
  } | null;
95520
95752
  started_at: string | null;
95521
95753
  finished_at: string | null;
95754
+ template_locale?: string | null | undefined;
95522
95755
  pause_reason?: string | null | undefined;
95523
95756
  }>;
95524
95757
  readonly status: 202;
@@ -95564,6 +95797,7 @@ declare const routes: {
95564
95797
  }, z.ZodTypeAny, "passthrough">>;
95565
95798
  locale: z.ZodString;
95566
95799
  send_locale: z.ZodNullable<z.ZodString>;
95800
+ template_locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
95567
95801
  topic: z.ZodNullable<z.ZodString>;
95568
95802
  provider_id: z.ZodString;
95569
95803
  status: z.ZodEnum<["draft", "scheduled", "sending", "paused", "sent", "partially_failed", "cancelled"]>;
@@ -95667,6 +95901,7 @@ declare const routes: {
95667
95901
  created_at: string;
95668
95902
  updated_at: string;
95669
95903
  send_locale: string | null;
95904
+ template_locale: string | null;
95670
95905
  topic: string | null;
95671
95906
  provider_id: string;
95672
95907
  counts: {
@@ -95744,6 +95979,7 @@ declare const routes: {
95744
95979
  } | null;
95745
95980
  started_at: string | null;
95746
95981
  finished_at: string | null;
95982
+ template_locale?: string | null | undefined;
95747
95983
  pause_reason?: string | null | undefined;
95748
95984
  }>;
95749
95985
  readonly status: 201;