samva 0.53.0 → 0.55.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 (157) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +1 -0
  3. package/dist/_virtual/_rolldown/runtime.js +4 -4
  4. package/dist/agent/index.js +1 -1
  5. package/dist/client/client/client.gen.js +1 -2
  6. package/dist/client/client/utils.gen.js +1 -1
  7. package/dist/client/client.gen.js +1 -1
  8. package/dist/client/sdk.gen.d.ts +96 -12
  9. package/dist/client/sdk.gen.js +314 -25
  10. package/dist/client/types.gen.d.ts +647 -13
  11. package/dist/client-attribution.js +1 -1
  12. package/dist/effect/agents.js +1 -1
  13. package/dist/effect/analytics.js +1 -1
  14. package/dist/effect/api-keys.js +1 -1
  15. package/dist/effect/approval-requests.js +1 -1
  16. package/dist/effect/attachments.js +1 -1
  17. package/dist/effect/brands.d.ts +8 -1
  18. package/dist/effect/brands.js +2 -2
  19. package/dist/effect/campaigns.d.ts +66 -56
  20. package/dist/effect/campaigns.js +1 -1
  21. package/dist/effect/categories.js +6 -6
  22. package/dist/effect/contact-groups.js +1 -1
  23. package/dist/effect/contacts.js +1 -1
  24. package/dist/effect/conversations.js +1 -1
  25. package/dist/effect/custom-fields.js +1 -1
  26. package/dist/effect/descriptors/brands.d.ts +4 -4
  27. package/dist/effect/descriptors/brands.js +4 -4
  28. package/dist/effect/descriptors/email.d.ts +21 -1
  29. package/dist/effect/descriptors/email.js +21 -1
  30. package/dist/effect/descriptors/phone-numbers.d.ts +49 -0
  31. package/dist/effect/descriptors/phone-numbers.js +47 -0
  32. package/dist/effect/descriptors/topics.d.ts +1 -1
  33. package/dist/effect/descriptors/topics.js +1 -1
  34. package/dist/effect/email.d.ts +12 -0
  35. package/dist/effect/email.js +6 -2
  36. package/dist/effect/errors.d.ts +1 -1
  37. package/dist/effect/errors.js +2 -2
  38. package/dist/effect/events.js +2 -2
  39. package/dist/effect/feedback.js +2 -2
  40. package/dist/effect/generated/accounts.d.ts +12 -1
  41. package/dist/effect/generated/accounts.js +2 -1
  42. package/dist/effect/generated/agents.js +7 -7
  43. package/dist/effect/generated/analytics.js +16 -16
  44. package/dist/effect/generated/api-keys.js +7 -7
  45. package/dist/effect/generated/approval-requests.js +1 -1
  46. package/dist/effect/generated/attachments.js +4 -4
  47. package/dist/effect/generated/brands.d.ts +78 -8
  48. package/dist/effect/generated/brands.js +21 -12
  49. package/dist/effect/generated/campaigns.d.ts +17 -1
  50. package/dist/effect/generated/campaigns.js +15 -14
  51. package/dist/effect/generated/contact-events.js +1 -1
  52. package/dist/effect/generated/contact-groups.js +12 -12
  53. package/dist/effect/generated/contacts.js +50 -50
  54. package/dist/effect/generated/conversations.js +7 -7
  55. package/dist/effect/generated/custom-fields.js +6 -6
  56. package/dist/effect/generated/email.d.ts +473 -2
  57. package/dist/effect/generated/email.js +143 -44
  58. package/dist/effect/generated/events.js +5 -5
  59. package/dist/effect/generated/feedback.js +1 -1
  60. package/dist/effect/generated/index.d.ts +3 -1
  61. package/dist/effect/generated/integrations-catalog.d.ts +16 -0
  62. package/dist/effect/generated/integrations-catalog.js +10 -6
  63. package/dist/effect/generated/integrations.js +5 -5
  64. package/dist/effect/generated/journeys.d.ts +158 -1
  65. package/dist/effect/generated/journeys.js +16 -14
  66. package/dist/effect/generated/logs.js +2 -2
  67. package/dist/effect/generated/mailboxes.d.ts +41 -3
  68. package/dist/effect/generated/mailboxes.js +48 -50
  69. package/dist/effect/generated/media.js +1 -1
  70. package/dist/effect/generated/messages.d.ts +6 -0
  71. package/dist/effect/generated/messages.js +12 -6
  72. package/dist/effect/generated/namespaces.d.ts +9 -9
  73. package/dist/effect/generated/namespaces.js +1 -1
  74. package/dist/effect/generated/newsletter-domains.js +1 -1
  75. package/dist/effect/generated/newsletter-issues.js +69 -69
  76. package/dist/effect/generated/newsletters.js +1 -1
  77. package/dist/effect/generated/operations.js +1 -1
  78. package/dist/effect/generated/organizations.d.ts +3 -0
  79. package/dist/effect/generated/organizations.js +2 -1
  80. package/dist/effect/generated/phone-numbers.d.ts +817 -0
  81. package/dist/effect/generated/phone-numbers.js +230 -0
  82. package/dist/effect/generated/policies.js +2 -2
  83. package/dist/effect/generated/scheduled-messages.js +1 -1
  84. package/dist/effect/generated/shared.d.ts +75 -14
  85. package/dist/effect/generated/shared.js +46 -17
  86. package/dist/effect/generated/subscriptions.js +1 -1
  87. package/dist/effect/generated/template-registrations.js +1 -1
  88. package/dist/effect/generated/template-share-links.js +9 -9
  89. package/dist/effect/generated/templates.d.ts +34 -1
  90. package/dist/effect/generated/templates.js +136 -121
  91. package/dist/effect/generated/topic-forms.js +1 -1
  92. package/dist/effect/generated/topics.d.ts +10 -0
  93. package/dist/effect/generated/topics.js +20 -13
  94. package/dist/effect/generated/webhooks.js +18 -18
  95. package/dist/effect/generated/whats-app-flows.js +5 -5
  96. package/dist/effect/generated/whats-app-setup-links.js +1 -1
  97. package/dist/effect/generated/whats-app.d.ts +75 -0
  98. package/dist/effect/generated/whats-app.js +43 -18
  99. package/dist/effect/generated/whoami.js +1 -1
  100. package/dist/effect/generated-metadata.d.ts +47 -1
  101. package/dist/effect/generated-metadata.js +175 -146
  102. package/dist/effect/index.d.ts +1 -0
  103. package/dist/effect/index.js +6 -5
  104. package/dist/effect/integrations-catalog.js +1 -1
  105. package/dist/effect/integrations.js +1 -1
  106. package/dist/effect/internal/client.js +6 -6
  107. package/dist/effect/internal/email-sender.js +3 -3
  108. package/dist/effect/internal/log-events.js +2 -2
  109. package/dist/effect/internal/mailbox-events.js +1 -1
  110. package/dist/effect/internal/operation.js +2 -2
  111. package/dist/effect/internal/send.js +4 -4
  112. package/dist/effect/journeys.d.ts +20 -0
  113. package/dist/effect/journeys.js +1 -1
  114. package/dist/effect/logs.js +1 -1
  115. package/dist/effect/mailboxes.d.ts +191 -191
  116. package/dist/effect/mailboxes.js +3 -3
  117. package/dist/effect/media.js +2 -2
  118. package/dist/effect/messages.js +2 -2
  119. package/dist/effect/namespaces.d.ts +2 -2
  120. package/dist/effect/namespaces.js +1 -1
  121. package/dist/effect/newsletter-domains.js +1 -1
  122. package/dist/effect/newsletter-issues.js +1 -1
  123. package/dist/effect/newsletters.js +1 -1
  124. package/dist/effect/operations.js +1 -1
  125. package/dist/effect/organizations.js +1 -1
  126. package/dist/effect/phone-numbers.d.ts +22 -0
  127. package/dist/effect/phone-numbers.js +21 -0
  128. package/dist/effect/policies.js +1 -1
  129. package/dist/effect/retry.js +3 -3
  130. package/dist/effect/scheduled-messages.d.ts +350 -350
  131. package/dist/effect/scheduled-messages.js +1 -1
  132. package/dist/effect/subscriptions.js +1 -1
  133. package/dist/effect/template-registrations.js +1 -1
  134. package/dist/effect/template-share-links.js +1 -1
  135. package/dist/effect/templates.d.ts +1 -0
  136. package/dist/effect/templates.js +2 -2
  137. package/dist/effect/topic-forms.js +1 -1
  138. package/dist/effect/topics.d.ts +70 -2
  139. package/dist/effect/topics.js +1 -1
  140. package/dist/effect/webhooks.js +2 -2
  141. package/dist/effect/whatsapp-flows.js +1 -1
  142. package/dist/effect/whatsapp-setup-links.js +1 -1
  143. package/dist/effect/whatsapp.d.ts +10 -0
  144. package/dist/effect/whatsapp.js +1 -1
  145. package/dist/effect/whoami.js +1 -1
  146. package/dist/index.js +2 -2
  147. package/dist/package.json.js +5 -0
  148. package/dist/promises/client.d.ts +3 -1
  149. package/dist/promises/client.js +7 -5
  150. package/dist/promises/errors.gen.d.ts +16 -2
  151. package/dist/promises/errors.gen.js +48 -11
  152. package/dist/promises/index.js +3 -3
  153. package/dist/promises/types.gen.d.ts +1 -1
  154. package/dist/request-policy.js +1 -1
  155. package/dist/service-map.d.ts +40 -5
  156. package/package.json +9 -5
  157. package/dist/package.js +0 -5
@@ -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])),
@@ -279,7 +283,7 @@ const CampaignRunId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPatter
279
283
  expected: "a string matching the RegExp ^crun_[0-9a-hjkmnp-tv-z]{16,24}$",
280
284
  identifier: "CampaignRunId"
281
285
  })).pipe(Schema.brand("CampaignRunId")))();
282
- const SendsSeries = /* @__PURE__ */ (() => Schema.Array(Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))).annotate({
286
+ const SendsSeries = /* @__PURE__ */ (() => Schema.Array(Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))).annotate({
283
287
  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.",
284
288
  identifier: "SendsSeries"
285
289
  }))();
@@ -308,8 +312,8 @@ var TemplateSourceError = class extends Schema.TaggedError()("TemplateSourceErro
308
312
  message: Schema.String,
309
313
  origins: Schema.Array(Schema.Struct({
310
314
  fileName: Schema.String,
311
- lineNumber: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
312
- columnNumber: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
315
+ lineNumber: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
316
+ columnNumber: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
313
317
  })),
314
318
  clients: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
315
319
  notes: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -317,8 +321,8 @@ var TemplateSourceError = class extends Schema.TaggedError()("TemplateSourceErro
317
321
  fixtures: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
318
322
  occurrences: Schema.optionalKey(Schema.Union([Schema.Array(Schema.Array(Schema.Struct({
319
323
  fileName: Schema.String,
320
- lineNumber: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
321
- columnNumber: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
324
+ lineNumber: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
325
+ columnNumber: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
322
326
  }))), Schema.Null])),
323
327
  compatibility: Schema.optionalKey(Schema.Union([Schema.Struct({
324
328
  assessment: Schema.Union([
@@ -661,6 +665,10 @@ const MailboxMetadata = /* @__PURE__ */ (() => Schema.Record(Schema.String, Sche
661
665
  expected: "an object with property names matching the schema",
662
666
  identifier: "MailboxMetadata"
663
667
  })))();
668
+ const SmsPhoneNumberId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^phone_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
669
+ expected: "a string matching the RegExp ^phone_[0-9a-hjkmnp-tv-z]{16,24}$",
670
+ identifier: "SmsPhoneNumberId"
671
+ })).pipe(Schema.brand("SmsPhoneNumberId")))();
664
672
  const MailboxMetadataPatch = /* @__PURE__ */ (() => Schema.Record(Schema.String, Schema.Union([Schema.String.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])).check(Schema.isPropertyNames(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" }))).annotate({
665
673
  expected: "an object with property names matching the schema",
666
674
  identifier: "MailboxMetadataPatch"
@@ -681,7 +689,7 @@ const PolicyDecisionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPat
681
689
  expected: "a string matching the RegExp ^pdec_[0-9a-hjkmnp-tv-z]{16,24}$",
682
690
  identifier: "PolicyDecisionId"
683
691
  })).pipe(Schema.brand("PolicyDecisionId")))();
684
- const PolicyReviewRound = /* @__PURE__ */ (() => Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({
692
+ const PolicyReviewRound = /* @__PURE__ */ (() => Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({
685
693
  expected: "a value greater than 0",
686
694
  identifier: "PolicyReviewRound"
687
695
  })))();
@@ -785,9 +793,9 @@ const EmailSender = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
785
793
  }), Schema.Null]).annotate({ identifier: "EmailSender" }))();
786
794
  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" }))();
787
795
  const WhatsAppTemplateData = /* @__PURE__ */ (() => Schema.Record(Schema.String, JsonValue).annotate({ identifier: "WhatsAppTemplateData" }))();
788
- const JsonObject_1 = /* @__PURE__ */ (() => Schema.Record(Schema.String, JsonValue).annotate({
796
+ const WhatsAppFlowActionData = /* @__PURE__ */ (() => Schema.Record(Schema.String, JsonValue).annotate({
789
797
  description: "Initial screen data for a navigate Flow button.",
790
- identifier: "JsonObject_1"
798
+ identifier: "WhatsAppFlowActionData"
791
799
  }))();
792
800
  const WhatsAppImageLink = /* @__PURE__ */ (() => Schema.Struct({
793
801
  type: Schema.Literal("image"),
@@ -878,6 +886,7 @@ const NamespaceResourceType = /* @__PURE__ */ (() => Schema.Union([
878
886
  Schema.Literal("domain"),
879
887
  Schema.Literal("sender"),
880
888
  Schema.Literal("whatsappNumber"),
889
+ Schema.Literal("phoneNumber"),
881
890
  Schema.Literal("smsNumber"),
882
891
  Schema.Literal("contact"),
883
892
  Schema.Literal("template")
@@ -894,7 +903,22 @@ const OperationResource = /* @__PURE__ */ (() => Schema.Struct({
894
903
  type: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(80).annotate({ expected: "a string with at most 80 code points" })).check(Schema.isMaxLength(80).annotate({ expected: "a value with a length of at most 80" })),
895
904
  id: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
896
905
  }).annotate({ identifier: "OperationResource" }))();
897
- const PolicyVersion = /* @__PURE__ */ (() => Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({
906
+ var CredentialsError = class extends Schema.TaggedError()("CredentialsError", Schema.Struct({
907
+ message: Schema.String,
908
+ retryable: Schema.Boolean
909
+ })) {};
910
+ var PhoneNumberProvisioningError = class extends Schema.TaggedError()("PhoneNumberProvisioningError", Schema.Struct({
911
+ reason: Schema.Union([
912
+ Schema.Literal("transport"),
913
+ Schema.Literal("rejected"),
914
+ Schema.Literal("rate_limited"),
915
+ Schema.Literal("auth")
916
+ ]),
917
+ message: Schema.String,
918
+ providerCode: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
919
+ statusCode: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null]))
920
+ })) {};
921
+ const PolicyVersion = /* @__PURE__ */ (() => Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({
898
922
  expected: "a value less than or equal to 9007199254740991",
899
923
  identifier: "PolicyVersion"
900
924
  })))();
@@ -919,10 +943,6 @@ const TemplateFromDefaultInput = /* @__PURE__ */ (() => Schema.Struct({
919
943
  email: Schema.String,
920
944
  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]))
921
945
  }).annotate({ identifier: "TemplateFromDefaultInput" }))();
922
- var CredentialsError = class extends Schema.TaggedError()("CredentialsError", Schema.Struct({
923
- message: Schema.String,
924
- retryable: Schema.Boolean
925
- })) {};
926
946
  var WhatsAppChannelError = class extends Schema.TaggedError()("WhatsAppChannelError", Schema.Struct({
927
947
  reason: Schema.Union([
928
948
  Schema.Literal("transport"),
@@ -964,6 +984,11 @@ const JourneyWebhookConfig = /* @__PURE__ */ (() => Schema.Struct({
964
984
  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" })))
965
985
  }).annotate({ identifier: "JourneyWebhookConfig" }))();
966
986
  const AccountLinks = /* @__PURE__ */ (() => Schema.Record(Schema.String, IntegrationAccountId).annotate({ identifier: "AccountLinks" }))();
987
+ const ContactReferenceSummary = /* @__PURE__ */ (() => Schema.Struct({
988
+ id: ContactId,
989
+ name: Schema.String,
990
+ displayName: Schema.Union([Schema.String, Schema.Null])
991
+ }).annotate({ identifier: "ContactReferenceSummary" }))();
967
992
  const ContactEvent = /* @__PURE__ */ (() => Schema.Struct({
968
993
  id: Schema.String,
969
994
  contactId: ContactId,
@@ -1420,6 +1445,8 @@ const JourneySendEmailConfig = /* @__PURE__ */ (() => Schema.Struct({
1420
1445
  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]+)*$" }))]),
1421
1446
  publicationId: Schema.optionalKey(TemplatePublicationId),
1422
1447
  senderId: Schema.optionalKey(EmailSenderId),
1448
+ tracking: Schema.optionalKey(EmailTrackingOverrideV1),
1449
+ 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" }))),
1423
1450
  templateData: Schema.optionalKey(JsonObject),
1424
1451
  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" })))
1425
1452
  }).annotate({ identifier: "JourneySendEmailConfig" }))();
@@ -1538,7 +1565,7 @@ const MailboxActionDecision = /* @__PURE__ */ (() => Schema.Struct({
1538
1565
  ]),
1539
1566
  id: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
1540
1567
  }),
1541
- index: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
1568
+ index: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
1542
1569
  }), Schema.Null])),
1543
1570
  guard: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
1544
1571
  guardReason: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
@@ -1572,13 +1599,13 @@ const WhatsAppTemplateIdContent = /* @__PURE__ */ (() => Schema.Struct({
1572
1599
  templateId: TemplateId,
1573
1600
  templateData: Schema.optionalKey(WhatsAppTemplateData),
1574
1601
  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" }))),
1575
- flowActionData: Schema.optionalKey(JsonObject_1)
1602
+ flowActionData: Schema.optionalKey(WhatsAppFlowActionData)
1576
1603
  }).annotate({ identifier: "WhatsAppTemplateIdContent" }))();
1577
1604
  const WhatsAppTemplateSlugContent = /* @__PURE__ */ (() => Schema.Struct({
1578
1605
  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]+)*$" })),
1579
1606
  templateData: Schema.optionalKey(WhatsAppTemplateData),
1580
1607
  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(JsonObject_1)
1608
+ flowActionData: Schema.optionalKey(WhatsAppFlowActionData)
1582
1609
  }).annotate({ identifier: "WhatsAppTemplateSlugContent" }))();
1583
1610
  const WhatsAppLocationContent = /* @__PURE__ */ (() => Schema.Struct({ location: WhatsAppLocation }).annotate({ identifier: "WhatsAppLocationContent" }))();
1584
1611
  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" }))();
@@ -1737,6 +1764,7 @@ const ApiKeyAccess = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({ mode:
1737
1764
  })]).annotate({ identifier: "ApiKeyAccess" }))();
1738
1765
  const WhatsAppReactionContent = /* @__PURE__ */ (() => Schema.Struct({ reaction: WhatsAppReaction }).annotate({ identifier: "WhatsAppReactionContent" }))();
1739
1766
  const CreateBrand = /* @__PURE__ */ (() => Schema.Struct({
1767
+ namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
1740
1768
  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])?$" })),
1741
1769
  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" })),
1742
1770
  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])),
@@ -1745,6 +1773,7 @@ const CreateBrand = /* @__PURE__ */ (() => Schema.Struct({
1745
1773
  isDefault: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
1746
1774
  }).annotate({ identifier: "CreateBrand" }))();
1747
1775
  const UpdateBrand = /* @__PURE__ */ (() => Schema.Struct({
1776
+ namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
1748
1777
  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])),
1749
1778
  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])),
1750
1779
  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])),
@@ -2301,6 +2330,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
2301
2330
  in: "header"
2302
2331
  });
2303
2332
  var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
2304
- 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, 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, JsonObject_1, 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 };
2333
+ 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, ContactReferenceSummary, 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, PhoneNumberProvisioningError, 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, SmsPhoneNumberId, 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 };
2305
2334
 
2306
2335
  //# sourceMappingURL=shared.js.map
@@ -1,6 +1,6 @@
1
- import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
2
1
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
2
  import * as Schema from "effect/Schema";
3
+ import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  // src/effect/generated/subscriptions.ts
5
5
  const SubscribeResult = /* @__PURE__ */ (() => Schema.Struct({
6
6
  success: Schema.Boolean,
@@ -1,6 +1,6 @@
1
- import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateChannelVariantId, TemplateId, TemplatePublicationId, TemplateRegistrationApproval, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
2
1
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
2
  import * as Schema from "effect/Schema";
3
+ import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateChannelVariantId, TemplateId, TemplatePublicationId, TemplateRegistrationApproval, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
4
4
  // src/effect/generated/template-registrations.ts
5
5
  const WhatsAppRegistrationTarget = /* @__PURE__ */ (() => Schema.Struct({
6
6
  provider: Schema.Literal("whatsapp"),
@@ -1,14 +1,14 @@
1
- import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, SlugTaken, TemplateProjectId, TemplateSourceError, UnauthorizedError, ValidationError } from "./shared.js";
2
1
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
2
  import * as Schema from "effect/Schema";
3
+ import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, SlugTaken, TemplateProjectId, TemplateSourceError, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  // src/effect/generated/template-share-links.ts
5
5
  const TemplateShareLinksGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ projectId: TemplateProjectId }))();
6
6
  const TemplateShareLinksGet200 = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
7
7
  slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9-]{3,60}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9-]{3,60}$" })),
8
8
  url: Schema.String,
9
9
  canonicalPath: Schema.String,
10
- views: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
11
- opens: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
10
+ views: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
11
+ opens: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
12
12
  updatedAt: Schema.String
13
13
  }), Schema.Null]))();
14
14
  const TemplateShareLinksGet400 = MalformedRequestError;
@@ -26,8 +26,8 @@ const TemplateShareLinksCreate200 = /* @__PURE__ */ (() => Schema.Struct({
26
26
  slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9-]{3,60}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9-]{3,60}$" })),
27
27
  url: Schema.String,
28
28
  canonicalPath: Schema.String,
29
- views: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
30
- opens: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
29
+ views: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
30
+ opens: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
31
31
  updatedAt: Schema.String
32
32
  }))();
33
33
  const TemplateShareLinksCreate400 = MalformedRequestError;
@@ -56,8 +56,8 @@ const TemplateShareLinksRename200 = /* @__PURE__ */ (() => Schema.Struct({
56
56
  slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9-]{3,60}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9-]{3,60}$" })),
57
57
  url: Schema.String,
58
58
  canonicalPath: Schema.String,
59
- views: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
60
- opens: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
59
+ views: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
60
+ opens: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
61
61
  updatedAt: Schema.String
62
62
  }))();
63
63
  const TemplateShareLinksRename400 = MalformedRequestError;
@@ -74,8 +74,8 @@ const TemplateShareLinksUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
74
74
  slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9-]{3,60}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9-]{3,60}$" })),
75
75
  url: Schema.String,
76
76
  canonicalPath: Schema.String,
77
- views: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
78
- opens: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
77
+ views: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
78
+ opens: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
79
79
  updatedAt: Schema.String
80
80
  }))();
81
81
  const TemplateShareLinksUpdate400 = MalformedRequestError;
@@ -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<{