samva 0.44.0 → 0.45.1

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 (93) 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 +1858 -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/analytics.d.ts +6 -0
  29. package/dist/effect/generated/analytics.js +4 -2
  30. package/dist/effect/generated/index.d.ts +9 -1
  31. package/dist/effect/generated/journeys.d.ts +1 -3
  32. package/dist/effect/generated/journeys.js +2 -6
  33. package/dist/effect/generated/messages.d.ts +1 -5
  34. package/dist/effect/generated/messages.js +2 -10
  35. package/dist/effect/generated/shared.d.ts +92 -2
  36. package/dist/effect/generated/shared.js +43 -2
  37. package/dist/effect/generated/template-registrations.d.ts +651 -0
  38. package/dist/effect/generated/template-registrations.js +138 -0
  39. package/dist/effect/generated/whats-app-flows.d.ts +1838 -0
  40. package/dist/effect/generated/whats-app-flows.js +338 -0
  41. package/dist/effect/generated/whats-app-setup-links.d.ts +705 -0
  42. package/dist/effect/generated/whats-app-setup-links.js +150 -0
  43. package/dist/effect/generated/whats-app.d.ts +2089 -0
  44. package/dist/effect/generated/whats-app.js +633 -0
  45. package/dist/effect/generated-metadata.d.ts +245 -0
  46. package/dist/effect/generated-metadata.js +221 -48
  47. package/dist/effect/index.d.ts +4 -0
  48. package/dist/effect/index.js +6 -2
  49. package/dist/effect/mailboxes.d.ts +298 -298
  50. package/dist/effect/mailboxes.js +3 -3
  51. package/dist/effect/media.d.ts +4 -4
  52. package/dist/effect/media.js +2 -2
  53. package/dist/effect/messages.d.ts +17 -17
  54. package/dist/effect/messages.js +4 -4
  55. package/dist/effect/namespaces.d.ts +5 -5
  56. package/dist/effect/namespaces.js +1 -1
  57. package/dist/effect/newsletter-issues.d.ts +8 -8
  58. package/dist/effect/newsletter-issues.js +2 -2
  59. package/dist/effect/newsletters.d.ts +3 -3
  60. package/dist/effect/newsletters.js +1 -1
  61. package/dist/effect/organizations.d.ts +10 -10
  62. package/dist/effect/organizations.js +1 -1
  63. package/dist/effect/runtime.d.ts +2 -0
  64. package/dist/effect/runtime.js +2 -1
  65. package/dist/effect/scheduled-messages.d.ts +839 -839
  66. package/dist/effect/scheduled-messages.js +1 -1
  67. package/dist/effect/template-registrations.d.ts +12 -0
  68. package/dist/effect/template-registrations.js +16 -0
  69. package/dist/effect/templates.d.ts +66 -66
  70. package/dist/effect/templates.js +13 -13
  71. package/dist/effect/topic-forms.d.ts +4 -4
  72. package/dist/effect/topic-forms.js +1 -1
  73. package/dist/effect/topics.d.ts +11 -11
  74. package/dist/effect/topics.js +2 -2
  75. package/dist/effect/webhooks.d.ts +18 -18
  76. package/dist/effect/webhooks.js +3 -3
  77. package/dist/effect/whatsapp-flows.d.ts +34 -0
  78. package/dist/effect/whatsapp-flows.js +30 -0
  79. package/dist/effect/whatsapp-setup-links.d.ts +66 -0
  80. package/dist/effect/whatsapp-setup-links.js +18 -0
  81. package/dist/effect/whatsapp.d.ts +51 -0
  82. package/dist/effect/whatsapp.js +34 -0
  83. package/dist/index.js +2 -2
  84. package/dist/package.js +1 -1
  85. package/dist/promises/client.d.ts +9 -1
  86. package/dist/promises/client.js +11 -3
  87. package/dist/promises/errors.gen.d.ts +38 -2
  88. package/dist/promises/errors.gen.js +160 -3
  89. package/dist/promises/index.js +2 -2
  90. package/dist/promises/types.gen.d.ts +1 -1
  91. package/dist/service-map.d.ts +917 -736
  92. package/dist/service-map.js +288 -235
  93. 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");
@@ -160,10 +160,12 @@ export declare const AnalyticsGetHourlyDistributionQuery: Schema.Struct<{
160
160
  export type AnalyticsGetHourlyDistribution200 = ReadonlyArray<{
161
161
  readonly hour: string;
162
162
  readonly count: number;
163
+ readonly weekdays: ReadonlyArray<number>;
163
164
  }>;
164
165
  export declare const AnalyticsGetHourlyDistribution200: Schema.$Array<Schema.Struct<{
165
166
  readonly hour: Schema.String;
166
167
  readonly count: Schema.Finite;
168
+ readonly weekdays: Schema.$Array<Schema.Finite>;
167
169
  }>>;
168
170
  export type AnalyticsGetHourlyDistribution400 = AnalyticsQueryError | MalformedRequestError;
169
171
  export declare const AnalyticsGetHourlyDistribution400: Schema.Union<readonly [typeof AnalyticsQueryError, typeof MalformedRequestError]>;
@@ -197,6 +199,7 @@ export type AnalyticsGetStats200 = {
197
199
  readonly email: number;
198
200
  readonly whatsapp: number;
199
201
  readonly sms: number;
202
+ readonly emailFailed: number;
200
203
  }>;
201
204
  };
202
205
  export declare const AnalyticsGetStats200: Schema.Struct<{
@@ -205,6 +208,7 @@ export declare const AnalyticsGetStats200: Schema.Struct<{
205
208
  readonly email: Schema.Finite;
206
209
  readonly whatsapp: Schema.Finite;
207
210
  readonly sms: Schema.Finite;
211
+ readonly emailFailed: Schema.Finite;
208
212
  }>>;
209
213
  }>;
210
214
  export type AnalyticsGetStats400 = AnalyticsQueryError | MalformedRequestError;
@@ -495,6 +499,7 @@ declare const AnalyticsGroup_base: HttpApiGroup.HttpApiGroup<"Analytics", HttpAp
495
499
  }>>, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
496
500
  readonly hour: Schema.String;
497
501
  readonly count: Schema.Finite;
502
+ readonly weekdays: Schema.$Array<Schema.Finite>;
498
503
  }>>>, Schema.toCodecJson<Schema.Union<readonly [typeof AnalyticsQueryError, typeof MalformedRequestError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
499
504
  readonly _tag: "ForbiddenError";
500
505
  readonly message: string;
@@ -567,6 +572,7 @@ declare const AnalyticsGroup_base: HttpApiGroup.HttpApiGroup<"Analytics", HttpAp
567
572
  readonly email: Schema.Finite;
568
573
  readonly whatsapp: Schema.Finite;
569
574
  readonly sms: Schema.Finite;
575
+ readonly emailFailed: Schema.Finite;
570
576
  }>>;
571
577
  }>>, Schema.toCodecJson<Schema.Union<readonly [typeof AnalyticsQueryError, typeof MalformedRequestError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
572
578
  readonly _tag: "ForbiddenError";
@@ -91,7 +91,8 @@ const AnalyticsGetHourlyDistributionQuery = /* @__PURE__ */ (() => Schema.Struct
91
91
  }))();
92
92
  const AnalyticsGetHourlyDistribution200 = /* @__PURE__ */ (() => Schema.Array(Schema.Struct({
93
93
  hour: Schema.String,
94
- count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
94
+ count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
95
+ weekdays: Schema.Array(Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))).annotate({ description: "`count` split by organization-local weekday: seven entries, Monday first, summing to `count`." })
95
96
  })))();
96
97
  const AnalyticsGetHourlyDistribution400 = /* @__PURE__ */ (() => Schema.Union([AnalyticsQueryError, MalformedRequestError]))();
97
98
  const AnalyticsGetHourlyDistribution401 = UnauthorizedError;
@@ -118,7 +119,8 @@ const AnalyticsGetStats200 = /* @__PURE__ */ (() => Schema.Struct({ volumeHistor
118
119
  date: Schema.String,
119
120
  email: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
120
121
  whatsapp: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
121
- sms: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
122
+ sms: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
123
+ emailFailed: Schema.Finite.annotate({ description: "Emails in this bucket that bounced or failed. A subset of `email`." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
122
124
  })) }))();
123
125
  const AnalyticsGetStats400 = /* @__PURE__ */ (() => Schema.Union([AnalyticsQueryError, MalformedRequestError]))();
124
126
  const AnalyticsGetStats401 = UnauthorizedError;
@@ -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;