samva 0.43.3 → 0.44.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 +28 -2
- package/dist/client/sdk.gen.js +81 -1
- package/dist/client/types.gen.d.ts +444 -8
- package/dist/effect/email.d.ts +2 -0
- package/dist/effect/generated/campaigns.js +2 -2
- package/dist/effect/generated/email.d.ts +7 -0
- package/dist/effect/generated/email.js +8 -9
- package/dist/effect/generated/mailboxes.d.ts +14 -14
- package/dist/effect/generated/mailboxes.js +2 -0
- package/dist/effect/generated/newsletter-issues.js +29 -29
- package/dist/effect/generated/organizations.js +2 -2
- package/dist/effect/generated/scheduled-messages.js +3 -3
- package/dist/effect/generated/shared.d.ts +20 -0
- package/dist/effect/generated/shared.js +23 -23
- package/dist/effect/generated/subscriptions.js +4 -4
- package/dist/effect/generated/templates.d.ts +789 -6
- package/dist/effect/generated/templates.js +156 -54
- package/dist/effect/generated-metadata.d.ts +12 -0
- package/dist/effect/generated-metadata.js +2 -0
- package/dist/effect/mailboxes.d.ts +4 -4
- package/dist/effect/templates.d.ts +10 -0
- package/dist/effect/templates.js +5 -1
- package/dist/mailbox/types.d.ts +2 -1
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +8 -0
- package/dist/service-map.js +2 -0
- package/package.json +10 -10
|
@@ -266,10 +266,10 @@ const SendsSeries = /* @__PURE__ */ (() => Schema.Array(Schema.Finite.check(Sche
|
|
|
266
266
|
description: "Daily email sends for the last 14 calendar days in the organization's own timezone, oldest first and zero-filled. Always fourteen entries; an entity that has never sent reports fourteen zeroes.",
|
|
267
267
|
identifier: "SendsSeries"
|
|
268
268
|
}))();
|
|
269
|
-
const ReplyToAddresses = /* @__PURE__ */ (() => Schema.Union([Schema.Array(Schema.String
|
|
269
|
+
const ReplyToAddresses = /* @__PURE__ */ (() => Schema.Union([Schema.Array(Schema.String), Schema.Null]).annotate({ identifier: "ReplyToAddresses" }))();
|
|
270
270
|
const CampaignFromInput = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
|
|
271
|
-
email: Schema.String
|
|
272
|
-
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.
|
|
271
|
+
email: Schema.String,
|
|
272
|
+
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null]))
|
|
273
273
|
}), Schema.Null]).annotate({ identifier: "CampaignFromInput" }))();
|
|
274
274
|
var FlagDisabledError = class extends Schema.TaggedError()("FlagDisabledError", Schema.Struct({
|
|
275
275
|
flag: Schema.String,
|
|
@@ -609,8 +609,8 @@ const MailboxThreadPriority = /* @__PURE__ */ (() => Schema.Union([
|
|
|
609
609
|
]).annotate({ identifier: "MailboxThreadPriority" }))();
|
|
610
610
|
const MessageMetadata = /* @__PURE__ */ (() => Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null]).annotate({ identifier: "MessageMetadata" }))();
|
|
611
611
|
const EmailSender = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
|
|
612
|
-
email: Schema.String
|
|
613
|
-
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.
|
|
612
|
+
email: Schema.String,
|
|
613
|
+
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null]))
|
|
614
614
|
}), Schema.Null]).annotate({ identifier: "EmailSender" }))();
|
|
615
615
|
const WhatsAppTextContent = /* @__PURE__ */ (() => Schema.Struct({ text: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(4096).annotate({ expected: "a string with at most 4096 code points" })).check(Schema.isMaxLength(4096).annotate({ expected: "a value with a length of at most 4096" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })) }).annotate({ identifier: "WhatsAppTextContent" }))();
|
|
616
616
|
const WhatsAppTemplateData = /* @__PURE__ */ (() => Schema.Record(Schema.String, JsonValue).annotate({ identifier: "WhatsAppTemplateData" }))();
|
|
@@ -761,8 +761,8 @@ var TemplateInUseError = class extends Schema.TaggedError()("TemplateInUseError"
|
|
|
761
761
|
}))
|
|
762
762
|
})) {};
|
|
763
763
|
const TemplateFromDefaultInput = /* @__PURE__ */ (() => Schema.Struct({
|
|
764
|
-
email: Schema.String
|
|
765
|
-
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.
|
|
764
|
+
email: Schema.String,
|
|
765
|
+
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null]))
|
|
766
766
|
}).annotate({ identifier: "TemplateFromDefaultInput" }))();
|
|
767
767
|
const TopicContactByEmail = /* @__PURE__ */ (() => Schema.Struct({ email: Schema.String }).annotate({ identifier: "TopicContactByEmail" }))();
|
|
768
768
|
const TopicContactByPhone = /* @__PURE__ */ (() => Schema.Struct({ phone: Schema.String }).annotate({ identifier: "TopicContactByPhone" }))();
|
|
@@ -770,7 +770,7 @@ const TestWebhookPayload = /* @__PURE__ */ (() => Schema.Struct({ data: Schema.o
|
|
|
770
770
|
const CreateTemplatePayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
771
771
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
|
|
772
772
|
projectName: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })), Schema.Null])),
|
|
773
|
-
slug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^
|
|
773
|
+
slug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
|
|
774
774
|
galleryTemplateId: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema.Null])),
|
|
775
775
|
useBrand: Schema.optionalKey(Schema.Union([Schema.Boolean.annotate({ description: "With `galleryTemplateId`: whether the new project's `theme.css` imports the organization's default brand (`@import \"samva:brand\";`) over the starter's look. Defaults to false." }), Schema.Null])),
|
|
776
776
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1060,13 +1060,13 @@ const ContactEventReference = /* @__PURE__ */ (() => Schema.Union([
|
|
|
1060
1060
|
email: Schema.optionalKey(Schema.Never)
|
|
1061
1061
|
}),
|
|
1062
1062
|
Schema.Struct({
|
|
1063
|
-
email: Schema.String
|
|
1063
|
+
email: Schema.String,
|
|
1064
1064
|
id: Schema.optionalKey(Schema.Never),
|
|
1065
1065
|
externalId: Schema.optionalKey(Schema.Never)
|
|
1066
1066
|
})
|
|
1067
1067
|
]).annotate({ identifier: "ContactEventReference" }))();
|
|
1068
1068
|
const EmailRecipient = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({ contactId: ContactId }), Schema.Struct({
|
|
1069
|
-
email: Schema.String
|
|
1069
|
+
email: Schema.String,
|
|
1070
1070
|
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null])),
|
|
1071
1071
|
displayName: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null]))
|
|
1072
1072
|
})]).annotate({ identifier: "EmailRecipient" }))();
|
|
@@ -1155,7 +1155,7 @@ const MessageSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1155
1155
|
createdAt: Schema.String
|
|
1156
1156
|
}).annotate({ identifier: "MessageSummary" }))();
|
|
1157
1157
|
const JourneySendEmailConfig = /* @__PURE__ */ (() => Schema.Struct({
|
|
1158
|
-
template: Schema.Union([TemplateId, Schema.String.check(Schema.isPattern(new globalThis.RegExp("^
|
|
1158
|
+
template: Schema.Union([TemplateId, Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" }))]),
|
|
1159
1159
|
senderId: Schema.optionalKey(EmailSenderId),
|
|
1160
1160
|
templateData: Schema.optionalKey(JsonObject)
|
|
1161
1161
|
}).annotate({ identifier: "JourneySendEmailConfig" }))();
|
|
@@ -1271,7 +1271,7 @@ const WhatsAppTemplateIdContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1271
1271
|
flowToken: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })))
|
|
1272
1272
|
}).annotate({ identifier: "WhatsAppTemplateIdContent" }))();
|
|
1273
1273
|
const WhatsAppTemplateSlugContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
1274
|
-
templateSlug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^
|
|
1274
|
+
templateSlug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
1275
1275
|
templateData: Schema.optionalKey(WhatsAppTemplateData),
|
|
1276
1276
|
flowToken: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })))
|
|
1277
1277
|
}).annotate({ identifier: "WhatsAppTemplateSlugContent" }))();
|
|
@@ -1343,8 +1343,8 @@ const OperationResourceLink = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1343
1343
|
}).annotate({ identifier: "OperationResourceLink" }))();
|
|
1344
1344
|
const UpdateTemplatePayload = /* @__PURE__ */ (() => Schema.Struct({ data: Schema.Struct({
|
|
1345
1345
|
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1346
|
-
slug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^
|
|
1347
|
-
entryPath: Schema.optionalKey(Schema.Union([Schema.String.
|
|
1346
|
+
slug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
|
|
1347
|
+
entryPath: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.Null])),
|
|
1348
1348
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1349
1349
|
category: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
1350
1350
|
Schema.Literal("transactional"),
|
|
@@ -1356,7 +1356,7 @@ const UpdateTemplatePayload = /* @__PURE__ */ (() => Schema.Struct({ data: Schem
|
|
|
1356
1356
|
Schema.Literal("alert")
|
|
1357
1357
|
]), Schema.Null])),
|
|
1358
1358
|
fromDefault: Schema.optionalKey(Schema.Union([TemplateFromDefaultInput, Schema.Null])),
|
|
1359
|
-
replyToDefault: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String
|
|
1359
|
+
replyToDefault: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1360
1360
|
trackingDefault: Schema.optionalKey(Schema.Union([TemplateTrackingDefault, Schema.Null]).annotate({ description: "Engagement tracking for sends of this template: `opens` and `clicks`, each inherited from the domain and organization defaults when omitted. A send request's own `tracking` still wins. Null clears the template's default." })),
|
|
1361
1361
|
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." }))
|
|
1362
1362
|
}) }).annotate({ identifier: "UpdateTemplatePayload" }))();
|
|
@@ -1457,13 +1457,13 @@ const WhatsAppDocumentHeader = /* @__PURE__ */ (() => Schema.Union([WhatsAppDocu
|
|
|
1457
1457
|
const SmsContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
1458
1458
|
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1459
1459
|
templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
|
|
1460
|
-
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^
|
|
1460
|
+
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
|
|
1461
1461
|
templateData: Schema.optionalKey(SmsTemplateData)
|
|
1462
1462
|
}).annotate({ identifier: "SmsContent" }))();
|
|
1463
1463
|
const SmsDispatchContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
1464
1464
|
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1465
1465
|
templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
|
|
1466
|
-
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^
|
|
1466
|
+
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
|
|
1467
1467
|
templateData: Schema.optionalKey(SmsTemplateData)
|
|
1468
1468
|
}).annotate({ identifier: "SmsDispatchContent" }))();
|
|
1469
1469
|
const ContactIdentityChannel = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -1622,14 +1622,14 @@ const PolicyRule = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
|
|
|
1622
1622
|
atLeast: PolicyRequirement
|
|
1623
1623
|
})]).annotate({ identifier: "PolicyRule" }))();
|
|
1624
1624
|
const CampaignEmailInput = /* @__PURE__ */ (() => Schema.Struct({
|
|
1625
|
-
subject: Schema.optionalKey(Schema.Union([Schema.String
|
|
1625
|
+
subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1626
1626
|
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1627
1627
|
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1628
1628
|
attachments: Schema.optionalKey(EmailAttachments),
|
|
1629
1629
|
publicationId: Schema.optionalKey(TemplatePublicationId),
|
|
1630
1630
|
inputContractId: Schema.optionalKey(TemplateInputContractId),
|
|
1631
1631
|
templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
|
|
1632
|
-
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^
|
|
1632
|
+
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
|
|
1633
1633
|
templateData: Schema.optionalKey(TemplateData),
|
|
1634
1634
|
locale: Schema.optionalKey(RenderLocale),
|
|
1635
1635
|
timeZone: Schema.optionalKey(RenderTimeZone),
|
|
@@ -1642,14 +1642,14 @@ const CampaignEmailInput = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1642
1642
|
preheader: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
1643
1643
|
}).annotate({ identifier: "CampaignEmailInput" }))();
|
|
1644
1644
|
const EmailContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
1645
|
-
subject: Schema.optionalKey(Schema.Union([Schema.String
|
|
1645
|
+
subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1646
1646
|
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1647
1647
|
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1648
1648
|
attachments: Schema.optionalKey(EmailAttachments),
|
|
1649
1649
|
publicationId: Schema.optionalKey(TemplatePublicationId),
|
|
1650
1650
|
inputContractId: Schema.optionalKey(TemplateInputContractId),
|
|
1651
1651
|
templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
|
|
1652
|
-
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^
|
|
1652
|
+
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
|
|
1653
1653
|
templateData: Schema.optionalKey(TemplateData),
|
|
1654
1654
|
locale: Schema.optionalKey(RenderLocale),
|
|
1655
1655
|
timeZone: Schema.optionalKey(RenderTimeZone),
|
|
@@ -1687,7 +1687,7 @@ const ContactIdentity = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1687
1687
|
channels: Schema.Array(ContactIdentityChannel)
|
|
1688
1688
|
}).annotate({ identifier: "ContactIdentity" }))();
|
|
1689
1689
|
const WhatsAppTemplateDispatch = /* @__PURE__ */ (() => Schema.Struct({
|
|
1690
|
-
template: Schema.Union([TemplateId, Schema.String.check(Schema.isPattern(new globalThis.RegExp("^
|
|
1690
|
+
template: Schema.Union([TemplateId, Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" }))]),
|
|
1691
1691
|
templateData: Schema.optionalKey(WhatsAppTemplateDispatchData),
|
|
1692
1692
|
bindings: Schema.optionalKey(WhatsAppTemplateBindings),
|
|
1693
1693
|
businessAccountId: Schema.optionalKey(WhatsAppBusinessAccountId)
|
|
@@ -1732,7 +1732,7 @@ const EmailCampaignContentInput = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1732
1732
|
channel: Schema.Literal("email"),
|
|
1733
1733
|
email: CampaignEmailInput,
|
|
1734
1734
|
issue: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
1735
|
-
path: Schema.String.
|
|
1735
|
+
path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
1736
1736
|
commit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))
|
|
1737
1737
|
}), Schema.Null]).annotate({ description: "Render a saved Markdown issue from the audience topic's repository. Its saved title and preheader supply the email content; templateData supplies recipient fallbacks." })),
|
|
1738
1738
|
from: Schema.optionalKey(CampaignFromInput),
|
|
@@ -7,13 +7,13 @@ const SubscribeResult = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
7
7
|
expiresAt: Schema.String
|
|
8
8
|
}).annotate({ identifier: "SubscribeResult" }))();
|
|
9
9
|
const SubscriptionsSubscribeRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
10
|
-
email: Schema.String
|
|
10
|
+
email: Schema.String,
|
|
11
11
|
topicId: TopicId,
|
|
12
12
|
from: Schema.Struct({
|
|
13
|
-
email: Schema.String
|
|
14
|
-
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.
|
|
13
|
+
email: Schema.String,
|
|
14
|
+
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null]))
|
|
15
15
|
}).annotate({ description: "Your verified email sender. The ordinary send pipeline selects its domain and customer brand." }),
|
|
16
|
-
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.
|
|
16
|
+
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
|
|
17
17
|
consentIp: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The recipient IP recorded by your server when they requested subscription." }).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema.Null])),
|
|
18
18
|
consentSource: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The signup page or source recorded by your server when consent was requested." }).check(Schema.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })), Schema.Null]))
|
|
19
19
|
}))();
|