@byollm/relay 0.1.5-beta.1 → 0.1.5

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 CHANGED
@@ -1,11 +1,14 @@
1
- <!-- release-note 0.1.1 -->
2
- > **`0.1.5-beta.1` is documentation only — nothing to upgrade.** `PROTOCOL_VERSION`
3
- > is still `2`, so a 0.1.0 party and a 0.1.1 party talk to each other in both
4
- > directions. No dependency, schema, wire field or on-disk shape moved.
1
+ <!-- release-note 0.1.5 -->
2
+ > **`0.1.5` carries site tools and images — update the relay first.**
3
+ > `PROTOCOL_VERSION` is still `2`. The relay gains the four tool endpoints
4
+ > (byollm_012) and the blob routes, against a `BlobStore` its host supplies
5
+ > (byollm_021). Run it before any daemon or site that turns a new kind on: a
6
+ > 0.1.4 relay refuses a heartbeat that advertises one. Full note:
7
+ > `docs/release-notes/0.1.5.md`.
5
8
  >
6
9
  > This README used to open with a stack of release notes instead of with the
7
10
  > package. The history moved to `docs/release-notes/` and `CHANGELOG.md`,
8
- > where none of it was lost. Full note: `docs/release-notes/0.1.1.md`.
11
+ > where none of it was lost.
9
12
 
10
13
  # `@byollm/relay`
11
14
 
@@ -96,6 +99,57 @@ for every site its projection holds, and refuses a caller that names a site the
96
99
  projection does not (cloud_009 §3). Job state is keyed by the pair, so two sites
97
100
  may use the same job id without either seeing the other.
98
101
 
102
+ ## Images: give it a blob store
103
+
104
+ `llm.vision` and `llm.image` carry images by reference (byollm_021 §2). The
105
+ bytes are encrypted blobs in object storage, uploaded and downloaded straight
106
+ to it through short-lived URLs this relay issues. They never pass through this
107
+ process, and it holds no key that opens one.
108
+
109
+ A relay carries images only when its host gives it somewhere to keep them:
110
+
111
+ ```ts
112
+ import { MemoryBlobStore, Relay } from "@byollm/relay";
113
+
114
+ const relay = new Relay({
115
+ fixture,
116
+ blobs: { store: new MemoryBlobStore({ origin: "http://127.0.0.1:8787" }) },
117
+ });
118
+ ```
119
+
120
+ `MemoryBlobStore` is for the reference relay and tests. A deployment
121
+ implements `BlobStore` over its own bucket: a signed upload, a signed
122
+ download, an object's stored size, a job's objects by name, every object with
123
+ the time it was stored, and a delete. With
124
+ more than one replica it also supplies a shared `BlobLedger`, for the reason
125
+ it supplies a shared `RoutingStore`.
126
+
127
+ **Without `blobs`, this relay carries no images.** Its blob routes answer 404
128
+ and it refuses `llm.vision` and `llm.image` at enqueue, so no device is paid
129
+ to make an image it then cannot hand back.
130
+
131
+ What the package decides, whatever the store:
132
+
133
+ - **No lease, no URL.** A device gets a download URL or an upload slot only
134
+ for a job it holds right now, under the lease it names.
135
+ - **The job is in the object name**, `blobs/<site>/<job>/<in|out>/<blob>`
136
+ (`blobObjectName`). A caller names a blob id and nothing else; the site and
137
+ the job come from what the relay already verified. The uploader sends
138
+ ciphertext and its length, with no header to copy.
139
+ - **Sizes are read, not trusted.** A slot's size is in the blob id the relay
140
+ mints. A job is queued only if every input it was issued a slot for is
141
+ stored at that size, and an `ok` result is accepted only if its outputs
142
+ are.
143
+ - **Blobs go with the job.** Inputs when the result is accepted; outputs when
144
+ the site says it holds them, or an hour after it collected the result; and
145
+ whatever is left a day after the job's deadline. `Relay.sweep()` runs the
146
+ last two. Set a lifecycle rule on the bucket as the floor under it.
147
+ - **A lost ledger delays deletion; it does not stop it.** `Relay.sweep()` also
148
+ lists the whole store and deletes any object no ledger record covers once it
149
+ is 48 hours old (`ORPHAN_BLOB_AGE_MS`). The two earlier deletions, at the
150
+ result and an hour after collection, need the record: keep the ledger
151
+ somewhere that survives a restart if you want them kept across one.
152
+
99
153
  ## Breaking before `0.1.0`: `RelayState` is async
100
154
 
101
155
  Every method on `RelayState` now returns a `Promise`, and `Relay.sweep()` and
package/dist/index.d.ts CHANGED
@@ -1,8 +1,350 @@
1
- import { PublicIdentity, CapabilityMatrix, ClaimedStub, SignedGrant } from '@byollm/protocol';
1
+ import { BlobDirection, PublicIdentity, CapabilityMatrix, ClaimedStub, SignedGrant } from '@byollm/protocol';
2
2
  import { R as RoutingStore, U as UnsealedChurn } from './store-BesaBmxr.js';
3
3
  export { A as AWAITING_PAYLOAD_MS, C as CHURN_EXPIRIES, a as CHURN_QUIET_MS, b as CHURN_WINDOW_MS, c as ClaimInput, G as Grant, H as HolderRefusal, O as OutstandingToolCall, P as Presence, d as RelayState, e as ReleaseReason, f as RoutedJob, g as RoutedState, h as RunningSubState, S as SEAL_ATTEMPTS_BEFORE_EVICTION, T as ToolCallRefusal, i as ToolCallRow, j as UNSEALED_PER_PAIR, r as routeKey, s as subStateOf } from './store-BesaBmxr.js';
4
4
  import { z } from 'zod';
5
5
 
6
+ /**
7
+ * The relay's half of byollm_021 §2: blobs by reference, on the cloud lane.
8
+ *
9
+ * Ruled on #7875 (rule 34), under #6933. A site uploads each input image
10
+ * straight to object storage through a slot this relay issues, a device
11
+ * holding the job's lease downloads it through a URL this relay issues, and
12
+ * the reverse for an `llm.image` job's outputs. **The bytes never pass
13
+ * through this process**: it issues short-lived URLs, reads sizes, and
14
+ * deletes.
15
+ *
16
+ * It holds no key and reads no reference. A blob's key travels only inside
17
+ * the sealed envelope ({@link MUSTS.BLOBS_SEALED}), which this relay cannot
18
+ * open, so what it knows about a job's blobs is exactly what it was asked
19
+ * for: which slots it issued, for which job, in which direction, at what
20
+ * size. Everything below is built from those four facts.
21
+ *
22
+ * ## Three parts, and who supplies each
23
+ *
24
+ * - {@link BlobStore} — where ciphertext lives. **The host's.** A bucket in
25
+ * a deployment (GCS on byollm.cloud), {@link MemoryBlobStore} here.
26
+ * - {@link BlobLedger} — which slots a job has been issued and when its
27
+ * blobs go. Short-lived routing state, like a tool call's row:
28
+ * {@link MemoryBlobLedger} for one replica, a shared one for more.
29
+ * - `RelayBlobs` — the decisions, in this package and nowhere else: no
30
+ * lease, no URL; no job offered whose stored blobs differ from their
31
+ * slots; nothing kept past §2's deletion order.
32
+ *
33
+ * ## The job rides in the object name (#7875, choice B)
34
+ *
35
+ * An object is stored at {@link blobObjectName}: site, job, direction, blob.
36
+ * So the bucket alone says which job every object belongs to. Nothing has to
37
+ * be signed into the upload for that — no header the uploader must send, no
38
+ * key on a slot's answer. A ledger that forgets (the hub's routing store
39
+ * keeps nothing across a restart) is rebuilt from the names the next time
40
+ * the job is enqueued, and what no job is enqueued for again is found by
41
+ * the sweep from the names too, once it is too old to belong to anything
42
+ * ({@link ORPHAN_BLOB_AGE_MS}). It is also the address check: a caller
43
+ * names a blob id, and this relay supplies the site and the job from what
44
+ * it has already verified, so no id reaches another job's object.
45
+ *
46
+ * ## The slot's size rides in the blob id
47
+ *
48
+ * {@link mintBlobId} ends each id with its slot's size in padding buckets.
49
+ * The size a stored object is held to is therefore recorded in the one
50
+ * place that cannot be lost separately from the object: its own name.
51
+ */
52
+ /** Where one blob lives: whose job, which leg, which blob. */
53
+ interface BlobAddress {
54
+ /** The site, as the control plane names it — from the verified caller. */
55
+ readonly siteId: string;
56
+ /** The job, as its site named it. */
57
+ readonly jobId: string;
58
+ readonly direction: BlobDirection;
59
+ /** The blob id a `BlobRef` names. */
60
+ readonly blob: string;
61
+ }
62
+ /** One stored object, as a store-wide listing names it. */
63
+ interface StoredBlob {
64
+ readonly address: BlobAddress;
65
+ /** Epoch ms the object was stored, on the store's own clock. */
66
+ readonly storedAt: number;
67
+ }
68
+ /** A short-lived capability for one object: `PUT` it or `GET` it. */
69
+ interface SignedBlobUrl {
70
+ readonly url: string;
71
+ /** Epoch ms after which the store refuses `url`. */
72
+ readonly expiresAt: number;
73
+ }
74
+ /**
75
+ * Where blob ciphertext lives — what a relay takes from its host.
76
+ *
77
+ * The mechanism under the endpoints, and it decides nothing: it signs what
78
+ * it is asked to sign. Who may ask is `RelayBlobs`' business, checked before
79
+ * any of these is called.
80
+ *
81
+ * An implementation MUST:
82
+ *
83
+ * 1. **Store an object where its address says.** {@link blobObjectName} is
84
+ * the name this package's store uses ({@link blobAddressOf} reads one
85
+ * back); a host may choose another, so long as `list` finds a job's
86
+ * objects from the site and the job alone and `storedBefore` finds every
87
+ * object's address from the store alone.
88
+ * 2. **Need nothing from the uploader but the bytes.** `slot` answers a URL
89
+ * a plain `PUT` of `bytes` octets of `application/octet-stream`
90
+ * satisfies. No header list is handed back, so there is nowhere to put
91
+ * one (#7875, choice B).
92
+ * 3. **Report the size actually stored** from `head`, not the size a slot
93
+ * was signed for. That read is the check (§2: "nothing rests on" the
94
+ * store enforcing a signed length).
95
+ * 4. **Delete idempotently.** Deleting what is already gone is not an error.
96
+ * 5. **Say when each object was stored**, from the store's own record of
97
+ * it. The sweep deletes by that time what no ledger record covers, so a
98
+ * lost ledger does not leave an object waiting for the bucket's rule.
99
+ *
100
+ * It SHOULD make a slot writable once. Where it cannot, an object replaced
101
+ * after its job was offered is caught by the size check a download URL gets
102
+ * before it is issued, and by the device, which stops at the declared size.
103
+ */
104
+ interface BlobStore {
105
+ /** A signed upload of exactly `bytes` octets to `address`. */
106
+ slot(address: BlobAddress, bytes: number): Promise<SignedBlobUrl>;
107
+ /** A signed download of `address`. */
108
+ url(address: BlobAddress): Promise<SignedBlobUrl>;
109
+ /** The stored object's size, or `null` when there is none. */
110
+ head(address: BlobAddress): Promise<number | null>;
111
+ /** Every object stored for one job, from the names alone. */
112
+ list(job: {
113
+ readonly siteId: string;
114
+ readonly jobId: string;
115
+ }): Promise<{
116
+ readonly direction: BlobDirection;
117
+ readonly blob: string;
118
+ }[]>;
119
+ /**
120
+ * Every object stored at or before `time`, across every site and job,
121
+ * from the store alone — no ledger is asked. An object whose name is not
122
+ * one of this store's is left out.
123
+ */
124
+ storedBefore(time: number): Promise<StoredBlob[]>;
125
+ /** Gone. Idempotent. */
126
+ delete(address: BlobAddress): Promise<void>;
127
+ /**
128
+ * Answer one of this store's own URLs, for a store that serves them
129
+ * itself. A bucket's URLs point at the bucket and it has no such method;
130
+ * {@link MemoryBlobStore}'s point back at the relay, which asks here
131
+ * first. `undefined` means the request is not one of this store's.
132
+ */
133
+ serve?(request: Request): Promise<Response | undefined>;
134
+ }
135
+ /** The fixed prefix every blob object's name starts with. */
136
+ declare const BLOB_OBJECT_PREFIX = "blobs";
137
+ /** The prefix every object of one job is stored under, with its final `/`. */
138
+ declare function blobJobPrefix(job: {
139
+ readonly siteId: string;
140
+ readonly jobId: string;
141
+ }): string;
142
+ /**
143
+ * The object name for a blob: `blobs/<site>/<job>/<in|out>/<blob>`.
144
+ *
145
+ * The job is in the name, so the store says which job an object belongs to
146
+ * without asking the relay (#7875, choice B). Refuses a blob id that is not
147
+ * one this relay minted: the id is the last segment, and a name is never
148
+ * built from a string that could be a path.
149
+ */
150
+ declare function blobObjectName(address: BlobAddress): string;
151
+ /**
152
+ * The address {@link blobObjectName} wrote `name` from, or `null` for a
153
+ * name it did not write — what a bucket-backed `storedBefore` reads its
154
+ * listing with.
155
+ */
156
+ declare function blobAddressOf(name: string): BlobAddress | null;
157
+ /**
158
+ * How old a stored object must be before the sweep deletes it for having no
159
+ * ledger record: the oldest an envelope may be, plus the day blobs are kept
160
+ * past a deadline.
161
+ *
162
+ * The same bound an input slot is given before its job is enqueued, for the
163
+ * same reason. An object with no record is one whose ledger was lost, and
164
+ * nothing in its name says when its job ends — so it is kept for as long as
165
+ * any job it could belong to could still be opened, and a day. 48 hours,
166
+ * where the bucket's own rule would be day 7.
167
+ */
168
+ declare const ORPHAN_BLOB_AGE_MS: number;
169
+ /**
170
+ * A blob id for a slot of `bytes`: 128 random bits, then the slot's size in
171
+ * padding buckets.
172
+ *
173
+ * `bytes` is an object size (`isBlobObjectSize`), so the bucket count is a
174
+ * whole number from 1 to 80 and says nothing a store does not already see.
175
+ * {@link slotBytesOf} reads it back.
176
+ */
177
+ declare function mintBlobId(bytes: number): string;
178
+ /**
179
+ * The size the slot behind `blob` was issued for, or `null` for an id this
180
+ * relay did not mint.
181
+ */
182
+ declare function slotBytesOf(blob: string): number | null;
183
+ /** One slot a job has been issued. Its size is in its id. */
184
+ interface BlobSlot {
185
+ readonly direction: BlobDirection;
186
+ readonly blob: string;
187
+ /**
188
+ * The grant an output slot was issued under. Absent on an input, which a
189
+ * site uploads before any device holds the job.
190
+ */
191
+ readonly leaseId?: string;
192
+ }
193
+ /** What the ledger keeps for one job: its slots, and when they go. */
194
+ interface BlobJobRecord {
195
+ readonly siteId: string;
196
+ readonly jobId: string;
197
+ /** Issued and not yet deleted. Never empty: an empty record is removed. */
198
+ readonly slots: readonly BlobSlot[];
199
+ /** When everything left is deleted, whatever else happens. */
200
+ readonly deleteAt: number;
201
+ /** When the outputs go without `received`: collection plus an hour. */
202
+ readonly outputDeleteAt?: number;
203
+ }
204
+ /**
205
+ * Which slots each job has been issued, and when its blobs are deleted.
206
+ *
207
+ * Routing state: short-lived and derived. **Losing it loses the two early
208
+ * clocks, not the deletion**: a ledger that forgets a job is rebuilt from
209
+ * the store's object names when that job is next enqueued, and the objects
210
+ * of a job that never is are deleted by the sweep once they are
211
+ * {@link ORPHAN_BLOB_AGE_MS} old — not at the result, and not an hour after
212
+ * collection, which only a record can say. A ledger that outlives a restart
213
+ * keeps those. {@link MemoryBlobLedger} is correct for one replica; a
214
+ * deployment with more supplies a shared one, for the reason
215
+ * `RoutingStore` is not a `Map`.
216
+ *
217
+ * **Every method is a decision plus its write**, as `RoutingStore`'s are.
218
+ */
219
+ interface BlobLedger {
220
+ /**
221
+ * Record one slot for a job, creating the job's record with `deleteAt` if
222
+ * it has none. One operation, because the count is the decision.
223
+ *
224
+ * MUST first remove every slot of the same direction issued under a
225
+ * *different* lease, and return them as `displaced`: a grant that ended
226
+ * took its outputs with it, and the caller deletes their objects. Inputs
227
+ * carry no lease, so nothing displaces one. MUST then refuse
228
+ * (`issued: false`) when the job already has `max` slots of this
229
+ * direction under this lease.
230
+ */
231
+ issue(input: {
232
+ siteId: string;
233
+ jobId: string;
234
+ slot: BlobSlot;
235
+ max: number;
236
+ deleteAt: number;
237
+ }): Promise<{
238
+ issued: boolean;
239
+ displaced: BlobSlot[];
240
+ }>;
241
+ /** One job's record, or `undefined`. */
242
+ record(siteId: string, jobId: string): Promise<BlobJobRecord | undefined>;
243
+ /**
244
+ * Move a job's deletion times earlier. **Only ever earlier**: a time later
245
+ * than the one kept is ignored, so collecting a result twice does not
246
+ * extend its outputs. A job with no record is left without one. Called
247
+ * for each finished `llm.image` job on every `results` poll until the
248
+ * job's deadline, so it should cost one conditional write.
249
+ */
250
+ bringForward(input: {
251
+ siteId: string;
252
+ jobId: string;
253
+ deleteAt?: number;
254
+ outputDeleteAt?: number;
255
+ }): Promise<void>;
256
+ /**
257
+ * Forget slots whose objects were deleted: every slot of `direction`, or
258
+ * only the named `blobs` of it; every slot when neither is given. A record
259
+ * left with no slots is removed.
260
+ */
261
+ drop(input: {
262
+ siteId: string;
263
+ jobId: string;
264
+ direction?: BlobDirection;
265
+ blobs?: readonly string[];
266
+ }): Promise<void>;
267
+ /** Every record with a deletion time at or before `now`. */
268
+ due(now: number): Promise<BlobJobRecord[]>;
269
+ }
270
+ /** The in-process {@link BlobLedger}. Not durable, and need not be. */
271
+ declare class MemoryBlobLedger implements BlobLedger {
272
+ #private;
273
+ issue(input: {
274
+ siteId: string;
275
+ jobId: string;
276
+ slot: BlobSlot;
277
+ max: number;
278
+ deleteAt: number;
279
+ }): Promise<{
280
+ issued: boolean;
281
+ displaced: BlobSlot[];
282
+ }>;
283
+ record(siteId: string, jobId: string): Promise<BlobJobRecord | undefined>;
284
+ bringForward(input: {
285
+ siteId: string;
286
+ jobId: string;
287
+ deleteAt?: number;
288
+ outputDeleteAt?: number;
289
+ }): Promise<void>;
290
+ drop(input: {
291
+ siteId: string;
292
+ jobId: string;
293
+ direction?: BlobDirection;
294
+ blobs?: readonly string[];
295
+ }): Promise<void>;
296
+ due(now: number): Promise<BlobJobRecord[]>;
297
+ }
298
+ /**
299
+ * How long a memory-store URL works. Short: it is a bearer capability.
300
+ * Fifteen minutes covers a 20 MiB upload on a poor connection.
301
+ */
302
+ declare const MEMORY_BLOB_URL_TTL_MS: number;
303
+ /** The path {@link MemoryBlobStore}'s URLs are served under. */
304
+ declare const MEMORY_BLOB_PATH = "/relay/blob-store/";
305
+ /**
306
+ * The in-process {@link BlobStore}: objects in a `Map`, URLs back at the
307
+ * relay.
308
+ *
309
+ * For the reference relay, the conformance kit and tests. A deployment
310
+ * supplies a bucket. Like one, it holds ciphertext and nothing that opens
311
+ * it, and its URLs are unguessable, expire, and name one object and one
312
+ * method.
313
+ *
314
+ * **It stores whatever is PUT, at whatever size**, up to one image at the
315
+ * cap. That is on purpose: whether a bucket enforces a signed length is the
316
+ * bucket's behaviour, the relay's own read of the stored size is the check
317
+ * that counts, and a store that enforced it here would hide that check
318
+ * from every test. A slot is written once.
319
+ */
320
+ declare class MemoryBlobStore implements BlobStore {
321
+ #private;
322
+ constructor(options: {
323
+ /** Where the relay is reached, e.g. `http://127.0.0.1:8787`. */
324
+ readonly origin: string;
325
+ readonly now?: () => number;
326
+ });
327
+ slot(address: BlobAddress, _bytes: number): Promise<SignedBlobUrl>;
328
+ url(address: BlobAddress): Promise<SignedBlobUrl>;
329
+ head(address: BlobAddress): Promise<number | null>;
330
+ list(job: {
331
+ readonly siteId: string;
332
+ readonly jobId: string;
333
+ }): Promise<{
334
+ direction: BlobDirection;
335
+ blob: string;
336
+ }[]>;
337
+ storedBefore(time: number): Promise<StoredBlob[]>;
338
+ delete(address: BlobAddress): Promise<void>;
339
+ serve(request: Request): Promise<Response | undefined>;
340
+ /**
341
+ * Every stored object, by name — for a test or an audit asserting what
342
+ * this store holds ({@link MUSTS.BLOBS_SEALED}, C048). Not on
343
+ * {@link BlobStore}: a relay never reads an object.
344
+ */
345
+ objects(): ReadonlyMap<string, Uint8Array>;
346
+ }
347
+
6
348
  /**
7
349
  * What the relay is told about the world — cloud_004 §14.
8
350
  *
@@ -745,6 +1087,28 @@ interface RelayOptions {
745
1087
  * guarantee.
746
1088
  */
747
1089
  readonly store?: RoutingStore;
1090
+ /**
1091
+ * Where image ciphertext lives — byollm_021 §2, #7875.
1092
+ *
1093
+ * **Absent, this relay carries no images**: the blob endpoints answer
1094
+ * `not-found`, as a relay that predates them does, and an `llm.vision` or
1095
+ * `llm.image` job is refused at enqueue rather than offered to a device
1096
+ * that could not fetch or return its images.
1097
+ *
1098
+ * `store` is the host's: a bucket in a deployment, `MemoryBlobStore` for
1099
+ * the reference relay and tests. Like the routing store, the
1100
+ * implementation that needs a cloud client is deliberately not in this
1101
+ * package. `ledger` defaults to an in-process one, which is right for one
1102
+ * replica; more than one supply a shared one.
1103
+ *
1104
+ * No field here can hold a key, and none is needed: a blob's key travels
1105
+ * inside the sealed envelope, so this relay issues URLs for ciphertext it
1106
+ * cannot open (`BLOBS_SEALED`).
1107
+ */
1108
+ readonly blobs?: {
1109
+ readonly store: BlobStore;
1110
+ readonly ledger?: BlobLedger;
1111
+ };
748
1112
  }
749
1113
  /** A running relay: one fetch handler, two planes, one debug page. */
750
1114
  declare class Relay {
@@ -765,9 +1129,10 @@ declare class Relay {
765
1129
  */
766
1130
  sweep(): Promise<{
767
1131
  requeued: string[];
1132
+ blobsDeleted: number;
768
1133
  }>;
769
1134
  /** The whole HTTP surface. */
770
1135
  handle(request: Request): Promise<Response>;
771
1136
  }
772
1137
 
773
- export { ConsentRecord, DeviceRecord, EMPTY_FIXTURE, type GrantDecision, MAX_OUTSTANDING_PAIRINGS, MemoryPairingCodes, PAIRING_BUSY_MESSAGE, PAIRING_CODE_TTL_MS, type PairingCodes, type PendingPairing, Projection, type PutResult, Relay, RelayFixture, RelayFixture as RelayFixtureSchema, type RelayOptions, RevocationRecord, RosterRecord, RoutingStore, SiteRecord, UnsealedChurn, debugPage, newDeviceCode, newUserCode };
1138
+ export { BLOB_OBJECT_PREFIX, type BlobAddress, type BlobJobRecord, type BlobLedger, type BlobSlot, type BlobStore, ConsentRecord, DeviceRecord, EMPTY_FIXTURE, type GrantDecision, MAX_OUTSTANDING_PAIRINGS, MEMORY_BLOB_PATH, MEMORY_BLOB_URL_TTL_MS, MemoryBlobLedger, MemoryBlobStore, MemoryPairingCodes, ORPHAN_BLOB_AGE_MS, PAIRING_BUSY_MESSAGE, PAIRING_CODE_TTL_MS, type PairingCodes, type PendingPairing, Projection, type PutResult, Relay, RelayFixture, RelayFixture as RelayFixtureSchema, type RelayOptions, RevocationRecord, RosterRecord, RoutingStore, type SignedBlobUrl, SiteRecord, type StoredBlob, UnsealedChurn, blobAddressOf, blobJobPrefix, blobObjectName, debugPage, mintBlobId, newDeviceCode, newUserCode, slotBytesOf };