samva 0.4.0 → 0.6.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 +12 -2
- package/dist/{categories-CsUa8ojo.js → categories-4u9Az4No.js} +28 -8
- package/dist/client/sdk.gen.d.ts +545 -74
- package/dist/client/types.gen.d.ts +3907 -747
- package/dist/{client-BmZK_uCt.js → client-DCM6U0-I.js} +3061 -808
- package/dist/{client-attribution-BslSOa_8.js → client-attribution-DYUSAa76.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/campaigns.d.ts +52 -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 +191 -44
- 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/design.d.ts +2 -2
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +931 -97
- package/dist/effect/email.js +27 -3
- package/dist/effect/generated-metadata.d.ts +16 -4
- package/dist/effect/generated.d.ts +19596 -10819
- package/dist/effect/index.d.ts +6 -1
- package/dist/effect/index.js +8 -3
- package/dist/effect/internal/operation.d.ts +124 -26
- package/dist/effect/media.d.ts +8 -8
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +473 -64
- package/dist/effect/messages.js +5 -3
- package/dist/effect/operations.d.ts +6 -6
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +7 -110
- package/dist/effect/organizations.js +2 -4
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +96 -12
- package/dist/effect/scheduled-messages.js +5 -3
- package/dist/effect/templates.d.ts +35 -295
- package/dist/effect/templates.js +3 -5
- package/dist/effect/unsubscribe-groups.d.ts +161 -0
- package/dist/effect/unsubscribe-groups.js +25 -0
- package/dist/effect/webhooks.d.ts +52 -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-B1knNlxk.js → operation-02YX3hY9.js} +144 -8
- package/dist/promises/errors.gen.d.ts +47 -39
- package/dist/promises/index.d.ts +19 -4
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-n1opem5V.js → promises-8MaPNAam.js} +1679 -267
- package/dist/service-map.d.ts +221 -8
- package/package.json +29 -9
package/dist/effect/index.d.ts
CHANGED
|
@@ -16,11 +16,15 @@
|
|
|
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";
|
|
20
22
|
export * as Campaigns from "./campaigns";
|
|
21
23
|
export * as Client from "./client";
|
|
24
|
+
export * as ContactGroups from "./contact-groups";
|
|
22
25
|
export * as Contacts from "./contacts";
|
|
23
26
|
export * as Conversations from "./conversations";
|
|
27
|
+
export * as CustomFields from "./custom-fields";
|
|
24
28
|
export * as Design from "./design";
|
|
25
29
|
export * as Email from "./email";
|
|
26
30
|
export * as Media from "./media";
|
|
@@ -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 { BillingProviderError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, 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,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
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 { S as UnauthorizedError, T as ValidationError, _ as RateLimitedError, a as BillingProviderError, d as ExternalServiceError, f as FlagDisabledError, g as PaymentRequiredError, h as InternalError, l as DeliveryUnavailableError, m as GatewayTimeoutError, o as ConflictError, p as ForbiddenError, u as EmailChannelError, v as ResourceNotFoundError } from "../client-DCM6U0-I.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-4u9Az4No.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";
|
|
5
7
|
import { t as campaigns_exports } from "./campaigns.js";
|
|
6
8
|
import { t as client_exports } from "./client.js";
|
|
9
|
+
import { t as contact_groups_exports } from "./contact-groups.js";
|
|
7
10
|
import { t as contacts_exports } from "./contacts.js";
|
|
8
11
|
import { t as conversations_exports } from "./conversations.js";
|
|
12
|
+
import { t as custom_fields_exports } from "./custom-fields.js";
|
|
9
13
|
import { t as design_exports } from "./design.js";
|
|
10
14
|
import { t as email_exports } from "./email.js";
|
|
11
15
|
import { t as media_exports } from "./media.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, design_exports as Design, email_exports as Email, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, InternalError, media_exports as Media, messages_exports as Messages, 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,
|
|
23
|
+
export { analytics_exports as Analytics, api_keys_exports as ApiKeys, attachments_exports as Attachments, BillingProviderError, 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, design_exports as Design, email_exports as Email, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, media_exports as Media, messages_exports as Messages, 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 };
|
|
@@ -28,7 +28,7 @@ type DirectOperation<Name extends SdkOperation> = {} extends Input<Name> ? (inpu
|
|
|
28
28
|
type OperationFunction<Name extends SdkOperation> = (typeof SDK_OPERATION_CALLS)[Name] extends {
|
|
29
29
|
readonly kind: "none";
|
|
30
30
|
} ? (_?: never) => OperationResult<Name> : (typeof SDK_OPERATION_CALLS)[Name] extends {
|
|
31
|
-
readonly kind: "idempotentPayload";
|
|
31
|
+
readonly kind: "idempotentPayload" | "idempotentPath";
|
|
32
32
|
} ? (input: Input<Name> & IdempotencyKeyField<NonNullable<RequestArg<FlatRaw[Name]>>>) => OperationResult<Name> : DirectOperation<Name>;
|
|
33
33
|
type EnvelopeItem<A> = A extends {
|
|
34
34
|
readonly items: ReadonlyArray<infer Item>;
|
|
@@ -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;
|
|
@@ -155,6 +192,11 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
155
192
|
} | null;
|
|
156
193
|
}[];
|
|
157
194
|
readonly deliveries: readonly {
|
|
195
|
+
readonly scheduling: {
|
|
196
|
+
readonly dueAt: string;
|
|
197
|
+
readonly expiresAt: string;
|
|
198
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
199
|
+
} | null;
|
|
158
200
|
readonly id: string;
|
|
159
201
|
readonly messageId: string;
|
|
160
202
|
readonly recipientId: string | null;
|
|
@@ -173,17 +215,24 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
173
215
|
readonly terminalAt: string | null;
|
|
174
216
|
readonly errorCode: string | null;
|
|
175
217
|
readonly errorMessage: string | null;
|
|
176
|
-
readonly errorDetails:
|
|
218
|
+
readonly errorDetails: {
|
|
219
|
+
readonly code?: string | null;
|
|
220
|
+
readonly name?: string | null;
|
|
221
|
+
readonly message?: string | null;
|
|
222
|
+
readonly details?: {
|
|
223
|
+
readonly [x: string]: string | number | null;
|
|
224
|
+
} | null;
|
|
225
|
+
readonly retryable?: boolean | null;
|
|
226
|
+
} | null;
|
|
177
227
|
readonly cost: string;
|
|
178
228
|
readonly currency: string;
|
|
179
229
|
readonly idempotencyKey: string | null;
|
|
180
|
-
readonly metadata: import("../generated").JsonValue;
|
|
181
230
|
readonly createdAt: string;
|
|
182
231
|
readonly updatedAt: string;
|
|
183
232
|
}[];
|
|
184
233
|
readonly emailDeliveryDetails: readonly {
|
|
185
234
|
readonly deliveryId: string;
|
|
186
|
-
readonly messageIdHeader: string
|
|
235
|
+
readonly messageIdHeader: string;
|
|
187
236
|
readonly inReplyTo: string | null;
|
|
188
237
|
readonly references: readonly string[] | null;
|
|
189
238
|
readonly subject: string;
|
|
@@ -215,7 +264,7 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
215
264
|
readonly createdAt: string;
|
|
216
265
|
readonly updatedAt: string;
|
|
217
266
|
}[];
|
|
218
|
-
}, import("..").BillingProviderError | import("..").ConflictError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError
|
|
267
|
+
}, import("..").BillingProviderError | import("..").ConflictError | import("..").DeliveryUnavailableError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("..").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("../generated").OnboardingReviewRequiredError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError, Service>;
|
|
219
268
|
export declare const sendEmail: (input: EmailSendInput, options?: SendOptions | undefined) => Effect.Effect<{
|
|
220
269
|
readonly id: string;
|
|
221
270
|
readonly organizationId: string;
|
|
@@ -227,7 +276,33 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
227
276
|
} | null;
|
|
228
277
|
readonly channel: "email";
|
|
229
278
|
readonly direction: "inbound" | "outbound";
|
|
230
|
-
readonly content:
|
|
279
|
+
readonly content: {
|
|
280
|
+
readonly text?: string | null;
|
|
281
|
+
readonly html?: string | null;
|
|
282
|
+
readonly markdown?: string | null;
|
|
283
|
+
readonly email?: {
|
|
284
|
+
readonly subject?: string | null;
|
|
285
|
+
readonly html?: string | null;
|
|
286
|
+
readonly text?: string | null;
|
|
287
|
+
readonly headers?: {
|
|
288
|
+
readonly [x: string]: string;
|
|
289
|
+
} | null;
|
|
290
|
+
readonly tracking?: {
|
|
291
|
+
readonly opens?: boolean;
|
|
292
|
+
readonly clicks?: boolean;
|
|
293
|
+
};
|
|
294
|
+
readonly attachments?: readonly {
|
|
295
|
+
readonly filename: string;
|
|
296
|
+
readonly content?: string | null;
|
|
297
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
298
|
+
readonly contentType: string;
|
|
299
|
+
readonly size: number;
|
|
300
|
+
}[] | null;
|
|
301
|
+
} | null;
|
|
302
|
+
readonly metadata?: {
|
|
303
|
+
readonly [x: string]: import("../generated").JsonValue;
|
|
304
|
+
} | null;
|
|
305
|
+
};
|
|
231
306
|
readonly metadata: {
|
|
232
307
|
readonly [x: string]: import("../generated").JsonValue;
|
|
233
308
|
} | null;
|
|
@@ -236,17 +311,28 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
236
311
|
readonly tags: readonly string[];
|
|
237
312
|
readonly categories: readonly string[];
|
|
238
313
|
readonly isTest: boolean;
|
|
239
|
-
readonly isInternal: boolean;
|
|
240
|
-
readonly isAutomated: boolean;
|
|
241
314
|
readonly externalId: string | null;
|
|
242
315
|
readonly referenceId: string | null;
|
|
243
|
-
readonly
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
316
|
+
readonly submission: {
|
|
317
|
+
readonly origin: "campaign" | "direct" | "scheduled";
|
|
318
|
+
readonly transport: "http" | null;
|
|
319
|
+
readonly credential: {
|
|
320
|
+
readonly kind: "api_key";
|
|
321
|
+
readonly apiKeyId: (string & import("effect/Brand").Brand<"ApiKeyId">) | null;
|
|
322
|
+
} | {
|
|
323
|
+
readonly kind: "oauth";
|
|
324
|
+
readonly clientId: string | null;
|
|
325
|
+
} | {
|
|
326
|
+
readonly kind: "session";
|
|
327
|
+
} | null;
|
|
328
|
+
readonly userId: (string & import("effect/Brand").Brand<"UserId">) | null;
|
|
329
|
+
readonly client: {
|
|
330
|
+
readonly surface: "cli" | "mcp" | "typescript-effect" | "typescript-promise";
|
|
331
|
+
readonly version: string;
|
|
332
|
+
} | null;
|
|
333
|
+
} | null;
|
|
247
334
|
readonly createdAt: string;
|
|
248
335
|
readonly updatedAt: string;
|
|
249
|
-
readonly createdBy: string | null;
|
|
250
336
|
readonly fromContact: {
|
|
251
337
|
readonly id: string;
|
|
252
338
|
readonly name: string;
|
|
@@ -293,6 +379,11 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
293
379
|
} | null;
|
|
294
380
|
}[];
|
|
295
381
|
readonly deliveries: readonly {
|
|
382
|
+
readonly scheduling: {
|
|
383
|
+
readonly dueAt: string;
|
|
384
|
+
readonly expiresAt: string;
|
|
385
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
|
|
386
|
+
} | null;
|
|
296
387
|
readonly id: string;
|
|
297
388
|
readonly messageId: string;
|
|
298
389
|
readonly recipientId: string | null;
|
|
@@ -311,17 +402,24 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
311
402
|
readonly terminalAt: string | null;
|
|
312
403
|
readonly errorCode: string | null;
|
|
313
404
|
readonly errorMessage: string | null;
|
|
314
|
-
readonly errorDetails:
|
|
405
|
+
readonly errorDetails: {
|
|
406
|
+
readonly code?: string | null;
|
|
407
|
+
readonly name?: string | null;
|
|
408
|
+
readonly message?: string | null;
|
|
409
|
+
readonly details?: {
|
|
410
|
+
readonly [x: string]: string | number | null;
|
|
411
|
+
} | null;
|
|
412
|
+
readonly retryable?: boolean | null;
|
|
413
|
+
} | null;
|
|
315
414
|
readonly cost: string;
|
|
316
415
|
readonly currency: string;
|
|
317
416
|
readonly idempotencyKey: string | null;
|
|
318
|
-
readonly metadata: import("../generated").JsonValue;
|
|
319
417
|
readonly createdAt: string;
|
|
320
418
|
readonly updatedAt: string;
|
|
321
419
|
}[];
|
|
322
420
|
readonly emailDeliveryDetails: readonly {
|
|
323
421
|
readonly deliveryId: string;
|
|
324
|
-
readonly messageIdHeader: string
|
|
422
|
+
readonly messageIdHeader: string;
|
|
325
423
|
readonly inReplyTo: string | null;
|
|
326
424
|
readonly references: readonly string[] | null;
|
|
327
425
|
readonly subject: string;
|
|
@@ -353,7 +451,7 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
353
451
|
readonly createdAt: string;
|
|
354
452
|
readonly updatedAt: string;
|
|
355
453
|
}[];
|
|
356
|
-
}, import("..").BillingProviderError | import("..").ConflictError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError
|
|
454
|
+
}, import("..").BillingProviderError | import("..").ConflictError | import("..").DeliveryUnavailableError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("..").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("../generated").OnboardingReviewRequiredError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError, Service>;
|
|
357
455
|
type AddSenderRequest = NonNullable<RequestArg<FlatRaw["emailAddSender"]>>;
|
|
358
456
|
export type EmailAddSenderInput = Omit<AddSenderRequest["payload"], "replyToEmails"> & {
|
|
359
457
|
readonly replyToEmails?: ErgonomicEmailList | null | undefined;
|
|
@@ -365,5 +463,5 @@ export declare const addEmailSender: (input: EmailAddSenderInput, options?: Send
|
|
|
365
463
|
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
366
464
|
readonly providerFailureCode: string | null;
|
|
367
465
|
readonly createdAt: string;
|
|
368
|
-
}, 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>;
|
|
466
|
+
}, 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>;
|
|
369
467
|
export {};
|
package/dist/effect/media.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const create: (input: {
|
|
|
14
14
|
readonly width: number | null;
|
|
15
15
|
readonly height: number | null;
|
|
16
16
|
readonly durationMs: number | null;
|
|
17
|
-
readonly purpose: "attachment" | "avatar";
|
|
17
|
+
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
18
18
|
readonly checksumSha256: string | null;
|
|
19
19
|
readonly expiresAt: string | null;
|
|
20
20
|
readonly createdAt: string;
|
|
@@ -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<{
|
|
@@ -40,17 +40,17 @@ export declare const getById: (input: {
|
|
|
40
40
|
readonly width: number | null;
|
|
41
41
|
readonly height: number | null;
|
|
42
42
|
readonly durationMs: number | null;
|
|
43
|
-
readonly purpose: "attachment" | "avatar";
|
|
43
|
+
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
44
44
|
readonly checksumSha256: string | null;
|
|
45
45
|
readonly expiresAt: string | null;
|
|
46
46
|
readonly createdAt: string;
|
|
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<{
|
|
@@ -64,17 +64,17 @@ export declare const complete: (input: {
|
|
|
64
64
|
readonly width: number | null;
|
|
65
65
|
readonly height: number | null;
|
|
66
66
|
readonly durationMs: number | null;
|
|
67
|
-
readonly purpose: "attachment" | "avatar";
|
|
67
|
+
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
68
68
|
readonly checksumSha256: string | null;
|
|
69
69
|
readonly expiresAt: string | null;
|
|
70
70
|
readonly createdAt: string;
|
|
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-02YX3hY9.js";
|
|
3
3
|
//#region src/effect/media.ts
|
|
4
4
|
var media_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
complete: () => complete,
|