samva 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/README.md +5 -1
- package/dist/{categories-CsUa8ojo.js → categories-B9Nw2v_F.js} +5 -1
- package/dist/client/sdk.gen.d.ts +312 -190
- package/dist/client/types.gen.d.ts +2284 -728
- package/dist/{client-BOghX8fr.js → client-B7gEkvEq.js} +2740 -1036
- package/dist/client-attribution-B2yJBXdZ.js +9 -0
- package/dist/client-attribution.d.ts +2 -0
- package/dist/effect/api-keys.d.ts +51 -51
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +269 -219
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +225 -225
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +308 -293
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +76 -76
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +923 -213
- package/dist/effect/email.js +27 -3
- package/dist/effect/generated-metadata.d.ts +4 -0
- package/dist/effect/generated.d.ts +14948 -10919
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +31 -20
- package/dist/effect/media.d.ts +12 -12
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +243 -61
- package/dist/effect/messages.js +5 -3
- package/dist/effect/operations.d.ts +17 -17
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +162 -162
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/retry.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +375 -277
- package/dist/effect/scheduled-messages.js +5 -3
- package/dist/effect/templates.d.ts +1383 -1554
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +81 -47
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{normalize-BKFjbR9t.js → normalize-BiIJnycv.js} +2 -3
- package/dist/{operation-C2Q4cFJL.js → operation-B4FjN6wq.js} +113 -38
- package/dist/promises/errors.gen.d.ts +21 -2
- package/dist/promises/index.d.ts +11 -8
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-oiy7mOyu.js → promises-CP_nxUus.js} +828 -306
- package/dist/service-map.d.ts +136 -44
- package/package.json +13 -14
package/dist/effect/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ValidationError, a as BillingProviderError, b as UnauthorizedError, d as FlagDisabledError, f as ForbiddenError, g as ResourceNotFoundError, h as RateLimitedError, l as EmailChannelError, m as PaymentRequiredError, o as ConflictError, p as InternalError, u as ExternalServiceError, w as WebhookEnqueueError } from "../client-
|
|
2
|
-
import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-
|
|
1
|
+
import { C as ValidationError, a as BillingProviderError, b as UnauthorizedError, d as FlagDisabledError, f as ForbiddenError, g as ResourceNotFoundError, h as RateLimitedError, l as EmailChannelError, m as PaymentRequiredError, o as ConflictError, p as InternalError, u as ExternalServiceError, w as WebhookEnqueueError } from "../client-B7gEkvEq.js";
|
|
2
|
+
import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-B9Nw2v_F.js";
|
|
3
3
|
import { t as retry_exports } from "./retry.js";
|
|
4
4
|
import { t as api_keys_exports } from "./api-keys.js";
|
|
5
5
|
import { t as campaigns_exports } from "./campaigns.js";
|
|
@@ -4,7 +4,7 @@ import { HttpApiClient } from "effect/unstable/httpapi";
|
|
|
4
4
|
import { SamvaApi } from "../generated";
|
|
5
5
|
export interface ConfigBase {
|
|
6
6
|
readonly baseUrl?: string;
|
|
7
|
-
readonly headers?: Readonly<Record<string, string>>;
|
|
7
|
+
readonly headers?: Readonly<Record<string, string | undefined>>;
|
|
8
8
|
}
|
|
9
9
|
export type Config = (ConfigBase & {
|
|
10
10
|
readonly apiKey: string;
|
|
@@ -15,7 +15,7 @@ type FlattenRequest<Request> = (Request extends {
|
|
|
15
15
|
readonly payload: infer Payload;
|
|
16
16
|
} ? Payload : unknown);
|
|
17
17
|
type RequestArg<Method> = Method extends (request: infer Request, ...rest: ReadonlyArray<unknown>) => unknown ? Request : never;
|
|
18
|
-
|
|
18
|
+
type Input<Name extends SdkOperation> = Wire<FlattenRequest<NonNullable<RequestArg<FlatRaw[Name]>>>>;
|
|
19
19
|
type IdempotencyKeyField<Request> = Request extends {
|
|
20
20
|
readonly headers: {
|
|
21
21
|
readonly "idempotency-key": infer Key;
|
|
@@ -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>;
|
|
@@ -49,7 +49,6 @@ type PaginationCompanions<Parameters, A, E, R> = {} extends Parameters ? {
|
|
|
49
49
|
readonly items: (input: Parameters) => Stream.Stream<EnvelopeItem<A>, E, R>;
|
|
50
50
|
};
|
|
51
51
|
type WithPagination<Method> = Method extends (input: infer Parameters) => Effect.Effect<infer A, infer E, infer R> ? IsPaginated<A> extends true ? Method & PaginationCompanions<Parameters, A, E, R> : Method : Method;
|
|
52
|
-
export declare const stripUndefined: <Value>(input: Value) => Value;
|
|
53
52
|
export declare const make: <Name extends SdkOperation>(operationName: Name) => WithPagination<OperationFunction<Name>>;
|
|
54
53
|
type MessagePayload = typeof SendMessagePayload.Encoded;
|
|
55
54
|
type MessageRecipient = MessagePayload["to"][number];
|
|
@@ -89,12 +88,12 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
89
88
|
readonly [x: string]: import("../generated").JsonValue;
|
|
90
89
|
} | null;
|
|
91
90
|
readonly channel: "email";
|
|
92
|
-
readonly direction: "
|
|
91
|
+
readonly direction: "inbound" | "outbound";
|
|
93
92
|
readonly content: import("../generated").JsonValue;
|
|
94
93
|
readonly metadata: {
|
|
95
94
|
readonly [x: string]: import("../generated").JsonValue;
|
|
96
95
|
} | null;
|
|
97
|
-
readonly status: "
|
|
96
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
98
97
|
readonly scheduledAt: string | null;
|
|
99
98
|
readonly tags: readonly string[];
|
|
100
99
|
readonly categories: readonly string[];
|
|
@@ -138,9 +137,9 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
138
137
|
readonly actorId: string | null;
|
|
139
138
|
readonly contactId: string | null;
|
|
140
139
|
readonly identityId: string | null;
|
|
141
|
-
readonly kind: "
|
|
140
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
142
141
|
readonly address: string;
|
|
143
|
-
readonly status: "
|
|
142
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
144
143
|
readonly createdAt: string;
|
|
145
144
|
readonly updatedAt: string;
|
|
146
145
|
readonly contact: {
|
|
@@ -156,11 +155,16 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
156
155
|
} | null;
|
|
157
156
|
}[];
|
|
158
157
|
readonly deliveries: readonly {
|
|
158
|
+
readonly scheduling: {
|
|
159
|
+
readonly dueAt: string;
|
|
160
|
+
readonly expiresAt: string;
|
|
161
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
162
|
+
} | null;
|
|
159
163
|
readonly id: string;
|
|
160
164
|
readonly messageId: string;
|
|
161
165
|
readonly recipientId: string | null;
|
|
162
166
|
readonly channel: "email";
|
|
163
|
-
readonly status: "
|
|
167
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
164
168
|
readonly attemptCount: number;
|
|
165
169
|
readonly maxAttempts: number;
|
|
166
170
|
readonly queuedAt: string | null;
|
|
@@ -207,7 +211,7 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
207
211
|
readonly spfVerdict: string | null;
|
|
208
212
|
readonly dmarcVerdict: string | null;
|
|
209
213
|
readonly isAutoReply: boolean;
|
|
210
|
-
readonly autoReplyReason: "
|
|
214
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
211
215
|
readonly priority: string | null;
|
|
212
216
|
readonly parsingErrors: readonly string[] | null;
|
|
213
217
|
readonly parsingDuration: number | null;
|
|
@@ -216,7 +220,7 @@ export declare const sendMessage: (input: MessageSendInput, options?: SendOption
|
|
|
216
220
|
readonly createdAt: string;
|
|
217
221
|
readonly updatedAt: string;
|
|
218
222
|
}[];
|
|
219
|
-
}, import("..").
|
|
223
|
+
}, import("..").BillingProviderError | import("..").ConflictError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("../generated").OnboardingReviewRequiredError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError | import("..").WebhookEnqueueError, Service>;
|
|
220
224
|
export declare const sendEmail: (input: EmailSendInput, options?: SendOptions | undefined) => Effect.Effect<{
|
|
221
225
|
readonly id: string;
|
|
222
226
|
readonly organizationId: string;
|
|
@@ -227,12 +231,12 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
227
231
|
readonly [x: string]: import("../generated").JsonValue;
|
|
228
232
|
} | null;
|
|
229
233
|
readonly channel: "email";
|
|
230
|
-
readonly direction: "
|
|
234
|
+
readonly direction: "inbound" | "outbound";
|
|
231
235
|
readonly content: import("../generated").JsonValue;
|
|
232
236
|
readonly metadata: {
|
|
233
237
|
readonly [x: string]: import("../generated").JsonValue;
|
|
234
238
|
} | null;
|
|
235
|
-
readonly status: "
|
|
239
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
236
240
|
readonly scheduledAt: string | null;
|
|
237
241
|
readonly tags: readonly string[];
|
|
238
242
|
readonly categories: readonly string[];
|
|
@@ -276,9 +280,9 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
276
280
|
readonly actorId: string | null;
|
|
277
281
|
readonly contactId: string | null;
|
|
278
282
|
readonly identityId: string | null;
|
|
279
|
-
readonly kind: "
|
|
283
|
+
readonly kind: "bcc" | "cc" | "to";
|
|
280
284
|
readonly address: string;
|
|
281
|
-
readonly status: "
|
|
285
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
282
286
|
readonly createdAt: string;
|
|
283
287
|
readonly updatedAt: string;
|
|
284
288
|
readonly contact: {
|
|
@@ -294,11 +298,16 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
294
298
|
} | null;
|
|
295
299
|
}[];
|
|
296
300
|
readonly deliveries: readonly {
|
|
301
|
+
readonly scheduling: {
|
|
302
|
+
readonly dueAt: string;
|
|
303
|
+
readonly expiresAt: string;
|
|
304
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
305
|
+
} | null;
|
|
297
306
|
readonly id: string;
|
|
298
307
|
readonly messageId: string;
|
|
299
308
|
readonly recipientId: string | null;
|
|
300
309
|
readonly channel: "email";
|
|
301
|
-
readonly status: "
|
|
310
|
+
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
302
311
|
readonly attemptCount: number;
|
|
303
312
|
readonly maxAttempts: number;
|
|
304
313
|
readonly queuedAt: string | null;
|
|
@@ -345,7 +354,7 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
345
354
|
readonly spfVerdict: string | null;
|
|
346
355
|
readonly dmarcVerdict: string | null;
|
|
347
356
|
readonly isAutoReply: boolean;
|
|
348
|
-
readonly autoReplyReason: "
|
|
357
|
+
readonly autoReplyReason: "auto-response" | "delivery-status" | "out-of-office" | "read-receipt" | null;
|
|
349
358
|
readonly priority: string | null;
|
|
350
359
|
readonly parsingErrors: readonly string[] | null;
|
|
351
360
|
readonly parsingDuration: number | null;
|
|
@@ -354,15 +363,17 @@ export declare const sendEmail: (input: EmailSendInput, options?: SendOptions |
|
|
|
354
363
|
readonly createdAt: string;
|
|
355
364
|
readonly updatedAt: string;
|
|
356
365
|
}[];
|
|
357
|
-
}, import("..").
|
|
366
|
+
}, import("..").BillingProviderError | import("..").ConflictError | import("..").ExternalServiceError | import("..").FlagDisabledError | import("..").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("..").InternalError | import("../generated").OnboardingReviewRequiredError | import("..").PaymentRequiredError | import("..").RateLimitedError | import("..").ResourceNotFoundError | import("effect/Schema").SchemaError | import("..").UnauthorizedError | import("..").ValidationError | import("..").WebhookEnqueueError, Service>;
|
|
358
367
|
type AddSenderRequest = NonNullable<RequestArg<FlatRaw["emailAddSender"]>>;
|
|
359
368
|
export type EmailAddSenderInput = Omit<AddSenderRequest["payload"], "replyToEmails"> & {
|
|
360
369
|
readonly replyToEmails?: ErgonomicEmailList | null | undefined;
|
|
361
370
|
};
|
|
362
|
-
export declare const addEmailSender: (input: EmailAddSenderInput) => Effect.Effect<{
|
|
371
|
+
export declare const addEmailSender: (input: EmailAddSenderInput, options?: SendOptions | undefined) => Effect.Effect<{
|
|
363
372
|
readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
364
373
|
readonly email: string;
|
|
365
|
-
readonly status: "
|
|
374
|
+
readonly status: "failed" | "pending" | "verified";
|
|
375
|
+
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
376
|
+
readonly providerFailureCode: string | null;
|
|
366
377
|
readonly createdAt: string;
|
|
367
|
-
}, import("..").
|
|
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>;
|
|
368
379
|
export {};
|
package/dist/effect/media.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export declare const create: (input: {
|
|
2
|
-
readonly purpose: string;
|
|
3
2
|
readonly filename: string;
|
|
4
3
|
readonly contentType: string;
|
|
5
4
|
readonly sizeBytes: number;
|
|
5
|
+
readonly purpose: string;
|
|
6
6
|
readonly checksumSha256?: string | null | undefined;
|
|
7
7
|
}) => import("effect/Effect").Effect<{
|
|
8
8
|
readonly id: string & import("effect/Brand").Brand<"MediaId">;
|
|
9
9
|
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
10
|
-
readonly status: "
|
|
10
|
+
readonly status: "deleted" | "failed" | "pending" | "processing" | "ready" | "uploading";
|
|
11
11
|
readonly filename: string;
|
|
12
12
|
readonly contentType: string;
|
|
13
13
|
readonly sizeBytes: number;
|
|
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,54 +27,54 @@ export declare const create: (input: {
|
|
|
27
27
|
};
|
|
28
28
|
readonly expiresAt: string;
|
|
29
29
|
};
|
|
30
|
-
}, import("./generated").
|
|
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>;
|
|
31
31
|
export declare const getById: (input: {
|
|
32
32
|
readonly mediaId: string;
|
|
33
33
|
}) => import("effect/Effect").Effect<{
|
|
34
34
|
readonly id: string & import("effect/Brand").Brand<"MediaId">;
|
|
35
35
|
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
36
|
-
readonly status: "
|
|
36
|
+
readonly status: "deleted" | "failed" | "pending" | "processing" | "ready" | "uploading";
|
|
37
37
|
readonly filename: string;
|
|
38
38
|
readonly contentType: string;
|
|
39
39
|
readonly sizeBytes: number;
|
|
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").
|
|
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>;
|
|
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").
|
|
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>;
|
|
54
54
|
export declare const complete: (input: {
|
|
55
55
|
readonly mediaId: string;
|
|
56
56
|
}) => import("effect/Effect").Effect<{
|
|
57
57
|
readonly media: {
|
|
58
58
|
readonly id: string & import("effect/Brand").Brand<"MediaId">;
|
|
59
59
|
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
60
|
-
readonly status: "
|
|
60
|
+
readonly status: "deleted" | "failed" | "pending" | "processing" | "ready" | "uploading";
|
|
61
61
|
readonly filename: string;
|
|
62
62
|
readonly contentType: string;
|
|
63
63
|
readonly sizeBytes: number;
|
|
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").
|
|
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>;
|
|
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").
|
|
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>;
|
package/dist/effect/media.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-B4FjN6wq.js";
|
|
3
3
|
//#region src/effect/media.ts
|
|
4
4
|
var media_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
complete: () => complete,
|