samva 0.6.0 → 0.8.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 +119 -33
- package/dist/client/types.gen.d.ts +643 -142
- package/dist/{client-DCM6U0-I.js → client-ByJHYp7r.js} +612 -223
- package/dist/{client-attribution-DYUSAa76.js → client-attribution-N5A784Zo.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 +35 -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 +21 -12
- 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 +2880 -1661
- 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 +24 -6
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +5 -268
- package/dist/effect/organizations.js +4 -2
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +16 -0
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +260 -38
- package/dist/effect/templates.js +7 -3
- package/dist/effect/unsubscribe-groups.d.ts +17 -0
- package/dist/effect/unsubscribe-groups.js +4 -2
- package/dist/effect/webhooks.d.ts +6 -6
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{operation-02YX3hY9.js → operation-D2nEeKBD.js} +34 -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-DAv8ZtOX.js} +376 -52
- package/dist/service-map.d.ts +45 -6
- package/package.json +7 -7
- package/dist/effect/design.d.ts +0 -209
- package/dist/effect/design.js +0 -13
package/dist/effect/email.d.ts
CHANGED
|
@@ -118,7 +118,8 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
118
118
|
readonly scheduling: {
|
|
119
119
|
readonly dueAt: string;
|
|
120
120
|
readonly expiresAt: string;
|
|
121
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
121
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
122
|
+
readonly reviewExpectedAt: string | null;
|
|
122
123
|
} | null;
|
|
123
124
|
readonly id: string;
|
|
124
125
|
readonly messageId: string;
|
|
@@ -187,6 +188,8 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
187
188
|
readonly createdAt: string;
|
|
188
189
|
readonly updatedAt: string;
|
|
189
190
|
}[];
|
|
191
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
192
|
+
readonly reviewExpectedAt: string | null;
|
|
190
193
|
}, 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>;
|
|
191
194
|
export declare const getTrackingDefaults: (_?: never) => import("effect/Effect").Effect<{
|
|
192
195
|
readonly opens: boolean;
|
|
@@ -221,6 +224,7 @@ export declare const updateRecipientTrackingPreference: (input: {
|
|
|
221
224
|
export declare const listDomains: ((input?: {
|
|
222
225
|
readonly page?: string | null | undefined;
|
|
223
226
|
readonly limit?: string | null | undefined;
|
|
227
|
+
readonly sendable?: string | null | undefined;
|
|
224
228
|
} | undefined) => import("effect/Effect").Effect<{
|
|
225
229
|
readonly items: readonly {
|
|
226
230
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
@@ -250,6 +254,7 @@ export declare const listDomains: ((input?: {
|
|
|
250
254
|
readonly pages: (input?: {
|
|
251
255
|
readonly page?: string | null | undefined;
|
|
252
256
|
readonly limit?: string | null | undefined;
|
|
257
|
+
readonly sendable?: string | null | undefined;
|
|
253
258
|
} | undefined) => import("effect/Stream").Stream<{
|
|
254
259
|
readonly items: readonly {
|
|
255
260
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
@@ -279,6 +284,7 @@ export declare const listDomains: ((input?: {
|
|
|
279
284
|
readonly items: (input?: {
|
|
280
285
|
readonly page?: string | null | undefined;
|
|
281
286
|
readonly limit?: string | null | undefined;
|
|
287
|
+
readonly sendable?: string | null | undefined;
|
|
282
288
|
} | undefined) => import("effect/Stream").Stream<{
|
|
283
289
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
284
290
|
readonly domain: string;
|
|
@@ -435,7 +441,7 @@ export declare const getDomainVerification: (input: {
|
|
|
435
441
|
readonly staleAt: string | null;
|
|
436
442
|
readonly nextRetryAt: string | null;
|
|
437
443
|
readonly status: "blocked" | "ready" | "unknown";
|
|
438
|
-
readonly reason: "domain-not-ready" | "domain-observation-stale" | "operator-paused" | "ready" | "sending-paused" | "sending-status-
|
|
444
|
+
readonly reason: "domain-not-ready" | "domain-observation-stale" | "operator-paused" | "ready" | "sending-paused" | "sending-status-unknown";
|
|
439
445
|
};
|
|
440
446
|
readonly dmarc: {
|
|
441
447
|
readonly status: "invalid" | "missing" | "multiple" | "unknown" | "valid";
|
|
@@ -550,7 +556,7 @@ export declare const advanceDomainVerification: (input: {
|
|
|
550
556
|
readonly staleAt: string | null;
|
|
551
557
|
readonly nextRetryAt: string | null;
|
|
552
558
|
readonly status: "blocked" | "ready" | "unknown";
|
|
553
|
-
readonly reason: "domain-not-ready" | "domain-observation-stale" | "operator-paused" | "ready" | "sending-paused" | "sending-status-
|
|
559
|
+
readonly reason: "domain-not-ready" | "domain-observation-stale" | "operator-paused" | "ready" | "sending-paused" | "sending-status-unknown";
|
|
554
560
|
};
|
|
555
561
|
readonly dmarc: {
|
|
556
562
|
readonly status: "invalid" | "missing" | "multiple" | "unknown" | "valid";
|
|
@@ -642,6 +648,7 @@ export declare const updateDomainConfig: (input: {
|
|
|
642
648
|
readonly replyTo?: readonly string[] | null | undefined;
|
|
643
649
|
readonly unsubscribeGroupId?: string | null | undefined;
|
|
644
650
|
readonly footerEnabled?: boolean | null | undefined;
|
|
651
|
+
readonly brandSlug?: string | null | undefined;
|
|
645
652
|
}) => import("effect/Effect").Effect<{
|
|
646
653
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
647
654
|
readonly openTracking: boolean | null;
|
|
@@ -649,6 +656,7 @@ export declare const updateDomainConfig: (input: {
|
|
|
649
656
|
readonly replyTo: readonly string[] | null;
|
|
650
657
|
readonly unsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
651
658
|
readonly footerEnabled: boolean | null;
|
|
659
|
+
readonly brandSlug: string | null;
|
|
652
660
|
}, 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>;
|
|
653
661
|
export declare const detectRegistrar: (input: {
|
|
654
662
|
readonly id: string;
|
|
@@ -1250,7 +1258,8 @@ export declare const completeDomainWarming: (input: {
|
|
|
1250
1258
|
};
|
|
1251
1259
|
}, import("./generated").ConflictError | 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>;
|
|
1252
1260
|
export declare const getOnboardingReview: (_?: never) => import("effect/Effect").Effect<{
|
|
1253
|
-
readonly decision: "approved" | "
|
|
1261
|
+
readonly decision: "approved" | "rejected" | "undecided";
|
|
1262
|
+
readonly trustTier: "established" | "probation" | "screened";
|
|
1254
1263
|
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1255
1264
|
readonly generation: number;
|
|
1256
1265
|
readonly canSend: boolean;
|
|
@@ -1277,7 +1286,8 @@ export declare const getOnboardingReview: (_?: never) => import("effect/Effect")
|
|
|
1277
1286
|
export declare const reapplyOnboardingReview: (input: {
|
|
1278
1287
|
readonly expectedGeneration: number;
|
|
1279
1288
|
}) => import("effect/Effect").Effect<{
|
|
1280
|
-
readonly decision: "approved" | "
|
|
1289
|
+
readonly decision: "approved" | "rejected" | "undecided";
|
|
1290
|
+
readonly trustTier: "established" | "probation" | "screened";
|
|
1281
1291
|
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1282
1292
|
readonly generation: number;
|
|
1283
1293
|
readonly canSend: boolean;
|
|
@@ -1306,7 +1316,8 @@ export declare const respondToOnboardingInformationRequest: (input: {
|
|
|
1306
1316
|
readonly responseText: string;
|
|
1307
1317
|
readonly evidenceMediaIds: readonly string[];
|
|
1308
1318
|
}) => import("effect/Effect").Effect<{
|
|
1309
|
-
readonly decision: "approved" | "
|
|
1319
|
+
readonly decision: "approved" | "rejected" | "undecided";
|
|
1320
|
+
readonly trustTier: "established" | "probation" | "screened";
|
|
1310
1321
|
readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
|
|
1311
1322
|
readonly generation: number;
|
|
1312
1323
|
readonly canSend: boolean;
|
package/dist/effect/email.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make, r as sendEmail, t as addEmailSender } from "../operation-
|
|
3
|
-
import {
|
|
2
|
+
import { n as make, r as sendEmail, t as addEmailSender } from "../operation-D2nEeKBD.js";
|
|
3
|
+
import { E as TrackingRecipientEmail } from "../client-ByJHYp7r.js";
|
|
4
4
|
//#region src/effect/email.ts
|
|
5
5
|
var email_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
TrackingRecipientEmail: () => TrackingRecipientEmail,
|
|
@@ -7,6 +7,14 @@ export declare const SamvaErrorMetadata: {
|
|
|
7
7
|
readonly categories: readonly ["transient"];
|
|
8
8
|
readonly retryable: true;
|
|
9
9
|
};
|
|
10
|
+
readonly BrandAddressRequiredError: {
|
|
11
|
+
readonly categories: readonly [];
|
|
12
|
+
readonly retryable: false;
|
|
13
|
+
};
|
|
14
|
+
readonly CampaignFooterRequiredError: {
|
|
15
|
+
readonly categories: readonly [];
|
|
16
|
+
readonly retryable: false;
|
|
17
|
+
};
|
|
10
18
|
readonly ConflictError: {
|
|
11
19
|
readonly categories: readonly ["conflict"];
|
|
12
20
|
readonly retryable: false;
|