samva 0.44.0 → 0.45.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 (91) hide show
  1. package/AGENTS.md +3 -0
  2. package/README.md +4 -0
  3. package/dist/client/sdk.gen.d.ts +281 -1
  4. package/dist/client/sdk.gen.js +856 -1
  5. package/dist/client/types.gen.d.ts +1850 -46
  6. package/dist/effect/agents.d.ts +86 -86
  7. package/dist/effect/agents.js +2 -2
  8. package/dist/effect/api-keys.d.ts +36 -36
  9. package/dist/effect/api-keys.js +2 -2
  10. package/dist/effect/attachments.d.ts +3 -3
  11. package/dist/effect/attachments.js +1 -1
  12. package/dist/effect/campaigns.d.ts +250 -250
  13. package/dist/effect/campaigns.js +3 -3
  14. package/dist/effect/categories.d.ts +23 -5
  15. package/dist/effect/categories.js +11 -20
  16. package/dist/effect/contact-groups.d.ts +44 -44
  17. package/dist/effect/contact-groups.js +3 -3
  18. package/dist/effect/contacts.d.ts +3 -3
  19. package/dist/effect/contacts.js +1 -1
  20. package/dist/effect/conversations.d.ts +53 -53
  21. package/dist/effect/conversations.js +1 -1
  22. package/dist/effect/email.d.ts +97 -97
  23. package/dist/effect/email.js +21 -21
  24. package/dist/effect/errors.d.ts +1 -1
  25. package/dist/effect/errors.js +2 -2
  26. package/dist/effect/extension-installations.d.ts +6 -6
  27. package/dist/effect/extension-installations.js +1 -1
  28. package/dist/effect/generated/index.d.ts +9 -1
  29. package/dist/effect/generated/journeys.d.ts +1 -3
  30. package/dist/effect/generated/journeys.js +2 -6
  31. package/dist/effect/generated/messages.d.ts +1 -5
  32. package/dist/effect/generated/messages.js +2 -10
  33. package/dist/effect/generated/shared.d.ts +92 -2
  34. package/dist/effect/generated/shared.js +43 -2
  35. package/dist/effect/generated/template-registrations.d.ts +651 -0
  36. package/dist/effect/generated/template-registrations.js +138 -0
  37. package/dist/effect/generated/whats-app-flows.d.ts +1838 -0
  38. package/dist/effect/generated/whats-app-flows.js +338 -0
  39. package/dist/effect/generated/whats-app-setup-links.d.ts +705 -0
  40. package/dist/effect/generated/whats-app-setup-links.js +150 -0
  41. package/dist/effect/generated/whats-app.d.ts +2089 -0
  42. package/dist/effect/generated/whats-app.js +633 -0
  43. package/dist/effect/generated-metadata.d.ts +245 -0
  44. package/dist/effect/generated-metadata.js +221 -48
  45. package/dist/effect/index.d.ts +4 -0
  46. package/dist/effect/index.js +6 -2
  47. package/dist/effect/mailboxes.d.ts +298 -298
  48. package/dist/effect/mailboxes.js +3 -3
  49. package/dist/effect/media.d.ts +4 -4
  50. package/dist/effect/media.js +2 -2
  51. package/dist/effect/messages.d.ts +17 -17
  52. package/dist/effect/messages.js +4 -4
  53. package/dist/effect/namespaces.d.ts +5 -5
  54. package/dist/effect/namespaces.js +1 -1
  55. package/dist/effect/newsletter-issues.d.ts +8 -8
  56. package/dist/effect/newsletter-issues.js +2 -2
  57. package/dist/effect/newsletters.d.ts +3 -3
  58. package/dist/effect/newsletters.js +1 -1
  59. package/dist/effect/organizations.d.ts +10 -10
  60. package/dist/effect/organizations.js +1 -1
  61. package/dist/effect/runtime.d.ts +2 -0
  62. package/dist/effect/runtime.js +2 -1
  63. package/dist/effect/scheduled-messages.d.ts +839 -839
  64. package/dist/effect/scheduled-messages.js +1 -1
  65. package/dist/effect/template-registrations.d.ts +12 -0
  66. package/dist/effect/template-registrations.js +16 -0
  67. package/dist/effect/templates.d.ts +66 -66
  68. package/dist/effect/templates.js +13 -13
  69. package/dist/effect/topic-forms.d.ts +4 -4
  70. package/dist/effect/topic-forms.js +1 -1
  71. package/dist/effect/topics.d.ts +11 -11
  72. package/dist/effect/topics.js +2 -2
  73. package/dist/effect/webhooks.d.ts +18 -18
  74. package/dist/effect/webhooks.js +3 -3
  75. package/dist/effect/whatsapp-flows.d.ts +34 -0
  76. package/dist/effect/whatsapp-flows.js +30 -0
  77. package/dist/effect/whatsapp-setup-links.d.ts +66 -0
  78. package/dist/effect/whatsapp-setup-links.js +18 -0
  79. package/dist/effect/whatsapp.d.ts +51 -0
  80. package/dist/effect/whatsapp.js +34 -0
  81. package/dist/index.js +2 -2
  82. package/dist/package.js +1 -1
  83. package/dist/promises/client.d.ts +9 -1
  84. package/dist/promises/client.js +11 -3
  85. package/dist/promises/errors.gen.d.ts +38 -2
  86. package/dist/promises/errors.gen.js +160 -3
  87. package/dist/promises/index.js +2 -2
  88. package/dist/promises/types.gen.d.ts +1 -1
  89. package/dist/service-map.d.ts +917 -736
  90. package/dist/service-map.js +288 -235
  91. package/package.json +19 -3
@@ -72,68 +72,68 @@ var email_exports = /* @__PURE__ */ __exportAll({
72
72
  });
73
73
  const make = /* @__PURE__ */ forGroup(EmailGroup);
74
74
  const send = sendEmail;
75
+ const getOnboardingReview = /* @__PURE__ */ make("emailGetOnboardingReview");
76
+ const reapplyOnboardingReview = /* @__PURE__ */ make("emailReapplyOnboardingReview");
77
+ const respondToOnboardingInformationRequest = /* @__PURE__ */ make("emailRespondToOnboardingInformationRequest");
75
78
  const getTrackingDefaults = /* @__PURE__ */ make("emailGetTrackingDefaults");
76
79
  const updateTrackingDefaults = /* @__PURE__ */ make("emailUpdateTrackingDefaults");
77
80
  const getRecipientTrackingPreference = /* @__PURE__ */ make("emailGetRecipientTrackingPreference");
78
81
  const updateRecipientTrackingPreference = /* @__PURE__ */ make("emailUpdateRecipientTrackingPreference");
79
- const listDomains = /* @__PURE__ */ make("emailListDomains");
80
82
  const addDomain = /* @__PURE__ */ make("emailAddDomain");
81
- const rotateDomainDkim = /* @__PURE__ */ make("emailRotateDomainDkim");
83
+ const listDomains = /* @__PURE__ */ make("emailListDomains");
82
84
  const getDomainVerification = /* @__PURE__ */ make("emailGetDomainVerification");
85
+ const rotateDomainDkim = /* @__PURE__ */ make("emailRotateDomainDkim");
83
86
  const advanceDomainVerification = /* @__PURE__ */ make("emailAdvanceDomainVerification");
84
87
  const getDomainById = /* @__PURE__ */ make("emailGetDomainById");
85
88
  const removeDomain = /* @__PURE__ */ make("emailRemoveDomain");
86
- const setDefaultDomain = /* @__PURE__ */ make("emailSetDefaultDomain");
87
- const updateDomainConfig = /* @__PURE__ */ make("emailUpdateDomainConfig");
88
89
  const detectRegistrar = /* @__PURE__ */ make("emailDetectRegistrar");
89
90
  const getDomainConnect = /* @__PURE__ */ make("emailGetDomainConnect");
90
91
  const buildDomainConnectApplyUrl = /* @__PURE__ */ make("emailBuildDomainConnectApplyUrl");
91
92
  const completeDomainConnect = /* @__PURE__ */ make("emailCompleteDomainConnect");
92
93
  const enableReceiving = /* @__PURE__ */ make("emailEnableReceiving");
93
94
  const getReceivingStatus = /* @__PURE__ */ make("emailGetReceivingStatus");
95
+ const setDefaultDomain = /* @__PURE__ */ make("emailSetDefaultDomain");
96
+ const updateDomainConfig = /* @__PURE__ */ make("emailUpdateDomainConfig");
94
97
  const enableCustomTracking = /* @__PURE__ */ make("emailEnableCustomTracking");
95
98
  const getCustomTracking = /* @__PURE__ */ make("emailGetCustomTracking");
99
+ const disableCustomTracking = /* @__PURE__ */ make("emailDisableCustomTracking");
96
100
  const recheckCustomTracking = /* @__PURE__ */ make("emailRecheckCustomTracking");
97
101
  const getCustomTrackingDomainConnect = /* @__PURE__ */ make("emailGetCustomTrackingDomainConnect");
98
102
  const buildCustomTrackingDomainConnectApplyUrl = /* @__PURE__ */ make("emailBuildCustomTrackingDomainConnectApplyUrl");
99
103
  const completeCustomTrackingDomainConnect = /* @__PURE__ */ make("emailCompleteCustomTrackingDomainConnect");
100
- const disableCustomTracking = /* @__PURE__ */ make("emailDisableCustomTracking");
101
- const getDomainWarming = /* @__PURE__ */ make("emailGetDomainWarming");
102
- const createDomainWarmingPlan = /* @__PURE__ */ make("emailCreateDomainWarmingPlan");
103
- const updateDomainWarmingPolicy = /* @__PURE__ */ make("emailUpdateDomainWarmingPolicy");
104
- const cancelDomainWarmingBatch = /* @__PURE__ */ make("emailCancelDomainWarmingBatch");
105
- const pauseDomainWarming = /* @__PURE__ */ make("emailPauseDomainWarming");
106
- const resumeDomainWarming = /* @__PURE__ */ make("emailResumeDomainWarming");
107
- const completeDomainWarming = /* @__PURE__ */ make("emailCompleteDomainWarming");
108
- const getOnboardingReview = /* @__PURE__ */ make("emailGetOnboardingReview");
109
- const reapplyOnboardingReview = /* @__PURE__ */ make("emailReapplyOnboardingReview");
110
- const respondToOnboardingInformationRequest = /* @__PURE__ */ make("emailRespondToOnboardingInformationRequest");
111
- const listSenders = /* @__PURE__ */ make("emailListSenders");
112
- const getSender = /* @__PURE__ */ make("emailGetSender");
113
104
  const addSender = addEmailSender;
105
+ const listSenders = /* @__PURE__ */ make("emailListSenders");
114
106
  const checkSenderVerification = /* @__PURE__ */ make("emailCheckSenderVerification");
107
+ const getSender = /* @__PURE__ */ make("emailGetSender");
115
108
  const removeSender = /* @__PURE__ */ make("emailRemoveSender");
116
109
  const setDefaultSender = /* @__PURE__ */ make("emailSetDefaultSender");
117
110
  const getStats = /* @__PURE__ */ make("emailGetStats");
118
111
  const enableCatchAll = /* @__PURE__ */ make("emailEnableCatchAll");
119
112
  const disableCatchAll = /* @__PURE__ */ make("emailDisableCatchAll");
120
- const getCatchAllConfig = /* @__PURE__ */ make("emailGetCatchAllConfig");
121
113
  const updateCatchAllConfig = /* @__PURE__ */ make("emailUpdateCatchAllConfig");
114
+ const getCatchAllConfig = /* @__PURE__ */ make("emailGetCatchAllConfig");
122
115
  const getCatchAllStats = /* @__PURE__ */ make("emailGetCatchAllStats");
123
116
  const listSuppressions = /* @__PURE__ */ make("emailListSuppressions");
124
117
  const countSuppressions = /* @__PURE__ */ make("emailCountSuppressions");
125
118
  const removeSuppression = /* @__PURE__ */ make("emailRemoveSuppression");
126
- const listBlocks = /* @__PURE__ */ make("emailListBlocks");
127
119
  const addBlock = /* @__PURE__ */ make("emailAddBlock");
120
+ const listBlocks = /* @__PURE__ */ make("emailListBlocks");
128
121
  const removeBlock = /* @__PURE__ */ make("emailRemoveBlock");
129
122
  const updateBlock = /* @__PURE__ */ make("emailUpdateBlock");
130
123
  const getBlockLogs = /* @__PURE__ */ make("emailGetBlockLogs");
131
124
  const checkBlocked = /* @__PURE__ */ make("emailCheckBlocked");
132
- const listForwardingRules = /* @__PURE__ */ make("emailListForwardingRules");
133
125
  const createForwardingRule = /* @__PURE__ */ make("emailCreateForwardingRule");
134
- const deleteForwardingRule = /* @__PURE__ */ make("emailDeleteForwardingRule");
126
+ const listForwardingRules = /* @__PURE__ */ make("emailListForwardingRules");
135
127
  const updateForwardingRule = /* @__PURE__ */ make("emailUpdateForwardingRule");
128
+ const deleteForwardingRule = /* @__PURE__ */ make("emailDeleteForwardingRule");
136
129
  const getForwardingLog = /* @__PURE__ */ make("emailGetForwardingLog");
130
+ const getDomainWarming = /* @__PURE__ */ make("emailGetDomainWarming");
131
+ const createDomainWarmingPlan = /* @__PURE__ */ make("emailCreateDomainWarmingPlan");
132
+ const updateDomainWarmingPolicy = /* @__PURE__ */ make("emailUpdateDomainWarmingPolicy");
133
+ const cancelDomainWarmingBatch = /* @__PURE__ */ make("emailCancelDomainWarmingBatch");
134
+ const pauseDomainWarming = /* @__PURE__ */ make("emailPauseDomainWarming");
135
+ const resumeDomainWarming = /* @__PURE__ */ make("emailResumeDomainWarming");
136
+ const completeDomainWarming = /* @__PURE__ */ make("emailCompleteDomainWarming");
137
137
  export { TrackingRecipientEmail, addBlock, addDomain, addSender, advanceDomainVerification, buildCustomTrackingDomainConnectApplyUrl, buildDomainConnectApplyUrl, cancelDomainWarmingBatch, checkBlocked, checkSenderVerification, completeCustomTrackingDomainConnect, completeDomainConnect, completeDomainWarming, countSuppressions, createDomainWarmingPlan, createForwardingRule, deleteForwardingRule, detectRegistrar, disableCatchAll, disableCustomTracking, email_exports, enableCatchAll, enableCustomTracking, enableReceiving, getBlockLogs, getCatchAllConfig, getCatchAllStats, getCustomTracking, getCustomTrackingDomainConnect, getDomainById, getDomainConnect, getDomainVerification, getDomainWarming, getForwardingLog, getOnboardingReview, getReceivingStatus, getRecipientTrackingPreference, getSender, getStats, getTrackingDefaults, listBlocks, listDomains, listForwardingRules, listSenders, listSuppressions, pauseDomainWarming, reapplyOnboardingReview, recheckCustomTracking, removeBlock, removeDomain, removeSender, removeSuppression, respondToOnboardingInformationRequest, resumeDomainWarming, rotateDomainDkim, send, setDefaultDomain, setDefaultSender, updateBlock, updateCatchAllConfig, updateDomainConfig, updateDomainWarmingPolicy, updateForwardingRule, updateRecipientTrackingPreference, updateTrackingDefaults };
138
138
 
139
139
  //# sourceMappingURL=email.js.map
@@ -1,2 +1,2 @@
1
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError, TemplateSourceError, TemplateInUseError, DeliveryUnavailableError, } from "./generated/shared";
1
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, WhatsAppChannelError, WhatsAppSetupLinkUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError, TemplateSourceError, TemplateInUseError, DeliveryUnavailableError, } from "./generated/shared";
2
2
  export { MediaUploadError } from "../inline-attachments";
@@ -1,3 +1,3 @@
1
1
  import { MediaUploadError } from "../inline-attachments.js";
2
- import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError } from "./generated/shared.js";
3
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError };
2
+ import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError } from "./generated/shared.js";
3
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError };
@@ -105,18 +105,18 @@ export declare const install: (input: {
105
105
  } | null | undefined;
106
106
  readonly webhookUrl?: string | null | undefined;
107
107
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"extensionInstallationsInstall">;
108
- export declare const upgrade: (input: {
109
- readonly id: string;
110
- readonly version?: string | null | undefined;
111
- readonly acceptPermissions?: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[] | null | undefined;
112
- readonly dryRun?: boolean | null | undefined;
113
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"extensionInstallationsUpgrade">;
114
108
  export declare const get: (input: {
115
109
  readonly id: string;
116
110
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"extensionInstallationsGet">;
117
111
  export declare const uninstall: (input: {
118
112
  readonly id: string;
119
113
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"extensionInstallationsUninstall">;
114
+ export declare const upgrade: (input: {
115
+ readonly id: string;
116
+ readonly version?: string | null | undefined;
117
+ readonly acceptPermissions?: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[] | null | undefined;
118
+ readonly dryRun?: boolean | null | undefined;
119
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"extensionInstallationsUpgrade">;
120
120
  export declare const disable: (input: {
121
121
  readonly id: string;
122
122
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"extensionInstallationsDisable">;
@@ -16,9 +16,9 @@ var extension_installations_exports = /* @__PURE__ */ __exportAll({
16
16
  const make = /* @__PURE__ */ forGroup(ExtensionInstallationsGroup);
17
17
  const list = /* @__PURE__ */ make("extensionInstallationsList");
18
18
  const install = /* @__PURE__ */ make("extensionInstallationsInstall");
19
- const upgrade = /* @__PURE__ */ make("extensionInstallationsUpgrade");
20
19
  const get = /* @__PURE__ */ make("extensionInstallationsGet");
21
20
  const uninstall = /* @__PURE__ */ make("extensionInstallationsUninstall");
21
+ const upgrade = /* @__PURE__ */ make("extensionInstallationsUpgrade");
22
22
  const disable = /* @__PURE__ */ make("extensionInstallationsDisable");
23
23
  const enable = /* @__PURE__ */ make("extensionInstallationsEnable");
24
24
  const listRuns = /* @__PURE__ */ make("extensionInstallationsListRuns");
@@ -28,10 +28,14 @@ import { OrganizationsGroup } from "./organizations";
28
28
  import { PoliciesGroup } from "./policies";
29
29
  import { ScheduledMessagesGroup } from "./scheduled-messages";
30
30
  import { SubscriptionsGroup } from "./subscriptions";
31
+ import { TemplateRegistrationsGroup } from "./template-registrations";
31
32
  import { TemplatesGroup } from "./templates";
32
33
  import { TopicFormsGroup } from "./topic-forms";
33
34
  import { TopicsGroup } from "./topics";
34
35
  import { WebhooksGroup } from "./webhooks";
36
+ import { WhatsAppGroup } from "./whats-app";
37
+ import { WhatsAppFlowsGroup } from "./whats-app-flows";
38
+ import { WhatsAppSetupLinksGroup } from "./whats-app-setup-links";
35
39
  import { WhoamiGroup } from "./whoami";
36
40
  export * from "./shared";
37
41
  export * from "./agents";
@@ -64,10 +68,14 @@ export * from "./organizations";
64
68
  export * from "./policies";
65
69
  export * from "./subscriptions";
66
70
  export * from "./templates";
71
+ export * from "./template-registrations";
67
72
  export * from "./topics";
68
73
  export * from "./topic-forms";
69
74
  export * from "./webhooks";
75
+ export * from "./whats-app";
76
+ export * from "./whats-app-flows";
77
+ export * from "./whats-app-setup-links";
70
78
  export * from "./whoami";
71
- declare const SamvaApi_base: HttpApi.HttpApi<"SamvaApi", typeof AgentsGroup | typeof AnalyticsGroup | typeof APIKeysGroup | typeof AttachmentsGroup | typeof BrandsGroup | typeof CampaignsGroup | typeof ContactEventsGroup | typeof ContactGroupsGroup | typeof ContactsGroup | typeof ConversationsGroup | typeof CustomFieldsGroup | typeof EmailGroup | typeof EventsGroup | typeof ExtensionInstallationsGroup | typeof ExtensionsGroup | typeof FeedbackGroup | typeof JourneysGroup | typeof MailboxesGroup | typeof MediaGroup | typeof MessagesGroup | typeof NamespacesGroup | typeof NewsletterDomainsGroup | typeof NewsletterIssuesGroup | typeof NewslettersGroup | typeof OperationsGroup | typeof OrganizationsGroup | typeof PoliciesGroup | typeof ScheduledMessagesGroup | typeof SubscriptionsGroup | typeof TemplatesGroup | typeof TopicFormsGroup | typeof TopicsGroup | typeof WebhooksGroup | typeof WhoamiGroup>;
79
+ declare const SamvaApi_base: HttpApi.HttpApi<"SamvaApi", typeof AgentsGroup | typeof AnalyticsGroup | typeof APIKeysGroup | typeof AttachmentsGroup | typeof BrandsGroup | typeof CampaignsGroup | typeof ContactEventsGroup | typeof ContactGroupsGroup | typeof ContactsGroup | typeof ConversationsGroup | typeof CustomFieldsGroup | typeof EmailGroup | typeof EventsGroup | typeof ExtensionInstallationsGroup | typeof ExtensionsGroup | typeof FeedbackGroup | typeof JourneysGroup | typeof MailboxesGroup | typeof MediaGroup | typeof MessagesGroup | typeof NamespacesGroup | typeof NewsletterDomainsGroup | typeof NewsletterIssuesGroup | typeof NewslettersGroup | typeof OperationsGroup | typeof OrganizationsGroup | typeof PoliciesGroup | typeof ScheduledMessagesGroup | typeof SubscriptionsGroup | typeof TemplateRegistrationsGroup | typeof TemplatesGroup | typeof TopicFormsGroup | typeof TopicsGroup | typeof WebhooksGroup | typeof WhatsAppGroup | typeof WhatsAppFlowsGroup | typeof WhatsAppSetupLinksGroup | typeof WhoamiGroup>;
72
80
  export declare class SamvaApi extends SamvaApi_base {
73
81
  }
@@ -1,11 +1,9 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyName, JourneyNodeId, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
4
+ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
5
5
  export type JourneyStatus = "draft" | "active" | "paused" | "archived";
6
6
  export declare const JourneyStatus: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
7
- export type JourneyId = string & EffectBrand.Brand<"JourneyId">;
8
- export declare const JourneyId: Schema.brand<Schema.String, "JourneyId">;
9
7
  export type JourneyRunStatus = "active" | "paused" | "exited" | "failed";
10
8
  export declare const JourneyRunStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
11
9
  export type JourneyRunId = string & EffectBrand.Brand<"JourneyRunId">;
@@ -1,4 +1,4 @@
1
- import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyName, JourneyNodeId, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
1
+ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  // src/effect/generated/journeys.ts
@@ -8,10 +8,6 @@ const JourneyStatus = /* @__PURE__ */ (() => Schema.Union([
8
8
  Schema.Literal("paused"),
9
9
  Schema.Literal("archived")
10
10
  ]).annotate({ identifier: "JourneyStatus" }))();
11
- const JourneyId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^jrny_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
12
- expected: "a string matching the RegExp ^jrny_[0-9a-hjkmnp-tv-z]{16,24}$",
13
- identifier: "JourneyId"
14
- })).pipe(Schema.brand("JourneyId")))();
15
11
  const JourneyRunStatus = /* @__PURE__ */ (() => Schema.Union([
16
12
  Schema.Literal("active"),
17
13
  Schema.Literal("paused"),
@@ -490,6 +486,6 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
490
486
  JourneysGetVersion504.pipe(HttpApiSchema.status(504))
491
487
  ]
492
488
  }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.getVersion").annotate(OpenApi.Summary, "Get a published journey version").annotate(OpenApi.Description, "Returns the immutable definition of one published version.")).annotate(OpenApi.Description, "Event-triggered, per-contact email flows defined as versioned node graphs") {};
493
- export { DeleteJourneyResponse, Journey, JourneyId, JourneyListItem, JourneyNodeStats, JourneyPage, JourneyRun, JourneyRunCounts, JourneyRunDetail, JourneyRunExitReason, JourneyRunId, JourneyRunPage, JourneyRunStatus, JourneyRunStep, JourneyRunStepOutcome, JourneyRunTrigger, JourneyStats, JourneyStatus, JourneyVersion, JourneysArchive200, JourneysArchive400, JourneysArchive401, JourneysArchive403, JourneysArchive404, JourneysArchive409, JourneysArchive422, JourneysArchive500, JourneysArchive504, JourneysArchivePathParams, JourneysCreate201, JourneysCreate400, JourneysCreate401, JourneysCreate402, JourneysCreate403, JourneysCreate404, JourneysCreate409, JourneysCreate422, JourneysCreate500, JourneysCreate502, JourneysCreate504, JourneysCreateRequestJson, JourneysGet200, JourneysGet400, JourneysGet401, JourneysGet403, JourneysGet404, JourneysGet422, JourneysGet500, JourneysGet504, JourneysGetPathParams, JourneysGetRun200, JourneysGetRun400, JourneysGetRun401, JourneysGetRun403, JourneysGetRun404, JourneysGetRun422, JourneysGetRun500, JourneysGetRun504, JourneysGetRunPathParams, JourneysGetVersion200, JourneysGetVersion400, JourneysGetVersion401, JourneysGetVersion403, JourneysGetVersion404, JourneysGetVersion422, JourneysGetVersion500, JourneysGetVersion504, JourneysGetVersionPathParams, JourneysGroup, JourneysList200, JourneysList400, JourneysList401, JourneysList403, JourneysList422, JourneysList500, JourneysList504, JourneysListQuery, JourneysListRuns200, JourneysListRuns400, JourneysListRuns401, JourneysListRuns403, JourneysListRuns404, JourneysListRuns422, JourneysListRuns500, JourneysListRuns504, JourneysListRunsPathParams, JourneysListRunsQuery, JourneysPause200, JourneysPause400, JourneysPause401, JourneysPause403, JourneysPause404, JourneysPause409, JourneysPause422, JourneysPause500, JourneysPause504, JourneysPausePathParams, JourneysPublish200, JourneysPublish400, JourneysPublish401, JourneysPublish402, JourneysPublish403, JourneysPublish404, JourneysPublish409, JourneysPublish422, JourneysPublish500, JourneysPublish502, JourneysPublish504, JourneysPublishPathParams, JourneysPublishRequestJson, JourneysRemove200, JourneysRemove400, JourneysRemove401, JourneysRemove403, JourneysRemove404, JourneysRemove409, JourneysRemove422, JourneysRemove500, JourneysRemove504, JourneysRemovePathParams, JourneysReplaceDraft200, JourneysReplaceDraft400, JourneysReplaceDraft401, JourneysReplaceDraft402, JourneysReplaceDraft403, JourneysReplaceDraft404, JourneysReplaceDraft409, JourneysReplaceDraft422, JourneysReplaceDraft500, JourneysReplaceDraft502, JourneysReplaceDraft504, JourneysReplaceDraftPathParams, JourneysReplaceDraftRequestJson, JourneysResume200, JourneysResume400, JourneysResume401, JourneysResume402, JourneysResume403, JourneysResume404, JourneysResume409, JourneysResume422, JourneysResume500, JourneysResume502, JourneysResume504, JourneysResumePathParams, JourneysStats200, JourneysStats400, JourneysStats401, JourneysStats403, JourneysStats404, JourneysStats422, JourneysStats500, JourneysStats504, JourneysStatsPathParams, JourneysStatsQuery, JourneysUpdate200, JourneysUpdate400, JourneysUpdate401, JourneysUpdate403, JourneysUpdate404, JourneysUpdate422, JourneysUpdate500, JourneysUpdate504, JourneysUpdatePathParams, JourneysUpdateRequestJson };
489
+ export { DeleteJourneyResponse, Journey, JourneyListItem, JourneyNodeStats, JourneyPage, JourneyRun, JourneyRunCounts, JourneyRunDetail, JourneyRunExitReason, JourneyRunId, JourneyRunPage, JourneyRunStatus, JourneyRunStep, JourneyRunStepOutcome, JourneyRunTrigger, JourneyStats, JourneyStatus, JourneyVersion, JourneysArchive200, JourneysArchive400, JourneysArchive401, JourneysArchive403, JourneysArchive404, JourneysArchive409, JourneysArchive422, JourneysArchive500, JourneysArchive504, JourneysArchivePathParams, JourneysCreate201, JourneysCreate400, JourneysCreate401, JourneysCreate402, JourneysCreate403, JourneysCreate404, JourneysCreate409, JourneysCreate422, JourneysCreate500, JourneysCreate502, JourneysCreate504, JourneysCreateRequestJson, JourneysGet200, JourneysGet400, JourneysGet401, JourneysGet403, JourneysGet404, JourneysGet422, JourneysGet500, JourneysGet504, JourneysGetPathParams, JourneysGetRun200, JourneysGetRun400, JourneysGetRun401, JourneysGetRun403, JourneysGetRun404, JourneysGetRun422, JourneysGetRun500, JourneysGetRun504, JourneysGetRunPathParams, JourneysGetVersion200, JourneysGetVersion400, JourneysGetVersion401, JourneysGetVersion403, JourneysGetVersion404, JourneysGetVersion422, JourneysGetVersion500, JourneysGetVersion504, JourneysGetVersionPathParams, JourneysGroup, JourneysList200, JourneysList400, JourneysList401, JourneysList403, JourneysList422, JourneysList500, JourneysList504, JourneysListQuery, JourneysListRuns200, JourneysListRuns400, JourneysListRuns401, JourneysListRuns403, JourneysListRuns404, JourneysListRuns422, JourneysListRuns500, JourneysListRuns504, JourneysListRunsPathParams, JourneysListRunsQuery, JourneysPause200, JourneysPause400, JourneysPause401, JourneysPause403, JourneysPause404, JourneysPause409, JourneysPause422, JourneysPause500, JourneysPause504, JourneysPausePathParams, JourneysPublish200, JourneysPublish400, JourneysPublish401, JourneysPublish402, JourneysPublish403, JourneysPublish404, JourneysPublish409, JourneysPublish422, JourneysPublish500, JourneysPublish502, JourneysPublish504, JourneysPublishPathParams, JourneysPublishRequestJson, JourneysRemove200, JourneysRemove400, JourneysRemove401, JourneysRemove403, JourneysRemove404, JourneysRemove409, JourneysRemove422, JourneysRemove500, JourneysRemove504, JourneysRemovePathParams, JourneysReplaceDraft200, JourneysReplaceDraft400, JourneysReplaceDraft401, JourneysReplaceDraft402, JourneysReplaceDraft403, JourneysReplaceDraft404, JourneysReplaceDraft409, JourneysReplaceDraft422, JourneysReplaceDraft500, JourneysReplaceDraft502, JourneysReplaceDraft504, JourneysReplaceDraftPathParams, JourneysReplaceDraftRequestJson, JourneysResume200, JourneysResume400, JourneysResume401, JourneysResume402, JourneysResume403, JourneysResume404, JourneysResume409, JourneysResume422, JourneysResume500, JourneysResume502, JourneysResume504, JourneysResumePathParams, JourneysStats200, JourneysStats400, JourneysStats401, JourneysStats403, JourneysStats404, JourneysStats422, JourneysStats500, JourneysStats504, JourneysStatsPathParams, JourneysStatsQuery, JourneysUpdate200, JourneysUpdate400, JourneysUpdate401, JourneysUpdate403, JourneysUpdate404, JourneysUpdate422, JourneysUpdate500, JourneysUpdate504, JourneysUpdatePathParams, JourneysUpdateRequestJson };
494
490
 
495
491
  //# sourceMappingURL=journeys.js.map
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeyId, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ContactId, ConversationId, DeliveryUnavailableError, EmailBccRecipients, EmailCcRecipients, EmailContent, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, MediaId, MessageId, MessageMetadata, MessagePage, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SmsSendMessagePayload, UnauthorizedError, UserId, ValidationError, WhatsAppButtonsMessage, WhatsAppCtaUrlMessage, WhatsAppFlowId, WhatsAppListMessage, WhatsAppSendMessagePayload, WhatsAppTextHeader } from "./shared";
4
+ import { ApiKeyId, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ContactId, ConversationId, DeliveryUnavailableError, EmailBccRecipients, EmailCcRecipients, EmailContent, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, MediaId, MessageDeliveryId, MessageId, MessageMetadata, MessagePage, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SmsSendMessagePayload, UnauthorizedError, UserId, ValidationError, WhatsAppButtonsMessage, WhatsAppCtaUrlMessage, WhatsAppFlowId, WhatsAppFlowVersionId, WhatsAppListMessage, WhatsAppSendMessagePayload, WhatsAppTextHeader } from "./shared";
5
5
  export type MessageSender = {
6
6
  readonly address: string;
7
7
  readonly name: string | null;
@@ -28,8 +28,6 @@ export declare const SmsMessageContent: Schema.Struct<{
28
28
  readonly unicode: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
29
29
  readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
30
30
  }>;
31
- export type WhatsAppFlowVersionId = string & EffectBrand.Brand<"WhatsAppFlowVersionId">;
32
- export declare const WhatsAppFlowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
33
31
  export type WhatsAppStoredLocation = {
34
32
  readonly latitude: number;
35
33
  readonly longitude: number;
@@ -154,8 +152,6 @@ export declare const WhatsAppStructuredContent: Schema.Struct<{
154
152
  readonly type: Schema.String;
155
153
  readonly data: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
156
154
  }>;
157
- export type MessageDeliveryId = string & EffectBrand.Brand<"MessageDeliveryId">;
158
- export declare const MessageDeliveryId: Schema.brand<Schema.String, "MessageDeliveryId">;
159
155
  export type MessageDeliveryError = {
160
156
  readonly code: string | null;
161
157
  readonly message: string | null;
@@ -1,4 +1,4 @@
1
- import { ApiKeyId, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ContactId, ConversationId, DeliveryUnavailableError, EmailBccRecipients, EmailCcRecipients, EmailContent, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, MediaId, MessageId, MessageMetadata, MessagePage, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SmsSendMessagePayload, UnauthorizedError, UserId, ValidationError, WhatsAppButtonsMessage, WhatsAppCtaUrlMessage, WhatsAppFlowId, WhatsAppListMessage, WhatsAppSendMessagePayload, WhatsAppTextHeader } from "./shared.js";
1
+ import { ApiKeyId, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ContactId, ConversationId, DeliveryUnavailableError, EmailBccRecipients, EmailCcRecipients, EmailContent, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, MediaId, MessageDeliveryId, MessageId, MessageMetadata, MessagePage, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SmsSendMessagePayload, UnauthorizedError, UserId, ValidationError, WhatsAppButtonsMessage, WhatsAppCtaUrlMessage, WhatsAppFlowId, WhatsAppFlowVersionId, WhatsAppListMessage, WhatsAppSendMessagePayload, WhatsAppTextHeader } 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/messages.ts
@@ -20,10 +20,6 @@ const SmsMessageContent = /* @__PURE__ */ (() => Schema.Struct({
20
20
  unicode: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
21
21
  parts: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null]))
22
22
  }).annotate({ identifier: "SmsMessageContent" }))();
23
- const WhatsAppFlowVersionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^wafver_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
24
- expected: "a string matching the RegExp ^wafver_[0-9a-hjkmnp-tv-z]{16,24}$",
25
- identifier: "WhatsAppFlowVersionId"
26
- })).pipe(Schema.brand("WhatsAppFlowVersionId")))();
27
23
  const WhatsAppStoredLocation = /* @__PURE__ */ (() => Schema.Struct({
28
24
  latitude: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
29
25
  longitude: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
@@ -88,10 +84,6 @@ const WhatsAppStructuredContent = /* @__PURE__ */ (() => Schema.Struct({
88
84
  type: Schema.String,
89
85
  data: Schema.Record(Schema.String, JsonValue)
90
86
  }).annotate({ identifier: "WhatsAppStructuredContent" }))();
91
- const MessageDeliveryId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^mdel_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
92
- expected: "a string matching the RegExp ^mdel_[0-9a-hjkmnp-tv-z]{16,24}$",
93
- identifier: "MessageDeliveryId"
94
- })).pipe(Schema.brand("MessageDeliveryId")))();
95
87
  const MessageDeliveryError = /* @__PURE__ */ (() => Schema.Struct({
96
88
  code: Schema.Union([Schema.String, Schema.Null]),
97
89
  message: Schema.Union([Schema.String, Schema.Null]),
@@ -909,6 +901,6 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
909
901
  MessagesValidateEmail504.pipe(HttpApiSchema.status(504))
910
902
  ]
911
903
  }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.validateEmail").annotate(OpenApi.Summary, "Validate an email message").annotate(OpenApi.Description, "Resolves recipients, sender, and inline or published-template content without sending anything, creating contacts or messages, or counting toward your quota.")).annotate(OpenApi.Description, "Send messages and read their delivery state and timeline.") {};
912
- export { DeliveryErrorDetails, EmailAddress, EstimatedProviderCost, Message, MessageAddress, MessageContent, MessageDelivery, MessageDeliveryError, MessageDeliveryId, MessageDeliveryList, MessageEventId, MessageEventPage, MessageReceipt, MessageSender, MessageSubmission, MessagesGet200, MessagesGet400, MessagesGet401, MessagesGet403, MessagesGet404, MessagesGet422, MessagesGet500, MessagesGet504, MessagesGetContent200, MessagesGetContent400, MessagesGetContent401, MessagesGetContent403, MessagesGetContent404, MessagesGetContent422, MessagesGetContent500, MessagesGetContent504, MessagesGetContentPathParams, MessagesGetEmail200, MessagesGetEmail400, MessagesGetEmail401, MessagesGetEmail403, MessagesGetEmail404, MessagesGetEmail422, MessagesGetEmail500, MessagesGetEmail504, MessagesGetEmailPathParams, MessagesGetEmailQuery, MessagesGetEvents200, MessagesGetEvents400, MessagesGetEvents401, MessagesGetEvents403, MessagesGetEvents404, MessagesGetEvents422, MessagesGetEvents500, MessagesGetEvents504, MessagesGetEventsPathParams, MessagesGetEventsQuery, MessagesGetPathParams, MessagesGetStatus200, MessagesGetStatus400, MessagesGetStatus401, MessagesGetStatus403, MessagesGetStatus404, MessagesGetStatus422, MessagesGetStatus500, MessagesGetStatus504, MessagesGetStatusPathParams, MessagesGroup, MessagesList200, MessagesList400, MessagesList401, MessagesList403, MessagesList422, MessagesList500, MessagesList504, MessagesListDeliveries200, MessagesListDeliveries400, MessagesListDeliveries401, MessagesListDeliveries403, MessagesListDeliveries404, MessagesListDeliveries422, MessagesListDeliveries500, MessagesListDeliveries504, MessagesListDeliveriesPathParams, MessagesListQuery, MessagesRemove200, MessagesRemove400, MessagesRemove401, MessagesRemove403, MessagesRemove404, MessagesRemove422, MessagesRemove500, MessagesRemove502, MessagesRemove504, MessagesRemovePathParams, MessagesSend201, MessagesSend400, MessagesSend401, MessagesSend402, MessagesSend403, MessagesSend404, MessagesSend409, MessagesSend422, MessagesSend429, MessagesSend500, MessagesSend502, MessagesSend503, MessagesSend504, MessagesSendHeaders, MessagesSendRequestJson, MessagesValidateEmail200, MessagesValidateEmail400, MessagesValidateEmail401, MessagesValidateEmail403, MessagesValidateEmail404, MessagesValidateEmail422, MessagesValidateEmail500, MessagesValidateEmail503, MessagesValidateEmail504, MessagesValidateEmailRequestJson, SmsMessageContent, SubmissionClient, SubmissionCredential, ValidateEmailResponse, WhatsAppFlowVersionId, WhatsAppMessageContent, WhatsAppMessageReference, WhatsAppReceivedFlowResponse, WhatsAppReceivedReply, WhatsAppStoredContactCard, WhatsAppStoredFlowMessage, WhatsAppStoredInteractive, WhatsAppStoredLocation, WhatsAppStoredMedia, WhatsAppStoredReaction, WhatsAppStructuredContent };
904
+ export { DeliveryErrorDetails, EmailAddress, EstimatedProviderCost, Message, MessageAddress, MessageContent, MessageDelivery, MessageDeliveryError, MessageDeliveryList, MessageEventId, MessageEventPage, MessageReceipt, MessageSender, MessageSubmission, MessagesGet200, MessagesGet400, MessagesGet401, MessagesGet403, MessagesGet404, MessagesGet422, MessagesGet500, MessagesGet504, MessagesGetContent200, MessagesGetContent400, MessagesGetContent401, MessagesGetContent403, MessagesGetContent404, MessagesGetContent422, MessagesGetContent500, MessagesGetContent504, MessagesGetContentPathParams, MessagesGetEmail200, MessagesGetEmail400, MessagesGetEmail401, MessagesGetEmail403, MessagesGetEmail404, MessagesGetEmail422, MessagesGetEmail500, MessagesGetEmail504, MessagesGetEmailPathParams, MessagesGetEmailQuery, MessagesGetEvents200, MessagesGetEvents400, MessagesGetEvents401, MessagesGetEvents403, MessagesGetEvents404, MessagesGetEvents422, MessagesGetEvents500, MessagesGetEvents504, MessagesGetEventsPathParams, MessagesGetEventsQuery, MessagesGetPathParams, MessagesGetStatus200, MessagesGetStatus400, MessagesGetStatus401, MessagesGetStatus403, MessagesGetStatus404, MessagesGetStatus422, MessagesGetStatus500, MessagesGetStatus504, MessagesGetStatusPathParams, MessagesGroup, MessagesList200, MessagesList400, MessagesList401, MessagesList403, MessagesList422, MessagesList500, MessagesList504, MessagesListDeliveries200, MessagesListDeliveries400, MessagesListDeliveries401, MessagesListDeliveries403, MessagesListDeliveries404, MessagesListDeliveries422, MessagesListDeliveries500, MessagesListDeliveries504, MessagesListDeliveriesPathParams, MessagesListQuery, MessagesRemove200, MessagesRemove400, MessagesRemove401, MessagesRemove403, MessagesRemove404, MessagesRemove422, MessagesRemove500, MessagesRemove502, MessagesRemove504, MessagesRemovePathParams, MessagesSend201, MessagesSend400, MessagesSend401, MessagesSend402, MessagesSend403, MessagesSend404, MessagesSend409, MessagesSend422, MessagesSend429, MessagesSend500, MessagesSend502, MessagesSend503, MessagesSend504, MessagesSendHeaders, MessagesSendRequestJson, MessagesValidateEmail200, MessagesValidateEmail400, MessagesValidateEmail401, MessagesValidateEmail403, MessagesValidateEmail404, MessagesValidateEmail422, MessagesValidateEmail500, MessagesValidateEmail503, MessagesValidateEmail504, MessagesValidateEmailRequestJson, SmsMessageContent, SubmissionClient, SubmissionCredential, ValidateEmailResponse, WhatsAppMessageContent, WhatsAppMessageReference, WhatsAppReceivedFlowResponse, WhatsAppReceivedReply, WhatsAppStoredContactCard, WhatsAppStoredFlowMessage, WhatsAppStoredInteractive, WhatsAppStoredLocation, WhatsAppStoredMedia, WhatsAppStoredReaction, WhatsAppStructuredContent };
913
905
 
914
906
  //# sourceMappingURL=messages.js.map
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiMiddleware, HttpApiSecurity } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, SensitiveString as __SamvaRuntimeSensitiveString } from "../runtime";
4
+ import { AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, NonEmptySensitiveString as __SamvaRuntimeNonEmptySensitiveString, SensitiveString as __SamvaRuntimeSensitiveString } from "../runtime";
5
5
  export type JsonValue = string | number | boolean | null | ReadonlyArray<JsonValue> | {
6
6
  readonly [x: string]: JsonValue;
7
7
  };
@@ -435,6 +435,8 @@ export declare const FeedbackContext: Schema.Struct<{
435
435
  readonly operation: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
436
436
  readonly resourceId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
437
437
  }>;
438
+ export type JourneyId = string & EffectBrand.Brand<"JourneyId">;
439
+ export declare const JourneyId: Schema.brand<Schema.String, "JourneyId">;
438
440
  export type JourneyName = string;
439
441
  export declare const JourneyName: Schema.String;
440
442
  export type JourneyCustomEventName = string;
@@ -831,6 +833,10 @@ export declare const WhatsAppContactCard: Schema.Struct<{
831
833
  }>>>;
832
834
  readonly birthday: Schema.optionalKey<Schema.String>;
833
835
  }>;
836
+ export type WhatsAppFlowVersionId = string & EffectBrand.Brand<"WhatsAppFlowVersionId">;
837
+ export declare const WhatsAppFlowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
838
+ export type MessageDeliveryId = string & EffectBrand.Brand<"MessageDeliveryId">;
839
+ export declare const MessageDeliveryId: Schema.brand<Schema.String, "MessageDeliveryId">;
834
840
  export type IanaTimezone = string;
835
841
  export declare const IanaTimezone: Schema.String;
836
842
  export type NamespaceMetadata = {
@@ -885,6 +891,23 @@ export declare const TemplateFromDefaultInput: Schema.Struct<{
885
891
  readonly email: Schema.String;
886
892
  readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
887
893
  }>;
894
+ declare const CredentialsError_base: Schema.Class<CredentialsError, Schema.Struct<{
895
+ readonly _tag: Schema.tag<"CredentialsError">;
896
+ readonly message: Schema.String;
897
+ readonly retryable: Schema.Boolean;
898
+ }>, import("effect/Cause").YieldableError>;
899
+ export declare class CredentialsError extends CredentialsError_base {
900
+ }
901
+ declare const WhatsAppChannelError_base: Schema.Class<WhatsAppChannelError, Schema.Struct<{
902
+ readonly _tag: Schema.tag<"WhatsAppChannelError">;
903
+ readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">, Schema.Literal<"unsupported">]>;
904
+ readonly message: Schema.String;
905
+ readonly provider: Schema.String;
906
+ readonly providerCode: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
907
+ readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
908
+ }>, import("effect/Cause").YieldableError>;
909
+ export declare class WhatsAppChannelError extends WhatsAppChannelError_base {
910
+ }
888
911
  export type TopicContactByEmail = {
889
912
  readonly email: string;
890
913
  };
@@ -897,6 +920,17 @@ export type TopicContactByPhone = {
897
920
  export declare const TopicContactByPhone: Schema.Struct<{
898
921
  readonly phone: Schema.String;
899
922
  }>;
923
+ export type WhatsAppSetupLinkMetadata = {
924
+ readonly [x: string]: string;
925
+ };
926
+ export declare const WhatsAppSetupLinkMetadata: Schema.$Record<Schema.String, Schema.String>;
927
+ declare const WhatsAppSetupLinkUnavailableError_base: Schema.Class<WhatsAppSetupLinkUnavailableError, Schema.Struct<{
928
+ readonly _tag: Schema.tag<"WhatsAppSetupLinkUnavailableError">;
929
+ readonly reason: Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
930
+ readonly message: Schema.String;
931
+ }>, import("effect/Cause").YieldableError>;
932
+ export declare class WhatsAppSetupLinkUnavailableError extends WhatsAppSetupLinkUnavailableError_base {
933
+ }
900
934
  export type AddTemplateEntryPayload = {
901
935
  readonly entryPath: string;
902
936
  readonly name: string;
@@ -1098,6 +1132,20 @@ export type ReapplyOnboardingReviewInput = {
1098
1132
  export declare const ReapplyOnboardingReviewInput: Schema.Struct<{
1099
1133
  readonly expectedGeneration: Schema.Finite;
1100
1134
  }>;
1135
+ export type RecordWhatsAppFlowVersionPayload = {
1136
+ readonly commitSha: string;
1137
+ readonly expectedWorkspaceRevision: string;
1138
+ };
1139
+ export declare const RecordWhatsAppFlowVersionPayload: Schema.Struct<{
1140
+ readonly commitSha: Schema.String;
1141
+ readonly expectedWorkspaceRevision: Schema.String;
1142
+ }>;
1143
+ export type SetWhatsAppFlowEndpointPayload = {
1144
+ readonly url: string;
1145
+ };
1146
+ export declare const SetWhatsAppFlowEndpointPayload: Schema.Struct<{
1147
+ readonly url: Schema.String;
1148
+ }>;
1101
1149
  export type SuggestTemplateStartersPayload = {
1102
1150
  readonly brief: string;
1103
1151
  };
@@ -1628,6 +1676,26 @@ export declare const WhatsAppTemplateBinding: Schema.Union<readonly [Schema.Stru
1628
1676
  }>, Schema.Struct<{
1629
1677
  readonly customField: Schema.String;
1630
1678
  }>]>;
1679
+ export type RegisterWhatsAppFlowPayload = {
1680
+ readonly businessAccountId?: WhatsAppBusinessAccountId;
1681
+ };
1682
+ export declare const RegisterWhatsAppFlowPayload: Schema.Struct<{
1683
+ readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1684
+ }>;
1685
+ export type RotateWhatsAppFlowEncryptionKeyPayload = {
1686
+ readonly businessAccountId?: WhatsAppBusinessAccountId;
1687
+ };
1688
+ export declare const RotateWhatsAppFlowEncryptionKeyPayload: Schema.Struct<{
1689
+ readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1690
+ }>;
1691
+ export type SubmitTemplateRegistrationPayload = {
1692
+ readonly provider: "whatsapp";
1693
+ readonly businessAccountId?: WhatsAppBusinessAccountId;
1694
+ };
1695
+ export declare const SubmitTemplateRegistrationPayload: Schema.Struct<{
1696
+ readonly provider: Schema.Literal<"whatsapp">;
1697
+ readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1698
+ }>;
1631
1699
  export type ContactEvent = {
1632
1700
  readonly id: string;
1633
1701
  readonly contactId: ContactId;
@@ -2261,6 +2329,16 @@ export declare const AssignNamespaceResourcePayload: Schema.Struct<{
2261
2329
  readonly type: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"whatsappNumber">, Schema.Literal<"smsNumber">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
2262
2330
  readonly resourceId: Schema.String;
2263
2331
  }>;
2332
+ export type CreateWhatsAppFlowPayload = {
2333
+ readonly projectId: TemplateProjectId;
2334
+ readonly handle: string;
2335
+ readonly categories: ReadonlyArray<"SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER">;
2336
+ };
2337
+ export declare const CreateWhatsAppFlowPayload: Schema.Struct<{
2338
+ readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
2339
+ readonly handle: Schema.String;
2340
+ readonly categories: Schema.$Array<Schema.Union<readonly [Schema.Literal<"SIGN_UP">, Schema.Literal<"SIGN_IN">, Schema.Literal<"APPOINTMENT_BOOKING">, Schema.Literal<"LEAD_GENERATION">, Schema.Literal<"CONTACT_US">, Schema.Literal<"CUSTOMER_SUPPORT">, Schema.Literal<"SURVEY">, Schema.Literal<"OTHER">]>>;
2341
+ }>;
2264
2342
  export type Operation = {
2265
2343
  readonly id: OperationId;
2266
2344
  readonly organizationId: string;
@@ -2347,6 +2425,18 @@ export declare const UpdateTemplatePayload: Schema.Struct<{
2347
2425
  readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
2348
2426
  }>;
2349
2427
  }>;
2428
+ export type CreateWhatsAppSetupLinkPayload = {
2429
+ readonly namespaceId: NamespaceId;
2430
+ readonly redirectUrl?: WhatsAppSetupLinkRedirectUrl | null;
2431
+ readonly metadata?: WhatsAppSetupLinkMetadata | null;
2432
+ readonly expiresAt?: string | null;
2433
+ };
2434
+ export declare const CreateWhatsAppSetupLinkPayload: Schema.Struct<{
2435
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
2436
+ readonly redirectUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2437
+ readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
2438
+ readonly expiresAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2439
+ }>;
2350
2440
  export type PolicyRuleMatch = {
2351
2441
  readonly kind?: "send" | "reply" | "toolCall" | "handoff" | null;
2352
2442
  readonly effect?: PolicyEffect | null;
@@ -6725,7 +6815,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
6725
6815
  readonly reentry: Schema.optionalKey<Schema.Boolean>;
6726
6816
  }>;
6727
6817
  }>;
6728
- export { __SamvaRuntimeAbsoluteInstant, __SamvaRuntimeSensitiveString };
6818
+ export { __SamvaRuntimeAbsoluteInstant, __SamvaRuntimeSensitiveString, __SamvaRuntimeNonEmptySensitiveString, };
6729
6819
  export declare const ApiKeySecurity: HttpApiSecurity.ApiKey;
6730
6820
  declare const ApiKeySecurityMiddleware_base: HttpApiMiddleware.ServiceClass<ApiKeySecurityMiddleware, "apiKey security", {
6731
6821
  requires: never;
@@ -1,4 +1,4 @@
1
- import { AbsoluteInstant, SensitiveString } from "../runtime.js";
1
+ import { AbsoluteInstant, NonEmptySensitiveString, SensitiveString } from "../runtime.js";
2
2
  import { HttpApiMiddleware, HttpApiSecurity } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  // src/effect/generated/shared.ts
@@ -408,6 +408,10 @@ const FeedbackContext = /* @__PURE__ */ (() => Schema.Struct({
408
408
  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])),
409
409
  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]))
410
410
  }).annotate({ identifier: "FeedbackContext" }))();
411
+ const JourneyId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^jrny_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
412
+ expected: "a string matching the RegExp ^jrny_[0-9a-hjkmnp-tv-z]{16,24}$",
413
+ identifier: "JourneyId"
414
+ })).pipe(Schema.brand("JourneyId")))();
411
415
  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({
412
416
  expected: "a string matching the RegExp ^\\S[\\s\\S]*\\S$|^\\S$|^$",
413
417
  identifier: "JourneyName"
@@ -712,6 +716,14 @@ const WhatsAppContactCard = /* @__PURE__ */ (() => Schema.Struct({
712
716
  }))),
713
717
  birthday: Schema.optionalKey(Schema.String)
714
718
  }).annotate({ identifier: "WhatsAppContactCard" }))();
719
+ const WhatsAppFlowVersionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^wafver_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
720
+ expected: "a string matching the RegExp ^wafver_[0-9a-hjkmnp-tv-z]{16,24}$",
721
+ identifier: "WhatsAppFlowVersionId"
722
+ })).pipe(Schema.brand("WhatsAppFlowVersionId")))();
723
+ const MessageDeliveryId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^mdel_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
724
+ expected: "a string matching the RegExp ^mdel_[0-9a-hjkmnp-tv-z]{16,24}$",
725
+ identifier: "MessageDeliveryId"
726
+ })).pipe(Schema.brand("MessageDeliveryId")))();
715
727
  const IanaTimezone = /* @__PURE__ */ (() => Schema.String.annotate({ identifier: "IanaTimezone" }))();
716
728
  const NamespaceMetadata = /* @__PURE__ */ (() => Schema.Record(Schema.String, Schema.String).annotate({
717
729
  description: "Your own labels for the namespace, such as the id of your customer it serves. Samva stores them and never reads them.",
@@ -764,8 +776,37 @@ const TemplateFromDefaultInput = /* @__PURE__ */ (() => Schema.Struct({
764
776
  email: Schema.String,
765
777
  name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null]))
766
778
  }).annotate({ identifier: "TemplateFromDefaultInput" }))();
779
+ var CredentialsError = class extends Schema.TaggedError()("CredentialsError", Schema.Struct({
780
+ message: Schema.String,
781
+ retryable: Schema.Boolean
782
+ })) {};
783
+ var WhatsAppChannelError = class extends Schema.TaggedError()("WhatsAppChannelError", Schema.Struct({
784
+ reason: Schema.Union([
785
+ Schema.Literal("transport"),
786
+ Schema.Literal("rejected"),
787
+ Schema.Literal("rate_limited"),
788
+ Schema.Literal("auth"),
789
+ Schema.Literal("unsupported")
790
+ ]),
791
+ message: Schema.String,
792
+ provider: Schema.String,
793
+ providerCode: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
794
+ statusCode: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null]))
795
+ })) {};
767
796
  const TopicContactByEmail = /* @__PURE__ */ (() => Schema.Struct({ email: Schema.String }).annotate({ identifier: "TopicContactByEmail" }))();
768
797
  const TopicContactByPhone = /* @__PURE__ */ (() => Schema.Struct({ phone: Schema.String }).annotate({ identifier: "TopicContactByPhone" }))();
798
+ const WhatsAppSetupLinkMetadata = /* @__PURE__ */ (() => Schema.Record(Schema.String, Schema.String.check(Schema.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" }))).check(Schema.isPropertyNames(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" }))).annotate({
799
+ expected: "an object with property names matching the schema",
800
+ identifier: "WhatsAppSetupLinkMetadata"
801
+ })))();
802
+ var WhatsAppSetupLinkUnavailableError = class extends Schema.TaggedError()("WhatsAppSetupLinkUnavailableError", Schema.Struct({
803
+ reason: Schema.Union([
804
+ Schema.Literal("completed"),
805
+ Schema.Literal("revoked"),
806
+ Schema.Literal("expired")
807
+ ]),
808
+ message: Schema.String
809
+ })) {};
769
810
  const TestWebhookPayload = /* @__PURE__ */ (() => Schema.Struct({ data: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])) }).annotate({ identifier: "TestWebhookPayload" }))();
770
811
  const CreateTemplatePayload = /* @__PURE__ */ (() => Schema.Struct({
771
812
  name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
@@ -1867,6 +1908,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
1867
1908
  in: "header"
1868
1909
  });
1869
1910
  var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
1870
- export { AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, AgentName, AgentReasoning, AgentSetupJob, AgentToolScope, AnalyticsQueryError, 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, 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, IntegrationId, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, 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, 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, SkippedRecipient, 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, WhatsAppContactCard, WhatsAppContactsContent, WhatsAppContent, WhatsAppCtaUrlMessage, WhatsAppDocument, WhatsAppDocumentHeader, WhatsAppDocumentHeaderLink, WhatsAppDocumentHeaderUpload, WhatsAppDocumentLink, WhatsAppDocumentUpload, WhatsAppFlowId, WhatsAppFlowMessage, WhatsAppImage, WhatsAppImageHeader, WhatsAppImageHeaderLink, WhatsAppImageHeaderUpload, WhatsAppImageLink, WhatsAppImageUpload, WhatsAppInteractive, WhatsAppInteractiveContent, WhatsAppInteractiveHeader, WhatsAppJourneySendNode, WhatsAppListMessage, WhatsAppListRow, WhatsAppListSection, WhatsAppLocation, WhatsAppLocationContent, WhatsAppMediaContent, WhatsAppOutboundMedia, WhatsAppReaction, WhatsAppReactionContent, WhatsAppRecipient, WhatsAppRecipients, WhatsAppReplyButton, WhatsAppSendMessagePayload, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkRedirectUrl, 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, SensitiveString as __SamvaRuntimeSensitiveString };
1911
+ export { AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, AgentName, AgentReasoning, AgentSetupJob, AgentToolScope, AnalyticsQueryError, 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, IntegrationId, 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, SkippedRecipient, 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 };
1871
1912
 
1872
1913
  //# sourceMappingURL=shared.js.map