samva 0.52.0 → 0.54.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.
Files changed (43) hide show
  1. package/dist/client/sdk.gen.d.ts +55 -18
  2. package/dist/client/sdk.gen.js +165 -45
  3. package/dist/client/types.gen.d.ts +313 -21
  4. package/dist/effect/brands.d.ts +8 -1
  5. package/dist/effect/descriptors/brands.d.ts +4 -4
  6. package/dist/effect/descriptors/brands.js +4 -4
  7. package/dist/effect/descriptors/email.d.ts +21 -1
  8. package/dist/effect/descriptors/email.js +21 -1
  9. package/dist/effect/email.d.ts +12 -0
  10. package/dist/effect/email.js +5 -1
  11. package/dist/effect/events.d.ts +16 -0
  12. package/dist/effect/generated/api-keys.js +2 -2
  13. package/dist/effect/generated/brands.d.ts +78 -8
  14. package/dist/effect/generated/brands.js +21 -12
  15. package/dist/effect/generated/email.d.ts +473 -2
  16. package/dist/effect/generated/email.js +106 -7
  17. package/dist/effect/generated/events.d.ts +48 -0
  18. package/dist/effect/generated/events.js +1 -1
  19. package/dist/effect/generated/journeys.d.ts +1173 -55
  20. package/dist/effect/generated/journeys.js +10 -4
  21. package/dist/effect/generated/logs.d.ts +12 -0
  22. package/dist/effect/generated/mailboxes.d.ts +8 -0
  23. package/dist/effect/generated/mailboxes.js +2 -1
  24. package/dist/effect/generated/messages.d.ts +16 -0
  25. package/dist/effect/generated/messages.js +7 -1
  26. package/dist/effect/generated/scheduled-messages.d.ts +36 -0
  27. package/dist/effect/generated/shared.d.ts +438 -15
  28. package/dist/effect/generated/shared.js +59 -13
  29. package/dist/effect/generated/templates.d.ts +34 -1
  30. package/dist/effect/generated/templates.js +18 -3
  31. package/dist/effect/generated/whats-app-flows.d.ts +23 -5
  32. package/dist/effect/generated/whats-app-flows.js +9 -7
  33. package/dist/effect/generated-metadata.d.ts +12 -0
  34. package/dist/effect/generated-metadata.js +2 -0
  35. package/dist/effect/journeys.d.ts +76 -0
  36. package/dist/effect/mailboxes.d.ts +2 -0
  37. package/dist/effect/scheduled-messages.d.ts +66 -0
  38. package/dist/effect/templates.d.ts +1 -0
  39. package/dist/effect/whatsapp-flows.d.ts +30 -0
  40. package/dist/package.js +1 -1
  41. package/dist/promises/types.gen.d.ts +1 -1
  42. package/dist/service-map.d.ts +15 -5
  43. package/package.json +2 -2
@@ -190,6 +190,10 @@ const AttachmentId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern
190
190
  expected: "a string matching the RegExp ^att_[0-9a-hjkmnp-tv-z]{16,24}$",
191
191
  identifier: "AttachmentId"
192
192
  })).pipe(Schema.brand("AttachmentId")))();
193
+ const BrandId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^brand_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
194
+ expected: "a string matching the RegExp ^brand_[0-9a-hjkmnp-tv-z]{16,24}$",
195
+ identifier: "BrandId"
196
+ })).pipe(Schema.brand("BrandId")))();
193
197
  const BrandAssets = /* @__PURE__ */ (() => Schema.Struct({
194
198
  logoUrl: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^https:\\/\\/[^\\s]+$", "u")).annotate({ expected: "a string matching the RegExp ^https:\\/\\/[^\\s]+$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })), Schema.Null])),
195
199
  logoDarkUrl: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^https:\\/\\/[^\\s]+$", "u")).annotate({ expected: "a string matching the RegExp ^https:\\/\\/[^\\s]+$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })), Schema.Null])),
@@ -641,6 +645,7 @@ const WhatsAppReceivedReply = /* @__PURE__ */ (() => Schema.Struct({
641
645
  }).annotate({ identifier: "WhatsAppReceivedReply" }))();
642
646
  const WhatsAppReceivedFlowResponse = /* @__PURE__ */ (() => Schema.Struct({
643
647
  flowToken: Schema.Union([Schema.String, Schema.Null]),
648
+ submissionHandler: Schema.optionalKey(Schema.Literal("app")),
644
649
  response: Schema.Record(Schema.String, JsonValue),
645
650
  body: Schema.optionalKey(Schema.String)
646
651
  }).annotate({ identifier: "WhatsAppReceivedFlowResponse" }))();
@@ -784,6 +789,10 @@ const EmailSender = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
784
789
  }), Schema.Null]).annotate({ identifier: "EmailSender" }))();
785
790
  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" }))();
786
791
  const WhatsAppTemplateData = /* @__PURE__ */ (() => Schema.Record(Schema.String, JsonValue).annotate({ identifier: "WhatsAppTemplateData" }))();
792
+ const WhatsAppFlowActionData = /* @__PURE__ */ (() => Schema.Record(Schema.String, JsonValue).annotate({
793
+ description: "Initial screen data for a navigate Flow button.",
794
+ identifier: "WhatsAppFlowActionData"
795
+ }))();
787
796
  const WhatsAppImageLink = /* @__PURE__ */ (() => Schema.Struct({
788
797
  type: Schema.Literal("image"),
789
798
  caption: 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" }))),
@@ -954,7 +963,10 @@ const ContactConsent = /* @__PURE__ */ (() => Schema.Struct({
954
963
  capturedAt: Schema.String,
955
964
  proof: Schema.Union([JsonObject, Schema.Null])
956
965
  }).annotate({ identifier: "ContactConsent" }))();
957
- const JourneyWebhookConfig = /* @__PURE__ */ (() => Schema.Struct({ data: Schema.optionalKey(JsonObject) }).annotate({ identifier: "JourneyWebhookConfig" }))();
966
+ const JourneyWebhookConfig = /* @__PURE__ */ (() => Schema.Struct({
967
+ data: Schema.optionalKey(JsonObject),
968
+ eventBindings: Schema.optionalKey(Schema.Record(Schema.String, Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isPattern(new globalThis.RegExp("^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$" }))).check(Schema.isPropertyNames(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))).annotate({ expected: "an object with property names matching the schema" })))
969
+ }).annotate({ identifier: "JourneyWebhookConfig" }))();
958
970
  const AccountLinks = /* @__PURE__ */ (() => Schema.Record(Schema.String, IntegrationAccountId).annotate({ identifier: "AccountLinks" }))();
959
971
  const ContactEvent = /* @__PURE__ */ (() => Schema.Struct({
960
972
  id: Schema.String,
@@ -969,17 +981,26 @@ const ContactEventReference = /* @__PURE__ */ (() => Schema.Union([
969
981
  Schema.Struct({
970
982
  id: ContactId,
971
983
  externalId: Schema.optionalKey(Schema.Never),
972
- email: Schema.optionalKey(Schema.Never)
984
+ email: Schema.optionalKey(Schema.Never),
985
+ phone: Schema.optionalKey(Schema.Never)
973
986
  }),
974
987
  Schema.Struct({
975
988
  externalId: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
976
989
  id: Schema.optionalKey(Schema.Never),
977
- email: Schema.optionalKey(Schema.Never)
990
+ email: Schema.optionalKey(Schema.Never),
991
+ phone: Schema.optionalKey(Schema.Never)
978
992
  }),
979
993
  Schema.Struct({
980
994
  email: Schema.String,
981
995
  id: Schema.optionalKey(Schema.Never),
982
- externalId: Schema.optionalKey(Schema.Never)
996
+ externalId: Schema.optionalKey(Schema.Never),
997
+ phone: Schema.optionalKey(Schema.Never)
998
+ }),
999
+ Schema.Struct({
1000
+ phone: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^\\+[1-9]\\d{1,14}$", "u")).annotate({ expected: "a string matching the RegExp ^\\+[1-9]\\d{1,14}$" })),
1001
+ id: Schema.optionalKey(Schema.Never),
1002
+ externalId: Schema.optionalKey(Schema.Never),
1003
+ email: Schema.optionalKey(Schema.Never)
983
1004
  })
984
1005
  ]).annotate({ identifier: "ContactEventReference" }))();
985
1006
  const EmailRecipient = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({ contactId: ContactId }), Schema.Struct({
@@ -1403,7 +1424,10 @@ const JourneySendEmailConfig = /* @__PURE__ */ (() => Schema.Struct({
1403
1424
  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]+)*$" }))]),
1404
1425
  publicationId: Schema.optionalKey(TemplatePublicationId),
1405
1426
  senderId: Schema.optionalKey(EmailSenderId),
1406
- templateData: Schema.optionalKey(JsonObject)
1427
+ tracking: Schema.optionalKey(EmailTrackingOverrideV1),
1428
+ topicName: Schema.optionalKey(Schema.String.annotate({ description: "Topic name in the run's namespace. Omit to use the template topic or namespace default." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).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" }))),
1429
+ templateData: Schema.optionalKey(JsonObject),
1430
+ eventBindings: Schema.optionalKey(Schema.Record(Schema.String, Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isPattern(new globalThis.RegExp("^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$" }))).check(Schema.isPropertyNames(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))).annotate({ expected: "an object with property names matching the schema" })))
1407
1431
  }).annotate({ identifier: "JourneySendEmailConfig" }))();
1408
1432
  const SendFeedback = /* @__PURE__ */ (() => Schema.Struct({
1409
1433
  message: Schema.String.annotate({ description: "What happened and what you expected, in plain language (at most 4000 characters)." }).check(Schema.isMaxCodePoints(4e3).annotate({ expected: "a string with at most 4000 code points" })).check(Schema.isPattern(new globalThis.RegExp("\\S", "u")).annotate({ expected: "a string matching the RegExp \\S" })).check(Schema.isMaxLength(4e3).annotate({ expected: "a value with a length of at most 4000" })),
@@ -1553,12 +1577,14 @@ const MailboxSendOutcome = /* @__PURE__ */ (() => Schema.Struct({
1553
1577
  const WhatsAppTemplateIdContent = /* @__PURE__ */ (() => Schema.Struct({
1554
1578
  templateId: TemplateId,
1555
1579
  templateData: Schema.optionalKey(WhatsAppTemplateData),
1556
- 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" })))
1580
+ 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" }))),
1581
+ flowActionData: Schema.optionalKey(WhatsAppFlowActionData)
1557
1582
  }).annotate({ identifier: "WhatsAppTemplateIdContent" }))();
1558
1583
  const WhatsAppTemplateSlugContent = /* @__PURE__ */ (() => Schema.Struct({
1559
1584
  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]+)*$" })),
1560
1585
  templateData: Schema.optionalKey(WhatsAppTemplateData),
1561
- 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" })))
1586
+ 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" }))),
1587
+ flowActionData: Schema.optionalKey(WhatsAppFlowActionData)
1562
1588
  }).annotate({ identifier: "WhatsAppTemplateSlugContent" }))();
1563
1589
  const WhatsAppLocationContent = /* @__PURE__ */ (() => Schema.Struct({ location: WhatsAppLocation }).annotate({ identifier: "WhatsAppLocationContent" }))();
1564
1590
  const WhatsAppContactsContent = /* @__PURE__ */ (() => Schema.Struct({ contacts: Schema.Array(WhatsAppContactCard).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxLength(257).annotate({ expected: "a value with a length of at most 257" })) }).annotate({ identifier: "WhatsAppContactsContent" }))();
@@ -1717,6 +1743,7 @@ const ApiKeyAccess = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({ mode:
1717
1743
  })]).annotate({ identifier: "ApiKeyAccess" }))();
1718
1744
  const WhatsAppReactionContent = /* @__PURE__ */ (() => Schema.Struct({ reaction: WhatsAppReaction }).annotate({ identifier: "WhatsAppReactionContent" }))();
1719
1745
  const CreateBrand = /* @__PURE__ */ (() => Schema.Struct({
1746
+ namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
1720
1747
  slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })),
1721
1748
  name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).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" })),
1722
1749
  css: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(32768).annotate({ expected: "a string with at most 32768 code points" })).check(Schema.isMaxLength(32768).annotate({ expected: "a value with a length of at most 32768" })), Schema.Null])),
@@ -1725,6 +1752,7 @@ const CreateBrand = /* @__PURE__ */ (() => Schema.Struct({
1725
1752
  isDefault: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
1726
1753
  }).annotate({ identifier: "CreateBrand" }))();
1727
1754
  const UpdateBrand = /* @__PURE__ */ (() => Schema.Struct({
1755
+ namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
1728
1756
  newSlug: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Renames the brand. Projects importing `samva:brand/<old slug>` stop building until they import the new slug." }).check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })), Schema.Null])),
1729
1757
  name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).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])),
1730
1758
  css: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(32768).annotate({ expected: "a string with at most 32768 code points" })).check(Schema.isMaxLength(32768).annotate({ expected: "a value with a length of at most 32768" })), Schema.Null])),
@@ -1789,6 +1817,10 @@ const JourneyTrigger = /* @__PURE__ */ (() => Schema.Union([
1789
1817
  ]).annotate({ identifier: "JourneyTrigger" }))();
1790
1818
  const JourneyWaitForEventConfig = /* @__PURE__ */ (() => Schema.Struct({
1791
1819
  eventName: JourneyEventName,
1820
+ correlation: Schema.optionalKey(Schema.Struct({
1821
+ eventProperty: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isPattern(new globalThis.RegExp("^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$" })),
1822
+ entryProperty: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isPattern(new globalThis.RegExp("^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$" }))
1823
+ })),
1792
1824
  timeoutSeconds: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(7776e3).annotate({ expected: "a value less than or equal to 7776000" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
1793
1825
  }).annotate({ identifier: "JourneyWaitForEventConfig" }))();
1794
1826
  const JourneyEventPredicate = /* @__PURE__ */ (() => Schema.Struct({
@@ -1827,6 +1859,11 @@ const JourneyCustomFieldPredicate = /* @__PURE__ */ (() => Schema.Struct({
1827
1859
  key: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
1828
1860
  comparison: JourneyComparison
1829
1861
  }).annotate({ identifier: "JourneyCustomFieldPredicate" }))();
1862
+ const JourneyEntryEventPropertyPredicate = /* @__PURE__ */ (() => Schema.Struct({
1863
+ type: Schema.Literal("entry_event_property"),
1864
+ property: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isPattern(new globalThis.RegExp("^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$" })),
1865
+ comparison: JourneyComparison
1866
+ }).annotate({ identifier: "JourneyEntryEventPropertyPredicate" }))();
1830
1867
  const WhatsAppListMessage = /* @__PURE__ */ (() => Schema.Struct({
1831
1868
  type: Schema.Literal("list"),
1832
1869
  header: Schema.optionalKey(WhatsAppTextHeader),
@@ -1980,7 +2017,8 @@ const JourneySendWhatsAppConfig = /* @__PURE__ */ (() => Schema.Struct({
1980
2017
  registrationId: TemplateRegistrationId,
1981
2018
  templateChannelVariantId: TemplateChannelVariantId
1982
2019
  })),
1983
- eventBindings: Schema.optionalKey(Schema.Record(Schema.String, Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isPattern(new globalThis.RegExp("^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$" }))).check(Schema.isPropertyNames(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))).annotate({ expected: "an object with property names matching the schema" })))
2020
+ eventBindings: Schema.optionalKey(Schema.Record(Schema.String, Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isPattern(new globalThis.RegExp("^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$" }))).check(Schema.isPropertyNames(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))).annotate({ expected: "an object with property names matching the schema" }))),
2021
+ flowActionDataBinding: Schema.optionalKey(Schema.String.annotate({ description: "Entry-event property path to the JSON object that initializes a navigate Flow button." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isPattern(new globalThis.RegExp("^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$" })))
1984
2022
  }).annotate({ identifier: "JourneySendWhatsAppConfig" }))();
1985
2023
  const JourneyWaitForEventNode = /* @__PURE__ */ (() => Schema.Struct({
1986
2024
  type: Schema.Literal("wait_for_event"),
@@ -1991,7 +2029,8 @@ const JourneyPredicate = /* @__PURE__ */ (() => Schema.Union([
1991
2029
  JourneyTagPredicate,
1992
2030
  JourneyPropertyPredicate,
1993
2031
  JourneyCustomFieldPredicate,
1994
- JourneyEventPredicate
2032
+ JourneyEventPredicate,
2033
+ JourneyEntryEventPropertyPredicate
1995
2034
  ]).annotate({ identifier: "JourneyPredicate" }))();
1996
2035
  var MailboxSendRefusedError = class extends Schema.TaggedError()("MailboxSendRefusedError", Schema.Struct({
1997
2036
  message: Schema.String,
@@ -2119,6 +2158,7 @@ const AgentModuleBundle = /* @__PURE__ */ (() => Schema.Struct({
2119
2158
  manifest: AgentModuleManifest
2120
2159
  }).annotate({ identifier: "AgentModuleBundle" }))();
2121
2160
  const WhatsAppMessageContent = /* @__PURE__ */ (() => Schema.Struct({
2161
+ appHandlesFlowSubmission: Schema.optionalKey(Schema.Literal(true)),
2122
2162
  text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2123
2163
  template: Schema.optionalKey(Schema.Union([Schema.Struct({
2124
2164
  name: Schema.String,
@@ -2162,7 +2202,10 @@ const WhatsAppMessageContent = /* @__PURE__ */ (() => Schema.Struct({
2162
2202
  }), Schema.Null])),
2163
2203
  video: Schema.optionalKey(Schema.Union([Schema.Struct({ link: Schema.String }), Schema.Null])),
2164
2204
  coupon_code: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2165
- action: Schema.optionalKey(Schema.Union([Schema.Struct({ flow_token: Schema.String }), Schema.Null]))
2205
+ action: Schema.optionalKey(Schema.Union([Schema.Struct({
2206
+ flow_token: Schema.String,
2207
+ flow_action_data: Schema.optionalKey(JsonObject)
2208
+ }), Schema.Null]))
2166
2209
  }))
2167
2210
  }))
2168
2211
  }), Schema.Null])),
@@ -2245,10 +2288,13 @@ const JourneyDefinition = /* @__PURE__ */ (() => Schema.Struct({
2245
2288
  nodes: Schema.Record(Schema.String, JourneyNode).check(Schema.isMinProperties(1).annotate({ expected: "a value with at least 1 entry" })).check(Schema.isMaxProperties(200).annotate({ expected: "a value with at most 200 entries" })),
2246
2289
  goal: Schema.optionalKey(JourneyGoal),
2247
2290
  reentry: Schema.optionalKey(Schema.Boolean),
2248
- enrollment: Schema.optionalKey(Schema.Struct({
2291
+ enrollment: Schema.optionalKey(Schema.Union([Schema.Struct({
2249
2292
  type: Schema.Literal("shopify_order"),
2250
2293
  shop: ShopifyShop
2251
- }))
2294
+ }), Schema.Struct({
2295
+ type: Schema.Literal("event_property"),
2296
+ property: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isPattern(new globalThis.RegExp("^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$" }))
2297
+ })]))
2252
2298
  }).annotate({ identifier: "JourneyDefinition" }))();
2253
2299
  const __recursive_JsonValue = Schema.Union([
2254
2300
  Schema.String,
@@ -2263,6 +2309,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
2263
2309
  in: "header"
2264
2310
  });
2265
2311
  var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
2266
- export { AccountLinks, AccountStatus, AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, AgentModuleBundle, AgentModuleManifest, AgentModuleTool, AgentName, AgentReasoning, AgentSetupJob, AgentToolScope, AnalyticsQueryError, AnswerWithoutApproval, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandSocialLink, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignEmailInput, CampaignFooterRequiredError, CampaignFromInput, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, CatalogModelId, ClockTime, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, CredentialsError, DeliveryErrorDetails, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCampaignContentInput, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionInstallationId, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IanaTimezone, IntegrationAccountId, IntegrationId, IntegrationKey, IntegrationReturnTo, IntegrationStatus, IntegrationTool, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyId, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, JourneySendWhatsAppConfig, JourneyStatus, JourneyStringComparison, JourneyTagAddedTrigger, JourneyTagPredicate, JourneyTrigger, JourneyUpdateTagsConfig, JourneyUpdateTagsNode, JourneyWaitConfig, JourneyWaitEventEdge, JourneyWaitForEventConfig, JourneyWaitForEventNode, JourneyWaitNode, JourneyWebhookConfig, JourneyWebhookNode, JsonObject, JsonValue, KnowledgeSourceId, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxSendConflictError, MailboxSendError, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, MessageContent, MessageDeliveryId, MessageId, MessageMetadata, MessagePage, MessageSummary, MonthlySpendCapDollars, NamespaceId, NamespaceMetadata, NamespacePortalLinkMetadata, NamespaceResourceType, NewsletterId, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, PolicyConfiguration, PolicyDecider, PolicyDecisionId, PolicyEffect, PolicyRequirement, PolicyReviewRound, PolicyRule, PolicyRuleMatch, PolicySubject, PolicyVersion, RateLimitedError, RecipeSetupReferences, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SendsSeries, ServiceUnavailableError, ShareLinkUnavailable, ShopifyShop, SkippedRecipient, SlugTaken, SmsCampaignContentInput, SmsContent, SmsDispatchContent, SmsMessageContent, SmsRecipient, SmsRecipients, SmsSendMessagePayload, SmsTemplateData, StoredEmailAttachments, StoredReplyToAddresses, SubmissionClient, SuccessResponse, TemplateChannelVariantId, TemplateData, TemplateFamilyId, TemplateFromDefaultInput, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateRegistrationApproval, TemplateRegistrationId, TemplateSourceError, TemplateTrackingDefault, TestWebhookPayload, TimeZone, TopicContactByEmail, TopicContactById, TopicContactByPhone, TopicContactRef, TopicId, UnauthorizedError, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, WebhookEndpointId, Weekday, WhatsAppAudio, WhatsAppAudioLink, WhatsAppAudioUpload, WhatsAppBusinessAccountId, WhatsAppButtonsMessage, WhatsAppCampaignContentInput, WhatsAppChannelError, WhatsAppContactCard, WhatsAppContactsContent, WhatsAppContent, WhatsAppCtaUrlMessage, WhatsAppDocument, WhatsAppDocumentHeader, WhatsAppDocumentHeaderLink, WhatsAppDocumentHeaderUpload, WhatsAppDocumentLink, WhatsAppDocumentUpload, WhatsAppFlowId, WhatsAppFlowMessage, WhatsAppFlowVersionId, WhatsAppImage, WhatsAppImageHeader, WhatsAppImageHeaderLink, WhatsAppImageHeaderUpload, WhatsAppImageLink, WhatsAppImageUpload, WhatsAppInteractive, WhatsAppInteractiveContent, WhatsAppInteractiveHeader, WhatsAppJourneySendNode, WhatsAppListMessage, WhatsAppListRow, WhatsAppListSection, WhatsAppLocation, WhatsAppLocationContent, WhatsAppMediaContent, WhatsAppMessageContent, WhatsAppMessageReference, WhatsAppOutboundMedia, WhatsAppReaction, WhatsAppReactionContent, WhatsAppReceivedFlowResponse, WhatsAppReceivedReply, WhatsAppRecipient, WhatsAppRecipients, WhatsAppReplyButton, WhatsAppSendMessagePayload, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkMetadata, WhatsAppSetupLinkRedirectUrl, WhatsAppSetupLinkUnavailableError, WhatsAppSticker, WhatsAppStickerLink, WhatsAppStickerUpload, WhatsAppStoredContactCard, WhatsAppStoredFlowMessage, WhatsAppStoredInteractive, WhatsAppStoredLocation, WhatsAppStoredMedia, WhatsAppStoredReaction, WhatsAppStructuredContent, WhatsAppTemplateBinding, WhatsAppTemplateBindings, WhatsAppTemplateContactBinding, WhatsAppTemplateCustomFieldBinding, WhatsAppTemplateData, WhatsAppTemplateDispatch, WhatsAppTemplateDispatchData, WhatsAppTemplateIdContent, WhatsAppTemplateSlugContent, WhatsAppTextContent, WhatsAppTextHeader, WhatsAppVideo, WhatsAppVideoHeader, WhatsAppVideoHeaderLink, WhatsAppVideoHeaderUpload, WhatsAppVideoLink, WhatsAppVideoUpload, WorkingHours, WorkingHoursRange, AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, NonEmptySensitiveString as __SamvaRuntimeNonEmptySensitiveString, SensitiveString as __SamvaRuntimeSensitiveString };
2312
+ export { AccountLinks, AccountStatus, AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, AgentModuleBundle, AgentModuleManifest, AgentModuleTool, AgentName, AgentReasoning, AgentSetupJob, AgentToolScope, AnalyticsQueryError, AnswerWithoutApproval, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandId, BrandSocialLink, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignEmailInput, CampaignFooterRequiredError, CampaignFromInput, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, CatalogModelId, ClockTime, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, CredentialsError, DeliveryErrorDetails, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCampaignContentInput, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionInstallationId, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IanaTimezone, IntegrationAccountId, IntegrationId, IntegrationKey, IntegrationReturnTo, IntegrationStatus, IntegrationTool, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEntryEventPropertyPredicate, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyId, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, JourneySendWhatsAppConfig, JourneyStatus, JourneyStringComparison, JourneyTagAddedTrigger, JourneyTagPredicate, JourneyTrigger, JourneyUpdateTagsConfig, JourneyUpdateTagsNode, JourneyWaitConfig, JourneyWaitEventEdge, JourneyWaitForEventConfig, JourneyWaitForEventNode, JourneyWaitNode, JourneyWebhookConfig, JourneyWebhookNode, JsonObject, JsonValue, KnowledgeSourceId, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxSendConflictError, MailboxSendError, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, MessageContent, MessageDeliveryId, MessageId, MessageMetadata, MessagePage, MessageSummary, MonthlySpendCapDollars, NamespaceId, NamespaceMetadata, NamespacePortalLinkMetadata, NamespaceResourceType, NewsletterId, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, PolicyConfiguration, PolicyDecider, PolicyDecisionId, PolicyEffect, PolicyRequirement, PolicyReviewRound, PolicyRule, PolicyRuleMatch, PolicySubject, PolicyVersion, RateLimitedError, RecipeSetupReferences, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SendsSeries, ServiceUnavailableError, ShareLinkUnavailable, ShopifyShop, SkippedRecipient, SlugTaken, SmsCampaignContentInput, SmsContent, SmsDispatchContent, SmsMessageContent, SmsRecipient, SmsRecipients, SmsSendMessagePayload, SmsTemplateData, StoredEmailAttachments, StoredReplyToAddresses, SubmissionClient, SuccessResponse, TemplateChannelVariantId, TemplateData, TemplateFamilyId, TemplateFromDefaultInput, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateRegistrationApproval, TemplateRegistrationId, TemplateSourceError, TemplateTrackingDefault, TestWebhookPayload, TimeZone, TopicContactByEmail, TopicContactById, TopicContactByPhone, TopicContactRef, TopicId, UnauthorizedError, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, WebhookEndpointId, Weekday, WhatsAppAudio, WhatsAppAudioLink, WhatsAppAudioUpload, WhatsAppBusinessAccountId, WhatsAppButtonsMessage, WhatsAppCampaignContentInput, WhatsAppChannelError, WhatsAppContactCard, WhatsAppContactsContent, WhatsAppContent, WhatsAppCtaUrlMessage, WhatsAppDocument, WhatsAppDocumentHeader, WhatsAppDocumentHeaderLink, WhatsAppDocumentHeaderUpload, WhatsAppDocumentLink, WhatsAppDocumentUpload, WhatsAppFlowActionData, WhatsAppFlowId, WhatsAppFlowMessage, WhatsAppFlowVersionId, WhatsAppImage, WhatsAppImageHeader, WhatsAppImageHeaderLink, WhatsAppImageHeaderUpload, WhatsAppImageLink, WhatsAppImageUpload, WhatsAppInteractive, WhatsAppInteractiveContent, WhatsAppInteractiveHeader, WhatsAppJourneySendNode, WhatsAppListMessage, WhatsAppListRow, WhatsAppListSection, WhatsAppLocation, WhatsAppLocationContent, WhatsAppMediaContent, WhatsAppMessageContent, WhatsAppMessageReference, WhatsAppOutboundMedia, WhatsAppReaction, WhatsAppReactionContent, WhatsAppReceivedFlowResponse, WhatsAppReceivedReply, WhatsAppRecipient, WhatsAppRecipients, WhatsAppReplyButton, WhatsAppSendMessagePayload, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkMetadata, WhatsAppSetupLinkRedirectUrl, WhatsAppSetupLinkUnavailableError, WhatsAppSticker, WhatsAppStickerLink, WhatsAppStickerUpload, WhatsAppStoredContactCard, WhatsAppStoredFlowMessage, WhatsAppStoredInteractive, WhatsAppStoredLocation, WhatsAppStoredMedia, WhatsAppStoredReaction, WhatsAppStructuredContent, WhatsAppTemplateBinding, WhatsAppTemplateBindings, WhatsAppTemplateContactBinding, WhatsAppTemplateCustomFieldBinding, WhatsAppTemplateData, WhatsAppTemplateDispatch, WhatsAppTemplateDispatchData, WhatsAppTemplateIdContent, WhatsAppTemplateSlugContent, WhatsAppTextContent, WhatsAppTextHeader, WhatsAppVideo, WhatsAppVideoHeader, WhatsAppVideoHeaderLink, WhatsAppVideoHeaderUpload, WhatsAppVideoLink, WhatsAppVideoUpload, WorkingHours, WorkingHoursRange, AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, NonEmptySensitiveString as __SamvaRuntimeNonEmptySensitiveString, SensitiveString as __SamvaRuntimeSensitiveString };
2267
2313
 
2268
2314
  //# sourceMappingURL=shared.js.map
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, NamespaceId, OrganizationId, RenderLocale, RenderTimeZone, ResourceNotFoundError, ServiceUnavailableError, ShareLinkUnavailable, SuccessResponse, TemplateFamilyId, TemplateFromDefaultInput, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateSourceError, TemplateTrackingDefault, UnauthorizedError, UserId, ValidationError } from "./shared.js";
3
+ import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, BrandId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, NamespaceId, OrganizationId, RenderLocale, RenderTimeZone, ResourceNotFoundError, ServiceUnavailableError, ShareLinkUnavailable, SuccessResponse, TemplateFamilyId, TemplateFromDefaultInput, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateSourceError, TemplateTrackingDefault, UnauthorizedError, UserId, ValidationError } from "./shared.js";
4
4
  export type TemplatePublicationBrand = {
5
5
  readonly slug: string;
6
6
  readonly digest: string;
@@ -1424,6 +1424,8 @@ export type TemplatesPublish201 = {
1424
1424
  readonly treeDigest: string;
1425
1425
  };
1426
1426
  readonly brand?: {
1427
+ readonly id?: BrandId;
1428
+ readonly binding?: "default" | "named" | "embedded";
1427
1429
  readonly slug: string;
1428
1430
  readonly css: string;
1429
1431
  readonly assets: BrandAssets;
@@ -1536,6 +1538,8 @@ export declare const TemplatesPublish201: Schema.Struct<{
1536
1538
  readonly treeDigest: Schema.String;
1537
1539
  }>;
1538
1540
  readonly brand: Schema.optionalKey<Schema.Struct<{
1541
+ readonly id: Schema.optionalKey<Schema.brand<Schema.String, "BrandId">>;
1542
+ readonly binding: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"default">, Schema.Literal<"named">, Schema.Literal<"embedded">]>>;
1539
1543
  readonly slug: Schema.String;
1540
1544
  readonly css: Schema.String;
1541
1545
  readonly assets: Schema.Struct<{
@@ -1697,6 +1701,8 @@ export type TemplatesGetPublication200 = {
1697
1701
  readonly treeDigest: string;
1698
1702
  };
1699
1703
  readonly brand?: {
1704
+ readonly id?: BrandId;
1705
+ readonly binding?: "default" | "named" | "embedded";
1700
1706
  readonly slug: string;
1701
1707
  readonly css: string;
1702
1708
  readonly assets: BrandAssets;
@@ -1809,6 +1815,8 @@ export declare const TemplatesGetPublication200: Schema.Struct<{
1809
1815
  readonly treeDigest: Schema.String;
1810
1816
  }>;
1811
1817
  readonly brand: Schema.optionalKey<Schema.Struct<{
1818
+ readonly id: Schema.optionalKey<Schema.brand<Schema.String, "BrandId">>;
1819
+ readonly binding: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"default">, Schema.Literal<"named">, Schema.Literal<"embedded">]>>;
1812
1820
  readonly slug: Schema.String;
1813
1821
  readonly css: Schema.String;
1814
1822
  readonly assets: Schema.Struct<{
@@ -4884,6 +4892,7 @@ export type TemplatesAddEntryRequestJson = {
4884
4892
  readonly entryPath: string;
4885
4893
  readonly name: string;
4886
4894
  readonly slug: string;
4895
+ readonly channel?: "email" | "whatsapp";
4887
4896
  readonly description?: string | null;
4888
4897
  readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
4889
4898
  };
@@ -4891,6 +4900,7 @@ export declare const TemplatesAddEntryRequestJson: Schema.Struct<{
4891
4900
  readonly entryPath: Schema.String;
4892
4901
  readonly name: Schema.String;
4893
4902
  readonly slug: Schema.String;
4903
+ readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>>;
4894
4904
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4895
4905
  readonly category: Schema.optionalKey<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]>>;
4896
4906
  }>;
@@ -5002,6 +5012,8 @@ export type TemplatesAddEntry422 = ValidationError;
5002
5012
  export declare const TemplatesAddEntry422: typeof ValidationError;
5003
5013
  export type TemplatesAddEntry500 = InternalError;
5004
5014
  export declare const TemplatesAddEntry500: typeof InternalError;
5015
+ export type TemplatesAddEntry503 = ServiceUnavailableError;
5016
+ export declare const TemplatesAddEntry503: typeof ServiceUnavailableError;
5005
5017
  export type TemplatesAddEntry504 = GatewayTimeoutError;
5006
5018
  export declare const TemplatesAddEntry504: typeof GatewayTimeoutError;
5007
5019
  export type TemplatesSuggestStartersRequestJson = {
@@ -5059,6 +5071,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
5059
5071
  readonly entryPath: Schema.String;
5060
5072
  readonly name: Schema.String;
5061
5073
  readonly slug: Schema.String;
5074
+ readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>>;
5062
5075
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5063
5076
  readonly category: Schema.optionalKey<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]>>;
5064
5077
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -5241,6 +5254,22 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
5241
5254
  readonly resource: Schema.String;
5242
5255
  readonly id: Schema.String;
5243
5256
  readonly message: Schema.String;
5257
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ServiceUnavailableError, {
5258
+ readonly _tag: "ServiceUnavailableError";
5259
+ readonly message: string;
5260
+ readonly retryAfterSeconds: number;
5261
+ }, readonly [Schema.Struct<{
5262
+ readonly _tag: Schema.tag<"ServiceUnavailableError">;
5263
+ readonly message: Schema.String;
5264
+ readonly retryAfterSeconds: Schema.Finite;
5265
+ }>], {
5266
+ readonly _tag: "ServiceUnavailableError";
5267
+ readonly message: string;
5268
+ readonly retryAfterSeconds: number;
5269
+ }>, Schema.Struct<{
5270
+ readonly _tag: Schema.tag<"ServiceUnavailableError">;
5271
+ readonly message: Schema.String;
5272
+ readonly retryAfterSeconds: Schema.Finite;
5244
5273
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
5245
5274
  readonly _tag: "UnauthorizedError";
5246
5275
  readonly message: string;
@@ -7871,6 +7900,8 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
7871
7900
  readonly treeDigest: Schema.String;
7872
7901
  }>;
7873
7902
  readonly brand: Schema.optionalKey<Schema.Struct<{
7903
+ readonly id: Schema.optionalKey<Schema.brand<Schema.String, "BrandId">>;
7904
+ readonly binding: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"default">, Schema.Literal<"named">, Schema.Literal<"embedded">]>>;
7874
7905
  readonly slug: Schema.String;
7875
7906
  readonly css: Schema.String;
7876
7907
  readonly assets: Schema.Struct<{
@@ -8909,6 +8940,8 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
8909
8940
  readonly treeDigest: Schema.String;
8910
8941
  }>;
8911
8942
  readonly brand: Schema.optionalKey<Schema.Struct<{
8943
+ readonly id: Schema.optionalKey<Schema.brand<Schema.String, "BrandId">>;
8944
+ readonly binding: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"default">, Schema.Literal<"named">, Schema.Literal<"embedded">]>>;
8912
8945
  readonly slug: Schema.String;
8913
8946
  readonly css: Schema.String;
8914
8947
  readonly assets: Schema.Struct<{
@@ -1,4 +1,4 @@
1
- import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, NamespaceId, OrganizationId, RenderLocale, RenderTimeZone, ResourceNotFoundError, ServiceUnavailableError, ShareLinkUnavailable, SuccessResponse, TemplateFamilyId, TemplateFromDefaultInput, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateSourceError, TemplateTrackingDefault, UnauthorizedError, UserId, ValidationError } from "./shared.js";
1
+ import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, BrandId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, NamespaceId, OrganizationId, RenderLocale, RenderTimeZone, ResourceNotFoundError, ServiceUnavailableError, ShareLinkUnavailable, SuccessResponse, TemplateFamilyId, TemplateFromDefaultInput, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateSourceError, TemplateTrackingDefault, UnauthorizedError, UserId, ValidationError } from "./shared.js";
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  // src/effect/generated/templates.ts
@@ -475,6 +475,12 @@ const TemplatesPublish201 = /* @__PURE__ */ (() => Schema.Struct({
475
475
  treeDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
476
476
  }),
477
477
  brand: Schema.optionalKey(Schema.Struct({
478
+ id: Schema.optionalKey(BrandId),
479
+ binding: Schema.optionalKey(Schema.Union([
480
+ Schema.Literal("default"),
481
+ Schema.Literal("named"),
482
+ Schema.Literal("embedded")
483
+ ])),
478
484
  slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })),
479
485
  css: Schema.String,
480
486
  assets: BrandAssets,
@@ -622,6 +628,12 @@ const TemplatesGetPublication200 = /* @__PURE__ */ (() => Schema.Struct({
622
628
  treeDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
623
629
  }),
624
630
  brand: Schema.optionalKey(Schema.Struct({
631
+ id: Schema.optionalKey(BrandId),
632
+ binding: Schema.optionalKey(Schema.Union([
633
+ Schema.Literal("default"),
634
+ Schema.Literal("named"),
635
+ Schema.Literal("embedded")
636
+ ])),
625
637
  slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })),
626
638
  css: Schema.String,
627
639
  assets: BrandAssets,
@@ -2124,6 +2136,7 @@ const TemplatesAddEntryRequestJson = /* @__PURE__ */ (() => Schema.Struct({
2124
2136
  entryPath: 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" })),
2125
2137
  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" })),
2126
2138
  slug: 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]+)*$" })),
2139
+ channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]).annotate({ description: "Channel to register when the source is local, or to select from an entry that declares both." })),
2127
2140
  description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2128
2141
  category: Schema.optionalKey(Schema.Union([Schema.Union([
2129
2142
  Schema.Literal("transactional"),
@@ -2143,6 +2156,7 @@ const TemplatesAddEntry404 = ResourceNotFoundError;
2143
2156
  const TemplatesAddEntry409 = ConflictError;
2144
2157
  const TemplatesAddEntry422 = ValidationError;
2145
2158
  const TemplatesAddEntry500 = InternalError;
2159
+ const TemplatesAddEntry503 = ServiceUnavailableError;
2146
2160
  const TemplatesAddEntry504 = GatewayTimeoutError;
2147
2161
  const TemplatesSuggestStartersRequestJson = /* @__PURE__ */ (() => Schema.Struct({
2148
2162
  brief: Schema.String.annotate({ description: "What the message is for, as a person would ask for it: who sends it, to whom, and why. Naming a company's email (\"like the Vercel login email\") starts from Samva's recreation of it when the gallery has one." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(4e3).annotate({ expected: "a string with at most 4000 code points" })).check(Schema.isMaxLength(4e3).annotate({ expected: "a value with a length of at most 4000" })),
@@ -2657,9 +2671,10 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
2657
2671
  TemplatesAddEntry409.pipe(HttpApiSchema.status(409)),
2658
2672
  TemplatesAddEntry422.pipe(HttpApiSchema.status(422)),
2659
2673
  TemplatesAddEntry500,
2674
+ TemplatesAddEntry503.pipe(HttpApiSchema.status(503)),
2660
2675
  TemplatesAddEntry504.pipe(HttpApiSchema.status(504))
2661
2676
  ]
2662
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.addEntry").annotate(OpenApi.Summary, "Add a template entry").annotate(OpenApi.Description, "Registers a `.tsx` file under `templates/` or `emails/` in an existing template project as its own template and returns it with status 201. The file does not need to exist yet; publishing fails until a commit contains it. Repeating the call with the same entry path, name, and slug returns the existing template."), HttpApiEndpoint.post("templatesSuggestStarters", "/v1/templates/suggestions", {
2677
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.addEntry").annotate(OpenApi.Summary, "Add a template entry").annotate(OpenApi.Description, "Registers a `.tsx` file under `templates/` or `emails/` in an existing project as an email or WhatsApp template and returns status 201. The source determines the channel when available. If the entry declares both channels, email is selected unless you pass a channel. For a local or unwritten file, pass its channel or omit it to register email. Publishing checks the channel against the saved commit. Repeating the call with the same entry path, name, and slug returns the existing template."), HttpApiEndpoint.post("templatesSuggestStarters", "/v1/templates/suggestions", {
2663
2678
  payload: TemplatesSuggestStartersRequestJson,
2664
2679
  success: TemplatesSuggestStarters200,
2665
2680
  error: [
@@ -2671,6 +2686,6 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
2671
2686
  TemplatesSuggestStarters504.pipe(HttpApiSchema.status(504))
2672
2687
  ]
2673
2688
  }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.suggestStarters").annotate(OpenApi.Summary, "Suggest designs for a brief").annotate(OpenApi.Description, "Ranks Samva's gallery designs for a brief and returns the three to start a new email from (or, with `channel: \"whatsapp\"`, Samva's WhatsApp starters), best first, each with the `galleryTemplateId` that creates a template from it. When the brief names a company's email, `recreation` says whether the gallery recreates that kind of email from it, recreates another kind (start from it for the look), or has none. The ranking is deterministic: the same brief returns the same designs.")).annotate(OpenApi.Description, "Git-backed email template projects, workspace editing, immutable publications, and delivery defaults") {};
2674
- export { BrandRenderedFooter, Template, TemplateFamily, TemplateFamilyMember, TemplateFamilyPage, TemplateFromBrief, TemplateFromDefault, TemplateFromWebsite, TemplateInputContractPage, TemplatePage, TemplatePublicationBrand, TemplatePublicationRender, TemplateRecreationMatch, TemplateStarterSuggestion, TemplateStarterSuggestions, TemplateSummary, TemplatesAddEntry201, TemplatesAddEntry400, TemplatesAddEntry401, TemplatesAddEntry403, TemplatesAddEntry404, TemplatesAddEntry409, TemplatesAddEntry422, TemplatesAddEntry500, TemplatesAddEntry504, TemplatesAddEntryPathParams, TemplatesAddEntryRequestJson, TemplatesAttachFamilyMember200, TemplatesAttachFamilyMember400, TemplatesAttachFamilyMember401, TemplatesAttachFamilyMember403, TemplatesAttachFamilyMember404, TemplatesAttachFamilyMember409, TemplatesAttachFamilyMember422, TemplatesAttachFamilyMember500, TemplatesAttachFamilyMember504, TemplatesAttachFamilyMemberPathParams, TemplatesAttachWorkspaceResource200, TemplatesAttachWorkspaceResource400, TemplatesAttachWorkspaceResource401, TemplatesAttachWorkspaceResource403, TemplatesAttachWorkspaceResource404, TemplatesAttachWorkspaceResource409, TemplatesAttachWorkspaceResource422, TemplatesAttachWorkspaceResource500, TemplatesAttachWorkspaceResource503, TemplatesAttachWorkspaceResource504, TemplatesAttachWorkspaceResourceHeaders, TemplatesAttachWorkspaceResourcePathParams, TemplatesAttachWorkspaceResourceRequestJson, TemplatesCheckWorkspace200, TemplatesCheckWorkspace400, TemplatesCheckWorkspace401, TemplatesCheckWorkspace403, TemplatesCheckWorkspace404, TemplatesCheckWorkspace409, TemplatesCheckWorkspace422, TemplatesCheckWorkspace500, TemplatesCheckWorkspace503, TemplatesCheckWorkspace504, TemplatesCheckWorkspacePathParams, TemplatesCheckWorkspaceRequestJson, TemplatesCreate201, TemplatesCreate400, TemplatesCreate401, TemplatesCreate403, TemplatesCreate404, TemplatesCreate409, TemplatesCreate410, TemplatesCreate422, TemplatesCreate500, TemplatesCreate503, TemplatesCreate504, TemplatesCreateFamily201, TemplatesCreateFamily400, TemplatesCreateFamily401, TemplatesCreateFamily403, TemplatesCreateFamily404, TemplatesCreateFamily422, TemplatesCreateFamily500, TemplatesCreateFamily504, TemplatesCreateFamilyFromTemplate201, TemplatesCreateFamilyFromTemplate400, TemplatesCreateFamilyFromTemplate401, TemplatesCreateFamilyFromTemplate403, TemplatesCreateFamilyFromTemplate404, TemplatesCreateFamilyFromTemplate409, TemplatesCreateFamilyFromTemplate422, TemplatesCreateFamilyFromTemplate500, TemplatesCreateFamilyFromTemplate504, TemplatesCreateFamilyFromTemplatePathParams, TemplatesCreateFamilyFromTemplateRequestJson, TemplatesCreateFamilyRequestJson, TemplatesCreateFromBrief201, TemplatesCreateFromBrief400, TemplatesCreateFromBrief401, TemplatesCreateFromBrief403, TemplatesCreateFromBrief404, TemplatesCreateFromBrief409, TemplatesCreateFromBrief422, TemplatesCreateFromBrief500, TemplatesCreateFromBrief503, TemplatesCreateFromBrief504, TemplatesCreateFromBriefHeaders, TemplatesCreateFromBriefRequestJson, TemplatesCreateFromWebsite201, TemplatesCreateFromWebsite400, TemplatesCreateFromWebsite401, TemplatesCreateFromWebsite403, TemplatesCreateFromWebsite404, TemplatesCreateFromWebsite409, TemplatesCreateFromWebsite422, TemplatesCreateFromWebsite500, TemplatesCreateFromWebsite503, TemplatesCreateFromWebsite504, TemplatesCreateFromWebsiteHeaders, TemplatesCreateFromWebsiteRequestJson, TemplatesCreateHeaders, TemplatesCreateRequestJson, TemplatesDelete200, TemplatesDelete400, TemplatesDelete401, TemplatesDelete403, TemplatesDelete404, TemplatesDelete409, TemplatesDelete422, TemplatesDelete500, TemplatesDelete504, TemplatesDeleteFamily200, TemplatesDeleteFamily400, TemplatesDeleteFamily401, TemplatesDeleteFamily403, TemplatesDeleteFamily404, TemplatesDeleteFamily422, TemplatesDeleteFamily500, TemplatesDeleteFamily504, TemplatesDeleteFamilyPathParams, TemplatesDeletePathParams, TemplatesDeleteProject200, TemplatesDeleteProject400, TemplatesDeleteProject401, TemplatesDeleteProject403, TemplatesDeleteProject404, TemplatesDeleteProject409, TemplatesDeleteProject422, TemplatesDeleteProject500, TemplatesDeleteProject504, TemplatesDeleteProjectPathParams, TemplatesDetachFamilyMember200, TemplatesDetachFamilyMember400, TemplatesDetachFamilyMember401, TemplatesDetachFamilyMember403, TemplatesDetachFamilyMember404, TemplatesDetachFamilyMember409, TemplatesDetachFamilyMember422, TemplatesDetachFamilyMember500, TemplatesDetachFamilyMember504, TemplatesDetachFamilyMemberPathParams, TemplatesDiffWorkspace200, TemplatesDiffWorkspace400, TemplatesDiffWorkspace401, TemplatesDiffWorkspace403, TemplatesDiffWorkspace404, TemplatesDiffWorkspace409, TemplatesDiffWorkspace422, TemplatesDiffWorkspace500, TemplatesDiffWorkspace503, TemplatesDiffWorkspace504, TemplatesDiffWorkspacePathParams, TemplatesDiffWorkspaceRequestJson, TemplatesGetById200, TemplatesGetById400, TemplatesGetById401, TemplatesGetById403, TemplatesGetById404, TemplatesGetById422, TemplatesGetById500, TemplatesGetById504, TemplatesGetByIdPathParams, TemplatesGetFamily200, TemplatesGetFamily400, TemplatesGetFamily401, TemplatesGetFamily403, TemplatesGetFamily404, TemplatesGetFamily422, TemplatesGetFamily500, TemplatesGetFamily504, TemplatesGetFamilyPathParams, TemplatesGetGitRepository200, TemplatesGetGitRepository400, TemplatesGetGitRepository401, TemplatesGetGitRepository403, TemplatesGetGitRepository404, TemplatesGetGitRepository409, TemplatesGetGitRepository422, TemplatesGetGitRepository500, TemplatesGetGitRepository503, TemplatesGetGitRepository504, TemplatesGetGitRepositoryPathParams, TemplatesGetInputContract200, TemplatesGetInputContract400, TemplatesGetInputContract401, TemplatesGetInputContract403, TemplatesGetInputContract404, TemplatesGetInputContract422, TemplatesGetInputContract500, TemplatesGetInputContract504, TemplatesGetInputContractPathParams, TemplatesGetPublication200, TemplatesGetPublication400, TemplatesGetPublication401, TemplatesGetPublication403, TemplatesGetPublication404, TemplatesGetPublication422, TemplatesGetPublication500, TemplatesGetPublication504, TemplatesGetPublicationPathParams, TemplatesGroup, TemplatesIssueGitCredential200, TemplatesIssueGitCredential400, TemplatesIssueGitCredential401, TemplatesIssueGitCredential403, TemplatesIssueGitCredential404, TemplatesIssueGitCredential409, TemplatesIssueGitCredential422, TemplatesIssueGitCredential500, TemplatesIssueGitCredential503, TemplatesIssueGitCredential504, TemplatesIssueGitCredentialPathParams, TemplatesIssueGitCredentialRequestJson, TemplatesList200, TemplatesList400, TemplatesList401, TemplatesList403, TemplatesList422, TemplatesList500, TemplatesList504, TemplatesListFamilies200, TemplatesListFamilies400, TemplatesListFamilies401, TemplatesListFamilies403, TemplatesListFamilies422, TemplatesListFamilies500, TemplatesListFamilies504, TemplatesListFamiliesQuery, TemplatesListInputContracts200, TemplatesListInputContracts400, TemplatesListInputContracts401, TemplatesListInputContracts403, TemplatesListInputContracts404, TemplatesListInputContracts422, TemplatesListInputContracts500, TemplatesListInputContracts504, TemplatesListInputContractsPathParams, TemplatesListInputContractsQuery, TemplatesListQuery, TemplatesOpenWorkspace200, TemplatesOpenWorkspace400, TemplatesOpenWorkspace401, TemplatesOpenWorkspace403, TemplatesOpenWorkspace404, TemplatesOpenWorkspace409, TemplatesOpenWorkspace422, TemplatesOpenWorkspace500, TemplatesOpenWorkspace503, TemplatesOpenWorkspace504, TemplatesOpenWorkspacePathParams, TemplatesPatchWorkspace200, TemplatesPatchWorkspace400, TemplatesPatchWorkspace401, TemplatesPatchWorkspace403, TemplatesPatchWorkspace404, TemplatesPatchWorkspace409, TemplatesPatchWorkspace422, TemplatesPatchWorkspace500, TemplatesPatchWorkspace503, TemplatesPatchWorkspace504, TemplatesPatchWorkspaceHeaders, TemplatesPatchWorkspacePathParams, TemplatesPatchWorkspaceRequestJson, TemplatesPublish201, TemplatesPublish400, TemplatesPublish401, TemplatesPublish403, TemplatesPublish404, TemplatesPublish409, TemplatesPublish422, TemplatesPublish500, TemplatesPublish503, TemplatesPublish504, TemplatesPublishPathParams, TemplatesPublishRequestJson, TemplatesPutWorkspaceAsset200, TemplatesPutWorkspaceAsset400, TemplatesPutWorkspaceAsset401, TemplatesPutWorkspaceAsset403, TemplatesPutWorkspaceAsset404, TemplatesPutWorkspaceAsset409, TemplatesPutWorkspaceAsset422, TemplatesPutWorkspaceAsset500, TemplatesPutWorkspaceAsset503, TemplatesPutWorkspaceAsset504, TemplatesPutWorkspaceAssetHeaders, TemplatesPutWorkspaceAssetPathParams, TemplatesPutWorkspaceAssetRequestJson, TemplatesRemoveWorkspaceResource200, TemplatesRemoveWorkspaceResource400, TemplatesRemoveWorkspaceResource401, TemplatesRemoveWorkspaceResource403, TemplatesRemoveWorkspaceResource404, TemplatesRemoveWorkspaceResource409, TemplatesRemoveWorkspaceResource422, TemplatesRemoveWorkspaceResource500, TemplatesRemoveWorkspaceResource503, TemplatesRemoveWorkspaceResource504, TemplatesRemoveWorkspaceResourceHeaders, TemplatesRemoveWorkspaceResourcePathParams, TemplatesRemoveWorkspaceResourceRequestJson, TemplatesRenameFamily200, TemplatesRenameFamily400, TemplatesRenameFamily401, TemplatesRenameFamily403, TemplatesRenameFamily404, TemplatesRenameFamily422, TemplatesRenameFamily500, TemplatesRenameFamily504, TemplatesRenameFamilyPathParams, TemplatesRenameFamilyRequestJson, TemplatesRenderPublication200, TemplatesRenderPublication400, TemplatesRenderPublication401, TemplatesRenderPublication403, TemplatesRenderPublication404, TemplatesRenderPublication409, TemplatesRenderPublication422, TemplatesRenderPublication500, TemplatesRenderPublication504, TemplatesRenderPublicationPathParams, TemplatesRenderPublicationRequestJson, TemplatesRenderWorkspaceFixture200, TemplatesRenderWorkspaceFixture400, TemplatesRenderWorkspaceFixture401, TemplatesRenderWorkspaceFixture403, TemplatesRenderWorkspaceFixture404, TemplatesRenderWorkspaceFixture409, TemplatesRenderWorkspaceFixture422, TemplatesRenderWorkspaceFixture500, TemplatesRenderWorkspaceFixture503, TemplatesRenderWorkspaceFixture504, TemplatesRenderWorkspaceFixturePathParams, TemplatesRenderWorkspaceFixtureRequestJson, TemplatesResolveWorkspaceConflict200, TemplatesResolveWorkspaceConflict400, TemplatesResolveWorkspaceConflict401, TemplatesResolveWorkspaceConflict403, TemplatesResolveWorkspaceConflict404, TemplatesResolveWorkspaceConflict409, TemplatesResolveWorkspaceConflict422, TemplatesResolveWorkspaceConflict500, TemplatesResolveWorkspaceConflict503, TemplatesResolveWorkspaceConflict504, TemplatesResolveWorkspaceConflictHeaders, TemplatesResolveWorkspaceConflictPathParams, TemplatesResolveWorkspaceConflictRequestJson, TemplatesRestoreWorkspace200, TemplatesRestoreWorkspace400, TemplatesRestoreWorkspace401, TemplatesRestoreWorkspace403, TemplatesRestoreWorkspace404, TemplatesRestoreWorkspace409, TemplatesRestoreWorkspace422, TemplatesRestoreWorkspace500, TemplatesRestoreWorkspace503, TemplatesRestoreWorkspace504, TemplatesRestoreWorkspaceHeaders, TemplatesRestoreWorkspacePathParams, TemplatesRestoreWorkspaceRequestJson, TemplatesSaveWorkspace200, TemplatesSaveWorkspace400, TemplatesSaveWorkspace401, TemplatesSaveWorkspace403, TemplatesSaveWorkspace404, TemplatesSaveWorkspace409, TemplatesSaveWorkspace422, TemplatesSaveWorkspace500, TemplatesSaveWorkspace503, TemplatesSaveWorkspace504, TemplatesSaveWorkspaceHeaders, TemplatesSaveWorkspacePathParams, TemplatesSaveWorkspaceRequestJson, TemplatesSuggestStarters200, TemplatesSuggestStarters400, TemplatesSuggestStarters401, TemplatesSuggestStarters403, TemplatesSuggestStarters422, TemplatesSuggestStarters500, TemplatesSuggestStarters504, TemplatesSuggestStartersRequestJson, TemplatesUpdate200, TemplatesUpdate400, TemplatesUpdate401, TemplatesUpdate403, TemplatesUpdate404, TemplatesUpdate409, TemplatesUpdate422, TemplatesUpdate500, TemplatesUpdate504, TemplatesUpdatePathParams, TemplatesUpdateRequestJson, TemplatesWorkspaceHistory200, TemplatesWorkspaceHistory400, TemplatesWorkspaceHistory401, TemplatesWorkspaceHistory403, TemplatesWorkspaceHistory404, TemplatesWorkspaceHistory409, TemplatesWorkspaceHistory422, TemplatesWorkspaceHistory500, TemplatesWorkspaceHistory503, TemplatesWorkspaceHistory504, TemplatesWorkspaceHistoryPathParams, TemplatesWorkspaceHistoryQuery, WhatsAppTemplateButton, WhatsAppTemplateComponent };
2689
+ export { BrandRenderedFooter, Template, TemplateFamily, TemplateFamilyMember, TemplateFamilyPage, TemplateFromBrief, TemplateFromDefault, TemplateFromWebsite, TemplateInputContractPage, TemplatePage, TemplatePublicationBrand, TemplatePublicationRender, TemplateRecreationMatch, TemplateStarterSuggestion, TemplateStarterSuggestions, TemplateSummary, TemplatesAddEntry201, TemplatesAddEntry400, TemplatesAddEntry401, TemplatesAddEntry403, TemplatesAddEntry404, TemplatesAddEntry409, TemplatesAddEntry422, TemplatesAddEntry500, TemplatesAddEntry503, TemplatesAddEntry504, TemplatesAddEntryPathParams, TemplatesAddEntryRequestJson, TemplatesAttachFamilyMember200, TemplatesAttachFamilyMember400, TemplatesAttachFamilyMember401, TemplatesAttachFamilyMember403, TemplatesAttachFamilyMember404, TemplatesAttachFamilyMember409, TemplatesAttachFamilyMember422, TemplatesAttachFamilyMember500, TemplatesAttachFamilyMember504, TemplatesAttachFamilyMemberPathParams, TemplatesAttachWorkspaceResource200, TemplatesAttachWorkspaceResource400, TemplatesAttachWorkspaceResource401, TemplatesAttachWorkspaceResource403, TemplatesAttachWorkspaceResource404, TemplatesAttachWorkspaceResource409, TemplatesAttachWorkspaceResource422, TemplatesAttachWorkspaceResource500, TemplatesAttachWorkspaceResource503, TemplatesAttachWorkspaceResource504, TemplatesAttachWorkspaceResourceHeaders, TemplatesAttachWorkspaceResourcePathParams, TemplatesAttachWorkspaceResourceRequestJson, TemplatesCheckWorkspace200, TemplatesCheckWorkspace400, TemplatesCheckWorkspace401, TemplatesCheckWorkspace403, TemplatesCheckWorkspace404, TemplatesCheckWorkspace409, TemplatesCheckWorkspace422, TemplatesCheckWorkspace500, TemplatesCheckWorkspace503, TemplatesCheckWorkspace504, TemplatesCheckWorkspacePathParams, TemplatesCheckWorkspaceRequestJson, TemplatesCreate201, TemplatesCreate400, TemplatesCreate401, TemplatesCreate403, TemplatesCreate404, TemplatesCreate409, TemplatesCreate410, TemplatesCreate422, TemplatesCreate500, TemplatesCreate503, TemplatesCreate504, TemplatesCreateFamily201, TemplatesCreateFamily400, TemplatesCreateFamily401, TemplatesCreateFamily403, TemplatesCreateFamily404, TemplatesCreateFamily422, TemplatesCreateFamily500, TemplatesCreateFamily504, TemplatesCreateFamilyFromTemplate201, TemplatesCreateFamilyFromTemplate400, TemplatesCreateFamilyFromTemplate401, TemplatesCreateFamilyFromTemplate403, TemplatesCreateFamilyFromTemplate404, TemplatesCreateFamilyFromTemplate409, TemplatesCreateFamilyFromTemplate422, TemplatesCreateFamilyFromTemplate500, TemplatesCreateFamilyFromTemplate504, TemplatesCreateFamilyFromTemplatePathParams, TemplatesCreateFamilyFromTemplateRequestJson, TemplatesCreateFamilyRequestJson, TemplatesCreateFromBrief201, TemplatesCreateFromBrief400, TemplatesCreateFromBrief401, TemplatesCreateFromBrief403, TemplatesCreateFromBrief404, TemplatesCreateFromBrief409, TemplatesCreateFromBrief422, TemplatesCreateFromBrief500, TemplatesCreateFromBrief503, TemplatesCreateFromBrief504, TemplatesCreateFromBriefHeaders, TemplatesCreateFromBriefRequestJson, TemplatesCreateFromWebsite201, TemplatesCreateFromWebsite400, TemplatesCreateFromWebsite401, TemplatesCreateFromWebsite403, TemplatesCreateFromWebsite404, TemplatesCreateFromWebsite409, TemplatesCreateFromWebsite422, TemplatesCreateFromWebsite500, TemplatesCreateFromWebsite503, TemplatesCreateFromWebsite504, TemplatesCreateFromWebsiteHeaders, TemplatesCreateFromWebsiteRequestJson, TemplatesCreateHeaders, TemplatesCreateRequestJson, TemplatesDelete200, TemplatesDelete400, TemplatesDelete401, TemplatesDelete403, TemplatesDelete404, TemplatesDelete409, TemplatesDelete422, TemplatesDelete500, TemplatesDelete504, TemplatesDeleteFamily200, TemplatesDeleteFamily400, TemplatesDeleteFamily401, TemplatesDeleteFamily403, TemplatesDeleteFamily404, TemplatesDeleteFamily422, TemplatesDeleteFamily500, TemplatesDeleteFamily504, TemplatesDeleteFamilyPathParams, TemplatesDeletePathParams, TemplatesDeleteProject200, TemplatesDeleteProject400, TemplatesDeleteProject401, TemplatesDeleteProject403, TemplatesDeleteProject404, TemplatesDeleteProject409, TemplatesDeleteProject422, TemplatesDeleteProject500, TemplatesDeleteProject504, TemplatesDeleteProjectPathParams, TemplatesDetachFamilyMember200, TemplatesDetachFamilyMember400, TemplatesDetachFamilyMember401, TemplatesDetachFamilyMember403, TemplatesDetachFamilyMember404, TemplatesDetachFamilyMember409, TemplatesDetachFamilyMember422, TemplatesDetachFamilyMember500, TemplatesDetachFamilyMember504, TemplatesDetachFamilyMemberPathParams, TemplatesDiffWorkspace200, TemplatesDiffWorkspace400, TemplatesDiffWorkspace401, TemplatesDiffWorkspace403, TemplatesDiffWorkspace404, TemplatesDiffWorkspace409, TemplatesDiffWorkspace422, TemplatesDiffWorkspace500, TemplatesDiffWorkspace503, TemplatesDiffWorkspace504, TemplatesDiffWorkspacePathParams, TemplatesDiffWorkspaceRequestJson, TemplatesGetById200, TemplatesGetById400, TemplatesGetById401, TemplatesGetById403, TemplatesGetById404, TemplatesGetById422, TemplatesGetById500, TemplatesGetById504, TemplatesGetByIdPathParams, TemplatesGetFamily200, TemplatesGetFamily400, TemplatesGetFamily401, TemplatesGetFamily403, TemplatesGetFamily404, TemplatesGetFamily422, TemplatesGetFamily500, TemplatesGetFamily504, TemplatesGetFamilyPathParams, TemplatesGetGitRepository200, TemplatesGetGitRepository400, TemplatesGetGitRepository401, TemplatesGetGitRepository403, TemplatesGetGitRepository404, TemplatesGetGitRepository409, TemplatesGetGitRepository422, TemplatesGetGitRepository500, TemplatesGetGitRepository503, TemplatesGetGitRepository504, TemplatesGetGitRepositoryPathParams, TemplatesGetInputContract200, TemplatesGetInputContract400, TemplatesGetInputContract401, TemplatesGetInputContract403, TemplatesGetInputContract404, TemplatesGetInputContract422, TemplatesGetInputContract500, TemplatesGetInputContract504, TemplatesGetInputContractPathParams, TemplatesGetPublication200, TemplatesGetPublication400, TemplatesGetPublication401, TemplatesGetPublication403, TemplatesGetPublication404, TemplatesGetPublication422, TemplatesGetPublication500, TemplatesGetPublication504, TemplatesGetPublicationPathParams, TemplatesGroup, TemplatesIssueGitCredential200, TemplatesIssueGitCredential400, TemplatesIssueGitCredential401, TemplatesIssueGitCredential403, TemplatesIssueGitCredential404, TemplatesIssueGitCredential409, TemplatesIssueGitCredential422, TemplatesIssueGitCredential500, TemplatesIssueGitCredential503, TemplatesIssueGitCredential504, TemplatesIssueGitCredentialPathParams, TemplatesIssueGitCredentialRequestJson, TemplatesList200, TemplatesList400, TemplatesList401, TemplatesList403, TemplatesList422, TemplatesList500, TemplatesList504, TemplatesListFamilies200, TemplatesListFamilies400, TemplatesListFamilies401, TemplatesListFamilies403, TemplatesListFamilies422, TemplatesListFamilies500, TemplatesListFamilies504, TemplatesListFamiliesQuery, TemplatesListInputContracts200, TemplatesListInputContracts400, TemplatesListInputContracts401, TemplatesListInputContracts403, TemplatesListInputContracts404, TemplatesListInputContracts422, TemplatesListInputContracts500, TemplatesListInputContracts504, TemplatesListInputContractsPathParams, TemplatesListInputContractsQuery, TemplatesListQuery, TemplatesOpenWorkspace200, TemplatesOpenWorkspace400, TemplatesOpenWorkspace401, TemplatesOpenWorkspace403, TemplatesOpenWorkspace404, TemplatesOpenWorkspace409, TemplatesOpenWorkspace422, TemplatesOpenWorkspace500, TemplatesOpenWorkspace503, TemplatesOpenWorkspace504, TemplatesOpenWorkspacePathParams, TemplatesPatchWorkspace200, TemplatesPatchWorkspace400, TemplatesPatchWorkspace401, TemplatesPatchWorkspace403, TemplatesPatchWorkspace404, TemplatesPatchWorkspace409, TemplatesPatchWorkspace422, TemplatesPatchWorkspace500, TemplatesPatchWorkspace503, TemplatesPatchWorkspace504, TemplatesPatchWorkspaceHeaders, TemplatesPatchWorkspacePathParams, TemplatesPatchWorkspaceRequestJson, TemplatesPublish201, TemplatesPublish400, TemplatesPublish401, TemplatesPublish403, TemplatesPublish404, TemplatesPublish409, TemplatesPublish422, TemplatesPublish500, TemplatesPublish503, TemplatesPublish504, TemplatesPublishPathParams, TemplatesPublishRequestJson, TemplatesPutWorkspaceAsset200, TemplatesPutWorkspaceAsset400, TemplatesPutWorkspaceAsset401, TemplatesPutWorkspaceAsset403, TemplatesPutWorkspaceAsset404, TemplatesPutWorkspaceAsset409, TemplatesPutWorkspaceAsset422, TemplatesPutWorkspaceAsset500, TemplatesPutWorkspaceAsset503, TemplatesPutWorkspaceAsset504, TemplatesPutWorkspaceAssetHeaders, TemplatesPutWorkspaceAssetPathParams, TemplatesPutWorkspaceAssetRequestJson, TemplatesRemoveWorkspaceResource200, TemplatesRemoveWorkspaceResource400, TemplatesRemoveWorkspaceResource401, TemplatesRemoveWorkspaceResource403, TemplatesRemoveWorkspaceResource404, TemplatesRemoveWorkspaceResource409, TemplatesRemoveWorkspaceResource422, TemplatesRemoveWorkspaceResource500, TemplatesRemoveWorkspaceResource503, TemplatesRemoveWorkspaceResource504, TemplatesRemoveWorkspaceResourceHeaders, TemplatesRemoveWorkspaceResourcePathParams, TemplatesRemoveWorkspaceResourceRequestJson, TemplatesRenameFamily200, TemplatesRenameFamily400, TemplatesRenameFamily401, TemplatesRenameFamily403, TemplatesRenameFamily404, TemplatesRenameFamily422, TemplatesRenameFamily500, TemplatesRenameFamily504, TemplatesRenameFamilyPathParams, TemplatesRenameFamilyRequestJson, TemplatesRenderPublication200, TemplatesRenderPublication400, TemplatesRenderPublication401, TemplatesRenderPublication403, TemplatesRenderPublication404, TemplatesRenderPublication409, TemplatesRenderPublication422, TemplatesRenderPublication500, TemplatesRenderPublication504, TemplatesRenderPublicationPathParams, TemplatesRenderPublicationRequestJson, TemplatesRenderWorkspaceFixture200, TemplatesRenderWorkspaceFixture400, TemplatesRenderWorkspaceFixture401, TemplatesRenderWorkspaceFixture403, TemplatesRenderWorkspaceFixture404, TemplatesRenderWorkspaceFixture409, TemplatesRenderWorkspaceFixture422, TemplatesRenderWorkspaceFixture500, TemplatesRenderWorkspaceFixture503, TemplatesRenderWorkspaceFixture504, TemplatesRenderWorkspaceFixturePathParams, TemplatesRenderWorkspaceFixtureRequestJson, TemplatesResolveWorkspaceConflict200, TemplatesResolveWorkspaceConflict400, TemplatesResolveWorkspaceConflict401, TemplatesResolveWorkspaceConflict403, TemplatesResolveWorkspaceConflict404, TemplatesResolveWorkspaceConflict409, TemplatesResolveWorkspaceConflict422, TemplatesResolveWorkspaceConflict500, TemplatesResolveWorkspaceConflict503, TemplatesResolveWorkspaceConflict504, TemplatesResolveWorkspaceConflictHeaders, TemplatesResolveWorkspaceConflictPathParams, TemplatesResolveWorkspaceConflictRequestJson, TemplatesRestoreWorkspace200, TemplatesRestoreWorkspace400, TemplatesRestoreWorkspace401, TemplatesRestoreWorkspace403, TemplatesRestoreWorkspace404, TemplatesRestoreWorkspace409, TemplatesRestoreWorkspace422, TemplatesRestoreWorkspace500, TemplatesRestoreWorkspace503, TemplatesRestoreWorkspace504, TemplatesRestoreWorkspaceHeaders, TemplatesRestoreWorkspacePathParams, TemplatesRestoreWorkspaceRequestJson, TemplatesSaveWorkspace200, TemplatesSaveWorkspace400, TemplatesSaveWorkspace401, TemplatesSaveWorkspace403, TemplatesSaveWorkspace404, TemplatesSaveWorkspace409, TemplatesSaveWorkspace422, TemplatesSaveWorkspace500, TemplatesSaveWorkspace503, TemplatesSaveWorkspace504, TemplatesSaveWorkspaceHeaders, TemplatesSaveWorkspacePathParams, TemplatesSaveWorkspaceRequestJson, TemplatesSuggestStarters200, TemplatesSuggestStarters400, TemplatesSuggestStarters401, TemplatesSuggestStarters403, TemplatesSuggestStarters422, TemplatesSuggestStarters500, TemplatesSuggestStarters504, TemplatesSuggestStartersRequestJson, TemplatesUpdate200, TemplatesUpdate400, TemplatesUpdate401, TemplatesUpdate403, TemplatesUpdate404, TemplatesUpdate409, TemplatesUpdate422, TemplatesUpdate500, TemplatesUpdate504, TemplatesUpdatePathParams, TemplatesUpdateRequestJson, TemplatesWorkspaceHistory200, TemplatesWorkspaceHistory400, TemplatesWorkspaceHistory401, TemplatesWorkspaceHistory403, TemplatesWorkspaceHistory404, TemplatesWorkspaceHistory409, TemplatesWorkspaceHistory422, TemplatesWorkspaceHistory500, TemplatesWorkspaceHistory503, TemplatesWorkspaceHistory504, TemplatesWorkspaceHistoryPathParams, TemplatesWorkspaceHistoryQuery, WhatsAppTemplateButton, WhatsAppTemplateComponent };
2675
2690
 
2676
2691
  //# sourceMappingURL=templates.js.map