@lunora/mail 1.0.0-alpha.2 → 1.0.0-alpha.21
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/LICENSE.md +6 -0
- package/dist/inbound/index.d.mts +80 -69
- package/dist/inbound/index.d.ts +80 -69
- package/dist/inbound/index.mjs +1 -2
- package/dist/index.d.mts +95 -78
- package/dist/index.d.ts +95 -78
- package/dist/index.mjs +1 -7
- package/dist/packem_shared/address-Y4Z--6ZO.mjs +3 -0
- package/dist/packem_shared/capture-transport.d-BJ__iWzS.d.mts +117 -0
- package/dist/packem_shared/capture-transport.d-BJ__iWzS.d.ts +117 -0
- package/dist/packem_shared/consumeQueuedSend-BXrPhND5.mjs +1 -0
- package/dist/packem_shared/createCaptureSink-fVjCTUBC.mjs +1 -0
- package/dist/packem_shared/createCaptureTransport-BPdMkU0O.mjs +1 -0
- package/dist/packem_shared/createCloudflareTransport-V23CVw7F.mjs +1 -0
- package/dist/packem_shared/createInboundEmailHandler-B7H4h_sK.mjs +1 -0
- package/dist/packem_shared/createMailer-CsVLrc75.mjs +1 -0
- package/dist/packem_shared/createResendTransport-CpSJ4j7C.mjs +1 -0
- package/dist/packem_shared/parseInboundEmail-tJMs3YON.mjs +1 -0
- package/dist/packem_shared/provider-transport-BZngzyeS.mjs +1 -0
- package/dist/packem_shared/renderEmail-DM8_pWKa.mjs +1 -0
- package/dist/packem_shared/shard-CcKsuWAm.mjs +1 -0
- package/dist/packem_shared/shard.d-DVADjmEJ.d.mts +29 -0
- package/dist/packem_shared/shard.d-DVADjmEJ.d.ts +29 -0
- package/dist/testing.d.mts +9 -9
- package/dist/testing.d.ts +9 -9
- package/dist/testing.mjs +1 -57
- package/package.json +6 -5
- package/dist/packem_shared/address-fkXxLKza.mjs +0 -62
- package/dist/packem_shared/capture-transport.d-ChnhdPO2.d.mts +0 -117
- package/dist/packem_shared/capture-transport.d-ChnhdPO2.d.ts +0 -117
- package/dist/packem_shared/consumeQueuedSend-BEKOdaxU.mjs +0 -75
- package/dist/packem_shared/createCaptureSink-DeihS4LH.mjs +0 -63
- package/dist/packem_shared/createCaptureTransport-Crz_8822.mjs +0 -11
- package/dist/packem_shared/createCloudflareTransport-yHOVEsZv.mjs +0 -26
- package/dist/packem_shared/createInboundEmailHandler-D0uCOrU-.mjs +0 -83
- package/dist/packem_shared/createMailer-oEKPAd4J.mjs +0 -77
- package/dist/packem_shared/createResendTransport-oNIorpzv.mjs +0 -16
- package/dist/packem_shared/parseInboundEmail-Bw9u_1oc.mjs +0 -72
- package/dist/packem_shared/provider-transport-C5CVbjRF.mjs +0 -47
- package/dist/packem_shared/renderEmail-hyS1bpVP.mjs +0 -8
- package/dist/packem_shared/shard-CJ-TvmfT.mjs +0 -13
- package/dist/packem_shared/shard.d-CL2Lmliv.d.mts +0 -39
- package/dist/packem_shared/shard.d-CL2Lmliv.d.ts +0 -39
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Structural projections of the `SHARD` Durable Object namespace + one shard
|
|
3
|
-
* stub, shared by the inbound dispatcher. Mirrors the shapes the outbound dev
|
|
4
|
-
* capture sink uses (`packages/mail/src/from-env.ts`) so inbound dispatch routes
|
|
5
|
-
* a parsed message into a Lunora function over the exact same admin-RPC-over-shard
|
|
6
|
-
* path — without importing any Cloudflare types into `@lunora/mail`.
|
|
7
|
-
*/
|
|
8
|
-
/** Structural projection of one shard stub — only `fetch` returning something with `.json()`. */
|
|
9
|
-
interface ShardStubLike {
|
|
10
|
-
fetch: (input: string, init?: {
|
|
11
|
-
body?: string;
|
|
12
|
-
headers?: Record<string, string>;
|
|
13
|
-
method?: string;
|
|
14
|
-
}) => Promise<{
|
|
15
|
-
json: () => Promise<unknown>;
|
|
16
|
-
}>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Cloudflare Durable Object data-residency jurisdiction. Widening union —
|
|
20
|
-
* Cloudflare adds values over time.
|
|
21
|
-
* @see https://developers.cloudflare.com/durable-objects/reference/data-location/
|
|
22
|
-
*/
|
|
23
|
-
type DurableObjectJurisdiction = "eu" | "fedramp" | "us";
|
|
24
|
-
/** Structural projection of the `SHARD` Durable Object namespace. */
|
|
25
|
-
interface ShardNamespaceLike {
|
|
26
|
-
get: (id: unknown) => ShardStubLike;
|
|
27
|
-
idFromName: (name: string) => unknown;
|
|
28
|
-
/**
|
|
29
|
-
* Derive a jurisdiction-restricted subnamespace. Optional because older
|
|
30
|
-
* workers-types releases (and test doubles) may not expose it.
|
|
31
|
-
*/
|
|
32
|
-
jurisdiction?: (jurisdiction: DurableObjectJurisdiction) => ShardNamespaceLike;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Return a jurisdiction-restricted view of `namespace`, or `namespace`
|
|
36
|
-
* unchanged when no jurisdiction is configured. Fail-closed when the binding
|
|
37
|
-
* lacks `.jurisdiction()` so a residency constraint is never silently dropped.
|
|
38
|
-
*/
|
|
39
|
-
export { DurableObjectJurisdiction as D, ShardNamespaceLike as S, ShardStubLike as a };
|