@quickback-dev/cli 0.39.1 → 0.40.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/docs/content.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,0DAA0D;AAO1D,MAAM,CAAC,MAAM,IAAI,GAA6B;IAC5C,WAAW,EAAE;QACX,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,44nKAA44nK;KACx5nK;IACD,4BAA4B,EAAE;QAC5B,OAAO,EAAE,oBAAoB;QAC7B,SAAS,EAAE,giRAAgiR;KAC5iR;IACD,wCAAwC,EAAE;QACxC,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,2nEAA2nE;KACvoE;IACD,6BAA6B,EAAE;QAC7B,OAAO,EAAE,eAAe;QACxB,SAAS,EAAE,ypSAAypS;KACrqS;IACD,mCAAmC,EAAE;QACnC,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,iuGAAiuG;KAC7uG;IACD,yBAAyB,EAAE;QACzB,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,4kFAA4kF;KACxlF;IACD,wCAAwC,EAAE;QACxC,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,+tFAA+tF;KAC3uF;IACD,yCAAyC,EAAE;QACzC,OAAO,EAAE,iBAAiB;QAC1B,SAAS,EAAE,k/DAAk/D;KAC9/D;IACD,wBAAwB,EAAE;QACxB,OAAO,EAAE,oBAAoB;QAC7B,SAAS,EAAE,4gNAA4gN;KACxhN;IACD,sBAAsB,EAAE;QACtB,OAAO,EAAE,YAAY;QACrB,SAAS,EAAE,+qPAA+qP;KAC3rP;IACD,0BAA0B,EAAE;QAC1B,OAAO,EAAE,iBAAiB;QAC1B,SAAS,EAAE,yjQAAyjQ;KACrkQ;IACD,yBAAyB,EAAE;QACzB,OAAO,EAAE,2BAA2B;QACpC,SAAS,EAAE,0w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1B,OAAO;IACP,gCAAgC;IAChC,wCAAwC;IACxC,iCAAiC;IACjC,oCAAoC;IACpC,mCAAmC;IACnC,yCAAyC;IACzC,2BAA2B;IAC3B,yCAAyC;IACzC,oCAAoC;IACpC,wCAAwC;IACxC,oCAAoC;IACpC,wBAAwB;IACxB,kBAAkB;IAClB,iCAAiC;IACjC,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,6BAA6B;IAC7B,+BAA+B;IAC/B,4BAA4B;IAC5B,4BAA4B;IAC5B,+BAA+B;IAC/B,oBAAoB;IACpB,sCAAsC;IACtC,qBAAqB;IACrB,uBAAuB;IACvB,mBAAmB;IACnB,sBAAsB;IACtB,sBAAsB;IACtB,qBAAqB;IACrB,WAAW;IACX,0BAA0B;IAC1B,iBAAiB;IACjB,0BAA0B;IAC1B,yBAAyB;IACzB,2BAA2B;IAC3B,oBAAoB;IACpB,uBAAuB;IACvB,OAAO;IACP,uBAAuB;IACvB,cAAc;IACd,2BAA2B;IAC3B,gCAAgC;IAChC,gBAAgB;IAChB,2BAA2B;IAC3B,kCAAkC;IAClC,+BAA+B;IAC/B,eAAe;IACf,kBAAkB;IAClB,kBAAkB;IAClB,wBAAwB;IACxB,wBAAwB;IACxB,yBAAyB;IACzB,cAAc;IACd,+BAA+B;IAC/B,wBAAwB;IACxB,gBAAgB;IAChB,yBAAyB;CAC1B,CAAC"}
1
+ {"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/docs/content.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,0DAA0D;AAO1D,MAAM,CAAC,MAAM,IAAI,GAA6B;IAC5C,WAAW,EAAE;QACX,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,mkjEAAmkjE;KAC/kjE;IACD,4BAA4B,EAAE;QAC5B,OAAO,EAAE,oBAAoB;QAC7B,SAAS,EAAE,giRAAgiR;KAC5iR;IACD,wCAAwC,EAAE;QACxC,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,2nEAA2nE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A0B;IAC1B,yBAAyB;IACzB,2BAA2B;IAC3B,oBAAoB;IACpB,uBAAuB;IACvB,OAAO;IACP,uBAAuB;IACvB,cAAc;IACd,2BAA2B;IAC3B,gCAAgC;IAChC,gBAAgB;IAChB,2BAA2B;IAC3B,kCAAkC;IAClC,+BAA+B;IAC/B,eAAe;IACf,kBAAkB;IAClB,kBAAkB;IAClB,wBAAwB;IACxB,wBAAwB;IACxB,yBAAyB;IACzB,cAAc;IACd,+BAA+B;IAC/B,wBAAwB;IACxB,gBAAgB;IAChB,yBAAyB;CAC1B,CAAC"}
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import pc from "picocolors";
12
12
  // Version injected at build time by scripts/inject-version.ts
13
- const CLI_VERSION = "0.39.1";
13
+ const CLI_VERSION = "0.40.2";
14
14
  function getPackageVersion() {
15
15
  return CLI_VERSION;
16
16
  }
@@ -1,5 +1,102 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.40.2 — June 3, 2026
4
+
5
+ ### Passwordless plugins can no longer bypass the signup gate
6
+
7
+ Better Auth's `emailOtp` and `magicLink` plugins auto-create an account when a
8
+ code/link is verified for an unknown email — and that path is independent of
9
+ `emailAndPassword.disableSignUp`. As a result, `account.auth.signup: false`
10
+ closed `POST /auth/v1/sign-up/email` but left OTP / magic-link verification as an
11
+ open back-door for account creation.
12
+
13
+ The compiler now emits each plugin's own `disableSignUp` flag, and new
14
+ per-plugin options expose it directly:
15
+
16
+ ```ts
17
+ auth: defineAuth("better-auth", {
18
+ emailAndPassword: { enabled: true },
19
+ plugins: {
20
+ emailOtp: { disableSignUp: true }, // OTP sign-in only; unknown emails rejected
21
+ magicLink: { disableSignUp: true }, // same for magic links
22
+ },
23
+ }),
24
+ ```
25
+
26
+ Both default to following the global gate: setting `account.auth.signup: false`
27
+ (→ `emailAndPassword.disableSignUp: true`) now also gates the OTP and magic-link
28
+ paths automatically. Set `{ disableSignUp: false }` on a plugin explicitly to
29
+ keep its sign-up open while password sign-up stays closed.
30
+
31
+ ## v0.40.1 — June 2, 2026
32
+
33
+ - The generated `wrangler.toml` and `Env` type now emit the `ASSETS` binding
34
+ type for projects that mount SPAs (CMS / Account), so handler code that
35
+ references `c.env.ASSETS` typechecks.
36
+ - Compiler Docker builds preserve their layer cache across rebuilds, cutting
37
+ local recompile time.
38
+
39
+ ## v0.40.0 — June 2, 2026
40
+
41
+ R2 file storage is now **presign-only by default**. Adding
42
+ `defineFileStorage("cloudflare-r2")` emits just the `ctx.storage` signer — no
43
+ FILES_DB database, no `/storage/v1/*` endpoints, no files worker. You sign
44
+ presigned URLs against a bucket and store references in your own table. The
45
+ turnkey managed subsystem is still available, now behind `managed: true`.
46
+
47
+ This decouples the lightweight primitive from the heavyweight subsystem so you
48
+ can add uploads without standing up a metadata database you don't use.
49
+
50
+ ### Presign-only by default; managed is opt-in
51
+
52
+ ```ts
53
+ // Presign-only (default) — ctx.storage against a bucket, nothing else
54
+ defineFileStorage("cloudflare-r2", { bucketName: "my-app-media" })
55
+
56
+ // Managed subsystem — FILES_DB + /storage/v1/* + files worker
57
+ defineFileStorage("cloudflare-r2", { managed: true })
58
+ ```
59
+
60
+ - New projects can omit `bucketName` — it defaults to `<project>-media`, so
61
+ setup is one `wrangler r2 bucket create` plus the R2 API-token secrets.
62
+ - Existing projects set `bucketName` to a bucket they already have. Presign-only
63
+ emits **no** R2 bucket binding and **no** FILES_DB binding — nothing to
64
+ provision, nothing to migrate.
65
+
66
+ ### Per-call bucket + custom secret names
67
+
68
+ ```ts
69
+ // Sign against a different bucket than the configured default
70
+ await storage.signPutUrl(key, { bucket: "my-app-public", contentType });
71
+ ```
72
+
73
+ If your project already stores R2 credentials under different env-var names,
74
+ map them so the signer reads yours:
75
+
76
+ ```ts
77
+ defineFileStorage("cloudflare-r2", {
78
+ bucketName: "my-app-media",
79
+ presign: { accountIdEnv: "CF_ACCOUNT_ID", accessKeyIdEnv: "S3_KEY", secretAccessKeyEnv: "S3_SECRET" },
80
+ })
81
+ ```
82
+
83
+ ### Fixes
84
+
85
+ - `maxFileSize` now accepts a human string (`"100mb"`, `"5gb"`) as well as a
86
+ number of bytes — previously a string emitted invalid TypeScript.
87
+ - Presign-only no longer emits a stray `FILES_DB` `[[d1_databases]]` block (with
88
+ an invalid `database_id = "local-files"`) into `wrangler.toml`, which would
89
+ have made `wrangler deploy` reject the worker.
90
+
91
+ ## v0.39.1 — June 2, 2026
92
+
93
+ Deduplicate colliding OpenAPI `operationId`s. The auto-generated list id
94
+ `list<Resource>` collided when a user named an action `list<Resource>` (e.g.
95
+ `message_reactions` + an action `listMessageReactions`), producing a duplicate
96
+ operationId that failed OpenAPI validation and broke `api-types.gen.ts`. The
97
+ user's action keeps its id; the colliding auto-generated CRUD op is suffixed,
98
+ with a `[quickback:openapi]` warning per rename.
99
+
3
100
  ## v0.39.0 — June 2, 2026
4
101
 
5
102
  Media and large-binary uploads are now first-class. Instead of streaming file
@@ -46,6 +46,33 @@ Use this to show UI warnings when SES isn't configured.
46
46
  - `GET /api/v1/system/email-status`
47
47
  - Response: `{ "emailConfigured": true|false }`
48
48
 
49
+ **Disabling sign-up via OTP:**
50
+
51
+ By default the Email OTP plugin **auto-creates an account** when a code is
52
+ verified for an unknown email — verifying an OTP doubles as registration. This
53
+ is a separate code path from `emailAndPassword.disableSignUp` (which only gates
54
+ `POST /auth/v1/sign-up/email`), so disabling password sign-up alone does *not*
55
+ close the OTP path.
56
+
57
+ To make OTP sign-in only (existing users can sign in; unknown emails are
58
+ rejected instead of registered), use the object form:
59
+
60
+ ```ts
61
+ auth: defineAuth("better-auth", {
62
+ emailAndPassword: { enabled: true },
63
+ plugins: {
64
+ emailOtp: { disableSignUp: true },
65
+ },
66
+ }),
67
+ ```
68
+
69
+ > `emailOtp.disableSignUp` **inherits the global signup gate**: when
70
+ > `account.auth.signup: false` (i.e. `emailAndPassword.disableSignUp: true`) is
71
+ > set, the OTP plugin is gated automatically so it can't be used to bypass it. Set
72
+ > `emailOtp: { disableSignUp: false }` explicitly to opt the OTP path back open
73
+ > while password sign-up stays closed.
74
+
75
+
49
76
  ### Upgrade Anonymous
50
77
 
51
78
  Adds a first-class endpoint to convert an anonymous user into a full user. This flips `isAnonymous` to `false` and refreshes the session cache immediately.
@@ -129,6 +156,25 @@ auth: defineAuth("better-auth", {
129
156
  - `POST /auth/v1/magic-link/send` - Send magic link email
130
157
  - `GET /auth/v1/magic-link/verify` - Verify magic link token
131
158
 
159
+ **Disabling sign-up via magic link:**
160
+
161
+ Like Email OTP, the magic-link plugin **auto-creates an account** when a link is
162
+ verified for an unknown email, on a code path independent of
163
+ `emailAndPassword.disableSignUp`. Gate it with the object form:
164
+
165
+ ```ts
166
+ auth: defineAuth("better-auth", {
167
+ emailAndPassword: { enabled: true },
168
+ plugins: {
169
+ magicLink: { disableSignUp: true }, // sign-in only; unknown emails rejected
170
+ },
171
+ }),
172
+ ```
173
+
174
+ It inherits the global signup gate the same way `emailOtp.disableSignUp` does:
175
+ `account.auth.signup: false` gates the magic-link path automatically; set
176
+ `magicLink: { disableSignUp: false }` to opt it back open.
177
+
132
178
  **Email customization:**
133
179
 
134
180
  Magic link emails use the same AWS SES configuration as Email OTP. Customize the email template via environment variables:
@@ -1,6 +1,35 @@
1
1
  # File Storage (R2)
2
2
 
3
- Quickback provides built-in file storage using Cloudflare R2, with role-based access control and a dedicated files worker for serving.
3
+ Quickback provides built-in file storage using Cloudflare R2.
4
+
5
+ ## Two modes
6
+
7
+ `defineFileStorage("cloudflare-r2")` has two modes:
8
+
9
+ - **Presign-only (default)** — emits just the `ctx.storage` signer (presigned
10
+ PUT/GET URLs straight to R2). **No new D1, no `/storage/v1/*` endpoints, no
11
+ files worker.** You compute keys and store file references in your own table.
12
+ This is the recommended path for most apps and the lightest way to add
13
+ uploads — see [Presigned uploads](#presigned-uploads-recommended).
14
+ - **Managed (`managed: true`)** — adds the turnkey subsystem on top: a FILES_DB
15
+ metadata database (buckets + objects), the `/storage/v1/*` upload/download/
16
+ manage endpoints, and a public files worker for serving. Opt in only when you
17
+ want buckets/objects handled for you instead of bringing your own media table.
18
+
19
+ ```ts
20
+ // Presign-only (default) — ctx.storage against a bucket, nothing else
21
+ defineFileStorage("cloudflare-r2", { bucketName: "my-app-media" })
22
+
23
+ // Managed subsystem — adds FILES_DB + /storage/v1/* + files worker
24
+ defineFileStorage("cloudflare-r2", { managed: true, bucketName: "my-app-files" })
25
+ ```
26
+
27
+ New projects can omit `bucketName` — it defaults to `<project>-media`, so the
28
+ only setup is `wrangler r2 bucket create <name>` once plus the R2 API-token
29
+ secrets. Existing projects set `bucketName` to a bucket they already have.
30
+
31
+ The sections below document the **managed** subsystem; for the default
32
+ presign-only path jump to [Presigned uploads](#presigned-uploads-recommended).
4
33
 
5
34
  ## Architecture
6
35
 
@@ -326,12 +355,14 @@ After compiling:
326
355
 
327
356
  | Option | Type | Default | Description |
328
357
  |--------|------|---------|-------------|
329
- | `binding` | `string` | `R2_BUCKET` | R2 bucket binding name |
330
- | `bucketName` | `string` | Required | R2 bucket name |
331
- | `filesBinding` | `string` | `FILES_DB` | Files metadata D1 binding |
332
- | `maxFileSize` | `number` | 10MB | Max upload size in bytes |
333
- | `allowedTypes` | `string[]` | Images only | Allowed MIME types |
334
- | `publicDomain` | `string` | - | Custom domain for files worker |
358
+ | `managed` | `boolean` | `false` | Opt into the FILES_DB subsystem + `/storage/v1/*` + files worker. Off = presign-only. |
359
+ | `bucketName` | `string` | `<project>-media` | R2 bucket the signer targets (override per-call with `signPutUrl(key, { bucket })`) |
360
+ | `presign` | `object` | - | Env-var name overrides: `{ accountIdEnv, accessKeyIdEnv, secretAccessKeyEnv, endpointEnv }` |
361
+ | `binding` | `string` | `R2_BUCKET` | R2 bucket binding name (managed mode) |
362
+ | `filesBinding` | `string` | `FILES_DB` | Files metadata D1 binding (managed mode) |
363
+ | `maxFileSize` | `number \| string` | 10MB | Max upload size — bytes or `"100mb"` (managed mode) |
364
+ | `allowedTypes` | `string[]` | Images only | Allowed MIME types (managed mode) |
365
+ | `publicDomain` | `string` | - | Custom domain for files worker (managed mode) |
335
366
 
336
367
  ## Security Model
337
368
 
@@ -2,53 +2,78 @@
2
2
 
3
3
  Cloudflare R2 provides S3-compatible object storage for file uploads in the Quickback Stack.
4
4
 
5
- ## Upload Flow
5
+ By default `defineFileStorage("cloudflare-r2")` is **presign-only**: you get the
6
+ `ctx.storage` signer and nothing else. The `/storage/v1/*` endpoints shown
7
+ further down only exist in the [managed subsystem](/stack/storage/r2#two-modes)
8
+ (`managed: true`).
9
+
10
+ ## Upload Flow (default — `ctx.storage`)
11
+
12
+ Write a normal `defineAction` that signs a presigned URL and stores the key in
13
+ **your own table**. Bytes go directly to R2 — the Worker only signs.
14
+
15
+ ```ts
16
+ export default defineAction({
17
+ path: "/media/sign-upload",
18
+ method: "POST",
19
+ input: z.object({ filename: z.string(), contentType: z.string() }),
20
+ access: { roles: ["member"] },
21
+ async execute({ input, ctx, db, storage }) {
22
+ const key = `org/${ctx.activeOrgId}/${crypto.randomUUID()}-${input.filename}`;
23
+ const upload = await storage.signPutUrl(key, { contentType: input.contentType, expiresIn: 600 });
24
+ await db.insert(media).values({ key /* … */ });
25
+ return { uploadUrl: upload.url, key, headers: upload.headers };
26
+ },
27
+ });
28
+ ```
29
+
30
+ ```bash
31
+ # 1. Ask your action for a signed URL (your auth/roles run here)
32
+ curl -X POST https://api.example.com/api/v1/media/sign-upload \
33
+ -H "Authorization: Bearer <token>" -H "Content-Type: application/json" \
34
+ -d '{ "filename": "report.pdf", "contentType": "application/pdf" }'
35
+ # → { "uploadUrl": "https://<account>.r2.cloudflarestorage.com/...&X-Amz-Signature=...", "key": "...", "headers": { "Content-Type": "application/pdf" } }
36
+
37
+ # 2. Upload the bytes straight to R2 (replay the returned headers)
38
+ curl -X PUT "<uploadUrl>" -H "Content-Type: application/pdf" --data-binary @report.pdf
39
+ ```
40
+
41
+ `storage.signPutUrl(key, { contentType?, expiresIn?, bucket? })` returns
42
+ `{ url, method, headers, key, expiresAt }`; `storage.signGetUrl(key, { expiresIn?, downloadFilename?, bucket? })`
43
+ returns a presigned GET URL. Pass `bucket` to target a bucket other than the
44
+ configured default.
45
+
46
+ Presigning needs an R2 API token — set the `R2_ACCOUNT_ID`, `R2_ACCESS_KEY_ID`,
47
+ and `R2_SECRET_ACCESS_KEY` secrets. See [R2 Setup → Presigned uploads](/stack/storage/r2#presigned-uploads-recommended).
6
48
 
7
- The generated API provides a two-step **presigned** upload — the file bytes go
8
- directly to R2 and never stream through your Worker:
49
+ ## Upload Flow (managed mode — `/storage/v1/*`)
9
50
 
10
- 1. **Request a presigned URL** — Client calls `/storage/v1/presign/...`; the
11
- Worker runs auth + bucket + role checks and returns a time-limited URL
12
- 2. **Upload directly to R2** — Client `PUT`s the bytes to R2 (bypasses your Worker)
13
- 3. **Confirm** — `/storage/v1/confirm/...` reconciles the recorded size + etag
51
+ With `managed: true`, the generated API also exposes turnkey presigned
52
+ endpoints backed by the FILES_DB metadata system:
14
53
 
15
54
  ```bash
16
55
  # 1. Request a presigned upload URL
17
56
  curl -X POST https://api.example.com/storage/v1/presign/documents/report.pdf \
18
- -H "Authorization: Bearer <token>" \
19
- -H "Content-Type: application/json" \
57
+ -H "Authorization: Bearer <token>" -H "Content-Type: application/json" \
20
58
  -d '{ "contentType": "application/pdf", "size": 248000 }'
59
+ # → { "id": "obj_abc", "key": "...", "uploadUrl": "...", "headers": {...}, "expiresAt": "..." }
60
+
61
+ # 2. Upload directly to R2
62
+ curl -X PUT "<uploadUrl>" -H "Content-Type: application/pdf" --data-binary @report.pdf
21
63
 
22
- # Response:
23
- # {
24
- # "id": "obj_abc123",
25
- # "key": "org_abc/documents/report.pdf",
26
- # "uploadUrl": "https://<account>.r2.cloudflarestorage.com/...&X-Amz-Signature=...",
27
- # "method": "PUT",
28
- # "headers": { "Content-Type": "application/pdf" },
29
- # "expiresAt": "2026-06-02T12:10:00.000Z"
30
- # }
31
-
32
- # 2. Upload directly to R2 using the presigned URL (replay the returned headers)
33
- curl -X PUT "<uploadUrl>" \
34
- -H "Content-Type: application/pdf" \
35
- --data-binary @report.pdf
36
-
37
- # 3. Confirm the upload
64
+ # 3. Confirm (reconciles size + etag)
38
65
  curl -X POST https://api.example.com/storage/v1/confirm/documents/report.pdf \
39
66
  -H "Authorization: Bearer <token>"
40
67
  ```
41
68
 
42
- Presigning needs an R2 API token — set the `R2_ACCOUNT_ID`, `R2_ACCESS_KEY_ID`,
43
- and `R2_SECRET_ACCESS_KEY` secrets. See [R2 Setup → Presigned uploads](/stack/storage/r2#presigned-uploads-recommended).
44
-
45
- For uploads that should land in **your own table** (with your own access rules),
46
- sign the URL from inside a `defineAction` via `ctx.storage` — see
47
- [Signing from your own action](/stack/storage/r2#signing-from-your-own-action).
48
-
49
69
  ## Download Flow
50
70
 
51
- Files are served through your Worker with security checks applied:
71
+ In **presign-only** mode, mint a short-lived download URL with
72
+ `storage.signGetUrl(key, { downloadFilename })` from your action and hand it to
73
+ the client — the bytes come straight from R2.
74
+
75
+ In **managed** mode, files are also served through the worker with security
76
+ checks applied:
52
77
 
53
78
  ```bash
54
79
  # Download a file (auth + firewall enforced)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quickback-dev/cli",
3
- "version": "0.39.1",
3
+ "version": "0.40.2",
4
4
  "description": "CLI for Quickback — define your backend in TypeScript, compile to a fully wired Cloudflare Worker (or Bun / Node) with auth, database, migrations, security, CMS, and Account UI.",
5
5
  "author": "Kardoe Incorporated <paul@kardoe.com>",
6
6
  "license": "MIT",
@@ -1,5 +1,102 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.40.2 — June 3, 2026
4
+
5
+ ### Passwordless plugins can no longer bypass the signup gate
6
+
7
+ Better Auth's `emailOtp` and `magicLink` plugins auto-create an account when a
8
+ code/link is verified for an unknown email — and that path is independent of
9
+ `emailAndPassword.disableSignUp`. As a result, `account.auth.signup: false`
10
+ closed `POST /auth/v1/sign-up/email` but left OTP / magic-link verification as an
11
+ open back-door for account creation.
12
+
13
+ The compiler now emits each plugin's own `disableSignUp` flag, and new
14
+ per-plugin options expose it directly:
15
+
16
+ ```ts
17
+ auth: defineAuth("better-auth", {
18
+ emailAndPassword: { enabled: true },
19
+ plugins: {
20
+ emailOtp: { disableSignUp: true }, // OTP sign-in only; unknown emails rejected
21
+ magicLink: { disableSignUp: true }, // same for magic links
22
+ },
23
+ }),
24
+ ```
25
+
26
+ Both default to following the global gate: setting `account.auth.signup: false`
27
+ (→ `emailAndPassword.disableSignUp: true`) now also gates the OTP and magic-link
28
+ paths automatically. Set `{ disableSignUp: false }` on a plugin explicitly to
29
+ keep its sign-up open while password sign-up stays closed.
30
+
31
+ ## v0.40.1 — June 2, 2026
32
+
33
+ - The generated `wrangler.toml` and `Env` type now emit the `ASSETS` binding
34
+ type for projects that mount SPAs (CMS / Account), so handler code that
35
+ references `c.env.ASSETS` typechecks.
36
+ - Compiler Docker builds preserve their layer cache across rebuilds, cutting
37
+ local recompile time.
38
+
39
+ ## v0.40.0 — June 2, 2026
40
+
41
+ R2 file storage is now **presign-only by default**. Adding
42
+ `defineFileStorage("cloudflare-r2")` emits just the `ctx.storage` signer — no
43
+ FILES_DB database, no `/storage/v1/*` endpoints, no files worker. You sign
44
+ presigned URLs against a bucket and store references in your own table. The
45
+ turnkey managed subsystem is still available, now behind `managed: true`.
46
+
47
+ This decouples the lightweight primitive from the heavyweight subsystem so you
48
+ can add uploads without standing up a metadata database you don't use.
49
+
50
+ ### Presign-only by default; managed is opt-in
51
+
52
+ ```ts
53
+ // Presign-only (default) — ctx.storage against a bucket, nothing else
54
+ defineFileStorage("cloudflare-r2", { bucketName: "my-app-media" })
55
+
56
+ // Managed subsystem — FILES_DB + /storage/v1/* + files worker
57
+ defineFileStorage("cloudflare-r2", { managed: true })
58
+ ```
59
+
60
+ - New projects can omit `bucketName` — it defaults to `<project>-media`, so
61
+ setup is one `wrangler r2 bucket create` plus the R2 API-token secrets.
62
+ - Existing projects set `bucketName` to a bucket they already have. Presign-only
63
+ emits **no** R2 bucket binding and **no** FILES_DB binding — nothing to
64
+ provision, nothing to migrate.
65
+
66
+ ### Per-call bucket + custom secret names
67
+
68
+ ```ts
69
+ // Sign against a different bucket than the configured default
70
+ await storage.signPutUrl(key, { bucket: "my-app-public", contentType });
71
+ ```
72
+
73
+ If your project already stores R2 credentials under different env-var names,
74
+ map them so the signer reads yours:
75
+
76
+ ```ts
77
+ defineFileStorage("cloudflare-r2", {
78
+ bucketName: "my-app-media",
79
+ presign: { accountIdEnv: "CF_ACCOUNT_ID", accessKeyIdEnv: "S3_KEY", secretAccessKeyEnv: "S3_SECRET" },
80
+ })
81
+ ```
82
+
83
+ ### Fixes
84
+
85
+ - `maxFileSize` now accepts a human string (`"100mb"`, `"5gb"`) as well as a
86
+ number of bytes — previously a string emitted invalid TypeScript.
87
+ - Presign-only no longer emits a stray `FILES_DB` `[[d1_databases]]` block (with
88
+ an invalid `database_id = "local-files"`) into `wrangler.toml`, which would
89
+ have made `wrangler deploy` reject the worker.
90
+
91
+ ## v0.39.1 — June 2, 2026
92
+
93
+ Deduplicate colliding OpenAPI `operationId`s. The auto-generated list id
94
+ `list<Resource>` collided when a user named an action `list<Resource>` (e.g.
95
+ `message_reactions` + an action `listMessageReactions`), producing a duplicate
96
+ operationId that failed OpenAPI validation and broke `api-types.gen.ts`. The
97
+ user's action keeps its id; the colliding auto-generated CRUD op is suffixed,
98
+ with a `[quickback:openapi]` warning per rename.
99
+
3
100
  ## v0.39.0 — June 2, 2026
4
101
 
5
102
  Media and large-binary uploads are now first-class. Instead of streaming file
@@ -46,6 +46,33 @@ Use this to show UI warnings when SES isn't configured.
46
46
  - `GET /api/v1/system/email-status`
47
47
  - Response: `{ "emailConfigured": true|false }`
48
48
 
49
+ **Disabling sign-up via OTP:**
50
+
51
+ By default the Email OTP plugin **auto-creates an account** when a code is
52
+ verified for an unknown email — verifying an OTP doubles as registration. This
53
+ is a separate code path from `emailAndPassword.disableSignUp` (which only gates
54
+ `POST /auth/v1/sign-up/email`), so disabling password sign-up alone does *not*
55
+ close the OTP path.
56
+
57
+ To make OTP sign-in only (existing users can sign in; unknown emails are
58
+ rejected instead of registered), use the object form:
59
+
60
+ ```ts
61
+ auth: defineAuth("better-auth", {
62
+ emailAndPassword: { enabled: true },
63
+ plugins: {
64
+ emailOtp: { disableSignUp: true },
65
+ },
66
+ }),
67
+ ```
68
+
69
+ > `emailOtp.disableSignUp` **inherits the global signup gate**: when
70
+ > `account.auth.signup: false` (i.e. `emailAndPassword.disableSignUp: true`) is
71
+ > set, the OTP plugin is gated automatically so it can't be used to bypass it. Set
72
+ > `emailOtp: { disableSignUp: false }` explicitly to opt the OTP path back open
73
+ > while password sign-up stays closed.
74
+
75
+
49
76
  ### Upgrade Anonymous
50
77
 
51
78
  Adds a first-class endpoint to convert an anonymous user into a full user. This flips `isAnonymous` to `false` and refreshes the session cache immediately.
@@ -129,6 +156,25 @@ auth: defineAuth("better-auth", {
129
156
  - `POST /auth/v1/magic-link/send` - Send magic link email
130
157
  - `GET /auth/v1/magic-link/verify` - Verify magic link token
131
158
 
159
+ **Disabling sign-up via magic link:**
160
+
161
+ Like Email OTP, the magic-link plugin **auto-creates an account** when a link is
162
+ verified for an unknown email, on a code path independent of
163
+ `emailAndPassword.disableSignUp`. Gate it with the object form:
164
+
165
+ ```ts
166
+ auth: defineAuth("better-auth", {
167
+ emailAndPassword: { enabled: true },
168
+ plugins: {
169
+ magicLink: { disableSignUp: true }, // sign-in only; unknown emails rejected
170
+ },
171
+ }),
172
+ ```
173
+
174
+ It inherits the global signup gate the same way `emailOtp.disableSignUp` does:
175
+ `account.auth.signup: false` gates the magic-link path automatically; set
176
+ `magicLink: { disableSignUp: false }` to opt it back open.
177
+
132
178
  **Email customization:**
133
179
 
134
180
  Magic link emails use the same AWS SES configuration as Email OTP. Customize the email template via environment variables:
@@ -1,6 +1,35 @@
1
1
  # File Storage (R2)
2
2
 
3
- Quickback provides built-in file storage using Cloudflare R2, with role-based access control and a dedicated files worker for serving.
3
+ Quickback provides built-in file storage using Cloudflare R2.
4
+
5
+ ## Two modes
6
+
7
+ `defineFileStorage("cloudflare-r2")` has two modes:
8
+
9
+ - **Presign-only (default)** — emits just the `ctx.storage` signer (presigned
10
+ PUT/GET URLs straight to R2). **No new D1, no `/storage/v1/*` endpoints, no
11
+ files worker.** You compute keys and store file references in your own table.
12
+ This is the recommended path for most apps and the lightest way to add
13
+ uploads — see [Presigned uploads](#presigned-uploads-recommended).
14
+ - **Managed (`managed: true`)** — adds the turnkey subsystem on top: a FILES_DB
15
+ metadata database (buckets + objects), the `/storage/v1/*` upload/download/
16
+ manage endpoints, and a public files worker for serving. Opt in only when you
17
+ want buckets/objects handled for you instead of bringing your own media table.
18
+
19
+ ```ts
20
+ // Presign-only (default) — ctx.storage against a bucket, nothing else
21
+ defineFileStorage("cloudflare-r2", { bucketName: "my-app-media" })
22
+
23
+ // Managed subsystem — adds FILES_DB + /storage/v1/* + files worker
24
+ defineFileStorage("cloudflare-r2", { managed: true, bucketName: "my-app-files" })
25
+ ```
26
+
27
+ New projects can omit `bucketName` — it defaults to `<project>-media`, so the
28
+ only setup is `wrangler r2 bucket create <name>` once plus the R2 API-token
29
+ secrets. Existing projects set `bucketName` to a bucket they already have.
30
+
31
+ The sections below document the **managed** subsystem; for the default
32
+ presign-only path jump to [Presigned uploads](#presigned-uploads-recommended).
4
33
 
5
34
  ## Architecture
6
35
 
@@ -326,12 +355,14 @@ After compiling:
326
355
 
327
356
  | Option | Type | Default | Description |
328
357
  |--------|------|---------|-------------|
329
- | `binding` | `string` | `R2_BUCKET` | R2 bucket binding name |
330
- | `bucketName` | `string` | Required | R2 bucket name |
331
- | `filesBinding` | `string` | `FILES_DB` | Files metadata D1 binding |
332
- | `maxFileSize` | `number` | 10MB | Max upload size in bytes |
333
- | `allowedTypes` | `string[]` | Images only | Allowed MIME types |
334
- | `publicDomain` | `string` | - | Custom domain for files worker |
358
+ | `managed` | `boolean` | `false` | Opt into the FILES_DB subsystem + `/storage/v1/*` + files worker. Off = presign-only. |
359
+ | `bucketName` | `string` | `<project>-media` | R2 bucket the signer targets (override per-call with `signPutUrl(key, { bucket })`) |
360
+ | `presign` | `object` | - | Env-var name overrides: `{ accountIdEnv, accessKeyIdEnv, secretAccessKeyEnv, endpointEnv }` |
361
+ | `binding` | `string` | `R2_BUCKET` | R2 bucket binding name (managed mode) |
362
+ | `filesBinding` | `string` | `FILES_DB` | Files metadata D1 binding (managed mode) |
363
+ | `maxFileSize` | `number \| string` | 10MB | Max upload size — bytes or `"100mb"` (managed mode) |
364
+ | `allowedTypes` | `string[]` | Images only | Allowed MIME types (managed mode) |
365
+ | `publicDomain` | `string` | - | Custom domain for files worker (managed mode) |
335
366
 
336
367
  ## Security Model
337
368