@quickback-dev/cli 0.12.0 → 0.14.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.
Files changed (34) hide show
  1. package/dist/commands/create.d.ts.map +1 -1
  2. package/dist/commands/create.js +11 -3
  3. package/dist/commands/create.js.map +1 -1
  4. package/dist/docs/content.js +12 -12
  5. package/dist/docs/content.js.map +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/skill/docs/changelog.md +192 -1
  8. package/dist/skill/docs/compiler/config/auth.md +37 -0
  9. package/dist/skill/docs/compiler/definitions/access.md +164 -2
  10. package/dist/skill/docs/compiler/definitions/actions.md +145 -0
  11. package/dist/skill/docs/compiler/definitions/firewall.md +46 -0
  12. package/dist/skill/docs/compiler/definitions/index.md +2 -0
  13. package/dist/skill/docs/compiler/definitions/masking.md +11 -0
  14. package/dist/skill/docs/compiler/definitions/read.md +8 -7
  15. package/dist/skill/docs/compiler/definitions/views.md +100 -12
  16. package/dist/skill/docs/compiler/getting-started/full-example.md +12 -11
  17. package/dist/skill/docs/compiler/targets/hono-api/using-the-api/crud.md +1 -2
  18. package/dist/skill/docs/compiler/targets/hono-api/using-the-api/views-api.md +8 -13
  19. package/dist/templates/registry.d.ts.map +1 -1
  20. package/dist/templates/registry.js +14 -1
  21. package/dist/templates/registry.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/skill/docs/changelog.md +192 -1
  24. package/src/skill/docs/compiler/config/auth.md +37 -0
  25. package/src/skill/docs/compiler/definitions/access.md +164 -2
  26. package/src/skill/docs/compiler/definitions/actions.md +145 -0
  27. package/src/skill/docs/compiler/definitions/firewall.md +46 -0
  28. package/src/skill/docs/compiler/definitions/index.md +2 -0
  29. package/src/skill/docs/compiler/definitions/masking.md +11 -0
  30. package/src/skill/docs/compiler/definitions/read.md +8 -7
  31. package/src/skill/docs/compiler/definitions/views.md +100 -12
  32. package/src/skill/docs/compiler/getting-started/full-example.md +12 -11
  33. package/src/skill/docs/compiler/targets/hono-api/using-the-api/crud.md +1 -2
  34. package/src/skill/docs/compiler/targets/hono-api/using-the-api/views-api.md +8 -13
@@ -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,k92EAAk92E;KAC992E;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,upQAAupQ;KACnqQ;IACD,mCAAmC,EAAE;QACnC,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,iuGAAiuG;KAC7uG;IACD,yBAAyB,EAAE;QACzB,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,w4EAAw4E;KACp5E;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,w+MAAw+M;KACp/M;IACD,sBAAsB,EAAE;QACtB,OAAO,EAAE,YAAY;QACrB,SAAS,EAAE,8jLAA8jL;KAC1kL;IACD,0BAA0B,EAAE;QAC1B,OAAO,EAAE,iBAAiB;QAC1B,SAAS,EAAE,+yMAA+yM;KAC3zM;IACD,yBAAyB,EAAE;QACzB,OAAO,EAAE,2BAA2B;QACpC,SAAS,EAAE,k9LAAk9L;KAC99L;IACD,iBAAiB,EA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xC,oCAAoC;IACpC,wBAAwB;IACxB,kBAAkB;IAClB,gCAAgC;IAChC,6BAA6B;IAC7B,iCAAiC;IACjC,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,6BAA6B;IAC7B,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,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,u24FAAu24F;KACn34F;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,upQAAupQ;KACnqQ;IACD,mCAAmC,EAAE;QACnC,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,iuGAAiuG;KA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;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.12.0";
13
+ const CLI_VERSION = "0.14.2";
14
14
  function getPackageVersion() {
15
15
  return CLI_VERSION;
16
16
  }
@@ -4,6 +4,197 @@ Release notes for the Quickback compiler, CLI, and platform.
4
4
 
5
5
  ---
6
6
 
7
+ ## v0.14.2 — May 7, 2026
8
+
9
+ ### Wrangler `[[migrations]]` no longer drops historical Durable Object lifecycle entries
10
+
11
+ Cloudflare requires the `[[migrations]]` list in `wrangler.toml` to be **append-only**: once a tag has been deployed, removing it on a subsequent compile causes the next deploy to fail with `Cannot apply <new|deleted|renamed|transferred>-class migration to class <X>` — CF replays the full migrations log on every push and notices the tag is gone.
12
+
13
+ Pre-fix, the compiler regenerated the `[[migrations]]` blocks from scratch on every compile, emitting only entries for the *current* `durableObjects` bindings. Any historical lifecycle events the user had hand-maintained — `deleted_classes`, `renamed_classes`, `transferred_classes` — were silently dropped and the deploy then broke. AttendVIP hit this first: a `qb-do-deleted-legacy-notes-2026-05-05` deletion entry got dropped, and the next deploy tried to re-apply `qb-do-Notepad`'s `new_sqlite_classes` against the existing class.
14
+
15
+ The fix adds a new config slot — `bindings.durableObjectMigrations` — for historical entries that survive recompiles. Declared entries are emitted FIRST in the generated `wrangler.toml`'s migrations list (preserving chronological order), then the auto-generated current-class creation entries follow, deduplicated by tag so an explicit user entry wins over the auto-emit.
16
+
17
+ ```ts
18
+ // quickback.config.ts
19
+ bindings: {
20
+ durableObjects: [
21
+ { name: 'NOTEPAD', className: 'Notepad', from: 'lib/Notepad' },
22
+ ],
23
+ durableObjectMigrations: [
24
+ // Carry forward across recompiles — Cloudflare's migration list is append-only.
25
+ {
26
+ tag: 'qb-do-deleted-legacy-notes-2026-05-05',
27
+ deletedClasses: ['LegacyNotes'],
28
+ },
29
+ ],
30
+ }
31
+ ```
32
+
33
+ All four lifecycle shapes are supported: `newClasses` / `newSqliteClasses` (creations), `deletedClasses` (removals), `renamedClasses` (`{ from, to }` inline-table-array), `transferredClasses` (`{ from, from_script, to }` for moves between workers). The user-declared entry can also override the auto-emit by reusing the same tag — useful when a DO started life as KV-backed before SQLite-DOs existed.
34
+
35
+ This is a config-side fix, not a wrangler.toml-merging one — Quickback doesn't read your existing `wrangler.toml`. The discipline is the same as for any append-only log: declare lifecycle events as you make them. Auto-detection of removed classes from the schema diff is on the roadmap; for now the compiler trusts your declaration.
36
+
37
+ 7 new tests covering deletion, rename, transfer, multi-entry ordering, override-via-same-tag, no-history bit-identical output, and the historical-only-no-current-DOs edge case.
38
+
39
+ ---
40
+
41
+ ## v0.14.1 — May 7, 2026
42
+
43
+ ### Bulk action variants now appear in `openapi.json`
44
+
45
+ Record-based actions with `bulkVariant: true` (introduced in v0.14.0) generate a working `POST /<base>/batch/<actionName>` route at runtime, but the OpenAPI generator wasn't aware of them — so the bulk endpoints were invisible to typed-client codegen (`api-types.gen.ts`) and to MCP-driven agents discovering operations from the spec. AttendVIP's v0.14.0 rollout (seven actions with `bulkVariant: true`: `approve`, `checkIn`, `checkOut`, `setVisibility`, `cancelInvite`, `sendInvite`, `sessionApprove`) found this within hours of shipping.
46
+
47
+ The OpenAPI generator now emits each bulk variant as a sibling operation to its per-record action, with the documented request shape (`{ ids: string[], input, failFast? }`), correct 200 / 207 / 400 responses, an `x-bulk-variant: true` marker, and a separate `<resource><Action>Bulk` `operationId` so client codegen can distinguish single from bulk. The fix also threads `bulkVariant` through `getAllActions` so any other downstream consumer of the action registry sees the flag — previously the parser captured it but the spec-emit path silently dropped it.
48
+
49
+ No changes required in user code. Re-running `quickback compile` regenerates `openapi.json` with both routes per `bulkVariant: true` action; downstream `api-types.gen.ts` builds pick up the new operations on the next codegen run.
50
+
51
+ ### Cross-tenant "my events" pattern documented with a worked example
52
+
53
+ The v0.14.0 docs noted that relationship-roles do **not** solve cross-tenant aggregation ("a guest's view of events across all tenants they were invited to") and pointed at function-form access as the workaround, but didn't show what that looked like in practice. The access docs now carry a full standalone-action example for `GET /my-events` — the canonical attendee-dashboard pattern — including the two security guardrails (always filter by `ctx.userId`; the action takes responsibility for soft-delete and other invariants the firewall would otherwise apply). Standalone actions are already mandatorily audit-logged in the runtime, so the cross-tenant traversal is recorded automatically.
54
+
55
+ See [Access → Cross-tenant "my events" dashboards](/compiler/definitions/access#cross-tenant-my-events-dashboards-are-not-this).
56
+
57
+ ---
58
+
59
+ ## v0.14.0 — May 7, 2026
60
+
61
+ ### Relationship-based authorization roles
62
+
63
+ Quickback's role system now supports a third kind of role beyond Better Auth org membership and the four pseudo-roles (`PUBLIC`/`AUTHENTICATED`/`USER`/`ADMIN`): **relationship-roles** that bind to a domain-table membership ("user is a confirmed guest of this event") rather than an org/admin gate. The original ask was a B2B event-management app where logged-in users who aren't team members but ARE confirmed guests of an event need to see that event's sessions, pages, and tracks — same data, different access lane. The old workarounds (function-form access, hand-written actions, `firewall: { exception: true }`) all gave up some combination of OpenAPI/MCP visibility, CRUD code generation, or tenant safety.
64
+
65
+ Declare the relationship once in `quickback.config.ts`, then reference it from `firewall:` or `access.roles:`:
66
+
67
+ ```ts
68
+ // quickback.config.ts
69
+ authz: {
70
+ relationships: {
71
+ guestOf: {
72
+ from: 'event_guests', // relationship table
73
+ subject: { column: 'userId', equals: 'ctx.userId' }, // caller side
74
+ resource: { column: 'eventId' }, // resource side
75
+ where: { status: 'confirmed' }, // optional row filter
76
+ },
77
+ },
78
+ roles: {
79
+ guest: { via: 'guestOf' },
80
+ eventStaff: {
81
+ or: [{ via: 'guestOf' }, { roles: ['admin', 'owner'] }],
82
+ },
83
+ },
84
+ }
85
+
86
+ // features/sessions/sessions.ts
87
+ firewall: [
88
+ { field: 'organizationId', equals: 'ctx.activeOrgId' },
89
+ { field: 'eventId', via: 'guestOf' }, // ← row scoping
90
+ ],
91
+ read: { access: { roles: ['admin', 'member', 'guest'] } }, // ← OR-composed
92
+ crud: {
93
+ create: { access: { roles: ['admin', 'guest'] } }, // inline async lookup
94
+ update: { access: { roles: ['admin'] } },
95
+ }
96
+ ```
97
+
98
+ The compiler emits an inline Drizzle subquery against the relationship table and AND-composes it as the outermost firewall clause. The relationship table's own `buildFirewallConditions(ctx)` is called inside the subquery so soft-delete and tenant scope on the relationship row are always honored — soft-deleting an `event_guests` row revokes access immediately. Anonymous callers fail closed (the subquery short-circuits to `WHERE 1 = 0` when `ctx.userId` is null). Cross-tenant grants are impossible because the resource's tenant filter sits as the outermost AND, never folded into a role OR. See [Firewall → Relationship-based scoping](/compiler/definitions/firewall#relationship-based-scoping-via) and [Access → Relationship-based authorization](/compiler/definitions/access#relationship-based-authorization).
99
+
100
+ What works in v0.14.0:
101
+
102
+ | Surface | Status |
103
+ |---|---|
104
+ | `firewall: [{ field, via }]` row-level scoping | Full |
105
+ | `crud.<op>.access` `roles: ['guest']` (inline emission) | Full |
106
+ | `read.access` and `read.views.*.access` | Full |
107
+ | `masking.<f>.show` `roles: ['guest']` | Compile-refused (workaround pointer) |
108
+ | `actions.<n>.access` `roles: ['guest']` | Compile-refused (workaround pointer) |
109
+
110
+ The runtime evaluator fails closed on relationship arms regardless of which surface you hit, so silent grants are impossible everywhere. The two refused surfaces have clear compile-time errors pointing to the working pattern (gate the row at the firewall layer with `via:`, gate the role at the access layer with BA roles).
111
+
112
+ Compile-time refusals also catch: unknown `via:` reference, cycles in role composition (`a → b → a`), reserved role-name shadowing (auth-provider-derived only — `guest`/`speaker`/`attendee` are free; `admin`/`owner`/`member` are reserved when the BA org plugin is on), unknown relationship `from` table, resource missing the `resource.column`, relationship table with `firewall: { exception: true }` (would let cross-tenant grants slip through), `lowering: 'session'` (reserved for v2 — staleness/invalidation ergonomics not yet shipped), and `+` hierarchy on relationship-roles (terminal, like pseudo-roles).
113
+
114
+ Cross-tenant "my events" dashboards (a logged-in user wants `GET /my-events` returning events they're a guest of *across all tenants*) are **not** solved by relationship-roles — the tenant firewall stays the outermost AND. For that pattern, use a user-scoped firewall (`firewall: { owner: { column: 'userId' } }`) or function-form access on a dedicated route. Documented prominently in [access.mdx](/compiler/definitions/access#cross-tenant-my-events-dashboards-are-not-this) so users don't reach for relationship-roles first and get confused.
115
+
116
+ Roadmap: `lowering: 'session'` ergonomics, inline relationship emission for `actions.access` (needs `relationshipBindings` design), async/batched mask functions for `masking.show`. The schema slots are reserved so v2 lands non-breaking.
117
+
118
+ ### Bulk variants of record-based actions
119
+
120
+ Record-based actions can now opt into an auto-generated bulk route alongside the per-record route. Set `bulkVariant: true` on a `defineAction({...})` and the compiler emits `POST /:resource/batch/{action}` that loops the same access + transition + execute pipeline over a `{ ids: [...], input, failFast? }` body. The original ask was an event-management UX where every domain bulk operation (approve N guests, rescind N invites, advance N applications) became a hand-written standalone action that re-implemented a per-record action's transition + execute logic in a `for` loop — `PATCH /:resource/batch` couldn't do it because state lives on a protected field, which is the right call for safety.
121
+
122
+ ```ts
123
+ // features/applications/actions/advance.ts
124
+ export default defineAction({
125
+ description: "Move an application forward in the pipeline.",
126
+ input: z.object({ nextStatus: z.enum(["screening", "interview", "offer"]) }),
127
+ access: { roles: ["owner", "admin"] },
128
+ bulkVariant: true, // ← opt-in
129
+ transition: { field: "status", via: "nextStatus", fromTo: { /* ... */ } },
130
+ async execute({ db, record, input, whereTransition }) {
131
+ // exact same body as before — runs once per id
132
+ },
133
+ });
134
+ ```
135
+
136
+ Per-record outcomes return as 207 Multi-Status with the same `{ success, errors, meta }` shape as `PATCH /batch`. Each id flows through the firewall fetch, the per-record `evaluateAccessReason` split (403 role / 409 record-precondition), the transition pre-check, and the same `whereTransition` factory the single-record route uses — so a stale-state record fails for that id alone, not the whole batch. `failFast: true` aborts on the first failure and (on Postgres / Supabase / Neon / libsql / sqlite drivers) wraps the loop in `db.transaction()` so prior writes roll back; D1 is documented as fail-fast-without-rollback because it has no `db.transaction`.
137
+
138
+ Compile-time refusals: `bulkVariant: true` is rejected on standalone actions (no record context to loop over) and on actions that declare `unsafe` (cross-tenant per-record audit not yet wired). Method is forced to POST regardless of the action's `method` setting — the one-row-to-many-rows asymmetry makes inheriting GET/DELETE confusing. Max batch size is 100 ids per request, mirroring the CRUD batch endpoints. See [Actions → Bulk variant](/compiler/definitions/actions#bulk-variant).
139
+
140
+ ### Aggregations on read views
141
+
142
+ Read views can now declare pre-computed metrics that surface on the response next to the row payload, without a custom standalone action. Every dashboard tile that previously turned into a standalone action just for "count of X grouped by Y" now lives in the same view config that drives the rows.
143
+
144
+ ```ts
145
+ read: {
146
+ views: {
147
+ pipeline: {
148
+ fields: ["id", "jobId", "candidateId", "status", "appliedAt"],
149
+ aggregations: {
150
+ totalApplications: { fn: "count" },
151
+ byStatus: { fn: "groupBy", field: "status" },
152
+ },
153
+ },
154
+ },
155
+ }
156
+ ```
157
+
158
+ Response carries `aggregations: { ... }` alongside `data`:
159
+
160
+ ```json
161
+ {
162
+ "data": [/* paginated rows */],
163
+ "view": "pipeline",
164
+ "pagination": { "count": 50, "page": 1, "pageSize": 50, "hasMore": true },
165
+ "aggregations": {
166
+ "totalApplications": 173,
167
+ "byStatus": { "applied": 102, "screening": 41, "interview": 18, "offer": 7, "rejected": 5 }
168
+ }
169
+ }
170
+ ```
171
+
172
+ Aggregations always run over the **same firewalled, filtered set** as the row query — pagination is intentionally ignored, so `?status=applied&limit=10` returns the 10 paged rows AND the count over every applied row. Supported `fn`s: `sum`, `avg`, `min`, `max`, `count` (with or without `field` — `COUNT(*)` vs `COUNT(field)`), `count_distinct`, and `groupBy` (returns `{ value: count }`, NULLs bucket as `"(none)"`).
173
+
174
+ Compile-time validation: `field` must reference a real column; `sum`/`avg` require numeric column types; the same masking opt-out gate that governs `query.{filterable, sortable, searchable}` applies to aggregations (a `sum(salary)` leaks structure even when the row payload is redacted); aggregation names cannot collide with the reserved response fields `data`, `pagination`, `view`. No raw SQL `expr:` form in v1 — column references only. See [Views → Aggregations](/compiler/definitions/views#aggregations).
175
+
176
+ ---
177
+
178
+ ## v0.13.5 — May 6, 2026
179
+
180
+ ### Object-form `auth.plugins` no longer crashes the compiler
181
+
182
+ The documented object form for per-plugin config — `plugins: { oauthProvider: {...} }`, `plugins: { organization: { teams: { enabled: true } } }`, etc. (see [Better Auth Plugins → Custom configuration](/stack/auth/plugins#oauth-provider-mcp-ready)) — was rejected by the compiler with `plugins.includes is not a function`. `hasCliAuthRoutes` called `.includes()` directly on `auth.config.plugins` to detect `deviceAuthorization`, and `generateAuthFiles` flattened plugins to a string array before handing them to the better-auth generator, silently dropping every per-plugin user option on the way through.
183
+
184
+ Both paths now run through a shared resolver that preserves the user's input format (object in → object out, array in → array out) and only adds the compiler's auto-included plugins (`organization`, `admin`, `apiKey`, plus `bearer` when `deviceAuthorization` is present) as `true` entries that don't clobber user config. Per-plugin options like `oauthProvider: { scopes: [...] }`, `organization: { teams: { enabled: true } }`, and `deviceAuthorization: { verificationUri: '...' }` now reach the generated `auth.ts` as written.
185
+
186
+ Better Auth's `ac` / `roles` access-control objects (the result of `createAccessControl(...)`) still require a custom `auth.ts` override — they're live runtime values that can't survive the JSON config trip from CLI → compiler. A declarative escape hatch for that is on the roadmap.
187
+
188
+ ### `roles: ["PUBLIC"]` is allowed on writes and actions again
189
+
190
+ v0.10.17 added a compile-time block that rejected `roles: ["PUBLIC"]` on `crud.create` / `crud.update` / `crud.delete` and on every action. The intent — "anonymous mutations are usually a misconfiguration" — collided with the legitimate use cases the rest of Quickback was built around: Gmail one-click RSVP confirms, public RSVP forms, magic-link redemption, List-Unsubscribe-Post handlers, webhook ingest, captcha-gated contact forms. None of those carry a session, so `AUTHENTICATED` 401s the caller before the handler can validate its own token, and the suggested escape hatch ("custom action that does its own auth + `firewall: { exception: true }`") was itself blocked by the same validator.
191
+
192
+ The block is removed. `PUBLIC` is the explicit, uppercase opt-in for unauthenticated access on every access node — reads, CRUD writes, views, and actions. The compiler trusts the marker; row-level safety comes from firewall, masking, and the action's own token validation. `PUBLIC` actions continue to receive **mandatory audit logging** (IP, input, result, timing) in the runtime regardless. `crud.create`/`update`/`delete` typically pair `roles: ["PUBLIC"]` with `firewall: { exception: true }` on the resource so the row predicate doesn't reject every unauthenticated caller.
193
+
194
+ `USER` and `ADMIN` keep their compile-time prerequisites (firewall must scope by `userId` / admin plugin must be enabled).
195
+
196
+ ---
197
+
7
198
  ## v0.12.0 — May 5, 2026
8
199
 
9
200
  ### Per-room authorization for PartyServer rooms
@@ -682,7 +873,7 @@ for the full reference and migration table.
682
873
  - `crud.list` → [`read.access`](/compiler/definitions/read) (plus `read.pageSize` / `read.maxPageSize`)
683
874
  - `crud.get` → `read.access` (single-record GET inherits automatically; use record-level conditions on `read.access` for differentiated single-record gates)
684
875
  - Top-level `views: {...}` → [`read.views: {...}`](/compiler/definitions/read#views-under-read-views)
685
- - `crud.list.fields` / `crud.get.fields` → declare a named view under `read.views` and call `?view={name}` (or `/views/{name}`)
876
+ - `crud.list.fields` / `crud.get.fields` → declare a named view under `read.views` and call `/views/{name}`
686
877
 
687
878
  **Pre-record access ordering on `/:id`**: handlers now run a role-only
688
879
  access check **before** the firewall query, so a caller without a matching
@@ -107,3 +107,40 @@ Adding the `auth.jwt` block without setting any field is a no-op vs. the 0.10.13
107
107
  - **Pentest engagement / enterprise compliance:** set `expiresIn: 30`. Tokens stay invisible to logged-in users (auto-refreshed every authed call) but stolen-token windows shrink to 30s.
108
108
  - **CLI-heavy / long-running CI tokens:** `expiresIn: 3600` for one-hour bearer tokens. Pair with `issuer` / `audience` if multiple services consume the same JWT.
109
109
  - **Need immediate revocation:** wait for 0.10.15's `revocationCheck: 'kv'`. Or, today, drop TTL to ~30s — same effect with bounded delay.
110
+
111
+ ## `auth.loginUrl` / `auth.profileUrl` — external sign-in for consumer Workers
112
+
113
+ When a Quickback Worker doesn't host its own Account SPA — e.g. an internal-app mesh where one Worker on the parent domain owns identity (`auth.example.com`) and other Workers share cookies — the compiler-emitted CMS access gates need to redirect unauthenticated visitors to the central sign-in surface, not the local `/account/login` (which doesn't exist there).
114
+
115
+ ```ts title="quickback.config.ts"
116
+ export default defineConfig({
117
+ // ...
118
+ auth: {
119
+ loginUrl: 'https://auth.example.com/login',
120
+ profileUrl: 'https://auth.example.com/profile',
121
+ },
122
+ });
123
+ ```
124
+
125
+ Both fields override compiler-emitted browser redirects in the CMS shell:
126
+
127
+ - **Unauthenticated visitor hits a CMS route** → `302 → <loginUrl>?redirect=<original-url>`
128
+ - **Authenticated user fails the `cms.access: 'admin'` role check** → `302 → <profileUrl>`
129
+
130
+ The `?redirect=…` query param is preserved unchanged so the central sign-in surface can bounce the user back after authentication.
131
+
132
+ ### Resolution precedence
133
+
134
+ Most-specific wins:
135
+
136
+ 1. Explicit `auth.loginUrl` / `auth.profileUrl` — the cookie-trusting consumer-Worker case (this section).
137
+ 2. `https://<account.domain>/login` — inferred when this project hosts its own Account SPA on a custom domain.
138
+ 3. `/account/login` — built-in fallback, when neither knob is set.
139
+
140
+ ### Independent from `account.domain`
141
+
142
+ `account.domain` does *two* things: redirect targets *and* hostname-based asset routing for an Account SPA hosted by this project. Consumer Workers don't host Account at all — they only need the URL. `auth.loginUrl` is a redirect-target string with no routing side effects, which is why it's a separate knob.
143
+
144
+ ### When both are set
145
+
146
+ Setting `auth.loginUrl` *and* `account.domain` is legal — the explicit override beats the inferred URL at the redirect site, while `account.domain` still drives the local Account SPA's hostname routing as usual. Useful when you want to host Account on one custom domain (`account.foo.com`) but redirect *somewhere else* for sign-in (e.g. an SSO surface at `auth.foo.com`).
@@ -135,7 +135,7 @@ Quickback ships four UPPERCASE role markers that are **not backed by a Better Au
135
135
 
136
136
  | Role | Auth gate | Compile-time requirement | Runtime check |
137
137
  |------|-----------|-------------------------|---------------|
138
- | `PUBLIC` | bypassed | **read-only** — rejected on `crud.create`/`update`/`delete` and on actions | always passes (auth skipped) |
138
+ | `PUBLIC` | bypassed | none — explicit opt-in for unauthenticated access | always passes (auth skipped) |
139
139
  | `AUTHENTICATED` | required | none | `ctx.authenticated === true` |
140
140
  | `USER` | required | resource firewall **must** scope by `userId` | `ctx.authenticated` AND (`ctx.userRole` is unset OR `ctx.userRole === "user"`) |
141
141
  | `ADMIN` | required | Better Auth admin plugin **must** be enabled | `ctx.authenticated && ctx.userRole === "admin"` |
@@ -152,7 +152,7 @@ access: { roles: ["PUBLIC"] }
152
152
 
153
153
  **Important:**
154
154
  - `PUBLIC` skips authentication and role checks — anyone can call the endpoint
155
- - **`PUBLIC` is read-only.** It's allowed on `read.access`, `crud.list`, `crud.get`, and `read.views.*`, but **rejected at compile time** on `crud.create`, `crud.update`, `crud.delete`, and on actions. Anonymous writes are almost always a misconfiguration (vibe-coded `/comments` POST endpoints, runaway forms). If you genuinely need an anonymous write surface — public form submission, webhook ingest — declare a custom action that does its own auth (signed payload, captcha, HMAC) and use `firewall: { exception: true }` on the resource.
155
+ - **`PUBLIC` is the explicit, uppercase opt-in for unauthenticated access.** It works on every access node — reads, CRUD writes (`crud.create`/`update`/`delete`), views, and actions. The compiler trusts the marker; row-level safety comes from the firewall, masking, and (for token-gated endpoints like RSVP confirm, magic-link redemption, List-Unsubscribe-Post, webhook ingest) your handler's own validation. Anonymous CRUD endpoints typically pair `roles: ["PUBLIC"]` with `firewall: { exception: true }` on the resource so the row predicate doesn't reject every unauthenticated caller.
156
156
  - **Firewall still applies** — data is scoped by the firewall (organization, owner, team)
157
157
  - Every `PUBLIC` action invocation is **mandatory audit logged** to the security audit table (IP address, input, result, timing)
158
158
  - The wildcard `"*"` is **not supported** — using it throws a compile-time error
@@ -268,6 +268,168 @@ type FieldCondition =
268
268
  | { greaterThanOrEqual: number };
269
269
  ```
270
270
 
271
+ ## Relationship-based authorization
272
+
273
+ Beyond Better Auth roles (org membership, user-table role) and pseudo-roles, Quickback supports **relationship-based authorization roles** — names that bind to a declared relationship between the caller and a resource. Use these when access should follow a domain-table membership ("user is a confirmed guest of this event") rather than an org/admin gate.
274
+
275
+ ### `authz.relationships` { #authz-relationships }
276
+
277
+ Declare relationships once in `quickback.config.ts`:
278
+
279
+ ```typescript
280
+ // quickback.config.ts
281
+ import { defineConfig } from '@quickback/compiler';
282
+
283
+ export default defineConfig({
284
+ // ...providers...
285
+ authz: {
286
+ relationships: {
287
+ guestOf: {
288
+ from: 'event_guests', // table name string
289
+ subject: { column: 'userId', equals: 'ctx.userId' }, // caller side
290
+ resource: { column: 'eventId' }, // resource side
291
+ where: { status: 'confirmed' }, // optional filter
292
+ },
293
+ },
294
+ roles: {
295
+ guest: { via: 'guestOf' },
296
+ // Composite: any guest OR an org owner/admin
297
+ eventStaff: {
298
+ or: [
299
+ { via: 'guestOf' },
300
+ { roles: ['admin', 'owner'] },
301
+ ],
302
+ },
303
+ },
304
+ },
305
+ });
306
+ ```
307
+
308
+ ### Using relationship-roles in resources
309
+
310
+ Resource definitions reference declared roles by name in `roles: [...]` arrays exactly like BA roles or pseudo-roles. The compiler rewrites the access tree at build time so the runtime route does an inline relationship lookup against the declared table.
311
+
312
+ **Today (v1) this works on:**
313
+
314
+ | Surface | Status | Notes |
315
+ |---|---|---|
316
+ | `firewall:` `via:` predicate | ✓ Supported | Subquery composes as outermost AND |
317
+ | `crud.*.access` `roles: ['guest']` | ✓ Supported | Inline async lookup per request |
318
+ | `read.access` / `read.views.*.access` `roles: ['guest']` | ✓ Supported | Same inline path |
319
+ | `masking.<field>.show` `roles: ['guest']` | ⚠ Refused at compile | v1 limitation — async/batched mask functions deferred |
320
+ | `actions.<name>.access` `roles: ['guest']` | ⚠ Refused at compile | v1 limitation — explicit `relationshipBindings` deferred |
321
+
322
+ For the surfaces that are not yet supported, the compiler refuses at build time with a clear error pointing to a workaround. The runtime evaluator fails closed on relationship arms regardless, so silent grants are impossible.
323
+
324
+ ### Recommended pattern: gate at the firewall layer
325
+
326
+ Most of the time, relationship-based row visibility is what you want, and putting it at the **firewall** layer is the cleanest expression. The firewall is row-filter; the access layer is route/role-filter; let each do its job:
327
+
328
+ ```typescript
329
+ // features/sessions/sessions.ts
330
+ firewall: [
331
+ { field: 'organizationId', equals: 'ctx.activeOrgId' },
332
+ { field: 'eventId', via: 'guestOf' }, // ← row visibility
333
+ ],
334
+ read: {
335
+ access: { roles: ['admin', 'member'] }, // ← who can hit the route
336
+ views: {
337
+ cms: { access: { roles: ['admin', 'member'] }, fields: [...] },
338
+ guest: { access: { roles: ['member', 'admin'] }, fields: [...] },
339
+ },
340
+ },
341
+ ```
342
+
343
+ A guest who's in your org as `member` can hit the endpoint and the firewall filters them down to events they're guests of. Cross-tenant access is impossible because the org filter is the outermost AND.
344
+
345
+ ### Cross-tenant "my events" dashboards are NOT this
346
+
347
+ A common adjacent pattern — "logged-in user wants `GET /my-events` returning events they're a guest of *across all tenants*" — is **not** solved by relationship-roles. The tenant firewall is enforced at the outermost AND, so a guest of an event in another tenant remains correctly blocked.
348
+
349
+ For cross-tenant aggregation, use one of:
350
+
351
+ - **User-scoped firewall**: `firewall: { owner: { column: 'userId' } }` — a flat per-user table.
352
+ - **A standalone action that walks the relationship table itself** — see worked example below.
353
+
354
+ Don't reach for relationship-roles first and then get confused when the tenant firewall blocks. The two patterns serve different problems.
355
+
356
+ #### Worked example: `GET /my-events` standalone action
357
+
358
+ The cleanest expression of the cross-tenant attendee dashboard is a standalone action with a custom path that does its own join against the relationship table. The action is gated by `roles: ['AUTHENTICATED']` (any signed-in user can hit it; per-row scoping is the query itself), and the SQL filters by `ctx.userId` so each caller sees exactly the events they're a guest of:
359
+
360
+ ```ts
361
+ // features/dashboard/actions/myEvents.ts
362
+ import { z } from 'zod';
363
+ import { eq, and, inArray } from 'drizzle-orm';
364
+ import { defineAction } from '../.quickback/define-action';
365
+ import { events } from '../../events/events';
366
+ import { guests } from '../../guests/guests';
367
+
368
+ export default defineAction({
369
+ description: "List events the caller is a confirmed guest of, across all tenants.",
370
+ path: '/my-events',
371
+ method: 'GET',
372
+ input: z.object({}),
373
+ // Any signed-in user. Row visibility comes from the query, not the role.
374
+ access: { roles: ['AUTHENTICATED'] },
375
+ async execute({ db, ctx }) {
376
+ // 1. Find every event the caller has a confirmed guest row for.
377
+ const guestRows = await db
378
+ .select({ eventId: guests.eventId })
379
+ .from(guests)
380
+ .where(
381
+ and(
382
+ eq(guests.userId, ctx.userId!),
383
+ eq(guests.status, 'confirmed'),
384
+ // guests.organizationId is NOT filtered here — that's the whole
385
+ // point of the cross-tenant lane. The relationship row's org is
386
+ // ambient information that this action explicitly traverses.
387
+ )
388
+ );
389
+
390
+ if (guestRows.length === 0) return { events: [] };
391
+
392
+ // 2. Pull the matching events. NOTE: this query also bypasses
393
+ // `events.organizationId` scope — by design — so explicitly filter
394
+ // out soft-deleted rows yourself if your `events` table uses them.
395
+ const eventIds = guestRows.map((r) => r.eventId);
396
+ const rows = await db
397
+ .select()
398
+ .from(events)
399
+ .where(inArray(events.id, eventIds));
400
+
401
+ return { events: rows };
402
+ },
403
+ });
404
+ ```
405
+
406
+ Why this is a standalone action and not a CRUD route:
407
+
408
+ - **Tenant firewall would block it.** The default `firewall: [{ field: 'organizationId', equals: 'ctx.activeOrgId' }]` on `events` is correct for every other read — only the cross-tenant dashboard wants to step outside it, and that's a deliberate, explicit step taken in handler code.
409
+ - **The join is the access control.** A relationship-role at the firewall layer can't express "filter by this user's relationships, ignoring the org context." The handler does that join directly.
410
+ - **Audit-logged automatically.** Standalone actions are mandatorily audit-logged in the runtime — the cross-tenant traversal is recorded with `ctx.userId`, IP, and timing.
411
+
412
+ Two important guardrails when you write one of these:
413
+
414
+ 1. **Always filter by `ctx.userId` in the relationship lookup.** If you accept a `userId` from the request body and trust it, you've built an IDOR. The example above uses `ctx.userId!` directly so the only events returned are the caller's.
415
+ 2. **You take responsibility for soft-delete and other invariants the firewall would otherwise apply.** Add the `deletedAt` filter, status checks, and any other row-level predicates by hand. The action is OUTSIDE the firewall pipeline by design — the cost is that you can't lean on the auto-applied predicates.
416
+
417
+ If you find yourself writing more than one of these per project, that's usually a signal to revisit the schema (could a user-owned `userEvents` materialized view replace the join?) rather than a sign Quickback should ship a higher-level abstraction. Cross-tenant lanes are intentionally explicit.
418
+
419
+ ### Compile-time refusals (consolidated)
420
+
421
+ The validator and resolver reject:
422
+
423
+ - Unknown key in `authz` block (typo guard — `realtionships` would otherwise silently produce a permanently-denied role).
424
+ - Reserved role-name (auth-provider-derived). Names like `guest`, `speaker`, `attendee` are free; `admin`/`owner`/`member` are reserved when the BA org plugin is on.
425
+ - Cycle in role composition (`a → b → a`).
426
+ - Relationship `from` references unknown table.
427
+ - Relationship-role used on a resource missing the `resource.column`.
428
+ - Relationship table with `firewall: { exception: true }` (would let cross-tenant grants slip through).
429
+ - `lowering: 'session'` (reserved for v2 — staleness/invalidation ergonomics not yet shipped).
430
+ - `+` hierarchy suffix on a relationship-role name (terminal, like pseudo-roles).
431
+ - Relationship-roles in `masking.show` / `actions.access` (deferred surfaces — see the table above).
432
+
271
433
  ## Read & CRUD Configuration
272
434
 
273
435
  Reads (`GET /` and `GET /:id`) live under `read:`; mutations live under `crud:`. See [Read](/compiler/definitions/read) for the full read pipeline reference.