samva 0.46.1 → 0.48.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 (79) hide show
  1. package/AGENTS.md +13 -7
  2. package/README.md +106 -8
  3. package/dist/agent/index.d.ts +57 -0
  4. package/dist/agent/index.js +53 -0
  5. package/dist/agent/runtime.d.ts +3 -0
  6. package/dist/agent/runtime.js +95 -0
  7. package/dist/agent/test.d.ts +31 -0
  8. package/dist/agent/test.js +66 -0
  9. package/dist/agent/types.d.ts +150 -0
  10. package/dist/client/sdk.gen.d.ts +50 -165
  11. package/dist/client/sdk.gen.js +1339 -1614
  12. package/dist/client/types.gen.d.ts +461 -989
  13. package/dist/effect/agents.d.ts +340 -8
  14. package/dist/effect/agents.js +4 -2
  15. package/dist/effect/api-keys.d.ts +2 -0
  16. package/dist/effect/campaigns.d.ts +160 -160
  17. package/dist/effect/contacts.d.ts +8 -0
  18. package/dist/effect/contacts.js +5 -1
  19. package/dist/effect/descriptors/agents.d.ts +12 -2
  20. package/dist/effect/descriptors/agents.js +12 -2
  21. package/dist/effect/descriptors/contacts.d.ts +20 -0
  22. package/dist/effect/descriptors/contacts.js +20 -0
  23. package/dist/effect/generated/accounts.d.ts +10 -0
  24. package/dist/effect/generated/accounts.js +1 -0
  25. package/dist/effect/generated/agents.d.ts +2967 -690
  26. package/dist/effect/generated/agents.js +54 -13
  27. package/dist/effect/generated/api-keys.d.ts +15 -0
  28. package/dist/effect/generated/api-keys.js +2 -0
  29. package/dist/effect/generated/contacts.d.ts +859 -1
  30. package/dist/effect/generated/contacts.js +62 -3
  31. package/dist/effect/generated/index.d.ts +1 -5
  32. package/dist/effect/generated/journeys.d.ts +351 -111
  33. package/dist/effect/generated/journeys.js +3 -1
  34. package/dist/effect/generated/mailboxes.d.ts +93 -95
  35. package/dist/effect/generated/mailboxes.js +21 -25
  36. package/dist/effect/generated/shared.d.ts +459 -139
  37. package/dist/effect/generated/shared.js +84 -39
  38. package/dist/effect/generated/template-registrations.d.ts +19 -4
  39. package/dist/effect/generated/template-registrations.js +8 -7
  40. package/dist/effect/generated/templates.d.ts +76 -11
  41. package/dist/effect/generated/templates.js +25 -12
  42. package/dist/effect/generated-metadata.d.ts +18 -84
  43. package/dist/effect/generated-metadata.js +362 -415
  44. package/dist/effect/index.d.ts +0 -2
  45. package/dist/effect/index.js +1 -3
  46. package/dist/effect/internal/client.js +1 -1
  47. package/dist/effect/internal/operation.js +4 -1
  48. package/dist/effect/journeys.d.ts +26 -2
  49. package/dist/effect/mailboxes.d.ts +41 -41
  50. package/dist/effect/scheduled-messages.d.ts +350 -350
  51. package/dist/effect/templates.d.ts +9 -0
  52. package/dist/effect/topics.d.ts +2 -2
  53. package/dist/package.js +1 -1
  54. package/dist/promises/client.d.ts +1 -5
  55. package/dist/promises/client.js +3 -7
  56. package/dist/promises/types.gen.d.ts +1 -1
  57. package/dist/service-map.d.ts +18 -75
  58. package/package.json +10 -22
  59. package/dist/effect/descriptors/extension-installations.d.ts +0 -90
  60. package/dist/effect/descriptors/extension-installations.js +0 -90
  61. package/dist/effect/descriptors/extensions.d.ts +0 -50
  62. package/dist/effect/descriptors/extensions.js +0 -50
  63. package/dist/effect/extension-installations.d.ts +0 -132
  64. package/dist/effect/extension-installations.js +0 -29
  65. package/dist/effect/extensions.d.ts +0 -102
  66. package/dist/effect/extensions.js +0 -21
  67. package/dist/effect/generated/extension-installations.d.ts +0 -2761
  68. package/dist/effect/generated/extension-installations.js +0 -405
  69. package/dist/effect/generated/extensions.d.ts +0 -1037
  70. package/dist/effect/generated/extensions.js +0 -214
  71. package/dist/mailbox/dispatch.d.ts +0 -10
  72. package/dist/mailbox/dispatch.js +0 -66
  73. package/dist/mailbox/index.d.ts +0 -17
  74. package/dist/mailbox/index.js +0 -30
  75. package/dist/mailbox/test.d.ts +0 -25
  76. package/dist/mailbox/test.js +0 -181
  77. package/dist/mailbox/types.d.ts +0 -221
  78. package/dist/mailbox/webhook.d.ts +0 -10
  79. package/dist/mailbox/webhook.js +0 -41
@@ -36,8 +36,8 @@ var ResourceNotFoundError = class extends Schema.TaggedError()("ResourceNotFound
36
36
  id: Schema.String,
37
37
  message: Schema.String
38
38
  })) {};
39
- const IntegrationReturnTo = /* @__PURE__ */ (() => Schema.String.annotate({ description: "A dashboard path starting with a single slash, such as /dashboard/acme/agents." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?![/\\\\])[\\x21-\\x7e]*$", "u")).annotate({
40
- expected: "a string matching the RegExp ^\\/(?![/\\\\])[\\x21-\\x7e]*$",
39
+ const IntegrationReturnTo = /* @__PURE__ */ (() => Schema.String.annotate({ description: "A dashboard path starting with a single slash, such as /dashboard/acme/agents." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\/(?:[\\x21-\\x2e\\x30-\\x5b\\x5d-\\x7e][\\x21-\\x7e]*)?$", "u")).annotate({
40
+ expected: "a string matching the RegExp ^\\/(?:[\\x21-\\x2e\\x30-\\x5b\\x5d-\\x7e][\\x21-\\x7e]*)?$",
41
41
  identifier: "IntegrationReturnTo"
42
42
  })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })))();
43
43
  const OrganizationId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^org_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
@@ -85,10 +85,6 @@ const AgentToolScope = /* @__PURE__ */ (() => Schema.Union([
85
85
  names: Schema.Array(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z][a-z0-9_.]{0,63}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z][a-z0-9_.]{0,63}$" }))).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
86
86
  })
87
87
  ]).annotate({ identifier: "AgentToolScope" }))();
88
- const TemplateId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
89
- expected: "a string matching the RegExp ^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$",
90
- identifier: "TemplateId"
91
- })).pipe(Schema.brand("TemplateId")))();
92
88
  const PolicyEffect = /* @__PURE__ */ (() => Schema.Union([
93
89
  Schema.Literal("read"),
94
90
  Schema.Literal("write"),
@@ -133,6 +129,10 @@ const ClockTime = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(ne
133
129
  expected: "a string matching the RegExp ^(?:[01]\\d|2[0-3]):[0-5]\\d$",
134
130
  identifier: "ClockTime"
135
131
  })))();
132
+ const TemplateId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
133
+ expected: "a string matching the RegExp ^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$",
134
+ identifier: "TemplateId"
135
+ })).pipe(Schema.brand("TemplateId")))();
136
136
  var PaymentRequiredError = class extends Schema.TaggedError()("PaymentRequiredError", Schema.Struct({
137
137
  message: Schema.String,
138
138
  resource: Schema.String,
@@ -408,14 +408,6 @@ const EmailSenderId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPatter
408
408
  expected: "a string matching the RegExp ^sender_[0-9a-hjkmnp-tv-z]{16,24}$",
409
409
  identifier: "EmailSenderId"
410
410
  })).pipe(Schema.brand("EmailSenderId")))();
411
- const ExtensionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^ext_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
412
- expected: "a string matching the RegExp ^ext_[0-9a-hjkmnp-tv-z]{16,24}$",
413
- identifier: "ExtensionId"
414
- })).pipe(Schema.brand("ExtensionId")))();
415
- const ExtensionVersionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^extver_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
416
- expected: "a string matching the RegExp ^extver_[0-9a-hjkmnp-tv-z]{16,24}$",
417
- identifier: "ExtensionVersionId"
418
- })).pipe(Schema.brand("ExtensionVersionId")))();
419
411
  const FeedbackContext = /* @__PURE__ */ (() => Schema.Struct({
420
412
  operation: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The operation the report is about, as an SDK method, MCP tool, CLI command, or `METHOD /path` (for example `POST /v1/messages`)." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })), Schema.Null])),
421
413
  resourceId: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The id of the resource involved, such as a message or domain id." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })), Schema.Null]))
@@ -451,6 +443,14 @@ const JourneyNodeId = /* @__PURE__ */ (() => Schema.String.check(Schema.isMinLen
451
443
  expected: "a value with a length of at least 1",
452
444
  identifier: "JourneyNodeId"
453
445
  })))();
446
+ const TemplateRegistrationId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^treg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
447
+ expected: "a string matching the RegExp ^treg_[0-9a-hjkmnp-tv-z]{16,24}$",
448
+ identifier: "TemplateRegistrationId"
449
+ })).pipe(Schema.brand("TemplateRegistrationId")))();
450
+ const TemplateChannelVariantId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^tvar_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
451
+ expected: "a string matching the RegExp ^tvar_[0-9a-hjkmnp-tv-z]{16,24}$",
452
+ identifier: "TemplateChannelVariantId"
453
+ })).pipe(Schema.brand("TemplateChannelVariantId")))();
454
454
  const JourneyWaitConfig = /* @__PURE__ */ (() => Schema.Struct({ durationSeconds: 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" })) }).annotate({ identifier: "JourneyWaitConfig" }))();
455
455
  const JourneyEmptyConfig = /* @__PURE__ */ (() => Schema.Record(Schema.String, Schema.Never).annotate({ identifier: "JourneyEmptyConfig" }))();
456
456
  const JourneyTagPredicate = /* @__PURE__ */ (() => Schema.Struct({
@@ -505,6 +505,10 @@ const JourneyUpdateTagsConfig = /* @__PURE__ */ (() => Schema.Struct({
505
505
  add: Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))),
506
506
  remove: Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })))
507
507
  }).annotate({ identifier: "JourneyUpdateTagsConfig" }))();
508
+ const ShopifyShop = /* @__PURE__ */ (() => Schema.String.check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9][a-z0-9-]*\\.myshopify\\.com$", "u")).annotate({
509
+ expected: "a string matching the RegExp ^[a-z0-9][a-z0-9-]*\\.myshopify\\.com$",
510
+ identifier: "ShopifyShop"
511
+ })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })))();
508
512
  const MailboxChannel = /* @__PURE__ */ (() => Schema.Union([
509
513
  Schema.Literal("sms"),
510
514
  Schema.Literal("whatsapp"),
@@ -913,19 +917,6 @@ const AgentIntegrationGrant = /* @__PURE__ */ (() => Schema.Struct({
913
917
  subject: Schema.optionalKey(Schema.Union([Schema.Literal("org"), Schema.Literal("contact")])),
914
918
  tools: AgentToolScope
915
919
  }).annotate({ identifier: "AgentIntegrationGrant" }))();
916
- const SendMailboxChatPayload = /* @__PURE__ */ (() => Schema.Struct({
917
- channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
918
- to: Schema.String,
919
- text: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
920
- templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
921
- templateData: Schema.optionalKey(Schema.Union([JsonObject, Schema.Null]))
922
- }).annotate({ identifier: "SendMailboxChatPayload" }))();
923
- const ReplyMailboxChatPayload = /* @__PURE__ */ (() => Schema.Struct({
924
- channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
925
- text: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
926
- templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
927
- templateData: Schema.optionalKey(Schema.Union([JsonObject, Schema.Null]))
928
- }).annotate({ identifier: "ReplyMailboxChatPayload" }))();
929
920
  const PolicySubject = /* @__PURE__ */ (() => Schema.Union([
930
921
  Schema.Struct({
931
922
  kind: Schema.Literal("agent"),
@@ -944,12 +935,31 @@ const PolicySubject = /* @__PURE__ */ (() => Schema.Union([
944
935
  id: ExtensionInstallationId
945
936
  })
946
937
  ]).annotate({ identifier: "PolicySubject" }))();
938
+ const AgentModuleTool = /* @__PURE__ */ (() => Schema.Struct({
939
+ description: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(2e3).annotate({ expected: "a string with at most 2000 code points" })).check(Schema.isMaxLength(2e3).annotate({ expected: "a value with a length of at most 2000" })),
940
+ input: JsonObject,
941
+ approval: Schema.optionalKey(PolicyRequirement),
942
+ replay: Schema.Union([Schema.Literal("safe"), Schema.Literal("unsafe")])
943
+ }).annotate({ identifier: "AgentModuleTool" }))();
947
944
  const AgentModelChoice = /* @__PURE__ */ (() => Schema.Union([AgentModel, CatalogModelId]).annotate({ identifier: "AgentModelChoice" }))();
948
945
  const WorkingHoursRange = /* @__PURE__ */ (() => Schema.Struct({
949
946
  day: Weekday,
950
947
  opens: ClockTime,
951
948
  closes: ClockTime
952
949
  }).annotate({ identifier: "WorkingHoursRange" }))();
950
+ const SendMailboxChatPayload = /* @__PURE__ */ (() => Schema.Struct({
951
+ channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
952
+ to: Schema.String,
953
+ text: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
954
+ templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
955
+ templateData: Schema.optionalKey(Schema.Union([JsonObject, Schema.Null]))
956
+ }).annotate({ identifier: "SendMailboxChatPayload" }))();
957
+ const ReplyMailboxChatPayload = /* @__PURE__ */ (() => Schema.Struct({
958
+ channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
959
+ text: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
960
+ templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
961
+ templateData: Schema.optionalKey(Schema.Union([JsonObject, Schema.Null]))
962
+ }).annotate({ identifier: "ReplyMailboxChatPayload" }))();
953
963
  const ApiKeyMailboxAccess = /* @__PURE__ */ (() => Schema.Struct({
954
964
  permissions: Schema.TupleWithRest(Schema.Tuple([Schema.Union([
955
965
  Schema.Literal("read"),
@@ -1228,13 +1238,10 @@ const MessageSummary = /* @__PURE__ */ (() => Schema.Struct({
1228
1238
  }).annotate({ identifier: "MessageSummary" }))();
1229
1239
  const JourneySendEmailConfig = /* @__PURE__ */ (() => Schema.Struct({
1230
1240
  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]+)*$" }))]),
1241
+ publicationId: Schema.optionalKey(TemplatePublicationId),
1231
1242
  senderId: Schema.optionalKey(EmailSenderId),
1232
1243
  templateData: Schema.optionalKey(JsonObject)
1233
1244
  }).annotate({ identifier: "JourneySendEmailConfig" }))();
1234
- const ExtensionVersionRef = /* @__PURE__ */ (() => Schema.Struct({
1235
- id: ExtensionVersionId,
1236
- version: Schema.String
1237
- }).annotate({ identifier: "ExtensionVersionRef" }))();
1238
1245
  const SendFeedback = /* @__PURE__ */ (() => Schema.Struct({
1239
1246
  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" })),
1240
1247
  category: Schema.optionalKey(Schema.Union([Schema.Union([
@@ -1252,7 +1259,8 @@ const JourneyCustomEventTrigger = /* @__PURE__ */ (() => Schema.Struct({
1252
1259
  const JourneyEventName = /* @__PURE__ */ (() => Schema.Union([JourneyCustomEventName, Schema.Union([
1253
1260
  Schema.Literal("contact.created"),
1254
1261
  Schema.Literal("contact.tag_added"),
1255
- Schema.Literal("contact.joined_group")
1262
+ Schema.Literal("contact.joined_group"),
1263
+ Schema.Literal("contact.connection_completed")
1256
1264
  ])]).annotate({ identifier: "JourneyEventName" }))();
1257
1265
  const JourneyNextEdge = /* @__PURE__ */ (() => Schema.Struct({ nodeId: JourneyNodeId }).annotate({ identifier: "JourneyNextEdge" }))();
1258
1266
  const JourneyWaitEventEdge = /* @__PURE__ */ (() => Schema.Struct({
@@ -1496,7 +1504,7 @@ const PolicyRuleMatch = /* @__PURE__ */ (() => Schema.Struct({
1496
1504
  Schema.Literal("email")
1497
1505
  ]), Schema.Null])),
1498
1506
  integration: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
1499
- tool: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*(?:\\.\\*)?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*(?:\\.\\*)?$" })), Schema.Null])),
1507
+ tool: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_-]*(?:\\.[A-Za-z][A-Za-z0-9_-]*)*(?:\\.\\*)?$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_-]*(?:\\.[A-Za-z][A-Za-z0-9_-]*)*(?:\\.\\*)?$" })), Schema.Null])),
1500
1508
  subject: Schema.optionalKey(Schema.Union([
1501
1509
  Schema.Union([
1502
1510
  Schema.Literal("agent"),
@@ -1774,6 +1782,17 @@ const WhatsAppTemplateDispatch = /* @__PURE__ */ (() => Schema.Struct({
1774
1782
  bindings: Schema.optionalKey(WhatsAppTemplateBindings),
1775
1783
  businessAccountId: Schema.optionalKey(WhatsAppBusinessAccountId)
1776
1784
  }).annotate({ identifier: "WhatsAppTemplateDispatch" }))();
1785
+ const JourneySendWhatsAppConfig = /* @__PURE__ */ (() => Schema.Struct({
1786
+ 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]+)*$" }))]),
1787
+ templateData: Schema.optionalKey(WhatsAppTemplateDispatchData),
1788
+ bindings: Schema.optionalKey(WhatsAppTemplateBindings),
1789
+ businessAccountId: Schema.optionalKey(WhatsAppBusinessAccountId),
1790
+ pinnedRegistration: Schema.optionalKey(Schema.Struct({
1791
+ registrationId: TemplateRegistrationId,
1792
+ templateChannelVariantId: TemplateChannelVariantId
1793
+ })),
1794
+ 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" })))
1795
+ }).annotate({ identifier: "JourneySendWhatsAppConfig" }))();
1777
1796
  const JourneyWaitForEventNode = /* @__PURE__ */ (() => Schema.Struct({
1778
1797
  type: Schema.Literal("wait_for_event"),
1779
1798
  config: JourneyWaitForEventConfig,
@@ -1846,7 +1865,7 @@ const WhatsAppCampaignContentInput = /* @__PURE__ */ (() => Schema.Struct({
1846
1865
  }).annotate({ identifier: "WhatsAppCampaignContentInput" }))();
1847
1866
  const WhatsAppJourneySendNode = /* @__PURE__ */ (() => Schema.Struct({
1848
1867
  type: Schema.Literal("send_whatsapp"),
1849
- config: WhatsAppTemplateDispatch,
1868
+ config: JourneySendWhatsAppConfig,
1850
1869
  next: Schema.Tuple([JourneyNextEdge])
1851
1870
  }).annotate({ identifier: "WhatsAppJourneySendNode" }))();
1852
1871
  const JourneyCondition = /* @__PURE__ */ (() => Schema.Struct({
@@ -1859,14 +1878,32 @@ const AgentDefinition = /* @__PURE__ */ (() => Schema.Struct({
1859
1878
  knowledgeSourceIds: Schema.optionalKey(Schema.Array(KnowledgeSourceId).check(Schema.isMaxLength(25).annotate({ expected: "a value with a length of at most 25" }))),
1860
1879
  endpointIds: Schema.Array(MailboxEndpointId).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
1861
1880
  integrations: Schema.Array(AgentIntegrationGrant).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
1862
- eventTriggers: Schema.optionalKey(Schema.Array(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.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_.-]*$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_.-]*$" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })))),
1863
- followUpTemplate: Schema.optionalKey(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]+)*$" }))])),
1864
1881
  policy: PolicyConfiguration,
1865
1882
  model: AgentModelChoice,
1866
1883
  reasoning: AgentReasoning,
1867
1884
  workingHours: Schema.Union([WorkingHours, Schema.Null]),
1868
- takeoverTimeoutMinutes: 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(10080).annotate({ expected: "a value less than or equal to 10080" }))
1885
+ takeoverTimeoutMinutes: 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(10080).annotate({ expected: "a value less than or equal to 10080" })),
1886
+ eventTriggers: Schema.optionalKey(Schema.Array(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.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_.-]*$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_.-]*$" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })))),
1887
+ followUpTemplate: Schema.optionalKey(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]+)*$" }))]))
1869
1888
  }).annotate({ identifier: "AgentDefinition" }))();
1889
+ const AgentModuleManifest = /* @__PURE__ */ (() => Schema.Struct({
1890
+ name: AgentName,
1891
+ version: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^\\d{1,6}\\.\\d{1,6}\\.\\d{1,6}(?:-[0-9A-Za-z.-]{1,64})?$", "u")).annotate({ expected: "a string matching the RegExp ^\\d{1,6}\\.\\d{1,6}\\.\\d{1,6}(?:-[0-9A-Za-z.-]{1,64})?$" })),
1892
+ knowledgeSourceIds: Schema.optionalKey(Schema.Array(KnowledgeSourceId).check(Schema.isMaxLength(25).annotate({ expected: "a value with a length of at most 25" }))),
1893
+ endpointIds: Schema.Array(MailboxEndpointId).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
1894
+ integrations: Schema.Array(AgentIntegrationGrant).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
1895
+ policy: PolicyConfiguration,
1896
+ model: AgentModelChoice,
1897
+ reasoning: AgentReasoning,
1898
+ workingHours: Schema.Union([WorkingHours, Schema.Null]),
1899
+ takeoverTimeoutMinutes: 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(10080).annotate({ expected: "a value less than or equal to 10080" })),
1900
+ eventTriggers: Schema.optionalKey(Schema.Array(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.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_.-]*$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_.-]*$" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })))),
1901
+ followUpTemplate: Schema.optionalKey(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]+)*$" }))])),
1902
+ tools: Schema.Record(Schema.String, AgentModuleTool),
1903
+ skills: Schema.Array(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_-]{0,63}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_-]{0,63}$" }))).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
1904
+ events: Schema.Array(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.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_.-]*$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_.-]*$" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
1905
+ schedules: Schema.Array(Schema.String.check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\S+\\s+\\S+\\s+\\S+\\s+\\S+\\s+\\S+$", "u")).annotate({ expected: "a string matching the RegExp ^\\S+\\s+\\S+\\s+\\S+\\s+\\S+\\s+\\S+$" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" }))).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" }))
1906
+ }).annotate({ identifier: "AgentModuleManifest" }))();
1870
1907
  const WhatsAppInteractive = /* @__PURE__ */ (() => Schema.Union([
1871
1908
  WhatsAppButtonsMessage,
1872
1909
  WhatsAppListMessage,
@@ -1882,6 +1919,10 @@ const JourneyBranchEdge = /* @__PURE__ */ (() => Schema.Struct({
1882
1919
  nodeId: JourneyNodeId,
1883
1920
  condition: Schema.optionalKey(JourneyCondition)
1884
1921
  }).annotate({ identifier: "JourneyBranchEdge" }))();
1922
+ const AgentModuleBundle = /* @__PURE__ */ (() => Schema.Struct({
1923
+ source: Schema.String,
1924
+ manifest: AgentModuleManifest
1925
+ }).annotate({ identifier: "AgentModuleBundle" }))();
1885
1926
  const WhatsAppInteractiveContent = /* @__PURE__ */ (() => Schema.Struct({ interactive: WhatsAppInteractive }).annotate({ identifier: "WhatsAppInteractiveContent" }))();
1886
1927
  const JourneyBranchNode = /* @__PURE__ */ (() => Schema.Struct({
1887
1928
  type: Schema.Literal("branch"),
@@ -1926,7 +1967,11 @@ const JourneyDefinition = /* @__PURE__ */ (() => Schema.Struct({
1926
1967
  rootNodeId: JourneyNodeId,
1927
1968
  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" })),
1928
1969
  goal: Schema.optionalKey(JourneyGoal),
1929
- reentry: Schema.optionalKey(Schema.Boolean)
1970
+ reentry: Schema.optionalKey(Schema.Boolean),
1971
+ enrollment: Schema.optionalKey(Schema.Struct({
1972
+ type: Schema.Literal("shopify_order"),
1973
+ shop: ShopifyShop
1974
+ }))
1930
1975
  }).annotate({ identifier: "JourneyDefinition" }))();
1931
1976
  const __recursive_JsonValue = Schema.Union([
1932
1977
  Schema.String,
@@ -1941,6 +1986,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
1941
1986
  in: "header"
1942
1987
  });
1943
1988
  var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
1944
- export { AccountLinks, AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, 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, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCampaignContentInput, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionId, ExtensionInstallationId, ExtensionVersionId, ExtensionVersionRef, 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, 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, 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, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SendsSeries, ServiceUnavailableError, ShareLinkUnavailable, SkippedRecipient, SlugTaken, SmsCampaignContentInput, SmsContent, SmsDispatchContent, SmsRecipient, SmsRecipients, SmsSendMessagePayload, SmsTemplateData, StoredEmailAttachments, StoredReplyToAddresses, SuccessResponse, TemplateData, TemplateFromDefaultInput, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, 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, WhatsAppOutboundMedia, WhatsAppReaction, WhatsAppReactionContent, WhatsAppRecipient, WhatsAppRecipients, WhatsAppReplyButton, WhatsAppSendMessagePayload, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkMetadata, WhatsAppSetupLinkRedirectUrl, WhatsAppSetupLinkUnavailableError, WhatsAppSticker, WhatsAppStickerLink, WhatsAppStickerUpload, 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 };
1989
+ export { AccountLinks, 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, 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, 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, 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, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SendsSeries, ServiceUnavailableError, ShareLinkUnavailable, ShopifyShop, SkippedRecipient, SlugTaken, SmsCampaignContentInput, SmsContent, SmsDispatchContent, SmsRecipient, SmsRecipients, SmsSendMessagePayload, SmsTemplateData, StoredEmailAttachments, StoredReplyToAddresses, SuccessResponse, TemplateChannelVariantId, TemplateData, TemplateFromDefaultInput, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, 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, WhatsAppOutboundMedia, WhatsAppReaction, WhatsAppReactionContent, WhatsAppRecipient, WhatsAppRecipients, WhatsAppReplyButton, WhatsAppSendMessagePayload, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkMetadata, WhatsAppSetupLinkRedirectUrl, WhatsAppSetupLinkUnavailableError, WhatsAppSticker, WhatsAppStickerLink, WhatsAppStickerUpload, 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 };
1945
1990
 
1946
1991
  //# sourceMappingURL=shared.js.map
@@ -1,9 +1,6 @@
1
- import type * as EffectBrand from "effect/Brand";
2
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
2
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, TemplateId, TemplatePublicationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
5
- export type TemplateRegistrationId = string & EffectBrand.Brand<"TemplateRegistrationId">;
6
- export declare const TemplateRegistrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
3
+ import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, TemplateChannelVariantId, TemplateId, TemplatePublicationId, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
7
4
  export type WhatsAppRegistrationTarget = {
8
5
  readonly provider: "whatsapp";
9
6
  readonly wabaId: string;
@@ -35,10 +32,12 @@ export type TemplateRegistration = {
35
32
  readonly id: TemplateRegistrationId;
36
33
  readonly templateId: TemplateId;
37
34
  readonly publicationId: TemplatePublicationId;
35
+ readonly templateChannelVariantId: TemplateChannelVariantId;
38
36
  readonly target: TemplateRegistrationTarget;
39
37
  readonly name: string;
40
38
  readonly language: string;
41
39
  readonly status: "draft" | "submitted" | "approved" | "rejected" | "paused" | "disabled";
40
+ readonly pendingTemplateChannelVariantId: TemplateChannelVariantId | null;
42
41
  readonly category: "marketing" | "utility" | "authentication" | "transactional" | "service_implicit" | "service_explicit" | "promotional";
43
42
  readonly providerCategory: "marketing" | "utility" | "authentication" | "transactional" | "service_implicit" | "service_explicit" | "promotional" | null;
44
43
  readonly providerTemplateId: string | null;
@@ -52,6 +51,7 @@ export declare const TemplateRegistration: Schema.Struct<{
52
51
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
53
52
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
54
53
  readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
54
+ readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
55
55
  readonly target: Schema.Union<readonly [Schema.Struct<{
56
56
  readonly provider: Schema.Literal<"whatsapp">;
57
57
  readonly wabaId: Schema.String;
@@ -63,6 +63,7 @@ export declare const TemplateRegistration: Schema.Struct<{
63
63
  readonly name: Schema.String;
64
64
  readonly language: Schema.String;
65
65
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
66
+ readonly pendingTemplateChannelVariantId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateChannelVariantId">, Schema.Null]>;
66
67
  readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
67
68
  readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
68
69
  readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -80,6 +81,7 @@ export declare const TemplateRegistrationList: Schema.Struct<{
80
81
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
81
82
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
82
83
  readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
84
+ readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
83
85
  readonly target: Schema.Union<readonly [Schema.Struct<{
84
86
  readonly provider: Schema.Literal<"whatsapp">;
85
87
  readonly wabaId: Schema.String;
@@ -91,6 +93,7 @@ export declare const TemplateRegistrationList: Schema.Struct<{
91
93
  readonly name: Schema.String;
92
94
  readonly language: Schema.String;
93
95
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
96
+ readonly pendingTemplateChannelVariantId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateChannelVariantId">, Schema.Null]>;
94
97
  readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
95
98
  readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
96
99
  readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -113,6 +116,7 @@ export declare const TemplateRegistrationsList200: Schema.Struct<{
113
116
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
114
117
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
115
118
  readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
119
+ readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
116
120
  readonly target: Schema.Union<readonly [Schema.Struct<{
117
121
  readonly provider: Schema.Literal<"whatsapp">;
118
122
  readonly wabaId: Schema.String;
@@ -124,6 +128,7 @@ export declare const TemplateRegistrationsList200: Schema.Struct<{
124
128
  readonly name: Schema.String;
125
129
  readonly language: Schema.String;
126
130
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
131
+ readonly pendingTemplateChannelVariantId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateChannelVariantId">, Schema.Null]>;
127
132
  readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
128
133
  readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
129
134
  readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -167,6 +172,7 @@ export declare const TemplateRegistrationsSubmit201: Schema.Struct<{
167
172
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
168
173
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
169
174
  readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
175
+ readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
170
176
  readonly target: Schema.Union<readonly [Schema.Struct<{
171
177
  readonly provider: Schema.Literal<"whatsapp">;
172
178
  readonly wabaId: Schema.String;
@@ -178,6 +184,7 @@ export declare const TemplateRegistrationsSubmit201: Schema.Struct<{
178
184
  readonly name: Schema.String;
179
185
  readonly language: Schema.String;
180
186
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
187
+ readonly pendingTemplateChannelVariantId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateChannelVariantId">, Schema.Null]>;
181
188
  readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
182
189
  readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
183
190
  readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -218,6 +225,7 @@ export declare const TemplateRegistrationsGet200: Schema.Struct<{
218
225
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
219
226
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
220
227
  readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
228
+ readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
221
229
  readonly target: Schema.Union<readonly [Schema.Struct<{
222
230
  readonly provider: Schema.Literal<"whatsapp">;
223
231
  readonly wabaId: Schema.String;
@@ -229,6 +237,7 @@ export declare const TemplateRegistrationsGet200: Schema.Struct<{
229
237
  readonly name: Schema.String;
230
238
  readonly language: Schema.String;
231
239
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
240
+ readonly pendingTemplateChannelVariantId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateChannelVariantId">, Schema.Null]>;
232
241
  readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
233
242
  readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
234
243
  readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -259,6 +268,7 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
259
268
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
260
269
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
261
270
  readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
271
+ readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
262
272
  readonly target: Schema.Union<readonly [Schema.Struct<{
263
273
  readonly provider: Schema.Literal<"whatsapp">;
264
274
  readonly wabaId: Schema.String;
@@ -270,6 +280,7 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
270
280
  readonly name: Schema.String;
271
281
  readonly language: Schema.String;
272
282
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
283
+ readonly pendingTemplateChannelVariantId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateChannelVariantId">, Schema.Null]>;
273
284
  readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
274
285
  readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
275
286
  readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -373,6 +384,7 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
373
384
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
374
385
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
375
386
  readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
387
+ readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
376
388
  readonly target: Schema.Union<readonly [Schema.Struct<{
377
389
  readonly provider: Schema.Literal<"whatsapp">;
378
390
  readonly wabaId: Schema.String;
@@ -384,6 +396,7 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
384
396
  readonly name: Schema.String;
385
397
  readonly language: Schema.String;
386
398
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
399
+ readonly pendingTemplateChannelVariantId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateChannelVariantId">, Schema.Null]>;
387
400
  readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
388
401
  readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
389
402
  readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -490,6 +503,7 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
490
503
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
491
504
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
492
505
  readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
506
+ readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
493
507
  readonly target: Schema.Union<readonly [Schema.Struct<{
494
508
  readonly provider: Schema.Literal<"whatsapp">;
495
509
  readonly wabaId: Schema.String;
@@ -501,6 +515,7 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
501
515
  readonly name: Schema.String;
502
516
  readonly language: Schema.String;
503
517
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
518
+ readonly pendingTemplateChannelVariantId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateChannelVariantId">, Schema.Null]>;
504
519
  readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
505
520
  readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
506
521
  readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1,11 +1,7 @@
1
- import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, TemplateId, TemplatePublicationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
1
+ import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, TemplateChannelVariantId, TemplateId, TemplatePublicationId, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } 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/template-registrations.ts
5
- const TemplateRegistrationId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^treg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
6
- expected: "a string matching the RegExp ^treg_[0-9a-hjkmnp-tv-z]{16,24}$",
7
- identifier: "TemplateRegistrationId"
8
- })).pipe(Schema.brand("TemplateRegistrationId")))();
9
5
  const WhatsAppRegistrationTarget = /* @__PURE__ */ (() => Schema.Struct({
10
6
  provider: Schema.Literal("whatsapp"),
11
7
  wabaId: Schema.String
@@ -20,6 +16,7 @@ const TemplateRegistration = /* @__PURE__ */ (() => Schema.Struct({
20
16
  id: TemplateRegistrationId,
21
17
  templateId: TemplateId,
22
18
  publicationId: TemplatePublicationId,
19
+ templateChannelVariantId: TemplateChannelVariantId,
23
20
  target: TemplateRegistrationTarget,
24
21
  name: Schema.String,
25
22
  language: Schema.String,
@@ -31,6 +28,7 @@ const TemplateRegistration = /* @__PURE__ */ (() => Schema.Struct({
31
28
  Schema.Literal("paused"),
32
29
  Schema.Literal("disabled")
33
30
  ]),
31
+ pendingTemplateChannelVariantId: Schema.Union([TemplateChannelVariantId, Schema.Null]).annotate({ description: "Content a submission sent to the provider whose outcome is not yet recorded, because its request failed or is still in flight; the provider may already hold it. While it is set nothing sends from this registration, even when `status` is `approved`. Submitting again settles it." }),
34
32
  category: Schema.Union([
35
33
  Schema.Literal("marketing"),
36
34
  Schema.Literal("utility"),
@@ -55,7 +53,10 @@ const TemplateRegistration = /* @__PURE__ */ (() => Schema.Struct({
55
53
  statusChangedAt: Schema.String,
56
54
  createdAt: Schema.String,
57
55
  updatedAt: Schema.String
58
- }).annotate({ identifier: "TemplateRegistration" }))();
56
+ }).annotate({
57
+ description: "`templateChannelVariantId` identifies the exact content last submitted. A journey step or scheduled send pins it with `id` in `pinnedRegistration` and sends only while this registration holds that content approved.",
58
+ identifier: "TemplateRegistration"
59
+ }))();
59
60
  const TemplateRegistrationList = /* @__PURE__ */ (() => Schema.Struct({ data: Schema.Array(TemplateRegistration) }).annotate({ identifier: "TemplateRegistrationList" }))();
60
61
  const TemplateRegistrationsListPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TemplateId }))();
61
62
  const TemplateRegistrationsList200 = TemplateRegistrationList;
@@ -133,6 +134,6 @@ var TemplateRegistrationsGroup = class extends HttpApiGroup.make("Template regis
133
134
  TemplateRegistrationsGet504.pipe(HttpApiSchema.status(504))
134
135
  ]
135
136
  }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateRegistrations.get").annotate(OpenApi.Summary, "Get a template registration").annotate(OpenApi.Description, "Returns one registration: its status, the category the provider assigned, and why the provider rejected, paused, or disabled it.")).annotate(OpenApi.Description, "Provider review of template content: submission, status, and category.") {};
136
- export { DltRegistrationTarget, TemplateRegistration, TemplateRegistrationId, TemplateRegistrationList, TemplateRegistrationTarget, TemplateRegistrationsGet200, TemplateRegistrationsGet400, TemplateRegistrationsGet401, TemplateRegistrationsGet403, TemplateRegistrationsGet404, TemplateRegistrationsGet422, TemplateRegistrationsGet500, TemplateRegistrationsGet504, TemplateRegistrationsGetPathParams, TemplateRegistrationsGroup, TemplateRegistrationsList200, TemplateRegistrationsList400, TemplateRegistrationsList401, TemplateRegistrationsList403, TemplateRegistrationsList404, TemplateRegistrationsList422, TemplateRegistrationsList500, TemplateRegistrationsList504, TemplateRegistrationsListPathParams, TemplateRegistrationsSubmit201, TemplateRegistrationsSubmit400, TemplateRegistrationsSubmit401, TemplateRegistrationsSubmit403, TemplateRegistrationsSubmit404, TemplateRegistrationsSubmit409, TemplateRegistrationsSubmit422, TemplateRegistrationsSubmit500, TemplateRegistrationsSubmit502, TemplateRegistrationsSubmit504, TemplateRegistrationsSubmitPathParams, TemplateRegistrationsSubmitRequestJson, WhatsAppRegistrationTarget };
137
+ export { DltRegistrationTarget, TemplateRegistration, TemplateRegistrationList, TemplateRegistrationTarget, TemplateRegistrationsGet200, TemplateRegistrationsGet400, TemplateRegistrationsGet401, TemplateRegistrationsGet403, TemplateRegistrationsGet404, TemplateRegistrationsGet422, TemplateRegistrationsGet500, TemplateRegistrationsGet504, TemplateRegistrationsGetPathParams, TemplateRegistrationsGroup, TemplateRegistrationsList200, TemplateRegistrationsList400, TemplateRegistrationsList401, TemplateRegistrationsList403, TemplateRegistrationsList404, TemplateRegistrationsList422, TemplateRegistrationsList500, TemplateRegistrationsList504, TemplateRegistrationsListPathParams, TemplateRegistrationsSubmit201, TemplateRegistrationsSubmit400, TemplateRegistrationsSubmit401, TemplateRegistrationsSubmit403, TemplateRegistrationsSubmit404, TemplateRegistrationsSubmit409, TemplateRegistrationsSubmit422, TemplateRegistrationsSubmit500, TemplateRegistrationsSubmit502, TemplateRegistrationsSubmit504, TemplateRegistrationsSubmitPathParams, TemplateRegistrationsSubmitRequestJson, WhatsAppRegistrationTarget };
137
138
 
138
139
  //# sourceMappingURL=template-registrations.js.map