samva 0.6.0 → 0.7.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/README.md +2 -2
- package/dist/{categories-4u9Az4No.js → categories-DvsHUJtX.js} +9 -1
- package/dist/client/sdk.gen.d.ts +91 -18
- package/dist/client/types.gen.d.ts +510 -94
- package/dist/{client-DCM6U0-I.js → client-5O8KsY5Z.js} +490 -165
- package/dist/{client-attribution-DYUSAa76.js → client-attribution-27MNycCV.js} +2 -2
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.d.ts +212 -0
- package/dist/effect/brands.js +24 -0
- package/dist/effect/campaigns.d.ts +1 -1
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +12 -3
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/email.d.ts +17 -6
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated-metadata.d.ts +8 -0
- package/dist/effect/generated.d.ts +2742 -1810
- package/dist/effect/index.d.ts +2 -2
- package/dist/effect/index.js +4 -4
- package/dist/effect/internal/operation.d.ts +10 -4
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +22 -6
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +0 -264
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +230 -0
- package/dist/effect/templates.js +7 -3
- package/dist/effect/unsubscribe-groups.js +1 -1
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{operation-02YX3hY9.js → operation-Cb5V9FJ7.js} +29 -5
- package/dist/promises/errors.gen.d.ts +22 -4
- package/dist/promises/index.d.ts +3 -3
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-8MaPNAam.js → promises-C2yyw-pf.js} +329 -36
- package/dist/service-map.d.ts +36 -6
- package/package.json +7 -7
- package/dist/effect/design.d.ts +0 -209
- package/dist/effect/design.js +0 -13
package/dist/effect/index.d.ts
CHANGED
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
export * as Analytics from "./analytics";
|
|
20
20
|
export * as ApiKeys from "./api-keys";
|
|
21
21
|
export * as Attachments from "./attachments";
|
|
22
|
+
export * as Brands from "./brands";
|
|
22
23
|
export * as Campaigns from "./campaigns";
|
|
23
24
|
export * as Client from "./client";
|
|
24
25
|
export * as ContactGroups from "./contact-groups";
|
|
25
26
|
export * as Contacts from "./contacts";
|
|
26
27
|
export * as Conversations from "./conversations";
|
|
27
28
|
export * as CustomFields from "./custom-fields";
|
|
28
|
-
export * as Design from "./design";
|
|
29
29
|
export * as Email from "./email";
|
|
30
30
|
export * as Media from "./media";
|
|
31
31
|
export * as Messages from "./messages";
|
|
@@ -36,7 +36,7 @@ export * as ScheduledMessages from "./scheduled-messages";
|
|
|
36
36
|
export * as Templates from "./templates";
|
|
37
37
|
export * as UnsubscribeGroups from "./unsubscribe-groups";
|
|
38
38
|
export * as Webhooks from "./webhooks";
|
|
39
|
-
export { BillingProviderError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError, DeliveryUnavailableError, } from "./generated";
|
|
39
|
+
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError, DeliveryUnavailableError, } from "./generated";
|
|
40
40
|
export { type ErrorCategory, categoriesOf, hasCategory, isAuthError, isValidationError, isNotFoundError, isConflictError, isThrottlingError, isBillingError, isTransient, isRetryable, catchCategory, catchAuthError, catchValidationError, catchNotFoundError, catchConflictError, catchThrottlingError, catchBillingError, catchTransient, } from "./categories";
|
|
41
41
|
export type { PageEnvelope } from "./pagination";
|
|
42
42
|
export type { Json as JsonValue } from "effect/Schema";
|
package/dist/effect/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-
|
|
1
|
+
import { C as ResourceNotFoundError, D as UnauthorizedError, S as RateLimitedError, _ as ForbiddenError, a as AnalyticsQueryError, b as OnboardingReviewRequiredError, c as CampaignFooterRequiredError, g as FlagDisabledError, h as ExternalServiceError, j as ValidationError, l as ConflictError, m as EmailChannelError, o as BillingProviderError, p as DeliveryUnavailableError, s as BrandAddressRequiredError, v as GatewayTimeoutError, x as PaymentRequiredError, y as InternalError } from "../client-5O8KsY5Z.js";
|
|
2
|
+
import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-DvsHUJtX.js";
|
|
3
3
|
import { t as retry_exports } from "./retry.js";
|
|
4
4
|
import { t as analytics_exports } from "./analytics.js";
|
|
5
5
|
import { t as api_keys_exports } from "./api-keys.js";
|
|
6
6
|
import { t as attachments_exports } from "./attachments.js";
|
|
7
|
+
import { t as brands_exports } from "./brands.js";
|
|
7
8
|
import { t as campaigns_exports } from "./campaigns.js";
|
|
8
9
|
import { t as client_exports } from "./client.js";
|
|
9
10
|
import { t as contact_groups_exports } from "./contact-groups.js";
|
|
10
11
|
import { t as contacts_exports } from "./contacts.js";
|
|
11
12
|
import { t as conversations_exports } from "./conversations.js";
|
|
12
13
|
import { t as custom_fields_exports } from "./custom-fields.js";
|
|
13
|
-
import { t as design_exports } from "./design.js";
|
|
14
14
|
import { t as email_exports } from "./email.js";
|
|
15
15
|
import { t as media_exports } from "./media.js";
|
|
16
16
|
import { t as messages_exports } from "./messages.js";
|
|
@@ -20,4 +20,4 @@ import { t as scheduled_messages_exports } from "./scheduled-messages.js";
|
|
|
20
20
|
import { t as templates_exports } from "./templates.js";
|
|
21
21
|
import { t as unsubscribe_groups_exports } from "./unsubscribe-groups.js";
|
|
22
22
|
import { t as webhooks_exports } from "./webhooks.js";
|
|
23
|
-
export { analytics_exports as Analytics, api_keys_exports as ApiKeys, attachments_exports as Attachments, BillingProviderError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, custom_fields_exports as CustomFields, DeliveryUnavailableError,
|
|
23
|
+
export { analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, media_exports as Media, messages_exports as Messages, OnboardingReviewRequiredError, operations_exports as Operations, organizations_exports as Organizations, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, retry_exports as Retry, scheduled_messages_exports as ScheduledMessages, templates_exports as Templates, UnauthorizedError, unsubscribe_groups_exports as UnsubscribeGroups, ValidationError, webhooks_exports as Webhooks, catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
|
@@ -195,7 +195,8 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
195
195
|
readonly scheduling: {
|
|
196
196
|
readonly dueAt: string;
|
|
197
197
|
readonly expiresAt: string;
|
|
198
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
198
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
199
|
+
readonly reviewExpectedAt: string | null;
|
|
199
200
|
} | null;
|
|
200
201
|
readonly id: string;
|
|
201
202
|
readonly messageId: string;
|
|
@@ -264,7 +265,9 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
264
265
|
readonly createdAt: string;
|
|
265
266
|
readonly updatedAt: string;
|
|
266
267
|
}[];
|
|
267
|
-
|
|
268
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
269
|
+
readonly reviewExpectedAt: string | null;
|
|
270
|
+
}, import("..").BillingProviderError | import("..").ConflictError | import("..").DeliveryUnavailableError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("..").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("..").OnboardingReviewRequiredError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError, Service>;
|
|
268
271
|
export declare const sendEmail: (input: EmailSendInput, options?: SendOptions | undefined) => Effect.Effect<{
|
|
269
272
|
readonly id: string;
|
|
270
273
|
readonly organizationId: string;
|
|
@@ -382,7 +385,8 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
382
385
|
readonly scheduling: {
|
|
383
386
|
readonly dueAt: string;
|
|
384
387
|
readonly expiresAt: string;
|
|
385
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
388
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
389
|
+
readonly reviewExpectedAt: string | null;
|
|
386
390
|
} | null;
|
|
387
391
|
readonly id: string;
|
|
388
392
|
readonly messageId: string;
|
|
@@ -451,7 +455,9 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
451
455
|
readonly createdAt: string;
|
|
452
456
|
readonly updatedAt: string;
|
|
453
457
|
}[];
|
|
454
|
-
|
|
458
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
459
|
+
readonly reviewExpectedAt: string | null;
|
|
460
|
+
}, import("..").BillingProviderError | import("..").ConflictError | import("..").DeliveryUnavailableError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("..").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("..").OnboardingReviewRequiredError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError, Service>;
|
|
455
461
|
type AddSenderRequest = NonNullable<RequestArg<FlatRaw["emailAddSender"]>>;
|
|
456
462
|
export type EmailAddSenderInput = Omit<AddSenderRequest["payload"], "replyToEmails"> & {
|
|
457
463
|
readonly replyToEmails?: ErgonomicEmailList | null | undefined;
|
package/dist/effect/media.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-Cb5V9FJ7.js";
|
|
3
3
|
//#region src/effect/media.ts
|
|
4
4
|
var media_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
complete: () => complete,
|
|
@@ -129,7 +129,8 @@ export declare const list: ((input?: {
|
|
|
129
129
|
readonly scheduling: {
|
|
130
130
|
readonly dueAt: string;
|
|
131
131
|
readonly expiresAt: string;
|
|
132
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
132
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
133
|
+
readonly reviewExpectedAt: string | null;
|
|
133
134
|
} | null;
|
|
134
135
|
readonly id: string;
|
|
135
136
|
readonly messageId: string;
|
|
@@ -198,6 +199,8 @@ export declare const list: ((input?: {
|
|
|
198
199
|
readonly createdAt: string;
|
|
199
200
|
readonly updatedAt: string;
|
|
200
201
|
}[];
|
|
202
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
203
|
+
readonly reviewExpectedAt: string | null;
|
|
201
204
|
}[];
|
|
202
205
|
readonly pagination: {
|
|
203
206
|
readonly page: number;
|
|
@@ -335,7 +338,8 @@ export declare const list: ((input?: {
|
|
|
335
338
|
readonly scheduling: {
|
|
336
339
|
readonly dueAt: string;
|
|
337
340
|
readonly expiresAt: string;
|
|
338
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
341
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
342
|
+
readonly reviewExpectedAt: string | null;
|
|
339
343
|
} | null;
|
|
340
344
|
readonly id: string;
|
|
341
345
|
readonly messageId: string;
|
|
@@ -404,6 +408,8 @@ export declare const list: ((input?: {
|
|
|
404
408
|
readonly createdAt: string;
|
|
405
409
|
readonly updatedAt: string;
|
|
406
410
|
}[];
|
|
411
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
412
|
+
readonly reviewExpectedAt: string | null;
|
|
407
413
|
}[];
|
|
408
414
|
readonly pagination: {
|
|
409
415
|
readonly page: number;
|
|
@@ -540,7 +546,8 @@ export declare const list: ((input?: {
|
|
|
540
546
|
readonly scheduling: {
|
|
541
547
|
readonly dueAt: string;
|
|
542
548
|
readonly expiresAt: string;
|
|
543
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
549
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
550
|
+
readonly reviewExpectedAt: string | null;
|
|
544
551
|
} | null;
|
|
545
552
|
readonly id: string;
|
|
546
553
|
readonly messageId: string;
|
|
@@ -609,6 +616,8 @@ export declare const list: ((input?: {
|
|
|
609
616
|
readonly createdAt: string;
|
|
610
617
|
readonly updatedAt: string;
|
|
611
618
|
}[];
|
|
619
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
620
|
+
readonly reviewExpectedAt: string | null;
|
|
612
621
|
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
613
622
|
};
|
|
614
623
|
export declare const send: (input: MessageSendInput, options?: SendOptions | undefined) => import("effect/Effect").Effect<{
|
|
@@ -728,7 +737,8 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
|
|
|
728
737
|
readonly scheduling: {
|
|
729
738
|
readonly dueAt: string;
|
|
730
739
|
readonly expiresAt: string;
|
|
731
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
740
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
741
|
+
readonly reviewExpectedAt: string | null;
|
|
732
742
|
} | null;
|
|
733
743
|
readonly id: string;
|
|
734
744
|
readonly messageId: string;
|
|
@@ -797,6 +807,8 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
|
|
|
797
807
|
readonly createdAt: string;
|
|
798
808
|
readonly updatedAt: string;
|
|
799
809
|
}[];
|
|
810
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
811
|
+
readonly reviewExpectedAt: string | null;
|
|
800
812
|
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").DeliveryUnavailableError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
801
813
|
export declare const validateEmail: (input: {
|
|
802
814
|
readonly conversationId?: string | null | undefined;
|
|
@@ -1039,7 +1051,8 @@ export declare const get: (input: {
|
|
|
1039
1051
|
readonly scheduling: {
|
|
1040
1052
|
readonly dueAt: string;
|
|
1041
1053
|
readonly expiresAt: string;
|
|
1042
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
1054
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
1055
|
+
readonly reviewExpectedAt: string | null;
|
|
1043
1056
|
} | null;
|
|
1044
1057
|
readonly id: string;
|
|
1045
1058
|
readonly messageId: string;
|
|
@@ -1108,6 +1121,8 @@ export declare const get: (input: {
|
|
|
1108
1121
|
readonly createdAt: string;
|
|
1109
1122
|
readonly updatedAt: string;
|
|
1110
1123
|
}[];
|
|
1124
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
1125
|
+
readonly reviewExpectedAt: string | null;
|
|
1111
1126
|
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1112
1127
|
export declare const getEmail: (input: {
|
|
1113
1128
|
readonly id: string;
|
|
@@ -1118,7 +1133,8 @@ export declare const getEmail: (input: {
|
|
|
1118
1133
|
readonly scheduling: {
|
|
1119
1134
|
readonly dueAt: string;
|
|
1120
1135
|
readonly expiresAt: string;
|
|
1121
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
1136
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
1137
|
+
readonly reviewExpectedAt: string | null;
|
|
1122
1138
|
} | null;
|
|
1123
1139
|
readonly id: string;
|
|
1124
1140
|
readonly messageId: string;
|
package/dist/effect/messages.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { i as sendMessage, n as make } from "../operation-
|
|
2
|
+
import { i as sendMessage, n as make } from "../operation-Cb5V9FJ7.js";
|
|
3
3
|
//#region src/effect/messages.ts
|
|
4
4
|
var messages_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
get: () => get,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-Cb5V9FJ7.js";
|
|
3
3
|
//#region src/effect/operations.ts
|
|
4
4
|
var operations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
get: () => get,
|
|
@@ -14,72 +14,6 @@ export declare const create: (input: {
|
|
|
14
14
|
readonly metadata: {
|
|
15
15
|
readonly [x: string]: import("./generated").JsonValue;
|
|
16
16
|
} | null;
|
|
17
|
-
readonly design: {
|
|
18
|
-
readonly theme?: {
|
|
19
|
-
readonly colors?: {
|
|
20
|
-
readonly [x: string]: string;
|
|
21
|
-
} | null;
|
|
22
|
-
readonly colorsDark?: {
|
|
23
|
-
readonly [x: string]: string;
|
|
24
|
-
} | null;
|
|
25
|
-
readonly radiusPx?: {
|
|
26
|
-
readonly [x: string]: number;
|
|
27
|
-
} | null;
|
|
28
|
-
readonly fontFamilies?: {
|
|
29
|
-
readonly [x: string]: {
|
|
30
|
-
readonly source: "custom" | "google" | "system";
|
|
31
|
-
readonly family: string;
|
|
32
|
-
readonly fallback: string;
|
|
33
|
-
readonly faces?: readonly {
|
|
34
|
-
readonly weight: number;
|
|
35
|
-
readonly style: "italic" | "normal";
|
|
36
|
-
readonly src: string;
|
|
37
|
-
readonly unicodeRange?: string | null;
|
|
38
|
-
}[] | null;
|
|
39
|
-
};
|
|
40
|
-
} | null;
|
|
41
|
-
readonly fontWeights?: {
|
|
42
|
-
readonly [x: string]: number;
|
|
43
|
-
} | null;
|
|
44
|
-
readonly text?: {
|
|
45
|
-
readonly [x: string]: {
|
|
46
|
-
readonly sizePx: number;
|
|
47
|
-
readonly lineHeightPx: number;
|
|
48
|
-
};
|
|
49
|
-
} | null;
|
|
50
|
-
readonly leading?: {
|
|
51
|
-
readonly [x: string]: number;
|
|
52
|
-
} | null;
|
|
53
|
-
readonly spacingPx?: number | null;
|
|
54
|
-
readonly containerPx?: {
|
|
55
|
-
readonly [x: string]: number;
|
|
56
|
-
} | null;
|
|
57
|
-
readonly tracking?: {
|
|
58
|
-
readonly [x: string]: number;
|
|
59
|
-
} | null;
|
|
60
|
-
} | null;
|
|
61
|
-
readonly assets?: {
|
|
62
|
-
readonly logoUrl?: string | null;
|
|
63
|
-
readonly logoDarkUrl?: string | null;
|
|
64
|
-
readonly iconUrl?: string | null;
|
|
65
|
-
} | null;
|
|
66
|
-
readonly footer?: {
|
|
67
|
-
readonly companyName?: string | null;
|
|
68
|
-
readonly address?: {
|
|
69
|
-
readonly street1: string;
|
|
70
|
-
readonly street2?: string | null;
|
|
71
|
-
readonly city: string;
|
|
72
|
-
readonly region: string;
|
|
73
|
-
readonly postalCode: string;
|
|
74
|
-
readonly country: string;
|
|
75
|
-
} | null;
|
|
76
|
-
readonly socialLinks?: readonly {
|
|
77
|
-
readonly label: string;
|
|
78
|
-
readonly url: string;
|
|
79
|
-
}[] | null;
|
|
80
|
-
readonly customHtml?: string | null;
|
|
81
|
-
} | null;
|
|
82
|
-
} | null;
|
|
83
17
|
readonly replyToDefault: readonly string[] | null;
|
|
84
18
|
readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
85
19
|
readonly emailFooterEnabledDefault: boolean | null;
|
|
@@ -106,72 +40,6 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
|
106
40
|
readonly metadata: {
|
|
107
41
|
readonly [x: string]: import("./generated").JsonValue;
|
|
108
42
|
} | null;
|
|
109
|
-
readonly design: {
|
|
110
|
-
readonly theme?: {
|
|
111
|
-
readonly colors?: {
|
|
112
|
-
readonly [x: string]: string;
|
|
113
|
-
} | null;
|
|
114
|
-
readonly colorsDark?: {
|
|
115
|
-
readonly [x: string]: string;
|
|
116
|
-
} | null;
|
|
117
|
-
readonly radiusPx?: {
|
|
118
|
-
readonly [x: string]: number;
|
|
119
|
-
} | null;
|
|
120
|
-
readonly fontFamilies?: {
|
|
121
|
-
readonly [x: string]: {
|
|
122
|
-
readonly source: "custom" | "google" | "system";
|
|
123
|
-
readonly family: string;
|
|
124
|
-
readonly fallback: string;
|
|
125
|
-
readonly faces?: readonly {
|
|
126
|
-
readonly weight: number;
|
|
127
|
-
readonly style: "italic" | "normal";
|
|
128
|
-
readonly src: string;
|
|
129
|
-
readonly unicodeRange?: string | null;
|
|
130
|
-
}[] | null;
|
|
131
|
-
};
|
|
132
|
-
} | null;
|
|
133
|
-
readonly fontWeights?: {
|
|
134
|
-
readonly [x: string]: number;
|
|
135
|
-
} | null;
|
|
136
|
-
readonly text?: {
|
|
137
|
-
readonly [x: string]: {
|
|
138
|
-
readonly sizePx: number;
|
|
139
|
-
readonly lineHeightPx: number;
|
|
140
|
-
};
|
|
141
|
-
} | null;
|
|
142
|
-
readonly leading?: {
|
|
143
|
-
readonly [x: string]: number;
|
|
144
|
-
} | null;
|
|
145
|
-
readonly spacingPx?: number | null;
|
|
146
|
-
readonly containerPx?: {
|
|
147
|
-
readonly [x: string]: number;
|
|
148
|
-
} | null;
|
|
149
|
-
readonly tracking?: {
|
|
150
|
-
readonly [x: string]: number;
|
|
151
|
-
} | null;
|
|
152
|
-
} | null;
|
|
153
|
-
readonly assets?: {
|
|
154
|
-
readonly logoUrl?: string | null;
|
|
155
|
-
readonly logoDarkUrl?: string | null;
|
|
156
|
-
readonly iconUrl?: string | null;
|
|
157
|
-
} | null;
|
|
158
|
-
readonly footer?: {
|
|
159
|
-
readonly companyName?: string | null;
|
|
160
|
-
readonly address?: {
|
|
161
|
-
readonly street1: string;
|
|
162
|
-
readonly street2?: string | null;
|
|
163
|
-
readonly city: string;
|
|
164
|
-
readonly region: string;
|
|
165
|
-
readonly postalCode: string;
|
|
166
|
-
readonly country: string;
|
|
167
|
-
} | null;
|
|
168
|
-
readonly socialLinks?: readonly {
|
|
169
|
-
readonly label: string;
|
|
170
|
-
readonly url: string;
|
|
171
|
-
}[] | null;
|
|
172
|
-
readonly customHtml?: string | null;
|
|
173
|
-
} | null;
|
|
174
|
-
} | null;
|
|
175
43
|
readonly replyToDefault: readonly string[] | null;
|
|
176
44
|
readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
177
45
|
readonly emailFooterEnabledDefault: boolean | null;
|
|
@@ -217,72 +85,6 @@ export declare const update: (input?: {
|
|
|
217
85
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
218
86
|
} | null | undefined;
|
|
219
87
|
} | null | undefined;
|
|
220
|
-
readonly design?: {
|
|
221
|
-
readonly theme?: {
|
|
222
|
-
readonly colors?: {
|
|
223
|
-
readonly [x: string]: string | undefined;
|
|
224
|
-
} | null | undefined;
|
|
225
|
-
readonly colorsDark?: {
|
|
226
|
-
readonly [x: string]: string | undefined;
|
|
227
|
-
} | null | undefined;
|
|
228
|
-
readonly radiusPx?: {
|
|
229
|
-
readonly [x: string]: number | undefined;
|
|
230
|
-
} | null | undefined;
|
|
231
|
-
readonly fontFamilies?: {
|
|
232
|
-
readonly [x: string]: {
|
|
233
|
-
readonly source: string;
|
|
234
|
-
readonly family: string;
|
|
235
|
-
readonly fallback: string;
|
|
236
|
-
readonly faces?: readonly {
|
|
237
|
-
readonly weight: number;
|
|
238
|
-
readonly style: string;
|
|
239
|
-
readonly src: string;
|
|
240
|
-
readonly unicodeRange?: string | null | undefined;
|
|
241
|
-
}[] | null | undefined;
|
|
242
|
-
} | undefined;
|
|
243
|
-
} | null | undefined;
|
|
244
|
-
readonly fontWeights?: {
|
|
245
|
-
readonly [x: string]: number | undefined;
|
|
246
|
-
} | null | undefined;
|
|
247
|
-
readonly text?: {
|
|
248
|
-
readonly [x: string]: {
|
|
249
|
-
readonly sizePx: number;
|
|
250
|
-
readonly lineHeightPx: number;
|
|
251
|
-
} | undefined;
|
|
252
|
-
} | null | undefined;
|
|
253
|
-
readonly leading?: {
|
|
254
|
-
readonly [x: string]: number | undefined;
|
|
255
|
-
} | null | undefined;
|
|
256
|
-
readonly spacingPx?: number | null | undefined;
|
|
257
|
-
readonly containerPx?: {
|
|
258
|
-
readonly [x: string]: number | undefined;
|
|
259
|
-
} | null | undefined;
|
|
260
|
-
readonly tracking?: {
|
|
261
|
-
readonly [x: string]: number | undefined;
|
|
262
|
-
} | null | undefined;
|
|
263
|
-
} | null | undefined;
|
|
264
|
-
readonly assets?: {
|
|
265
|
-
readonly logoUrl?: string | null | undefined;
|
|
266
|
-
readonly logoDarkUrl?: string | null | undefined;
|
|
267
|
-
readonly iconUrl?: string | null | undefined;
|
|
268
|
-
} | null | undefined;
|
|
269
|
-
readonly footer?: {
|
|
270
|
-
readonly companyName?: string | null | undefined;
|
|
271
|
-
readonly address?: {
|
|
272
|
-
readonly street1: string;
|
|
273
|
-
readonly street2?: string | null | undefined;
|
|
274
|
-
readonly city: string;
|
|
275
|
-
readonly region: string;
|
|
276
|
-
readonly postalCode: string;
|
|
277
|
-
readonly country: string;
|
|
278
|
-
} | null | undefined;
|
|
279
|
-
readonly socialLinks?: readonly {
|
|
280
|
-
readonly label: string;
|
|
281
|
-
readonly url: string;
|
|
282
|
-
}[] | null | undefined;
|
|
283
|
-
readonly customHtml?: string | null | undefined;
|
|
284
|
-
} | null | undefined;
|
|
285
|
-
} | null | undefined;
|
|
286
88
|
readonly replyToDefault?: readonly string[] | null | undefined;
|
|
287
89
|
readonly defaultUnsubscribeGroupId?: string | null | undefined;
|
|
288
90
|
readonly emailFooterEnabledDefault?: boolean | null | undefined;
|
|
@@ -300,72 +102,6 @@ export declare const update: (input?: {
|
|
|
300
102
|
readonly metadata: {
|
|
301
103
|
readonly [x: string]: import("./generated").JsonValue;
|
|
302
104
|
} | null;
|
|
303
|
-
readonly design: {
|
|
304
|
-
readonly theme?: {
|
|
305
|
-
readonly colors?: {
|
|
306
|
-
readonly [x: string]: string;
|
|
307
|
-
} | null;
|
|
308
|
-
readonly colorsDark?: {
|
|
309
|
-
readonly [x: string]: string;
|
|
310
|
-
} | null;
|
|
311
|
-
readonly radiusPx?: {
|
|
312
|
-
readonly [x: string]: number;
|
|
313
|
-
} | null;
|
|
314
|
-
readonly fontFamilies?: {
|
|
315
|
-
readonly [x: string]: {
|
|
316
|
-
readonly source: "custom" | "google" | "system";
|
|
317
|
-
readonly family: string;
|
|
318
|
-
readonly fallback: string;
|
|
319
|
-
readonly faces?: readonly {
|
|
320
|
-
readonly weight: number;
|
|
321
|
-
readonly style: "italic" | "normal";
|
|
322
|
-
readonly src: string;
|
|
323
|
-
readonly unicodeRange?: string | null;
|
|
324
|
-
}[] | null;
|
|
325
|
-
};
|
|
326
|
-
} | null;
|
|
327
|
-
readonly fontWeights?: {
|
|
328
|
-
readonly [x: string]: number;
|
|
329
|
-
} | null;
|
|
330
|
-
readonly text?: {
|
|
331
|
-
readonly [x: string]: {
|
|
332
|
-
readonly sizePx: number;
|
|
333
|
-
readonly lineHeightPx: number;
|
|
334
|
-
};
|
|
335
|
-
} | null;
|
|
336
|
-
readonly leading?: {
|
|
337
|
-
readonly [x: string]: number;
|
|
338
|
-
} | null;
|
|
339
|
-
readonly spacingPx?: number | null;
|
|
340
|
-
readonly containerPx?: {
|
|
341
|
-
readonly [x: string]: number;
|
|
342
|
-
} | null;
|
|
343
|
-
readonly tracking?: {
|
|
344
|
-
readonly [x: string]: number;
|
|
345
|
-
} | null;
|
|
346
|
-
} | null;
|
|
347
|
-
readonly assets?: {
|
|
348
|
-
readonly logoUrl?: string | null;
|
|
349
|
-
readonly logoDarkUrl?: string | null;
|
|
350
|
-
readonly iconUrl?: string | null;
|
|
351
|
-
} | null;
|
|
352
|
-
readonly footer?: {
|
|
353
|
-
readonly companyName?: string | null;
|
|
354
|
-
readonly address?: {
|
|
355
|
-
readonly street1: string;
|
|
356
|
-
readonly street2?: string | null;
|
|
357
|
-
readonly city: string;
|
|
358
|
-
readonly region: string;
|
|
359
|
-
readonly postalCode: string;
|
|
360
|
-
readonly country: string;
|
|
361
|
-
} | null;
|
|
362
|
-
readonly socialLinks?: readonly {
|
|
363
|
-
readonly label: string;
|
|
364
|
-
readonly url: string;
|
|
365
|
-
}[] | null;
|
|
366
|
-
readonly customHtml?: string | null;
|
|
367
|
-
} | null;
|
|
368
|
-
} | null;
|
|
369
105
|
readonly replyToDefault: readonly string[] | null;
|
|
370
106
|
readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
371
107
|
readonly emailFooterEnabledDefault: boolean | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-Cb5V9FJ7.js";
|
|
3
3
|
//#region src/effect/organizations.ts
|
|
4
4
|
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|
package/dist/effect/retry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { h as isRetryable } from "../categories-
|
|
2
|
+
import { h as isRetryable } from "../categories-DvsHUJtX.js";
|
|
3
3
|
import { Context, Duration, Effect, Layer, Option, Random, Schedule } from "effect";
|
|
4
4
|
import * as Predicate$1 from "effect/Predicate";
|
|
5
5
|
//#region src/effect/retry.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-Cb5V9FJ7.js";
|
|
3
3
|
//#region src/effect/scheduled-messages.ts
|
|
4
4
|
var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
cancel: () => cancel,
|