samva 0.43.3 → 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.
- package/AGENTS.md +3 -0
- package/README.md +4 -0
- package/dist/client/sdk.gen.d.ts +308 -2
- package/dist/client/sdk.gen.js +937 -2
- package/dist/client/types.gen.d.ts +2294 -54
- package/dist/effect/agents.d.ts +86 -86
- package/dist/effect/agents.js +2 -2
- package/dist/effect/api-keys.d.ts +36 -36
- package/dist/effect/api-keys.js +2 -2
- package/dist/effect/attachments.d.ts +3 -3
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/campaigns.d.ts +250 -250
- package/dist/effect/campaigns.js +3 -3
- package/dist/effect/categories.d.ts +23 -5
- package/dist/effect/categories.js +11 -20
- package/dist/effect/contact-groups.d.ts +44 -44
- package/dist/effect/contact-groups.js +3 -3
- package/dist/effect/contacts.d.ts +3 -3
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +53 -53
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/email.d.ts +99 -97
- package/dist/effect/email.js +21 -21
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +6 -6
- package/dist/effect/extension-installations.js +1 -1
- package/dist/effect/generated/campaigns.js +2 -2
- package/dist/effect/generated/email.d.ts +7 -0
- package/dist/effect/generated/email.js +8 -9
- package/dist/effect/generated/index.d.ts +9 -1
- package/dist/effect/generated/journeys.d.ts +1 -3
- package/dist/effect/generated/journeys.js +2 -6
- package/dist/effect/generated/mailboxes.d.ts +14 -14
- package/dist/effect/generated/mailboxes.js +2 -0
- package/dist/effect/generated/messages.d.ts +1 -5
- package/dist/effect/generated/messages.js +2 -10
- package/dist/effect/generated/newsletter-issues.js +29 -29
- package/dist/effect/generated/organizations.js +2 -2
- package/dist/effect/generated/scheduled-messages.js +3 -3
- package/dist/effect/generated/shared.d.ts +112 -2
- package/dist/effect/generated/shared.js +66 -25
- package/dist/effect/generated/subscriptions.js +4 -4
- package/dist/effect/generated/template-registrations.d.ts +651 -0
- package/dist/effect/generated/template-registrations.js +138 -0
- package/dist/effect/generated/templates.d.ts +789 -6
- package/dist/effect/generated/templates.js +156 -54
- package/dist/effect/generated/whats-app-flows.d.ts +1838 -0
- package/dist/effect/generated/whats-app-flows.js +338 -0
- package/dist/effect/generated/whats-app-setup-links.d.ts +705 -0
- package/dist/effect/generated/whats-app-setup-links.js +150 -0
- package/dist/effect/generated/whats-app.d.ts +2089 -0
- package/dist/effect/generated/whats-app.js +633 -0
- package/dist/effect/generated-metadata.d.ts +257 -0
- package/dist/effect/generated-metadata.js +223 -48
- package/dist/effect/index.d.ts +4 -0
- package/dist/effect/index.js +6 -2
- package/dist/effect/mailboxes.d.ts +301 -301
- package/dist/effect/mailboxes.js +3 -3
- package/dist/effect/media.d.ts +4 -4
- package/dist/effect/media.js +2 -2
- package/dist/effect/messages.d.ts +17 -17
- package/dist/effect/messages.js +4 -4
- package/dist/effect/namespaces.d.ts +5 -5
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/newsletter-issues.d.ts +8 -8
- package/dist/effect/newsletter-issues.js +2 -2
- package/dist/effect/newsletters.d.ts +3 -3
- package/dist/effect/newsletters.js +1 -1
- package/dist/effect/organizations.d.ts +10 -10
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/runtime.d.ts +2 -0
- package/dist/effect/runtime.js +2 -1
- package/dist/effect/scheduled-messages.d.ts +839 -839
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/template-registrations.d.ts +12 -0
- package/dist/effect/template-registrations.js +16 -0
- package/dist/effect/templates.d.ts +66 -56
- package/dist/effect/templates.js +16 -12
- package/dist/effect/topic-forms.d.ts +4 -4
- package/dist/effect/topic-forms.js +1 -1
- package/dist/effect/topics.d.ts +11 -11
- package/dist/effect/topics.js +2 -2
- package/dist/effect/webhooks.d.ts +18 -18
- package/dist/effect/webhooks.js +3 -3
- package/dist/effect/whatsapp-flows.d.ts +34 -0
- package/dist/effect/whatsapp-flows.js +30 -0
- package/dist/effect/whatsapp-setup-links.d.ts +66 -0
- package/dist/effect/whatsapp-setup-links.js +18 -0
- package/dist/effect/whatsapp.d.ts +51 -0
- package/dist/effect/whatsapp.js +34 -0
- package/dist/index.js +2 -2
- package/dist/mailbox/types.d.ts +2 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +9 -1
- package/dist/promises/client.js +11 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +160 -3
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +923 -734
- package/dist/service-map.js +288 -233
- package/package.json +27 -11
package/dist/effect/email.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
package/dist/effect/errors.d.ts
CHANGED
|
@@ -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";
|
package/dist/effect/errors.js
CHANGED
|
@@ -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");
|
|
@@ -127,7 +127,7 @@ const CampaignEmailContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
127
127
|
publicationId: Schema.optionalKey(TemplatePublicationId),
|
|
128
128
|
inputContractId: Schema.optionalKey(TemplateInputContractId),
|
|
129
129
|
templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
|
|
130
|
-
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^
|
|
130
|
+
templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
|
|
131
131
|
templateData: Schema.optionalKey(TemplateData),
|
|
132
132
|
locale: Schema.optionalKey(RenderLocale),
|
|
133
133
|
timeZone: Schema.optionalKey(RenderTimeZone),
|
|
@@ -149,7 +149,7 @@ const EmailCampaignContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
149
149
|
channel: Schema.Literal("email"),
|
|
150
150
|
email: CampaignEmailContent,
|
|
151
151
|
issue: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
152
|
-
path: Schema.String.
|
|
152
|
+
path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
153
153
|
commit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))
|
|
154
154
|
}), Schema.Null]).annotate({ description: "Render a saved Markdown issue from the audience topic's repository. Its saved title and preheader supply the email content; templateData supplies recipient fallbacks." })),
|
|
155
155
|
from: Schema.optionalKey(CampaignFrom),
|
|
@@ -712,6 +712,7 @@ export type EmailSenderPage = {
|
|
|
712
712
|
readonly verificationStatus: "pending" | "verified" | "failed";
|
|
713
713
|
readonly verifiedAt: string | null;
|
|
714
714
|
readonly verificationToken: string | null;
|
|
715
|
+
readonly sendable: boolean;
|
|
715
716
|
readonly providerLifecycle: "provisioning" | "active" | "deleting" | "failed";
|
|
716
717
|
readonly providerFailureCode: string | null;
|
|
717
718
|
readonly isDefault: boolean;
|
|
@@ -735,6 +736,7 @@ export declare const EmailSenderPage: Schema.Struct<{
|
|
|
735
736
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">]>;
|
|
736
737
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
737
738
|
readonly verificationToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
739
|
+
readonly sendable: Schema.Boolean;
|
|
738
740
|
readonly providerLifecycle: Schema.Union<readonly [Schema.Literal<"provisioning">, Schema.Literal<"active">, Schema.Literal<"deleting">, Schema.Literal<"failed">]>;
|
|
739
741
|
readonly providerFailureCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
740
742
|
readonly isDefault: Schema.Boolean;
|
|
@@ -3706,6 +3708,7 @@ export declare const EmailListSenders200: Schema.Struct<{
|
|
|
3706
3708
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">]>;
|
|
3707
3709
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3708
3710
|
readonly verificationToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3711
|
+
readonly sendable: Schema.Boolean;
|
|
3709
3712
|
readonly providerLifecycle: Schema.Union<readonly [Schema.Literal<"provisioning">, Schema.Literal<"active">, Schema.Literal<"deleting">, Schema.Literal<"failed">]>;
|
|
3710
3713
|
readonly providerFailureCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3711
3714
|
readonly isDefault: Schema.Boolean;
|
|
@@ -3805,6 +3808,7 @@ export type EmailGetSender200 = {
|
|
|
3805
3808
|
readonly verificationStatus: "pending" | "verified" | "failed";
|
|
3806
3809
|
readonly verifiedAt: string | null;
|
|
3807
3810
|
readonly verificationToken: string | null;
|
|
3811
|
+
readonly sendable: boolean;
|
|
3808
3812
|
readonly providerLifecycle: "provisioning" | "active" | "deleting" | "failed";
|
|
3809
3813
|
readonly providerFailureCode: string | null;
|
|
3810
3814
|
readonly isDefault: boolean;
|
|
@@ -3825,6 +3829,7 @@ export declare const EmailGetSender200: Schema.Struct<{
|
|
|
3825
3829
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">]>;
|
|
3826
3830
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3827
3831
|
readonly verificationToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3832
|
+
readonly sendable: Schema.Boolean;
|
|
3828
3833
|
readonly providerLifecycle: Schema.Union<readonly [Schema.Literal<"provisioning">, Schema.Literal<"active">, Schema.Literal<"deleting">, Schema.Literal<"failed">]>;
|
|
3829
3834
|
readonly providerFailureCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3830
3835
|
readonly isDefault: Schema.Boolean;
|
|
@@ -8926,6 +8931,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
8926
8931
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">]>;
|
|
8927
8932
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
8928
8933
|
readonly verificationToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
8934
|
+
readonly sendable: Schema.Boolean;
|
|
8929
8935
|
readonly providerLifecycle: Schema.Union<readonly [Schema.Literal<"provisioning">, Schema.Literal<"active">, Schema.Literal<"deleting">, Schema.Literal<"failed">]>;
|
|
8930
8936
|
readonly providerFailureCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
8931
8937
|
readonly isDefault: Schema.Boolean;
|
|
@@ -9558,6 +9564,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
9558
9564
|
readonly verificationStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"verified">, Schema.Literal<"failed">]>;
|
|
9559
9565
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
9560
9566
|
readonly verificationToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
9567
|
+
readonly sendable: Schema.Boolean;
|
|
9561
9568
|
readonly providerLifecycle: Schema.Union<readonly [Schema.Literal<"provisioning">, Schema.Literal<"active">, Schema.Literal<"deleting">, Schema.Literal<"failed">]>;
|
|
9562
9569
|
readonly providerFailureCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
9563
9570
|
readonly isDefault: Schema.Boolean;
|
|
@@ -166,10 +166,7 @@ const EmailTrackingDefaults = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
166
166
|
opens: Schema.Boolean,
|
|
167
167
|
clicks: Schema.Boolean
|
|
168
168
|
}).annotate({ identifier: "EmailTrackingDefaults" }))();
|
|
169
|
-
const TrackingRecipientEmail = /* @__PURE__ */ (() => Schema.String.
|
|
170
|
-
expected: "a string matching the RegExp ^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$",
|
|
171
|
-
identifier: "TrackingRecipientEmail"
|
|
172
|
-
})))();
|
|
169
|
+
const TrackingRecipientEmail = /* @__PURE__ */ (() => Schema.String.annotate({ identifier: "TrackingRecipientEmail" }))();
|
|
173
170
|
const EmailDkimRotation = /* @__PURE__ */ (() => Schema.Struct({
|
|
174
171
|
id: Schema.String,
|
|
175
172
|
domainId: EmailDomainId,
|
|
@@ -560,6 +557,7 @@ const EmailSenderPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
560
557
|
]),
|
|
561
558
|
verifiedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
562
559
|
verificationToken: Schema.Union([Schema.String, Schema.Null]),
|
|
560
|
+
sendable: Schema.Boolean.annotate({ description: "Whether a send from this address passes the ownership check every send runs: the sender is verified and active, and the address or its domain is a sending identity this organization owns. Always false for a pending, failed, or inactive sender. A verified sender whose domain is no longer verified here, or whose sending identity setup failed, is not sendable, and sends from it are refused with 403." }),
|
|
563
561
|
providerLifecycle: Schema.Union([
|
|
564
562
|
Schema.Literal("provisioning"),
|
|
565
563
|
Schema.Literal("active"),
|
|
@@ -1038,7 +1036,7 @@ const EmailUpdateDomainConfigRequestJson = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
1038
1036
|
shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1039
1037
|
openTracking: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1040
1038
|
clickTracking: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1041
|
-
replyTo: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String
|
|
1039
|
+
replyTo: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1042
1040
|
topicId: Schema.optionalKey(Schema.Union([TopicId, Schema.Null])),
|
|
1043
1041
|
footerEnabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1044
1042
|
brandSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })), Schema.Null]))
|
|
@@ -1522,10 +1520,10 @@ const EmailListSenders500 = InternalError;
|
|
|
1522
1520
|
const EmailListSenders504 = GatewayTimeoutError;
|
|
1523
1521
|
const EmailAddSenderHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) }))();
|
|
1524
1522
|
const EmailAddSenderRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1525
|
-
email: Schema.String
|
|
1523
|
+
email: Schema.String,
|
|
1526
1524
|
domainId: Schema.optionalKey(Schema.Union([EmailDomainId, Schema.Null])),
|
|
1527
|
-
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.
|
|
1528
|
-
replyToEmails: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String
|
|
1525
|
+
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])),
|
|
1526
|
+
replyToEmails: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1529
1527
|
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]))
|
|
1530
1528
|
}))();
|
|
1531
1529
|
const EmailAddSender201 = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -1569,6 +1567,7 @@ const EmailGetSender200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1569
1567
|
]),
|
|
1570
1568
|
verifiedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
1571
1569
|
verificationToken: Schema.Union([Schema.String, Schema.Null]),
|
|
1570
|
+
sendable: Schema.Boolean.annotate({ description: "Whether a send from this address passes the ownership check every send runs: the sender is verified and active, and the address or its domain is a sending identity this organization owns. Always false for a pending, failed, or inactive sender. A verified sender whose domain is no longer verified here, or whose sending identity setup failed, is not sendable, and sends from it are refused with 403." }),
|
|
1572
1571
|
providerLifecycle: Schema.Union([
|
|
1573
1572
|
Schema.Literal("provisioning"),
|
|
1574
1573
|
Schema.Literal("active"),
|
|
@@ -2415,7 +2414,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
2415
2414
|
EmailSetDefaultSender502.pipe(HttpApiSchema.status(502)),
|
|
2416
2415
|
EmailSetDefaultSender504.pipe(HttpApiSchema.status(504))
|
|
2417
2416
|
]
|
|
2418
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.setDefaultSender").annotate(OpenApi.Summary, "Set the default sender").annotate(OpenApi.Description, "Sets a
|
|
2417
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.setDefaultSender").annotate(OpenApi.Summary, "Set the default sender").annotate(OpenApi.Description, "Sets a sendable sender (see `sendable` on the sender) as the default for the caller's namespace, the explicit namespaceId, or the sender's own scope. A namespace can select its own sender or a sender on a shared organization domain. This changes only the namespace's default; it does not change a shared sender. Omitted-`from` sends use this default when neither the request nor the template names a `from`."), HttpApiEndpoint.get("emailCheckSenderVerification", "/v1/email/senders/:id/verification", {
|
|
2419
2418
|
params: EmailCheckSenderVerificationPathParams,
|
|
2420
2419
|
success: EmailCheckSenderVerification200,
|
|
2421
2420
|
error: [
|
|
@@ -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,
|
|
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
|
|
@@ -389,7 +389,7 @@ export declare const MailboxSmsEndpointBinding: Schema.Struct<{
|
|
|
389
389
|
export type MailboxQuarantinedMessage = {
|
|
390
390
|
readonly id: MessageId;
|
|
391
391
|
readonly disposition: "quarantined" | "isolated";
|
|
392
|
-
readonly reason: "spam" | "dmarc" | "virus" | "virus_unscanned" | "phishing" | "fraud" | "prompt_injection";
|
|
392
|
+
readonly reason: "spam" | "dmarc" | "virus" | "virus_unscanned" | "verdict_missing" | "phishing" | "fraud" | "prompt_injection";
|
|
393
393
|
readonly source: "receipt" | "classifier";
|
|
394
394
|
readonly from: {
|
|
395
395
|
readonly address: string;
|
|
@@ -405,7 +405,7 @@ export type MailboxQuarantinedMessage = {
|
|
|
405
405
|
export declare const MailboxQuarantinedMessage: Schema.Struct<{
|
|
406
406
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
407
407
|
readonly disposition: Schema.Union<readonly [Schema.Literal<"quarantined">, Schema.Literal<"isolated">]>;
|
|
408
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
408
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"verdict_missing">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
409
409
|
readonly source: Schema.Union<readonly [Schema.Literal<"receipt">, Schema.Literal<"classifier">]>;
|
|
410
410
|
readonly from: Schema.Struct<{
|
|
411
411
|
readonly address: Schema.String;
|
|
@@ -1290,7 +1290,7 @@ export declare const MailboxQuarantinePage: Schema.Struct<{
|
|
|
1290
1290
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
1291
1291
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
1292
1292
|
readonly disposition: Schema.Union<readonly [Schema.Literal<"quarantined">, Schema.Literal<"isolated">]>;
|
|
1293
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
1293
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"verdict_missing">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
1294
1294
|
readonly source: Schema.Union<readonly [Schema.Literal<"receipt">, Schema.Literal<"classifier">]>;
|
|
1295
1295
|
readonly from: Schema.Struct<{
|
|
1296
1296
|
readonly address: Schema.String;
|
|
@@ -2355,7 +2355,7 @@ export type MailboxNeedsYouItem = {
|
|
|
2355
2355
|
readonly type: "quarantinedMessage";
|
|
2356
2356
|
readonly id: MessageId;
|
|
2357
2357
|
readonly mailbox: MailboxThreadMailbox;
|
|
2358
|
-
readonly reason: "spam" | "dmarc" | "virus" | "virus_unscanned" | "phishing" | "fraud" | "prompt_injection";
|
|
2358
|
+
readonly reason: "spam" | "dmarc" | "virus" | "virus_unscanned" | "verdict_missing" | "phishing" | "fraud" | "prompt_injection";
|
|
2359
2359
|
readonly source: "receipt" | "classifier";
|
|
2360
2360
|
readonly heldAt: string;
|
|
2361
2361
|
};
|
|
@@ -2523,7 +2523,7 @@ export declare const MailboxNeedsYouItem: Schema.Union<readonly [Schema.Struct<{
|
|
|
2523
2523
|
readonly address: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2524
2524
|
readonly kind: Schema.Union<readonly [Schema.Literal<"personal">, Schema.Literal<"shared">]>;
|
|
2525
2525
|
}>;
|
|
2526
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
2526
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"verdict_missing">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
2527
2527
|
readonly source: Schema.Union<readonly [Schema.Literal<"receipt">, Schema.Literal<"classifier">]>;
|
|
2528
2528
|
readonly heldAt: Schema.String;
|
|
2529
2529
|
}>]>;
|
|
@@ -3249,7 +3249,7 @@ export declare const MailboxNeedsYou: Schema.Struct<{
|
|
|
3249
3249
|
readonly address: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3250
3250
|
readonly kind: Schema.Union<readonly [Schema.Literal<"personal">, Schema.Literal<"shared">]>;
|
|
3251
3251
|
}>;
|
|
3252
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
3252
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"verdict_missing">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
3253
3253
|
readonly source: Schema.Union<readonly [Schema.Literal<"receipt">, Schema.Literal<"classifier">]>;
|
|
3254
3254
|
readonly heldAt: Schema.String;
|
|
3255
3255
|
}>]>>;
|
|
@@ -7335,7 +7335,7 @@ export type MailboxesDiscardMessage200 = MailboxQuarantinedMessage;
|
|
|
7335
7335
|
export declare const MailboxesDiscardMessage200: Schema.Struct<{
|
|
7336
7336
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
7337
7337
|
readonly disposition: Schema.Union<readonly [Schema.Literal<"quarantined">, Schema.Literal<"isolated">]>;
|
|
7338
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
7338
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"verdict_missing">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
7339
7339
|
readonly source: Schema.Union<readonly [Schema.Literal<"receipt">, Schema.Literal<"classifier">]>;
|
|
7340
7340
|
readonly from: Schema.Struct<{
|
|
7341
7341
|
readonly address: Schema.String;
|
|
@@ -7645,7 +7645,7 @@ export type MailboxesReleaseMessage200 = MailboxQuarantinedMessage;
|
|
|
7645
7645
|
export declare const MailboxesReleaseMessage200: Schema.Struct<{
|
|
7646
7646
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
7647
7647
|
readonly disposition: Schema.Union<readonly [Schema.Literal<"quarantined">, Schema.Literal<"isolated">]>;
|
|
7648
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
7648
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"verdict_missing">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
7649
7649
|
readonly source: Schema.Union<readonly [Schema.Literal<"receipt">, Schema.Literal<"classifier">]>;
|
|
7650
7650
|
readonly from: Schema.Struct<{
|
|
7651
7651
|
readonly address: Schema.String;
|
|
@@ -8233,7 +8233,7 @@ export declare const MailboxesListQuarantine200: Schema.Struct<{
|
|
|
8233
8233
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
8234
8234
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
8235
8235
|
readonly disposition: Schema.Union<readonly [Schema.Literal<"quarantined">, Schema.Literal<"isolated">]>;
|
|
8236
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
8236
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"verdict_missing">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
8237
8237
|
readonly source: Schema.Union<readonly [Schema.Literal<"receipt">, Schema.Literal<"classifier">]>;
|
|
8238
8238
|
readonly from: Schema.Struct<{
|
|
8239
8239
|
readonly address: Schema.String;
|
|
@@ -9193,7 +9193,7 @@ export declare const MailboxesGetNeedsYou200: Schema.Struct<{
|
|
|
9193
9193
|
readonly address: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
9194
9194
|
readonly kind: Schema.Union<readonly [Schema.Literal<"personal">, Schema.Literal<"shared">]>;
|
|
9195
9195
|
}>;
|
|
9196
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
9196
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"verdict_missing">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
9197
9197
|
readonly source: Schema.Union<readonly [Schema.Literal<"receipt">, Schema.Literal<"classifier">]>;
|
|
9198
9198
|
readonly heldAt: Schema.String;
|
|
9199
9199
|
}>]>>;
|
|
@@ -11885,7 +11885,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
11885
11885
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
11886
11886
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
11887
11887
|
readonly disposition: Schema.Union<readonly [Schema.Literal<"quarantined">, Schema.Literal<"isolated">]>;
|
|
11888
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
11888
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"verdict_missing">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
11889
11889
|
readonly source: Schema.Union<readonly [Schema.Literal<"receipt">, Schema.Literal<"classifier">]>;
|
|
11890
11890
|
readonly from: Schema.Struct<{
|
|
11891
11891
|
readonly address: Schema.String;
|
|
@@ -13722,7 +13722,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
13722
13722
|
readonly address: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
13723
13723
|
readonly kind: Schema.Union<readonly [Schema.Literal<"personal">, Schema.Literal<"shared">]>;
|
|
13724
13724
|
}>;
|
|
13725
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
13725
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"verdict_missing">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
13726
13726
|
readonly source: Schema.Union<readonly [Schema.Literal<"receipt">, Schema.Literal<"classifier">]>;
|
|
13727
13727
|
readonly heldAt: Schema.String;
|
|
13728
13728
|
}>]>>;
|
|
@@ -15510,7 +15510,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
15510
15510
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
15511
15511
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
15512
15512
|
readonly disposition: Schema.Union<readonly [Schema.Literal<"quarantined">, Schema.Literal<"isolated">]>;
|
|
15513
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
15513
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"verdict_missing">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
15514
15514
|
readonly source: Schema.Union<readonly [Schema.Literal<"receipt">, Schema.Literal<"classifier">]>;
|
|
15515
15515
|
readonly from: Schema.Struct<{
|
|
15516
15516
|
readonly address: Schema.String;
|
|
@@ -16166,7 +16166,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
16166
16166
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
16167
16167
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
16168
16168
|
readonly disposition: Schema.Union<readonly [Schema.Literal<"quarantined">, Schema.Literal<"isolated">]>;
|
|
16169
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
16169
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"spam">, Schema.Literal<"dmarc">, Schema.Literal<"virus">, Schema.Literal<"virus_unscanned">, Schema.Literal<"verdict_missing">, Schema.Literal<"phishing">, Schema.Literal<"fraud">, Schema.Literal<"prompt_injection">]>;
|
|
16170
16170
|
readonly source: Schema.Union<readonly [Schema.Literal<"receipt">, Schema.Literal<"classifier">]>;
|
|
16171
16171
|
readonly from: Schema.Struct<{
|
|
16172
16172
|
readonly address: Schema.String;
|
|
@@ -335,6 +335,7 @@ const MailboxQuarantinedMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
335
335
|
Schema.Literal("dmarc"),
|
|
336
336
|
Schema.Literal("virus"),
|
|
337
337
|
Schema.Literal("virus_unscanned"),
|
|
338
|
+
Schema.Literal("verdict_missing"),
|
|
338
339
|
Schema.Literal("phishing"),
|
|
339
340
|
Schema.Literal("fraud"),
|
|
340
341
|
Schema.Literal("prompt_injection")
|
|
@@ -1090,6 +1091,7 @@ const MailboxNeedsYouItem = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
|
|
|
1090
1091
|
Schema.Literal("dmarc"),
|
|
1091
1092
|
Schema.Literal("virus"),
|
|
1092
1093
|
Schema.Literal("virus_unscanned"),
|
|
1094
|
+
Schema.Literal("verdict_missing"),
|
|
1093
1095
|
Schema.Literal("phishing"),
|
|
1094
1096
|
Schema.Literal("fraud"),
|
|
1095
1097
|
Schema.Literal("prompt_injection")
|
|
@@ -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;
|