samva 0.53.0 → 0.55.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 +1 -1
- package/README.md +1 -0
- package/dist/_virtual/_rolldown/runtime.js +4 -4
- package/dist/agent/index.js +1 -1
- package/dist/client/client/client.gen.js +1 -2
- package/dist/client/client/utils.gen.js +1 -1
- package/dist/client/client.gen.js +1 -1
- package/dist/client/sdk.gen.d.ts +96 -12
- package/dist/client/sdk.gen.js +314 -25
- package/dist/client/types.gen.d.ts +647 -13
- package/dist/client-attribution.js +1 -1
- package/dist/effect/agents.js +1 -1
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/approval-requests.js +1 -1
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.d.ts +8 -1
- package/dist/effect/brands.js +2 -2
- package/dist/effect/campaigns.d.ts +66 -56
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.js +6 -6
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/descriptors/brands.d.ts +4 -4
- package/dist/effect/descriptors/brands.js +4 -4
- package/dist/effect/descriptors/email.d.ts +21 -1
- package/dist/effect/descriptors/email.js +21 -1
- package/dist/effect/descriptors/phone-numbers.d.ts +49 -0
- package/dist/effect/descriptors/phone-numbers.js +47 -0
- package/dist/effect/descriptors/topics.d.ts +1 -1
- package/dist/effect/descriptors/topics.js +1 -1
- package/dist/effect/email.d.ts +12 -0
- package/dist/effect/email.js +6 -2
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/events.js +2 -2
- package/dist/effect/feedback.js +2 -2
- package/dist/effect/generated/accounts.d.ts +12 -1
- package/dist/effect/generated/accounts.js +2 -1
- package/dist/effect/generated/agents.js +7 -7
- package/dist/effect/generated/analytics.js +16 -16
- package/dist/effect/generated/api-keys.js +7 -7
- package/dist/effect/generated/approval-requests.js +1 -1
- package/dist/effect/generated/attachments.js +4 -4
- package/dist/effect/generated/brands.d.ts +78 -8
- package/dist/effect/generated/brands.js +21 -12
- package/dist/effect/generated/campaigns.d.ts +17 -1
- package/dist/effect/generated/campaigns.js +15 -14
- package/dist/effect/generated/contact-events.js +1 -1
- package/dist/effect/generated/contact-groups.js +12 -12
- package/dist/effect/generated/contacts.js +50 -50
- package/dist/effect/generated/conversations.js +7 -7
- package/dist/effect/generated/custom-fields.js +6 -6
- package/dist/effect/generated/email.d.ts +473 -2
- package/dist/effect/generated/email.js +143 -44
- package/dist/effect/generated/events.js +5 -5
- package/dist/effect/generated/feedback.js +1 -1
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +16 -0
- package/dist/effect/generated/integrations-catalog.js +10 -6
- package/dist/effect/generated/integrations.js +5 -5
- package/dist/effect/generated/journeys.d.ts +158 -1
- package/dist/effect/generated/journeys.js +16 -14
- package/dist/effect/generated/logs.js +2 -2
- package/dist/effect/generated/mailboxes.d.ts +41 -3
- package/dist/effect/generated/mailboxes.js +48 -50
- package/dist/effect/generated/media.js +1 -1
- package/dist/effect/generated/messages.d.ts +6 -0
- package/dist/effect/generated/messages.js +12 -6
- package/dist/effect/generated/namespaces.d.ts +9 -9
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/newsletter-domains.js +1 -1
- package/dist/effect/generated/newsletter-issues.js +69 -69
- package/dist/effect/generated/newsletters.js +1 -1
- package/dist/effect/generated/operations.js +1 -1
- package/dist/effect/generated/organizations.d.ts +3 -0
- package/dist/effect/generated/organizations.js +2 -1
- package/dist/effect/generated/phone-numbers.d.ts +817 -0
- package/dist/effect/generated/phone-numbers.js +230 -0
- package/dist/effect/generated/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.js +1 -1
- package/dist/effect/generated/shared.d.ts +75 -14
- package/dist/effect/generated/shared.js +46 -17
- package/dist/effect/generated/subscriptions.js +1 -1
- package/dist/effect/generated/template-registrations.js +1 -1
- package/dist/effect/generated/template-share-links.js +9 -9
- package/dist/effect/generated/templates.d.ts +34 -1
- package/dist/effect/generated/templates.js +136 -121
- package/dist/effect/generated/topic-forms.js +1 -1
- package/dist/effect/generated/topics.d.ts +10 -0
- package/dist/effect/generated/topics.js +20 -13
- package/dist/effect/generated/webhooks.js +18 -18
- package/dist/effect/generated/whats-app-flows.js +5 -5
- package/dist/effect/generated/whats-app-setup-links.js +1 -1
- package/dist/effect/generated/whats-app.d.ts +75 -0
- package/dist/effect/generated/whats-app.js +43 -18
- package/dist/effect/generated/whoami.js +1 -1
- package/dist/effect/generated-metadata.d.ts +47 -1
- package/dist/effect/generated-metadata.js +175 -146
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +6 -5
- package/dist/effect/integrations-catalog.js +1 -1
- package/dist/effect/integrations.js +1 -1
- package/dist/effect/internal/client.js +6 -6
- package/dist/effect/internal/email-sender.js +3 -3
- package/dist/effect/internal/log-events.js +2 -2
- package/dist/effect/internal/mailbox-events.js +1 -1
- package/dist/effect/internal/operation.js +2 -2
- package/dist/effect/internal/send.js +4 -4
- package/dist/effect/journeys.d.ts +20 -0
- package/dist/effect/journeys.js +1 -1
- package/dist/effect/logs.js +1 -1
- package/dist/effect/mailboxes.d.ts +191 -191
- package/dist/effect/mailboxes.js +3 -3
- package/dist/effect/media.js +2 -2
- package/dist/effect/messages.js +2 -2
- package/dist/effect/namespaces.d.ts +2 -2
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/newsletter-domains.js +1 -1
- package/dist/effect/newsletter-issues.js +1 -1
- package/dist/effect/newsletters.js +1 -1
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/phone-numbers.d.ts +22 -0
- package/dist/effect/phone-numbers.js +21 -0
- package/dist/effect/policies.js +1 -1
- package/dist/effect/retry.js +3 -3
- package/dist/effect/scheduled-messages.d.ts +350 -350
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/subscriptions.js +1 -1
- package/dist/effect/template-registrations.js +1 -1
- package/dist/effect/template-share-links.js +1 -1
- package/dist/effect/templates.d.ts +1 -0
- package/dist/effect/templates.js +2 -2
- package/dist/effect/topic-forms.js +1 -1
- package/dist/effect/topics.d.ts +70 -2
- package/dist/effect/topics.js +1 -1
- package/dist/effect/webhooks.js +2 -2
- package/dist/effect/whatsapp-flows.js +1 -1
- package/dist/effect/whatsapp-setup-links.js +1 -1
- package/dist/effect/whatsapp.d.ts +10 -0
- package/dist/effect/whatsapp.js +1 -1
- package/dist/effect/whoami.js +1 -1
- package/dist/index.js +2 -2
- package/dist/package.json.js +5 -0
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +7 -5
- package/dist/promises/errors.gen.d.ts +16 -2
- package/dist/promises/errors.gen.js +48 -11
- package/dist/promises/index.js +3 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.js +1 -1
- package/dist/service-map.d.ts +40 -5
- package/package.json +9 -5
- package/dist/package.js +0 -5
package/dist/effect/email.d.ts
CHANGED
|
@@ -14,6 +14,11 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
14
14
|
}[];
|
|
15
15
|
readonly createdAt: string;
|
|
16
16
|
}, import("./errors.js").BillingProviderError | import("./errors.js").ConflictError | import("./errors.js").DeliveryUnavailableError | import("./errors.js").ExternalServiceError | import("./errors.js").FlagDisabledError | import("./errors.js").ForbiddenError | import("./errors.js").FromAddressRequiredError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("../index.js").MediaUploadError | import("./errors.js").OnboardingReviewRequiredError | import("./errors.js").PaymentRequiredError | import("./errors.js").RateLimitedError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").SenderNotReadyError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
17
|
+
export declare const getDeliverabilityInsights: (input: {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly days?: "30" | "7" | undefined;
|
|
20
|
+
readonly mailboxProvider?: string | undefined;
|
|
21
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailGetDeliverabilityInsights">;
|
|
17
22
|
export declare const getOnboardingReview: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailGetOnboardingReview">;
|
|
18
23
|
export declare const reapplyOnboardingReview: (input: {
|
|
19
24
|
readonly expectedGeneration: number;
|
|
@@ -135,6 +140,7 @@ export declare const getDomainConnect: (input: {
|
|
|
135
140
|
export declare const buildDomainConnectApplyUrl: (input: {
|
|
136
141
|
readonly id: string;
|
|
137
142
|
readonly mode: "send-and-receive" | "send-only";
|
|
143
|
+
readonly returnUrl?: string | undefined;
|
|
138
144
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailBuildDomainConnectApplyUrl">;
|
|
139
145
|
export declare const completeDomainConnect: (input: {
|
|
140
146
|
readonly id: string;
|
|
@@ -183,6 +189,7 @@ export declare const getCustomTrackingDomainConnect: (input: {
|
|
|
183
189
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailGetCustomTrackingDomainConnect">;
|
|
184
190
|
export declare const buildCustomTrackingDomainConnectApplyUrl: (input: {
|
|
185
191
|
readonly id: string;
|
|
192
|
+
readonly returnUrl?: string | undefined;
|
|
186
193
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailBuildCustomTrackingDomainConnectApplyUrl">;
|
|
187
194
|
export declare const completeCustomTrackingDomainConnect: (input: {
|
|
188
195
|
readonly id: string;
|
|
@@ -282,6 +289,11 @@ export declare const checkSenderVerification: (input: {
|
|
|
282
289
|
export declare const getSender: (input: {
|
|
283
290
|
readonly id: string;
|
|
284
291
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailGetSender">;
|
|
292
|
+
export declare const updateSender: (input: {
|
|
293
|
+
readonly id: string;
|
|
294
|
+
readonly name?: string | null | undefined;
|
|
295
|
+
readonly replyToEmails?: readonly string[] | null | undefined;
|
|
296
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailUpdateSender">;
|
|
285
297
|
export declare const removeSender: (input: {
|
|
286
298
|
readonly id: string;
|
|
287
299
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailRemoveSender">;
|
package/dist/effect/email.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { forGroup } from "./internal/operation.js";
|
|
3
2
|
import { emailOperations } from "./descriptors/email.js";
|
|
4
3
|
import { EmailGroup, TrackingRecipientEmail } from "./generated/email.js";
|
|
5
4
|
import { addEmailSender } from "./internal/email-sender.js";
|
|
5
|
+
import { forGroup } from "./internal/operation.js";
|
|
6
6
|
import { sendEmail } from "./internal/send.js";
|
|
7
7
|
// src/effect/email.ts
|
|
8
8
|
var email_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -34,6 +34,7 @@ var email_exports = /* @__PURE__ */ __exportAll({
|
|
|
34
34
|
getCatchAllStats: () => getCatchAllStats,
|
|
35
35
|
getCustomTracking: () => getCustomTracking,
|
|
36
36
|
getCustomTrackingDomainConnect: () => getCustomTrackingDomainConnect,
|
|
37
|
+
getDeliverabilityInsights: () => getDeliverabilityInsights,
|
|
37
38
|
getDomainById: () => getDomainById,
|
|
38
39
|
getDomainConnect: () => getDomainConnect,
|
|
39
40
|
getDomainVerification: () => getDomainVerification,
|
|
@@ -69,10 +70,12 @@ var email_exports = /* @__PURE__ */ __exportAll({
|
|
|
69
70
|
updateDomainWarmingPolicy: () => updateDomainWarmingPolicy,
|
|
70
71
|
updateForwardingRule: () => updateForwardingRule,
|
|
71
72
|
updateRecipientTrackingPreference: () => updateRecipientTrackingPreference,
|
|
73
|
+
updateSender: () => updateSender,
|
|
72
74
|
updateTrackingDefaults: () => updateTrackingDefaults
|
|
73
75
|
});
|
|
74
76
|
const make = /* @__PURE__ */ forGroup(EmailGroup, emailOperations);
|
|
75
77
|
const send = sendEmail;
|
|
78
|
+
const getDeliverabilityInsights = /* @__PURE__ */ make("emailGetDeliverabilityInsights");
|
|
76
79
|
const getOnboardingReview = /* @__PURE__ */ make("emailGetOnboardingReview");
|
|
77
80
|
const reapplyOnboardingReview = /* @__PURE__ */ make("emailReapplyOnboardingReview");
|
|
78
81
|
const respondToOnboardingInformationRequest = /* @__PURE__ */ make("emailRespondToOnboardingInformationRequest");
|
|
@@ -106,6 +109,7 @@ const addSender = addEmailSender;
|
|
|
106
109
|
const listSenders = /* @__PURE__ */ make("emailListSenders");
|
|
107
110
|
const checkSenderVerification = /* @__PURE__ */ make("emailCheckSenderVerification");
|
|
108
111
|
const getSender = /* @__PURE__ */ make("emailGetSender");
|
|
112
|
+
const updateSender = /* @__PURE__ */ make("emailUpdateSender");
|
|
109
113
|
const removeSender = /* @__PURE__ */ make("emailRemoveSender");
|
|
110
114
|
const setDefaultSender = /* @__PURE__ */ make("emailSetDefaultSender");
|
|
111
115
|
const getStats = /* @__PURE__ */ make("emailGetStats");
|
|
@@ -135,6 +139,6 @@ const cancelDomainWarmingBatch = /* @__PURE__ */ make("emailCancelDomainWarmingB
|
|
|
135
139
|
const pauseDomainWarming = /* @__PURE__ */ make("emailPauseDomainWarming");
|
|
136
140
|
const resumeDomainWarming = /* @__PURE__ */ make("emailResumeDomainWarming");
|
|
137
141
|
const completeDomainWarming = /* @__PURE__ */ make("emailCompleteDomainWarming");
|
|
138
|
-
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 };
|
|
142
|
+
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, getDeliverabilityInsights, 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, updateSender, updateTrackingDefaults };
|
|
139
143
|
|
|
140
144
|
//# sourceMappingURL=email.js.map
|
package/dist/effect/errors.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError,
|
|
1
|
+
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, PhoneNumberProvisioningError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError, } from "./generated/shared.js";
|
|
2
2
|
export { MediaUploadError } from "../inline-attachments.js";
|
|
3
3
|
export { SamvaTimeoutError } from "./internal/timeout.js";
|
package/dist/effect/errors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, PhoneNumberProvisioningError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError } from "./generated/shared.js";
|
|
1
2
|
import { MediaUploadError } from "../inline-attachments.js";
|
|
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
3
|
import { SamvaTimeoutError } from "./internal/timeout.js";
|
|
4
|
-
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaTimeoutError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError };
|
|
4
|
+
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, PhoneNumberProvisioningError, RateLimitedError, ResourceNotFoundError, SamvaTimeoutError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError };
|
package/dist/effect/events.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { CreateEventPayload } from "./generated/shared.js";
|
|
3
|
-
import { forGroup } from "./internal/operation.js";
|
|
4
2
|
import { eventsOperations } from "./descriptors/events.js";
|
|
5
3
|
import { EventsGroup } from "./generated/events.js";
|
|
4
|
+
import { forGroup } from "./internal/operation.js";
|
|
5
|
+
import { CreateEventPayload } from "./generated/shared.js";
|
|
6
6
|
// src/effect/events.ts
|
|
7
7
|
var events_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
CreateEventPayload: () => CreateEventPayload,
|
package/dist/effect/feedback.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { SendFeedback } from "./generated/shared.js";
|
|
3
|
-
import { forGroup } from "./internal/operation.js";
|
|
4
2
|
import { feedbackOperations } from "./descriptors/feedback.js";
|
|
5
3
|
import { FeedbackGroup } from "./generated/feedback.js";
|
|
4
|
+
import { forGroup } from "./internal/operation.js";
|
|
5
|
+
import { SendFeedback } from "./generated/shared.js";
|
|
6
6
|
// src/effect/feedback.ts
|
|
7
7
|
var feedback_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
SendPayload: () => SendFeedback,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
-
import { AccountStatus, ApiKeySecurityMiddleware, ContactId, ForbiddenError, GatewayTimeoutError, IntegrationAccountId, IntegrationId, IntegrationKey, IntegrationReturnTo, InternalError, JsonObject, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
3
|
+
import { AccountStatus, ApiKeySecurityMiddleware, ContactId, ContactReferenceSummary, ForbiddenError, GatewayTimeoutError, IntegrationAccountId, IntegrationId, IntegrationKey, IntegrationReturnTo, InternalError, JsonObject, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
4
4
|
export type AccountInfo = {
|
|
5
5
|
readonly externalId?: string;
|
|
6
6
|
readonly displayName?: string;
|
|
@@ -309,6 +309,7 @@ export type AccountsListContactConnections200 = {
|
|
|
309
309
|
readonly organizationId: OrganizationId;
|
|
310
310
|
readonly integrationId: IntegrationId;
|
|
311
311
|
readonly contactId: ContactId;
|
|
312
|
+
readonly contact: ContactReferenceSummary | null;
|
|
312
313
|
readonly accountId: IntegrationAccountId;
|
|
313
314
|
readonly provider?: IntegrationKey;
|
|
314
315
|
readonly info: AccountInfo;
|
|
@@ -322,6 +323,11 @@ export declare const AccountsListContactConnections200: Schema.Struct<{
|
|
|
322
323
|
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
323
324
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
324
325
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
326
|
+
readonly contact: Schema.Union<readonly [Schema.Struct<{
|
|
327
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
328
|
+
readonly name: Schema.String;
|
|
329
|
+
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
330
|
+
}>, Schema.Null]>;
|
|
325
331
|
readonly accountId: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
326
332
|
readonly provider: Schema.optionalKey<Schema.String>;
|
|
327
333
|
readonly info: Schema.Struct<{
|
|
@@ -806,6 +812,11 @@ declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"Accounts", HttpApiE
|
|
|
806
812
|
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
807
813
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
808
814
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
815
|
+
readonly contact: Schema.Union<readonly [Schema.Struct<{
|
|
816
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
817
|
+
readonly name: Schema.String;
|
|
818
|
+
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
819
|
+
}>, Schema.Null]>;
|
|
809
820
|
readonly accountId: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
810
821
|
readonly provider: Schema.optionalKey<Schema.String>;
|
|
811
822
|
readonly info: Schema.Struct<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AccountStatus, ApiKeySecurityMiddleware, ContactId, ForbiddenError, GatewayTimeoutError, IntegrationAccountId, IntegrationId, IntegrationKey, IntegrationReturnTo, InternalError, JsonObject, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
2
1
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
2
|
import * as Schema from "effect/Schema";
|
|
3
|
+
import { AccountStatus, ApiKeySecurityMiddleware, ContactId, ContactReferenceSummary, ForbiddenError, GatewayTimeoutError, IntegrationAccountId, IntegrationId, IntegrationKey, IntegrationReturnTo, InternalError, JsonObject, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
4
4
|
// src/effect/generated/accounts.ts
|
|
5
5
|
const AccountInfo = /* @__PURE__ */ (() => Schema.Struct({
|
|
6
6
|
externalId: Schema.optionalKey(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" }))),
|
|
@@ -106,6 +106,7 @@ const AccountsListContactConnections200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
106
106
|
organizationId: OrganizationId,
|
|
107
107
|
integrationId: IntegrationId,
|
|
108
108
|
contactId: ContactId,
|
|
109
|
+
contact: Schema.Union([ContactReferenceSummary, Schema.Null]),
|
|
109
110
|
accountId: IntegrationAccountId,
|
|
110
111
|
provider: Schema.optionalKey(IntegrationKey),
|
|
111
112
|
info: AccountInfo,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AgentDefinition, AgentId, AgentModel, AgentModelChoice, AgentModuleBundle, AgentModuleManifest, AgentName, AgentReasoning, AgentSetupJob, ApiKeySecurityMiddleware, CatalogModelId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MonthlySpendCapDollars, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
2
1
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
2
|
import * as Schema from "effect/Schema";
|
|
3
|
+
import { AgentDefinition, AgentId, AgentModel, AgentModelChoice, AgentModuleBundle, AgentModuleManifest, AgentName, AgentReasoning, AgentSetupJob, ApiKeySecurityMiddleware, CatalogModelId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MonthlySpendCapDollars, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
4
|
// src/effect/generated/agents.ts
|
|
5
5
|
const AgentSpend = /* @__PURE__ */ (() => Schema.Struct({
|
|
6
6
|
month: Schema.String,
|
|
@@ -19,7 +19,7 @@ const AgentTestId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(
|
|
|
19
19
|
identifier: "AgentTestId"
|
|
20
20
|
})).pipe(Schema.brand("AgentTestId")))();
|
|
21
21
|
const AgentTestDecision = /* @__PURE__ */ (() => Schema.Struct({
|
|
22
|
-
actionIndex: 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(
|
|
22
|
+
actionIndex: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
23
23
|
kind: Schema.Union([
|
|
24
24
|
Schema.Literal("send"),
|
|
25
25
|
Schema.Literal("reply"),
|
|
@@ -50,7 +50,7 @@ const AgentListItem = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
50
50
|
name: Schema.String,
|
|
51
51
|
setupJob: Schema.Union([AgentSetupJob, Schema.Null]),
|
|
52
52
|
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
53
|
-
publishedVersion: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-
|
|
53
|
+
publishedVersion: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]),
|
|
54
54
|
publishedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
55
55
|
pausedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
56
56
|
creditsPausedAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -86,7 +86,7 @@ const AgentModelOption = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
86
86
|
id: CatalogModelId,
|
|
87
87
|
name: Schema.String
|
|
88
88
|
}),
|
|
89
|
-
contextWindow: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-
|
|
89
|
+
contextWindow: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
90
90
|
inputModalities: Schema.Array(Schema.String),
|
|
91
91
|
price: AgentModelPrice,
|
|
92
92
|
reasoning: Schema.Array(AgentModelReasoning),
|
|
@@ -103,7 +103,7 @@ const Agent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
103
103
|
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
104
104
|
revision: Schema.String,
|
|
105
105
|
draft: AgentDefinition,
|
|
106
|
-
publishedVersion: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-
|
|
106
|
+
publishedVersion: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]),
|
|
107
107
|
publishedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
108
108
|
pausedAt: Schema.Union([Schema.String, Schema.Null]),
|
|
109
109
|
creditsPausedAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -119,7 +119,7 @@ const AgentBundle = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
119
119
|
}).annotate({ identifier: "AgentBundle" }))();
|
|
120
120
|
const AgentVersion = /* @__PURE__ */ (() => Schema.Struct({
|
|
121
121
|
agentId: AgentId,
|
|
122
|
-
version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-
|
|
122
|
+
version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
123
123
|
definition: AgentDefinition,
|
|
124
124
|
bundle: AgentBundle,
|
|
125
125
|
authoring: Schema.Union([Schema.Literal("builder"), Schema.Literal("code")]),
|
|
@@ -128,7 +128,7 @@ const AgentVersion = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
128
128
|
}).annotate({ identifier: "AgentVersion" }))();
|
|
129
129
|
const AgentVersionSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
130
130
|
agentId: AgentId,
|
|
131
|
-
version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-
|
|
131
|
+
version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
132
132
|
bundle: AgentBundle,
|
|
133
133
|
authoring: Schema.Union([Schema.Literal("builder"), Schema.Literal("code")]),
|
|
134
134
|
publishedAt: Schema.String
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbsoluteInstant } from "../runtime.js";
|
|
2
|
-
import { AnalyticsQueryError, ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, UnauthorizedError, ValidationError } from "./shared.js";
|
|
3
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
4
3
|
import * as Schema from "effect/Schema";
|
|
4
|
+
import { AnalyticsQueryError, ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, UnauthorizedError, ValidationError } from "./shared.js";
|
|
5
5
|
// src/effect/generated/analytics.ts
|
|
6
6
|
const AnalyticsGetChannelStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
7
7
|
namespaceId: Schema.optionalKey(NamespaceId),
|
|
@@ -10,28 +10,28 @@ const AnalyticsGetChannelStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
10
10
|
}))();
|
|
11
11
|
const AnalyticsGetChannelStats200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
12
12
|
email: Schema.Struct({
|
|
13
|
-
sent: 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(
|
|
13
|
+
sent: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
14
14
|
deliveryRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
15
|
-
uniqueOpenedMessages: 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(
|
|
16
|
-
openTrackingEligibleDeliveredMessages: 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(
|
|
15
|
+
uniqueOpenedMessages: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
16
|
+
openTrackingEligibleDeliveredMessages: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
17
17
|
uniqueMessageOpenRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
18
|
-
uniqueClickedMessages: 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(
|
|
19
|
-
clickTrackingEligibleDeliveredMessages: 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(
|
|
18
|
+
uniqueClickedMessages: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
19
|
+
clickTrackingEligibleDeliveredMessages: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
20
20
|
uniqueMessageClickRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
21
21
|
bounceRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
22
22
|
}),
|
|
23
23
|
whatsapp: Schema.Struct({
|
|
24
|
-
sent: 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(
|
|
24
|
+
sent: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
25
25
|
deliveryRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
26
26
|
readRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
27
27
|
failureRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
28
28
|
avgResponseTime: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
29
29
|
}),
|
|
30
30
|
sms: Schema.Struct({
|
|
31
|
-
sent: 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(
|
|
31
|
+
sent: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
32
32
|
deliveryRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
33
33
|
failureRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
34
|
-
totalSegments: 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(
|
|
34
|
+
totalSegments: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
35
35
|
})
|
|
36
36
|
}))();
|
|
37
37
|
const AnalyticsGetChannelStats400 = /* @__PURE__ */ (() => Schema.Union([AnalyticsQueryError, MalformedRequestError]))();
|
|
@@ -91,8 +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(
|
|
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(
|
|
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(0x1fffffffffffff).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(0x1fffffffffffff).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`." })
|
|
96
96
|
})))();
|
|
97
97
|
const AnalyticsGetHourlyDistribution400 = /* @__PURE__ */ (() => Schema.Union([AnalyticsQueryError, MalformedRequestError]))();
|
|
98
98
|
const AnalyticsGetHourlyDistribution401 = UnauthorizedError;
|
|
@@ -117,10 +117,10 @@ const AnalyticsGetStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
117
117
|
}))();
|
|
118
118
|
const AnalyticsGetStats200 = /* @__PURE__ */ (() => Schema.Struct({ volumeHistory: Schema.Array(Schema.Struct({
|
|
119
119
|
date: Schema.String,
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
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(0x1fffffffffffff).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(0x1fffffffffffff).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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
124
124
|
})) }))();
|
|
125
125
|
const AnalyticsGetStats400 = /* @__PURE__ */ (() => Schema.Union([AnalyticsQueryError, MalformedRequestError]))();
|
|
126
126
|
const AnalyticsGetStats401 = UnauthorizedError;
|
|
@@ -144,7 +144,7 @@ const AnalyticsGetTopContacts200 = /* @__PURE__ */ (() => Schema.Array(Schema.St
|
|
|
144
144
|
name: Schema.Union([Schema.String, Schema.Null]),
|
|
145
145
|
email: Schema.Union([Schema.String, Schema.Null]),
|
|
146
146
|
phone: Schema.Union([Schema.String, Schema.Null]),
|
|
147
|
-
messageCount: 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(
|
|
147
|
+
messageCount: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
148
148
|
})))();
|
|
149
149
|
const AnalyticsGetTopContacts400 = /* @__PURE__ */ (() => Schema.Union([AnalyticsQueryError, MalformedRequestError]))();
|
|
150
150
|
const AnalyticsGetTopContacts401 = UnauthorizedError;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SensitiveString } from "../runtime.js";
|
|
2
|
-
import { ApiKeyAccess, ApiKeyId, ApiKeySecurityMiddleware, BillingProviderError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
|
|
3
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
4
3
|
import * as Schema from "effect/Schema";
|
|
4
|
+
import { ApiKeyAccess, ApiKeyId, ApiKeySecurityMiddleware, BillingProviderError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
|
|
5
5
|
// src/effect/generated/api-keys.ts
|
|
6
6
|
const ApiKeyOwner = /* @__PURE__ */ (() => Schema.Struct({
|
|
7
7
|
id: Schema.String,
|
|
@@ -67,7 +67,7 @@ const ApiKeysList422 = ValidationError;
|
|
|
67
67
|
const ApiKeysList500 = InternalError;
|
|
68
68
|
const ApiKeysList504 = GatewayTimeoutError;
|
|
69
69
|
const ApiKeysCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
70
|
-
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(32).annotate({ expected: "a string with at most 32 code points" })).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" })),
|
|
70
|
+
name: Schema.String.annotate({ description: "API key name, up to 32 characters." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(32).annotate({ expected: "a string with at most 32 code points" })).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" })),
|
|
71
71
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
72
72
|
expiresAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
73
73
|
access: Schema.optionalKey(Schema.Union([ApiKeyAccess, Schema.Null]).annotate({ description: "Defaults to full access for an unrestricted member, or namespace grants for a restricted member. A restricted API key creating a key defaults to its own grants and cannot issue full access." }))
|
|
@@ -94,7 +94,7 @@ const ApiKeysGet500 = InternalError;
|
|
|
94
94
|
const ApiKeysGet504 = GatewayTimeoutError;
|
|
95
95
|
const ApiKeysUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
|
|
96
96
|
const ApiKeysUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
97
|
-
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(32).annotate({ expected: "a string with at most 32 code points" })).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" })), Schema.Null])),
|
|
97
|
+
name: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "API key name, up to 32 characters." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(32).annotate({ expected: "a string with at most 32 code points" })).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" })), Schema.Null])),
|
|
98
98
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
99
99
|
}))();
|
|
100
100
|
const ApiKeysUpdate200 = ApiKey;
|
|
@@ -143,12 +143,12 @@ const ApiKeysGetStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
143
143
|
before: Schema.optionalKey(Schema.String)
|
|
144
144
|
}))();
|
|
145
145
|
const ApiKeysGetStats200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
146
|
-
totalRequests: 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(
|
|
147
|
-
successfulRequests: 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(
|
|
148
|
-
failedRequests: 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(
|
|
146
|
+
totalRequests: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
147
|
+
successfulRequests: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
148
|
+
failedRequests: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
149
149
|
dailyVolume: Schema.Array(Schema.Struct({
|
|
150
150
|
date: Schema.String,
|
|
151
|
-
requests: 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(
|
|
151
|
+
requests: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
152
152
|
}))
|
|
153
153
|
}))();
|
|
154
154
|
const ApiKeysGetStats400 = MalformedRequestError;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, NamespaceId, OrganizationId, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
2
1
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
2
|
import * as Schema from "effect/Schema";
|
|
3
|
+
import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, NamespaceId, OrganizationId, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
4
4
|
// src/effect/generated/approval-requests.ts
|
|
5
5
|
const ApprovalRequestId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^apr_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
6
6
|
expected: "a string matching the RegExp ^apr_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, AttachmentId, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MessageId, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
2
1
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
2
|
import * as Schema from "effect/Schema";
|
|
3
|
+
import { ApiKeySecurityMiddleware, AttachmentId, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MessageId, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
4
|
// src/effect/generated/attachments.ts
|
|
5
5
|
const AttachmentList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(Schema.Struct({
|
|
6
6
|
id: AttachmentId,
|
|
@@ -8,7 +8,7 @@ const AttachmentList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Arra
|
|
|
8
8
|
organizationId: OrganizationId,
|
|
9
9
|
filename: Schema.String,
|
|
10
10
|
contentType: Schema.String,
|
|
11
|
-
size: 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(
|
|
11
|
+
size: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
12
12
|
contentId: Schema.Union([Schema.String, Schema.Null]),
|
|
13
13
|
isInline: Schema.Boolean,
|
|
14
14
|
createdAt: Schema.String
|
|
@@ -29,7 +29,7 @@ const AttachmentsGetById200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
29
29
|
organizationId: OrganizationId,
|
|
30
30
|
filename: Schema.String,
|
|
31
31
|
contentType: Schema.String,
|
|
32
|
-
size: 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(
|
|
32
|
+
size: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
33
33
|
contentId: Schema.Union([Schema.String, Schema.Null]),
|
|
34
34
|
isInline: Schema.Boolean,
|
|
35
35
|
createdAt: Schema.String
|
|
@@ -64,7 +64,7 @@ const AttachmentsDownloadUrl200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
64
64
|
organizationId: OrganizationId,
|
|
65
65
|
filename: Schema.String,
|
|
66
66
|
contentType: Schema.String,
|
|
67
|
-
size: 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(
|
|
67
|
+
size: 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(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
68
68
|
contentId: Schema.Union([Schema.String, Schema.Null]),
|
|
69
69
|
isInline: Schema.Boolean,
|
|
70
70
|
createdAt: Schema.String
|