@lunora/server 1.0.0-alpha.274 → 1.0.0-alpha.275

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/dist/index.d.mts CHANGED
@@ -2324,8 +2324,10 @@ interface StorageServeAuthzContext {
2324
2324
  * **403**; a throwing gate is a denial too, never a 500 (fail closed, mirroring
2325
2325
  * `@lunora/storage`'s `createUploadHandler`).
2326
2326
  *
2327
- * For a signed-URL topology this is where `verifySignedUrl` goes:
2328
- * `async ({ request }) => (await verifySignedUrl(new URL(request.url), secret)).valid`.
2327
+ * For a signed-URL topology this is where `authorizeSignedGet` goes:
2328
+ * `authorizeSignedGet(secret, { bucketName })` from `@lunora/storage`. A bare
2329
+ * `verifySignedUrl(...).valid` check admits an upload URL, another bucket or
2330
+ * another key.
2329
2331
  */
2330
2332
  type StorageServeAuthorizer = (context: StorageServeAuthzContext) => boolean | Promise<boolean>;
2331
2333
  /**
@@ -2339,7 +2341,7 @@ type StorageServeAuthorizer = (context: StorageServeAuthzContext) => boolean | P
2339
2341
  * `authorize` runs FIRST and is mandatory: this helper reads bytes out of a
2340
2342
  * bucket and hands them to whoever asked, so without a gate every mounted route
2341
2343
  * is an open object store. It does not verify signed URLs by itself — pass
2342
- * `verifySignedUrl` (or a session check) as the gate.
2344
+ * `authorizeSignedGet` (or a session check) as the gate.
2343
2345
  *
2344
2346
  * Every response carries `x-content-type-options: nosniff`, and any object whose
2345
2347
  * content type is not a raster image or media file also carries
package/dist/index.d.ts CHANGED
@@ -2324,8 +2324,10 @@ interface StorageServeAuthzContext {
2324
2324
  * **403**; a throwing gate is a denial too, never a 500 (fail closed, mirroring
2325
2325
  * `@lunora/storage`'s `createUploadHandler`).
2326
2326
  *
2327
- * For a signed-URL topology this is where `verifySignedUrl` goes:
2328
- * `async ({ request }) => (await verifySignedUrl(new URL(request.url), secret)).valid`.
2327
+ * For a signed-URL topology this is where `authorizeSignedGet` goes:
2328
+ * `authorizeSignedGet(secret, { bucketName })` from `@lunora/storage`. A bare
2329
+ * `verifySignedUrl(...).valid` check admits an upload URL, another bucket or
2330
+ * another key.
2329
2331
  */
2330
2332
  type StorageServeAuthorizer = (context: StorageServeAuthzContext) => boolean | Promise<boolean>;
2331
2333
  /**
@@ -2339,7 +2341,7 @@ type StorageServeAuthorizer = (context: StorageServeAuthzContext) => boolean | P
2339
2341
  * `authorize` runs FIRST and is mandatory: this helper reads bytes out of a
2340
2342
  * bucket and hands them to whoever asked, so without a gate every mounted route
2341
2343
  * is an open object store. It does not verify signed URLs by itself — pass
2342
- * `verifySignedUrl` (or a session check) as the gate.
2344
+ * `authorizeSignedGet` (or a session check) as the gate.
2343
2345
  *
2344
2346
  * Every response carries `x-content-type-options: nosniff`, and any object whose
2345
2347
  * content type is not a raster image or media file also carries
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/server",
3
- "version": "1.0.0-alpha.274",
3
+ "version": "1.0.0-alpha.275",
4
4
  "description": "Server primitives for Lunora: defineSchema, defineTable, query, mutation, and action",
5
5
  "keywords": [
6
6
  "backend",