samva 0.20.0 → 0.22.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/client/sdk.gen.d.ts +30 -5
- package/dist/client/sdk.gen.js +69 -2
- package/dist/client/types.gen.d.ts +190 -17
- package/dist/effect/api-keys.d.ts +7 -0
- package/dist/effect/campaigns.d.ts +31 -0
- package/dist/effect/generated/api-keys.d.ts +15 -0
- package/dist/effect/generated/api-keys.js +2 -0
- package/dist/effect/generated/campaigns.d.ts +63 -0
- package/dist/effect/generated/campaigns.js +4 -0
- package/dist/effect/generated/journeys.d.ts +18 -0
- package/dist/effect/generated/journeys.js +4 -0
- package/dist/effect/generated/shared.d.ts +20 -4
- package/dist/effect/generated/shared.js +9 -1
- package/dist/effect/generated/templates.d.ts +322 -0
- package/dist/effect/generated/templates.js +48 -8
- package/dist/effect/generated/webhooks.d.ts +139 -19
- package/dist/effect/generated/webhooks.js +39 -3
- package/dist/effect/generated-metadata.d.ts +10 -0
- package/dist/effect/generated-metadata.js +2 -0
- package/dist/effect/journeys.d.ts +8 -0
- package/dist/effect/templates.d.ts +74 -0
- package/dist/effect/templates.js +3 -1
- package/dist/effect/webhooks.d.ts +15 -8
- package/dist/effect/webhooks.js +3 -1
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -0
- package/dist/service-map.js +5 -0
- package/package.json +5 -3
|
@@ -501,6 +501,7 @@ const CreateTemplatePayload = /* @__PURE__ */ Schema.Struct({
|
|
|
501
501
|
]), Schema.Null]), Schema.Null])),
|
|
502
502
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
503
503
|
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the new template project belongs to; the project and every entry added to it share it. Omit for organization level. A namespace-scoped key always creates in its own namespace." })),
|
|
504
|
+
shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]).annotate({ description: "Share the new organization-level project with every namespace: namespace-scoped keys read and send its entries but cannot change them. Defaults to false. Not with `namespaceId`, and not from a namespace-scoped key." })),
|
|
504
505
|
idempotencyKey: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
505
506
|
}).annotate({ identifier: "CreateTemplatePayload" });
|
|
506
507
|
const CreateWebhookPayload = /* @__PURE__ */ Schema.Struct({
|
|
@@ -532,6 +533,9 @@ const CreateWebhookPayload = /* @__PURE__ */ Schema.Struct({
|
|
|
532
533
|
Schema.Literal("webhook.test"),
|
|
533
534
|
Schema.Literal("domain.updated"),
|
|
534
535
|
Schema.Literal("domain.warming.updated"),
|
|
536
|
+
Schema.Literal("template.registration.updated"),
|
|
537
|
+
Schema.Literal("flow.registration.updated"),
|
|
538
|
+
Schema.Literal("whatsapp.number.connected"),
|
|
535
539
|
Schema.Literal("mailbox.message.received"),
|
|
536
540
|
Schema.Literal("mailbox.message.sent"),
|
|
537
541
|
Schema.Literal("mailbox.action.pending_approval"),
|
|
@@ -576,6 +580,9 @@ const UpdateWebhookPayload = /* @__PURE__ */ Schema.Struct({
|
|
|
576
580
|
Schema.Literal("webhook.test"),
|
|
577
581
|
Schema.Literal("domain.updated"),
|
|
578
582
|
Schema.Literal("domain.warming.updated"),
|
|
583
|
+
Schema.Literal("template.registration.updated"),
|
|
584
|
+
Schema.Literal("flow.registration.updated"),
|
|
585
|
+
Schema.Literal("whatsapp.number.connected"),
|
|
579
586
|
Schema.Literal("mailbox.message.received"),
|
|
580
587
|
Schema.Literal("mailbox.message.sent"),
|
|
581
588
|
Schema.Literal("mailbox.action.pending_approval"),
|
|
@@ -824,7 +831,8 @@ const UpdateTemplatePayload = /* @__PURE__ */ Schema.Struct({ data: Schema.Struc
|
|
|
824
831
|
]), Schema.Null]), Schema.Null])),
|
|
825
832
|
fromDefault: Schema.optionalKey(Schema.Union([Schema.Union([TemplateFromDefault, Schema.Null]), Schema.Null])),
|
|
826
833
|
replyToDefault: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
|
|
827
|
-
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
834
|
+
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
835
|
+
shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]).annotate({ description: "Share the template's project with every namespace, or stop sharing it. Applies to every entry in the project. Only an organization-level project is shared." }))
|
|
828
836
|
}) }).annotate({ identifier: "UpdateTemplatePayload" });
|
|
829
837
|
const ApiKeyAccess = /* @__PURE__ */ Schema.Union([Schema.Struct({ mode: Schema.Literal("full") }), Schema.Struct({
|
|
830
838
|
mode: Schema.Literal("restricted"),
|
|
@@ -21,10 +21,12 @@ export declare const VersionCursor: Schema.String;
|
|
|
21
21
|
export type BrandFooterBlock = {
|
|
22
22
|
readonly html: string;
|
|
23
23
|
readonly text: string;
|
|
24
|
+
readonly headCss?: string | null;
|
|
24
25
|
};
|
|
25
26
|
export declare const BrandFooterBlock: Schema.Struct<{
|
|
26
27
|
readonly html: Schema.String;
|
|
27
28
|
readonly text: Schema.String;
|
|
29
|
+
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
28
30
|
}>;
|
|
29
31
|
export type TemplatePublicationRender = {
|
|
30
32
|
readonly subject: string;
|
|
@@ -91,6 +93,7 @@ export type TemplateSummary = {
|
|
|
91
93
|
readonly channel: "email";
|
|
92
94
|
readonly projectId: TemplateProjectId;
|
|
93
95
|
readonly namespaceId: NamespaceId | null;
|
|
96
|
+
readonly shared: boolean;
|
|
94
97
|
readonly entryPath: string;
|
|
95
98
|
readonly status: "draft" | "pending" | "approved" | "published" | "rejected" | "archived";
|
|
96
99
|
readonly isActive: boolean;
|
|
@@ -109,6 +112,7 @@ export declare const TemplateSummary: Schema.Struct<{
|
|
|
109
112
|
readonly channel: Schema.Literal<"email">;
|
|
110
113
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
111
114
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
115
|
+
readonly shared: Schema.Boolean;
|
|
112
116
|
readonly entryPath: Schema.String;
|
|
113
117
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
114
118
|
readonly isActive: Schema.Boolean;
|
|
@@ -134,6 +138,7 @@ export type Template = {
|
|
|
134
138
|
readonly channel: "email";
|
|
135
139
|
readonly projectId: TemplateProjectId;
|
|
136
140
|
readonly namespaceId: NamespaceId | null;
|
|
141
|
+
readonly shared: boolean;
|
|
137
142
|
readonly entryPath: string;
|
|
138
143
|
readonly status: "draft" | "pending" | "approved" | "published" | "rejected" | "archived";
|
|
139
144
|
readonly isActive: boolean;
|
|
@@ -172,6 +177,7 @@ export declare const Template: Schema.Struct<{
|
|
|
172
177
|
readonly channel: Schema.Literal<"email">;
|
|
173
178
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
174
179
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
180
|
+
readonly shared: Schema.Boolean;
|
|
175
181
|
readonly entryPath: Schema.String;
|
|
176
182
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
177
183
|
readonly isActive: Schema.Boolean;
|
|
@@ -214,10 +220,12 @@ export declare const BrandRenderedFooter: Schema.Struct<{
|
|
|
214
220
|
readonly withUnsubscribe: Schema.Struct<{
|
|
215
221
|
readonly html: Schema.String;
|
|
216
222
|
readonly text: Schema.String;
|
|
223
|
+
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
217
224
|
}>;
|
|
218
225
|
readonly withoutUnsubscribe: Schema.Struct<{
|
|
219
226
|
readonly html: Schema.String;
|
|
220
227
|
readonly text: Schema.String;
|
|
228
|
+
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
221
229
|
}>;
|
|
222
230
|
}>;
|
|
223
231
|
export type TemplateFamily = {
|
|
@@ -255,6 +263,7 @@ export declare const TemplatePage: Schema.Struct<{
|
|
|
255
263
|
readonly channel: Schema.Literal<"email">;
|
|
256
264
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
257
265
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
266
|
+
readonly shared: Schema.Boolean;
|
|
258
267
|
readonly entryPath: Schema.String;
|
|
259
268
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
260
269
|
readonly isActive: Schema.Boolean;
|
|
@@ -275,6 +284,63 @@ export declare const TemplatePage: Schema.Struct<{
|
|
|
275
284
|
}>>;
|
|
276
285
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
277
286
|
}>;
|
|
287
|
+
export type TemplateFromWebsite = {
|
|
288
|
+
readonly template: Template;
|
|
289
|
+
readonly website: {
|
|
290
|
+
readonly url: string;
|
|
291
|
+
readonly host: string;
|
|
292
|
+
};
|
|
293
|
+
readonly ask: string;
|
|
294
|
+
};
|
|
295
|
+
export declare const TemplateFromWebsite: Schema.Struct<{
|
|
296
|
+
readonly template: Schema.Struct<{
|
|
297
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
298
|
+
readonly slug: Schema.String;
|
|
299
|
+
readonly name: Schema.String;
|
|
300
|
+
readonly channel: Schema.Literal<"email">;
|
|
301
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
302
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
303
|
+
readonly shared: Schema.Boolean;
|
|
304
|
+
readonly entryPath: Schema.String;
|
|
305
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
306
|
+
readonly isActive: Schema.Boolean;
|
|
307
|
+
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
308
|
+
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
309
|
+
readonly slug: Schema.String;
|
|
310
|
+
readonly digest: Schema.String;
|
|
311
|
+
readonly stale: Schema.Boolean;
|
|
312
|
+
}>, Schema.Null]>;
|
|
313
|
+
readonly fromDefault: Schema.Union<readonly [Schema.Struct<{
|
|
314
|
+
readonly email: Schema.String;
|
|
315
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
316
|
+
}>, Schema.Null]>;
|
|
317
|
+
readonly usageCount: Schema.Finite;
|
|
318
|
+
readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
319
|
+
readonly createdAt: Schema.String;
|
|
320
|
+
readonly updatedAt: Schema.String;
|
|
321
|
+
readonly familyId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateFamilyId">, Schema.Null]>;
|
|
322
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
323
|
+
readonly category: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>;
|
|
324
|
+
readonly replyToDefault: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
|
|
325
|
+
readonly trackingDefault: Schema.Union<readonly [Schema.Struct<{
|
|
326
|
+
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
327
|
+
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
328
|
+
}>, Schema.Null]>;
|
|
329
|
+
readonly email: Schema.Union<readonly [Schema.Struct<{
|
|
330
|
+
readonly subject: Schema.String;
|
|
331
|
+
readonly preheader: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
332
|
+
readonly headers: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>;
|
|
333
|
+
}>, Schema.Null]>;
|
|
334
|
+
readonly publicationId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplatePublicationId">, Schema.Null]>;
|
|
335
|
+
readonly inputContractId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateInputContractId">, Schema.Null]>;
|
|
336
|
+
readonly inputSchema: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
337
|
+
}>;
|
|
338
|
+
readonly website: Schema.Struct<{
|
|
339
|
+
readonly url: Schema.String;
|
|
340
|
+
readonly host: Schema.String;
|
|
341
|
+
}>;
|
|
342
|
+
readonly ask: Schema.String;
|
|
343
|
+
}>;
|
|
278
344
|
export type TemplateFamilyPage = {
|
|
279
345
|
readonly items: ReadonlyArray<TemplateFamily>;
|
|
280
346
|
readonly nextCursor: string | null;
|
|
@@ -307,6 +373,7 @@ export type TemplatesListQuery = {
|
|
|
307
373
|
readonly search?: string | null;
|
|
308
374
|
readonly projectId?: TemplateProjectId | null;
|
|
309
375
|
readonly namespaceId?: NamespaceId | null;
|
|
376
|
+
readonly shared?: "true" | "false" | null;
|
|
310
377
|
};
|
|
311
378
|
export declare const TemplatesListQuery: Schema.Struct<{
|
|
312
379
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -317,6 +384,7 @@ export declare const TemplatesListQuery: Schema.Struct<{
|
|
|
317
384
|
readonly search: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
318
385
|
readonly projectId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateProjectId">, Schema.Null]>>;
|
|
319
386
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
387
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"true">, Schema.Literal<"false">]>, Schema.Null]>>;
|
|
320
388
|
}>;
|
|
321
389
|
export type TemplatesList200 = TemplatePage;
|
|
322
390
|
export declare const TemplatesList200: Schema.Struct<{
|
|
@@ -327,6 +395,7 @@ export declare const TemplatesList200: Schema.Struct<{
|
|
|
327
395
|
readonly channel: Schema.Literal<"email">;
|
|
328
396
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
329
397
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
398
|
+
readonly shared: Schema.Boolean;
|
|
330
399
|
readonly entryPath: Schema.String;
|
|
331
400
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
332
401
|
readonly isActive: Schema.Boolean;
|
|
@@ -367,6 +436,7 @@ export type TemplatesCreateRequestJson = {
|
|
|
367
436
|
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | null;
|
|
368
437
|
readonly isActive?: boolean | null;
|
|
369
438
|
readonly namespaceId?: NamespaceId | null;
|
|
439
|
+
readonly shared?: boolean | null;
|
|
370
440
|
readonly idempotencyKey: string;
|
|
371
441
|
};
|
|
372
442
|
export declare const TemplatesCreateRequestJson: Schema.Struct<{
|
|
@@ -379,6 +449,7 @@ export declare const TemplatesCreateRequestJson: Schema.Struct<{
|
|
|
379
449
|
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>, Schema.Null]>>;
|
|
380
450
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
381
451
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
452
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
382
453
|
readonly idempotencyKey: Schema.String;
|
|
383
454
|
}>;
|
|
384
455
|
export type TemplatesCreate201 = Template;
|
|
@@ -389,6 +460,7 @@ export declare const TemplatesCreate201: Schema.Struct<{
|
|
|
389
460
|
readonly channel: Schema.Literal<"email">;
|
|
390
461
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
391
462
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
463
|
+
readonly shared: Schema.Boolean;
|
|
392
464
|
readonly entryPath: Schema.String;
|
|
393
465
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
394
466
|
readonly isActive: Schema.Boolean;
|
|
@@ -451,6 +523,7 @@ export declare const TemplatesGetById200: Schema.Struct<{
|
|
|
451
523
|
readonly channel: Schema.Literal<"email">;
|
|
452
524
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
453
525
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
526
|
+
readonly shared: Schema.Boolean;
|
|
454
527
|
readonly entryPath: Schema.String;
|
|
455
528
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
456
529
|
readonly isActive: Schema.Boolean;
|
|
@@ -535,6 +608,7 @@ export type TemplatesUpdateRequestJson = {
|
|
|
535
608
|
readonly fromDefault?: TemplateFromDefault | null | null;
|
|
536
609
|
readonly replyToDefault?: ReadonlyArray<string> | null | null;
|
|
537
610
|
readonly isActive?: boolean | null;
|
|
611
|
+
readonly shared?: boolean | null;
|
|
538
612
|
};
|
|
539
613
|
};
|
|
540
614
|
export declare const TemplatesUpdateRequestJson: Schema.Struct<{
|
|
@@ -550,6 +624,7 @@ export declare const TemplatesUpdateRequestJson: Schema.Struct<{
|
|
|
550
624
|
}>, Schema.Null]>, Schema.Null]>>;
|
|
551
625
|
readonly replyToDefault: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>, Schema.Null]>>;
|
|
552
626
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
627
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
553
628
|
}>;
|
|
554
629
|
}>;
|
|
555
630
|
export type TemplatesUpdate200 = Template;
|
|
@@ -560,6 +635,7 @@ export declare const TemplatesUpdate200: Schema.Struct<{
|
|
|
560
635
|
readonly channel: Schema.Literal<"email">;
|
|
561
636
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
562
637
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
638
|
+
readonly shared: Schema.Boolean;
|
|
563
639
|
readonly entryPath: Schema.String;
|
|
564
640
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
565
641
|
readonly isActive: Schema.Boolean;
|
|
@@ -885,10 +961,12 @@ export declare const TemplatesPublish201: Schema.Struct<{
|
|
|
885
961
|
readonly withUnsubscribe: Schema.Struct<{
|
|
886
962
|
readonly html: Schema.String;
|
|
887
963
|
readonly text: Schema.String;
|
|
964
|
+
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
888
965
|
}>;
|
|
889
966
|
readonly withoutUnsubscribe: Schema.Struct<{
|
|
890
967
|
readonly html: Schema.String;
|
|
891
968
|
readonly text: Schema.String;
|
|
969
|
+
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
892
970
|
}>;
|
|
893
971
|
}>;
|
|
894
972
|
readonly digest: Schema.String;
|
|
@@ -1158,10 +1236,12 @@ export declare const TemplatesGetPublication200: Schema.Struct<{
|
|
|
1158
1236
|
readonly withUnsubscribe: Schema.Struct<{
|
|
1159
1237
|
readonly html: Schema.String;
|
|
1160
1238
|
readonly text: Schema.String;
|
|
1239
|
+
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1161
1240
|
}>;
|
|
1162
1241
|
readonly withoutUnsubscribe: Schema.Struct<{
|
|
1163
1242
|
readonly html: Schema.String;
|
|
1164
1243
|
readonly text: Schema.String;
|
|
1244
|
+
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1165
1245
|
}>;
|
|
1166
1246
|
}>;
|
|
1167
1247
|
readonly digest: Schema.String;
|
|
@@ -3574,6 +3654,82 @@ export type TemplatesCreateFamilyFromTemplate500 = InternalError;
|
|
|
3574
3654
|
export declare const TemplatesCreateFamilyFromTemplate500: typeof InternalError;
|
|
3575
3655
|
export type TemplatesCreateFamilyFromTemplate504 = GatewayTimeoutError;
|
|
3576
3656
|
export declare const TemplatesCreateFamilyFromTemplate504: typeof GatewayTimeoutError;
|
|
3657
|
+
export type TemplatesCreateFromWebsiteRequestJson = {
|
|
3658
|
+
readonly url: string;
|
|
3659
|
+
readonly name?: string | null;
|
|
3660
|
+
readonly namespaceId?: NamespaceId | null;
|
|
3661
|
+
readonly idempotencyKey: string;
|
|
3662
|
+
};
|
|
3663
|
+
export declare const TemplatesCreateFromWebsiteRequestJson: Schema.Struct<{
|
|
3664
|
+
readonly url: Schema.String;
|
|
3665
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3666
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
3667
|
+
readonly idempotencyKey: Schema.String;
|
|
3668
|
+
}>;
|
|
3669
|
+
export type TemplatesCreateFromWebsite201 = TemplateFromWebsite;
|
|
3670
|
+
export declare const TemplatesCreateFromWebsite201: Schema.Struct<{
|
|
3671
|
+
readonly template: Schema.Struct<{
|
|
3672
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
3673
|
+
readonly slug: Schema.String;
|
|
3674
|
+
readonly name: Schema.String;
|
|
3675
|
+
readonly channel: Schema.Literal<"email">;
|
|
3676
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
3677
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
3678
|
+
readonly shared: Schema.Boolean;
|
|
3679
|
+
readonly entryPath: Schema.String;
|
|
3680
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
3681
|
+
readonly isActive: Schema.Boolean;
|
|
3682
|
+
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3683
|
+
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
3684
|
+
readonly slug: Schema.String;
|
|
3685
|
+
readonly digest: Schema.String;
|
|
3686
|
+
readonly stale: Schema.Boolean;
|
|
3687
|
+
}>, Schema.Null]>;
|
|
3688
|
+
readonly fromDefault: Schema.Union<readonly [Schema.Struct<{
|
|
3689
|
+
readonly email: Schema.String;
|
|
3690
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3691
|
+
}>, Schema.Null]>;
|
|
3692
|
+
readonly usageCount: Schema.Finite;
|
|
3693
|
+
readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3694
|
+
readonly createdAt: Schema.String;
|
|
3695
|
+
readonly updatedAt: Schema.String;
|
|
3696
|
+
readonly familyId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateFamilyId">, Schema.Null]>;
|
|
3697
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3698
|
+
readonly category: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>;
|
|
3699
|
+
readonly replyToDefault: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
|
|
3700
|
+
readonly trackingDefault: Schema.Union<readonly [Schema.Struct<{
|
|
3701
|
+
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3702
|
+
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3703
|
+
}>, Schema.Null]>;
|
|
3704
|
+
readonly email: Schema.Union<readonly [Schema.Struct<{
|
|
3705
|
+
readonly subject: Schema.String;
|
|
3706
|
+
readonly preheader: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3707
|
+
readonly headers: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>;
|
|
3708
|
+
}>, Schema.Null]>;
|
|
3709
|
+
readonly publicationId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplatePublicationId">, Schema.Null]>;
|
|
3710
|
+
readonly inputContractId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateInputContractId">, Schema.Null]>;
|
|
3711
|
+
readonly inputSchema: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
3712
|
+
}>;
|
|
3713
|
+
readonly website: Schema.Struct<{
|
|
3714
|
+
readonly url: Schema.String;
|
|
3715
|
+
readonly host: Schema.String;
|
|
3716
|
+
}>;
|
|
3717
|
+
readonly ask: Schema.String;
|
|
3718
|
+
}>;
|
|
3719
|
+
export type TemplatesCreateFromWebsite401 = UnauthorizedError;
|
|
3720
|
+
export declare const TemplatesCreateFromWebsite401: typeof UnauthorizedError;
|
|
3721
|
+
export type TemplatesCreateFromWebsite403 = ForbiddenError;
|
|
3722
|
+
export declare const TemplatesCreateFromWebsite403: typeof ForbiddenError;
|
|
3723
|
+
export type TemplatesCreateFromWebsite404 = ResourceNotFoundError;
|
|
3724
|
+
export declare const TemplatesCreateFromWebsite404: typeof ResourceNotFoundError;
|
|
3725
|
+
export type TemplatesCreateFromWebsite409 = ConflictError;
|
|
3726
|
+
export declare const TemplatesCreateFromWebsite409: typeof ConflictError;
|
|
3727
|
+
export type TemplatesCreateFromWebsite422 = ValidationError;
|
|
3728
|
+
export declare const TemplatesCreateFromWebsite422: typeof ValidationError;
|
|
3729
|
+
export type TemplatesCreateFromWebsite500 = InternalError;
|
|
3730
|
+
export declare const TemplatesCreateFromWebsite500: typeof InternalError;
|
|
3731
|
+
export type TemplatesCreateFromWebsite504 = GatewayTimeoutError;
|
|
3732
|
+
export declare const TemplatesCreateFromWebsite504: typeof GatewayTimeoutError;
|
|
3577
3733
|
export type TemplatesAddEntryPathParams = {
|
|
3578
3734
|
readonly id: TemplateProjectId;
|
|
3579
3735
|
};
|
|
@@ -3602,6 +3758,7 @@ export declare const TemplatesAddEntry201: Schema.Struct<{
|
|
|
3602
3758
|
readonly channel: Schema.Literal<"email">;
|
|
3603
3759
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
3604
3760
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
3761
|
+
readonly shared: Schema.Boolean;
|
|
3605
3762
|
readonly entryPath: Schema.String;
|
|
3606
3763
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
3607
3764
|
readonly isActive: Schema.Boolean;
|
|
@@ -3665,6 +3822,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
3665
3822
|
readonly channel: Schema.Literal<"email">;
|
|
3666
3823
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
3667
3824
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
3825
|
+
readonly shared: Schema.Boolean;
|
|
3668
3826
|
readonly entryPath: Schema.String;
|
|
3669
3827
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
3670
3828
|
readonly isActive: Schema.Boolean;
|
|
@@ -4277,6 +4435,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
4277
4435
|
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>, Schema.Null]>>;
|
|
4278
4436
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4279
4437
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4438
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4280
4439
|
readonly idempotencyKey: Schema.String;
|
|
4281
4440
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4282
4441
|
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
@@ -4285,6 +4444,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
4285
4444
|
readonly channel: Schema.Literal<"email">;
|
|
4286
4445
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
4287
4446
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
4447
|
+
readonly shared: Schema.Boolean;
|
|
4288
4448
|
readonly entryPath: Schema.String;
|
|
4289
4449
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4290
4450
|
readonly isActive: Schema.Boolean;
|
|
@@ -4614,6 +4774,159 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
4614
4774
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
4615
4775
|
readonly message: Schema.String;
|
|
4616
4776
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
4777
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"templatesCreateFromWebsite", "POST", "/v1/templates/from-website", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4778
|
+
readonly url: Schema.String;
|
|
4779
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4780
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4781
|
+
readonly idempotencyKey: Schema.String;
|
|
4782
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4783
|
+
readonly template: Schema.Struct<{
|
|
4784
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
4785
|
+
readonly slug: Schema.String;
|
|
4786
|
+
readonly name: Schema.String;
|
|
4787
|
+
readonly channel: Schema.Literal<"email">;
|
|
4788
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
4789
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
4790
|
+
readonly shared: Schema.Boolean;
|
|
4791
|
+
readonly entryPath: Schema.String;
|
|
4792
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4793
|
+
readonly isActive: Schema.Boolean;
|
|
4794
|
+
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4795
|
+
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
4796
|
+
readonly slug: Schema.String;
|
|
4797
|
+
readonly digest: Schema.String;
|
|
4798
|
+
readonly stale: Schema.Boolean;
|
|
4799
|
+
}>, Schema.Null]>;
|
|
4800
|
+
readonly fromDefault: Schema.Union<readonly [Schema.Struct<{
|
|
4801
|
+
readonly email: Schema.String;
|
|
4802
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4803
|
+
}>, Schema.Null]>;
|
|
4804
|
+
readonly usageCount: Schema.Finite;
|
|
4805
|
+
readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4806
|
+
readonly createdAt: Schema.String;
|
|
4807
|
+
readonly updatedAt: Schema.String;
|
|
4808
|
+
readonly familyId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateFamilyId">, Schema.Null]>;
|
|
4809
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4810
|
+
readonly category: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>;
|
|
4811
|
+
readonly replyToDefault: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
|
|
4812
|
+
readonly trackingDefault: Schema.Union<readonly [Schema.Struct<{
|
|
4813
|
+
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4814
|
+
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4815
|
+
}>, Schema.Null]>;
|
|
4816
|
+
readonly email: Schema.Union<readonly [Schema.Struct<{
|
|
4817
|
+
readonly subject: Schema.String;
|
|
4818
|
+
readonly preheader: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4819
|
+
readonly headers: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>;
|
|
4820
|
+
}>, Schema.Null]>;
|
|
4821
|
+
readonly publicationId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplatePublicationId">, Schema.Null]>;
|
|
4822
|
+
readonly inputContractId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateInputContractId">, Schema.Null]>;
|
|
4823
|
+
readonly inputSchema: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
4824
|
+
}>;
|
|
4825
|
+
readonly website: Schema.Struct<{
|
|
4826
|
+
readonly url: Schema.String;
|
|
4827
|
+
readonly host: Schema.String;
|
|
4828
|
+
}>;
|
|
4829
|
+
readonly ask: Schema.String;
|
|
4830
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
4831
|
+
readonly _tag: "ConflictError";
|
|
4832
|
+
readonly message: string;
|
|
4833
|
+
readonly resource: string;
|
|
4834
|
+
readonly id?: string | null;
|
|
4835
|
+
}, readonly [Schema.Struct<{
|
|
4836
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
4837
|
+
readonly message: Schema.String;
|
|
4838
|
+
readonly resource: Schema.String;
|
|
4839
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4840
|
+
}>], {
|
|
4841
|
+
readonly _tag: "ConflictError";
|
|
4842
|
+
readonly message: string;
|
|
4843
|
+
readonly resource: string;
|
|
4844
|
+
readonly id?: string | null;
|
|
4845
|
+
}>, Schema.Struct<{
|
|
4846
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
4847
|
+
readonly message: Schema.String;
|
|
4848
|
+
readonly resource: Schema.String;
|
|
4849
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4850
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
4851
|
+
readonly _tag: "ForbiddenError";
|
|
4852
|
+
readonly message: string;
|
|
4853
|
+
}, readonly [Schema.Struct<{
|
|
4854
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
4855
|
+
readonly message: Schema.String;
|
|
4856
|
+
}>], {
|
|
4857
|
+
readonly _tag: "ForbiddenError";
|
|
4858
|
+
readonly message: string;
|
|
4859
|
+
}>, Schema.Struct<{
|
|
4860
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
4861
|
+
readonly message: Schema.String;
|
|
4862
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
4863
|
+
readonly _tag: "GatewayTimeoutError";
|
|
4864
|
+
readonly message: string;
|
|
4865
|
+
readonly retryAfterSeconds: number;
|
|
4866
|
+
}, readonly [Schema.Struct<{
|
|
4867
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4868
|
+
readonly message: Schema.String;
|
|
4869
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
4870
|
+
}>], {
|
|
4871
|
+
readonly _tag: "GatewayTimeoutError";
|
|
4872
|
+
readonly message: string;
|
|
4873
|
+
readonly retryAfterSeconds: number;
|
|
4874
|
+
}>, Schema.Struct<{
|
|
4875
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4876
|
+
readonly message: Schema.String;
|
|
4877
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
4878
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4879
|
+
readonly _tag: "ResourceNotFoundError";
|
|
4880
|
+
readonly resource: string;
|
|
4881
|
+
readonly id: string;
|
|
4882
|
+
readonly message: string;
|
|
4883
|
+
}, readonly [Schema.Struct<{
|
|
4884
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
4885
|
+
readonly resource: Schema.String;
|
|
4886
|
+
readonly id: Schema.String;
|
|
4887
|
+
readonly message: Schema.String;
|
|
4888
|
+
}>], {
|
|
4889
|
+
readonly _tag: "ResourceNotFoundError";
|
|
4890
|
+
readonly resource: string;
|
|
4891
|
+
readonly id: string;
|
|
4892
|
+
readonly message: string;
|
|
4893
|
+
}>, Schema.Struct<{
|
|
4894
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
4895
|
+
readonly resource: Schema.String;
|
|
4896
|
+
readonly id: Schema.String;
|
|
4897
|
+
readonly message: Schema.String;
|
|
4898
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
4899
|
+
readonly _tag: "UnauthorizedError";
|
|
4900
|
+
readonly message: string;
|
|
4901
|
+
}, readonly [Schema.Struct<{
|
|
4902
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
4903
|
+
readonly message: Schema.String;
|
|
4904
|
+
}>], {
|
|
4905
|
+
readonly _tag: "UnauthorizedError";
|
|
4906
|
+
readonly message: string;
|
|
4907
|
+
}>, Schema.Struct<{
|
|
4908
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
4909
|
+
readonly message: Schema.String;
|
|
4910
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
4911
|
+
readonly _tag: "ValidationError";
|
|
4912
|
+
readonly message: string;
|
|
4913
|
+
readonly fields?: {
|
|
4914
|
+
readonly [x: string]: readonly string[];
|
|
4915
|
+
} | null;
|
|
4916
|
+
}, readonly [Schema.Struct<{
|
|
4917
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
4918
|
+
readonly message: Schema.String;
|
|
4919
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
4920
|
+
}>], {
|
|
4921
|
+
readonly _tag: "ValidationError";
|
|
4922
|
+
readonly message: string;
|
|
4923
|
+
readonly fields?: {
|
|
4924
|
+
readonly [x: string]: readonly string[];
|
|
4925
|
+
} | null;
|
|
4926
|
+
}>, Schema.Struct<{
|
|
4927
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
4928
|
+
readonly message: Schema.String;
|
|
4929
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
4617
4930
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"templatesDeleteFamily", "DELETE", "/v1/templates/families/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
4618
4931
|
readonly id: Schema.brand<Schema.String, "TemplateFamilyId">;
|
|
4619
4932
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -4943,6 +5256,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
4943
5256
|
readonly channel: Schema.Literal<"email">;
|
|
4944
5257
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
4945
5258
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
5259
|
+
readonly shared: Schema.Boolean;
|
|
4946
5260
|
readonly entryPath: Schema.String;
|
|
4947
5261
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4948
5262
|
readonly isActive: Schema.Boolean;
|
|
@@ -5418,10 +5732,12 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5418
5732
|
readonly withUnsubscribe: Schema.Struct<{
|
|
5419
5733
|
readonly html: Schema.String;
|
|
5420
5734
|
readonly text: Schema.String;
|
|
5735
|
+
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5421
5736
|
}>;
|
|
5422
5737
|
readonly withoutUnsubscribe: Schema.Struct<{
|
|
5423
5738
|
readonly html: Schema.String;
|
|
5424
5739
|
readonly text: Schema.String;
|
|
5740
|
+
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5425
5741
|
}>;
|
|
5426
5742
|
}>;
|
|
5427
5743
|
readonly digest: Schema.String;
|
|
@@ -5688,6 +6004,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5688
6004
|
readonly search: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5689
6005
|
readonly projectId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateProjectId">, Schema.Null]>>;
|
|
5690
6006
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
6007
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"true">, Schema.Literal<"false">]>, Schema.Null]>>;
|
|
5691
6008
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
5692
6009
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
5693
6010
|
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
@@ -5696,6 +6013,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5696
6013
|
readonly channel: Schema.Literal<"email">;
|
|
5697
6014
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
5698
6015
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
6016
|
+
readonly shared: Schema.Boolean;
|
|
5699
6017
|
readonly entryPath: Schema.String;
|
|
5700
6018
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
5701
6019
|
readonly isActive: Schema.Boolean;
|
|
@@ -6389,10 +6707,12 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
6389
6707
|
readonly withUnsubscribe: Schema.Struct<{
|
|
6390
6708
|
readonly html: Schema.String;
|
|
6391
6709
|
readonly text: Schema.String;
|
|
6710
|
+
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6392
6711
|
}>;
|
|
6393
6712
|
readonly withoutUnsubscribe: Schema.Struct<{
|
|
6394
6713
|
readonly html: Schema.String;
|
|
6395
6714
|
readonly text: Schema.String;
|
|
6715
|
+
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6396
6716
|
}>;
|
|
6397
6717
|
}>;
|
|
6398
6718
|
readonly digest: Schema.String;
|
|
@@ -7955,6 +8275,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
7955
8275
|
}>, Schema.Null]>, Schema.Null]>>;
|
|
7956
8276
|
readonly replyToDefault: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>, Schema.Null]>>;
|
|
7957
8277
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
8278
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
7958
8279
|
}>;
|
|
7959
8280
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
7960
8281
|
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
@@ -7963,6 +8284,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
7963
8284
|
readonly channel: Schema.Literal<"email">;
|
|
7964
8285
|
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
7965
8286
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
8287
|
+
readonly shared: Schema.Boolean;
|
|
7966
8288
|
readonly entryPath: Schema.String;
|
|
7967
8289
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
7968
8290
|
readonly isActive: Schema.Boolean;
|