samva 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +3 -2
- package/README.md +14 -4
- package/dist/{categories-B9Nw2v_F.js → categories-DvsHUJtX.js} +32 -8
- package/dist/client/sdk.gen.d.ts +493 -88
- package/dist/client/types.gen.d.ts +3136 -416
- package/dist/{client-B7gEkvEq.js → client-5O8KsY5Z.js} +2638 -902
- package/dist/{client-attribution-B2yJBXdZ.js → client-attribution-27MNycCV.js} +2 -2
- package/dist/effect/analytics.d.ts +66 -0
- package/dist/effect/analytics.js +21 -0
- package/dist/effect/api-keys.d.ts +198 -34
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/attachments.d.ts +53 -0
- package/dist/effect/attachments.js +17 -0
- package/dist/effect/brands.d.ts +212 -0
- package/dist/effect/brands.js +24 -0
- package/dist/effect/campaigns.d.ts +36 -18
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contact-groups.d.ts +375 -0
- package/dist/effect/contact-groups.js +29 -0
- package/dist/effect/contacts.d.ts +35 -19
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +188 -47
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.d.ts +111 -0
- package/dist/effect/custom-fields.js +17 -0
- package/dist/effect/email.d.ts +268 -121
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated-metadata.d.ts +20 -4
- package/dist/effect/generated.d.ts +13934 -7968
- package/dist/effect/index.d.ts +7 -2
- package/dist/effect/index.js +9 -4
- package/dist/effect/internal/operation.d.ts +121 -27
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +319 -73
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.d.ts +6 -6
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +7 -374
- package/dist/effect/organizations.js +2 -4
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +263 -305
- package/dist/effect/templates.js +7 -5
- package/dist/effect/unsubscribe-groups.d.ts +161 -0
- package/dist/effect/unsubscribe-groups.js +25 -0
- package/dist/effect/webhooks.d.ts +18 -18
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{normalize-BiIJnycv.js → normalize-B79uJIeb.js} +13 -14
- package/dist/normalize.d.ts +3 -7
- package/dist/{operation-B4FjN6wq.js → operation-Cb5V9FJ7.js} +123 -11
- package/dist/promises/errors.gen.d.ts +50 -43
- package/dist/promises/index.d.ts +20 -6
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-CP_nxUus.js → promises-C2yyw-pf.js} +1582 -368
- package/dist/service-map.d.ts +189 -12
- package/package.json +32 -12
- package/dist/effect/design.d.ts +0 -209
- package/dist/effect/design.js +0 -13
package/dist/effect/index.d.ts
CHANGED
|
@@ -16,12 +16,16 @@
|
|
|
16
16
|
* }).pipe(Effect.provide(Client.layerFetch({ apiKey: "<samva-api-key>" })));
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
+
export * as Analytics from "./analytics";
|
|
19
20
|
export * as ApiKeys from "./api-keys";
|
|
21
|
+
export * as Attachments from "./attachments";
|
|
22
|
+
export * as Brands from "./brands";
|
|
20
23
|
export * as Campaigns from "./campaigns";
|
|
21
24
|
export * as Client from "./client";
|
|
25
|
+
export * as ContactGroups from "./contact-groups";
|
|
22
26
|
export * as Contacts from "./contacts";
|
|
23
27
|
export * as Conversations from "./conversations";
|
|
24
|
-
export * as
|
|
28
|
+
export * as CustomFields from "./custom-fields";
|
|
25
29
|
export * as Email from "./email";
|
|
26
30
|
export * as Media from "./media";
|
|
27
31
|
export * as Messages from "./messages";
|
|
@@ -30,8 +34,9 @@ export * as Organizations from "./organizations";
|
|
|
30
34
|
export * as Retry from "./retry";
|
|
31
35
|
export * as ScheduledMessages from "./scheduled-messages";
|
|
32
36
|
export * as Templates from "./templates";
|
|
37
|
+
export * as UnsubscribeGroups from "./unsubscribe-groups";
|
|
33
38
|
export * as Webhooks from "./webhooks";
|
|
34
|
-
export { BillingProviderError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, InternalError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError,
|
|
39
|
+
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError, DeliveryUnavailableError, } from "./generated";
|
|
35
40
|
export { type ErrorCategory, categoriesOf, hasCategory, isAuthError, isValidationError, isNotFoundError, isConflictError, isThrottlingError, isBillingError, isTransient, isRetryable, catchCategory, catchAuthError, catchValidationError, catchNotFoundError, catchConflictError, catchThrottlingError, catchBillingError, catchTransient, } from "./categories";
|
|
36
41
|
export type { PageEnvelope } from "./pagination";
|
|
37
42
|
export type { Json as JsonValue } from "effect/Schema";
|
package/dist/effect/index.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-
|
|
1
|
+
import { C as ResourceNotFoundError, D as UnauthorizedError, S as RateLimitedError, _ as ForbiddenError, a as AnalyticsQueryError, b as OnboardingReviewRequiredError, c as CampaignFooterRequiredError, g as FlagDisabledError, h as ExternalServiceError, j as ValidationError, l as ConflictError, m as EmailChannelError, o as BillingProviderError, p as DeliveryUnavailableError, s as BrandAddressRequiredError, v as GatewayTimeoutError, x as PaymentRequiredError, y as InternalError } from "../client-5O8KsY5Z.js";
|
|
2
|
+
import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-DvsHUJtX.js";
|
|
3
3
|
import { t as retry_exports } from "./retry.js";
|
|
4
|
+
import { t as analytics_exports } from "./analytics.js";
|
|
4
5
|
import { t as api_keys_exports } from "./api-keys.js";
|
|
6
|
+
import { t as attachments_exports } from "./attachments.js";
|
|
7
|
+
import { t as brands_exports } from "./brands.js";
|
|
5
8
|
import { t as campaigns_exports } from "./campaigns.js";
|
|
6
9
|
import { t as client_exports } from "./client.js";
|
|
10
|
+
import { t as contact_groups_exports } from "./contact-groups.js";
|
|
7
11
|
import { t as contacts_exports } from "./contacts.js";
|
|
8
12
|
import { t as conversations_exports } from "./conversations.js";
|
|
9
|
-
import { t as
|
|
13
|
+
import { t as custom_fields_exports } from "./custom-fields.js";
|
|
10
14
|
import { t as email_exports } from "./email.js";
|
|
11
15
|
import { t as media_exports } from "./media.js";
|
|
12
16
|
import { t as messages_exports } from "./messages.js";
|
|
@@ -14,5 +18,6 @@ import { t as operations_exports } from "./operations.js";
|
|
|
14
18
|
import { t as organizations_exports } from "./organizations.js";
|
|
15
19
|
import { t as scheduled_messages_exports } from "./scheduled-messages.js";
|
|
16
20
|
import { t as templates_exports } from "./templates.js";
|
|
21
|
+
import { t as unsubscribe_groups_exports } from "./unsubscribe-groups.js";
|
|
17
22
|
import { t as webhooks_exports } from "./webhooks.js";
|
|
18
|
-
export { api_keys_exports as ApiKeys, BillingProviderError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contacts_exports as Contacts, conversations_exports as Conversations,
|
|
23
|
+
export { analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, media_exports as Media, messages_exports as Messages, OnboardingReviewRequiredError, operations_exports as Operations, organizations_exports as Organizations, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, retry_exports as Retry, scheduled_messages_exports as ScheduledMessages, templates_exports as Templates, UnauthorizedError, unsubscribe_groups_exports as UnsubscribeGroups, ValidationError, webhooks_exports as Webhooks, catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
|
@@ -89,7 +89,33 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
89
89
|
} | null;
|
|
90
90
|
readonly channel: "email";
|
|
91
91
|
readonly direction: "inbound" | "outbound";
|
|
92
|
-
readonly content:
|
|
92
|
+
readonly content: {
|
|
93
|
+
readonly text?: string | null;
|
|
94
|
+
readonly html?: string | null;
|
|
95
|
+
readonly markdown?: string | null;
|
|
96
|
+
readonly email?: {
|
|
97
|
+
readonly subject?: string | null;
|
|
98
|
+
readonly html?: string | null;
|
|
99
|
+
readonly text?: string | null;
|
|
100
|
+
readonly headers?: {
|
|
101
|
+
readonly [x: string]: string;
|
|
102
|
+
} | null;
|
|
103
|
+
readonly tracking?: {
|
|
104
|
+
readonly opens?: boolean;
|
|
105
|
+
readonly clicks?: boolean;
|
|
106
|
+
};
|
|
107
|
+
readonly attachments?: readonly {
|
|
108
|
+
readonly filename: string;
|
|
109
|
+
readonly content?: string | null;
|
|
110
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
111
|
+
readonly contentType: string;
|
|
112
|
+
readonly size: number;
|
|
113
|
+
}[] | null;
|
|
114
|
+
} | null;
|
|
115
|
+
readonly metadata?: {
|
|
116
|
+
readonly [x: string]: import("../generated").JsonValue;
|
|
117
|
+
} | null;
|
|
118
|
+
};
|
|
93
119
|
readonly metadata: {
|
|
94
120
|
readonly [x: string]: import("../generated").JsonValue;
|
|
95
121
|
} | null;
|
|
@@ -98,17 +124,28 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
98
124
|
readonly tags: readonly string[];
|
|
99
125
|
readonly categories: readonly string[];
|
|
100
126
|
readonly isTest: boolean;
|
|
101
|
-
readonly isInternal: boolean;
|
|
102
|
-
readonly isAutomated: boolean;
|
|
103
127
|
readonly externalId: string | null;
|
|
104
128
|
readonly referenceId: string | null;
|
|
105
|
-
readonly
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
129
|
+
readonly submission: {
|
|
130
|
+
readonly origin: "campaign" | "direct" | "scheduled";
|
|
131
|
+
readonly transport: "http" | null;
|
|
132
|
+
readonly credential: {
|
|
133
|
+
readonly kind: "api_key";
|
|
134
|
+
readonly apiKeyId: (string & import("effect/Brand").Brand<"ApiKeyId">) | null;
|
|
135
|
+
} | {
|
|
136
|
+
readonly kind: "oauth";
|
|
137
|
+
readonly clientId: string | null;
|
|
138
|
+
} | {
|
|
139
|
+
readonly kind: "session";
|
|
140
|
+
} | null;
|
|
141
|
+
readonly userId: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
142
|
+
readonly client: {
|
|
143
|
+
readonly surface: "cli" | "mcp" | "typescript-effect" | "typescript-promise";
|
|
144
|
+
readonly version: string;
|
|
145
|
+
} | null;
|
|
146
|
+
} | null;
|
|
109
147
|
readonly createdAt: string;
|
|
110
148
|
readonly updatedAt: string;
|
|
111
|
-
readonly createdBy: string | null;
|
|
112
149
|
readonly fromContact: {
|
|
113
150
|
readonly id: string;
|
|
114
151
|
readonly name: string;
|
|
@@ -158,7 +195,8 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
158
195
|
readonly scheduling: {
|
|
159
196
|
readonly dueAt: string;
|
|
160
197
|
readonly expiresAt: string;
|
|
161
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "
|
|
198
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
199
|
+
readonly reviewExpectedAt: string | null;
|
|
162
200
|
} | null;
|
|
163
201
|
readonly id: string;
|
|
164
202
|
readonly messageId: string;
|
|
@@ -178,17 +216,24 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
178
216
|
readonly terminalAt: string | null;
|
|
179
217
|
readonly errorCode: string | null;
|
|
180
218
|
readonly errorMessage: string | null;
|
|
181
|
-
readonly errorDetails:
|
|
219
|
+
readonly errorDetails: {
|
|
220
|
+
readonly code?: string | null;
|
|
221
|
+
readonly name?: string | null;
|
|
222
|
+
readonly message?: string | null;
|
|
223
|
+
readonly details?: {
|
|
224
|
+
readonly [x: string]: string | number | null;
|
|
225
|
+
} | null;
|
|
226
|
+
readonly retryable?: boolean | null;
|
|
227
|
+
} | null;
|
|
182
228
|
readonly cost: string;
|
|
183
229
|
readonly currency: string;
|
|
184
230
|
readonly idempotencyKey: string | null;
|
|
185
|
-
readonly metadata: import("../generated").JsonValue;
|
|
186
231
|
readonly createdAt: string;
|
|
187
232
|
readonly updatedAt: string;
|
|
188
233
|
}[];
|
|
189
234
|
readonly emailDeliveryDetails: readonly {
|
|
190
235
|
readonly deliveryId: string;
|
|
191
|
-
readonly messageIdHeader: string
|
|
236
|
+
readonly messageIdHeader: string;
|
|
192
237
|
readonly inReplyTo: string | null;
|
|
193
238
|
readonly references: readonly string[] | null;
|
|
194
239
|
readonly subject: string;
|
|
@@ -220,7 +265,9 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
220
265
|
readonly createdAt: string;
|
|
221
266
|
readonly updatedAt: string;
|
|
222
267
|
}[];
|
|
223
|
-
|
|
268
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
269
|
+
readonly reviewExpectedAt: string | null;
|
|
270
|
+
}, import("..").BillingProviderError | import("..").ConflictError | import("..").DeliveryUnavailableError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("..").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("..").OnboardingReviewRequiredError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError, Service>;
|
|
224
271
|
export declare const sendEmail: (input: EmailSendInput, options?: SendOptions | undefined) => Effect.Effect<{
|
|
225
272
|
readonly id: string;
|
|
226
273
|
readonly organizationId: string;
|
|
@@ -232,7 +279,33 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
232
279
|
} | null;
|
|
233
280
|
readonly channel: "email";
|
|
234
281
|
readonly direction: "inbound" | "outbound";
|
|
235
|
-
readonly content:
|
|
282
|
+
readonly content: {
|
|
283
|
+
readonly text?: string | null;
|
|
284
|
+
readonly html?: string | null;
|
|
285
|
+
readonly markdown?: string | null;
|
|
286
|
+
readonly email?: {
|
|
287
|
+
readonly subject?: string | null;
|
|
288
|
+
readonly html?: string | null;
|
|
289
|
+
readonly text?: string | null;
|
|
290
|
+
readonly headers?: {
|
|
291
|
+
readonly [x: string]: string;
|
|
292
|
+
} | null;
|
|
293
|
+
readonly tracking?: {
|
|
294
|
+
readonly opens?: boolean;
|
|
295
|
+
readonly clicks?: boolean;
|
|
296
|
+
};
|
|
297
|
+
readonly attachments?: readonly {
|
|
298
|
+
readonly filename: string;
|
|
299
|
+
readonly content?: string | null;
|
|
300
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
301
|
+
readonly contentType: string;
|
|
302
|
+
readonly size: number;
|
|
303
|
+
}[] | null;
|
|
304
|
+
} | null;
|
|
305
|
+
readonly metadata?: {
|
|
306
|
+
readonly [x: string]: import("../generated").JsonValue;
|
|
307
|
+
} | null;
|
|
308
|
+
};
|
|
236
309
|
readonly metadata: {
|
|
237
310
|
readonly [x: string]: import("../generated").JsonValue;
|
|
238
311
|
} | null;
|
|
@@ -241,17 +314,28 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
241
314
|
readonly tags: readonly string[];
|
|
242
315
|
readonly categories: readonly string[];
|
|
243
316
|
readonly isTest: boolean;
|
|
244
|
-
readonly isInternal: boolean;
|
|
245
|
-
readonly isAutomated: boolean;
|
|
246
317
|
readonly externalId: string | null;
|
|
247
318
|
readonly referenceId: string | null;
|
|
248
|
-
readonly
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
319
|
+
readonly submission: {
|
|
320
|
+
readonly origin: "campaign" | "direct" | "scheduled";
|
|
321
|
+
readonly transport: "http" | null;
|
|
322
|
+
readonly credential: {
|
|
323
|
+
readonly kind: "api_key";
|
|
324
|
+
readonly apiKeyId: (string & import("effect/Brand").Brand<"ApiKeyId">) | null;
|
|
325
|
+
} | {
|
|
326
|
+
readonly kind: "oauth";
|
|
327
|
+
readonly clientId: string | null;
|
|
328
|
+
} | {
|
|
329
|
+
readonly kind: "session";
|
|
330
|
+
} | null;
|
|
331
|
+
readonly userId: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
332
|
+
readonly client: {
|
|
333
|
+
readonly surface: "cli" | "mcp" | "typescript-effect" | "typescript-promise";
|
|
334
|
+
readonly version: string;
|
|
335
|
+
} | null;
|
|
336
|
+
} | null;
|
|
252
337
|
readonly createdAt: string;
|
|
253
338
|
readonly updatedAt: string;
|
|
254
|
-
readonly createdBy: string | null;
|
|
255
339
|
readonly fromContact: {
|
|
256
340
|
readonly id: string;
|
|
257
341
|
readonly name: string;
|
|
@@ -301,7 +385,8 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
301
385
|
readonly scheduling: {
|
|
302
386
|
readonly dueAt: string;
|
|
303
387
|
readonly expiresAt: string;
|
|
304
|
-
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "
|
|
388
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
389
|
+
readonly reviewExpectedAt: string | null;
|
|
305
390
|
} | null;
|
|
306
391
|
readonly id: string;
|
|
307
392
|
readonly messageId: string;
|
|
@@ -321,17 +406,24 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
321
406
|
readonly terminalAt: string | null;
|
|
322
407
|
readonly errorCode: string | null;
|
|
323
408
|
readonly errorMessage: string | null;
|
|
324
|
-
readonly errorDetails:
|
|
409
|
+
readonly errorDetails: {
|
|
410
|
+
readonly code?: string | null;
|
|
411
|
+
readonly name?: string | null;
|
|
412
|
+
readonly message?: string | null;
|
|
413
|
+
readonly details?: {
|
|
414
|
+
readonly [x: string]: string | number | null;
|
|
415
|
+
} | null;
|
|
416
|
+
readonly retryable?: boolean | null;
|
|
417
|
+
} | null;
|
|
325
418
|
readonly cost: string;
|
|
326
419
|
readonly currency: string;
|
|
327
420
|
readonly idempotencyKey: string | null;
|
|
328
|
-
readonly metadata: import("../generated").JsonValue;
|
|
329
421
|
readonly createdAt: string;
|
|
330
422
|
readonly updatedAt: string;
|
|
331
423
|
}[];
|
|
332
424
|
readonly emailDeliveryDetails: readonly {
|
|
333
425
|
readonly deliveryId: string;
|
|
334
|
-
readonly messageIdHeader: string
|
|
426
|
+
readonly messageIdHeader: string;
|
|
335
427
|
readonly inReplyTo: string | null;
|
|
336
428
|
readonly references: readonly string[] | null;
|
|
337
429
|
readonly subject: string;
|
|
@@ -363,7 +455,9 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
363
455
|
readonly createdAt: string;
|
|
364
456
|
readonly updatedAt: string;
|
|
365
457
|
}[];
|
|
366
|
-
|
|
458
|
+
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
459
|
+
readonly reviewExpectedAt: string | null;
|
|
460
|
+
}, import("..").BillingProviderError | import("..").ConflictError | import("..").DeliveryUnavailableError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("..").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("..").OnboardingReviewRequiredError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError, Service>;
|
|
367
461
|
type AddSenderRequest = NonNullable<RequestArg<FlatRaw["emailAddSender"]>>;
|
|
368
462
|
export type EmailAddSenderInput = Omit<AddSenderRequest["payload"], "replyToEmails"> & {
|
|
369
463
|
readonly replyToEmails?: ErgonomicEmailList | null | undefined;
|
|
@@ -375,5 +469,5 @@ export declare const addEmailSender: (input: EmailAddSenderInput, options?: Send
|
|
|
375
469
|
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
376
470
|
readonly providerFailureCode: string | null;
|
|
377
471
|
readonly createdAt: string;
|
|
378
|
-
}, import("..").ConflictError | import("..").ExternalServiceError | import("..").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError, Service>;
|
|
472
|
+
}, import("..").ConflictError | import("..").ExternalServiceError | import("..").ForbiddenError | import("..").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError, Service>;
|
|
379
473
|
export {};
|
package/dist/effect/media.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const create: (input: {
|
|
|
27
27
|
};
|
|
28
28
|
readonly expiresAt: string;
|
|
29
29
|
};
|
|
30
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
30
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
31
31
|
export declare const getById: (input: {
|
|
32
32
|
readonly mediaId: string;
|
|
33
33
|
}) => import("effect/Effect").Effect<{
|
|
@@ -45,12 +45,12 @@ export declare const getById: (input: {
|
|
|
45
45
|
readonly expiresAt: string | null;
|
|
46
46
|
readonly createdAt: string;
|
|
47
47
|
readonly confirmedAt: string | null;
|
|
48
|
-
}, 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>;
|
|
48
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
49
49
|
export declare const remove: (input: {
|
|
50
50
|
readonly mediaId: string;
|
|
51
51
|
}) => import("effect/Effect").Effect<{
|
|
52
52
|
readonly success: boolean;
|
|
53
|
-
}, 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>;
|
|
53
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
54
54
|
export declare const complete: (input: {
|
|
55
55
|
readonly mediaId: string;
|
|
56
56
|
}) => import("effect/Effect").Effect<{
|
|
@@ -71,10 +71,10 @@ export declare const complete: (input: {
|
|
|
71
71
|
readonly confirmedAt: string | null;
|
|
72
72
|
};
|
|
73
73
|
readonly downloadUrl: string;
|
|
74
|
-
}, 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>;
|
|
74
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
75
75
|
export declare const downloadUrl: (input: {
|
|
76
76
|
readonly mediaId: string;
|
|
77
77
|
}) => import("effect/Effect").Effect<{
|
|
78
78
|
readonly url: string;
|
|
79
79
|
readonly expiresAt: string;
|
|
80
|
-
}, 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>;
|
|
80
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
package/dist/effect/media.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-Cb5V9FJ7.js";
|
|
3
3
|
//#region src/effect/media.ts
|
|
4
4
|
var media_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
complete: () => complete,
|