samva 0.4.0 → 0.5.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/dist/{categories-CsUa8ojo.js → categories-B9Nw2v_F.js} +5 -1
- package/dist/client/sdk.gen.d.ts +150 -11
- package/dist/client/types.gen.d.ts +893 -37
- package/dist/{client-BmZK_uCt.js → client-B7gEkvEq.js} +952 -110
- package/dist/{client-attribution-BslSOa_8.js → client-attribution-B2yJBXdZ.js} +2 -2
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +16 -0
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +15 -0
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +700 -2
- package/dist/effect/email.js +27 -3
- package/dist/effect/generated-metadata.d.ts +4 -0
- package/dist/effect/generated.d.ts +4102 -359
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/operation.d.ts +13 -3
- package/dist/effect/media.d.ts +3 -3
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +180 -1
- package/dist/effect/messages.js +5 -3
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +90 -6
- package/dist/effect/scheduled-messages.js +5 -3
- package/dist/effect/templates.d.ts +12 -0
- package/dist/effect/templates.js +2 -2
- package/dist/effect/webhooks.d.ts +40 -6
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{operation-B1knNlxk.js → operation-B4FjN6wq.js} +50 -2
- package/dist/promises/errors.gen.d.ts +21 -2
- package/dist/promises/index.d.ts +1 -0
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-n1opem5V.js → promises-CP_nxUus.js} +502 -11
- package/dist/service-map.d.ts +66 -0
- package/package.json +3 -3
package/dist/effect/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ValidationError, a as BillingProviderError, b as UnauthorizedError, d as FlagDisabledError, f as ForbiddenError, g as ResourceNotFoundError, h as RateLimitedError, l as EmailChannelError, m as PaymentRequiredError, o as ConflictError, p as InternalError, u as ExternalServiceError, w as WebhookEnqueueError } from "../client-
|
|
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 ValidationError, a as BillingProviderError, b as UnauthorizedError, d as FlagDisabledError, f as ForbiddenError, g as ResourceNotFoundError, h as RateLimitedError, l as EmailChannelError, m as PaymentRequiredError, o as ConflictError, p as InternalError, u as ExternalServiceError, w as WebhookEnqueueError } from "../client-B7gEkvEq.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-B9Nw2v_F.js";
|
|
3
3
|
import { t as retry_exports } from "./retry.js";
|
|
4
4
|
import { t as api_keys_exports } from "./api-keys.js";
|
|
5
5
|
import { t as campaigns_exports } from "./campaigns.js";
|
|
@@ -28,7 +28,7 @@ type DirectOperation<Name extends SdkOperation> = {} extends Input<Name> ? (inpu
|
|
|
28
28
|
type OperationFunction<Name extends SdkOperation> = (typeof SDK_OPERATION_CALLS)[Name] extends {
|
|
29
29
|
readonly kind: "none";
|
|
30
30
|
} ? (_?: never) => OperationResult<Name> : (typeof SDK_OPERATION_CALLS)[Name] extends {
|
|
31
|
-
readonly kind: "idempotentPayload";
|
|
31
|
+
readonly kind: "idempotentPayload" | "idempotentPath";
|
|
32
32
|
} ? (input: Input<Name> & IdempotencyKeyField<NonNullable<RequestArg<FlatRaw[Name]>>>) => OperationResult<Name> : DirectOperation<Name>;
|
|
33
33
|
type EnvelopeItem<A> = A extends {
|
|
34
34
|
readonly items: ReadonlyArray<infer Item>;
|
|
@@ -155,6 +155,11 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
155
155
|
} | null;
|
|
156
156
|
}[];
|
|
157
157
|
readonly deliveries: readonly {
|
|
158
|
+
readonly scheduling: {
|
|
159
|
+
readonly dueAt: string;
|
|
160
|
+
readonly expiresAt: string;
|
|
161
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
162
|
+
} | null;
|
|
158
163
|
readonly id: string;
|
|
159
164
|
readonly messageId: string;
|
|
160
165
|
readonly recipientId: string | null;
|
|
@@ -215,7 +220,7 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
215
220
|
readonly createdAt: string;
|
|
216
221
|
readonly updatedAt: string;
|
|
217
222
|
}[];
|
|
218
|
-
}, import("..").BillingProviderError | import("..").ConflictError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError | import("..").WebhookEnqueueError, Service>;
|
|
223
|
+
}, import("..").BillingProviderError | import("..").ConflictError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("../generated").OnboardingReviewRequiredError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError | import("..").WebhookEnqueueError, Service>;
|
|
219
224
|
export declare const sendEmail: (input: EmailSendInput, options?: SendOptions | undefined) => Effect.Effect<{
|
|
220
225
|
readonly id: string;
|
|
221
226
|
readonly organizationId: string;
|
|
@@ -293,6 +298,11 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
293
298
|
} | null;
|
|
294
299
|
}[];
|
|
295
300
|
readonly deliveries: readonly {
|
|
301
|
+
readonly scheduling: {
|
|
302
|
+
readonly dueAt: string;
|
|
303
|
+
readonly expiresAt: string;
|
|
304
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
305
|
+
} | null;
|
|
296
306
|
readonly id: string;
|
|
297
307
|
readonly messageId: string;
|
|
298
308
|
readonly recipientId: string | null;
|
|
@@ -353,7 +363,7 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
353
363
|
readonly createdAt: string;
|
|
354
364
|
readonly updatedAt: string;
|
|
355
365
|
}[];
|
|
356
|
-
}, import("..").BillingProviderError | import("..").ConflictError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError | import("..").WebhookEnqueueError, Service>;
|
|
366
|
+
}, import("..").BillingProviderError | import("..").ConflictError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("../generated").OnboardingReviewRequiredError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError | import("..").WebhookEnqueueError, Service>;
|
|
357
367
|
type AddSenderRequest = NonNullable<RequestArg<FlatRaw["emailAddSender"]>>;
|
|
358
368
|
export type EmailAddSenderInput = Omit<AddSenderRequest["payload"], "replyToEmails"> & {
|
|
359
369
|
readonly replyToEmails?: ErgonomicEmailList | null | undefined;
|
package/dist/effect/media.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const create: (input: {
|
|
|
14
14
|
readonly width: number | null;
|
|
15
15
|
readonly height: number | null;
|
|
16
16
|
readonly durationMs: number | null;
|
|
17
|
-
readonly purpose: "attachment" | "avatar";
|
|
17
|
+
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
18
18
|
readonly checksumSha256: string | null;
|
|
19
19
|
readonly expiresAt: string | null;
|
|
20
20
|
readonly createdAt: string;
|
|
@@ -40,7 +40,7 @@ export declare const getById: (input: {
|
|
|
40
40
|
readonly width: number | null;
|
|
41
41
|
readonly height: number | null;
|
|
42
42
|
readonly durationMs: number | null;
|
|
43
|
-
readonly purpose: "attachment" | "avatar";
|
|
43
|
+
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
44
44
|
readonly checksumSha256: string | null;
|
|
45
45
|
readonly expiresAt: string | null;
|
|
46
46
|
readonly createdAt: string;
|
|
@@ -64,7 +64,7 @@ export declare const complete: (input: {
|
|
|
64
64
|
readonly width: number | null;
|
|
65
65
|
readonly height: number | null;
|
|
66
66
|
readonly durationMs: number | null;
|
|
67
|
-
readonly purpose: "attachment" | "avatar";
|
|
67
|
+
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
68
68
|
readonly checksumSha256: string | null;
|
|
69
69
|
readonly expiresAt: string | null;
|
|
70
70
|
readonly createdAt: string;
|
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-B4FjN6wq.js";
|
|
3
3
|
//#region src/effect/media.ts
|
|
4
4
|
var media_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
complete: () => complete,
|
|
@@ -88,6 +88,11 @@ export declare const list: ((input?: {
|
|
|
88
88
|
} | null;
|
|
89
89
|
}[];
|
|
90
90
|
readonly deliveries: readonly {
|
|
91
|
+
readonly scheduling: {
|
|
92
|
+
readonly dueAt: string;
|
|
93
|
+
readonly expiresAt: string;
|
|
94
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
95
|
+
} | null;
|
|
91
96
|
readonly id: string;
|
|
92
97
|
readonly messageId: string;
|
|
93
98
|
readonly recipientId: string | null;
|
|
@@ -244,6 +249,11 @@ export declare const list: ((input?: {
|
|
|
244
249
|
} | null;
|
|
245
250
|
}[];
|
|
246
251
|
readonly deliveries: readonly {
|
|
252
|
+
readonly scheduling: {
|
|
253
|
+
readonly dueAt: string;
|
|
254
|
+
readonly expiresAt: string;
|
|
255
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
256
|
+
} | null;
|
|
247
257
|
readonly id: string;
|
|
248
258
|
readonly messageId: string;
|
|
249
259
|
readonly recipientId: string | null;
|
|
@@ -399,6 +409,11 @@ export declare const list: ((input?: {
|
|
|
399
409
|
} | null;
|
|
400
410
|
}[];
|
|
401
411
|
readonly deliveries: readonly {
|
|
412
|
+
readonly scheduling: {
|
|
413
|
+
readonly dueAt: string;
|
|
414
|
+
readonly expiresAt: string;
|
|
415
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
416
|
+
} | null;
|
|
402
417
|
readonly id: string;
|
|
403
418
|
readonly messageId: string;
|
|
404
419
|
readonly recipientId: string | null;
|
|
@@ -538,6 +553,11 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
|
|
|
538
553
|
} | null;
|
|
539
554
|
}[];
|
|
540
555
|
readonly deliveries: readonly {
|
|
556
|
+
readonly scheduling: {
|
|
557
|
+
readonly dueAt: string;
|
|
558
|
+
readonly expiresAt: string;
|
|
559
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
560
|
+
} | null;
|
|
541
561
|
readonly id: string;
|
|
542
562
|
readonly messageId: string;
|
|
543
563
|
readonly recipientId: string | null;
|
|
@@ -598,7 +618,129 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
|
|
|
598
618
|
readonly createdAt: string;
|
|
599
619
|
readonly updatedAt: string;
|
|
600
620
|
}[];
|
|
601
|
-
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("./generated").WebhookEnqueueError, import("./client").Service>;
|
|
621
|
+
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | 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("./generated").WebhookEnqueueError, import("./client").Service>;
|
|
622
|
+
export declare const validateEmail: (input: {
|
|
623
|
+
readonly conversationId?: string | null | undefined;
|
|
624
|
+
readonly metadata?: {
|
|
625
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
626
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
627
|
+
} | null)[] | {
|
|
628
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
629
|
+
} | null)[] | {
|
|
630
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
631
|
+
} | null)[] | {
|
|
632
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
633
|
+
} | null)[] | {
|
|
634
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
635
|
+
} | null)[] | {
|
|
636
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
637
|
+
} | null)[] | {
|
|
638
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
639
|
+
} | null)[] | {
|
|
640
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
641
|
+
} | null)[] | {
|
|
642
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
643
|
+
} | null)[] | {
|
|
644
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
645
|
+
} | null)[] | {
|
|
646
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
647
|
+
} | null)[] | {
|
|
648
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
649
|
+
} | null | undefined;
|
|
650
|
+
} | null | undefined;
|
|
651
|
+
readonly channel: string;
|
|
652
|
+
readonly to: readonly ({
|
|
653
|
+
readonly contactId: string;
|
|
654
|
+
} | {
|
|
655
|
+
readonly email: string;
|
|
656
|
+
readonly name?: string | null | undefined;
|
|
657
|
+
readonly displayName?: string | null | undefined;
|
|
658
|
+
})[];
|
|
659
|
+
readonly cc?: readonly ({
|
|
660
|
+
readonly contactId: string;
|
|
661
|
+
} | {
|
|
662
|
+
readonly email: string;
|
|
663
|
+
readonly name?: string | null | undefined;
|
|
664
|
+
readonly displayName?: string | null | undefined;
|
|
665
|
+
})[] | null | undefined;
|
|
666
|
+
readonly bcc?: readonly ({
|
|
667
|
+
readonly contactId: string;
|
|
668
|
+
} | {
|
|
669
|
+
readonly email: string;
|
|
670
|
+
readonly name?: string | null | undefined;
|
|
671
|
+
readonly displayName?: string | null | undefined;
|
|
672
|
+
})[] | null | undefined;
|
|
673
|
+
readonly from?: {
|
|
674
|
+
readonly email: string;
|
|
675
|
+
readonly name?: string | null | undefined;
|
|
676
|
+
} | null | undefined;
|
|
677
|
+
readonly email: {
|
|
678
|
+
readonly subject?: string | null | undefined;
|
|
679
|
+
readonly html?: string | null | undefined;
|
|
680
|
+
readonly text?: string | null | undefined;
|
|
681
|
+
readonly attachments?: readonly {
|
|
682
|
+
readonly filename: string;
|
|
683
|
+
readonly content?: string | null | undefined;
|
|
684
|
+
readonly mediaId?: string | null | undefined;
|
|
685
|
+
readonly contentType: string;
|
|
686
|
+
readonly size: number;
|
|
687
|
+
}[] | null | undefined;
|
|
688
|
+
readonly publicationId?: string | undefined;
|
|
689
|
+
readonly inputContractId?: string | undefined;
|
|
690
|
+
readonly templateId?: string | null | undefined;
|
|
691
|
+
readonly templateSlug?: string | null | undefined;
|
|
692
|
+
readonly templateData?: {
|
|
693
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
694
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
695
|
+
} | null)[] | {
|
|
696
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
697
|
+
} | null)[] | {
|
|
698
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
699
|
+
} | null)[] | {
|
|
700
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
701
|
+
} | null)[] | {
|
|
702
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
703
|
+
} | null)[] | {
|
|
704
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
705
|
+
} | null)[] | {
|
|
706
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
707
|
+
} | null)[] | {
|
|
708
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
709
|
+
} | null)[] | {
|
|
710
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
711
|
+
} | null)[] | {
|
|
712
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
713
|
+
} | null)[] | {
|
|
714
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
715
|
+
} | null)[] | {
|
|
716
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
717
|
+
} | null | undefined;
|
|
718
|
+
} | null | undefined;
|
|
719
|
+
readonly inReplyToMessageId?: string | null | undefined;
|
|
720
|
+
readonly replyTo?: readonly string[] | null | undefined;
|
|
721
|
+
readonly unsubscribeGroupId?: string | null | undefined;
|
|
722
|
+
readonly tracking?: {
|
|
723
|
+
readonly opens?: boolean | undefined;
|
|
724
|
+
readonly clicks?: boolean | undefined;
|
|
725
|
+
} | undefined;
|
|
726
|
+
readonly footer?: {
|
|
727
|
+
readonly enabled?: boolean | null | undefined;
|
|
728
|
+
} | undefined;
|
|
729
|
+
};
|
|
730
|
+
}) => import("effect/Effect").Effect<{
|
|
731
|
+
readonly valid: true;
|
|
732
|
+
readonly from: {
|
|
733
|
+
readonly email: string;
|
|
734
|
+
readonly name: string | null;
|
|
735
|
+
};
|
|
736
|
+
readonly recipientCount: number;
|
|
737
|
+
readonly content: {
|
|
738
|
+
readonly source: "inline" | "template";
|
|
739
|
+
readonly subject: string;
|
|
740
|
+
readonly hasHtml: boolean;
|
|
741
|
+
readonly hasText: boolean;
|
|
742
|
+
};
|
|
743
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
602
744
|
export declare const get: (input: {
|
|
603
745
|
readonly id: string;
|
|
604
746
|
}) => import("effect/Effect").Effect<{
|
|
@@ -678,6 +820,11 @@ export declare const get: (input: {
|
|
|
678
820
|
} | null;
|
|
679
821
|
}[];
|
|
680
822
|
readonly deliveries: readonly {
|
|
823
|
+
readonly scheduling: {
|
|
824
|
+
readonly dueAt: string;
|
|
825
|
+
readonly expiresAt: string;
|
|
826
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
827
|
+
} | null;
|
|
681
828
|
readonly id: string;
|
|
682
829
|
readonly messageId: string;
|
|
683
830
|
readonly recipientId: string | null;
|
|
@@ -744,6 +891,38 @@ export declare const getEmail: (input: {
|
|
|
744
891
|
readonly includeS3Urls?: string | null | undefined;
|
|
745
892
|
readonly urlExpiresIn?: string | null | undefined;
|
|
746
893
|
}) => import("effect/Effect").Effect<{
|
|
894
|
+
readonly deliveries: readonly {
|
|
895
|
+
readonly scheduling: {
|
|
896
|
+
readonly dueAt: string;
|
|
897
|
+
readonly expiresAt: string;
|
|
898
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
899
|
+
} | null;
|
|
900
|
+
readonly id: string;
|
|
901
|
+
readonly messageId: string;
|
|
902
|
+
readonly recipientId: string | null;
|
|
903
|
+
readonly channel: "email";
|
|
904
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
905
|
+
readonly attemptCount: number;
|
|
906
|
+
readonly maxAttempts: number;
|
|
907
|
+
readonly queuedAt: string | null;
|
|
908
|
+
readonly claimedAt: string | null;
|
|
909
|
+
readonly lastAttemptAt: string | null;
|
|
910
|
+
readonly nextRetryAt: string | null;
|
|
911
|
+
readonly sentAt: string | null;
|
|
912
|
+
readonly deliveredAt: string | null;
|
|
913
|
+
readonly readAt: string | null;
|
|
914
|
+
readonly failedAt: string | null;
|
|
915
|
+
readonly terminalAt: string | null;
|
|
916
|
+
readonly errorCode: string | null;
|
|
917
|
+
readonly errorMessage: string | null;
|
|
918
|
+
readonly errorDetails: import("./generated").JsonValue;
|
|
919
|
+
readonly cost: string;
|
|
920
|
+
readonly currency: string;
|
|
921
|
+
readonly idempotencyKey: string | null;
|
|
922
|
+
readonly metadata: import("./generated").JsonValue;
|
|
923
|
+
readonly createdAt: string;
|
|
924
|
+
readonly updatedAt: string;
|
|
925
|
+
}[];
|
|
747
926
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
748
927
|
readonly organizationId: string;
|
|
749
928
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
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-B4FjN6wq.js";
|
|
3
3
|
//#region src/effect/messages.ts
|
|
4
4
|
var messages_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
get: () => get,
|
|
@@ -8,16 +8,18 @@ var messages_exports = /* @__PURE__ */ __exportAll({
|
|
|
8
8
|
getStatus: () => getStatus,
|
|
9
9
|
list: () => list,
|
|
10
10
|
remove: () => remove,
|
|
11
|
-
send: () => send
|
|
11
|
+
send: () => send,
|
|
12
|
+
validateEmail: () => validateEmail
|
|
12
13
|
});
|
|
13
14
|
const list = make("messagesList");
|
|
14
15
|
const send = sendMessage;
|
|
16
|
+
const validateEmail = make("messagesValidateEmail");
|
|
15
17
|
const get = make("messagesGet");
|
|
16
18
|
const getEmail = make("messagesGetEmail");
|
|
17
19
|
const remove = make("messagesRemove");
|
|
18
20
|
const getStatus = make("messagesGetStatus");
|
|
19
21
|
const getEvents = make("messagesGetEvents");
|
|
20
22
|
//#endregion
|
|
21
|
-
export { get, getEmail, getEvents, getStatus, list, remove, send, messages_exports as t };
|
|
23
|
+
export { get, getEmail, getEvents, getStatus, list, remove, send, messages_exports as t, validateEmail };
|
|
22
24
|
|
|
23
25
|
//# sourceMappingURL=messages.js.map
|
|
@@ -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-B4FjN6wq.js";
|
|
3
3
|
//#region src/effect/operations.ts
|
|
4
4
|
var operations_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-B4FjN6wq.js";
|
|
3
3
|
//#region src/effect/organizations.ts
|
|
4
4
|
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
bootstrap: () => bootstrap,
|
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-B9Nw2v_F.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
|
|
@@ -5,7 +5,7 @@ export declare const list: ((input?: {
|
|
|
5
5
|
} | undefined) => import("effect/Effect").Effect<{
|
|
6
6
|
readonly items: readonly {
|
|
7
7
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
8
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "pending";
|
|
8
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
9
9
|
readonly scheduledFor: string;
|
|
10
10
|
readonly timezone: string;
|
|
11
11
|
readonly send: {
|
|
@@ -94,7 +94,7 @@ export declare const list: ((input?: {
|
|
|
94
94
|
} | undefined) => import("effect/Stream").Stream<{
|
|
95
95
|
readonly items: readonly {
|
|
96
96
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
97
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "pending";
|
|
97
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
98
98
|
readonly scheduledFor: string;
|
|
99
99
|
readonly timezone: string;
|
|
100
100
|
readonly send: {
|
|
@@ -182,7 +182,7 @@ export declare const list: ((input?: {
|
|
|
182
182
|
readonly limit?: string | null | undefined;
|
|
183
183
|
} | undefined) => import("effect/Stream").Stream<{
|
|
184
184
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
185
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "pending";
|
|
185
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
186
186
|
readonly scheduledFor: string;
|
|
187
187
|
readonly timezone: string;
|
|
188
188
|
readonly send: {
|
|
@@ -374,7 +374,7 @@ export declare const create: (input: {
|
|
|
374
374
|
readonly referenceId?: string | null | undefined;
|
|
375
375
|
}) => import("effect/Effect").Effect<{
|
|
376
376
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
377
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "pending";
|
|
377
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
378
378
|
readonly scheduledFor: string;
|
|
379
379
|
readonly timezone: string;
|
|
380
380
|
readonly send: {
|
|
@@ -453,7 +453,7 @@ export declare const get: (input: {
|
|
|
453
453
|
readonly id: string;
|
|
454
454
|
}) => import("effect/Effect").Effect<{
|
|
455
455
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
456
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "pending";
|
|
456
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
457
457
|
readonly scheduledFor: string;
|
|
458
458
|
readonly timezone: string;
|
|
459
459
|
readonly send: {
|
|
@@ -534,7 +534,7 @@ export declare const cancel: (input: {
|
|
|
534
534
|
readonly success: boolean;
|
|
535
535
|
readonly item: {
|
|
536
536
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
537
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "pending";
|
|
537
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
538
538
|
readonly scheduledFor: string;
|
|
539
539
|
readonly timezone: string;
|
|
540
540
|
readonly send: {
|
|
@@ -610,3 +610,87 @@ export declare const cancel: (input: {
|
|
|
610
610
|
readonly updatedAt: string;
|
|
611
611
|
};
|
|
612
612
|
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
613
|
+
export declare const resume: (input: {
|
|
614
|
+
readonly id: string;
|
|
615
|
+
readonly choice: string;
|
|
616
|
+
} | {
|
|
617
|
+
readonly id: string;
|
|
618
|
+
readonly choice: string;
|
|
619
|
+
readonly scheduledFor: Date;
|
|
620
|
+
}) => import("effect/Effect").Effect<{
|
|
621
|
+
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
622
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
623
|
+
readonly scheduledFor: string;
|
|
624
|
+
readonly timezone: string;
|
|
625
|
+
readonly send: {
|
|
626
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
627
|
+
readonly metadata?: {
|
|
628
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
629
|
+
} | null;
|
|
630
|
+
readonly channel: "email";
|
|
631
|
+
readonly to: readonly ({
|
|
632
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
633
|
+
} | {
|
|
634
|
+
readonly email: string;
|
|
635
|
+
readonly name?: string | null;
|
|
636
|
+
readonly displayName?: string | null;
|
|
637
|
+
})[];
|
|
638
|
+
readonly cc?: readonly ({
|
|
639
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
640
|
+
} | {
|
|
641
|
+
readonly email: string;
|
|
642
|
+
readonly name?: string | null;
|
|
643
|
+
readonly displayName?: string | null;
|
|
644
|
+
})[] | null;
|
|
645
|
+
readonly bcc?: readonly ({
|
|
646
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
647
|
+
} | {
|
|
648
|
+
readonly email: string;
|
|
649
|
+
readonly name?: string | null;
|
|
650
|
+
readonly displayName?: string | null;
|
|
651
|
+
})[] | null;
|
|
652
|
+
readonly from?: {
|
|
653
|
+
readonly email: string;
|
|
654
|
+
readonly name?: string | null;
|
|
655
|
+
} | null;
|
|
656
|
+
readonly email: {
|
|
657
|
+
readonly subject?: string | null;
|
|
658
|
+
readonly html?: string | null;
|
|
659
|
+
readonly text?: string | null;
|
|
660
|
+
readonly attachments?: readonly {
|
|
661
|
+
readonly filename: string;
|
|
662
|
+
readonly content?: string | null;
|
|
663
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
664
|
+
readonly contentType: string;
|
|
665
|
+
readonly size: number;
|
|
666
|
+
}[] | null;
|
|
667
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
668
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
669
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
670
|
+
readonly templateSlug?: string | null;
|
|
671
|
+
readonly templateData?: {
|
|
672
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
673
|
+
} | null;
|
|
674
|
+
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
675
|
+
readonly replyTo?: readonly string[] | null;
|
|
676
|
+
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
677
|
+
readonly tracking?: {
|
|
678
|
+
readonly opens?: boolean;
|
|
679
|
+
readonly clicks?: boolean;
|
|
680
|
+
};
|
|
681
|
+
readonly footer?: {
|
|
682
|
+
readonly enabled?: boolean | null;
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
687
|
+
readonly idempotencyKey: string | null;
|
|
688
|
+
readonly referenceId: string | null;
|
|
689
|
+
readonly failureReason: string | null;
|
|
690
|
+
readonly attempts: number;
|
|
691
|
+
readonly createdBy: string | null;
|
|
692
|
+
readonly actorEmail: string;
|
|
693
|
+
readonly memberRole: string;
|
|
694
|
+
readonly createdAt: string;
|
|
695
|
+
readonly updatedAt: string;
|
|
696
|
+
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
@@ -1,17 +1,19 @@
|
|
|
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-B4FjN6wq.js";
|
|
3
3
|
//#region src/effect/scheduled-messages.ts
|
|
4
4
|
var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
cancel: () => cancel,
|
|
6
6
|
create: () => create,
|
|
7
7
|
get: () => get,
|
|
8
|
-
list: () => list
|
|
8
|
+
list: () => list,
|
|
9
|
+
resume: () => resume
|
|
9
10
|
});
|
|
10
11
|
const list = make("scheduledMessagesList");
|
|
11
12
|
const create = make("scheduledMessagesCreate");
|
|
12
13
|
const get = make("scheduledMessagesGet");
|
|
13
14
|
const cancel = make("scheduledMessagesCancel");
|
|
15
|
+
const resume = make("scheduledMessagesResume");
|
|
14
16
|
//#endregion
|
|
15
|
-
export { cancel, create, get, list, scheduled_messages_exports as t };
|
|
17
|
+
export { cancel, create, get, list, resume, scheduled_messages_exports as t };
|
|
16
18
|
|
|
17
19
|
//# sourceMappingURL=scheduled-messages.js.map
|
|
@@ -313,6 +313,8 @@ export declare const listDashboard: ((input: {
|
|
|
313
313
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
314
314
|
readonly usageCount: number;
|
|
315
315
|
readonly lastUsedAt: string | null;
|
|
316
|
+
readonly workspaceRevision: string | null;
|
|
317
|
+
readonly previewFixture: string | null;
|
|
316
318
|
readonly createdAt: string;
|
|
317
319
|
readonly updatedAt: string;
|
|
318
320
|
}[];
|
|
@@ -332,6 +334,8 @@ export declare const listDashboard: ((input: {
|
|
|
332
334
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
333
335
|
readonly usageCount: number;
|
|
334
336
|
readonly lastUsedAt: string | null;
|
|
337
|
+
readonly workspaceRevision: string | null;
|
|
338
|
+
readonly previewFixture: string | null;
|
|
335
339
|
readonly createdAt: string;
|
|
336
340
|
readonly updatedAt: string;
|
|
337
341
|
};
|
|
@@ -368,6 +372,8 @@ export declare const listDashboard: ((input: {
|
|
|
368
372
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
369
373
|
readonly usageCount: number;
|
|
370
374
|
readonly lastUsedAt: string | null;
|
|
375
|
+
readonly workspaceRevision: string | null;
|
|
376
|
+
readonly previewFixture: string | null;
|
|
371
377
|
readonly createdAt: string;
|
|
372
378
|
readonly updatedAt: string;
|
|
373
379
|
}[];
|
|
@@ -387,6 +393,8 @@ export declare const listDashboard: ((input: {
|
|
|
387
393
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
388
394
|
readonly usageCount: number;
|
|
389
395
|
readonly lastUsedAt: string | null;
|
|
396
|
+
readonly workspaceRevision: string | null;
|
|
397
|
+
readonly previewFixture: string | null;
|
|
390
398
|
readonly createdAt: string;
|
|
391
399
|
readonly updatedAt: string;
|
|
392
400
|
};
|
|
@@ -422,6 +430,8 @@ export declare const listDashboard: ((input: {
|
|
|
422
430
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
423
431
|
readonly usageCount: number;
|
|
424
432
|
readonly lastUsedAt: string | null;
|
|
433
|
+
readonly workspaceRevision: string | null;
|
|
434
|
+
readonly previewFixture: string | null;
|
|
425
435
|
readonly createdAt: string;
|
|
426
436
|
readonly updatedAt: string;
|
|
427
437
|
}[];
|
|
@@ -441,6 +451,8 @@ export declare const listDashboard: ((input: {
|
|
|
441
451
|
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
442
452
|
readonly usageCount: number;
|
|
443
453
|
readonly lastUsedAt: string | null;
|
|
454
|
+
readonly workspaceRevision: string | null;
|
|
455
|
+
readonly previewFixture: string | null;
|
|
444
456
|
readonly createdAt: string;
|
|
445
457
|
readonly updatedAt: string;
|
|
446
458
|
};
|
package/dist/effect/templates.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
3
|
-
import { s as CreateTemplatePayload, x as UpdateTemplatePayload } from "../client-
|
|
2
|
+
import { n as make } from "../operation-B4FjN6wq.js";
|
|
3
|
+
import { s as CreateTemplatePayload, x as UpdateTemplatePayload } from "../client-B7gEkvEq.js";
|
|
4
4
|
//#region src/effect/templates.ts
|
|
5
5
|
var templates_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
CreatePayload: () => CreateTemplatePayload,
|