samva 0.14.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/README.md +4 -0
- package/dist/client/sdk.gen.d.ts +26 -11
- package/dist/client/types.gen.d.ts +111 -25
- package/dist/{client-CZjhOKPM.js → client-CDg7zJs0.js} +70 -29
- 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.js +2 -2
- package/dist/effect/campaigns.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.js +1 -1
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/email.js +2 -2
- package/dist/effect/extension-installations.js +1 -1
- package/dist/effect/extensions.js +1 -1
- package/dist/effect/feedback.js +2 -2
- package/dist/effect/generated.d.ts +382 -100
- package/dist/effect/index.js +3 -3
- package/dist/effect/mailboxes.d.ts +73 -24
- package/dist/effect/mailboxes.js +2 -2
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.js +1 -1
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/subscriptions.js +1 -1
- package/dist/effect/templates.js +2 -2
- package/dist/effect/unsubscribe-groups.js +1 -1
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{inline-attachments-BrNnSMF2.js → inline-attachments-UxLeyytJ.js} +2 -2
- package/dist/{mailboxes-DT02zP7q.js → mailboxes-BH_JPmOE.js} +8 -4
- package/dist/{operation-g8nAzmIM.js → operation-BZ5Xov-x.js} +11 -3
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-BFRKhpSS.js → promises-Cd6Jamqk.js} +66 -12
- package/dist/service-map.d.ts +10 -0
- package/package.json +2 -2
package/dist/effect/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as MediaUploadError } from "../inline-attachments-
|
|
2
|
-
import { C as PaymentRequiredError, F as ValidationError, O as SenderNotReadyError, S as OnboardingReviewRequiredError, T as ResourceNotFoundError, _ as ForbiddenError, a as AnalyticsQueryError, b as MailboxSendConflictError, c as CampaignFooterRequiredError, g as FlagDisabledError, h as ExternalServiceError, j as UnauthorizedError, l as ConflictError, m as EmailChannelError, o as BillingProviderError, p as DeliveryUnavailableError, s as BrandAddressRequiredError, v as GatewayTimeoutError, w as RateLimitedError, x as MailboxSendRefusedError, y as InternalError } from "../client-
|
|
1
|
+
import { t as MediaUploadError } from "../inline-attachments-UxLeyytJ.js";
|
|
2
|
+
import { C as PaymentRequiredError, F as ValidationError, O as SenderNotReadyError, S as OnboardingReviewRequiredError, T as ResourceNotFoundError, _ as ForbiddenError, a as AnalyticsQueryError, b as MailboxSendConflictError, c as CampaignFooterRequiredError, g as FlagDisabledError, h as ExternalServiceError, j as UnauthorizedError, l as ConflictError, m as EmailChannelError, o as BillingProviderError, p as DeliveryUnavailableError, s as BrandAddressRequiredError, v as GatewayTimeoutError, w as RateLimitedError, x as MailboxSendRefusedError, y as InternalError } from "../client-CDg7zJs0.js";
|
|
3
3
|
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-BGUBFdH9.js";
|
|
4
4
|
import { t as retry_exports } from "./retry.js";
|
|
5
5
|
import { t as analytics_exports } from "./analytics.js";
|
|
@@ -16,7 +16,7 @@ import { t as email_exports } from "./email.js";
|
|
|
16
16
|
import { t as extension_installations_exports } from "./extension-installations.js";
|
|
17
17
|
import { t as extensions_exports } from "./extensions.js";
|
|
18
18
|
import { t as feedback_exports } from "./feedback.js";
|
|
19
|
-
import {
|
|
19
|
+
import { V as mailboxes_exports } from "../mailboxes-BH_JPmOE.js";
|
|
20
20
|
import { t as media_exports } from "./media.js";
|
|
21
21
|
import { t as messages_exports } from "./messages.js";
|
|
22
22
|
import { t as namespaces_exports } from "./namespaces.js";
|
|
@@ -10,7 +10,7 @@ export declare const list: ((input?: {
|
|
|
10
10
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
11
11
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
12
12
|
readonly slug: string;
|
|
13
|
-
readonly
|
|
13
|
+
readonly name: string;
|
|
14
14
|
readonly status: "active" | "paused";
|
|
15
15
|
readonly primaryAddress: string | null;
|
|
16
16
|
readonly createdAt: string;
|
|
@@ -27,7 +27,7 @@ export declare const list: ((input?: {
|
|
|
27
27
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
28
28
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
29
29
|
readonly slug: string;
|
|
30
|
-
readonly
|
|
30
|
+
readonly name: string;
|
|
31
31
|
readonly status: "active" | "paused";
|
|
32
32
|
readonly primaryAddress: string | null;
|
|
33
33
|
readonly createdAt: string;
|
|
@@ -43,7 +43,7 @@ export declare const list: ((input?: {
|
|
|
43
43
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
44
44
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
45
45
|
readonly slug: string;
|
|
46
|
-
readonly
|
|
46
|
+
readonly name: string;
|
|
47
47
|
readonly status: "active" | "paused";
|
|
48
48
|
readonly primaryAddress: string | null;
|
|
49
49
|
readonly createdAt: string;
|
|
@@ -51,17 +51,9 @@ export declare const list: ((input?: {
|
|
|
51
51
|
};
|
|
52
52
|
export declare const create: (input: {
|
|
53
53
|
readonly namespaceId?: string | null | undefined;
|
|
54
|
-
readonly
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
57
|
-
readonly address: string;
|
|
58
|
-
readonly displayName?: string | null | undefined;
|
|
59
|
-
readonly domainId?: string | null | undefined;
|
|
60
|
-
}[];
|
|
61
|
-
readonly defaultFrom?: {
|
|
62
|
-
readonly address: string;
|
|
63
|
-
readonly displayName?: string | null | undefined;
|
|
64
|
-
} | null | undefined;
|
|
54
|
+
readonly address: string;
|
|
55
|
+
readonly name: string;
|
|
56
|
+
readonly slug?: string | null | undefined;
|
|
65
57
|
readonly metadata?: {
|
|
66
58
|
readonly [x: string]: string | undefined;
|
|
67
59
|
} | null | undefined;
|
|
@@ -69,7 +61,7 @@ export declare const create: (input: {
|
|
|
69
61
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
70
62
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
71
63
|
readonly slug: string;
|
|
72
|
-
readonly
|
|
64
|
+
readonly name: string;
|
|
73
65
|
readonly status: "active" | "paused";
|
|
74
66
|
readonly primaryAddress: string | null;
|
|
75
67
|
readonly createdAt: string;
|
|
@@ -96,7 +88,7 @@ export declare const get: (input: {
|
|
|
96
88
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
97
89
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
98
90
|
readonly slug: string;
|
|
99
|
-
readonly
|
|
91
|
+
readonly name: string;
|
|
100
92
|
readonly status: "active" | "paused";
|
|
101
93
|
readonly primaryAddress: string | null;
|
|
102
94
|
readonly createdAt: string;
|
|
@@ -119,7 +111,7 @@ export declare const get: (input: {
|
|
|
119
111
|
}, 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>;
|
|
120
112
|
export declare const update: (input: {
|
|
121
113
|
readonly id: string;
|
|
122
|
-
readonly
|
|
114
|
+
readonly name?: string | null | undefined;
|
|
123
115
|
readonly metadata?: {
|
|
124
116
|
readonly [x: string]: string | null | undefined;
|
|
125
117
|
} | null | undefined;
|
|
@@ -131,7 +123,7 @@ export declare const update: (input: {
|
|
|
131
123
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
132
124
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
133
125
|
readonly slug: string;
|
|
134
|
-
readonly
|
|
126
|
+
readonly name: string;
|
|
135
127
|
readonly status: "active" | "paused";
|
|
136
128
|
readonly primaryAddress: string | null;
|
|
137
129
|
readonly createdAt: string;
|
|
@@ -157,13 +149,70 @@ export declare const remove: (input: {
|
|
|
157
149
|
}) => import("effect/Effect").Effect<{
|
|
158
150
|
readonly success: boolean;
|
|
159
151
|
}, 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>;
|
|
152
|
+
export declare const createAddress: (input: {
|
|
153
|
+
readonly id: string;
|
|
154
|
+
readonly address: string;
|
|
155
|
+
readonly displayName?: string | null | undefined;
|
|
156
|
+
}) => import("effect/Effect").Effect<{
|
|
157
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
158
|
+
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
159
|
+
readonly slug: string;
|
|
160
|
+
readonly name: string;
|
|
161
|
+
readonly status: "active" | "paused";
|
|
162
|
+
readonly primaryAddress: string | null;
|
|
163
|
+
readonly createdAt: string;
|
|
164
|
+
readonly description: string | null;
|
|
165
|
+
readonly metadata: {
|
|
166
|
+
readonly [x: string]: string;
|
|
167
|
+
};
|
|
168
|
+
readonly addresses: readonly {
|
|
169
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxAddressId">;
|
|
170
|
+
readonly address: string;
|
|
171
|
+
readonly source: "samvaHosted" | "verifiedDomain";
|
|
172
|
+
readonly domainId: string | null;
|
|
173
|
+
readonly displayName: string | null;
|
|
174
|
+
}[];
|
|
175
|
+
readonly defaultFrom: {
|
|
176
|
+
readonly address: string;
|
|
177
|
+
readonly displayName: string | null;
|
|
178
|
+
} | null;
|
|
179
|
+
readonly updatedAt: string;
|
|
180
|
+
}, 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>;
|
|
181
|
+
export declare const removeAddress: (input: {
|
|
182
|
+
readonly id: string;
|
|
183
|
+
readonly addressId: string;
|
|
184
|
+
}) => import("effect/Effect").Effect<{
|
|
185
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
186
|
+
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
187
|
+
readonly slug: string;
|
|
188
|
+
readonly name: string;
|
|
189
|
+
readonly status: "active" | "paused";
|
|
190
|
+
readonly primaryAddress: string | null;
|
|
191
|
+
readonly createdAt: string;
|
|
192
|
+
readonly description: string | null;
|
|
193
|
+
readonly metadata: {
|
|
194
|
+
readonly [x: string]: string;
|
|
195
|
+
};
|
|
196
|
+
readonly addresses: readonly {
|
|
197
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxAddressId">;
|
|
198
|
+
readonly address: string;
|
|
199
|
+
readonly source: "samvaHosted" | "verifiedDomain";
|
|
200
|
+
readonly domainId: string | null;
|
|
201
|
+
readonly displayName: string | null;
|
|
202
|
+
}[];
|
|
203
|
+
readonly defaultFrom: {
|
|
204
|
+
readonly address: string;
|
|
205
|
+
readonly displayName: string | null;
|
|
206
|
+
} | null;
|
|
207
|
+
readonly updatedAt: string;
|
|
208
|
+
}, 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>;
|
|
160
209
|
export declare const pause: (input: {
|
|
161
210
|
readonly id: string;
|
|
162
211
|
}) => import("effect/Effect").Effect<{
|
|
163
212
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
164
213
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
165
214
|
readonly slug: string;
|
|
166
|
-
readonly
|
|
215
|
+
readonly name: string;
|
|
167
216
|
readonly status: "active" | "paused";
|
|
168
217
|
readonly primaryAddress: string | null;
|
|
169
218
|
readonly createdAt: string;
|
|
@@ -190,7 +239,7 @@ export declare const resume: (input: {
|
|
|
190
239
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
191
240
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
192
241
|
readonly slug: string;
|
|
193
|
-
readonly
|
|
242
|
+
readonly name: string;
|
|
194
243
|
readonly status: "active" | "paused";
|
|
195
244
|
readonly primaryAddress: string | null;
|
|
196
245
|
readonly createdAt: string;
|
|
@@ -228,7 +277,7 @@ export declare const getAgentActivity: (input: {
|
|
|
228
277
|
};
|
|
229
278
|
readonly events: {
|
|
230
279
|
readonly byType: readonly {
|
|
231
|
-
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "address.attached" | "email.received" | "email.released" | "email.sent" | "mailbox.created" | "thread.created";
|
|
280
|
+
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "address.attached" | "address.detached" | "email.received" | "email.released" | "email.sent" | "mailbox.created" | "thread.created";
|
|
232
281
|
readonly count: number;
|
|
233
282
|
}[];
|
|
234
283
|
};
|
|
@@ -3230,7 +3279,7 @@ export declare const listEvents: ((input: {
|
|
|
3230
3279
|
}) => import("effect/Effect").Effect<{
|
|
3231
3280
|
readonly items: readonly {
|
|
3232
3281
|
readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
|
|
3233
|
-
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "address.attached" | "email.received" | "email.released" | "email.sent" | "mailbox.created" | "thread.created";
|
|
3282
|
+
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "address.attached" | "address.detached" | "email.received" | "email.released" | "email.sent" | "mailbox.created" | "thread.created";
|
|
3234
3283
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3235
3284
|
readonly actionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
|
|
3236
3285
|
readonly actor: {
|
|
@@ -3254,7 +3303,7 @@ export declare const listEvents: ((input: {
|
|
|
3254
3303
|
}) => import("effect/Stream").Stream<{
|
|
3255
3304
|
readonly items: readonly {
|
|
3256
3305
|
readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
|
|
3257
|
-
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "address.attached" | "email.received" | "email.released" | "email.sent" | "mailbox.created" | "thread.created";
|
|
3306
|
+
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "address.attached" | "address.detached" | "email.received" | "email.released" | "email.sent" | "mailbox.created" | "thread.created";
|
|
3258
3307
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3259
3308
|
readonly actionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
|
|
3260
3309
|
readonly actor: {
|
|
@@ -3277,7 +3326,7 @@ export declare const listEvents: ((input: {
|
|
|
3277
3326
|
readonly before?: string | null | undefined;
|
|
3278
3327
|
}) => import("effect/Stream").Stream<{
|
|
3279
3328
|
readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
|
|
3280
|
-
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "address.attached" | "email.received" | "email.released" | "email.sent" | "mailbox.created" | "thread.created";
|
|
3329
|
+
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "address.attached" | "address.detached" | "email.received" | "email.released" | "email.sent" | "mailbox.created" | "thread.created";
|
|
3281
3330
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
3282
3331
|
readonly actionId: (string & import("effect/Brand").Brand<"MailboxActionId">) | null;
|
|
3283
3332
|
readonly actor: {
|
package/dist/effect/mailboxes.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as MailboxEventStreamError } from "../mailbox-events-VKR4f3qq.js";
|
|
2
|
-
import { $ as
|
|
3
|
-
export { MailboxEventStreamError, addThreadLabels, approveAction, cancelAction, copyMessageAttachment, create, 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, removeThreadLabels, reply, replyAll, resume, retryAction, revokeGrant, sendDraft, sendMessage, update, updateDraft, updateGrant, updateLabel, updateNote, updatePolicy, updateThread };
|
|
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.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,
|
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,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,
|
|
@@ -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/organizations.ts
|
|
4
4
|
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|
|
@@ -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,
|
|
@@ -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/subscriptions.ts
|
|
4
4
|
var subscriptions_exports = /* @__PURE__ */ __exportAll({ subscribe: () => subscribe });
|
|
5
5
|
const subscribe = make("subscriptionsSubscribe");
|
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 { N as UpdateTemplatePayload, d as CreateTemplatePayload } from "../client-
|
|
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,
|
|
@@ -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,
|
package/dist/effect/webhooks.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 { P as UpdateWebhookPayload, f as CreateWebhookPayload, k as TestWebhookPayload } from "../client-
|
|
2
|
+
import { n as make } from "../operation-BZ5Xov-x.js";
|
|
3
|
+
import { P as UpdateWebhookPayload, f as CreateWebhookPayload, k as TestWebhookPayload } from "../client-CDg7zJs0.js";
|
|
4
4
|
//#region src/effect/webhooks.ts
|
|
5
5
|
var webhooks_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
CreatePayload: () => CreateWebhookPayload,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MediaUploadError } from "./inline-attachments-
|
|
2
|
-
import { C as UnauthorizedError, S as SenderNotReadyError, T as fromApiError, _ as PaymentRequiredError, a as CampaignFooterRequiredError, b as SamvaApiError, c as EmailChannelError, d as ForbiddenError, f as GatewayTimeoutError, g as OnboardingReviewRequiredError, h as MailboxSendRefusedError, i as BrandAddressRequiredError, l as ExternalServiceError, m as MailboxSendConflictError, n as AnalyticsQueryError, o as ConflictError, p as InternalError, r as BillingProviderError, s as DeliveryUnavailableError, t as createClient, u as FlagDisabledError, v as RateLimitedError, w as ValidationError, x as SamvaTransportError, y as ResourceNotFoundError } from "./promises-
|
|
1
|
+
import { t as MediaUploadError } from "./inline-attachments-UxLeyytJ.js";
|
|
2
|
+
import { C as UnauthorizedError, S as SenderNotReadyError, T as fromApiError, _ as PaymentRequiredError, a as CampaignFooterRequiredError, b as SamvaApiError, c as EmailChannelError, d as ForbiddenError, f as GatewayTimeoutError, g as OnboardingReviewRequiredError, h as MailboxSendRefusedError, i as BrandAddressRequiredError, l as ExternalServiceError, m as MailboxSendConflictError, n as AnalyticsQueryError, o as ConflictError, p as InternalError, r as BillingProviderError, s as DeliveryUnavailableError, t as createClient, u as FlagDisabledError, v as RateLimitedError, w as ValidationError, x as SamvaTransportError, y as ResourceNotFoundError } from "./promises-Cd6Jamqk.js";
|
|
3
3
|
import { n as MailboxEventStreamError, t as MailboxEventStream } from "./mailbox-events-VKR4f3qq.js";
|
|
4
4
|
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, createClient, fromApiError };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#endregion
|
|
2
2
|
//#region src/client-attribution.ts
|
|
3
|
-
const SDK_VERSION = "0.
|
|
3
|
+
const SDK_VERSION = "0.15.0";
|
|
4
4
|
const CLIENT_ATTRIBUTION_HEADER = "x-samva-client";
|
|
5
5
|
const clientAttribution = (surface) => `${surface}/${SDK_VERSION}`;
|
|
6
6
|
/** A failed upload of an attachment's bytes to its presigned media URL. */
|
|
@@ -118,4 +118,4 @@ const withUploadedAttachments = (payload, uploaded) => {
|
|
|
118
118
|
//#endregion
|
|
119
119
|
export { withUploadedAttachments as a, uploadContentType as i, mediaCreateBody as n, CLIENT_ATTRIBUTION_HEADER as o, planInlineUploads as r, clientAttribution as s, MediaUploadError as t };
|
|
120
120
|
|
|
121
|
-
//# sourceMappingURL=inline-attachments-
|
|
121
|
+
//# sourceMappingURL=inline-attachments-UxLeyytJ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
2
|
import { n as MailboxEventStreamError, t as MailboxEventStream } from "./mailbox-events-VKR4f3qq.js";
|
|
3
|
-
import { n as make } from "./operation-
|
|
4
|
-
import { t as Service } from "./client-
|
|
3
|
+
import { n as make } from "./operation-BZ5Xov-x.js";
|
|
4
|
+
import { t as Service } from "./client-CDg7zJs0.js";
|
|
5
5
|
import { Cause, Effect, Exit, Stream } from "effect";
|
|
6
6
|
//#region src/effect/internal/mailbox-events.ts
|
|
7
7
|
const toStreamError = (cause) => cause instanceof MailboxEventStreamError ? cause : new MailboxEventStreamError({
|
|
@@ -38,6 +38,7 @@ var mailboxes_exports = /* @__PURE__ */ __exportAll({
|
|
|
38
38
|
cancelAction: () => cancelAction,
|
|
39
39
|
copyMessageAttachment: () => copyMessageAttachment,
|
|
40
40
|
create: () => create,
|
|
41
|
+
createAddress: () => createAddress,
|
|
41
42
|
createDraft: () => createDraft,
|
|
42
43
|
createGrant: () => createGrant,
|
|
43
44
|
createLabel: () => createLabel,
|
|
@@ -76,6 +77,7 @@ var mailboxes_exports = /* @__PURE__ */ __exportAll({
|
|
|
76
77
|
pause: () => pause,
|
|
77
78
|
releaseMessage: () => releaseMessage,
|
|
78
79
|
remove: () => remove,
|
|
80
|
+
removeAddress: () => removeAddress,
|
|
79
81
|
removeThreadLabels: () => removeThreadLabels,
|
|
80
82
|
reply: () => reply,
|
|
81
83
|
replyAll: () => replyAll,
|
|
@@ -97,6 +99,8 @@ const create = make("mailboxesCreate");
|
|
|
97
99
|
const get = make("mailboxesGet");
|
|
98
100
|
const update = make("mailboxesUpdate");
|
|
99
101
|
const remove = make("mailboxesRemove");
|
|
102
|
+
const createAddress = make("mailboxesCreateAddress");
|
|
103
|
+
const removeAddress = make("mailboxesRemoveAddress");
|
|
100
104
|
const pause = make("mailboxesPause");
|
|
101
105
|
const resume = make("mailboxesResume");
|
|
102
106
|
const getAgentActivity = make("mailboxesGetAgentActivity");
|
|
@@ -150,6 +154,6 @@ const approveAction = make("mailboxesApproveAction");
|
|
|
150
154
|
const denyAction = make("mailboxesDenyAction");
|
|
151
155
|
const listEvents = make("mailboxesListEvents");
|
|
152
156
|
//#endregion
|
|
153
|
-
export {
|
|
157
|
+
export { sendMessage as $, listActions as A, listThreads as B, getMessage as C, getThread as D, getPolicy as E, listLabels as F, removeAddress as G, pause as H, listPolicies as I, replyAll as J, removeThreadLabels as K, listQuarantine as L, listEvents as M, listFolders as N, getThreadContent as O, listGrants as P, sendDraft as Q, listThreadMessages as R, getDraft as S, getMessageRaw as T, releaseMessage as U, mailboxes_exports as V, remove as W, retryAction as X, resume as Y, revokeGrant as Z, discardMessage as _, create as a, updatePolicy as at, getAction as b, createGrant as c, createPolicy as d, update as et, deleteDraft as f, denyAction as g, deletePolicy as h, copyMessageAttachment as i, updateNote as it, listDrafts as j, list as k, createLabel as l, deleteNote as m, approveAction as n, updateGrant as nt, createAddress as o, updateThread as ot, deleteLabel as p, reply as q, cancelAction as r, updateLabel as rt, createDraft as s, events as st, addThreadLabels as t, updateDraft as tt, createNote as u, forward as v, getMessageAttachment as w, getAgentActivity as x, get as y, listThreadNotes as z };
|
|
154
158
|
|
|
155
|
-
//# sourceMappingURL=mailboxes-
|
|
159
|
+
//# sourceMappingURL=mailboxes-BH_JPmOE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as withUploadedAttachments, n as mediaCreateBody, r as planInlineUploads } from "./inline-attachments-
|
|
1
|
+
import { a as withUploadedAttachments, n as mediaCreateBody, r as planInlineUploads } from "./inline-attachments-UxLeyytJ.js";
|
|
2
2
|
import { n as buildMessagesSendPayload, r as replyToEmailsPayload, t as buildEmailSendPayload } from "./normalize-B79uJIeb.js";
|
|
3
|
-
import { E as SamvaApi, t as Service } from "./client-
|
|
3
|
+
import { E as SamvaApi, t as Service } from "./client-CDg7zJs0.js";
|
|
4
4
|
import { generateIdempotencyKey, withRetry } from "./effect/retry.js";
|
|
5
5
|
import { Effect, Option, Predicate, Stream } from "effect";
|
|
6
6
|
//#region src/service-map.ts
|
|
@@ -706,6 +706,14 @@ const SDK_OPERATION_CALLS = {
|
|
|
706
706
|
kind: "path",
|
|
707
707
|
paths: ["id"]
|
|
708
708
|
},
|
|
709
|
+
mailboxesCreateAddress: {
|
|
710
|
+
kind: "pathPayload",
|
|
711
|
+
paths: ["id"]
|
|
712
|
+
},
|
|
713
|
+
mailboxesRemoveAddress: {
|
|
714
|
+
kind: "path",
|
|
715
|
+
paths: ["id", "addressId"]
|
|
716
|
+
},
|
|
709
717
|
mailboxesPause: {
|
|
710
718
|
kind: "path",
|
|
711
719
|
paths: ["id"]
|
|
@@ -1203,4 +1211,4 @@ const addEmailSender = Effect.fn("Email.addSender")(function* (input, options) {
|
|
|
1203
1211
|
//#endregion
|
|
1204
1212
|
export { sendMessage as i, make as n, sendEmail as r, addEmailSender as t };
|
|
1205
1213
|
|
|
1206
|
-
//# sourceMappingURL=operation-
|
|
1214
|
+
//# sourceMappingURL=operation-BZ5Xov-x.js.map
|
package/dist/promises/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MediaUploadError } from "../inline-attachments-
|
|
2
|
-
import { C as UnauthorizedError, S as SenderNotReadyError, T as fromApiError, _ as PaymentRequiredError, a as CampaignFooterRequiredError, b as SamvaApiError, c as EmailChannelError, d as ForbiddenError, f as GatewayTimeoutError, g as OnboardingReviewRequiredError, h as MailboxSendRefusedError, i as BrandAddressRequiredError, l as ExternalServiceError, m as MailboxSendConflictError, n as AnalyticsQueryError, o as ConflictError, p as InternalError, r as BillingProviderError, s as DeliveryUnavailableError, t as createClient, u as FlagDisabledError, v as RateLimitedError, w as ValidationError, x as SamvaTransportError, y as ResourceNotFoundError } from "../promises-
|
|
1
|
+
import { t as MediaUploadError } from "../inline-attachments-UxLeyytJ.js";
|
|
2
|
+
import { C as UnauthorizedError, S as SenderNotReadyError, T as fromApiError, _ as PaymentRequiredError, a as CampaignFooterRequiredError, b as SamvaApiError, c as EmailChannelError, d as ForbiddenError, f as GatewayTimeoutError, g as OnboardingReviewRequiredError, h as MailboxSendRefusedError, i as BrandAddressRequiredError, l as ExternalServiceError, m as MailboxSendConflictError, n as AnalyticsQueryError, o as ConflictError, p as InternalError, r as BillingProviderError, s as DeliveryUnavailableError, t as createClient, u as FlagDisabledError, v as RateLimitedError, w as ValidationError, x as SamvaTransportError, y as ResourceNotFoundError } from "../promises-Cd6Jamqk.js";
|
|
3
3
|
import { n as MailboxEventStreamError, t as MailboxEventStream } from "../mailbox-events-VKR4f3qq.js";
|
|
4
4
|
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, createClient, fromApiError };
|