@pithy-sh/storage 0.1.1 → 0.1.3

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.
Files changed (86) hide show
  1. package/dist/capability.d.ts +43 -0
  2. package/dist/capability.d.ts.map +1 -0
  3. package/dist/capability.js +74 -0
  4. package/dist/config/config.d.ts +25 -0
  5. package/dist/config/config.d.ts.map +1 -0
  6. package/dist/config/config.js +47 -0
  7. package/dist/data/share.d.ts +25 -0
  8. package/dist/data/share.d.ts.map +1 -0
  9. package/dist/data/share.js +26 -0
  10. package/dist/data/storageObject.d.ts +53 -0
  11. package/dist/data/storageObject.d.ts.map +1 -0
  12. package/dist/data/storageObject.js +42 -0
  13. package/dist/data/tables.d.ts +21 -0
  14. package/dist/data/tables.d.ts.map +1 -0
  15. package/dist/data/tables.js +24 -0
  16. package/dist/error/errors.d.ts +58 -0
  17. package/dist/error/errors.d.ts.map +1 -0
  18. package/dist/error/errors.js +87 -0
  19. package/dist/http/guard.d.ts +18 -0
  20. package/dist/http/guard.d.ts.map +1 -0
  21. package/dist/http/guard.js +27 -0
  22. package/dist/http/handlers.d.ts +230 -0
  23. package/dist/http/handlers.d.ts.map +1 -0
  24. package/dist/http/handlers.js +505 -0
  25. package/dist/http/routes.d.ts +68 -0
  26. package/dist/http/routes.d.ts.map +1 -0
  27. package/dist/http/routes.js +133 -0
  28. package/dist/http/schemas.d.ts +72 -0
  29. package/dist/http/schemas.d.ts.map +1 -0
  30. package/dist/http/schemas.js +91 -0
  31. package/dist/http/serve.d.ts +119 -0
  32. package/dist/http/serve.d.ts.map +1 -0
  33. package/dist/http/serve.js +207 -0
  34. package/dist/index.d.ts +21 -0
  35. package/dist/index.d.ts.map +1 -0
  36. package/dist/index.js +12 -0
  37. package/dist/migrations/0001_objects.d.ts +22 -0
  38. package/dist/migrations/0001_objects.d.ts.map +1 -0
  39. package/dist/migrations/0001_objects.js +39 -0
  40. package/dist/object/cloudflare.d.ts +21 -0
  41. package/dist/object/cloudflare.d.ts.map +1 -0
  42. package/dist/object/cloudflare.js +46 -0
  43. package/dist/object/key.d.ts +27 -0
  44. package/dist/object/key.d.ts.map +1 -0
  45. package/dist/object/key.js +35 -0
  46. package/dist/object/multipart.d.ts +76 -0
  47. package/dist/object/multipart.d.ts.map +1 -0
  48. package/dist/object/multipart.js +129 -0
  49. package/dist/object/store.d.ts +201 -0
  50. package/dist/object/store.d.ts.map +1 -0
  51. package/dist/object/store.js +176 -0
  52. package/dist/provision/provisionStorage.d.ts +137 -0
  53. package/dist/provision/provisionStorage.d.ts.map +1 -0
  54. package/dist/provision/provisionStorage.js +110 -0
  55. package/dist/provision/resolveStorageConfig.d.ts +43 -0
  56. package/dist/provision/resolveStorageConfig.d.ts.map +1 -0
  57. package/dist/provision/resolveStorageConfig.js +31 -0
  58. package/dist/quota/quota.d.ts +125 -0
  59. package/dist/quota/quota.d.ts.map +1 -0
  60. package/dist/quota/quota.js +100 -0
  61. package/dist/secret/registry.d.ts +70 -0
  62. package/dist/secret/registry.d.ts.map +1 -0
  63. package/dist/secret/registry.js +82 -0
  64. package/dist/seeds/example.d.ts +3 -0
  65. package/dist/seeds/example.d.ts.map +1 -0
  66. package/dist/seeds/example.js +109 -0
  67. package/dist/test-utils/liveStorage.d.ts +50 -0
  68. package/dist/test-utils/liveStorage.d.ts.map +1 -0
  69. package/dist/test-utils/liveStorage.js +196 -0
  70. package/dist/version.generated.d.ts +5 -0
  71. package/dist/version.generated.d.ts.map +1 -0
  72. package/dist/version.generated.js +7 -0
  73. package/dist/workflows/retryPolicy.d.ts +37 -0
  74. package/dist/workflows/retryPolicy.d.ts.map +1 -0
  75. package/dist/workflows/retryPolicy.js +41 -0
  76. package/dist/workflows/specs.d.ts +55 -0
  77. package/dist/workflows/specs.d.ts.map +1 -0
  78. package/dist/workflows/specs.js +58 -0
  79. package/dist/workflows/sweep.d.ts +82 -0
  80. package/dist/workflows/sweep.d.ts.map +1 -0
  81. package/dist/workflows/sweep.js +143 -0
  82. package/dist/workflows/worker.d.ts +49 -0
  83. package/dist/workflows/worker.d.ts.map +1 -0
  84. package/dist/workflows/worker.js +50 -0
  85. package/package.json +22 -11
  86. package/src/version.generated.ts +1 -1
@@ -0,0 +1,230 @@
1
+ import type { StorageConfig } from "../config/config";
2
+ import { StorageObject } from "../data/storageObject";
3
+ import { type StorageDatabase } from "../data/tables";
4
+ import type { ObjectStore, UploadedPart } from "../object/store";
5
+ import type { CompleteUploadInput, CopyObjectInput, CreateShareInput, CreateUploadInput, ListObjectsQuery, UpdateObjectInput } from "./schemas";
6
+ /**
7
+ * The storage request handlers — pure functions over injected dependencies, so every branch is tested
8
+ * against real D1 and real R2 without standing up a Worker. `routes.ts` is a thin shell that resolves
9
+ * these dependencies from the request env and maps their results onto responses.
10
+ *
11
+ * **Request shape is not validated here.** Each route declares its own schemas with
12
+ * `zValidator(target, Schema, validationHook)` and hands the handler the already-parsed value, so a
13
+ * malformed request is refused before a dependency is resolved or a row is read. What survives in
14
+ * these handlers is everything a request schema cannot express — ownership, quota, upload state —
15
+ * which is the whole of what they were ever really about.
16
+ *
17
+ * **The object key never leaves this module.** Every client-facing shape goes through {@link view},
18
+ * which drops `key` and `uploadId`. That is not tidiness: the key is the only thing a presigned URL
19
+ * addresses, so a key in a response body is a capability leak waiting for the first adopter who logs
20
+ * their API responses.
21
+ *
22
+ * **A file you cannot see reads as missing.** `assertOwner` answers `storage/not_found` for a private
23
+ * object owned by someone else and `storage/forbidden` only when the object is already public —
24
+ * because a 403 on a private object confirms it exists, which is exactly the oracle an enumeration
25
+ * attack wants. Public objects have nothing left to hide, so there the honest answer is the useful one.
26
+ */
27
+ /** Everything a handler needs, all injectable. */
28
+ export interface HandlerDeps {
29
+ /** The storage database. */
30
+ db: StorageDatabase;
31
+ /** The object plane — presigning, the multipart lifecycle, and binding-backed reads. */
32
+ store: ObjectStore;
33
+ /** The resolved storage config: quota, multipart sizing, default visibility. */
34
+ config: StorageConfig;
35
+ /** The authenticated caller from the core `AuthContext` seam, or null for an unauthenticated read. */
36
+ ownerId: string | null;
37
+ /** Mints an object id. */
38
+ newId: () => string;
39
+ /** Mints a share token. */
40
+ newToken: () => string;
41
+ /** The current time. */
42
+ now: () => Date;
43
+ }
44
+ /** The client-facing shape of a stored file. Deliberately without `key` and `uploadId`. */
45
+ export interface StorageObjectView {
46
+ id: string;
47
+ path: string;
48
+ ownerId: string | null;
49
+ contentType: string;
50
+ size: number | null;
51
+ visibility: "private" | "public";
52
+ checksum: string | null;
53
+ status: "pending" | "stored" | "failed";
54
+ createdAt: Date;
55
+ updatedAt: Date;
56
+ }
57
+ /** One part of a multipart upload, with the URL the client PUTs those bytes to. */
58
+ export interface UploadPartTarget {
59
+ partNumber: number;
60
+ offset: number;
61
+ length: number;
62
+ url: string;
63
+ }
64
+ /** Where to send the bytes: one URL, or one per part. */
65
+ export type UploadTarget = {
66
+ kind: "single";
67
+ url: string;
68
+ } | {
69
+ kind: "multipart";
70
+ uploadId: string;
71
+ partSize: number;
72
+ parts: UploadPartTarget[];
73
+ };
74
+ /** What an upload-init answers with: the record's coordinates and where the bytes go. */
75
+ export interface UploadInitResult {
76
+ object: StorageObjectView;
77
+ upload: UploadTarget;
78
+ }
79
+ /** A minted share link. */
80
+ export interface ShareView {
81
+ token: string;
82
+ objectId: string;
83
+ expiresAt: Date | null;
84
+ createdAt: Date;
85
+ }
86
+ /**
87
+ * Start an upload: reserve the row and its quota, then mint the URL(s) the client PUTs to.
88
+ *
89
+ * **The reservation is the insert, and the insert is conditional.** A `pending` row holds its bytes
90
+ * against the owner's quota, so the row has to exist before an upload can proceed — but a check that
91
+ * ran separately from the write would let a burst of concurrent inits each read a used total none of
92
+ * them had yet contributed to. `insertReservingQuota` evaluates the sum inside the write instead, so
93
+ * the tenth concurrent init sees the other nine (`quota/quota.ts`).
94
+ *
95
+ * The pre-check above it is a courtesy: it refuses an obviously oversized upload before an R2
96
+ * multipart upload exists to clean up. When the conditional insert loses the race anyway, that
97
+ * multipart upload is aborted — a refused init leaves R2 holding nothing.
98
+ */
99
+ export declare function initUpload(deps: HandlerDeps, input: CreateUploadInput): Promise<UploadInitResult>;
100
+ /**
101
+ * Finalize an upload: assemble the parts (for a multipart), then confirm against R2 that the bytes
102
+ * are really there before the row is allowed to claim they are.
103
+ *
104
+ * The `head` is not a formality. Without it a client could complete an upload it never performed and
105
+ * leave a `stored` row pointing at nothing — a 404 from R2 at read time, long after the request that
106
+ * caused it. The size *and the content type* R2 reports win over the declared ones, so the row records
107
+ * what was stored rather than what was promised.
108
+ *
109
+ * **It is also where the quota is settled.** Part URLs carry no signed `Content-Length` — the final
110
+ * part's differs from every other, so pinning one at mint time would mean knowing the total up front
111
+ * and would still leave the last part unconstrained. The declared size therefore buys a *reservation*,
112
+ * not a limit, and an owner who declares 100 MiB can PUT far more across those URLs. Completion is the
113
+ * first and last point where the real byte count is known and the object can still be thrown away, so
114
+ * anything past the reservation is re-asserted against the quota here.
115
+ *
116
+ * **That re-assertion is the write, for the same reason the reservation was.** A check that ran ahead
117
+ * of the `UPDATE` would let two completions racing on one owner both read a total neither had yet
118
+ * contributed to, both pass, and both store — the init race, reproduced at the other end of the
119
+ * lifecycle. `updateSettlingQuota` evaluates the sum inside the update, so the second completion sees
120
+ * the first (`quota/quota.ts`).
121
+ */
122
+ export declare function completeUpload(deps: HandlerDeps, id: string, input: CompleteUploadInput): Promise<StorageObjectView>;
123
+ /**
124
+ * Abandon an in-flight upload: tell R2 to discard the stored parts, then mark the row `failed`.
125
+ *
126
+ * The row survives rather than being deleted. `failed` rows are excluded from the quota sum, so they
127
+ * hold nothing, and keeping them means an owner can see that an upload was attempted and abandoned
128
+ * instead of the record silently evaporating.
129
+ *
130
+ * **The bytes are R2's problem after this, not the row's.** A single-PUT abort cannot revoke the
131
+ * presigned URL it handed out — nothing can, which is the whole cost of presigning — so a client may
132
+ * still PUT to it for the rest of that URL's hour, after the delete below has run. The row that
133
+ * survives therefore stops *claiming* its key the moment it goes `failed`: the orphan sweep matches
134
+ * only rows that bill for a key, so anything that lands afterwards is collected as an orphan rather
135
+ * than sheltered forever by a row that counts toward no quota (`workflows/sweep.ts`).
136
+ */
137
+ export declare function abortUpload(deps: HandlerDeps, id: string): Promise<StorageObjectView>;
138
+ /** Where a resuming client stands: what R2 already holds, and a live URL for everything it does not. */
139
+ export interface UploadPartsResult {
140
+ uploadId: string;
141
+ partSize: number;
142
+ partCount: number;
143
+ uploaded: UploadedPart[];
144
+ missing: UploadPartTarget[];
145
+ }
146
+ /**
147
+ * Resume a multipart upload: the parts R2 already holds, plus a **freshly presigned** URL for each
148
+ * one still missing.
149
+ *
150
+ * This is what makes multipart resumable at all. `initUpload` presigns every part once, and those
151
+ * URLs lapse an hour later — a 40 GiB upload is 640 of them, and a client that stalls or dies has no
152
+ * way back to the ones it never sent. Re-minting them here is the recovery path, and it is a route
153
+ * rather than a longer TTL because a presigned URL cannot be revoked: minting on demand keeps each
154
+ * one's life short and its issue authorized.
155
+ *
156
+ * Only while the row is `pending`. A `stored` row has no upload left to resume, and a `failed` one had
157
+ * its parts discarded — re-presigning against either would hand out URLs addressing nothing.
158
+ */
159
+ export declare function listUploadParts(deps: HandlerDeps, id: string): Promise<UploadPartsResult>;
160
+ /**
161
+ * One page of the caller's files, ordered by logical path. Scoped to the authenticated owner: there
162
+ * is no way to list another owner's files, and no parameter that could be made to.
163
+ */
164
+ export declare function listObjects(deps: HandlerDeps, query: ListObjectsQuery): Promise<{
165
+ objects: StorageObjectView[];
166
+ cursor?: string;
167
+ }>;
168
+ /** Load an object for reading, enforcing public-or-owner and that its bytes exist. */
169
+ export declare function readableObject(deps: HandlerDeps, id: string): Promise<StorageObject>;
170
+ /** How long a direct-download URL stays valid. Short: it is bearer-equivalent and cannot be revoked. */
171
+ export declare const PRESIGNED_URL_TTL_SECONDS = 300;
172
+ /**
173
+ * Mint a presigned GET — the no-Worker-in-the-byte-path escape hatch.
174
+ *
175
+ * Authorization happens **here**, once, and then the URL is on its own: it cannot be revoked, and
176
+ * anyone holding it can read the bytes until it lapses. Five minutes is short enough that a URL
177
+ * pasted into a chat is dead before it is read, and long enough to start a large download.
178
+ */
179
+ export declare function presignObject(deps: HandlerDeps, id: string): Promise<{
180
+ url: string;
181
+ expiresInSeconds: number;
182
+ }>;
183
+ /** Rename a file, change who may read it, or both. The key never moves — only the row changes. */
184
+ export declare function updateObject(deps: HandlerDeps, id: string, input: UpdateObjectInput): Promise<StorageObjectView>;
185
+ /**
186
+ * Copy a file server-side. The bytes are copied by R2 and never enter the Worker; the copy is a new
187
+ * object with its own id, its own key, and its own share links — it is not an alias.
188
+ *
189
+ * Owner-scoped, like every other mutating route: you may copy your own files. Copying a *public* file
190
+ * you do not own is a plausible feature and deliberately not this one — it would let any reader
191
+ * duplicate bytes into their own quota on the owner's storage bill, which is a decision an adopter
192
+ * should make explicitly rather than inherit.
193
+ */
194
+ export declare function copyObject(deps: HandlerDeps, id: string, input: CopyObjectInput): Promise<StorageObjectView>;
195
+ /**
196
+ * Delete a file: the object first, then the row. Every share link pointing at it goes with the row,
197
+ * through the foreign key's `ON DELETE CASCADE` — a share that outlived its object would be a live
198
+ * token for bytes that no longer exist.
199
+ *
200
+ * The object delete is best-effort. An R2 hiccup must not leave a row nobody can remove; the orphan
201
+ * sweep collects an object whose row went first.
202
+ */
203
+ export declare function deleteObject(deps: HandlerDeps, id: string): Promise<{
204
+ id: string;
205
+ deleted: true;
206
+ }>;
207
+ /** Mint a revocable share link for one file. */
208
+ export declare function createShare(deps: HandlerDeps, id: string, input: CreateShareInput): Promise<ShareView>;
209
+ /**
210
+ * Withdraw a share link. A write, effective on the very next request — which is the whole reason a
211
+ * share is a row and not a presigned URL.
212
+ *
213
+ * Revoking twice is a no-op. The first revocation time is kept, because when a link stopped working
214
+ * is the fact anyone actually needs.
215
+ */
216
+ export declare function revokeShare(deps: HandlerDeps, token: string): Promise<{
217
+ token: string;
218
+ revokedAt: Date;
219
+ }>;
220
+ /**
221
+ * Resolve a share token to the object it grants read access to.
222
+ *
223
+ * Revoked and expired are **separate answers**, deliberately. Both are 410, but `storage/share_revoked`
224
+ * says the owner took the link back and `storage/share_expired` says it simply aged out — one is worth
225
+ * asking about, the other is worth re-requesting. Collapsing them into "gone" throws away the only
226
+ * information the holder can act on. Revocation is checked first: an explicit withdrawal is the more
227
+ * specific fact about a link that is both.
228
+ */
229
+ export declare function resolveShare(deps: HandlerDeps, token: string): Promise<StorageObject>;
230
+ //# sourceMappingURL=handlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/http/handlers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAA+C,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAUnG,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEjE,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,WAAW,CAAC;AAEnB;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,kDAAkD;AAClD,MAAM,WAAW,WAAW;IAC1B,4BAA4B;IAC5B,EAAE,EAAE,eAAe,CAAC;IACpB,wFAAwF;IACxF,KAAK,EAAE,WAAW,CAAC;IACnB,gFAAgF;IAChF,MAAM,EAAE,aAAa,CAAC;IACtB,sGAAsG;IACtG,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,0BAA0B;IAC1B,KAAK,EAAE,MAAM,MAAM,CAAC;IACpB,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,MAAM,CAAC;IACvB,wBAAwB;IACxB,GAAG,EAAE,MAAM,IAAI,CAAC;CACjB;AAED,2FAA2F;AAC3F,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,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