samva 0.13.0 → 0.15.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 +9 -0
- package/README.md +55 -6
- package/dist/{categories-Bcwq5jPV.js → categories-BGUBFdH9.js} +9 -1
- package/dist/client/sdk.gen.d.ts +129 -27
- package/dist/client/types.gen.d.ts +920 -166
- package/dist/{client-DYPNDvVU.js → client-CDg7zJs0.js} +760 -147
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.d.ts +20 -20
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.js +2 -2
- package/dist/effect/campaigns.d.ts +12 -12
- 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.d.ts +9 -9
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.d.ts +126 -73
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +20 -20
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.d.ts +1 -1
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/email.d.ts +26 -26
- package/dist/effect/email.js +2 -2
- package/dist/effect/extension-installations.d.ts +3 -3
- package/dist/effect/extension-installations.js +1 -1
- package/dist/effect/extensions.d.ts +3 -3
- package/dist/effect/extensions.js +1 -1
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +2 -2
- package/dist/effect/generated-metadata.d.ts +8 -0
- package/dist/effect/generated.d.ts +6335 -1112
- package/dist/effect/index.d.ts +2 -1
- package/dist/effect/index.js +6 -5
- package/dist/effect/internal/client.d.ts +2 -2
- package/dist/effect/internal/operation.d.ts +9 -9
- package/dist/effect/mailboxes.d.ts +1775 -109
- package/dist/effect/mailboxes.js +3 -3
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +19 -17
- package/dist/effect/messages.js +1 -1
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/operations.d.ts +6 -6
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +30 -0
- package/dist/effect/organizations.js +4 -2
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +6 -6
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/subscriptions.d.ts +15 -0
- package/dist/effect/subscriptions.js +9 -0
- package/dist/effect/templates.d.ts +52 -14
- package/dist/effect/templates.js +5 -3
- package/dist/effect/unsubscribe-groups.d.ts +1 -1
- package/dist/effect/unsubscribe-groups.js +1 -1
- package/dist/effect/webhooks.d.ts +15 -15
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +4 -4
- package/dist/{inline-attachments-B56eS0MF.js → inline-attachments-UxLeyytJ.js} +2 -2
- package/dist/{mailbox-events-CsbF35vH.js → mailbox-events-VKR4f3qq.js} +6 -4
- package/dist/mailbox-events.d.ts +1 -1
- package/dist/{mailboxes-D3Kx7elM.js → mailboxes-BH_JPmOE.js} +17 -5
- package/dist/{operation-B_Ty1LG-.js → operation-BZ5Xov-x.js} +37 -3
- package/dist/promises/errors.gen.d.ts +26 -2
- package/dist/promises/index.d.ts +6 -4
- package/dist/promises/index.js +4 -4
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-D9FJyU0q.js → promises-Cd6Jamqk.js} +1004 -47
- package/dist/service-map.d.ts +45 -0
- package/package.json +7 -2
package/dist/effect/mailboxes.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as MailboxEventStreamError } from "../mailbox-events-
|
|
2
|
-
import { $ as
|
|
3
|
-
export { MailboxEventStreamError, addThreadLabels, approveAction, create, createDraft, createGrant, createLabel, createNote, createPolicy, deleteDraft, deleteLabel, deleteNote, deletePolicy, denyAction, discardMessage, events, forward, get, getAgentActivity, getDraft, getMessage, getMessageAttachment, getMessageRaw, getPolicy, getThread, getThreadContent, list, listActions, listDrafts, listEvents, listFolders, listGrants, listLabels, listPolicies, listQuarantine, listThreadMessages, listThreadNotes, listThreads, pause, releaseMessage, remove, removeThreadLabels, reply, replyAll, resume, revokeGrant, sendDraft, sendMessage, update, updateDraft, updateGrant, updateLabel, updateNote, updatePolicy, updateThread };
|
|
1
|
+
import { n as MailboxEventStreamError } from "../mailbox-events-VKR4f3qq.js";
|
|
2
|
+
import { $ as sendMessage, A as listActions, B as listThreads, C as getMessage, D as getThread, E as getPolicy, F as listLabels, G as removeAddress, H as pause, I as listPolicies, J as replyAll, K as removeThreadLabels, L as listQuarantine, M as listEvents, N as listFolders, O as getThreadContent, P as listGrants, Q as sendDraft, R as listThreadMessages, S as getDraft, T as getMessageRaw, U as releaseMessage, W as remove, X as retryAction, Y as resume, Z as revokeGrant, _ as discardMessage, a as create, at as updatePolicy, b as getAction, c as createGrant, d as createPolicy, et as update, f as deleteDraft, g as denyAction, h as deletePolicy, i as copyMessageAttachment, it as updateNote, j as listDrafts, k as list, l as createLabel, m as deleteNote, n as approveAction, nt as updateGrant, o as createAddress, ot as updateThread, p as deleteLabel, q as reply, r as cancelAction, rt as updateLabel, s as createDraft, st as events, t as addThreadLabels, tt as updateDraft, u as createNote, v as forward, w as getMessageAttachment, x as getAgentActivity, y as get, z as listThreadNotes } from "../mailboxes-BH_JPmOE.js";
|
|
3
|
+
export { MailboxEventStreamError, addThreadLabels, approveAction, cancelAction, copyMessageAttachment, create, createAddress, createDraft, createGrant, createLabel, createNote, createPolicy, deleteDraft, deleteLabel, deleteNote, deletePolicy, denyAction, discardMessage, events, forward, get, getAction, getAgentActivity, getDraft, getMessage, getMessageAttachment, getMessageRaw, getPolicy, getThread, getThreadContent, list, listActions, listDrafts, listEvents, listFolders, listGrants, listLabels, listPolicies, listQuarantine, listThreadMessages, listThreadNotes, listThreads, pause, releaseMessage, remove, removeAddress, removeThreadLabels, reply, replyAll, resume, retryAction, revokeGrant, sendDraft, sendMessage, update, updateDraft, updateGrant, updateLabel, updateNote, updatePolicy, updateThread };
|
package/dist/effect/media.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare const create: (input: {
|
|
|
2
2
|
readonly filename: string;
|
|
3
3
|
readonly contentType: string;
|
|
4
4
|
readonly sizeBytes: number;
|
|
5
|
-
readonly purpose:
|
|
5
|
+
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
6
6
|
readonly checksumSha256?: string | null | undefined;
|
|
7
7
|
}) => import("effect/Effect").Effect<{
|
|
8
8
|
readonly id: string & import("effect/Brand").Brand<"MediaId">;
|
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-BZ5Xov-x.js";
|
|
3
3
|
//#region src/effect/media.ts
|
|
4
4
|
var media_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
complete: () => complete,
|
|
@@ -3,9 +3,9 @@ export type { MessageSendInput, SendOptions };
|
|
|
3
3
|
export declare const list: ((input?: {
|
|
4
4
|
readonly limit?: string | null | undefined;
|
|
5
5
|
readonly cursor?: string | null | undefined;
|
|
6
|
-
readonly channel?:
|
|
7
|
-
readonly direction?:
|
|
8
|
-
readonly status?:
|
|
6
|
+
readonly channel?: "email" | null | undefined;
|
|
7
|
+
readonly direction?: "inbound" | "outbound" | null | undefined;
|
|
8
|
+
readonly status?: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent" | null | undefined;
|
|
9
9
|
readonly conversationId?: string | null | undefined;
|
|
10
10
|
readonly contactId?: string | null | undefined;
|
|
11
11
|
readonly from?: string | null | undefined;
|
|
@@ -20,7 +20,7 @@ export declare const list: ((input?: {
|
|
|
20
20
|
readonly from: string | null;
|
|
21
21
|
readonly to: readonly string[];
|
|
22
22
|
readonly subject: string | null;
|
|
23
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
23
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
24
24
|
readonly createdAt: string;
|
|
25
25
|
}[];
|
|
26
26
|
readonly nextCursor: string | null;
|
|
@@ -28,9 +28,9 @@ export declare const list: ((input?: {
|
|
|
28
28
|
readonly pages: (input?: {
|
|
29
29
|
readonly limit?: string | null | undefined;
|
|
30
30
|
readonly cursor?: string | null | undefined;
|
|
31
|
-
readonly channel?:
|
|
32
|
-
readonly direction?:
|
|
33
|
-
readonly status?:
|
|
31
|
+
readonly channel?: "email" | null | undefined;
|
|
32
|
+
readonly direction?: "inbound" | "outbound" | null | undefined;
|
|
33
|
+
readonly status?: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent" | null | undefined;
|
|
34
34
|
readonly conversationId?: string | null | undefined;
|
|
35
35
|
readonly contactId?: string | null | undefined;
|
|
36
36
|
readonly from?: string | null | undefined;
|
|
@@ -45,7 +45,7 @@ export declare const list: ((input?: {
|
|
|
45
45
|
readonly from: string | null;
|
|
46
46
|
readonly to: readonly string[];
|
|
47
47
|
readonly subject: string | null;
|
|
48
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
48
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
49
49
|
readonly createdAt: string;
|
|
50
50
|
}[];
|
|
51
51
|
readonly nextCursor: string | null;
|
|
@@ -53,9 +53,9 @@ export declare const list: ((input?: {
|
|
|
53
53
|
readonly items: (input?: {
|
|
54
54
|
readonly limit?: string | null | undefined;
|
|
55
55
|
readonly cursor?: string | null | undefined;
|
|
56
|
-
readonly channel?:
|
|
57
|
-
readonly direction?:
|
|
58
|
-
readonly status?:
|
|
56
|
+
readonly channel?: "email" | null | undefined;
|
|
57
|
+
readonly direction?: "inbound" | "outbound" | null | undefined;
|
|
58
|
+
readonly status?: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent" | null | undefined;
|
|
59
59
|
readonly conversationId?: string | null | undefined;
|
|
60
60
|
readonly contactId?: string | null | undefined;
|
|
61
61
|
readonly from?: string | null | undefined;
|
|
@@ -69,14 +69,14 @@ export declare const list: ((input?: {
|
|
|
69
69
|
readonly from: string | null;
|
|
70
70
|
readonly to: readonly string[];
|
|
71
71
|
readonly subject: string | null;
|
|
72
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
72
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
73
73
|
readonly createdAt: string;
|
|
74
74
|
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
75
75
|
};
|
|
76
76
|
export declare const send: (input: MessageSendInput, options?: SendOptions | undefined) => import("effect/Effect").Effect<{
|
|
77
77
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
78
78
|
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
79
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
79
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
80
80
|
readonly reviewExpectedAt: string | null;
|
|
81
81
|
readonly skippedRecipients: readonly {
|
|
82
82
|
readonly address: string;
|
|
@@ -114,7 +114,7 @@ export declare const validateEmail: (input: {
|
|
|
114
114
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
115
115
|
} | null | undefined;
|
|
116
116
|
} | null | undefined;
|
|
117
|
-
readonly channel:
|
|
117
|
+
readonly channel: "email";
|
|
118
118
|
readonly to: readonly ({
|
|
119
119
|
readonly contactId: string;
|
|
120
120
|
} | {
|
|
@@ -260,7 +260,7 @@ export declare const get: (input: {
|
|
|
260
260
|
readonly version: string;
|
|
261
261
|
} | null;
|
|
262
262
|
} | null;
|
|
263
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
263
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
264
264
|
readonly reviewExpectedAt: string | null;
|
|
265
265
|
readonly skippedRecipients: readonly {
|
|
266
266
|
readonly address: string;
|
|
@@ -279,7 +279,7 @@ export declare const getEmail: (input: {
|
|
|
279
279
|
readonly scheduling: {
|
|
280
280
|
readonly dueAt: string;
|
|
281
281
|
readonly expiresAt: string;
|
|
282
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
282
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
283
283
|
readonly reviewExpectedAt: string | null;
|
|
284
284
|
} | null;
|
|
285
285
|
readonly id: string;
|
|
@@ -444,7 +444,7 @@ export declare const listDeliveries: (input: {
|
|
|
444
444
|
readonly recipient: string | null;
|
|
445
445
|
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
446
446
|
readonly attemptCount: number;
|
|
447
|
-
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
447
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
448
448
|
readonly nextRetryAt: string | null;
|
|
449
449
|
readonly sentAt: string | null;
|
|
450
450
|
readonly deliveredAt: string | null;
|
|
@@ -478,6 +478,8 @@ export declare const getContent: (input: {
|
|
|
478
478
|
};
|
|
479
479
|
readonly attachments?: readonly {
|
|
480
480
|
readonly filename: string;
|
|
481
|
+
readonly contentId?: string | null;
|
|
482
|
+
readonly isInline?: boolean | null;
|
|
481
483
|
readonly content?: string | null;
|
|
482
484
|
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
483
485
|
readonly contentType: 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-BZ5Xov-x.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-BZ5Xov-x.js";
|
|
3
3
|
//#region src/effect/namespaces.ts
|
|
4
4
|
var namespaces_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
2
|
readonly limit?: string | null | undefined;
|
|
3
3
|
readonly cursor?: string | null | undefined;
|
|
4
|
-
readonly kind?:
|
|
5
|
-
readonly status?:
|
|
4
|
+
readonly kind?: "email-domain-provisioning" | "organization-deletion" | null | undefined;
|
|
5
|
+
readonly status?: "failed" | "pending" | "running" | "succeeded" | null | undefined;
|
|
6
6
|
} | undefined) => import("effect/Effect").Effect<{
|
|
7
7
|
readonly items: readonly {
|
|
8
8
|
readonly id: string & import("effect/Brand").Brand<"OperationId">;
|
|
@@ -32,8 +32,8 @@ export declare const list: ((input?: {
|
|
|
32
32
|
readonly pages: (input?: {
|
|
33
33
|
readonly limit?: string | null | undefined;
|
|
34
34
|
readonly cursor?: string | null | undefined;
|
|
35
|
-
readonly kind?:
|
|
36
|
-
readonly status?:
|
|
35
|
+
readonly kind?: "email-domain-provisioning" | "organization-deletion" | null | undefined;
|
|
36
|
+
readonly status?: "failed" | "pending" | "running" | "succeeded" | null | undefined;
|
|
37
37
|
} | undefined) => import("effect/Stream").Stream<{
|
|
38
38
|
readonly items: readonly {
|
|
39
39
|
readonly id: string & import("effect/Brand").Brand<"OperationId">;
|
|
@@ -63,8 +63,8 @@ export declare const list: ((input?: {
|
|
|
63
63
|
readonly items: (input?: {
|
|
64
64
|
readonly limit?: string | null | undefined;
|
|
65
65
|
readonly cursor?: string | null | undefined;
|
|
66
|
-
readonly kind?:
|
|
67
|
-
readonly status?:
|
|
66
|
+
readonly kind?: "email-domain-provisioning" | "organization-deletion" | null | undefined;
|
|
67
|
+
readonly status?: "failed" | "pending" | "running" | "succeeded" | null | undefined;
|
|
68
68
|
} | undefined) => import("effect/Stream").Stream<{
|
|
69
69
|
readonly id: string & import("effect/Brand").Brand<"OperationId">;
|
|
70
70
|
readonly organizationId: string;
|
|
@@ -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-BZ5Xov-x.js";
|
|
3
3
|
//#region src/effect/operations.ts
|
|
4
4
|
var operations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
get: () => get,
|
|
@@ -55,6 +55,36 @@ export declare const getProfile: (_?: never) => import("effect/Effect").Effect<{
|
|
|
55
55
|
readonly name: string;
|
|
56
56
|
readonly nickname: string;
|
|
57
57
|
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
58
|
+
export declare const getTrustTier: (_?: never) => import("effect/Effect").Effect<{
|
|
59
|
+
readonly tier: "established" | "probation" | "screened";
|
|
60
|
+
readonly changedAt: string;
|
|
61
|
+
readonly sendingLimits: {
|
|
62
|
+
readonly sendsPerSecond: number;
|
|
63
|
+
readonly dailySends: number;
|
|
64
|
+
readonly probation: {
|
|
65
|
+
readonly hourlyRecipients: number;
|
|
66
|
+
readonly dailyRecipients: number;
|
|
67
|
+
readonly domainShare: number;
|
|
68
|
+
readonly domainShareFloor: number;
|
|
69
|
+
} | null;
|
|
70
|
+
};
|
|
71
|
+
readonly graduation: {
|
|
72
|
+
readonly firstSentAt: string | null;
|
|
73
|
+
readonly elapsedDays: number;
|
|
74
|
+
readonly sent: number;
|
|
75
|
+
readonly delivered: number;
|
|
76
|
+
readonly hardBounces: number;
|
|
77
|
+
readonly hardBounceRate: number | null;
|
|
78
|
+
readonly complaints: number;
|
|
79
|
+
readonly holds: number;
|
|
80
|
+
readonly requirements: {
|
|
81
|
+
readonly minimumDays: number;
|
|
82
|
+
readonly delivered: number;
|
|
83
|
+
readonly maximumHardBounceRate: number;
|
|
84
|
+
};
|
|
85
|
+
readonly blockers: readonly ("bounce_rate" | "complaints" | "held" | "too_few_delivered" | "too_recent")[];
|
|
86
|
+
} | null;
|
|
87
|
+
}, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
58
88
|
export declare const update: (input?: {
|
|
59
89
|
readonly name?: string | null | undefined;
|
|
60
90
|
readonly slug?: string | null | undefined;
|
|
@@ -1,21 +1,23 @@
|
|
|
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-BZ5Xov-x.js";
|
|
3
3
|
//#region src/effect/organizations.ts
|
|
4
4
|
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|
|
6
6
|
delete: () => deleteOrganization,
|
|
7
7
|
get: () => get,
|
|
8
8
|
getProfile: () => getProfile,
|
|
9
|
+
getTrustTier: () => getTrustTier,
|
|
9
10
|
getUsage: () => getUsage,
|
|
10
11
|
update: () => update
|
|
11
12
|
});
|
|
12
13
|
const create = make("organizationsCreate");
|
|
13
14
|
const get = make("organizationsGet");
|
|
14
15
|
const getProfile = make("organizationsGetProfile");
|
|
16
|
+
const getTrustTier = make("organizationsGetTrustTier");
|
|
15
17
|
const update = make("organizationsUpdate");
|
|
16
18
|
const getUsage = make("organizationsGetUsage");
|
|
17
19
|
const deleteOrganization = make("organizationsDelete");
|
|
18
20
|
//#endregion
|
|
19
|
-
export { create, deleteOrganization as delete, get, getProfile, getUsage, organizations_exports as t, update };
|
|
21
|
+
export { create, deleteOrganization as delete, get, getProfile, getTrustTier, getUsage, organizations_exports as t, update };
|
|
20
22
|
|
|
21
23
|
//# sourceMappingURL=organizations.js.map
|
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-BGUBFdH9.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,7 +1,7 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
2
|
readonly limit?: string | null | undefined;
|
|
3
3
|
readonly cursor?: string | null | undefined;
|
|
4
|
-
readonly status?:
|
|
4
|
+
readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | null | undefined;
|
|
5
5
|
} | undefined) => import("effect/Effect").Effect<{
|
|
6
6
|
readonly items: readonly {
|
|
7
7
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
@@ -87,7 +87,7 @@ export declare const list: ((input?: {
|
|
|
87
87
|
readonly pages: (input?: {
|
|
88
88
|
readonly limit?: string | null | undefined;
|
|
89
89
|
readonly cursor?: string | null | undefined;
|
|
90
|
-
readonly status?:
|
|
90
|
+
readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | null | undefined;
|
|
91
91
|
} | undefined) => import("effect/Stream").Stream<{
|
|
92
92
|
readonly items: readonly {
|
|
93
93
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
@@ -173,7 +173,7 @@ export declare const list: ((input?: {
|
|
|
173
173
|
readonly items: (input?: {
|
|
174
174
|
readonly limit?: string | null | undefined;
|
|
175
175
|
readonly cursor?: string | null | undefined;
|
|
176
|
-
readonly status?:
|
|
176
|
+
readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | null | undefined;
|
|
177
177
|
} | undefined) => import("effect/Stream").Stream<{
|
|
178
178
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
179
179
|
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
@@ -284,7 +284,7 @@ export declare const create: (input: {
|
|
|
284
284
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
285
285
|
} | null | undefined;
|
|
286
286
|
} | null | undefined;
|
|
287
|
-
readonly channel:
|
|
287
|
+
readonly channel: "email";
|
|
288
288
|
readonly to: readonly ({
|
|
289
289
|
readonly contactId: string;
|
|
290
290
|
} | {
|
|
@@ -616,10 +616,10 @@ export declare const cancel: (input: {
|
|
|
616
616
|
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
617
617
|
export declare const resume: (input: {
|
|
618
618
|
readonly id: string;
|
|
619
|
-
readonly choice:
|
|
619
|
+
readonly choice: "send_now";
|
|
620
620
|
} | {
|
|
621
621
|
readonly id: string;
|
|
622
|
-
readonly choice:
|
|
622
|
+
readonly choice: "new_time";
|
|
623
623
|
readonly scheduledFor: Date;
|
|
624
624
|
}) => import("effect/Effect").Effect<{
|
|
625
625
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
@@ -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-BZ5Xov-x.js";
|
|
3
3
|
//#region src/effect/scheduled-messages.ts
|
|
4
4
|
var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
cancel: () => cancel,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const subscribe: (input: {
|
|
2
|
+
readonly email: string;
|
|
3
|
+
readonly contactGroupId: string;
|
|
4
|
+
readonly from: {
|
|
5
|
+
readonly email: string;
|
|
6
|
+
readonly name?: string | null | undefined;
|
|
7
|
+
};
|
|
8
|
+
readonly unsubscribeGroupId?: string | null | undefined;
|
|
9
|
+
readonly templateSlug?: string | null | undefined;
|
|
10
|
+
readonly consentIp?: string | null | undefined;
|
|
11
|
+
readonly consentSource?: string | null | undefined;
|
|
12
|
+
}) => import("effect/Effect").Effect<{
|
|
13
|
+
readonly success: boolean;
|
|
14
|
+
readonly expiresAt: string;
|
|
15
|
+
}, import("./generated").BillingProviderError | import("./generated").BrandAddressRequiredError | import("./generated").CampaignFooterRequiredError | import("./generated").ConflictError | import("./generated").DeliveryUnavailableError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { n as make } from "../operation-BZ5Xov-x.js";
|
|
3
|
+
//#region src/effect/subscriptions.ts
|
|
4
|
+
var subscriptions_exports = /* @__PURE__ */ __exportAll({ subscribe: () => subscribe });
|
|
5
|
+
const subscribe = make("subscriptionsSubscribe");
|
|
6
|
+
//#endregion
|
|
7
|
+
export { subscribe, subscriptions_exports as t };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=subscriptions.js.map
|
|
@@ -2,9 +2,9 @@ export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as Update
|
|
|
2
2
|
export declare const list: ((input?: {
|
|
3
3
|
readonly limit?: string | null | undefined;
|
|
4
4
|
readonly cursor?: string | null | undefined;
|
|
5
|
-
readonly category?:
|
|
6
|
-
readonly channel?:
|
|
7
|
-
readonly status?:
|
|
5
|
+
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
|
|
6
|
+
readonly channel?: "email" | null | undefined;
|
|
7
|
+
readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" | null | undefined;
|
|
8
8
|
readonly search?: string | null | undefined;
|
|
9
9
|
readonly projectId?: string | null | undefined;
|
|
10
10
|
} | undefined) => import("effect/Effect").Effect<{
|
|
@@ -37,9 +37,9 @@ export declare const list: ((input?: {
|
|
|
37
37
|
readonly pages: (input?: {
|
|
38
38
|
readonly limit?: string | null | undefined;
|
|
39
39
|
readonly cursor?: string | null | undefined;
|
|
40
|
-
readonly category?:
|
|
41
|
-
readonly channel?:
|
|
42
|
-
readonly status?:
|
|
40
|
+
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
|
|
41
|
+
readonly channel?: "email" | null | undefined;
|
|
42
|
+
readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" | null | undefined;
|
|
43
43
|
readonly search?: string | null | undefined;
|
|
44
44
|
readonly projectId?: string | null | undefined;
|
|
45
45
|
} | undefined) => import("effect/Stream").Stream<{
|
|
@@ -72,9 +72,9 @@ export declare const list: ((input?: {
|
|
|
72
72
|
readonly items: (input?: {
|
|
73
73
|
readonly limit?: string | null | undefined;
|
|
74
74
|
readonly cursor?: string | null | undefined;
|
|
75
|
-
readonly category?:
|
|
76
|
-
readonly channel?:
|
|
77
|
-
readonly status?:
|
|
75
|
+
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
|
|
76
|
+
readonly channel?: "email" | null | undefined;
|
|
77
|
+
readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" | null | undefined;
|
|
78
78
|
readonly search?: string | null | undefined;
|
|
79
79
|
readonly projectId?: string | null | undefined;
|
|
80
80
|
} | undefined) => import("effect/Stream").Stream<{
|
|
@@ -109,7 +109,7 @@ export declare const create: (input: {
|
|
|
109
109
|
readonly galleryTemplateId?: string | null | undefined;
|
|
110
110
|
readonly useBrand?: boolean | null | undefined;
|
|
111
111
|
readonly description?: string | null | undefined;
|
|
112
|
-
readonly category?:
|
|
112
|
+
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
|
|
113
113
|
readonly isActive?: boolean | null | undefined;
|
|
114
114
|
readonly idempotencyKey: string;
|
|
115
115
|
}) => import("effect/Effect").Effect<{
|
|
@@ -162,7 +162,7 @@ export declare const addEntry: (input: {
|
|
|
162
162
|
readonly name: string;
|
|
163
163
|
readonly slug: string;
|
|
164
164
|
readonly description?: string | null | undefined;
|
|
165
|
-
readonly category?:
|
|
165
|
+
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
|
|
166
166
|
}) => import("effect/Effect").Effect<{
|
|
167
167
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
168
168
|
readonly slug: string;
|
|
@@ -446,7 +446,7 @@ export declare const update: (input: {
|
|
|
446
446
|
readonly slug?: string | null | undefined;
|
|
447
447
|
readonly entryPath?: string | null | undefined;
|
|
448
448
|
readonly description?: string | null | undefined;
|
|
449
|
-
readonly category?:
|
|
449
|
+
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
|
|
450
450
|
readonly fromDefault?: {
|
|
451
451
|
readonly email: string;
|
|
452
452
|
readonly name?: string | null | undefined;
|
|
@@ -589,7 +589,7 @@ export declare const getGitRepository: (input: {
|
|
|
589
589
|
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
590
590
|
export declare const issueGitCredential: (input: {
|
|
591
591
|
readonly id: string;
|
|
592
|
-
readonly scope:
|
|
592
|
+
readonly scope: "read" | "write";
|
|
593
593
|
}) => import("effect/Effect").Effect<{
|
|
594
594
|
readonly remote: string;
|
|
595
595
|
readonly username: "x-access-token";
|
|
@@ -777,7 +777,7 @@ export declare const resolveWorkspaceConflict: (input: {
|
|
|
777
777
|
readonly id: string;
|
|
778
778
|
readonly expectedRevision: string;
|
|
779
779
|
readonly path: string;
|
|
780
|
-
readonly resolution:
|
|
780
|
+
readonly resolution: "draft" | "main" | {
|
|
781
781
|
readonly content: string | null;
|
|
782
782
|
};
|
|
783
783
|
readonly idempotencyKey: string;
|
|
@@ -1628,6 +1628,44 @@ export declare const getPublication: (input: {
|
|
|
1628
1628
|
readonly publishedBy: string | null;
|
|
1629
1629
|
readonly createdAt: string;
|
|
1630
1630
|
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1631
|
+
export declare const renderPublication: (input: {
|
|
1632
|
+
readonly id: string;
|
|
1633
|
+
readonly publicationId: string;
|
|
1634
|
+
readonly data: {
|
|
1635
|
+
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 | {
|
|
1636
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
1637
|
+
} | null)[] | {
|
|
1638
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1639
|
+
} | null)[] | {
|
|
1640
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1641
|
+
} | null)[] | {
|
|
1642
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1643
|
+
} | null)[] | {
|
|
1644
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1645
|
+
} | null)[] | {
|
|
1646
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1647
|
+
} | null)[] | {
|
|
1648
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1649
|
+
} | null)[] | {
|
|
1650
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1651
|
+
} | null)[] | {
|
|
1652
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1653
|
+
} | null)[] | {
|
|
1654
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1655
|
+
} | null)[] | {
|
|
1656
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1657
|
+
} | null)[] | {
|
|
1658
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1659
|
+
} | null | undefined;
|
|
1660
|
+
};
|
|
1661
|
+
readonly locale?: string | undefined;
|
|
1662
|
+
readonly timeZone?: string | undefined;
|
|
1663
|
+
}) => import("effect/Effect").Effect<{
|
|
1664
|
+
readonly subject: string;
|
|
1665
|
+
readonly preheader?: string;
|
|
1666
|
+
readonly html: string;
|
|
1667
|
+
readonly text: string;
|
|
1668
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1631
1669
|
export declare const listInputContracts: ((input: {
|
|
1632
1670
|
readonly id: string;
|
|
1633
1671
|
readonly limit?: string | null | undefined;
|
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 {
|
|
2
|
+
import { n as make } from "../operation-BZ5Xov-x.js";
|
|
3
|
+
import { N as UpdateTemplatePayload, d as CreateTemplatePayload } from "../client-CDg7zJs0.js";
|
|
4
4
|
//#region src/effect/templates.ts
|
|
5
5
|
var templates_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
CreatePayload: () => CreateTemplatePayload,
|
|
@@ -31,6 +31,7 @@ var templates_exports = /* @__PURE__ */ __exportAll({
|
|
|
31
31
|
remove: () => remove,
|
|
32
32
|
removeWorkspaceResource: () => removeWorkspaceResource,
|
|
33
33
|
renameFamily: () => renameFamily,
|
|
34
|
+
renderPublication: () => renderPublication,
|
|
34
35
|
renderWorkspaceFixture: () => renderWorkspaceFixture,
|
|
35
36
|
resolveWorkspaceConflict: () => resolveWorkspaceConflict,
|
|
36
37
|
restoreWorkspace: () => restoreWorkspace,
|
|
@@ -66,11 +67,12 @@ const checkWorkspace = make("templatesCheckWorkspace");
|
|
|
66
67
|
const renderWorkspaceFixture = make("templatesRenderWorkspaceFixture");
|
|
67
68
|
const publish = make("templatesPublish");
|
|
68
69
|
const getPublication = make("templatesGetPublication");
|
|
70
|
+
const renderPublication = make("templatesRenderPublication");
|
|
69
71
|
const listInputContracts = make("templatesListInputContracts");
|
|
70
72
|
const getInputContract = make("templatesGetInputContract");
|
|
71
73
|
const diffWorkspace = make("templatesDiffWorkspace");
|
|
72
74
|
const workspaceHistory = make("templatesWorkspaceHistory");
|
|
73
75
|
//#endregion
|
|
74
|
-
export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, addEntry, attachFamilyMember, attachWorkspaceResource, checkWorkspace, create, createFamily, createFamilyFromTemplate, deleteFamily, detachFamilyMember, diffWorkspace, getById, getFamily, getGitRepository, getInputContract, getPublication, issueGitCredential, list, listFamilies, listInputContracts, openWorkspace, patchWorkspace, publish, putWorkspaceAsset, remove, removeWorkspaceResource, renameFamily, renderWorkspaceFixture, resolveWorkspaceConflict, restoreWorkspace, saveWorkspace, templates_exports as t, update, workspaceHistory };
|
|
76
|
+
export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, addEntry, attachFamilyMember, attachWorkspaceResource, checkWorkspace, create, createFamily, createFamilyFromTemplate, deleteFamily, detachFamilyMember, diffWorkspace, getById, getFamily, getGitRepository, getInputContract, getPublication, issueGitCredential, list, listFamilies, listInputContracts, openWorkspace, patchWorkspace, publish, putWorkspaceAsset, remove, removeWorkspaceResource, renameFamily, renderPublication, renderWorkspaceFixture, resolveWorkspaceConflict, restoreWorkspace, saveWorkspace, templates_exports as t, update, workspaceHistory };
|
|
75
77
|
|
|
76
78
|
//# sourceMappingURL=templates.js.map
|
|
@@ -100,7 +100,7 @@ export declare const listMembers: ((input: {
|
|
|
100
100
|
export declare const addEmails: (input: {
|
|
101
101
|
readonly id: string;
|
|
102
102
|
readonly emails: readonly string[];
|
|
103
|
-
readonly source?:
|
|
103
|
+
readonly source?: "api" | "complaint" | "link" | "manual" | null | undefined;
|
|
104
104
|
}) => import("effect/Effect").Effect<{
|
|
105
105
|
readonly added: number;
|
|
106
106
|
readonly skipped: number;
|
|
@@ -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-BZ5Xov-x.js";
|
|
3
3
|
//#region src/effect/unsubscribe-groups.ts
|
|
4
4
|
var unsubscribe_groups_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
addEmails: () => addEmails,
|