better-supabase 0.32.0 → 0.34.0
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 +11 -10
- package/codemods/0.32.json +31 -0
- package/dist/{adapter-CPPN80mx.js → adapter-CWzyKepA.js} +45 -16
- package/dist/{agents-BEiBtYmh.d.ts → agents-DXiOPB3V.d.ts} +4 -4
- package/dist/{ai-cache-FMYzw7lW.d.ts → ai-cache-CLiAXCPH.d.ts} +4 -4
- package/dist/{ai-chat-B_P--Ie2.d.ts → ai-chat-DlcBdOhJ.d.ts} +4 -4
- package/dist/{ai-schedules-D_q1iclL.d.ts → ai-schedules-Drx2KRTn.d.ts} +5 -5
- package/dist/ai-sdk/agents/index.d.ts +6 -6
- package/dist/ai-sdk/batches/index.d.ts +3 -3
- package/dist/ai-sdk/cache/index.d.ts +1 -1
- package/dist/ai-sdk/chat/index.d.ts +2 -2
- package/dist/ai-sdk/embeddings/index.d.ts +2 -2
- package/dist/ai-sdk/files/index.d.ts +1 -1
- package/dist/ai-sdk/index.d.ts +5 -5
- package/dist/ai-sdk/mcp/index.d.ts +3 -3
- package/dist/ai-sdk/memory/index.d.ts +3 -3
- package/dist/ai-sdk/workflow/index.d.ts +3 -3
- package/dist/{api-keys-u2sXB-CZ.d.ts → api-keys-DbIbkGxx.d.ts} +4 -4
- package/dist/{api-CwzVbbw4.d.ts → api-myq2e9t5.d.ts} +5 -6
- package/dist/{app-tables-DomvYx5b.d.ts → app-tables-Don-aNOB.d.ts} +1 -1
- package/dist/{approvals-idpuhILk.d.ts → approvals-DZoGtNFv.d.ts} +5 -5
- package/dist/{assistant-CMKsaeJd.d.ts → assistant-BEbRPjhn.d.ts} +2 -2
- package/dist/astro/index.d.ts +7 -8
- package/dist/astro/index.js +5 -5
- package/dist/{auth-module-CVo86UKh.js → auth-module-CqXdm8qD.js} +1 -1
- package/dist/{authorization-CYu_UKX4.d.ts → authorization-DpVtxuKM.d.ts} +28 -2
- package/dist/{authorization-hooks-CldgvzBZ.d.ts → authorization-hooks-CxwsRnfV.d.ts} +2 -2
- package/dist/{authorizer-D6po_XZA.js → authorizer-BtIPDO-c.js} +33 -10
- package/dist/better-result/index.d.ts +3 -3
- package/dist/{bind-8LYVJE5W.d.ts → bind-BA05aoY9.d.ts} +7 -7
- package/dist/{block-env-BsLgZL2l.d.ts → block-env-UX42PHLP.d.ts} +4 -4
- package/dist/{block-helpers-JxiD1iw4.d.ts → block-helpers-disoUWCp.d.ts} +1 -1
- package/dist/{block-hooks-CJP5kGEa.d.ts → block-hooks-DrA_d1dJ.d.ts} +2 -2
- package/dist/{block-subjects-SyJwfgrX.d.ts → block-subjects-Br2MQNFn.d.ts} +1 -1
- package/dist/block-tables-Bre1zjau.d.ts +34 -0
- package/dist/{block-transport-Bbf1ZZre.d.ts → block-transport-BEtC_Kis.d.ts} +2 -2
- package/dist/blocks/access-requests/index.d.ts +5 -5
- package/dist/blocks/activities/index.d.ts +9 -9
- package/dist/blocks/agents/index.d.ts +4 -4
- package/dist/blocks/ai-cache/index.d.ts +3 -3
- package/dist/blocks/ai-chat/index.d.ts +8 -8
- package/dist/blocks/ai-files/index.d.ts +3 -3
- package/dist/blocks/ai-keys/index.d.ts +4 -4
- package/dist/blocks/ai-schedules/index.d.ts +3 -3
- package/dist/blocks/announcements/index.d.ts +8 -8
- package/dist/blocks/api-keys/index.d.ts +4 -108
- package/dist/blocks/approvals/index.d.ts +4 -4
- package/dist/blocks/assets/index.d.ts +6 -6
- package/dist/blocks/assignment/index.d.ts +7 -7
- package/dist/blocks/attachments/index.d.ts +4 -4
- package/dist/blocks/audit/index.d.ts +13 -13
- package/dist/blocks/automations/index.d.ts +12 -12
- package/dist/blocks/billable-time/index.d.ts +6 -6
- package/dist/blocks/billing/index.d.ts +9 -9
- package/dist/blocks/bookings/index.d.ts +4 -4
- package/dist/blocks/bulk/index.d.ts +4 -4
- package/dist/blocks/calendar/index.d.ts +5 -5
- package/dist/blocks/catalog/index.d.ts +6 -6
- package/dist/blocks/channels/index.d.ts +7 -7
- package/dist/blocks/collections/index.d.ts +6 -6
- package/dist/blocks/comments/index.d.ts +10 -10
- package/dist/blocks/compliance/index.d.ts +5 -5
- package/dist/blocks/connectors/index.d.ts +4 -4
- package/dist/blocks/contacts/index.d.ts +6 -6
- package/dist/blocks/content/index.d.ts +5 -5
- package/dist/blocks/contracts/index.d.ts +6 -6
- package/dist/blocks/courses/index.d.ts +5 -5
- package/dist/blocks/created-by/index.d.ts +2 -2
- package/dist/blocks/custom-fields/index.d.ts +6 -6
- package/dist/blocks/data-lifecycle/index.d.ts +8 -8
- package/dist/blocks/deals/index.d.ts +6 -6
- package/dist/blocks/dispatch/index.d.ts +6 -6
- package/dist/blocks/documents/index.d.ts +4 -4
- package/dist/blocks/domains/index.d.ts +6 -6
- package/dist/blocks/donations/index.d.ts +6 -6
- package/dist/blocks/drive/index.d.ts +6 -6
- package/dist/blocks/drive/index.js +1 -1
- package/dist/blocks/employees/index.d.ts +8 -8
- package/dist/blocks/enrichment/index.d.ts +6 -6
- package/dist/blocks/enrollments/index.d.ts +6 -6
- package/dist/blocks/entitlements/index.d.ts +6 -6
- package/dist/blocks/entitlements/index.js +2 -23
- package/dist/blocks/expenses/index.d.ts +5 -5
- package/dist/blocks/field-history/index.d.ts +4 -4
- package/dist/blocks/flags/index.d.ts +5 -5
- package/dist/blocks/flags/index.js +1 -1
- package/dist/blocks/forecasts/index.d.ts +6 -6
- package/dist/blocks/forms/index.d.ts +6 -6
- package/dist/blocks/goals/index.d.ts +4 -4
- package/dist/blocks/guests/index.d.ts +6 -6
- package/dist/blocks/hiring/index.d.ts +6 -6
- package/dist/blocks/identities/index.d.ts +5 -5
- package/dist/blocks/imports/index.d.ts +5 -5
- package/dist/blocks/inbox/index.d.ts +10 -10
- package/dist/blocks/incidents/index.d.ts +5 -5
- package/dist/blocks/index.d.ts +9 -9
- package/dist/blocks/inventory/index.d.ts +6 -6
- package/dist/blocks/invoices/index.d.ts +8 -8
- package/dist/blocks/knowledge/index.d.ts +3 -3
- package/dist/blocks/lead-scoring/index.d.ts +7 -7
- package/dist/blocks/leases/index.d.ts +6 -6
- package/dist/blocks/leave/index.d.ts +5 -5
- package/dist/blocks/ledger/index.d.ts +6 -6
- package/dist/blocks/mail-sync/index.d.ts +5 -5
- package/dist/blocks/memberships/index.d.ts +2 -2
- package/dist/blocks/memberships/index.js +1 -1
- package/dist/blocks/memory/index.d.ts +4 -4
- package/dist/blocks/messaging/index.d.ts +11 -11
- package/dist/blocks/metrics/index.d.ts +6 -6
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +6 -6
- package/dist/blocks/notifications/index.d.ts +11 -11
- package/dist/blocks/numbering/index.d.ts +4 -4
- package/dist/blocks/oauth-server/index.d.ts +5 -5
- package/dist/blocks/onboarding/index.d.ts +5 -5
- package/dist/blocks/orders/index.d.ts +7 -7
- package/dist/blocks/organizations/index.d.ts +8 -8
- package/dist/blocks/organizations/index.js +1 -1
- package/dist/blocks/outbox/index.d.ts +4 -4
- package/dist/blocks/passes/index.d.ts +8 -8
- package/dist/blocks/permissions/index.d.ts +12 -7
- package/dist/blocks/permissions/index.js +6 -6
- package/dist/blocks/pipelines/index.d.ts +6 -6
- package/dist/blocks/posts/index.d.ts +5 -5
- package/dist/blocks/profiles/index.d.ts +4 -4
- package/dist/blocks/promotions/index.d.ts +5 -5
- package/dist/blocks/push/index.d.ts +7 -7
- package/dist/blocks/queue/index.d.ts +6 -6
- package/dist/blocks/queue/index.js +2 -2
- package/dist/blocks/quotes/index.d.ts +8 -8
- package/dist/blocks/rank/index.d.ts +4 -4
- package/dist/blocks/reactions/index.d.ts +9 -9
- package/dist/blocks/relations/index.d.ts +7 -7
- package/dist/blocks/reminders/index.d.ts +8 -8
- package/dist/blocks/reviews/index.d.ts +5 -5
- package/dist/blocks/saved-views/index.d.ts +6 -6
- package/dist/blocks/scores/index.d.ts +5 -5
- package/dist/blocks/search/index.d.ts +7 -7
- package/dist/blocks/security-events/index.d.ts +7 -7
- package/dist/blocks/segments/index.d.ts +7 -7
- package/dist/blocks/sequences/index.d.ts +6 -6
- package/dist/blocks/service-accounts/index.d.ts +5 -5
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +6 -6
- package/dist/blocks/share-links/index.d.ts +5 -5
- package/dist/blocks/shipments/index.d.ts +6 -6
- package/dist/blocks/signatures/index.d.ts +5 -5
- package/dist/blocks/signing-keys/index.d.ts +4 -4
- package/dist/blocks/sla/index.d.ts +7 -7
- package/dist/blocks/sso/index.d.ts +6 -6
- package/dist/blocks/state-machine/index.d.ts +5 -5
- package/dist/blocks/subjects/index.d.ts +6 -6
- package/dist/blocks/tags/index.d.ts +6 -6
- package/dist/blocks/tasks/index.d.ts +9 -9
- package/dist/blocks/teams/index.d.ts +4 -4
- package/dist/blocks/templates/index.d.ts +7 -7
- package/dist/blocks/time-tracking/index.d.ts +7 -7
- package/dist/blocks/timeline/index.d.ts +8 -8
- package/dist/blocks/trash/index.d.ts +6 -6
- package/dist/blocks/undo/index.d.ts +4 -4
- package/dist/blocks/updated-at/index.d.ts +2 -2
- package/dist/blocks/usage/index.d.ts +4 -4
- package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
- package/dist/blocks/versions/index.d.ts +6 -6
- package/dist/blocks/waitlist/index.d.ts +5 -5
- package/dist/blocks/webhooks/index.d.ts +13 -13
- package/dist/blocks/workflow-editor/index.d.ts +9 -9
- package/dist/blocks/workflow-editor/index.js +2 -1
- package/dist/blocks/workflows/index.d.ts +7 -7
- package/dist/{bookings-DG443336.d.ts → bookings-Br0VXzaf.d.ts} +3 -3
- package/dist/{bucket-Clq5xINQ.d.ts → bucket-DvG66r5G.d.ts} +1 -1
- package/dist/chat-sdk/index.d.ts +6 -6
- package/dist/claim-names-BKig1LOk.js +24 -0
- package/dist/claims/index.d.ts +8 -0
- package/dist/claims/index.js +8 -0
- package/dist/{claims-DRmafYVK.js → claims-CqTr_N1n.js} +13 -5
- package/dist/cli/add-C13ZqJ_N.js +1 -0
- package/dist/cli/{add-fzRPyIED.js → add-DoEtJhZG.js} +3 -2
- package/dist/cli/{add-ChoHyBhz.js → add-THXE7juv.js} +11 -11
- package/dist/cli/{app-table-files-C0OtdUVu.js → app-table-files-BqLd5TuX.js} +3 -3
- package/dist/cli/{providers-DpfoF3VC.js → authorization-DJkkOjjG.js} +25 -93
- package/dist/cli/{backfill-Dq2XMXf9.js → backfill-D-2W0fNT.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-CCzp0eAH.js → blocks-BVU_FoLo.js} +1 -1
- package/dist/cli/{blocks-DVhJOzFj.js → blocks-XwUHeyUH.js} +1 -1
- package/dist/cli/{cache-CoC-1i1O.js → cache-D4nwCBXc.js} +1 -1
- package/dist/cli/{codemod-pyf6HmS9.js → codemod-Dh4lf_k4.js} +5 -4
- package/dist/cli/{config-D0m2rQqk.js → config-CrwCec-B.js} +1 -1
- package/dist/cli/{config-Dyl3iX3u.js → config-DrrkMihk.js} +1 -0
- package/dist/cli/{content-mapper-ChSVT9Tq.js → content-mapper-CwFH_PEn.js} +2 -2
- package/dist/cli/{db-dFzhcozO.js → db-Diy1OebO.js} +2 -2
- package/dist/cli/{doctor-BKZsztFV.js → doctor-CyAMbZ_s.js} +59 -19
- package/dist/cli/{gen-BN_eh6rE.js → gen-EAUNnUY7.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-CaDDt8F6.js → init-BRmmmGHJ.js} +9 -9
- package/dist/cli/{live-KU41LMGE.js → live-CV9mn-xC.js} +2 -2
- package/dist/cli/{mcp-C_m-TpLJ.js → mcp-CnaxcLWa.js} +2 -2
- package/dist/cli/{metadata-Bq4ra7zo.js → metadata-CFQGBR5E.js} +3 -3
- package/dist/cli/{migrate-DHG2Qz_K.js → migrate-z5oHDGNs.js} +1 -1
- package/dist/cli/{migration-safety-STVbiKhz.js → migration-safety-BtAPMEZa.js} +2 -2
- package/dist/cli/{migrations-O1QZoMiH.js → migrations-CNa62JSi.js} +2 -2
- package/dist/cli/{module-migration-DB9ntWM-.js → module-migration-CKJ8kRm1.js} +2 -2
- package/dist/cli/{powersync-CN3QPF2K.js → powersync-BgoAWeRT.js} +3 -3
- package/dist/cli/powersync-DoCruiOt.js +1 -0
- package/dist/cli/{print-DG7TRCi8.js → print-CoqKHoy0.js} +2 -2
- package/dist/cli/providers-CfbFxUOQ.js +99 -0
- package/dist/cli/{prune-workflows-DcNJUS1m.js → prune-workflows-BigCoXLw.js} +3 -3
- package/dist/cli/{remove-BpfYqP45.js → remove-C9zwn-Kk.js} +5 -5
- package/dist/cli/{render-Q7jnLn_C.js → render-DQCU_kBW.js} +7 -4
- package/dist/cli/{run-9NfabanB.js → run-CVaBuT18.js} +29 -29
- package/dist/cli/{run-D6K-qQIX.js → run-DOD00FFl.js} +9 -8
- package/dist/cli/{seed-B4H0Lco9.js → seed-BpaqqyO8.js} +2 -2
- package/dist/cli/seed-ByLneY1H.js +1 -0
- package/dist/cli/{shared-PrvYREVy.js → shared-COtj7l3r.js} +1 -1
- package/dist/cli/{snapshot-UfJsqfys.js → snapshot-BvlEmTB0.js} +3 -3
- package/dist/cli/{source-F3YTVvFo.js → source-BhZRCitG.js} +1 -1
- package/dist/cli/{source-args-DJMrW_jW.js → source-args-Bz5QQne2.js} +1 -1
- package/dist/cli/{spec-HQOBVbEO.js → spec-Bo2wIViH.js} +1 -1
- package/dist/cli/{spec-DsLQuJKp.js → spec-DsMWuJLv.js} +2 -2
- package/dist/cli/{sql-layout-CZ66pY8j.js → sql-layout-CA7xgRjR.js} +2 -2
- package/dist/cli/{sync-B12wbtFd.js → sync-D9xSGdzO.js} +4 -4
- package/dist/cli/{upgrade-C20z49De.js → upgrade-XK_CQKVJ.js} +2 -2
- package/dist/cli/{upgrade-AgUXFDo6.js → upgrade-Ykf0LLEB.js} +5 -5
- package/dist/cli/{version-DEUWW8cv.js → version-Dfdz7KSh.js} +1 -1
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +1 -1
- package/dist/client/native/index.d.ts +5 -5
- package/dist/client/native/index.js +1 -1
- package/dist/{client-BLor58Je.js → client-Bky2z09B.js} +1 -1
- package/dist/{cloud-event-bcaMqEbN.d.ts → cloud-event-DXWmXrus.d.ts} +1 -1
- package/dist/{compiler-CWishtY2.d.ts → compiler-qlXlokKn.d.ts} +2 -2
- package/dist/{composite-ClLWZIwX.d.ts → composite-CIxjVcL1.d.ts} +7 -7
- package/dist/{composite-BZMkWNOQ.js → composite-D2JnIiHt.js} +2 -2
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.js +2 -2
- package/dist/{config-BhExAhNK.js → config-Bu6pwqcO.js} +1 -1
- package/dist/{connectors-BImAu75R.d.ts → connectors-Cf2LeAuZ.d.ts} +4 -4
- package/dist/{context-DcxfrCml.d.ts → context-BGC0J3t9.d.ts} +15 -3
- package/dist/contract/index.d.ts +16 -0
- package/dist/contract/index.js +0 -0
- package/dist/{controller-D_UJBaEU.d.ts → controller-CQrkLoRX.d.ts} +1 -1
- package/dist/{conversion-7U1WeLxK.d.ts → conversion-C9rndpEI.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +1 -1
- package/dist/create/lite/index.d.ts +4 -4
- package/dist/create/lite/index.js +1 -1
- package/dist/credentials/index.d.ts +4 -4
- package/dist/{data-engine-B-D6bdyx.d.ts → data-engine-CMENsp3d.d.ts} +1 -1
- package/dist/{define-3RbqoF1S.d.ts → define-ITQA71fw.d.ts} +5 -5
- package/dist/{define-block-B_i9VPcc.d.ts → define-block-COmMkx2x.d.ts} +12 -12
- package/dist/{delegation-BRHHXERz.js → delegation-C2rLpkHO.js} +2 -7
- package/dist/{documents-6ov2gWh3.d.ts → documents-DeZw83ue.d.ts} +3 -3
- package/dist/edge/index.d.ts +13 -13
- package/dist/edge/index.js +9 -9
- package/dist/elysia/index.d.ts +1 -1
- package/dist/elysia/index.js +1 -1
- package/dist/{embeddings-K0lH--nt.d.ts → embeddings-rVR2AKVz.d.ts} +1 -1
- package/dist/{ended-CCoE7XXY.d.ts → ended-NC_ZesY4.d.ts} +2 -2
- package/dist/{entitlements-XwpuBbKN.d.ts → entitlements-BOWTZaRf.d.ts} +21 -3
- package/dist/entitlements-Dydkg-TV.js +47 -0
- package/dist/{envelope-DAtaFJue.js → envelope-CapD-JtH.js} +3 -2
- package/dist/eve/index.d.ts +9 -9
- package/dist/eve/index.js +2 -2
- package/dist/{eve-Cf-QRGij.d.ts → eve-DIKjuPp5.d.ts} +2 -2
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-CfDdOwqg.d.ts → events-DVt3Z9hw.d.ts} +1 -1
- package/dist/{executor-ynEwaUZy.d.ts → executor-CFmee_nV.d.ts} +1 -1
- package/dist/{executor-CAhykadW.d.ts → executor-CHnoKOxk.d.ts} +4 -4
- package/dist/{executor-CbDX34I9.d.ts → executor-DqNRrFxx.d.ts} +1 -1
- package/dist/expo/index.d.ts +4 -4
- package/dist/expo/index.js +3 -3
- package/dist/{extension-LgaDPMJs.js → extension-Z8Pe7fXA.js} +1 -1
- package/dist/{field-errors-tQr-anYL.d.ts → field-errors-DxPZYw2m.d.ts} +10 -10
- package/dist/{fields-AKKMirg_.d.ts → fields-CAVk9dxX.d.ts} +1 -1
- package/dist/{filter-evaluate-Bhq99aEN.d.ts → filter-evaluate-Bz3Fzhz2.d.ts} +1 -1
- package/dist/{filter-query-B7A4l2xn.d.ts → filter-query-DV-x8fio.d.ts} +1 -1
- package/dist/{flags-D0npSE-5.js → flags-0EXDD3Iz.js} +1 -1
- package/dist/{flags-B5B4mkZV.d.ts → flags-6emyAXly.d.ts} +2 -2
- package/dist/flags-sdk/index.d.ts +2 -2
- package/dist/flags-sdk/index.js +1 -1
- package/dist/{framework-CyDn_SXR.d.ts → framework-BFlaPuvv.d.ts} +8 -7
- package/dist/{framework-B1h-uquj.js → framework-ChzJYkJW.js} +3 -2
- package/dist/{gateway-Cg_MgGen.d.ts → gateway-DaekJ_Me.d.ts} +3 -3
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/index.js +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/h3/v1/index.js +1 -1
- package/dist/hono/index.d.ts +14 -13
- package/dist/hono/index.js +9 -8
- package/dist/{inbox-BmSA9K01.d.ts → inbox-DavCzW7b.d.ts} +5 -5
- package/dist/{index-D2BGCjIz.d.ts → index-BIAtapnD.d.ts} +5 -5
- package/dist/index-BfU0KR0X.d.ts +107 -0
- package/dist/{index-xCpjvDVm.d.ts → index-Bhkag9ZE.d.ts} +14 -14
- package/dist/{index-B2871MHr.d.ts → index-Bz0WLuh_.d.ts} +5 -5
- package/dist/{index-D66_dYVi.d.ts → index-CJB50jzQ.d.ts} +4 -4
- package/dist/{index-B5_J-MaK.d.ts → index-CeUwyJ3Z.d.ts} +5 -5
- package/dist/{index-lazpPVr0.d.ts → index-D18su_r5.d.ts} +3 -3
- package/dist/index-DNAkWDXc.d.ts +289 -0
- package/dist/{index-CTpEQvIv.d.ts → index-Dvpu22CJ.d.ts} +1 -1
- package/dist/index-IKfbX_39.d.ts +23 -0
- package/dist/{index-DzBFdI9I.d.ts → index-M1izbwbN.d.ts} +1 -1
- package/dist/{index-CRrBZtKm.d.ts → index-QTZIopQj.d.ts} +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/{kit-CVZDd1X9.js → kit-9pZP5iLU.js} +42 -11
- package/dist/{kit-CJKo0soh.d.ts → kit-OgFOW9rX.d.ts} +4 -4
- package/dist/{knowledge-BUwbpS8I.d.ts → knowledge-BBC2sfAY.d.ts} +5 -5
- package/dist/lint/index.d.ts +1 -1
- package/dist/lint/index.js +1 -1
- package/dist/list/index.d.ts +3 -3
- package/dist/{list-query-CZ-K5aHX.d.ts → list-query-C7V8kUaD.d.ts} +3 -3
- package/dist/mapper/bin.js +6 -6
- package/dist/mcp/index.d.ts +4 -289
- package/dist/mcp/index.js +52 -18
- package/dist/mcp/sdk/index.d.ts +6 -6
- package/dist/mcp/sdk/index.js +2 -2
- package/dist/{messaging-DMhtGxVv.d.ts → messaging-D5z2TR37.d.ts} +4 -4
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/nestjs/index.js +1 -1
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +28 -26
- package/dist/next/index.js +11 -10
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +1 -1
- package/dist/{operations-D51ONRvR.d.ts → operations-BG6prEnh.d.ts} +1 -1
- package/dist/{options-B56njigZ.js → options-CjocPkX1.js} +2 -0
- package/dist/orpc/index.d.ts +8 -8
- package/dist/orpc/index.js +8 -8
- package/dist/otel/index.d.ts +2 -2
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-C44Aa94K.d.ts → outbox-7zgh-7nw.d.ts} +4 -4
- package/dist/{permissions-B9aZZ9LR.js → permissions-BDt27oYF.js} +19 -14
- package/dist/permissions-CoHsUtZS.d.ts +44 -0
- package/dist/{pool-Bji4lnQM.d.ts → pool-D-4HyhuW.d.ts} +3 -3
- package/dist/{ports-C-hdygkZ.js → ports-CmEXVqhg.js} +1 -1
- package/dist/{ports-zFqRNXVJ.d.ts → ports-XvgCe7ey.d.ts} +1 -1
- package/dist/postgres/index.d.ts +4 -4
- package/dist/{postgrest-2WjRrtmX.d.ts → postgrest-DZtM2nIS.d.ts} +1 -1
- package/dist/powersync/index.d.ts +6 -6
- package/dist/preset/index.d.ts +3 -3
- package/dist/{project-oNHntJ6T.js → project-B7nqCzn5.js} +2 -2
- package/dist/{provider-CH8McX3b.d.ts → provider-BI0KC4u5.d.ts} +1 -1
- package/dist/{push-token-a3Ev1U3L.d.ts → push-token-kcc04ZaS.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +8 -8
- package/dist/react/index.js +3 -3
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/native/index.js +1 -1
- package/dist/react/server.d.ts +8 -8
- package/dist/react/server.js +3 -3
- package/dist/react/session.d.ts +2 -2
- package/dist/{react-C40oomj7.js → react-COIov1yC.js} +1 -1
- package/dist/react-router/index.d.ts +6 -7
- package/dist/react-router/index.js +6 -6
- package/dist/realtime/index.d.ts +6 -6
- package/dist/realtime/index.js +1 -1
- package/dist/{record-form-DCIui2Ol.d.ts → record-form-DU2EoVsv.d.ts} +1 -1
- package/dist/{recordings-Dlpq8jUG.d.ts → recordings-D69Va7gP.d.ts} +1 -1
- package/dist/records/index.d.ts +9 -9
- package/dist/{refresh-BK9epzeC.d.ts → refresh-BtbC2rZe.d.ts} +1 -1
- package/dist/{refusal-DhX7Xpfp.js → refusal-5c6UMpUP.js} +3 -3
- package/dist/{refusal-DEuFVi4s.d.ts → refusal-CGi-0Q18.d.ts} +3 -3
- package/dist/{resolve-DVOtYTAc.d.ts → resolve--LfVoOMg.d.ts} +1 -1
- package/dist/{resource-Cn6Bn-_o.js → resource-BbWk4hoP.js} +59 -15
- package/dist/{resource-BfsTJnxZ.d.ts → resource-DWllVW8k.d.ts} +6 -1
- package/dist/{resource-execute-DQRS7PFt.d.ts → resource-execute-DUBYKTYU.d.ts} +2 -2
- package/dist/{resource-types-DF6KDAZM.d.ts → resource-types-RgaljPs0.d.ts} +4 -4
- package/dist/{resources-CeY53FiJ.d.ts → resources-Bki1J4jy.d.ts} +2 -2
- package/dist/{resources-B0Vy7_wv.js → resources-DYSx9NYM.js} +1 -1
- package/dist/{respond-CkwkvFdZ.d.ts → respond-BYOV7KZp.d.ts} +1 -1
- package/dist/{respond-C2qvP1wv.js → respond-DLH4tD2d.js} +1 -1
- package/dist/{sales-lines-Bde9cV5F.d.ts → sales-lines-DuNVoKHA.d.ts} +1 -1
- package/dist/{sandboxes-DDWuD9fh.d.ts → sandboxes-B2hBoBvJ.d.ts} +1 -1
- package/dist/{scores-Bql-ABl0.d.ts → scores-FAORS4qU.d.ts} +5 -5
- package/dist/server/index.d.ts +31 -28
- package/dist/server/index.js +15 -11
- package/dist/{server-types-C3p3jUqr.d.ts → server-types-C2hlvhP4.d.ts} +39 -101
- package/dist/{session-BOch2y2z.d.ts → session-B4VasaAA.d.ts} +6 -6
- package/dist/{session-status-DRBRnZHx.d.ts → session-status-D8CBxCqv.d.ts} +2 -2
- package/dist/{sign-in-BmigClRh.js → sign-in-BMm1xhKq.js} +1 -1
- package/dist/{sign-in-Dxyi4aKu.d.ts → sign-in-CX1a5i2P.d.ts} +3 -34
- package/dist/{sign-in-CXOg2Dwb.js → sign-in-CxdoTEp5.js} +2 -2
- package/dist/{signers-Cz5ZhTHH.d.ts → signers-6ih6i9aq.d.ts} +4 -4
- package/dist/{signing-keys-DS-rIVzz.d.ts → signing-keys-De09WNJ3.d.ts} +2 -2
- package/dist/snapshot-BGsJw9xn.d.ts +83 -0
- package/dist/{view-YnesSUEa.js → snapshot-CVMSyTHH.js} +3 -109
- package/dist/solid/index.d.ts +10 -10
- package/dist/solid/index.js +1 -1
- package/dist/solid-start/index.d.ts +6 -7
- package/dist/solid-start/index.js +5 -5
- package/dist/spec/index.d.ts +2 -2
- package/dist/sql/index.d.ts +6 -5
- package/dist/sql/index.js +2 -2
- package/dist/{sql-BPV51R3A.js → sql-DdtukoIm.js} +405 -187
- package/dist/sqlite/index.d.ts +3 -3
- package/dist/{sso-BEvNf1oW.d.ts → sso-CuzAjsc8.d.ts} +3 -3
- package/dist/ssr/index.d.ts +5 -5
- package/dist/ssr/index.js +1 -1
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +1 -1
- package/dist/streams/index.d.ts +1 -1
- package/dist/{subject-readers-DWkVSbFr.d.ts → subject-readers-BlD8tALG.d.ts} +2 -2
- package/dist/{subjects-vci6Wufh.d.ts → subjects-Bv2dPflD.d.ts} +3 -3
- package/dist/{support-rZbdU35s.d.ts → support-DxYI6sDM.d.ts} +4 -4
- package/dist/{support-view-WY4Y-A40.d.ts → support-view-DSmCett7.d.ts} +1 -1
- package/dist/svelte/index.d.ts +9 -9
- package/dist/svelte/index.js +1 -1
- package/dist/sveltekit/index.d.ts +7 -8
- package/dist/sveltekit/index.js +5 -5
- package/dist/{tags-BVLELhOf.d.ts → tags--k2fbPfO.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +3 -3
- package/dist/tanstack-start/index.d.ts +6 -7
- package/dist/tanstack-start/index.js +5 -5
- package/dist/tenant-Beqd7TTq.js +48 -0
- package/dist/{tenant-RKvGBB-U.d.ts → tenant-DkKbvK5T.d.ts} +4 -5
- package/dist/testing/index.d.ts +71 -32
- package/dist/testing/index.js +136 -16
- package/dist/{timeline-Ck8OFuAN.d.ts → timeline-Bq658xsi.d.ts} +5 -5
- package/dist/{topic-Dr8VYE4D.d.ts → topic-B6zuexk7.d.ts} +5 -5
- package/dist/{topic-BBBCVLyS.js → topic-k17VvXRj.js} +1 -1
- package/dist/{types-Pv5WPfIC.d.ts → types-BBqP9H6w.d.ts} +4 -4
- package/dist/{types-WZUVlTXs.d.ts → types-BkYEUWdz.d.ts} +189 -1
- package/dist/{types-CCmW3MqI.d.ts → types-BvHw2cCS.d.ts} +2 -2
- package/dist/{types-D9FY9qSJ.d.ts → types-C8UyJOPJ.d.ts} +3 -3
- package/dist/{types-CvlJNzX4.d.ts → types-DCoqai8o.d.ts} +4 -4
- package/dist/{types-DWZubmwk.d.ts → types-Dh2OGEW5.d.ts} +10 -10
- package/dist/{types-BiedVwz_.d.ts → types-TH3zlMiM.d.ts} +1 -1
- package/dist/{types-CL-z0A4K.d.ts → types-d0JBRTAg.d.ts} +7 -7
- package/dist/{undo-BdoEJ6Ot.d.ts → undo-22ofP6Zp.d.ts} +2 -2
- package/dist/{usage-D27Uw426.d.ts → usage-CNCT6_3D.d.ts} +4 -4
- package/dist/{vault-Dx0LaNMX.d.ts → vault-yGQD5Rdl.d.ts} +2 -2
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/vercel-sandbox/index.d.ts +2 -2
- package/dist/{verify-DnL0Fgu0.d.ts → verify-BQu3eBNW.d.ts} +2 -2
- package/dist/view-BfEqjZJ_.js +117 -0
- package/dist/{view-DmEZA1fL.d.ts → view-Cy2XxYp1.d.ts} +14 -2
- package/dist/vue/index.d.ts +10 -10
- package/dist/vue/index.js +1 -1
- package/dist/{watch-topic-BB7T05sc.d.ts → watch-topic-YYSVJGDY.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +3 -3
- package/dist/workflow-sdk/builder/index.js +1 -1
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/index.js +1 -1
- package/dist/workflow-sdk/world/index.d.ts +1 -1
- package/dist/{workflow-sdk-D5zRSwxh.js → workflow-sdk-q2jnEaAJ.js} +2 -2
- package/dist/{workflow-sdk-DMpVSMB7.d.ts → workflow-sdk-yIkECybp.d.ts} +3 -3
- package/dist/{workflows-DKTw2PZo.d.ts → workflows-BljkWRxE.d.ts} +3 -3
- package/dist/yjs/index.d.ts +2 -2
- package/dist/yjs/index.js +1 -1
- package/package.json +12 -1
- package/schemas/config-v1.json +8 -0
- package/schemas/doctor-report-v1.json +1 -0
- package/dist/authorizer-AswD5q6g.d.ts +0 -116
- package/dist/cli/add-DlYL-1mF.js +0 -1
- package/dist/cli/powersync-DfeGl5N1.js +0 -1
- package/dist/cli/seed-BIB6-WPa.js +0 -1
- package/dist/tenant-BR7fvPj7.js +0 -26
package/dist/realtime/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { i as realtimeChanges, n as liveQuery, r as liveTopic, t as liveCount }
|
|
|
2
2
|
import { n as watchTopic, t as topicPort } from "../watch-topic-C2KxpeaB.js";
|
|
3
3
|
import { n as relayTopicPort, t as relayRealtimeClient } from "../relay-CllqA-lV.js";
|
|
4
4
|
import { t as subjectReaders } from "../subject-readers-BARV5rNp.js";
|
|
5
|
-
import { n as rowChange, r as rowKeys, t as defineTopic } from "../topic-
|
|
5
|
+
import { n as rowChange, r as rowKeys, t as defineTopic } from "../topic-k17VvXRj.js";
|
|
6
6
|
// src/realtime/subject-presence.ts
|
|
7
7
|
/** The presence topic template; the subjects module's policies authorize it. */
|
|
8
8
|
const SUBJECT_PRESENCE_TEMPLATE = "presence:{subjectType}:{subjectId}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Sn as EntitySchema } from "./define-block-
|
|
1
|
+
import { Sn as EntitySchema } from "./define-block-COmMkx2x.js";
|
|
2
2
|
import { s as FormFieldType } from "./form-definition-BN8shngm.js";
|
|
3
3
|
/** The input a field renders: a forms block field type, or a date and time. */
|
|
4
4
|
type RecordFormInput = FormFieldType | "datetime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { o as AiFile } from "./types-
|
|
2
|
+
import { o as AiFile } from "./types-C8UyJOPJ.js";
|
|
3
3
|
/** The queue a recording's transcription job goes on, with the jobs block. */
|
|
4
4
|
declare const ENGAGEMENT_TRANSCRIBE_QUEUE = "engagements.transcribe";
|
|
5
5
|
/** `pending` until a transcript is saved; `failed` when the transcriber gave up. */
|
package/dist/records/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { b as DbError, t as AsyncResult } from "../result-DTOQRyGY.js";
|
|
2
|
-
import { $ as RecordRef } from "../types-
|
|
3
|
-
import { _n as recordBindingWrite, an as RecordBindingDefinition, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, gn as defineRecordBinding, hn as TimelineItem, in as RecordBindingData, ln as RecordBindingWrite, mn as RecordRowInput, nn as AnyRecordBindingWrite, on as RecordBindingOptions, pn as RecordBindingWrites, rn as RecordBinding, sn as RecordBindingPermissions, tn as AnyRecordBinding, un as RecordBindingWriteInput, vn as recordEventMatches, yn as recordRowInput } from "../define-block-
|
|
4
|
-
import { A as BindingBlocks, B as PermissionFlags, C as defineRecordType, D as recordPermissionKeys, E as recordCan, F as LoadBindingsOptions, H as can, I as LoadedBindings, L as bindingCan, M as BindingName, N as BindingOf, O as recordSubject, P as BindingSource, R as countBinding, S as RecordWriteInput, T as plainData, U as permissionFlags, V as PermissionSet, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, j as BindingCheck, k as recordWriteInput, m as PlainBindings, p as PlainBinding, v as RecordTypePermissions, w as findBindingWrite, x as RecordTypeWriteOutput, y as RecordTypeSpec, z as loadBindings } from "../index-
|
|
5
|
-
import { p as SubscriptionStatus } from "../topic-
|
|
6
|
-
import { n as TopicPort } from "../watch-topic-
|
|
7
|
-
import { n as Controller, t as AuthPort } from "../controller-
|
|
8
|
-
import { a as RecordSummaryOptions, c as Subjects, f as MyWorkKind, i as RecordSummary, n as MyWorkItem, r as MyWorkOptions } from "../subjects-
|
|
9
|
-
import { a as timelineBindings, c as RecordListCells, d as RecordListQuery, f as RecordListRow, h as defineRecordList, i as loadTimeline, l as RecordListColumn, m as RecordListSpec, n as Timeline, o as RecordList, p as RecordListSource, r as TimelineEntry, s as RecordListCell, t as LoadTimelineOptions, u as RecordListPage } from "../timeline-
|
|
10
|
-
import { a as RecordFormOptions, c as recordForm, i as RecordFormInput, n as RecordFormCustomField, o as RecordFormResult, r as RecordFormField, s as RecordFormValues, t as RecordForm } from "../record-form-
|
|
2
|
+
import { $ as RecordRef } from "../types-BkYEUWdz.js";
|
|
3
|
+
import { _n as recordBindingWrite, an as RecordBindingDefinition, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, gn as defineRecordBinding, hn as TimelineItem, in as RecordBindingData, ln as RecordBindingWrite, mn as RecordRowInput, nn as AnyRecordBindingWrite, on as RecordBindingOptions, pn as RecordBindingWrites, rn as RecordBinding, sn as RecordBindingPermissions, tn as AnyRecordBinding, un as RecordBindingWriteInput, vn as recordEventMatches, yn as recordRowInput } from "../define-block-COmMkx2x.js";
|
|
4
|
+
import { A as BindingBlocks, B as PermissionFlags, C as defineRecordType, D as recordPermissionKeys, E as recordCan, F as LoadBindingsOptions, H as can, I as LoadedBindings, L as bindingCan, M as BindingName, N as BindingOf, O as recordSubject, P as BindingSource, R as countBinding, S as RecordWriteInput, T as plainData, U as permissionFlags, V as PermissionSet, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, j as BindingCheck, k as recordWriteInput, m as PlainBindings, p as PlainBinding, v as RecordTypePermissions, w as findBindingWrite, x as RecordTypeWriteOutput, y as RecordTypeSpec, z as loadBindings } from "../index-BIAtapnD.js";
|
|
5
|
+
import { p as SubscriptionStatus } from "../topic-B6zuexk7.js";
|
|
6
|
+
import { n as TopicPort } from "../watch-topic-YYSVJGDY.js";
|
|
7
|
+
import { n as Controller, t as AuthPort } from "../controller-CQrkLoRX.js";
|
|
8
|
+
import { a as RecordSummaryOptions, c as Subjects, f as MyWorkKind, i as RecordSummary, n as MyWorkItem, r as MyWorkOptions } from "../subjects-Bv2dPflD.js";
|
|
9
|
+
import { a as timelineBindings, c as RecordListCells, d as RecordListQuery, f as RecordListRow, h as defineRecordList, i as loadTimeline, l as RecordListColumn, m as RecordListSpec, n as Timeline, o as RecordList, p as RecordListSource, r as TimelineEntry, s as RecordListCell, t as LoadTimelineOptions, u as RecordListPage } from "../timeline-Bq658xsi.js";
|
|
10
|
+
import { a as RecordFormOptions, c as recordForm, i as RecordFormInput, n as RecordFormCustomField, o as RecordFormResult, r as RecordFormField, s as RecordFormValues, t as RecordForm } from "../record-form-DU2EoVsv.js";
|
|
11
11
|
interface RecordControllerOptions<B extends BindingBlocks, N extends BindingName<B>> extends LoadBindingsOptions<B, N> {
|
|
12
12
|
readonly source: BindingSource<B>;
|
|
13
13
|
readonly auth: AuthPort;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as dbErrorOf } from "./errors-B7tCfCvX.js";
|
|
2
2
|
import { o as problemResponse } from "./problem-C0SVHhd3.js";
|
|
3
|
-
import { n as defaultExpose } from "./respond-
|
|
4
|
-
import { i as requireCaller } from "./kit-
|
|
3
|
+
import { n as defaultExpose } from "./respond-DLH4tD2d.js";
|
|
4
|
+
import { i as requireCaller } from "./kit-9pZP5iLU.js";
|
|
5
5
|
// src/server/refusal.ts
|
|
6
6
|
function isAalRefusal(error) {
|
|
7
7
|
return error.kind === "forbidden" && "required" in error && error.required === "aal2";
|
|
@@ -30,7 +30,7 @@ function refusalResponse(error, request, redirects, expose) {
|
|
|
30
30
|
}
|
|
31
31
|
/** The refusal for a caller `options` refuses, or `undefined` to let it through. */
|
|
32
32
|
async function routeRefusal(locals, request, options) {
|
|
33
|
-
const caller = await requireCaller(locals.bsb.auth, options, locals.tenant, options.authorizer, locals);
|
|
33
|
+
const caller = await requireCaller(locals.bsb.auth, options, locals.tenant, options.authorizer, locals, request.method);
|
|
34
34
|
if (!("kind" in caller)) return;
|
|
35
35
|
return refusalResponse(caller, request, options, options.expose ?? defaultExpose());
|
|
36
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { c as ResourceLoaderContext, s as BlockRequireOptions } from "./kit-
|
|
1
|
+
import { Ht as AnyAuthorizer } from "./types-BkYEUWdz.js";
|
|
2
|
+
import { r as AuthState } from "./resolve--LfVoOMg.js";
|
|
3
|
+
import { c as ResourceLoaderContext, s as BlockRequireOptions } from "./kit-OgFOW9rX.js";
|
|
4
4
|
/** Where refused callers go instead of a Problem Details response. */
|
|
5
5
|
interface RefusalRedirects {
|
|
6
6
|
/** Sign-in page for callers without a session; gets `?next=<path>`. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { b as DbError } from "./result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "./standard-DRX6Ch1j.js";
|
|
4
|
-
import { n as AuthOutageEvent, u as RefreshEvent } from "./events-
|
|
4
|
+
import { n as AuthOutageEvent, u as RefreshEvent } from "./events-DVt3Z9hw.js";
|
|
5
5
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
6
6
|
import { t as BetterSupabaseEnv } from "./index-8w4OB5En.js";
|
|
7
7
|
import { CookieOptions } from "@supabase/ssr";
|
|
@@ -4,8 +4,8 @@ import { a as ok, r as err, s as toDbError } from "./result-8xza7w5W.js";
|
|
|
4
4
|
import { n as validate } from "./standard-BD2aOUsf.js";
|
|
5
5
|
import { a as methodNotAllowed } from "./problem-C0SVHhd3.js";
|
|
6
6
|
import { n as matchAction, r as planResource, t as TABLE_VERBS } from "./resource-DQ4kIBpa.js";
|
|
7
|
-
import { n as checkEach, r as checkPermission } from "./authorizer-
|
|
8
|
-
import { a as isResult, o as respond } from "./respond-
|
|
7
|
+
import { a as isRequestMemo, n as checkEach, r as checkPermission } from "./authorizer-BtIPDO-c.js";
|
|
8
|
+
import { a as isResult, o as respond } from "./respond-DLH4tD2d.js";
|
|
9
9
|
// src/server/resource-execute.ts
|
|
10
10
|
async function settled(value) {
|
|
11
11
|
return await value;
|
|
@@ -162,6 +162,12 @@ function actionFits(action, segments) {
|
|
|
162
162
|
return action.segments.length === segments.length && action.segments.every((segment, index) => segment.startsWith("{") ? segments[index] !== "" : segment === segments[index]);
|
|
163
163
|
}
|
|
164
164
|
// src/server/resource.ts
|
|
165
|
+
const READ = { intent: "read" };
|
|
166
|
+
const WRITE = { intent: "write" };
|
|
167
|
+
/** The scope's memo as the authorizer runtime, when the context has one. */
|
|
168
|
+
function runtimeOf(context) {
|
|
169
|
+
return isRequestMemo(context.memo) ? { memo: context.memo } : void 0;
|
|
170
|
+
}
|
|
165
171
|
/**
|
|
166
172
|
* Operations over one table, matching the paths and responses of the API model:
|
|
167
173
|
* `GET/POST /<table>`, `GET/PATCH/DELETE /<table>/{id}` and each action's path.
|
|
@@ -183,19 +189,27 @@ function defineResource(betterSupabase, table, options = {}, authorizer) {
|
|
|
183
189
|
const extra = options.select === void 0 ? {} : { select: options.select };
|
|
184
190
|
const list = options.list;
|
|
185
191
|
const hooks = options.hooks ?? {};
|
|
186
|
-
const resourceOf = (id, row) => ({
|
|
192
|
+
const resourceOf = (id, row, source, change) => ({
|
|
187
193
|
type: table,
|
|
188
194
|
...id === void 0 ? {} : { id: String(id) },
|
|
189
|
-
...isRecord(row) ? {
|
|
195
|
+
...isRecord(row) ? {
|
|
196
|
+
properties: row,
|
|
197
|
+
source
|
|
198
|
+
} : {},
|
|
199
|
+
...change ? { change } : {}
|
|
190
200
|
});
|
|
191
|
-
const permit = (name, db, resource) => {
|
|
201
|
+
const permit = (name, db, resource, purpose) => {
|
|
192
202
|
const permission = plan.permissions[name];
|
|
193
203
|
if (permission === void 0) return ok(void 0);
|
|
204
|
+
const context = contextOf(db);
|
|
205
|
+
const runtime = runtimeOf(context);
|
|
194
206
|
return checkPermission({
|
|
195
207
|
authorizer,
|
|
196
208
|
permission,
|
|
197
209
|
resource,
|
|
198
|
-
context
|
|
210
|
+
context,
|
|
211
|
+
...purpose,
|
|
212
|
+
...runtime ? { runtime } : {}
|
|
199
213
|
});
|
|
200
214
|
};
|
|
201
215
|
const ctxOf = (db, input) => ({
|
|
@@ -229,14 +243,20 @@ function defineResource(betterSupabase, table, options = {}, authorizer) {
|
|
|
229
243
|
authorizer,
|
|
230
244
|
permission,
|
|
231
245
|
resource: { type: table },
|
|
232
|
-
context: contextOf(db)
|
|
246
|
+
context: contextOf(db),
|
|
247
|
+
operation: "list",
|
|
248
|
+
...READ
|
|
233
249
|
});
|
|
234
250
|
if (!denied.ok) return denied;
|
|
235
251
|
}
|
|
236
252
|
const page = result.data;
|
|
237
253
|
if (!isRecord(page) || !Array.isArray(page["items"])) return result;
|
|
238
254
|
const items = page["items"];
|
|
239
|
-
const
|
|
255
|
+
const context = contextOf(db);
|
|
256
|
+
const granted = await checkEach(authorizer, permission, items.map((row) => resourceOf(keyParam && isRecord(row) ? row[keyParam] : void 0, row, "loaded")), context, runtimeOf(context), {
|
|
257
|
+
operation: "list",
|
|
258
|
+
...READ
|
|
259
|
+
});
|
|
240
260
|
return ok({
|
|
241
261
|
...page,
|
|
242
262
|
items: items.filter((_, index) => granted[index])
|
|
@@ -274,7 +294,10 @@ function defineResource(betterSupabase, table, options = {}, authorizer) {
|
|
|
274
294
|
if (!id.ok) return id;
|
|
275
295
|
const row = await settled(repository.get(id.data, extra));
|
|
276
296
|
if (!row.ok) return row;
|
|
277
|
-
const permitted = await permit("get", db, resourceOf(id.data, row.data)
|
|
297
|
+
const permitted = await permit("get", db, resourceOf(id.data, row.data, "loaded"), {
|
|
298
|
+
operation: "get",
|
|
299
|
+
...READ
|
|
300
|
+
});
|
|
278
301
|
if (!permitted.ok) return permitted;
|
|
279
302
|
const allowed = await authorize(ctx, "get", {
|
|
280
303
|
id: id.data,
|
|
@@ -288,7 +311,10 @@ function defineResource(betterSupabase, table, options = {}, authorizer) {
|
|
|
288
311
|
if (!body.ok) return body;
|
|
289
312
|
const data = options.input?.create ? await validate(options.input.create, body.data, "data") : body;
|
|
290
313
|
if (!data.ok) return data;
|
|
291
|
-
const permitted = await permit("create", db, resourceOf(void 0, data.data))
|
|
314
|
+
const permitted = await permit("create", db, resourceOf(void 0, data.data, "input", isRecord(data.data) ? { next: data.data } : void 0), {
|
|
315
|
+
operation: "create",
|
|
316
|
+
...WRITE
|
|
317
|
+
});
|
|
292
318
|
if (!permitted.ok) return permitted;
|
|
293
319
|
const allowed = await authorize(ctx, "create", { data: data.data });
|
|
294
320
|
if (!allowed.ok) return allowed;
|
|
@@ -306,7 +332,13 @@ function defineResource(betterSupabase, table, options = {}, authorizer) {
|
|
|
306
332
|
if (!data.ok) return data;
|
|
307
333
|
const row = await rowFor("update", db, id.data);
|
|
308
334
|
if (!row.ok) return row;
|
|
309
|
-
const permitted = await permit("update", db, resourceOf(id.data, row.data)
|
|
335
|
+
const permitted = await permit("update", db, resourceOf(id.data, row.data, "loaded", isRecord(data.data) ? {
|
|
336
|
+
...isRecord(row.data) ? { current: row.data } : {},
|
|
337
|
+
next: data.data
|
|
338
|
+
} : void 0), {
|
|
339
|
+
operation: "update",
|
|
340
|
+
...WRITE
|
|
341
|
+
});
|
|
310
342
|
if (!permitted.ok) return permitted;
|
|
311
343
|
const target = {
|
|
312
344
|
id: id.data,
|
|
@@ -325,7 +357,10 @@ function defineResource(betterSupabase, table, options = {}, authorizer) {
|
|
|
325
357
|
if (!id.ok) return id;
|
|
326
358
|
const row = await rowFor("delete", db, id.data);
|
|
327
359
|
if (!row.ok) return row;
|
|
328
|
-
const permitted = await permit("delete", db, resourceOf(id.data, row.data)
|
|
360
|
+
const permitted = await permit("delete", db, resourceOf(id.data, row.data, "loaded"), {
|
|
361
|
+
operation: "delete",
|
|
362
|
+
...WRITE
|
|
363
|
+
});
|
|
329
364
|
if (!permitted.ok) return permitted;
|
|
330
365
|
const target = {
|
|
331
366
|
id: id.data,
|
|
@@ -357,7 +392,10 @@ function defineResource(betterSupabase, table, options = {}, authorizer) {
|
|
|
357
392
|
values.push(data.data);
|
|
358
393
|
}
|
|
359
394
|
const data = Array.isArray(input.data) ? values : values[0];
|
|
360
|
-
const permitted = await permit("upsert", db, resourceOf(void 0, data))
|
|
395
|
+
const permitted = await permit("upsert", db, resourceOf(void 0, data, "input", isRecord(data) ? { next: data } : void 0), {
|
|
396
|
+
operation: "create",
|
|
397
|
+
...WRITE
|
|
398
|
+
});
|
|
361
399
|
if (!permitted.ok) return permitted;
|
|
362
400
|
const allowed = await authorize(ctx, "upsert", { data });
|
|
363
401
|
if (!allowed.ok) return allowed;
|
|
@@ -365,7 +403,10 @@ function defineResource(betterSupabase, table, options = {}, authorizer) {
|
|
|
365
403
|
}
|
|
366
404
|
const args = input.data ?? {};
|
|
367
405
|
if (!isRecord(args)) return err(dbError("invalid_input", `Expected an object of ${name} arguments`));
|
|
368
|
-
const permitted = await permit(name, db, { type: table }
|
|
406
|
+
const permitted = await permit(name, db, { type: table }, {
|
|
407
|
+
operation: "list",
|
|
408
|
+
...READ
|
|
409
|
+
});
|
|
369
410
|
if (!permitted.ok) return permitted;
|
|
370
411
|
const allowed = await authorize(ctx, name, { query: args });
|
|
371
412
|
if (!allowed.ok) return allowed;
|
|
@@ -403,7 +444,10 @@ function defineResource(betterSupabase, table, options = {}, authorizer) {
|
|
|
403
444
|
}
|
|
404
445
|
const row = id === void 0 ? ok(void 0) : await rowFor(name, db, id);
|
|
405
446
|
if (!row.ok) return row;
|
|
406
|
-
const permitted = await permit(name, db, resourceOf(id, row.data
|
|
447
|
+
const permitted = await permit(name, db, row.data === void 0 ? resourceOf(id, data, "input") : resourceOf(id, row.data, "loaded"), {
|
|
448
|
+
operation: "action",
|
|
449
|
+
intent: definition.intent ?? (planned.method === "GET" ? "read" : "write")
|
|
450
|
+
});
|
|
407
451
|
if (!permitted.ok) return permitted;
|
|
408
452
|
const ctx = ctxOf(db, input);
|
|
409
453
|
const allowed = await authorize(ctx, name, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dt as TableMeta } from "./types-
|
|
1
|
+
import { Kt as AuthorizationIntent, dt as TableMeta } from "./types-BkYEUWdz.js";
|
|
2
2
|
import { D as ResourceOperation, O as SecurityRequirement, i as JsonObject, k as TableVerb } from "./model-Lxa_mOzB.js";
|
|
3
3
|
/** A Standard Schema, or anything else that might carry `~standard`. */
|
|
4
4
|
interface StandardLike {
|
|
@@ -26,6 +26,11 @@ interface ResourceActionSpec<Ref = string> {
|
|
|
26
26
|
readonly description?: string;
|
|
27
27
|
readonly deprecated?: boolean;
|
|
28
28
|
readonly permission?: Ref;
|
|
29
|
+
/**
|
|
30
|
+
* What the authorizer sees as `context.intent`. Defaults to `read` for a
|
|
31
|
+
* `GET` action and `write` for the others.
|
|
32
|
+
*/
|
|
33
|
+
readonly intent?: AuthorizationIntent;
|
|
29
34
|
/** Names of the events the action emits, for AsyncAPI. */
|
|
30
35
|
readonly emits?: readonly string[];
|
|
31
36
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ResourceActionSpec } from "./resource-
|
|
2
|
-
import { i as ResourceContext, n as Parsed, r as ResourceAction, t as ActionArgs } from "./resource-types-
|
|
1
|
+
import { n as ResourceActionSpec } from "./resource-DWllVW8k.js";
|
|
2
|
+
import { i as ResourceContext, n as Parsed, r as ResourceAction, t as ActionArgs } from "./resource-types-RgaljPs0.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
/**
|
|
5
5
|
* Defines an action and types its handler's `data` and `query` from the
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { D as ValidationIssue, f as Result } from "./result-DTOQRyGY.js";
|
|
2
|
-
import { Ft as RequestContext, K as Insert, dt as TableMeta, ht as Update, it as Row, k as AnyModels, ut as TableKey } from "./types-
|
|
3
|
-
import { Gt as SelectArg } from "./define-
|
|
4
|
-
import { a as RespondOptions } from "./respond-
|
|
2
|
+
import { Ft as RequestContext, K as Insert, dt as TableMeta, ht as Update, it as Row, k as AnyModels, ut as TableKey } from "./types-BkYEUWdz.js";
|
|
3
|
+
import { Gt as SelectArg } from "./define-ITQA71fw.js";
|
|
4
|
+
import { a as RespondOptions } from "./respond-BYOV7KZp.js";
|
|
5
5
|
import { D as ResourceOperation, k as TableVerb } from "./model-Lxa_mOzB.js";
|
|
6
|
-
import { a as ResourcePlan, i as ResourcePagination, n as ResourceActionSpec, r as ResourceDescription } from "./resource-
|
|
6
|
+
import { a as ResourcePlan, i as ResourcePagination, n as ResourceActionSpec, r as ResourceDescription } from "./resource-DWllVW8k.js";
|
|
7
7
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
8
|
/** What a resource needs from `defineListQuery`. */
|
|
9
9
|
interface ResourceList {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as AnyModels, ut as TableKey } from "./types-
|
|
2
|
-
import { l as ResourceRouteOptions } from "./resource-types-
|
|
1
|
+
import { k as AnyModels, ut as TableKey } from "./types-BkYEUWdz.js";
|
|
2
|
+
import { l as ResourceRouteOptions } from "./resource-types-RgaljPs0.js";
|
|
3
3
|
/** Resources by table name; `true` serves a table with the defaults. */
|
|
4
4
|
type ResourceMap<M extends AnyModels, Ref = string, DbT = unknown> = { readonly [T in TableKey<M>]?: ResourceRouteOptions<M, T, Ref, DbT> | true; };
|
|
5
5
|
export { ResourceMap as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as dbError } from "./errors-B7tCfCvX.js";
|
|
2
2
|
import { o as problemResponse } from "./problem-C0SVHhd3.js";
|
|
3
|
-
import { n as actionFits, t as defineResource } from "./resource-
|
|
3
|
+
import { n as actionFits, t as defineResource } from "./resource-BbWk4hoP.js";
|
|
4
4
|
// src/server/resources.ts
|
|
5
5
|
function split(path) {
|
|
6
6
|
return path.split("/").filter((segment) => segment !== "");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as DbError } from "./result-DTOQRyGY.js";
|
|
2
|
-
import { r as AuthState } from "./resolve
|
|
2
|
+
import { r as AuthState } from "./resolve--LfVoOMg.js";
|
|
3
3
|
import { t as Aal } from "./mfa-CM5r904M.js";
|
|
4
4
|
/**
|
|
5
5
|
* A router or browser prefetch, by its request headers: Next.js route and
|
|
@@ -3,7 +3,7 @@ import { s as toDbError } from "./result-8xza7w5W.js";
|
|
|
3
3
|
import { o as problemResponse } from "./problem-C0SVHhd3.js";
|
|
4
4
|
import { n as jsonResponse } from "./json-O5vFw243.js";
|
|
5
5
|
import { i as delegationOf, n as actorOf } from "./actor-B5b0i1Fs.js";
|
|
6
|
-
import {
|
|
6
|
+
import { s as checkAal, t as isAnonymousUser } from "./view-BfEqjZJ_.js";
|
|
7
7
|
// src/server/respond.ts
|
|
8
8
|
/**
|
|
9
9
|
* Refuses `cookies: false` with a `refresh` policy at setup: a refresh reads
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
|
-
import { _ as JobHandler } from "./types-
|
|
3
|
+
import { _ as JobHandler } from "./types-Dh2OGEW5.js";
|
|
4
4
|
type AiSandboxStatus = "running" | "stopping" | "stopped";
|
|
5
5
|
interface AiSandbox {
|
|
6
6
|
readonly id: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
|
-
import { $ as RecordRef } from "./types-
|
|
3
|
+
import { $ as RecordRef } from "./types-BkYEUWdz.js";
|
|
4
4
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
5
|
-
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "./block-helpers-
|
|
6
|
-
import { t as BlockTransport } from "./block-transport-
|
|
7
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
8
|
-
import { h as FilterQuery } from "./filter-query-
|
|
5
|
+
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "./block-helpers-disoUWCp.js";
|
|
6
|
+
import { t as BlockTransport } from "./block-transport-BEtC_Kis.js";
|
|
7
|
+
import { n as BlockHooks } from "./block-hooks-DrA_d1dJ.js";
|
|
8
|
+
import { h as FilterQuery } from "./filter-query-DV-x8fio.js";
|
|
9
9
|
interface ScoresOptions extends BlockTemporalOptions, BlockTenantOptions {
|
|
10
10
|
readonly transport: BlockTransport;
|
|
11
11
|
/**
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "../result-DTOQRyGY.js";
|
|
2
|
-
import { Ft as RequestContext, O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-
|
|
3
|
-
import { Ct as Events, lt as SupportEventData } from "../events-
|
|
4
|
-
import { E as sessionCookieName, O as writeSession, a as ResolveAuthOptions, c as SessionRejection, d as AUTH_CACHE_HEADERS, f as CookieOptions, h as CookieWrite, i as InvalidReason, l as clientIp, n as AuthResolver, p as CookieRecord, r as AuthState, s as ResolvedState, t as AuthResolution, u as resolveAuth, v as StoredSession, w as readSession } from "../resolve
|
|
5
|
-
import { n as SqlClient } from "../executor-
|
|
2
|
+
import { $t as Authorizer, Ft as RequestContext, Gt as AuthorizationContext, Ht as AnyAuthorizer, Jt as AuthorizationPurpose, Kt as AuthorizationIntent, O as AnyFunctions, Qt as AuthorizationSubject, Ut as AuthorizationCallKind, Wt as AuthorizationChange, Xt as AuthorizationResource, Yt as AuthorizationRequest, Zt as AuthorizationResourceSource, an as defineAuthorizer, en as AuthorizerRuntime, in as bindAuthorizer, k as AnyModels, nn as PermissionRef, on as requestMemo, qt as AuthorizationOutcome, rn as RequestMemo, tn as AuthzVersionCache, ut as TableKey } from "../types-BkYEUWdz.js";
|
|
3
|
+
import { Ct as Events, lt as SupportEventData } from "../events-DVt3Z9hw.js";
|
|
4
|
+
import { E as sessionCookieName, O as writeSession, a as ResolveAuthOptions, c as SessionRejection, d as AUTH_CACHE_HEADERS, f as CookieOptions, h as CookieWrite, i as InvalidReason, l as clientIp, n as AuthResolver, p as CookieRecord, r as AuthState, s as ResolvedState, t as AuthResolution, u as resolveAuth, v as StoredSession, w as readSession } from "../resolve--LfVoOMg.js";
|
|
5
|
+
import { n as SqlClient } from "../executor-CFmee_nV.js";
|
|
6
6
|
import { a as SessionActor, c as agentClaims, i as IDENTITY_SCOPES, l as delegationOf, n as ActorOutcome, o as SessionDelegation, r as AgentActOptions, s as actorOf, t as ActClaim } from "../actor-DseNR02I.js";
|
|
7
|
-
import {
|
|
7
|
+
import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../index-IKfbX_39.js";
|
|
8
|
+
import { G as permissionCapOf } from "../types-Dh2OGEW5.js";
|
|
8
9
|
import { a as ProblemFormat, c as fromProblem, d as toProblem, i as ProblemDetails, l as isProblem, n as PROBLEM_CONTENT_TYPE, o as ProblemOptions, r as PROBLEM_TYPE_BASE, s as ProblemResponseOptions, u as problemResponse } from "../problem-NGBjN-TO.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { A as isSessionSnapshot, C as DeleteAccountResult, D as SessionMemoStats, E as SessionMemoOptions, M as sessionCacheKey, N as sessionMemo, O as SessionSnapshot, P as snapshotOf, S as DeleteAccountOptions, T as SessionMemo, _ as suspendAccount, a as ServerContext, b as ReplicaState, c as ServerOptions, d as EndSessionsResult, f as LastSignIn, g as lastSignIns, h as endSessions, i as ForContextOptions, j as issuedAtOf, k as authzVersionOf, m as SuspendAccountResult, n as BetterServer, o as ServerDbOptions, p as SuspendAccountOptions, r as ContextOptions, s as ServerKeys, t as AdminDb, u as TENANT_HEADER, v as RequestIdOptions, w as deleteAccount, x as LiteDriver, y as PRIMARY_COOKIE } from "../server-types-C3p3jUqr.js";
|
|
10
|
+
import { Y as DbStats, t as BetterSupabase, y as Db } from "../define-ITQA71fw.js";
|
|
11
|
+
import { j as StorageApi } from "../bucket-DvG66r5G.js";
|
|
12
|
+
import { a as authzVersionOf, c as sessionCacheKey, i as SessionSnapshot, l as sessionMemo, n as SessionMemoOptions, o as isSessionSnapshot, r as SessionMemoStats, s as issuedAtOf, t as SessionMemo, u as snapshotOf } from "../snapshot-BGsJw9xn.js";
|
|
13
13
|
import { n as Impersonator, r as impersonatorOf, t as ImpersonationOptions } from "../impersonation-BOCJcsmS.js";
|
|
14
14
|
import { a as checkAal, i as amrOf, n as AmrEntry, r as aalOf, t as Aal } from "../mfa-CM5r904M.js";
|
|
15
|
-
import { _ as SupportAuthorize, a as AutomationHooks, b as TicketSubject, c as ChatActionHook, d as IdentityRef, f as IdentityTarget, g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, l as DelegationPermissions, m as Subscriber, n as Approver, o as AutomationRef, p as PrincipalByIdentity, r as ApproverOf, s as ChatAction, t as ApprovalRequestRef, u as DelegationRef, v as SupportAuthorizeInput, x as defineAuthorizationHooks, y as SupportDecision } from "../authorization-hooks-
|
|
16
|
-
import { c as RealtimeClient } from "../topic-
|
|
17
|
-
import {
|
|
18
|
-
import { n as
|
|
19
|
-
import {
|
|
20
|
-
import { a as
|
|
21
|
-
import { a as
|
|
22
|
-
import { a as
|
|
23
|
-
import { a as
|
|
24
|
-
import { n as
|
|
15
|
+
import { _ as SupportAuthorize, a as AutomationHooks, b as TicketSubject, c as ChatActionHook, d as IdentityRef, f as IdentityTarget, g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, l as DelegationPermissions, m as Subscriber, n as Approver, o as AutomationRef, p as PrincipalByIdentity, r as ApproverOf, s as ChatAction, t as ApprovalRequestRef, u as DelegationRef, v as SupportAuthorizeInput, x as defineAuthorizationHooks, y as SupportDecision } from "../authorization-hooks-CxwsRnfV.js";
|
|
16
|
+
import { c as RealtimeClient } from "../topic-B6zuexk7.js";
|
|
17
|
+
import { i as decodeEntitlementClaim, o as ClaimsRecord, s as ClaimsSource } from "../entitlements-BOWTZaRf.js";
|
|
18
|
+
import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-CoHsUtZS.js";
|
|
19
|
+
import { a as isUserSession, i as isApiKeySession, n as AuthSession, o as toSession, r as UserSession, t as ApiKeySession } from "../view-Cy2XxYp1.js";
|
|
20
|
+
import { C as DeleteAccountOptions, S as LiteDriver, T as deleteAccount, _ as lastSignIns, a as ForContextOptions, b as PRIMARY_COOKIE, c as ServerKeys, d as TENANT_HEADER, f as EndSessionsResult, g as endSessions, h as SuspendAccountResult, i as ContextOptions, l as ServerOptions, m as SuspendAccountOptions, n as ApprovalOptions, o as ServerContext, p as LastSignIn, r as BetterServer, s as ServerDbOptions, t as AdminDb, v as suspendAccount, w as DeleteAccountResult, x as ReplicaState, y as RequestIdOptions } from "../server-types-C2hlvhP4.js";
|
|
21
|
+
import { C as SupportSessionStore, E as supportClaims, S as SupportSession, T as sqlSupportStore, _ as SupportCallerClaims, a as SupportPolicy, b as SupportRequest, c as supportSessions, d as clearSupportCookie, f as supportCookie, g as SupportApprover, h as SupportApprovalQuery, i as SupportOptions, l as SUPPORT_COOKIE, m as SqlSupportStoreOptions, n as SupportApi, o as SupportSessions, p as supportCookieValue, r as SupportExpireRouteOptions, s as SupportStartRequest, t as ActiveSupport, u as SupportCookieOptions, v as SupportEndedBy, w as SupportStartInput, x as SupportRequestInput, y as SupportListFilter } from "../support-DxYI6sDM.js";
|
|
22
|
+
import { a as serverCore, i as ServerCore, n as SessionEntryConfig, r as withSession, t as AuthOutageHook } from "../session-B4VasaAA.js";
|
|
23
|
+
import { a as RespondOptions, c as isResult, d as RefreshPolicy, f as isPrefetch, h as shouldRefresh, i as MiddlewareOptions, l as respond, m as shouldCheckSession, n as AuthKind, o as Settled, p as refreshFor, r as GuardOptions, s as guard, u as settle } from "../respond-BYOV7KZp.js";
|
|
24
|
+
import { a as GuardEntryConfig, i as withBetterSupabase, n as BetterSupabaseContributions, o as withGuard, r as BetterSupabaseEntry, t as BetterSupabaseConfig } from "../composite-CIxjVcL1.js";
|
|
25
|
+
import { a as AuthorizedContext, c as ResourceLoaderContext, d as rolesAt, i as AuthorizeOptions, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions, u as hasRole } from "../kit-OgFOW9rX.js";
|
|
26
|
+
import { n as subjectReaders, t as SubjectReadersOptions } from "../subject-readers-BlD8tALG.js";
|
|
25
27
|
import { i as toCsv, n as csvColumns, t as CsvOptions } from "../csv-Dd1iKsk-.js";
|
|
26
28
|
import { i as JwsAlgorithm, n as Jwks, r as JwksOfOptions } from "../jws-CxgTsbgG.js";
|
|
27
|
-
import { i as ResourcePagination } from "../resource-
|
|
28
|
-
import { a as ResourceHandler, c as ResourceList, l as ResourceRouteOptions, s as ResourceInput } from "../resource-types-
|
|
29
|
-
import { a as claimsFingerprint, i as SessionWatchStatus, n as SessionStatusRouteOptions, o as sessionStatusRoute, r as SessionStatusServer, t as SessionStatusBody } from "../session-status-
|
|
30
|
-
import { n as RefreshOutcome, r as refreshSession } from "../refresh-
|
|
31
|
-
import {
|
|
32
|
-
import { n as
|
|
33
|
-
import {
|
|
29
|
+
import { i as ResourcePagination } from "../resource-DWllVW8k.js";
|
|
30
|
+
import { a as ResourceHandler, c as ResourceList, l as ResourceRouteOptions, s as ResourceInput } from "../resource-types-RgaljPs0.js";
|
|
31
|
+
import { a as claimsFingerprint, i as SessionWatchStatus, n as SessionStatusRouteOptions, o as sessionStatusRoute, r as SessionStatusServer, t as SessionStatusBody } from "../session-status-D8CBxCqv.js";
|
|
32
|
+
import { n as RefreshOutcome, r as refreshSession } from "../refresh-BtbC2rZe.js";
|
|
33
|
+
import { a as PasswordGrantOptions, c as safeRedirectPath, s as passwordGrant } from "../sign-in-CX1a5i2P.js";
|
|
34
|
+
import { i as tagFor, n as cacheTagsOf, r as tagCache, t as TagOptions } from "../tags--k2fbPfO.js";
|
|
35
|
+
import { n as supportOf, t as SupportView } from "../support-view-DSmCett7.js";
|
|
36
|
+
import { a as sessionStatus, i as clearSessionCookies, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-NC_ZesY4.js";
|
|
34
37
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
35
38
|
import { Middleware, SingleKeyEntry } from "@supabase/middleware";
|
|
36
39
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -65,7 +68,7 @@ export declare function extendServer<R extends object>(server: object, extra: Om
|
|
|
65
68
|
* Server-side entry point for APIs, jobs, MCP servers and framework adapters.
|
|
66
69
|
* Holds the secrets; `betterSupabase` stays isomorphic.
|
|
67
70
|
*/
|
|
68
|
-
export declare function createServer<M extends AnyModels, D, F extends AnyFunctions, E, C = unknown, P = unknown, B = unknown>(betterSupabase: BetterSupabase<M, D, F, E, C, P, B>, options?: ServerOptions): BetterServer<M, F, E, C, P, B>;
|
|
71
|
+
export declare function createServer<M extends AnyModels, D, F extends AnyFunctions, E, C = unknown, P = unknown, B = unknown, V extends AuthzVersionCache = AuthzVersionCache>(betterSupabase: BetterSupabase<M, D, F, E, C, P, B>, options?: ServerOptions<V>): BetterServer<M, F, E, C, P, B, V>;
|
|
69
72
|
interface HandleOptions extends MiddlewareOptions {
|
|
70
73
|
/**
|
|
71
74
|
* Include error messages in problem responses. Defaults to `NODE_ENV ===
|
|
@@ -605,4 +608,4 @@ export declare function withDbStats(options?: {
|
|
|
605
608
|
stats(): DbStats;
|
|
606
609
|
};
|
|
607
610
|
}, () => DbStats>;
|
|
608
|
-
export { AUTH_CACHE_HEADERS, type Aal, type AccessTokenResolverOptions, type AccessTokenRevocation, type AccountEventType, type ActClaim, type ActionResult, type ActiveSupport, type ActorOutcome, type AdminDb, type AgentActOptions, type AmrEntry, type AnyAuthorizer, type ApprovalRequestRef, type Approver, type ApproverOf, type AuthKind, type AuthOutageHook, type AuthResolution, type AuthResolver, type AuthSession, type AuthState, type AuthorizationHooks, type AuthorizationOutcome, type AuthorizationRequest, type AuthorizationResource, type AuthorizationSubject, type AuthorizeOptions, type AuthorizedContext, type Authorizer, type AuthorizerRuntime, type AuthzVersionCache, type AuthzVersionChannel, type AuthzVersionClient, type AuthzVersionSubscription, type AutomationHooks, type AutomationRef, type BetterServer, type BetterSupabaseConfig, type BetterSupabaseContributions, type BetterSupabaseEntry, type BlockActionOptions, type BlockRequireOptions, type ChatAction, type ChatActionHook, type ClearSessionCookiesOptions, type ContextOptions, type CookieOptions, type CookieRecord, type CookieWrite, type CsvOptions, type CsvResponseOptions, type DelegationPermissions, type DelegationRef, type DeleteAccountOptions, type DeleteAccountResult, type EndSessionsResult, type ForContextOptions, type GuardEntryConfig, type GuardOptions, type HandleOptions, IDENTITY_SCOPES, type IdentityRef, type IdentityTarget, type ImpersonationEvents, type ImpersonationOptions, type Impersonator, type InvalidReason, type LastSignIn, type LiteDriver, type MiddlewareOptions, PERMISSION_CAP_CLAIM, PRIMARY_COOKIE, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, type PasswordGrantOptions, type PermissionRef, type PermissionsOfOptions, type PrincipalByIdentity, type ProblemDetails, type ProblemOptions, type ProblemResponseOptions, type RateLimitPolicy, type RateLimitState, type RealtimeRelayOptions, type RefreshOutcome, type RefreshPolicy, type RelayAccessInput, type RelayAuthorize, type RelayEndReason, type RelayPostgres, type RelayServer, type RelayTopic, type ReplicaState, type RequestIdOptions, type RequestMemo, type ResolveAuthOptions, type ResolvedState, type ResourceHandler, type ResourceInput, type ResourceList, type ResourceLoaderContext, type ResourcePagination, type ResourceRouteOptions, type RespondOptions, SUPPORT_COOKIE, type ServerContext, type ServerCore, type ServerDbOptions, type ServerOptions, type ServerTiming, type SessionActor, type SessionDelegation, type SessionEntryConfig, type SessionLookup, type SessionMemo, type SessionMemoOptions, type SessionMemoStats, type SessionRejection, type SessionSnapshot, type SessionStatus, type SessionStatusBody, type SessionStatusOptions, type SessionStatusRouteOptions, type SessionStatusServer, type SessionWatchStatus, type Settled, type SqlSupportStoreOptions, type StoredSession, type SubjectReadersOptions, type SubscribeAuthzVersionsOptions, type Subscriber, type SubscriberEvent, type SubscriberPolicy, type SupabaseAuthContext, type SupportApi, type SupportApprovalQuery, type SupportApprover, type SupportAuthorize, type SupportAuthorizeInput, type SupportCallerClaims, type SupportCookieOptions, type SupportDecision, type SupportEndedBy, type SupportExpireRouteOptions, type SupportListFilter, type SupportOptions, type SupportPolicy, type SupportRequest, type SupportRequestInput, type SupportSession, type SupportSessionStore, type SupportSessions, type SupportStartInput, type SupportStartRequest, type SupportStorageOptions, type SupportView, type SuspendAccountOptions, type SuspendAccountResult, TENANT_HEADER, type TagOptions, type TicketSubject, aalOf, actorOf, agentClaims, amrOf, authContext, authzVersionOf, bindAuthorizer, cacheTagsOf, checkAal, claimsFingerprint, clearSessionCookies, clearSupportCookie, clientIp, csvColumns, defineAuthorizationHooks, defineAuthorizer, delegationOf, deleteAccount, endSessions, fromProblem, guard, hasRole, impersonatorOf, isPrefetch, isProblem, isResult, isSessionSnapshot, issuedAtOf, lastSignIns, passwordGrant, permissionsOf, problemResponse, readSession, refreshFor, refreshSession, requestMemo, resolveAuth, respond, rolesAt, safeRedirectPath, serverCore, sessionCacheKey, sessionCookieName, sessionMemo, sessionStatus, sessionStatusRoute, settle, shouldCheckSession, shouldRefresh, snapshotOf, sqlSupportStore, subjectReaders, supportClaims, supportCookie, supportCookieValue, supportOf, supportSessions, suspendAccount, tagCache, tagFor, toCsv, toProblem, toSession, withBetterSupabase, withGuard, withSession, writeSession };
|
|
611
|
+
export { AUTHZ_VERSION_CLAIM, AUTH_CACHE_HEADERS, type Aal, type AccessTokenResolverOptions, type AccessTokenRevocation, type AccountEventType, type ActClaim, type ActionResult, type ActiveSupport, type ActorOutcome, type AdminDb, type AgentActOptions, type AmrEntry, type AnyAuthorizer, type ApiKeySession, type ApprovalOptions, type ApprovalRequestRef, type Approver, type ApproverOf, type AuthKind, type AuthOutageHook, type AuthResolution, type AuthResolver, type AuthSession, type AuthState, type AuthorizationCallKind, type AuthorizationChange, type AuthorizationContext, type AuthorizationHooks, type AuthorizationIntent, type AuthorizationOutcome, type AuthorizationPurpose, type AuthorizationRequest, type AuthorizationResource, type AuthorizationResourceSource, type AuthorizationSubject, type AuthorizeOptions, type AuthorizedContext, type Authorizer, type AuthorizerRuntime, type AuthzVersionCache, type AuthzVersionChannel, type AuthzVersionClient, type AuthzVersionSubscription, type AutomationHooks, type AutomationRef, type BetterServer, type BetterSupabaseConfig, type BetterSupabaseContributions, type BetterSupabaseEntry, type BlockActionOptions, type BlockRequireOptions, type ChatAction, type ChatActionHook, type ClaimsRecord, type ClaimsSource, type ClearSessionCookiesOptions, type ContextOptions, type CookieOptions, type CookieRecord, type CookieWrite, type CsvOptions, type CsvResponseOptions, type DelegationPermissions, type DelegationRef, type DeleteAccountOptions, type DeleteAccountResult, type EndSessionsResult, FEATURES_CLAIM, type ForContextOptions, type GuardEntryConfig, type GuardOptions, type HandleOptions, IDENTITY_SCOPES, type IdentityRef, type IdentityTarget, type ImpersonationEvents, type ImpersonationOptions, type Impersonator, type InvalidReason, type LastSignIn, type LiteDriver, MEMBERSHIPS_CLAIM, type MiddlewareOptions, PERMISSIONS_CLAIM, PERMISSIONS_TRUNCATED_CLAIM, PERMISSION_CAP_CLAIM, PRIMARY_COOKIE, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, type PasswordGrantOptions, type PermissionRef, type PermissionsOfOptions, type PrincipalByIdentity, type ProblemDetails, type ProblemOptions, type ProblemResponseOptions, type RateLimitPolicy, type RateLimitState, type RealtimeRelayOptions, type RefreshOutcome, type RefreshPolicy, type RelayAccessInput, type RelayAuthorize, type RelayEndReason, type RelayPostgres, type RelayServer, type RelayTopic, type ReplicaState, type RequestIdOptions, type RequestMemo, type ResolveAuthOptions, type ResolvedState, type ResourceHandler, type ResourceInput, type ResourceList, type ResourceLoaderContext, type ResourcePagination, type ResourceRouteOptions, type RespondOptions, SUPPORT_COOKIE, type ServerContext, type ServerCore, type ServerDbOptions, type ServerOptions, type ServerTiming, type SessionActor, type SessionDelegation, type SessionEntryConfig, type SessionLookup, type SessionMemo, type SessionMemoOptions, type SessionMemoStats, type SessionRejection, type SessionSnapshot, type SessionStatus, type SessionStatusBody, type SessionStatusOptions, type SessionStatusRouteOptions, type SessionStatusServer, type SessionWatchStatus, type Settled, type SqlSupportStoreOptions, type StoredSession, type SubjectReadersOptions, type SubscribeAuthzVersionsOptions, type Subscriber, type SubscriberEvent, type SubscriberPolicy, type SupabaseAuthContext, type SupportApi, type SupportApprovalQuery, type SupportApprover, type SupportAuthorize, type SupportAuthorizeInput, type SupportCallerClaims, type SupportCookieOptions, type SupportDecision, type SupportEndedBy, type SupportExpireRouteOptions, type SupportListFilter, type SupportOptions, type SupportPolicy, type SupportRequest, type SupportRequestInput, type SupportSession, type SupportSessionStore, type SupportSessions, type SupportStartInput, type SupportStartRequest, type SupportStorageOptions, type SupportView, type SuspendAccountOptions, type SuspendAccountResult, TENANT_HEADER, type TagOptions, type TicketSubject, type UserSession, aalOf, actorOf, agentClaims, amrOf, authContext, authzVersionOf, bindAuthorizer, cacheTagsOf, checkAal, claimsFingerprint, clearSessionCookies, clearSupportCookie, clientIp, csvColumns, decodeEntitlementClaim, defineAuthorizationHooks, defineAuthorizer, delegationOf, deleteAccount, endSessions, fromProblem, guard, hasRole, impersonatorOf, isApiKeySession, isPrefetch, isProblem, isResult, isSessionSnapshot, isTruncated, isUserSession, issuedAtOf, lastSignIns, passwordGrant, permissionCapOf, permissionsOf, problemResponse, readSession, refreshFor, refreshSession, requestMemo, resolveAuth, respond, rolesAt, safeRedirectPath, serverCore, sessionCacheKey, sessionCookieName, sessionMemo, sessionStatus, sessionStatusRoute, settle, shouldCheckSession, shouldRefresh, snapshotOf, sqlSupportStore, subjectReaders, supportClaims, supportCookie, supportCookieValue, supportOf, supportSessions, suspendAccount, tagCache, tagFor, toCsv, toProblem, toSession, withBetterSupabase, withGuard, withSession, writeSession };
|
package/dist/server/index.js
CHANGED
|
@@ -3,33 +3,37 @@ import { n as isRecord } from "../guards-CsRa6v57.js";
|
|
|
3
3
|
import { t as base64ToText } from "../base64-CVyKHBBw.js";
|
|
4
4
|
import { n as validate } from "../standard-BD2aOUsf.js";
|
|
5
5
|
import { c as toProblem, i as isProblem, n as PROBLEM_TYPE_BASE, o as problemResponse, r as fromProblem, t as PROBLEM_CONTENT_TYPE } from "../problem-C0SVHhd3.js";
|
|
6
|
+
import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../claim-names-BKig1LOk.js";
|
|
6
7
|
import { n as event, t as defineEvents } from "../event-map-DxfsFgQT.js";
|
|
7
8
|
import { i as delegationOf, n as actorOf, r as agentClaims, t as IDENTITY_SCOPES } from "../actor-B5b0i1Fs.js";
|
|
8
9
|
import { i as userContext, r as impersonatorOf } from "../impersonation-D-quM36V.js";
|
|
9
10
|
import { t as supportOf } from "../support-view-CvDEgyGY.js";
|
|
10
11
|
import { t as joinTopic } from "../channels-BxeTTtCY.js";
|
|
12
|
+
import { o as permissionCapOf } from "../delegation-C2rLpkHO.js";
|
|
13
|
+
import { t as decodeEntitlementClaim } from "../entitlements-Dydkg-TV.js";
|
|
14
|
+
import { r as permissionsOf, t as isTruncated } from "../permissions-BDt27oYF.js";
|
|
15
|
+
import { a as sessionCacheKey, i as issuedAtOf, n as authzVersionOf, o as sessionMemo, r as isSessionSnapshot, s as snapshotOf } from "../snapshot-CVMSyTHH.js";
|
|
16
|
+
import { a as aalOf, i as toSession, n as isApiKeySession, o as amrOf, r as isUserSession, s as checkAal } from "../view-BfEqjZJ_.js";
|
|
17
|
+
import "../claims/index.js";
|
|
11
18
|
import { r as toCsv, t as csvColumns } from "../csv-Bwn9insJ.js";
|
|
12
|
-
import { C as SERVER_EVENT_SOURCE, D as deleteAccount, E as suspendAccount, S as defineAuthorizationHooks, T as lastSignIns, a as unexpectedResponse, c as extendServer, d as clearSupportCookie, f as supportCookie, h as TENANT_HEADER, i as resolveToken, l as supportStorage, m as supportCookieValue, n as flushEvents, o as withFlush, r as handle, s as createServer, u as SUPPORT_COOKIE, w as endSessions, x as serverCore, y as withSession } from "../adapter-
|
|
19
|
+
import { C as SERVER_EVENT_SOURCE, D as deleteAccount, E as suspendAccount, S as defineAuthorizationHooks, T as lastSignIns, a as unexpectedResponse, c as extendServer, d as clearSupportCookie, f as supportCookie, h as TENANT_HEADER, i as resolveToken, l as supportStorage, m as supportCookieValue, n as flushEvents, o as withFlush, r as handle, s as createServer, u as SUPPORT_COOKIE, w as endSessions, x as serverCore, y as withSession } from "../adapter-CWzyKepA.js";
|
|
13
20
|
import { i as shouldRefresh, n as refreshFor, o as PRIMARY_COOKIE, r as shouldCheckSession, t as isPrefetch } from "../refresh-B8t_KE3s.js";
|
|
14
21
|
import { t as authContext } from "../context-DSevnLrT.js";
|
|
15
|
-
import { r as PERMISSION_CAP_CLAIM } from "../delegation-BRHHXERz.js";
|
|
16
22
|
import { a as refreshSession, c as AUTH_CACHE_HEADERS, g as sessionCookieName, i as resolveAuth, m as readSession, o as clearSessionCookies, s as sessionStatus, t as clientIp, v as writeSession } from "../resolve-FW8oeXvh.js";
|
|
17
|
-
import { i as defineAuthorizer,
|
|
18
|
-
import { a as
|
|
19
|
-
import {
|
|
20
|
-
import { a as isResult, i as guard, o as respond, s as settle } from "../respond-C2qvP1wv.js";
|
|
21
|
-
import { d as safeRedirectPath, f as supportSessions, m as supportClaims, p as sqlSupportStore, s as passwordGrant } from "../sign-in-BmigClRh.js";
|
|
23
|
+
import { i as defineAuthorizer, s as requestMemo, t as bindAuthorizer } from "../authorizer-BtIPDO-c.js";
|
|
24
|
+
import { a as isResult, i as guard, o as respond, s as settle } from "../respond-DLH4tD2d.js";
|
|
25
|
+
import { d as safeRedirectPath, f as supportSessions, m as supportClaims, p as sqlSupportStore, s as passwordGrant } from "../sign-in-BMm1xhKq.js";
|
|
22
26
|
import { t as subjectReaders } from "../subject-readers-BARV5rNp.js";
|
|
23
27
|
import { t as postgresExecutor } from "../executor-Dc4Pl44u.js";
|
|
24
28
|
import { n as jwtClaimsOf, r as userClaimsOf, t as authModeOf } from "../claims-DouHL7ZL.js";
|
|
25
|
-
import { n as withGuard, t as withBetterSupabase } from "../composite-
|
|
29
|
+
import { n as withGuard, t as withBetterSupabase } from "../composite-D2JnIiHt.js";
|
|
26
30
|
import { c as verifyCompact, t as JwsError } from "../jws-B8p0ppgh.js";
|
|
27
31
|
import { t as jwksSource } from "../jwks-cache-IZaiICAV.js";
|
|
28
32
|
import { i as rateLimitPolicyHeader, n as periodSeconds, r as rateLimitHeader, t as isRateLimitPolicyName } from "../ratelimit-headers-CpB-cDD6.js";
|
|
29
|
-
import { t as defineResource } from "../resource-
|
|
33
|
+
import { t as defineResource } from "../resource-BbWk4hoP.js";
|
|
30
34
|
import { i as withServerTiming, n as parseDbStats, r as withDbStats, t as DB_CALLS_HEADER } from "../timing-B6yHayKA.js";
|
|
31
35
|
import { n as tagCache, r as tagFor, t as cacheTagsOf } from "../tags-CW-KvjdL.js";
|
|
32
|
-
import { a as rolesAt, r as hasRole } from "../kit-
|
|
36
|
+
import { a as rolesAt, r as hasRole } from "../kit-9pZP5iLU.js";
|
|
33
37
|
import { defineMiddleware } from "@supabase/middleware";
|
|
34
38
|
// src/server/csv.ts
|
|
35
39
|
function disposition(filename) {
|
|
@@ -846,4 +850,4 @@ function subscribeAuthzVersions(options) {
|
|
|
846
850
|
subscriptions.set(options.versions, subscription);
|
|
847
851
|
return subscription;
|
|
848
852
|
}
|
|
849
|
-
export { AUTH_CACHE_HEADERS, DB_CALLS_HEADER, IDENTITY_SCOPES, PERMISSION_CAP_CLAIM, PRIMARY_COOKIE, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, SERVER_EVENT_SOURCE, SUPPORT_COOKIE, TENANT_HEADER, aalOf, accessTokenResolver, actorOf, agentClaims, amrOf, authContext, authModeOf, authzVersionOf, bindAuthorizer, cacheTagsOf, checkAal, claimsFingerprint, clearSessionCookies, clearSupportCookie, clientIp, contextFromSupabase, createServer, csvColumns, csvResponse, defineAuthorizationHooks, defineAuthorizer, defineResource, delegationOf, deleteAccount, endSessions, extendServer, flushEvents, fromProblem, guard, handle, hasRole, impersonationEvents, impersonatorOf, isPrefetch, isProblem, isRateLimitPolicyName, isResult, isSessionSnapshot, issuedAtOf, jwtClaimsOf, lastSignIns, liveRelayTopic, parseDbStats, passwordGrant, periodSeconds, permissionsOf, problemResponse, rateLimitHeader, rateLimitPolicyHeader, readSession, realtimeRelay, realtimeTopicAccess, refreshFor, refreshSession, requestMemo, resolveAuth, resolveToken, respond, rolesAt, safeRedirectPath, serverCore, sessionCacheKey, sessionCookieName, sessionMemo, sessionStatus, sessionStatusRoute, settle, shouldCheckSession, shouldRefresh, snapshotOf, sqlSupportStore, subjectReaders, subscribeAuthzVersions, supportClaims, supportCookie, supportCookieValue, supportOf, supportSessions, supportStorage, suspendAccount, tagCache, tagFor, toCsv, toProblem, toSession, unexpectedResponse, userClaimsOf, verifySession, withBetterDb, withBetterPostgres, withBetterSupabase, withBlock, withDbStats, withFlush, withGuard, withServerTiming, withSession, writeSession };
|
|
853
|
+
export { AUTHZ_VERSION_CLAIM, AUTH_CACHE_HEADERS, DB_CALLS_HEADER, FEATURES_CLAIM, IDENTITY_SCOPES, MEMBERSHIPS_CLAIM, PERMISSIONS_CLAIM, PERMISSIONS_TRUNCATED_CLAIM, PERMISSION_CAP_CLAIM, PRIMARY_COOKIE, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, SERVER_EVENT_SOURCE, SUPPORT_COOKIE, TENANT_HEADER, aalOf, accessTokenResolver, actorOf, agentClaims, amrOf, authContext, authModeOf, authzVersionOf, bindAuthorizer, cacheTagsOf, checkAal, claimsFingerprint, clearSessionCookies, clearSupportCookie, clientIp, contextFromSupabase, createServer, csvColumns, csvResponse, decodeEntitlementClaim, defineAuthorizationHooks, defineAuthorizer, defineResource, delegationOf, deleteAccount, endSessions, extendServer, flushEvents, fromProblem, guard, handle, hasRole, impersonationEvents, impersonatorOf, isApiKeySession, isPrefetch, isProblem, isRateLimitPolicyName, isResult, isSessionSnapshot, isTruncated, isUserSession, issuedAtOf, jwtClaimsOf, lastSignIns, liveRelayTopic, parseDbStats, passwordGrant, periodSeconds, permissionCapOf, permissionsOf, problemResponse, rateLimitHeader, rateLimitPolicyHeader, readSession, realtimeRelay, realtimeTopicAccess, refreshFor, refreshSession, requestMemo, resolveAuth, resolveToken, respond, rolesAt, safeRedirectPath, serverCore, sessionCacheKey, sessionCookieName, sessionMemo, sessionStatus, sessionStatusRoute, settle, shouldCheckSession, shouldRefresh, snapshotOf, sqlSupportStore, subjectReaders, subscribeAuthzVersions, supportClaims, supportCookie, supportCookieValue, supportOf, supportSessions, supportStorage, suspendAccount, tagCache, tagFor, toCsv, toProblem, toSession, unexpectedResponse, userClaimsOf, verifySession, withBetterDb, withBetterPostgres, withBetterSupabase, withBlock, withDbStats, withFlush, withGuard, withServerTiming, withSession, writeSession };
|