samva 0.48.0 → 0.50.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 (85) hide show
  1. package/dist/client/sdk.gen.d.ts +272 -33
  2. package/dist/client/sdk.gen.js +693 -55
  3. package/dist/client/types.gen.d.ts +1571 -206
  4. package/dist/effect/accounts.d.ts +6 -6
  5. package/dist/effect/agents.d.ts +13 -13
  6. package/dist/effect/analytics.d.ts +6 -6
  7. package/dist/effect/api-keys.d.ts +11 -11
  8. package/dist/effect/approval-requests.d.ts +4 -4
  9. package/dist/effect/attachments.d.ts +4 -4
  10. package/dist/effect/brands.d.ts +6 -6
  11. package/dist/effect/campaigns.d.ts +15 -15
  12. package/dist/effect/contact-groups.d.ts +10 -10
  13. package/dist/effect/contacts.d.ts +25 -25
  14. package/dist/effect/conversations.d.ts +13 -13
  15. package/dist/effect/custom-fields.d.ts +4 -4
  16. package/dist/effect/descriptors/integrations-catalog.d.ts +134 -0
  17. package/dist/effect/descriptors/integrations-catalog.js +122 -0
  18. package/dist/effect/descriptors/mailboxes.d.ts +73 -13
  19. package/dist/effect/descriptors/mailboxes.js +85 -13
  20. package/dist/effect/email.d.ts +61 -61
  21. package/dist/effect/events.d.ts +2 -2
  22. package/dist/effect/feedback.d.ts +1 -1
  23. package/dist/effect/generated/accounts.d.ts +1 -3
  24. package/dist/effect/generated/accounts.js +2 -7
  25. package/dist/effect/generated/api-keys.d.ts +15 -15
  26. package/dist/effect/generated/attachments.js +1 -1
  27. package/dist/effect/generated/integrations-catalog.d.ts +2702 -1
  28. package/dist/effect/generated/integrations-catalog.js +578 -3
  29. package/dist/effect/generated/journeys.d.ts +9 -11
  30. package/dist/effect/generated/journeys.js +6 -12
  31. package/dist/effect/generated/mailboxes.d.ts +1661 -669
  32. package/dist/effect/generated/mailboxes.js +291 -103
  33. package/dist/effect/generated/messages.d.ts +109 -4
  34. package/dist/effect/generated/messages.js +41 -8
  35. package/dist/effect/generated/shared.d.ts +199 -21
  36. package/dist/effect/generated/shared.js +50 -13
  37. package/dist/effect/generated/template-registrations.d.ts +32 -1
  38. package/dist/effect/generated/template-registrations.js +8 -5
  39. package/dist/effect/generated/templates.d.ts +1 -4
  40. package/dist/effect/generated/templates.js +2 -6
  41. package/dist/effect/generated/webhooks.d.ts +19 -19
  42. package/dist/effect/generated/webhooks.js +8 -8
  43. package/dist/effect/generated/whoami.d.ts +4 -4
  44. package/dist/effect/generated-metadata.d.ts +138 -18
  45. package/dist/effect/generated-metadata.js +366 -340
  46. package/dist/effect/integrations-catalog.d.ts +228 -3
  47. package/dist/effect/integrations-catalog.js +29 -1
  48. package/dist/effect/integrations.d.ts +7 -7
  49. package/dist/effect/internal/client.d.ts +7 -3
  50. package/dist/effect/internal/operation.d.ts +10 -6
  51. package/dist/effect/internal/operation.js +3 -3
  52. package/dist/effect/journeys.d.ts +14 -14
  53. package/dist/effect/mailboxes.d.ts +142 -92
  54. package/dist/effect/mailboxes.js +20 -8
  55. package/dist/effect/media.d.ts +5 -5
  56. package/dist/effect/messages.d.ts +9 -9
  57. package/dist/effect/namespaces.d.ts +11 -11
  58. package/dist/effect/newsletter-domains.d.ts +4 -4
  59. package/dist/effect/newsletter-issues.d.ts +11 -11
  60. package/dist/effect/newsletters.d.ts +5 -5
  61. package/dist/effect/operations.d.ts +3 -3
  62. package/dist/effect/organizations.d.ts +12 -12
  63. package/dist/effect/policies.d.ts +3 -3
  64. package/dist/effect/retry.js +1 -1
  65. package/dist/effect/scheduled-messages.d.ts +5 -5
  66. package/dist/effect/subscriptions.d.ts +1 -1
  67. package/dist/effect/template-registrations.d.ts +9 -3
  68. package/dist/effect/template-share-links.d.ts +5 -5
  69. package/dist/effect/templates.d.ts +37 -37
  70. package/dist/effect/topic-forms.d.ts +5 -5
  71. package/dist/effect/topics.d.ts +9 -9
  72. package/dist/effect/webhooks.d.ts +15 -15
  73. package/dist/effect/whatsapp-flows.d.ts +10 -10
  74. package/dist/effect/whatsapp-setup-links.d.ts +4 -4
  75. package/dist/effect/whatsapp.d.ts +12 -12
  76. package/dist/effect/whoami.d.ts +1 -1
  77. package/dist/inline-attachments.d.ts +0 -5
  78. package/dist/mailbox-events.d.ts +1 -5
  79. package/dist/mailbox-events.js +2 -2
  80. package/dist/package.js +1 -1
  81. package/dist/promises/client.d.ts +4 -4
  82. package/dist/promises/client.js +8 -4
  83. package/dist/promises/types.gen.d.ts +1 -1
  84. package/dist/service-map.d.ts +105 -11
  85. package/package.json +3 -3
@@ -14,6 +14,8 @@ export type JsonObject = {
14
14
  export declare const JsonObject: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
15
15
  export type IntegrationAccountId = string & EffectBrand.Brand<"IntegrationAccountId">;
16
16
  export declare const IntegrationAccountId: Schema.brand<Schema.String, "IntegrationAccountId">;
17
+ export type AccountStatus = "pending" | "connected" | "needsReconnect";
18
+ export declare const AccountStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
17
19
  export type UserId = string & EffectBrand.Brand<"UserId">;
18
20
  export declare const UserId: Schema.brand<Schema.String, "UserId">;
19
21
  declare const MalformedRequestError_base: Schema.Class<MalformedRequestError, Schema.Struct<{
@@ -443,8 +445,14 @@ export type AnswerWithoutApproval = boolean;
443
445
  export declare const AnswerWithoutApproval: Schema.Boolean;
444
446
  export type IntegrationTool = string;
445
447
  export declare const IntegrationTool: Schema.String;
448
+ export type TemplateRegistrationId = string & EffectBrand.Brand<"TemplateRegistrationId">;
449
+ export declare const TemplateRegistrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
450
+ export type TemplateFamilyId = string & EffectBrand.Brand<"TemplateFamilyId">;
451
+ export declare const TemplateFamilyId: Schema.brand<Schema.String, "TemplateFamilyId">;
446
452
  export type JourneyId = string & EffectBrand.Brand<"JourneyId">;
447
453
  export declare const JourneyId: Schema.brand<Schema.String, "JourneyId">;
454
+ export type JourneyStatus = "draft" | "active" | "paused" | "archived";
455
+ export declare const JourneyStatus: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
448
456
  export type JourneyName = string;
449
457
  export declare const JourneyName: Schema.String;
450
458
  export type JourneyCustomEventName = string;
@@ -465,8 +473,6 @@ export declare const JourneyTagAddedTrigger: Schema.Struct<{
465
473
  }>;
466
474
  export type JourneyNodeId = string;
467
475
  export declare const JourneyNodeId: Schema.String;
468
- export type TemplateRegistrationId = string & EffectBrand.Brand<"TemplateRegistrationId">;
469
- export declare const TemplateRegistrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
470
476
  export type TemplateChannelVariantId = string & EffectBrand.Brand<"TemplateChannelVariantId">;
471
477
  export declare const TemplateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
472
478
  export type JourneyWaitConfig = {
@@ -627,8 +633,8 @@ declare const WhatsAppServiceWindowClosedError_base: Schema.Class<WhatsAppServic
627
633
  }>, import("effect/Cause").YieldableError>;
628
634
  export declare class WhatsAppServiceWindowClosedError extends WhatsAppServiceWindowClosedError_base {
629
635
  }
630
- export type MailboxThreadFolder = "inbox" | "assigned" | "pending" | "sent" | "archived" | "trash";
631
- export declare const MailboxThreadFolder: Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">]>;
636
+ export type MailboxThreadFolder = "inbox" | "assigned" | "pending" | "sent" | "archived" | "trash" | "spam";
637
+ export declare const MailboxThreadFolder: Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">, Schema.Literal<"spam">]>;
632
638
  export type MailboxGrantRole = "admin" | "collaborator" | "viewer";
633
639
  export declare const MailboxGrantRole: Schema.Union<readonly [Schema.Literal<"admin">, Schema.Literal<"collaborator">, Schema.Literal<"viewer">]>;
634
640
  export type MailboxLabelId = string & EffectBrand.Brand<"MailboxLabelId">;
@@ -1629,13 +1635,13 @@ export declare const UpdateAgentPayload: Schema.Struct<{
1629
1635
  }>;
1630
1636
  export type ApiKeyMailboxAccess = {
1631
1637
  readonly permissions: readonly [
1632
- "read" | "update" | "send" | "quarantine.read",
1633
- ...Array<"read" | "update" | "send" | "quarantine.read">
1638
+ "read" | "update" | "send" | "spam.read",
1639
+ ...Array<"read" | "update" | "send" | "spam.read">
1634
1640
  ];
1635
1641
  readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
1636
1642
  };
1637
1643
  export declare const ApiKeyMailboxAccess: Schema.Struct<{
1638
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
1644
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
1639
1645
  readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
1640
1646
  }>;
1641
1647
  export type CampaignReplyMailbox = MailboxId | null;
@@ -1643,7 +1649,7 @@ export declare const CampaignReplyMailbox: Schema.Union<readonly [Schema.brand<S
1643
1649
  export type CreateWebhookPayload = {
1644
1650
  readonly name: string;
1645
1651
  readonly url: string;
1646
- readonly eventTypes: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
1652
+ readonly eventTypes: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
1647
1653
  readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
1648
1654
  readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
1649
1655
  readonly namespaceId?: NamespaceId | null;
@@ -1655,7 +1661,7 @@ export type CreateWebhookPayload = {
1655
1661
  export declare const CreateWebhookPayload: Schema.Struct<{
1656
1662
  readonly name: Schema.String;
1657
1663
  readonly url: Schema.String;
1658
- readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
1664
+ readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
1659
1665
  readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
1660
1666
  readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
1661
1667
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -1665,7 +1671,7 @@ export declare const CreateWebhookPayload: Schema.Struct<{
1665
1671
  export type UpdateWebhookPayload = {
1666
1672
  readonly name?: string | null;
1667
1673
  readonly url?: string | null;
1668
- readonly eventTypes?: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null;
1674
+ readonly eventTypes?: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null;
1669
1675
  readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
1670
1676
  readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
1671
1677
  readonly namespaceId?: NamespaceId | null;
@@ -1677,7 +1683,7 @@ export type UpdateWebhookPayload = {
1677
1683
  export declare const UpdateWebhookPayload: Schema.Struct<{
1678
1684
  readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1679
1685
  readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1680
- readonly eventTypes: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
1686
+ readonly eventTypes: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
1681
1687
  readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
1682
1688
  readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
1683
1689
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -1824,6 +1830,36 @@ export declare const RespondToOnboardingInformationRequestInput: Schema.Struct<{
1824
1830
  readonly responseText: Schema.String;
1825
1831
  readonly evidenceMediaIds: Schema.$Array<Schema.brand<Schema.String, "MediaId">>;
1826
1832
  }>;
1833
+ export type RecipePreviewPayload = {
1834
+ readonly templateId: TemplateId;
1835
+ readonly publicationId: TemplatePublicationId;
1836
+ readonly fixture?: string;
1837
+ readonly templateData?: JsonObject;
1838
+ readonly channel: "email";
1839
+ } | {
1840
+ readonly templateId: TemplateId;
1841
+ readonly publicationId: TemplatePublicationId;
1842
+ readonly fixture?: string;
1843
+ readonly templateData?: JsonObject;
1844
+ readonly channel: "whatsapp";
1845
+ readonly eventBindings?: {
1846
+ readonly [x: string]: string;
1847
+ };
1848
+ };
1849
+ export declare const RecipePreviewPayload: Schema.Union<readonly [Schema.Struct<{
1850
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
1851
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
1852
+ readonly fixture: Schema.optionalKey<Schema.String>;
1853
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
1854
+ readonly channel: Schema.Literal<"email">;
1855
+ }>, Schema.Struct<{
1856
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
1857
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
1858
+ readonly fixture: Schema.optionalKey<Schema.String>;
1859
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
1860
+ readonly channel: Schema.Literal<"whatsapp">;
1861
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1862
+ }>]>;
1827
1863
  export type RenderTemplatePublicationPayload = {
1828
1864
  readonly data: {
1829
1865
  readonly [x: string]: JsonValue;
@@ -1892,6 +1928,18 @@ export declare const WhatsAppTemplateBinding: Schema.Union<readonly [Schema.Stru
1892
1928
  }>, Schema.Struct<{
1893
1929
  readonly customField: Schema.String;
1894
1930
  }>]>;
1931
+ export type TemplateRegistrationApproval = {
1932
+ readonly publicationId: TemplatePublicationId;
1933
+ readonly businessAccountId: WhatsAppBusinessAccountId;
1934
+ readonly expectedWabaId: string;
1935
+ readonly expectedWorkspaceRevision: string;
1936
+ };
1937
+ export declare const TemplateRegistrationApproval: Schema.Struct<{
1938
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
1939
+ readonly businessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
1940
+ readonly expectedWabaId: Schema.String;
1941
+ readonly expectedWorkspaceRevision: Schema.String;
1942
+ }>;
1895
1943
  export type RegisterWhatsAppFlowPayload = {
1896
1944
  readonly businessAccountId?: WhatsAppBusinessAccountId;
1897
1945
  };
@@ -1904,14 +1952,6 @@ export type RotateWhatsAppFlowEncryptionKeyPayload = {
1904
1952
  export declare const RotateWhatsAppFlowEncryptionKeyPayload: Schema.Struct<{
1905
1953
  readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1906
1954
  }>;
1907
- export type SubmitTemplateRegistrationPayload = {
1908
- readonly provider: "whatsapp";
1909
- readonly businessAccountId?: WhatsAppBusinessAccountId;
1910
- };
1911
- export declare const SubmitTemplateRegistrationPayload: Schema.Struct<{
1912
- readonly provider: Schema.Literal<"whatsapp">;
1913
- readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1914
- }>;
1915
1955
  export type CampaignAudience = {
1916
1956
  readonly topicId: TopicId;
1917
1957
  readonly includeTags?: ReadonlyArray<string> | null;
@@ -2067,6 +2107,110 @@ export declare const UpdateIntegrationPayload: Schema.Struct<{
2067
2107
  }>>;
2068
2108
  readonly settings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
2069
2109
  }>;
2110
+ export type ActivateRecipeSetup = {
2111
+ readonly revision: string;
2112
+ readonly selection: {
2113
+ readonly channel: "email";
2114
+ readonly publicationId: TemplatePublicationId;
2115
+ readonly senderId?: EmailSenderId;
2116
+ } | {
2117
+ readonly channel: "whatsapp";
2118
+ readonly whatsappAccountId: WhatsAppBusinessAccountId;
2119
+ readonly registrationId: TemplateRegistrationId;
2120
+ readonly eventBindings: {
2121
+ readonly [x: string]: string;
2122
+ };
2123
+ };
2124
+ };
2125
+ export declare const ActivateRecipeSetup: Schema.Struct<{
2126
+ readonly revision: Schema.String;
2127
+ readonly selection: Schema.Union<readonly [Schema.Struct<{
2128
+ readonly channel: Schema.Literal<"email">;
2129
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
2130
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2131
+ }>, Schema.Struct<{
2132
+ readonly channel: Schema.Literal<"whatsapp">;
2133
+ readonly whatsappAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
2134
+ readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
2135
+ readonly eventBindings: Schema.$Record<Schema.String, Schema.String>;
2136
+ }>]>;
2137
+ }>;
2138
+ export type RecipeTestPayload = {
2139
+ readonly templateId: TemplateId;
2140
+ readonly publicationId: TemplatePublicationId;
2141
+ readonly fixture?: string;
2142
+ readonly templateData?: JsonObject;
2143
+ readonly channel: "email";
2144
+ readonly requestId: string;
2145
+ readonly mailboxEndpointId: MailboxEndpointId;
2146
+ readonly topicId?: TopicId;
2147
+ readonly senderId?: EmailSenderId;
2148
+ } | {
2149
+ readonly templateId: TemplateId;
2150
+ readonly publicationId: TemplatePublicationId;
2151
+ readonly fixture?: string;
2152
+ readonly templateData?: JsonObject;
2153
+ readonly channel: "whatsapp";
2154
+ readonly eventBindings?: {
2155
+ readonly [x: string]: string;
2156
+ };
2157
+ readonly requestId: string;
2158
+ readonly mailboxEndpointId: MailboxEndpointId;
2159
+ readonly topicId?: TopicId;
2160
+ readonly businessAccountId: WhatsAppBusinessAccountId;
2161
+ readonly registrationId: TemplateRegistrationId;
2162
+ readonly challengeId: string;
2163
+ };
2164
+ export declare const RecipeTestPayload: Schema.Union<readonly [Schema.Struct<{
2165
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
2166
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
2167
+ readonly fixture: Schema.optionalKey<Schema.String>;
2168
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
2169
+ readonly channel: Schema.Literal<"email">;
2170
+ readonly requestId: Schema.String;
2171
+ readonly mailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
2172
+ readonly topicId: Schema.optionalKey<Schema.brand<Schema.String, "TopicId">>;
2173
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2174
+ }>, Schema.Struct<{
2175
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
2176
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
2177
+ readonly fixture: Schema.optionalKey<Schema.String>;
2178
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
2179
+ readonly channel: Schema.Literal<"whatsapp">;
2180
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2181
+ readonly requestId: Schema.String;
2182
+ readonly mailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
2183
+ readonly topicId: Schema.optionalKey<Schema.brand<Schema.String, "TopicId">>;
2184
+ readonly businessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
2185
+ readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
2186
+ readonly challengeId: Schema.String;
2187
+ }>]>;
2188
+ export type RecipeSetupReferences = {
2189
+ readonly channel: "email" | "whatsapp";
2190
+ readonly templateFamilyId?: TemplateFamilyId;
2191
+ readonly integrationAccountId?: IntegrationAccountId;
2192
+ readonly publicationId?: TemplatePublicationId;
2193
+ readonly senderId?: EmailSenderId;
2194
+ readonly whatsappAccountId?: WhatsAppBusinessAccountId;
2195
+ readonly registrationId?: TemplateRegistrationId;
2196
+ readonly mailboxEndpointId?: MailboxEndpointId;
2197
+ readonly journeyId?: JourneyId;
2198
+ readonly eventBindings?: {
2199
+ readonly [x: string]: string;
2200
+ };
2201
+ };
2202
+ export declare const RecipeSetupReferences: Schema.Struct<{
2203
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
2204
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
2205
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
2206
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
2207
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2208
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
2209
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
2210
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
2211
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
2212
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2213
+ }>;
2070
2214
  export type UpdateJourneyPayload = {
2071
2215
  readonly name: JourneyName;
2072
2216
  };
@@ -2304,7 +2448,7 @@ export type UpdateMailboxThreadPayload = {
2304
2448
  readonly reminderInboxAt?: string | null;
2305
2449
  };
2306
2450
  export declare const UpdateMailboxThreadPayload: Schema.Struct<{
2307
- readonly folder: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">]>, Schema.Null]>>;
2451
+ readonly folder: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">, Schema.Literal<"spam">]>, Schema.Null]>>;
2308
2452
  readonly priority: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"low">, Schema.Literal<"normal">, Schema.Literal<"high">, Schema.Literal<"urgent">]>, Schema.Null]>>;
2309
2453
  readonly done: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
2310
2454
  readonly closed: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
@@ -2755,7 +2899,7 @@ export declare const ApiKeyAccess: Schema.Union<readonly [Schema.Struct<{
2755
2899
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
2756
2900
  }>;
2757
2901
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2758
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
2902
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
2759
2903
  readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
2760
2904
  }>, Schema.Null]>>;
2761
2905
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -3065,6 +3209,21 @@ export declare const WhatsAppTemplateBindings: Schema.$Record<Schema.String, Sch
3065
3209
  }>, Schema.Struct<{
3066
3210
  readonly customField: Schema.String;
3067
3211
  }>]>>;
3212
+ export type SubmitTemplateRegistrationPayload = {
3213
+ readonly provider: "whatsapp";
3214
+ readonly businessAccountId?: WhatsAppBusinessAccountId;
3215
+ readonly approval?: TemplateRegistrationApproval;
3216
+ };
3217
+ export declare const SubmitTemplateRegistrationPayload: Schema.Struct<{
3218
+ readonly provider: Schema.Literal<"whatsapp">;
3219
+ readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
3220
+ readonly approval: Schema.optionalKey<Schema.Struct<{
3221
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
3222
+ readonly businessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
3223
+ readonly expectedWabaId: Schema.String;
3224
+ readonly expectedWorkspaceRevision: Schema.String;
3225
+ }>>;
3226
+ }>;
3068
3227
  export type MessagePage = {
3069
3228
  readonly items: ReadonlyArray<MessageSummary>;
3070
3229
  readonly nextCursor: string | null;
@@ -3087,6 +3246,25 @@ export declare const MessagePage: Schema.Struct<{
3087
3246
  }>>;
3088
3247
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
3089
3248
  }>;
3249
+ export type ReplaceRecipeSetup = {
3250
+ readonly references: RecipeSetupReferences;
3251
+ readonly revision: string | null;
3252
+ };
3253
+ export declare const ReplaceRecipeSetup: Schema.Struct<{
3254
+ readonly references: Schema.Struct<{
3255
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
3256
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
3257
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
3258
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
3259
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
3260
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
3261
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
3262
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
3263
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
3264
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
3265
+ }>;
3266
+ readonly revision: Schema.Union<readonly [Schema.String, Schema.Null]>;
3267
+ }>;
3090
3268
  export type JourneyTrigger = JourneyCustomEventTrigger | JourneyContactCreatedTrigger | JourneyTagAddedTrigger | JourneyGroupJoinedTrigger;
3091
3269
  export declare const JourneyTrigger: Schema.Union<readonly [Schema.Struct<{
3092
3270
  readonly type: Schema.Literal<"event">;
@@ -12,6 +12,11 @@ const IntegrationAccountId = /* @__PURE__ */ (() => Schema.String.check(Schema.i
12
12
  expected: "a string matching the RegExp ^intgacct_[0-9a-hjkmnp-tv-z]{16,24}$",
13
13
  identifier: "IntegrationAccountId"
14
14
  })).pipe(Schema.brand("IntegrationAccountId")))();
15
+ const AccountStatus = /* @__PURE__ */ (() => Schema.Union([
16
+ Schema.Literal("pending"),
17
+ Schema.Literal("connected"),
18
+ Schema.Literal("needsReconnect")
19
+ ]).annotate({ identifier: "AccountStatus" }))();
15
20
  const UserId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^user_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
16
21
  expected: "a string matching the RegExp ^user_[0-9a-hjkmnp-tv-z]{16,24}$",
17
22
  identifier: "UserId"
@@ -422,10 +427,24 @@ const IntegrationTool = /* @__PURE__ */ (() => Schema.String.check(Schema.isPatt
422
427
  expected: "a string matching the RegExp ^[a-z][a-z0-9_.]{0,63}$",
423
428
  identifier: "IntegrationTool"
424
429
  })))();
430
+ const TemplateRegistrationId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^treg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
431
+ expected: "a string matching the RegExp ^treg_[0-9a-hjkmnp-tv-z]{16,24}$",
432
+ identifier: "TemplateRegistrationId"
433
+ })).pipe(Schema.brand("TemplateRegistrationId")))();
434
+ const TemplateFamilyId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^tfam_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
435
+ expected: "a string matching the RegExp ^tfam_[0-9a-hjkmnp-tv-z]{16,24}$",
436
+ identifier: "TemplateFamilyId"
437
+ })).pipe(Schema.brand("TemplateFamilyId")))();
425
438
  const JourneyId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^jrny_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
426
439
  expected: "a string matching the RegExp ^jrny_[0-9a-hjkmnp-tv-z]{16,24}$",
427
440
  identifier: "JourneyId"
428
441
  })).pipe(Schema.brand("JourneyId")))();
442
+ const JourneyStatus = /* @__PURE__ */ (() => Schema.Union([
443
+ Schema.Literal("draft"),
444
+ Schema.Literal("active"),
445
+ Schema.Literal("paused"),
446
+ Schema.Literal("archived")
447
+ ]).annotate({ identifier: "JourneyStatus" }))();
429
448
  const JourneyName = /* @__PURE__ */ (() => Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\S[\\s\\S]*\\S$|^\\S$|^$", "u")).annotate({
430
449
  expected: "a string matching the RegExp ^\\S[\\s\\S]*\\S$|^\\S$|^$",
431
450
  identifier: "JourneyName"
@@ -443,10 +462,6 @@ const JourneyNodeId = /* @__PURE__ */ (() => Schema.String.check(Schema.isMinLen
443
462
  expected: "a value with a length of at least 1",
444
463
  identifier: "JourneyNodeId"
445
464
  })))();
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
465
  const TemplateChannelVariantId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^tvar_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
451
466
  expected: "a string matching the RegExp ^tvar_[0-9a-hjkmnp-tv-z]{16,24}$",
452
467
  identifier: "TemplateChannelVariantId"
@@ -620,7 +635,8 @@ const MailboxThreadFolder = /* @__PURE__ */ (() => Schema.Union([
620
635
  Schema.Literal("pending"),
621
636
  Schema.Literal("sent"),
622
637
  Schema.Literal("archived"),
623
- Schema.Literal("trash")
638
+ Schema.Literal("trash"),
639
+ Schema.Literal("spam")
624
640
  ]).annotate({ identifier: "MailboxThreadFolder" }))();
625
641
  const MailboxGrantRole = /* @__PURE__ */ (() => Schema.Union([
626
642
  Schema.Literal("admin"),
@@ -965,13 +981,13 @@ const ApiKeyMailboxAccess = /* @__PURE__ */ (() => Schema.Struct({
965
981
  Schema.Literal("read"),
966
982
  Schema.Literal("update"),
967
983
  Schema.Literal("send"),
968
- Schema.Literal("quarantine.read")
984
+ Schema.Literal("spam.read")
969
985
  ])]), [Schema.Union([
970
986
  Schema.Literal("read"),
971
987
  Schema.Literal("update"),
972
988
  Schema.Literal("send"),
973
- Schema.Literal("quarantine.read")
974
- ])]).annotate({ description: "`read` reads mailboxes, threads, and messages; `update` changes thread state, labels, drafts, and notes; `send` sends and replies; `quarantine.read` reads quarantined mail." }),
989
+ Schema.Literal("spam.read")
990
+ ])]).annotate({ description: "`read` reads mailboxes, threads, and messages; `update` changes thread state, labels, drafts, and notes; `send` sends and replies; `spam.read` reads quarantined mail." }),
975
991
  mailboxIds: Schema.optionalKey(Schema.Union([Schema.TupleWithRest(Schema.Tuple([MailboxId]), [MailboxId]), Schema.Null]).annotate({ description: "The mailboxes the key may act on. Omit to reach every mailbox the owner can." }))
976
992
  }).annotate({ identifier: "ApiKeyMailboxAccess" }))();
977
993
  const CampaignReplyMailbox = /* @__PURE__ */ (() => Schema.Union([MailboxId, Schema.Null]).annotate({
@@ -1016,9 +1032,9 @@ const CreateWebhookPayload = /* @__PURE__ */ (() => Schema.Struct({
1016
1032
  Schema.Literal("mailbox.message.sent"),
1017
1033
  Schema.Literal("mailbox.action.pending_approval"),
1018
1034
  Schema.Literal("mailbox.action.resolved"),
1019
- Schema.Literal("mailbox.message.quarantined"),
1020
- Schema.Literal("mailbox.message.released"),
1035
+ Schema.Literal("mailbox.message.spam"),
1021
1036
  Schema.Literal("mailbox.message.discarded"),
1037
+ Schema.Literal("mailbox.thread.deleted"),
1022
1038
  Schema.Literal("mailbox.message.delivered"),
1023
1039
  Schema.Literal("mailbox.message.read"),
1024
1040
  Schema.Literal("mailbox.message.failed"),
@@ -1072,9 +1088,9 @@ const UpdateWebhookPayload = /* @__PURE__ */ (() => Schema.Struct({
1072
1088
  Schema.Literal("mailbox.message.sent"),
1073
1089
  Schema.Literal("mailbox.action.pending_approval"),
1074
1090
  Schema.Literal("mailbox.action.resolved"),
1075
- Schema.Literal("mailbox.message.quarantined"),
1076
- Schema.Literal("mailbox.message.released"),
1091
+ Schema.Literal("mailbox.message.spam"),
1077
1092
  Schema.Literal("mailbox.message.discarded"),
1093
+ Schema.Literal("mailbox.thread.deleted"),
1078
1094
  Schema.Literal("mailbox.message.delivered"),
1079
1095
  Schema.Literal("mailbox.message.read"),
1080
1096
  Schema.Literal("mailbox.message.failed"),
@@ -1163,6 +1179,15 @@ const SkippedRecipient = /* @__PURE__ */ (() => Schema.Struct({
1163
1179
  }).annotate({ identifier: "SkippedRecipient" }))();
1164
1180
  const CampaignConversationRef = /* @__PURE__ */ (() => Schema.Union([ConversationId, Schema.Null]).annotate({ identifier: "CampaignConversationRef" }))();
1165
1181
  const WhatsAppTemplateBinding = /* @__PURE__ */ (() => Schema.Union([WhatsAppTemplateContactBinding, WhatsAppTemplateCustomFieldBinding]).annotate({ identifier: "WhatsAppTemplateBinding" }))();
1182
+ const TemplateRegistrationApproval = /* @__PURE__ */ (() => Schema.Struct({
1183
+ publicationId: TemplatePublicationId,
1184
+ businessAccountId: WhatsAppBusinessAccountId,
1185
+ expectedWabaId: Schema.String.annotate({ description: "The Meta business account ID shown for the selected number before approval." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
1186
+ expectedWorkspaceRevision: Schema.String.annotate({ description: "The workspace revision reviewed for this submission." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" }))
1187
+ }).annotate({
1188
+ description: "For a reviewed submission, the exact publication, workspace revision, number and Meta business account. Omit the separate businessAccountId when supplying approval.",
1189
+ identifier: "TemplateRegistrationApproval"
1190
+ }))();
1166
1191
  const CampaignAudience = /* @__PURE__ */ (() => Schema.Struct({
1167
1192
  topicId: TopicId,
1168
1193
  includeTags: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
@@ -1252,6 +1277,18 @@ const SendFeedback = /* @__PURE__ */ (() => Schema.Struct({
1252
1277
  ]).annotate({ description: "`bug`: the API behaved wrongly. `confusing`: a response, error, or doc was hard to act on. `missing`: a capability or field you needed does not exist. `other`: anything else." }), Schema.Null])),
1253
1278
  context: Schema.optionalKey(Schema.Union([FeedbackContext, Schema.Null]))
1254
1279
  }).annotate({ identifier: "SendFeedback" }))();
1280
+ const RecipeSetupReferences = /* @__PURE__ */ (() => Schema.Struct({
1281
+ channel: Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]),
1282
+ templateFamilyId: Schema.optionalKey(TemplateFamilyId),
1283
+ integrationAccountId: Schema.optionalKey(IntegrationAccountId),
1284
+ publicationId: Schema.optionalKey(TemplatePublicationId),
1285
+ senderId: Schema.optionalKey(EmailSenderId),
1286
+ whatsappAccountId: Schema.optionalKey(WhatsAppBusinessAccountId),
1287
+ registrationId: Schema.optionalKey(TemplateRegistrationId),
1288
+ mailboxEndpointId: Schema.optionalKey(MailboxEndpointId),
1289
+ journeyId: Schema.optionalKey(JourneyId),
1290
+ 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" })))
1291
+ }).annotate({ identifier: "RecipeSetupReferences" }))();
1255
1292
  const JourneyCustomEventTrigger = /* @__PURE__ */ (() => Schema.Struct({
1256
1293
  type: Schema.Literal("event"),
1257
1294
  eventName: JourneyCustomEventName
@@ -1986,6 +2023,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
1986
2023
  in: "header"
1987
2024
  });
1988
2025
  var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
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 };
2026
+ 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, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCampaignContentInput, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionInstallationId, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IanaTimezone, IntegrationAccountId, IntegrationId, IntegrationKey, IntegrationReturnTo, IntegrationStatus, IntegrationTool, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyId, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, JourneySendWhatsAppConfig, JourneyStatus, JourneyStringComparison, JourneyTagAddedTrigger, JourneyTagPredicate, JourneyTrigger, JourneyUpdateTagsConfig, JourneyUpdateTagsNode, JourneyWaitConfig, JourneyWaitEventEdge, JourneyWaitForEventConfig, JourneyWaitForEventNode, JourneyWaitNode, JourneyWebhookConfig, JourneyWebhookNode, JsonObject, JsonValue, KnowledgeSourceId, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxSendConflictError, MailboxSendError, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, 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, SmsRecipient, SmsRecipients, SmsSendMessagePayload, SmsTemplateData, StoredEmailAttachments, StoredReplyToAddresses, 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, 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 };
1990
2027
 
1991
2028
  //# sourceMappingURL=shared.js.map
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, TemplateChannelVariantId, TemplateId, TemplatePublicationId, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
3
+ import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateChannelVariantId, TemplateId, TemplatePublicationId, TemplateRegistrationApproval, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
4
4
  export type WhatsAppRegistrationTarget = {
5
5
  readonly provider: "whatsapp";
6
6
  readonly wabaId: string;
@@ -162,10 +162,17 @@ export declare const TemplateRegistrationsSubmitPathParams: Schema.Struct<{
162
162
  export type TemplateRegistrationsSubmitRequestJson = {
163
163
  readonly provider: "whatsapp";
164
164
  readonly businessAccountId?: WhatsAppBusinessAccountId;
165
+ readonly approval?: TemplateRegistrationApproval;
165
166
  };
166
167
  export declare const TemplateRegistrationsSubmitRequestJson: Schema.Struct<{
167
168
  readonly provider: Schema.Literal<"whatsapp">;
168
169
  readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
170
+ readonly approval: Schema.optionalKey<Schema.Struct<{
171
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
172
+ readonly businessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
173
+ readonly expectedWabaId: Schema.String;
174
+ readonly expectedWorkspaceRevision: Schema.String;
175
+ }>>;
169
176
  }>;
170
177
  export type TemplateRegistrationsSubmit201 = TemplateRegistration;
171
178
  export declare const TemplateRegistrationsSubmit201: Schema.Struct<{
@@ -210,6 +217,8 @@ export type TemplateRegistrationsSubmit500 = CredentialsError | InternalError;
210
217
  export declare const TemplateRegistrationsSubmit500: Schema.Union<readonly [typeof CredentialsError, typeof InternalError]>;
211
218
  export type TemplateRegistrationsSubmit502 = WhatsAppChannelError;
212
219
  export declare const TemplateRegistrationsSubmit502: typeof WhatsAppChannelError;
220
+ export type TemplateRegistrationsSubmit503 = ServiceUnavailableError;
221
+ export declare const TemplateRegistrationsSubmit503: typeof ServiceUnavailableError;
213
222
  export type TemplateRegistrationsSubmit504 = GatewayTimeoutError;
214
223
  export declare const TemplateRegistrationsSubmit504: typeof GatewayTimeoutError;
215
224
  export type TemplateRegistrationsGetPathParams = {
@@ -499,6 +508,12 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
499
508
  }>>, never, Schema.toCodecJson<Schema.Struct<{
500
509
  readonly provider: Schema.Literal<"whatsapp">;
501
510
  readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
511
+ readonly approval: Schema.optionalKey<Schema.Struct<{
512
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
513
+ readonly businessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
514
+ readonly expectedWabaId: Schema.String;
515
+ readonly expectedWorkspaceRevision: Schema.String;
516
+ }>>;
502
517
  }>>, never, Schema.toCodecJson<Schema.Struct<{
503
518
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
504
519
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
@@ -600,6 +615,22 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
600
615
  readonly resource: Schema.String;
601
616
  readonly id: Schema.String;
602
617
  readonly message: Schema.String;
618
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ServiceUnavailableError, {
619
+ readonly _tag: "ServiceUnavailableError";
620
+ readonly message: string;
621
+ readonly retryAfterSeconds: number;
622
+ }, readonly [Schema.Struct<{
623
+ readonly _tag: Schema.tag<"ServiceUnavailableError">;
624
+ readonly message: Schema.String;
625
+ readonly retryAfterSeconds: Schema.Finite;
626
+ }>], {
627
+ readonly _tag: "ServiceUnavailableError";
628
+ readonly message: string;
629
+ readonly retryAfterSeconds: number;
630
+ }>, Schema.Struct<{
631
+ readonly _tag: Schema.tag<"ServiceUnavailableError">;
632
+ readonly message: Schema.String;
633
+ readonly retryAfterSeconds: Schema.Finite;
603
634
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
604
635
  readonly _tag: "UnauthorizedError";
605
636
  readonly message: string;