better-supabase 0.17.0 → 0.18.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/dist/{access-sql-B-MkVARa.js → access-sql-CNIgUqWf.js} +2 -0
- package/dist/{adapter-Dyks1lX1.js → adapter-CfuBICuG.js} +3 -1
- package/dist/{ai-schedules-Dk9H3kAp.d.ts → ai-schedules-DzLh6BYI.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/ai-sdk/memory/index.js +1 -1
- package/dist/{api-CpL3hm87.d.ts → api-B6zteBya.d.ts} +1 -1
- package/dist/{app-tables-Q0TYfeih.js → app-tables-DyswUg6J.js} +10 -2
- package/dist/{app-tables-dS02piE7.d.ts → app-tables-XwCviyhP.d.ts} +1 -1
- package/dist/astro/index.d.ts +3 -3
- package/dist/astro/index.js +5 -5
- package/dist/{attachments-aJYgdYtB.js → attachments-M-Dy79Ry.js} +9 -2
- package/dist/{authorization-CNsvnwle.d.ts → authorization-IiE__z2m.d.ts} +169 -87
- package/dist/{automations-CIwRq7zm.js → automations-B5P6vTvk.js} +2 -2
- package/dist/{automations-CD1XlL2W.js → automations-BKjJpktQ.js} +1 -1
- package/dist/{automations-Bc2ue55V.js → automations-FCnWy387.js} +2 -2
- package/dist/{bind-C801IaK-.d.ts → bind-pu5TLrla.d.ts} +3 -3
- package/dist/{block-env-BeG4DiiO.d.ts → block-env-CA65ulTD.d.ts} +4 -4
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/access-requests/index.js +1 -1
- package/dist/blocks/activities/index.d.ts +1 -1
- package/dist/blocks/activities/index.js +1 -1
- package/dist/blocks/agents/index.d.ts +1 -1
- package/dist/blocks/agents/index.js +1 -1
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-cache/index.js +1 -1
- package/dist/blocks/ai-chat/index.d.ts +4 -4
- package/dist/blocks/ai-chat/index.js +1 -1
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-files/index.js +1 -1
- package/dist/blocks/ai-keys/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.js +1 -1
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/ai-schedules/index.js +1 -1
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/announcements/index.js +1 -1
- package/dist/blocks/api-keys/index.d.ts +2 -2
- package/dist/blocks/api-keys/index.js +1 -1
- package/dist/blocks/approvals/index.d.ts +1 -1
- package/dist/blocks/approvals/index.js +1 -1
- package/dist/blocks/assets/index.d.ts +1 -1
- package/dist/blocks/assets/index.js +1 -1
- package/dist/blocks/assignment/index.d.ts +1 -1
- package/dist/blocks/attachments/index.d.ts +40 -4
- package/dist/blocks/attachments/index.js +42 -4
- package/dist/blocks/audit/index.d.ts +3 -3
- package/dist/blocks/audit/index.js +2 -2
- package/dist/blocks/automations/index.d.ts +3 -3
- package/dist/blocks/automations/index.js +1 -1
- package/dist/blocks/billable-time/index.d.ts +1 -1
- package/dist/blocks/billing/index.d.ts +2 -2
- package/dist/blocks/billing/index.js +1 -1
- package/dist/blocks/bookings/index.d.ts +2 -2
- package/dist/blocks/bookings/index.js +1 -1
- package/dist/blocks/bulk/index.d.ts +1 -1
- package/dist/blocks/bulk/index.js +1 -1
- package/dist/blocks/calendar/index.d.ts +2 -2
- package/dist/blocks/calendar/index.js +1 -1
- package/dist/blocks/catalog/index.d.ts +1 -1
- package/dist/blocks/catalog/index.js +1 -1
- package/dist/blocks/channels/index.d.ts +1 -1
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/collections/index.js +1 -1
- package/dist/blocks/comments/index.d.ts +5 -5
- package/dist/blocks/comments/index.js +1 -1
- package/dist/blocks/compliance/index.d.ts +1 -1
- package/dist/blocks/compliance/index.js +1 -1
- package/dist/blocks/connectors/index.d.ts +1 -1
- package/dist/blocks/connectors/index.js +1 -1
- package/dist/blocks/contacts/index.d.ts +1 -1
- package/dist/blocks/contacts/index.js +1 -1
- package/dist/blocks/content/index.d.ts +2 -2
- package/dist/blocks/content/index.js +1 -1
- package/dist/blocks/contracts/index.d.ts +1 -1
- package/dist/blocks/contracts/index.js +1 -1
- package/dist/blocks/courses/index.d.ts +2 -2
- package/dist/blocks/courses/index.js +1 -1
- package/dist/blocks/created-by/index.d.ts +1 -1
- package/dist/blocks/created-by/index.js +1 -1
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.js +1 -1
- package/dist/blocks/data-lifecycle/index.d.ts +1 -1
- package/dist/blocks/data-lifecycle/index.js +1 -1
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/deals/index.js +1 -1
- package/dist/blocks/dispatch/index.d.ts +2 -2
- package/dist/blocks/dispatch/index.js +1 -1
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/documents/index.js +1 -1
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/domains/index.js +1 -1
- package/dist/blocks/donations/index.d.ts +1 -1
- package/dist/blocks/donations/index.js +1 -1
- package/dist/blocks/drive/index.d.ts +1 -1
- package/dist/blocks/drive/index.js +2 -2
- package/dist/blocks/employees/index.d.ts +2 -2
- package/dist/blocks/employees/index.js +1 -1
- package/dist/blocks/enrichment/index.d.ts +1 -1
- package/dist/blocks/enrollments/index.d.ts +1 -1
- package/dist/blocks/enrollments/index.js +1 -1
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/expenses/index.d.ts +1 -1
- package/dist/blocks/expenses/index.js +1 -1
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/flags/index.js +1 -1
- package/dist/blocks/forecasts/index.d.ts +1 -1
- package/dist/blocks/forms/index.d.ts +2 -2
- package/dist/blocks/forms/index.js +1 -1
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/goals/index.js +1 -1
- package/dist/blocks/guests/index.d.ts +1 -1
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/hiring/index.js +1 -1
- package/dist/blocks/identities/index.d.ts +1 -1
- package/dist/blocks/identities/index.js +1 -1
- package/dist/blocks/imports/index.d.ts +1 -1
- package/dist/blocks/inbox/index.d.ts +5 -5
- package/dist/blocks/inbox/index.js +1 -1
- package/dist/blocks/incidents/index.d.ts +1 -1
- package/dist/blocks/incidents/index.js +1 -1
- package/dist/blocks/index.d.ts +4 -4
- package/dist/blocks/index.js +1 -1
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/inventory/index.js +1 -1
- package/dist/blocks/invoices/index.d.ts +1 -1
- package/dist/blocks/invoices/index.js +1 -1
- package/dist/blocks/knowledge/index.d.ts +1 -1
- package/dist/blocks/knowledge/index.js +1 -1
- package/dist/blocks/lead-scoring/index.d.ts +2 -2
- package/dist/blocks/lead-scoring/index.js +1 -1
- package/dist/blocks/leases/index.d.ts +1 -1
- package/dist/blocks/leases/index.js +1 -1
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/leave/index.js +1 -1
- package/dist/blocks/ledger/index.d.ts +1 -1
- package/dist/blocks/mail-sync/index.d.ts +2 -2
- package/dist/blocks/mail-sync/index.js +1 -1
- package/dist/blocks/memberships/index.d.ts +3 -3
- package/dist/blocks/memberships/index.js +1 -1
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/memory/index.js +1 -1
- package/dist/blocks/messaging/index.d.ts +5 -5
- package/dist/blocks/messaging/index.js +1 -1
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/metrics/index.js +1 -1
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +1 -1
- package/dist/blocks/moderation/index.js +1 -1
- package/dist/blocks/notifications/index.d.ts +17 -6
- package/dist/blocks/notifications/index.js +110 -40
- package/dist/blocks/numbering/index.d.ts +1 -1
- package/dist/blocks/numbering/index.js +1 -1
- package/dist/blocks/oauth-server/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.js +1 -1
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.js +1 -1
- package/dist/blocks/orders/index.d.ts +2 -2
- package/dist/blocks/orders/index.js +1 -1
- package/dist/blocks/organizations/index.d.ts +38 -3
- package/dist/blocks/organizations/index.js +50 -5
- package/dist/blocks/outbox/index.d.ts +1 -1
- package/dist/blocks/outbox/index.js +1 -1
- package/dist/blocks/passes/index.d.ts +2 -2
- package/dist/blocks/passes/index.js +1 -1
- package/dist/blocks/permissions/index.d.ts +4 -4
- package/dist/blocks/permissions/index.js +2 -2
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/pipelines/index.js +1 -1
- package/dist/blocks/posts/index.d.ts +2 -2
- package/dist/blocks/posts/index.js +1 -1
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/profiles/index.js +1 -1
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/promotions/index.js +1 -1
- package/dist/blocks/push/index.d.ts +76 -10
- package/dist/blocks/push/index.js +172 -43
- package/dist/blocks/queue/index.d.ts +1 -1
- package/dist/blocks/queue/index.js +1 -1
- package/dist/blocks/quotes/index.d.ts +1 -1
- package/dist/blocks/quotes/index.js +1 -1
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +4 -4
- package/dist/blocks/reactions/index.js +1 -1
- package/dist/blocks/relations/index.d.ts +1 -1
- package/dist/blocks/relations/index.js +1 -1
- package/dist/blocks/reminders/index.d.ts +1 -1
- package/dist/blocks/reminders/index.js +1 -1
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/reviews/index.js +1 -1
- package/dist/blocks/saved-views/index.d.ts +2 -2
- package/dist/blocks/saved-views/index.js +1 -1
- package/dist/blocks/scores/index.d.ts +1 -1
- package/dist/blocks/scores/index.js +1 -1
- package/dist/blocks/search/index.d.ts +3 -3
- package/dist/blocks/search/index.js +1 -1
- package/dist/blocks/security-events/index.d.ts +1 -1
- package/dist/blocks/security-events/index.js +1 -1
- package/dist/blocks/segments/index.d.ts +2 -2
- package/dist/blocks/segments/index.js +1 -1
- package/dist/blocks/sequences/index.d.ts +2 -2
- package/dist/blocks/sequences/index.js +1 -1
- package/dist/blocks/service-accounts/index.d.ts +1 -1
- package/dist/blocks/service-accounts/index.js +1 -1
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/index.js +1 -1
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/settings/index.js +1 -1
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/share-links/index.js +1 -1
- package/dist/blocks/shipments/index.d.ts +2 -2
- package/dist/blocks/shipments/index.js +1 -1
- package/dist/blocks/signatures/index.d.ts +2 -2
- package/dist/blocks/signatures/index.js +1 -1
- package/dist/blocks/signing-keys/index.d.ts +1 -1
- package/dist/blocks/signing-keys/index.js +1 -1
- package/dist/blocks/sla/index.d.ts +1 -1
- package/dist/blocks/sla/index.js +1 -1
- package/dist/blocks/sso/index.d.ts +1 -1
- package/dist/blocks/sso/index.js +1 -1
- package/dist/blocks/state-machine/index.d.ts +1 -1
- package/dist/blocks/state-machine/index.js +1 -1
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tags/index.js +1 -1
- package/dist/blocks/tasks/index.d.ts +2 -2
- package/dist/blocks/tasks/index.js +1 -1
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/teams/index.js +1 -1
- package/dist/blocks/templates/index.d.ts +2 -2
- package/dist/blocks/templates/index.js +1 -1
- package/dist/blocks/time-tracking/index.d.ts +1 -1
- package/dist/blocks/time-tracking/index.js +1 -1
- package/dist/blocks/timeline/index.d.ts +1 -1
- package/dist/blocks/trash/index.d.ts +1 -1
- package/dist/blocks/trash/index.js +1 -1
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/updated-at/index.d.ts +1 -1
- package/dist/blocks/updated-at/index.js +1 -1
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/usage/index.js +1 -1
- package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
- package/dist/blocks/vercel-marketplace/index.js +1 -1
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/versions/index.js +1 -1
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.js +1 -1
- package/dist/blocks/webhooks/index.d.ts +1 -1
- package/dist/blocks/webhooks/index.js +1 -1
- package/dist/blocks/workflow-editor/index.d.ts +4 -4
- package/dist/blocks/workflow-editor/index.js +1 -1
- package/dist/blocks/workflows/index.d.ts +4 -4
- package/dist/{channel-BjvGO39m.d.ts → channel-JcMd5lNP.d.ts} +30 -2
- package/dist/cli/{add-DMcrsWjC.js → add-B1S3yK4L.js} +18 -13
- package/dist/cli/add-BQPJnapO.js +1 -0
- package/dist/cli/{add-BinNYhFD.js → add-D7YIXslp.js} +2 -2
- package/dist/cli/{backfill-DxBB62Zr.js → backfill-BwkyNhlC.js} +4 -4
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-rxOS-Mzz.js → blocks-CBqENu3C.js} +1 -1
- package/dist/cli/{blocks-DSgTifw0.js → blocks-DDm1Zc2S.js} +2 -2
- package/dist/cli/{cache-oU0yHKf0.js → cache-DE2IH1-C.js} +1 -1
- package/dist/cli/{codemod-Dsrv_3gQ.js → codemod-OHKhVV-v.js} +4 -4
- package/dist/cli/{command-CQ61x6gN.js → command-BWEEXmtz.js} +20 -0
- package/dist/cli/{completion-Dlu5AdUW.js → completion-8EDK21xj.js} +1 -1
- package/dist/cli/{completion-BwI0_Ap5.js → completion-BfnKI4QZ.js} +2 -2
- package/dist/cli/{completion-2Y3D_eNu.js → completion-Bt7LMypX.js} +2 -2
- package/dist/cli/{config-2rwFHbwj.js → config-BJSqMi04.js} +17 -5
- package/dist/cli/{config-C6XylzKz.js → config-BlfVh0IP.js} +1 -1
- package/dist/cli/{config-CPux9Wa7.js → config-WKDixoGK.js} +1 -1
- package/dist/cli/{content-mapper-DLbXilBz.js → content-mapper-CaygHH_k.js} +2 -2
- package/dist/cli/{db-Bwrr3GHM.js → db-DYU5hUcd.js} +3 -3
- package/dist/cli/{doctor-CKt5Yyl4.js → doctor-D_nrsd9E.js} +17 -16
- package/dist/cli/{env-BBl5L8Bf.js → env-BCgVZkcb.js} +1 -1
- package/dist/cli/env-xhwXk5Ri.js +1 -0
- package/dist/cli/{gen-CeG6lbka.js → gen-D7gMEwvg.js} +22 -15
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +8 -8
- package/dist/cli/{init-DrQlf9RL.js → init-ch-HWJyp.js} +7 -7
- package/dist/cli/{keys-DGEpMbeB.js → keys-CbaL0lnw.js} +1 -1
- package/dist/cli/{live-BvWGM4c3.js → live-B38ePuRS.js} +2 -2
- package/dist/cli/{mcp-BrOnGB15.js → mcp-P9RP2SJ3.js} +3 -3
- package/dist/cli/{metadata-BNSdPuKp.js → metadata-BTihErEc.js} +3 -3
- package/dist/cli/{migration-safety-NtB3dsRU.js → migration-safety-DYo1vVWC.js} +2 -2
- package/dist/cli/{module-migration-mKhX88V_.js → migrations-BoIyGczt.js} +3 -113
- package/dist/cli/module-migration-DXvo0EqU.js +119 -0
- package/dist/cli/{moved-CsfDQcyk.js → moved-DVwgE8lV.js} +1 -1
- package/dist/cli/{parse-B9Iv_-Pf.js → parse-B079x40m.js} +1 -1
- package/dist/cli/powersync-D-0yV_L_.js +283 -0
- package/dist/cli/powersync-DXVsKkAu.js +1 -0
- package/dist/cli/{print-Dh8iuPK3.js → print-CRon4lXf.js} +2 -1
- package/dist/cli/{remove-DfFXVBRr.js → remove-D89s99ha.js} +6 -6
- package/dist/cli/{render-ChIwdIOJ.js → render-BJF9ytUi.js} +8 -5
- package/dist/cli/{run-BXx6D1aR.js → run-DmOTMa44.js} +2 -2
- package/dist/cli/{run-CLSHSVYo.js → run-jeplMBOK.js} +29 -10
- package/dist/cli/{run-D48ZEU58.js → run-x9ZY4Tm0.js} +38 -37
- package/dist/cli/{seed-CG-pA-5N.js → seed-D9mt8bnW.js} +3 -3
- package/dist/cli/seed-EPO6AvLG.js +1 -0
- package/dist/cli/{shared-D0XBFSlz.js → shared-B38Chjgd.js} +1 -1
- package/dist/cli/{skills-toUan_OV.js → skills-FXAVPLzp.js} +1 -1
- package/dist/cli/{snapshot-C6vh_n3t.js → snapshot-BXmU3IXN.js} +3 -3
- package/dist/cli/{source-args-MTLYpifA.js → source-args-DlckPVje.js} +1 -1
- package/dist/cli/{source-BZbEK5if.js → source-irttnsEb.js} +1 -1
- package/dist/cli/{spec-B4LhpI6t.js → spec-CDxfokey.js} +3 -3
- package/dist/cli/{spec-C-dhdKwa.js → spec-DzD5wMVF.js} +1 -1
- package/dist/cli/{sql-layout-26LSoifK.js → sql-layout-D8QrNvt4.js} +2 -2
- package/dist/cli/{stack-CWEHdO0b.js → stack-DgASZP0K.js} +1 -1
- package/dist/cli/{sync-CHGMZCJ5.js → sync-s1iKFIos.js} +3 -2
- package/dist/cli/{upgrade-C0dVsqNX.js → upgrade-B4FPlK-_.js} +4 -3
- package/dist/cli/{upgrade-GB9rqUGT.js → upgrade-CluxP3JJ.js} +3 -3
- package/dist/cli/{version-T507a49w.js → version-TgFM8sOd.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{composite-B7f1MMgr.d.ts → composite-C-8A8qzi.d.ts} +2 -2
- package/dist/{composite-B3TIjId4.js → composite-D24L5RIY.js} +2 -2
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.js +4 -4
- package/dist/{config-CIBc79_8.js → config-CD2OGfCG.js} +2 -1
- package/dist/{config-BVNNJwGC.js → config-mbVyJwSc.js} +3 -3
- package/dist/{context-CKCgjEDF.d.ts → context-D24k1Cpc.d.ts} +29 -4
- package/dist/{controller-CJUXhshv.d.ts → controller-BR7CZ1R9.d.ts} +1 -1
- package/dist/{conversion-DgHdDlTK.d.ts → conversion-BgtOfTaS.d.ts} +1 -1
- package/dist/create/index.d.ts +2 -2
- package/dist/create/index.js +5 -5
- package/dist/{define-block-Xxw8Hroe.d.ts → define-block-CJWiDWa5.d.ts} +10 -3
- package/dist/edge/index.d.ts +5 -5
- package/dist/edge/index.js +7 -7
- package/dist/elysia/index.d.ts +1 -1
- package/dist/elysia/index.js +1 -1
- package/dist/{email-tt2QqiSc.d.ts → email-B3YxEzwC.d.ts} +1 -1
- package/dist/{entitlements-B0jmjNLD.d.ts → entitlements-DHcNt1aF.d.ts} +1 -1
- package/dist/{events-SqJLbb8q.js → events-DuLhzjP6.js} +2 -0
- package/dist/expo/index.d.ts +1 -1
- package/dist/expo/index.js +3 -3
- package/dist/{field-errors-DqlebtTE.d.ts → field-errors-DucQdLl7.d.ts} +5 -5
- package/dist/{framework-BozTXRzt.js → framework-CNhTg0th.js} +1 -1
- package/dist/{framework-CF6zFU7a.d.ts → framework-x9Y4uB1q.d.ts} +4 -4
- 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 +4 -4
- package/dist/hono/index.js +7 -6
- package/dist/{index-Dbb7BQdi.d.ts → index-4WT_uRRL.d.ts} +14 -3
- package/dist/{index-BCeTYhFk.d.ts → index-BAcQz5DS.d.ts} +1 -1
- package/dist/{index-lB-8iPmY.d.ts → index-BH3NYExp.d.ts} +2 -2
- package/dist/{index-B8YjrfVl.d.ts → index-C0t-vNIt.d.ts} +1 -1
- package/dist/{index-DUxXdQN_.d.ts → index-C6ruLtyx.d.ts} +2 -2
- package/dist/{index-ClMN0f98.d.ts → index-XAyzdLns.d.ts} +8 -8
- package/dist/{index-BxYOB1Oc.d.ts → index-iRkFvJ7J.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{instances-QOzIz9-q.js → instances-DDt7NdVl.js} +1 -1
- package/dist/{kit-DOwKpSkA.d.ts → kit-CVgQCIBO.d.ts} +1 -1
- package/dist/{kit-5l-o8RxL.js → kit-DhlB-vv_.js} +1 -1
- package/dist/mapper/bin.js +7 -6
- package/dist/mcp/index.d.ts +9 -3
- package/dist/mcp/index.js +6 -6
- package/dist/mcp/sdk/index.d.ts +1 -1
- package/dist/mcp/sdk/index.js +2 -2
- package/dist/{methods-B3o7BFOW.js → methods-Cund9ZBe.js} +1 -1
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/nestjs/index.js +1 -1
- package/dist/next/index.d.ts +12 -12
- package/dist/next/index.js +6 -6
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +1 -1
- package/dist/{operations-Dc07aV_H.d.ts → operations-CAjMgNr9.d.ts} +1 -1
- package/dist/{options-CK5WiFwG.js → options-3OYOU56e.js} +1 -1
- package/dist/{options-xD4_FRUq.js → options-56zYYXxc.js} +1 -1
- package/dist/{options-_F-enoBs.d.ts → options-5WvWOkAm.d.ts} +1 -1
- package/dist/{options-SViK_2x2.js → options-62woPFn3.js} +1 -1
- package/dist/{options-1GgseJq5.js → options-7ixoOoap.js} +1 -1
- package/dist/{options-BZsoPJGX.js → options-9dSU5RML.js} +2 -2
- package/dist/{options-y_-AkVCs.d.ts → options-B0YZtAkb.d.ts} +1 -1
- package/dist/{options-HLwOuF2H.js → options-B2Kz_tCx.js} +2 -2
- package/dist/{options-CEMawFrr.js → options-B685YSzQ.js} +1 -1
- package/dist/{options-DWbA9buW.js → options-B692WoK6.js} +2 -2
- package/dist/options-BHU1wc74.js +5 -0
- package/dist/{options-CPK2nQER.js → options-BHy0Z5Zd.js} +2 -2
- package/dist/{options-Fz6xqu-b.js → options-BKDxrPvE.js} +2 -2
- package/dist/{options-BVg58avP.js → options-BLfymS4s.js} +2 -2
- package/dist/{options-CYV4iZiQ.js → options-BOCRbzh3.js} +1 -1
- package/dist/{options-tSsUF0-7.js → options-BQWJqwHO.js} +1 -1
- package/dist/{options-Cl9Ag2Pt.js → options-BQunK6_Y.js} +2 -2
- package/dist/{options-CljDnQt2.js → options-BQyrZjwM.js} +4 -1
- package/dist/options-BR9xTHZW.js +5 -0
- package/dist/{options-D40CQzji.js → options-BRUdd5jY.js} +1 -1
- package/dist/{options-CsGl5BLH.d.ts → options-BTmaRzx2.d.ts} +13 -5
- package/dist/{options-Li1Dyu88.d.ts → options-BUCQYAeJ.d.ts} +2 -2
- package/dist/{options-B5BU2Yg7.js → options-BawzwlmC.js} +2 -2
- package/dist/{options-BlzSfWxC.d.ts → options-BbLDAp7G.d.ts} +2 -2
- package/dist/{options-DTDxFT6J.js → options-Bc4xz5jQ.js} +2 -2
- package/dist/options-BfFC4iFE.js +8 -0
- package/dist/{options-Br1Xi2Hw.js → options-BfPsL7E2.js} +1 -1
- package/dist/{options-DYBQ973I.js → options-Bfmwwc78.js} +1 -1
- package/dist/{options-c5WCsky5.js → options-BhsdveDk.js} +2 -2
- package/dist/{options-B5woz53h.js → options-BomoTH-8.js} +2 -2
- package/dist/{options-DeNejBtq.js → options-BtjkzIVh.js} +1 -1
- package/dist/options-Bvi9bl4H.js +5 -0
- package/dist/{options-IHPg8ZoA.js → options-BwKNmaJo.js} +2 -2
- package/dist/{options-CtUUU71w.js → options-BxpLtyk-.js} +4 -6
- package/dist/{options-D_bBVCXg.js → options-BzB2QxL3.js} +1 -1
- package/dist/{options-CmraJhd9.js → options-C078wBP0.js} +1 -1
- package/dist/options-C1-pwEqm.js +5 -0
- package/dist/{options-BZOliZvb.js → options-C3AdsFJ6.js} +2 -2
- package/dist/options-C7C5OhmL.d.ts +8 -0
- package/dist/{options-CCUaRLgd.js → options-C87u6eSa.js} +1 -1
- package/dist/{options-CVSWgZpY.js → options-CBAEGxwS.js} +1 -1
- package/dist/{options-9gvPo1BC.js → options-CDUr8zzX.js} +1 -1
- package/dist/{options-DMR68VAC.js → options-CFjGxfa8.js} +2 -2
- package/dist/{options-Bf96aVk5.js → options-CI6P0xhV.js} +1 -1
- package/dist/{options-B5VUf4IT.js → options-CJFMK9A_.js} +1 -1
- package/dist/{options-CRz8Ht_4.js → options-CLpgx7en.js} +3 -2
- package/dist/{options-BesyRBnM.js → options-CTXHj9zr.js} +2 -2
- package/dist/{options-D2d1fFuw.js → options-CTl8T88w.js} +1 -1
- package/dist/{options-C3RgtOLo.js → options-CTv-xmbA.js} +2 -2
- package/dist/{options-Bpl-WFPk.js → options-CUIOOv4z.js} +1 -1
- package/dist/{options-o2kfYU2x.js → options-CZDmtsbV.js} +2 -2
- package/dist/{options-CF7nRWXS.js → options-CZTscdPB.js} +1 -1
- package/dist/{options-BlncUmIc.js → options-CZdKndeo.js} +2 -2
- package/dist/{options-DplE18Ko.d.ts → options-C_7g9TTq.d.ts} +1 -1
- package/dist/{options-C_pb1Nd3.js → options-Cb2FOFj5.js} +1 -1
- package/dist/{options-t_O5ldT6.js → options-CbOstLa7.js} +2 -2
- package/dist/{options-Bt0bYMLl.js → options-CcXgWlvm.js} +2 -2
- package/dist/{options-BMjcVuaI.js → options-CfVPctAw.js} +7 -0
- package/dist/{options-DWpz3V3F.js → options-ChiL-4ZS.js} +2 -2
- package/dist/{options-E7KcmHQv.js → options-Cjgaf8ub.js} +2 -2
- package/dist/{options-DrSkIBCD.js → options-CoSPgWKy.js} +1 -1
- package/dist/{options-Bp7sgKvl.js → options-CpZ2HlSU.js} +5 -3
- package/dist/{options-CN7PHkhU.js → options-CsSe8Nba.js} +1 -1
- package/dist/{options-B9q8CROT.js → options-CsvJR-r2.js} +1 -1
- package/dist/{options-oeAq4Ho5.js → options-Cucv6sWP.js} +2 -2
- package/dist/{options-BOOEzor9.js → options-CyjL9lTf.js} +2 -2
- package/dist/{options-pOVWwbAK.d.ts → options-D-OOO9V2.d.ts} +1 -1
- package/dist/{options-nFzfgtA6.js → options-D0Y6ZMe8.js} +1 -1
- package/dist/{options-BnZS7IK-.js → options-D0sj5abR.js} +2 -2
- package/dist/{options-0qvUckqt.js → options-D2s7fT1s.js} +2 -2
- package/dist/{options-BjtrC7o6.js → options-D32-YxnO.js} +1 -1
- package/dist/{options-B0EJULm5.js → options-D610Fa6T.js} +2 -2
- package/dist/{options-BvtnxHfK.js → options-D96dScev.js} +1 -1
- package/dist/{options-DgQo80Xh.js → options-DFpyP1bg.js} +2 -2
- package/dist/{options-BYOtaF7w.js → options-DJEcS4DX.js} +1 -1
- package/dist/{options-DPgdAXO5.js → options-DJbN3bi9.js} +2 -2
- package/dist/{options-EsUh744F.js → options-DKoQoRCy.js} +2 -2
- package/dist/{options-CvD9vNvx.js → options-DM1qaMMQ.js} +1 -1
- package/dist/{options-eBPsk4WI.js → options-DNgSwhsm.js} +2 -2
- package/dist/{options-2EMA_x6_.js → options-DOIwzRXL.js} +2 -2
- package/dist/{options-D6as77gU.d.ts → options-DRIgHh4O.d.ts} +2 -2
- package/dist/{options-DDzggjN7.js → options-DRrZmJyI.js} +2 -2
- package/dist/{options-DJ-aYPVN.js → options-DUMUsvml.js} +2 -2
- package/dist/{options-Cp0HyUEk.js → options-DWwL5Kaz.js} +1 -1
- package/dist/{options-BCrqe3HH.js → options-DZHZYlpD.js} +1 -1
- package/dist/{options-BQIYfx9F.js → options-DZLkeqWn.js} +2 -2
- package/dist/{options-RKYdmIdV.js → options-DZRpXKQE.js} +1 -1
- package/dist/{options-D0G06Zm9.js → options-D_9Vxx7f.js} +2 -2
- package/dist/{options-BMGClqoa.js → options-DcHl59RC.js} +1 -1
- package/dist/{options-CW9wTqOk.js → options-Dcaql09y.js} +1 -1
- package/dist/{options-CXFz0xxS.js → options-DcnBNYmV.js} +1 -1
- package/dist/{options-21s0dpnX.js → options-DdpM-fiP.js} +2 -2
- package/dist/{options-BbnPv6p7.js → options-DhdazgTZ.js} +2 -2
- package/dist/{options-C239TLRF.js → options-Dpy-Ruo-.js} +1 -1
- package/dist/{options-DWVYM8P0.d.ts → options-DsVuVRH3.d.ts} +1 -1
- package/dist/{options-BlOPivzq.js → options-DtAJxfHS.js} +1 -1
- package/dist/{options-DXnBN2E7.js → options-Dz9Yo52Z.js} +2 -2
- package/dist/{options-DcOx8_3X.d.ts → options-HnfETSHr.d.ts} +1 -1
- package/dist/{options-CoX6VKGb.js → options-LqUXTpML.js} +1 -1
- package/dist/options-MsloEAIB.js +5 -0
- package/dist/{options-DCduTMST.js → options-P2FxqYpd.js} +2 -2
- package/dist/options-_1gAIMq7.d.ts +60 -0
- package/dist/{options-B0FcEKtH.js → options-aT89JqlB.js} +1 -1
- package/dist/{options-Cyu0hgmN.js → options-cVKZu9b0.js} +2 -2
- package/dist/options-fMxhtuVR.js +5 -0
- package/dist/{options-BxcFLL1G.js → options-fkShrmGQ.js} +2 -2
- package/dist/{options-Ctac2R0Q.js → options-gUvfr3no.js} +2 -2
- package/dist/{options-DNKyN5uq.js → options-hynwKWuf.js} +2 -2
- package/dist/{options-CkScQRJR.js → options-lsxJYfYx.js} +2 -2
- package/dist/{options-CyAhRKKm.d.ts → options-o5wCw8H7.d.ts} +2 -2
- package/dist/{options-DARkpk2P.js → options-p49DFg3H.js} +2 -2
- package/dist/{options-zkyhM3qi.js → options-pYNpXKcg.js} +1 -1
- package/dist/{options-Cqq2jUww.js → options-qtETCHzW.js} +2 -2
- package/dist/options-rnKlqYEr.js +5 -0
- package/dist/{options-KV84gAxl.js → options-sU_zGkiV.js} +2 -2
- package/dist/{options-BfLmA375.js → options-xq4MXG1M.js} +2 -2
- package/dist/{options-BA6jV6py.js → options-zzlznRA7.js} +2 -2
- package/dist/orpc/index.d.ts +19 -8
- package/dist/orpc/index.js +60 -31
- package/dist/otel/index.d.ts +1 -1
- package/dist/otel/index.js +5 -5
- package/dist/{ports-DnpAuTvB.d.ts → ports-g0H1Kzwr.d.ts} +1 -1
- package/dist/powersync/index.d.ts +135 -2
- package/dist/powersync/index.js +333 -1
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-BIANzB5p.js → preset-B3CukUhu.js} +4 -4
- package/dist/{push-token-C_mFkYfq.d.ts → push-token-Cl2EihRc.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +5 -5
- package/dist/react-router/index.d.ts +3 -3
- package/dist/react-router/index.js +5 -5
- package/dist/realtime/index.d.ts +3 -3
- package/dist/realtime/index.js +1 -1
- package/dist/{record-form-xWvVcb86.d.ts → record-form-zMwz0Ayt.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/{refusal-ByBZcm0V.js → refusal-D48CMqpQ.js} +2 -2
- package/dist/{refusal-CSntB_x8.d.ts → refusal-OrlI3g4H.d.ts} +1 -1
- package/dist/{resource-DV2GC2dB.js → resource-R3KToNze.js} +1 -1
- package/dist/{resource-execute-DqWfEc56.d.ts → resource-execute-CKBtGL8-.d.ts} +1 -1
- package/dist/{resource-types-BIoz_ElD.d.ts → resource-types-8Q5Klkpa.d.ts} +1 -1
- package/dist/{resources-C02l_YBJ.js → resources-DqIwoQsP.js} +1 -1
- package/dist/{resources-Bt2PDKE7.d.ts → resources-DxpqenZA.d.ts} +1 -1
- package/dist/{respond-C3CcOZlA.js → respond-3RKp6VgU.js} +8 -1
- package/dist/{respond-Dn1_YhC1.d.ts → respond-oZeJ342J.d.ts} +6 -0
- package/dist/server/index.d.ts +6 -6
- package/dist/server/index.js +6 -6
- package/dist/{session-C1OuXbtN.d.ts → session-Fcft5A39.d.ts} +1 -1
- package/dist/{sign-in-B64114O4.js → sign-in-BLkRU3lc.js} +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid-start/index.d.ts +3 -3
- package/dist/solid-start/index.js +5 -5
- package/dist/spec/index.d.ts +2 -2
- package/dist/spec/index.js +1 -1
- package/dist/{spec-pins-DIx95afw.d.ts → spec-pins-BZkKfwY8.d.ts} +2 -0
- package/dist/{spec-pins-C1Vm8OBl.js → spec-pins-D3zDek-u.js} +1 -0
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +5 -5
- package/dist/{sql-ClTmzHs8.js → sql-fHTjZGqR.js} +2608 -1415
- package/dist/sql-type-iUSZpaUu.js +34 -0
- package/dist/ssr/index.d.ts +1 -1
- package/dist/{statuses-DMMDwXpZ.js → statuses-Alll5Ip6.js} +2 -2
- package/dist/storage/index.js +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/sveltekit/index.d.ts +3 -3
- package/dist/sveltekit/index.js +5 -5
- package/dist/tanstack-start/index.d.ts +3 -3
- package/dist/tanstack-start/index.js +5 -5
- package/dist/{tenant-DVvjw9H-.d.ts → tenant-DyoVYFfC.d.ts} +1 -1
- package/dist/testing/index.d.ts +7 -7
- package/dist/testing/index.js +6 -3
- package/dist/{timeline-BBfKuMVL.d.ts → timeline-CMmo0R7g.d.ts} +2 -2
- package/dist/{topic-ikV_pLTX.js → topic-J9I3yu6f.js} +1 -1
- package/dist/{topic-BtLz-qTI.d.ts → topic-nQYxoTaU.d.ts} +1 -1
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-tnfOTa3-.d.ts → watch-topic-UGSEWAqR.d.ts} +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-Bw6_u0ar.js → workflow-sdk-DELaQEp3.js} +2 -0
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +449 -69
- package/dist/cli/add-z-3pXI6C.js +0 -1
- package/dist/cli/env-CAU1nknN.js +0 -1
- package/dist/cli/seed-CUxW5Dks.js +0 -1
- package/dist/options-63AKQNv0.js +0 -5
- package/dist/options-B-cxGmRA.js +0 -5
- package/dist/options-BPDiwSa-.js +0 -5
- package/dist/options-C6rEL6U5.js +0 -8
- package/dist/options-CE93HOYi.d.ts +0 -7
- package/dist/options-CTZNpb2n.js +0 -5
- package/dist/options-CrC78Tee.js +0 -5
- package/dist/options-DINdgVih.d.ts +0 -9
- package/dist/options-DWML05Cp.js +0 -5
- package/dist/options-Q1Bzgqpr.js +0 -5
package/dist/h3/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as toResponse, i as nitroCloudflareEnv, n as bufferInPlace, t as around } from "../shared-Bf-I13Ht.js";
|
|
2
|
-
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-
|
|
2
|
+
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-D48CMqpQ.js";
|
|
3
3
|
//#region src/bridges/h3.ts
|
|
4
4
|
/**
|
|
5
5
|
* Runs an entry array as H3 2 middleware (`app.use(...)`, Nitro and Nuxt server
|
package/dist/h3/v1/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RouteGuardOptions } from "../../refusal-
|
|
1
|
+
import { n as RouteGuardOptions } from "../../refusal-OrlI3g4H.js";
|
|
2
2
|
import { t as Validated } from "../../shared-CRRfQAKG.js";
|
|
3
3
|
import { n as NodeRequestHead, t as NodeHeaderTarget } from "../../node-headers-BPtMP4_V.js";
|
|
4
4
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
package/dist/h3/v1/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../../refusal-
|
|
1
|
+
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../../refusal-D48CMqpQ.js";
|
|
2
2
|
import { t as beforeRoute } from "../../before-route-B23K2zYU.js";
|
|
3
3
|
import { n as headRequest, t as applyWebHeaders } from "../../node-headers-C71zNQHe.js";
|
|
4
4
|
//#region src/h3/v1/index.ts
|
package/dist/hono/index.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.j
|
|
|
4
4
|
import { t as BetterSupabase } from "../define-Cgru0_kF.js";
|
|
5
5
|
import { O as SessionSnapshot, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer } from "../server-types-gR4Q1aM0.js";
|
|
6
6
|
import { t as AuthSession } from "../view-DyFdMCqg.js";
|
|
7
|
-
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-
|
|
8
|
-
import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-
|
|
7
|
+
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-oZeJ342J.js";
|
|
8
|
+
import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-CVgQCIBO.js";
|
|
9
9
|
import { t as CorsOptions } from "../cors-kLq6VM06.js";
|
|
10
|
-
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-
|
|
11
|
-
import { t as defineAction } from "../resource-execute-
|
|
10
|
+
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-8Q5Klkpa.js";
|
|
11
|
+
import { t as defineAction } from "../resource-execute-CKBtGL8-.js";
|
|
12
12
|
import { i as RouteRateLimitRule, n as RateLimitVerdict, r as RateLimiter, t as RateLimitRouteOptions } from "../rate-limit-Bztf32cl.js";
|
|
13
13
|
import { AnyEntry, Contributions, ValidateEntries } from "@supabase/middleware";
|
|
14
14
|
import { Context, ErrorHandler, Hono, MiddlewareHandler } from "hono";
|
package/dist/hono/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as dbErrorOf } from "../errors-BVFgt8BZ.js";
|
|
2
2
|
import { o as problemResponse } from "../problem-Bf0cJ7tk.js";
|
|
3
|
-
import { a as unexpectedResponse, c as extendServer, n as flushEvents, s as createServer } from "../adapter-
|
|
3
|
+
import { a as unexpectedResponse, c as extendServer, n as flushEvents, s as createServer } from "../adapter-CfuBICuG.js";
|
|
4
4
|
import { l as snapshotOf, n as toSession } from "../view-C8Ve14ja.js";
|
|
5
|
-
import {
|
|
6
|
-
import { t as withBetterSupabase } from "../composite-
|
|
7
|
-
import { i as defineAction, t as defineResource } from "../resource-
|
|
8
|
-
import { i as requireCaller } from "../kit-
|
|
9
|
-
import { t as matchResource } from "../resources-
|
|
5
|
+
import { n as defaultExpose, o as respond, t as assertCookieRefresh } from "../respond-3RKp6VgU.js";
|
|
6
|
+
import { t as withBetterSupabase } from "../composite-D24L5RIY.js";
|
|
7
|
+
import { i as defineAction, t as defineResource } from "../resource-R3KToNze.js";
|
|
8
|
+
import { i as requireCaller } from "../kit-DhlB-vv_.js";
|
|
9
|
+
import { t as matchResource } from "../resources-DqIwoQsP.js";
|
|
10
10
|
import { r as handoffOf } from "../shared-Bf-I13Ht.js";
|
|
11
11
|
import { n as corsConfig } from "../cors-h_v7TPxl.js";
|
|
12
12
|
import { t as rateLimitGate } from "../rate-limit-BWKGlhTM.js";
|
|
@@ -114,6 +114,7 @@ function createHono(betterSupabase, options = {}) {
|
|
|
114
114
|
return app;
|
|
115
115
|
},
|
|
116
116
|
middleware(middlewareOptions = {}) {
|
|
117
|
+
assertCookieRefresh(middlewareOptions);
|
|
117
118
|
const run = honoMiddleware([withBetterSupabase(server, {
|
|
118
119
|
...middlewareOptions,
|
|
119
120
|
expose
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as AccessPolicySql } from "./types-DFdg_4yN.js";
|
|
2
|
-
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-
|
|
2
|
+
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-IiE__z2m.js";
|
|
3
3
|
import { tt as ReadSet } from "./define-Cgru0_kF.js";
|
|
4
|
-
import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-
|
|
4
|
+
import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-D24k1Cpc.js";
|
|
5
5
|
import { t as SubjectConfig } from "./subjects-DvmQeF_F.js";
|
|
6
6
|
//#region src/sql/render.d.ts
|
|
7
7
|
/** A module's SQL for `layout`, without header; `undefined` in custom mode. */
|
|
@@ -244,6 +244,8 @@ interface AdoptedTable {
|
|
|
244
244
|
*/
|
|
245
245
|
readonly textColumns: readonly string[];
|
|
246
246
|
}
|
|
247
|
+
/** Whether `module`'s functions write text into `logical.column` by default. */
|
|
248
|
+
declare function moduleWritesText(module: string, logical: string, column: string): boolean;
|
|
247
249
|
/**
|
|
248
250
|
* Every table of the app's that the modules in `modules` use, because
|
|
249
251
|
* `ownTables` lists it or `blocks.<name>.on` names it, with the columns their
|
|
@@ -399,6 +401,15 @@ declare function rlsTables(files: readonly {
|
|
|
399
401
|
declare function declaredTableColumns(files: readonly {
|
|
400
402
|
readonly text: string;
|
|
401
403
|
}[], schemas: readonly string[]): ReadonlyMap<string, ReadonlySet<string>>;
|
|
404
|
+
/**
|
|
405
|
+
* The declared type of each column of each `create table` in `files`, as
|
|
406
|
+
* `schema.table` to unquoted column name to type. A type is lower-cased with
|
|
407
|
+
* its spacing normalised, and a quoted part keeps its case without quotes. Only
|
|
408
|
+
* tables in `schemas` are kept.
|
|
409
|
+
*/
|
|
410
|
+
declare function declaredColumnTypes(files: readonly {
|
|
411
|
+
readonly text: string;
|
|
412
|
+
}[], schemas: readonly string[]): ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
402
413
|
/**
|
|
403
414
|
* The privileges the permissive policies in `files` imply, per table and role:
|
|
404
415
|
* `for all` gives the four commands, `to public` (or no `to`) counts for
|
|
@@ -548,4 +559,4 @@ declare function declaredPolicies(sources: readonly {
|
|
|
548
559
|
readonly text: string;
|
|
549
560
|
}[], schemas: readonly string[]): Record<string, CatalogPolicy[]>;
|
|
550
561
|
//#endregion
|
|
551
|
-
export {
|
|
562
|
+
export { BlockSqlPermissionKey as $, tenantsQuery as A, AdoptedView as B, declaredUpdatedAtTriggers as C, moduleBody as Ct, rlsTables as D, policyGrants as E, SECRET_COLUMNS as F, APP_TABLES_MARKER as G, adoptedTables as H, dataExportPlan as I, DEFAULT_ROLES as J, APP_TABLES_MODULE as K, excludedColumns as L, sameTenantColumn as M, sameTenantTrigger as N, subjectColumns as O, DataExportPlan as P, BlockSqlExtension as Q, resolveExposeColumns as R, declaredTables as S, customContracts as St, extensionSchema as T, renderBlocks as Tt, adoptedViews as U, adoptedColumnProblems as V, moduleWritesText as W, SQL_MODULES as X, instanceFunctions as Y, resolveBlocks as Z, templateFunctions as _, BlockSqlUpgradePlan as _t, scopePolicyName as a, isModuleDataFile as at, declaredColumnTypes as b, upgradePlan as bt, compileReadSet as c, moduleDataDir as ct, MigrationOptionUse as d, EntityRenameStep as dt, moduleEventTriggers as et, migrationOptionUses as f, entityRenamePlan as ft, scopeProblems as g, renamedBlock as gt, resolveProviderSql as h, formerBlockName as ht, TENANT_SCOPE_POLICY as i, blockFileState as it, expiredFlagsQuery as j, TenantQuery as k, compileReadSets as l, moduleFilePaths as lt, SCOPE_ID_TYPES as m, currentBlockName as mt, declaredPolicies as n, modulePermissionKeys as nt, hasColumnAccess as o, moduleFileVersion as ot, moduleLayout as p, BLOCK_RENAMES as pt, appTablesFiles as q, widenedCommands as r, moduleSchemaExtensions as rt, CompiledReadSet as s, sameBlockFile as st, appTablePolicyNotes as t, moduleHidingColumns as tt, sharedRolesProblems as u, EntityRenamePlan as ut, DeclaredView as v, InstalledBlock as vt, declaredViews as w, moduleTopics as wt, declaredTableColumns as x, BlockSqlTopic as xt, PolicyGrant as y, moduleDeprecations as yt, AdoptedTable as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig, ci as Preset, cr as AppColumnType, ei as PresetCatalog, hr as AppTableConfig, or as AppColumnConfig, ri as PresetGlueItem, vt as presetConfig } from "./context-
|
|
1
|
+
import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig, ci as Preset, cr as AppColumnType, ei as PresetCatalog, hr as AppTableConfig, or as AppColumnConfig, ri as PresetGlueItem, vt as presetConfig } from "./context-D24k1Cpc.js";
|
|
2
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
//#region src/preset/catalog.generated.d.ts
|
|
4
4
|
declare const PRESET_CATALOG: PresetCatalog;
|
|
@@ -2,8 +2,8 @@ import { b as DbError, f as Result } from "./result-DZeA5KS6.js";
|
|
|
2
2
|
import { $ as RecordRef, ot as SchemaMeta } from "./types-DFdg_4yN.js";
|
|
3
3
|
import { pt as QuerySpec } from "./define-Cgru0_kF.js";
|
|
4
4
|
import { t as DataChanges } from "./data-engine-BWoz9lED.js";
|
|
5
|
-
import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-
|
|
6
|
-
import { n as TopicPort } from "./watch-topic-
|
|
5
|
+
import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-nQYxoTaU.js";
|
|
6
|
+
import { n as TopicPort } from "./watch-topic-UGSEWAqR.js";
|
|
7
7
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
8
|
//#region src/realtime/relay.d.ts
|
|
9
9
|
/** The `EventSource` the relay client reads with; the browser's fits. */
|
|
@@ -5,7 +5,7 @@ import { $ as RecordRef, K as Insert, O as AnyFunctions, Z as PrimaryKeyValue, h
|
|
|
5
5
|
import { o as EventHub } from "./events-vcqenSYU.js";
|
|
6
6
|
import { A as OffsetRangeArgs, Bt as Payload, C as GetKey, Dt as CountArgs, K as WriteArgs, Nt as ListArgs, O as OffsetPage, S as FindExt, St as AggregateResult, U as UpdateArgs, W as UpsertArgs, Zt as CacheAdapter, _ as CursorPageArgs, b as DeleteArgs, ft as InferResult, g as CursorPage, k as OffsetPageArgs, kt as GetArgs, pt as QuerySpec, t as BetterSupabase, v as Db, x as DeleteExt, yt as AggregateArgs, z as Returned } from "./define-Cgru0_kF.js";
|
|
7
7
|
import { n as DataEngine, r as DataEngineOptions } from "./data-engine-BWoz9lED.js";
|
|
8
|
-
import { Dn as GeneratedBlocks, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, in as RecordBindingData, nn as AnyRecordBindingWrite, on as RecordBindingOptions, t as AnyBlock, tn as AnyRecordBinding, un as RecordBindingWriteInput } from "./define-block-
|
|
8
|
+
import { Dn as GeneratedBlocks, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, in as RecordBindingData, nn as AnyRecordBindingWrite, on as RecordBindingOptions, t as AnyBlock, tn as AnyRecordBinding, un as RecordBindingWriteInput } from "./define-block-CJWiDWa5.js";
|
|
9
9
|
import { t as BetterQueryMeta } from "./invalidate-DMp4eqfF.js";
|
|
10
10
|
import { DataTag, InfiniteData, QueryClient, SkipToken } from "@tanstack/query-core";
|
|
11
11
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -3,8 +3,8 @@ import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
|
|
|
3
3
|
import { l as PublicEnv } from "./index-NRMMhhEi.js";
|
|
4
4
|
import { g as SessionEncoding } from "./resolve-CXX6DHv3.js";
|
|
5
5
|
import { t as BetterSupabase } from "./define-Cgru0_kF.js";
|
|
6
|
-
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-
|
|
7
|
-
import { i as BindClientOptions, r as BetterClient } from "./bind-
|
|
6
|
+
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-g0H1Kzwr.js";
|
|
7
|
+
import { i as BindClientOptions, r as BetterClient } from "./bind-pu5TLrla.js";
|
|
8
8
|
import { n as FunctionContract } from "./function-contract-DxFNOmsm.js";
|
|
9
9
|
import { FunctionInvokeOptions, SupabaseClient, SupabaseClientOptions } from "@supabase/supabase-js";
|
|
10
10
|
//#region src/client/functions.d.ts
|
|
@@ -4,16 +4,16 @@ import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap,
|
|
|
4
4
|
import { pt as QuerySpec } from "./define-Cgru0_kF.js";
|
|
5
5
|
import { A as TtlPreset, C as TransformOptions, E as UrlOptions, T as UploadOptions, l as ImageTransform, tt as TemplateValues, w as UploadBody } from "./bucket-vc-QRrva.js";
|
|
6
6
|
import { m as RejectedChange, o as DataSyncState } from "./data-engine-BWoz9lED.js";
|
|
7
|
-
import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-
|
|
8
|
-
import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-
|
|
9
|
-
import { t as AuthSnapshot } from "./bind-
|
|
7
|
+
import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-C0t-vNIt.js";
|
|
8
|
+
import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-nQYxoTaU.js";
|
|
9
|
+
import { t as AuthSnapshot } from "./bind-pu5TLrla.js";
|
|
10
10
|
import { t as AuthSession } from "./view-DyFdMCqg.js";
|
|
11
|
-
import { r as LiveCountSeed, v as RelayClientOptions } from "./index-
|
|
12
|
-
import { n as Controller } from "./controller-
|
|
13
|
-
import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-
|
|
14
|
-
import { t as BlockEnv } from "./block-env-
|
|
11
|
+
import { r as LiveCountSeed, v as RelayClientOptions } from "./index-BH3NYExp.js";
|
|
12
|
+
import { n as Controller } from "./controller-BR7CZ1R9.js";
|
|
13
|
+
import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-DucQdLl7.js";
|
|
14
|
+
import { t as BlockEnv } from "./block-env-CA65ulTD.js";
|
|
15
15
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "./block-method-CiVa2G-J.js";
|
|
16
|
-
import { s as RecordFormValues, t as RecordForm } from "./record-form-
|
|
16
|
+
import { s as RecordFormValues, t as RecordForm } from "./record-form-zMwz0Ayt.js";
|
|
17
17
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
18
18
|
import { DependencyList, ReactNode, SubmitEvent } from "react";
|
|
19
19
|
import { QueryClient } from "@tanstack/query-core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RouteGuardOptions } from "./refusal-
|
|
1
|
+
import { n as RouteGuardOptions } from "./refusal-OrlI3g4H.js";
|
|
2
2
|
import { t as Validated } from "./shared-CRRfQAKG.js";
|
|
3
3
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
4
4
|
import { IncomingMessage, ServerResponse } from "node:http";
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { Q as StoragePath } from "./bucket-vc-QRrva.js";
|
|
|
11
11
|
import { a as PostgrestPlan, n as PlanLimit, o as compilePostgrest, r as PlanOrder, t as PlanFilter } from "./postgrest-z-T0l23T.js";
|
|
12
12
|
import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec, r as tableSchema, t as StandardJSONSchemaV1 } from "./table-schema-BlF6k62Q.js";
|
|
13
13
|
import { n as postgrestCompiler, t as Compiler } from "./compiler-D3UmE7ao.js";
|
|
14
|
-
import { t as SPEC_PINS } from "./spec-pins-
|
|
14
|
+
import { t as SPEC_PINS } from "./spec-pins-BZkKfwY8.js";
|
|
15
15
|
//#region src/core/error-messages.d.ts
|
|
16
16
|
/**
|
|
17
17
|
* A message for every `DbError` kind: a string, or a function of the error.
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import { n as StatsRecorder, r as recordStats, t as EMPTY_STATS } from "./stats-
|
|
|
19
19
|
import { n as toDb, t as toApp } from "./casing-DdFWEtqr.js";
|
|
20
20
|
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-Bf0cJ7tk.js";
|
|
21
21
|
import { n as tableSchema } from "./table-schema-CD8cJz_M.js";
|
|
22
|
-
import { t as SPEC_PINS } from "./spec-pins-
|
|
22
|
+
import { t as SPEC_PINS } from "./spec-pins-D3zDek-u.js";
|
|
23
23
|
import { n as scopeOperation, r as scopeSelection, t as scopeCondition } from "./scope-DgWjuXUw.js";
|
|
24
24
|
//#region src/core/error-messages.ts
|
|
25
25
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as entityNoun, i as entityNames, n as checkEntityName, s as tenantRename, t as DEFAULT_TENANT } from "./entity-naming-Dtyq5sKE.js";
|
|
2
|
-
import { E as PRESET_CATALOG, j as tenantNameOf } from "./app-tables-
|
|
2
|
+
import { E as PRESET_CATALOG, j as tenantNameOf } from "./app-tables-DyswUg6J.js";
|
|
3
3
|
//#region src/config/defaults.ts
|
|
4
4
|
/**
|
|
5
5
|
* Every default `resolveConfig` fills in. Other modules (the SQL module
|
|
@@ -2,7 +2,7 @@ import { b as DbError } from "./result-DZeA5KS6.js";
|
|
|
2
2
|
import { r as AuthState } from "./resolve-CXX6DHv3.js";
|
|
3
3
|
import { i as AuthorizationResource } from "./authorizer-B6X09otb.js";
|
|
4
4
|
import { t as AuthSession } from "./view-DyFdMCqg.js";
|
|
5
|
-
import { r as GuardOptions } from "./respond-
|
|
5
|
+
import { r as GuardOptions } from "./respond-oZeJ342J.js";
|
|
6
6
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
7
|
//#region src/server/kit.d.ts
|
|
8
8
|
/**
|
|
@@ -4,7 +4,7 @@ import { n as claimAt } from "./claims-Bp9My7XP.js";
|
|
|
4
4
|
import { t as authContext } from "./context-DBicfUNz.js";
|
|
5
5
|
import { a as isRequestMemo, r as checkPermission } from "./authorizer-BGhXaDmo.js";
|
|
6
6
|
import { n as toSession } from "./view-C8Ve14ja.js";
|
|
7
|
-
import {
|
|
7
|
+
import { i as guard, s as settle } from "./respond-3RKp6VgU.js";
|
|
8
8
|
//#region src/server/kit.ts
|
|
9
9
|
/** `FormData` as a plain object; repeated keys become arrays. */
|
|
10
10
|
function formDataObject(form) {
|
package/dist/mapper/bin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as VERSION } from "../cli/version-
|
|
2
|
-
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-
|
|
3
|
-
import { t as loadSnapshot } from "../cli/snapshot-
|
|
4
|
-
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-
|
|
5
|
-
import { i as discoverConfig, s as loadConfig } from "../cli/config-
|
|
1
|
+
import { t as VERSION } from "../cli/version-TgFM8sOd.js";
|
|
2
|
+
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-DE2IH1-C.js";
|
|
3
|
+
import { t as loadSnapshot } from "../cli/snapshot-BXmU3IXN.js";
|
|
4
|
+
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-BJF9ytUi.js";
|
|
5
|
+
import { i as discoverConfig, s as loadConfig } from "../cli/config-BJSqMi04.js";
|
|
6
6
|
import { i as parseEnv, n as configEnvironment } from "../cli/env-DMgjB_4y.js";
|
|
7
|
-
import { s as schemaStampPath } from "../cli/content-mapper-
|
|
7
|
+
import { s as schemaStampPath } from "../cli/content-mapper-CaygHH_k.js";
|
|
8
8
|
import { existsSync, realpathSync } from "node:fs";
|
|
9
9
|
import { basename, dirname, join, resolve } from "node:path";
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
@@ -122,6 +122,7 @@ const SPEC_PINS = {
|
|
|
122
122
|
scim: "2.0",
|
|
123
123
|
supabaseSdkCapabilities: "1.14.0",
|
|
124
124
|
aiMessage: "1",
|
|
125
|
+
powersyncSyncStreams: "2",
|
|
125
126
|
aiSdkUiMessageStream: "v1",
|
|
126
127
|
anthropicMemoryTool: "20250818",
|
|
127
128
|
rfc5545: "2009-09",
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
|
|
2
|
-
import { t as OperationTable } from "../operations-
|
|
2
|
+
import { t as OperationTable } from "../operations-CAjMgNr9.js";
|
|
3
3
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
4
4
|
import { t as BetterSupabase } from "../define-Cgru0_kF.js";
|
|
5
5
|
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-gR4Q1aM0.js";
|
|
6
|
-
import { r as GuardOptions } from "../respond-
|
|
6
|
+
import { r as GuardOptions } from "../respond-oZeJ342J.js";
|
|
7
7
|
import { D as ResourceOperation } from "../model-hwpvole9.js";
|
|
8
|
-
import { l as ResourceRouteOptions } from "../resource-types-
|
|
8
|
+
import { l as ResourceRouteOptions } from "../resource-types-8Q5Klkpa.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
//#region src/mcp/dialect.d.ts
|
|
11
11
|
/**
|
|
@@ -215,6 +215,12 @@ interface McpOptions<M extends AnyModels, F extends AnyFunctions, E, C = unknown
|
|
|
215
215
|
* ```
|
|
216
216
|
*/
|
|
217
217
|
readonly requiredRoles?: RequiredRoles;
|
|
218
|
+
/**
|
|
219
|
+
* Read the session cookie. Defaults to false: MCP clients send bearer tokens,
|
|
220
|
+
* and a cookie would let any page the user visits call the tools. Turn it on
|
|
221
|
+
* only together with `allowedOrigins`.
|
|
222
|
+
*/
|
|
223
|
+
readonly cookies?: boolean;
|
|
218
224
|
/**
|
|
219
225
|
* Origins allowed to call the server (DNS rebinding protection). Defaults to
|
|
220
226
|
* any.
|
package/dist/mcp/index.js
CHANGED
|
@@ -3,16 +3,16 @@ import { a as ok } from "../result-ntFBW2p2.js";
|
|
|
3
3
|
import { t as base64ToText } from "../base64-B9Wlsdj7.js";
|
|
4
4
|
import { n as validate } from "../standard-BA3mLh6w.js";
|
|
5
5
|
import { a as methodNotAllowed, c as toProblem, o as problemResponse } from "../problem-Bf0cJ7tk.js";
|
|
6
|
-
import { t as SPEC_PINS } from "../spec-pins-
|
|
6
|
+
import { t as SPEC_PINS } from "../spec-pins-D3zDek-u.js";
|
|
7
7
|
import { r as toDraft07, t as buildJsonSchema } from "../json-schema-Ca6gYbEP.js";
|
|
8
8
|
import { r as operationPermission, t as OPERATION_PREFIXES } from "../operations-DVHRHvv6.js";
|
|
9
|
-
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-
|
|
9
|
+
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-CfuBICuG.js";
|
|
10
10
|
import { n as checkEach, r as checkPermission } from "../authorizer-BGhXaDmo.js";
|
|
11
11
|
import { n as jsonResponse, t as jsonReplacer } from "../json-DaByVJpw.js";
|
|
12
|
-
import {
|
|
12
|
+
import { i as guard, n as defaultExpose, s as settle } from "../respond-3RKp6VgU.js";
|
|
13
13
|
import { t as boundedTtlCache } from "../ttl-cache-Bhr9swjT.js";
|
|
14
|
-
import { t as defineResource } from "../resource-
|
|
15
|
-
import { r as hasRole } from "../kit-
|
|
14
|
+
import { t as defineResource } from "../resource-R3KToNze.js";
|
|
15
|
+
import { r as hasRole } from "../kit-DhlB-vv_.js";
|
|
16
16
|
import { t as withExtra } from "../extra-CGQ2_q3S.js";
|
|
17
17
|
import { r as pageSchema, t as pageInputSchema } from "../resource-schemas-up6bKOUi.js";
|
|
18
18
|
import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "../http-DzbloBR-.js";
|
|
@@ -629,7 +629,7 @@ function createMcp(betterSupabase, options) {
|
|
|
629
629
|
if (request.method !== "POST") return methodNotAllowed(cors ? ["POST", "OPTIONS"] : ["POST"]);
|
|
630
630
|
const header = request.headers.get("mcp-protocol-version");
|
|
631
631
|
if (header && !SUPPORTED_VERSIONS.includes(header)) return unsupportedVersion(null, header);
|
|
632
|
-
const ctx = await server.context(request, { cookies: false });
|
|
632
|
+
const ctx = await server.context(request, { cookies: options.cookies ?? false });
|
|
633
633
|
const denied = guard(ctx.auth, options.allow, options.aal, options.requiredScopes);
|
|
634
634
|
if (denied) return refuse(request, denied);
|
|
635
635
|
const roleDenied = missingRole(ctx.auth, options.requiredRoles);
|
package/dist/mcp/sdk/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { i as CredentialRef, r as CredentialProvider } from "../../provider-CqwE
|
|
|
4
4
|
import { i as SupabaseMcpScope, n as SupabaseMcpModule, r as SupabaseMcpPlatformModule, t as SupabaseMcpFeature } from "../../supabase-mcp-Z4vtsuoO.js";
|
|
5
5
|
import { t as BetterSupabase } from "../../define-Cgru0_kF.js";
|
|
6
6
|
import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-gR4Q1aM0.js";
|
|
7
|
-
import { r as GuardOptions, t as AllowedCaller } from "../../respond-
|
|
7
|
+
import { r as GuardOptions, t as AllowedCaller } from "../../respond-oZeJ342J.js";
|
|
8
8
|
import { AuthInfo, CallToolResult, Icon, InputRequiredResult, OAuthTokenVerifier, RegisteredTool, ScopeChallengeHandler, ServerContext, StandardSchemaWithJSON, ToolAnnotations } from "@modelcontextprotocol/server";
|
|
9
9
|
//#region src/mcp/sdk/sdk.d.ts
|
|
10
10
|
interface McpAuthOptions extends ServerOptions, Omit<GuardOptions, "scopes"> {
|
package/dist/mcp/sdk/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
2
2
|
import { o as problemResponse } from "../../problem-Bf0cJ7tk.js";
|
|
3
3
|
import { i as delegationOf } from "../../actor-go7p9-CJ.js";
|
|
4
|
-
import { c as extendServer, i as resolveToken, n as flushEvents, s as createServer } from "../../adapter-
|
|
5
|
-
import {
|
|
4
|
+
import { c as extendServer, i as resolveToken, n as flushEvents, s as createServer } from "../../adapter-CfuBICuG.js";
|
|
5
|
+
import { i as guard } from "../../respond-3RKp6VgU.js";
|
|
6
6
|
import { t as withExtra } from "../../extra-CGQ2_q3S.js";
|
|
7
7
|
import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "../../http-DzbloBR-.js";
|
|
8
8
|
import { n as loadSupabaseMcp, r as loadSupabaseMcpPlatform, t as isRecord } from "../../supabase-mcp-Dz9DgrKP.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as blockOptions, r as option } from "./options-
|
|
1
|
+
import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
|
|
2
2
|
//#region src/blocks/security-events/options.ts
|
|
3
3
|
const securityEventsSqlOptions = blockOptions({ retention: option.string({ default: "7 days" }) });
|
|
4
4
|
//#endregion
|
package/dist/nestjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as RouteGuardOptions } from "../refusal-
|
|
1
|
+
import { n as RouteGuardOptions } from "../refusal-OrlI3g4H.js";
|
|
2
2
|
import { t as Validated } from "../shared-CRRfQAKG.js";
|
|
3
|
-
import { l as ToNodeOptions } from "../index-
|
|
3
|
+
import { l as ToNodeOptions } from "../index-iRkFvJ7J.js";
|
|
4
4
|
import { AnyEntry } from "@supabase/middleware";
|
|
5
5
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
6
6
|
//#region src/nestjs/index.d.ts
|
package/dist/nestjs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-
|
|
1
|
+
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-D48CMqpQ.js";
|
|
2
2
|
import { t as beforeRoute } from "../before-route-B23K2zYU.js";
|
|
3
3
|
import { t as applyWebHeaders } from "../node-headers-C71zNQHe.js";
|
|
4
4
|
import { n as toWebRequest, t as sendWebResponse } from "../http-BjjojWg3.js";
|
package/dist/next/index.d.ts
CHANGED
|
@@ -6,23 +6,23 @@ import { J as DbStats, Zt as CacheAdapter, pt as QuerySpec, t as BetterSupabase,
|
|
|
6
6
|
import { A as isSessionSnapshot, M as sessionCacheKey, O as SessionSnapshot, a as ServerContext, c as ServerOptions, j as issuedAtOf, k as authzVersionOf, l as SharedServer, n as BetterServer, r as ContextOptions } from "../server-types-gR4Q1aM0.js";
|
|
7
7
|
import { n as Impersonator } from "../impersonation-YTa9dZUv.js";
|
|
8
8
|
import { n as AmrEntry, t as Aal } from "../mfa-oIOYTpvc.js";
|
|
9
|
-
import { S as BlockClientSource, on as RecordBindingOptions } from "../define-block-
|
|
10
|
-
import { M as BindingName, N as BindingOf, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "../index-
|
|
11
|
-
import { t as tenantOf } from "../tenant-
|
|
9
|
+
import { S as BlockClientSource, on as RecordBindingOptions } from "../define-block-CJWiDWa5.js";
|
|
10
|
+
import { M as BindingName, N as BindingOf, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "../index-C0t-vNIt.js";
|
|
11
|
+
import { t as tenantOf } from "../tenant-DyoVYFfC.js";
|
|
12
12
|
import { n as toSession, t as AuthSession } from "../view-DyFdMCqg.js";
|
|
13
13
|
import { a as SupportPolicy, c as supportSessions, i as SupportOptions, o as SupportSessions, s as SupportStartRequest, t as ActiveSupport } from "../support-B4ZBVxt3.js";
|
|
14
|
-
import { t as AuthOutageHook } from "../session-
|
|
15
|
-
import { n as AuthKind, r as GuardOptions } from "../respond-
|
|
16
|
-
import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, r as ActionResult, t as ActionInput } from "../kit-
|
|
14
|
+
import { t as AuthOutageHook } from "../session-Fcft5A39.js";
|
|
15
|
+
import { n as AuthKind, r as GuardOptions } from "../respond-oZeJ342J.js";
|
|
16
|
+
import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, r as ActionResult, t as ActionInput } from "../kit-CVgQCIBO.js";
|
|
17
17
|
import { c as ListParseOptions, m as ListSearchParams } from "../list-query-DxjuIHEL.js";
|
|
18
|
-
import { r as LiveCountSeed, t as CountRunner } from "../index-
|
|
19
|
-
import { r as MembershipClaim } from "../entitlements-
|
|
20
|
-
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-
|
|
21
|
-
import { t as ResourceMap } from "../resources-
|
|
22
|
-
import { t as defineAction } from "../resource-execute-
|
|
18
|
+
import { r as LiveCountSeed, t as CountRunner } from "../index-BH3NYExp.js";
|
|
19
|
+
import { r as MembershipClaim } from "../entitlements-DHcNt1aF.js";
|
|
20
|
+
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-8Q5Klkpa.js";
|
|
21
|
+
import { t as ResourceMap } from "../resources-DxpqenZA.js";
|
|
22
|
+
import { t as defineAction } from "../resource-execute-CKBtGL8-.js";
|
|
23
23
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
|
|
24
24
|
import { i as tagFor, t as TagOptions } from "../tags-sM-CH9Mn.js";
|
|
25
|
-
import { c as RecordListCells, n as Timeline, o as RecordList, u as RecordListPage } from "../timeline-
|
|
25
|
+
import { c as RecordListCells, n as Timeline, o as RecordList, u as RecordListPage } from "../timeline-CMmo0R7g.js";
|
|
26
26
|
import { r as safeRedirectPath } from "../sign-in-BAjR49fq.js";
|
|
27
27
|
import { n as supportOf, t as SupportView } from "../support-view-BYOgwXsJ.js";
|
|
28
28
|
import { NextRequest } from "next/server.js";
|
package/dist/next/index.js
CHANGED
|
@@ -13,16 +13,16 @@ import { a as recordCan, c as recordWriteInput, i as plainData, l as runBindingW
|
|
|
13
13
|
import { n as methodOf } from "../block-method-C9hWdHom.js";
|
|
14
14
|
import { t as tenantOf } from "../tenant-BgIiMQpo.js";
|
|
15
15
|
import { t as loadTimeline } from "../timeline--VU3A1e4.js";
|
|
16
|
-
import { T as serverCore, b as isPrefetch, c as extendServer, n as flushEvents, p as supportCookieMaxAge, r as handle, s as createServer, t as bearerRequest, v as outageResponse } from "../adapter-
|
|
16
|
+
import { T as serverCore, b as isPrefetch, c as extendServer, n as flushEvents, p as supportCookieMaxAge, r as handle, s as createServer, t as bearerRequest, v as outageResponse } from "../adapter-CfuBICuG.js";
|
|
17
17
|
import { g as sessionCookieName, t as clientIp, v as writeSession } from "../resolve-B0mW2m7f.js";
|
|
18
18
|
import { a as isSessionSnapshot, f as checkAal, i as authzVersionOf, n as toSession, o as issuedAtOf, s as sessionCacheKey } from "../view-C8Ve14ja.js";
|
|
19
|
-
import {
|
|
20
|
-
import { i as supportSessions, n as passwordGrant, r as safeRedirectPath, t as needsMfa } from "../sign-in-
|
|
21
|
-
import { i as defineAction } from "../resource-
|
|
19
|
+
import { i as guard, n as defaultExpose, s as settle } from "../respond-3RKp6VgU.js";
|
|
20
|
+
import { i as supportSessions, n as passwordGrant, r as safeRedirectPath, t as needsMfa } from "../sign-in-BLkRU3lc.js";
|
|
21
|
+
import { i as defineAction } from "../resource-R3KToNze.js";
|
|
22
22
|
import { r as tagFor, t as cacheTagsOf } from "../tags-CIZTqtlY.js";
|
|
23
|
-
import { i as requireCaller, n as formDataObject, t as authorizeCaller } from "../kit-
|
|
23
|
+
import { i as requireCaller, n as formDataObject, t as authorizeCaller } from "../kit-DhlB-vv_.js";
|
|
24
24
|
import { t as withExtra } from "../extra-CGQ2_q3S.js";
|
|
25
|
-
import { n as resourceRouter } from "../resources-
|
|
25
|
+
import { n as resourceRouter } from "../resources-DqIwoQsP.js";
|
|
26
26
|
import { cache } from "react";
|
|
27
27
|
import { cacheLife, cacheTag, io, revalidateTag, updateTag } from "next/cache.js";
|
|
28
28
|
import { cookies, headers } from "next/headers.js";
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RouteGuardOptions } from "../refusal-
|
|
1
|
+
import { n as RouteGuardOptions } from "../refusal-OrlI3g4H.js";
|
|
2
2
|
import { i as toWebHeaders, r as applyWebHeaders, t as NodeHeaderTarget } from "../node-headers-BPtMP4_V.js";
|
|
3
|
-
import { _ as toNodeHandler, a as FastifyReplyLike, b as toWebRequest, c as KoaMiddleware, d as guard, f as koaGuard, g as toKoa, h as toFastify, i as FastifyHook, l as ToNodeOptions, m as toExpress, n as ExpressMiddleware, o as FastifyRequestLike, p as problemErrorHandler, r as ExpressResponse, s as KoaContextLike, t as ExpressErrorHandler, u as fastifyGuard, v as WebRequestOptions, y as sendWebResponse } from "../index-
|
|
3
|
+
import { _ as toNodeHandler, a as FastifyReplyLike, b as toWebRequest, c as KoaMiddleware, d as guard, f as koaGuard, g as toKoa, h as toFastify, i as FastifyHook, l as ToNodeOptions, m as toExpress, n as ExpressMiddleware, o as FastifyRequestLike, p as problemErrorHandler, r as ExpressResponse, s as KoaContextLike, t as ExpressErrorHandler, u as fastifyGuard, v as WebRequestOptions, y as sendWebResponse } from "../index-iRkFvJ7J.js";
|
|
4
4
|
export { ExpressErrorHandler, ExpressMiddleware, ExpressResponse, FastifyHook, FastifyReplyLike, FastifyRequestLike, KoaContextLike, KoaMiddleware, type NodeHeaderTarget, type RouteGuardOptions, ToNodeOptions, type WebRequestOptions, applyWebHeaders, fastifyGuard, guard, koaGuard, problemErrorHandler, sendWebResponse, toExpress, toFastify, toKoa, toNodeHandler, toWebHeaders, toWebRequest };
|
package/dist/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as toResponse, t as around } from "../shared-Bf-I13Ht.js";
|
|
2
|
-
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-
|
|
2
|
+
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-D48CMqpQ.js";
|
|
3
3
|
import { t as beforeRoute } from "../before-route-B23K2zYU.js";
|
|
4
4
|
import { i as toWebHeaders, t as applyWebHeaders } from "../node-headers-C71zNQHe.js";
|
|
5
5
|
import { n as toWebRequest, t as sendWebResponse } from "../http-BjjojWg3.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as AuthorizationOperation } from "./authorization-
|
|
1
|
+
import { r as AuthorizationOperation } from "./authorization-IiE__z2m.js";
|
|
2
2
|
//#region src/core/operations.d.ts
|
|
3
3
|
/** Operations by name, as `authorization.operations` or a module's own defaults. */
|
|
4
4
|
type OperationTable = Readonly<Record<string, AuthorizationOperation>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as blockOptions, r as option } from "./options-
|
|
1
|
+
import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
|
|
2
2
|
//#region src/blocks/sso/options.ts
|
|
3
3
|
const ssoSqlOptions = blockOptions({
|
|
4
4
|
txtPrefix: option.string({ default: "_better-supabase" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as blockOptions, r as option } from "./options-
|
|
1
|
+
import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
|
|
2
2
|
//#region src/blocks/passes/options.ts
|
|
3
3
|
const passesSqlOptions = blockOptions({
|
|
4
4
|
checkInOpens: option.string({ default: "1 hour" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as blockOptions, r as option } from "./options-
|
|
1
|
+
import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
|
|
2
2
|
//#region src/blocks/outbox/options.ts
|
|
3
3
|
const outboxSqlOptions = blockOptions({
|
|
4
4
|
defaultSource: option.string({ default: "" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as blockOptions, r as option } from "./options-
|
|
1
|
+
import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
|
|
2
2
|
//#region src/blocks/content/options.ts
|
|
3
3
|
const contentSqlOptions = blockOptions({
|
|
4
4
|
types: option.strings({ default: ["page", "post"] }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as blockOptions, r as option } from "./options-
|
|
1
|
+
import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
|
|
2
2
|
//#region src/blocks/promotions/options.ts
|
|
3
|
-
const promotionsSqlOptions = blockOptions({ extraColumns: option.
|
|
3
|
+
const promotionsSqlOptions = blockOptions({ extraColumns: option.extraColumns() });
|
|
4
4
|
//#endregion
|
|
5
5
|
export { promotionsSqlOptions as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as blockOptions, r as option } from "./options-
|
|
1
|
+
import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
|
|
2
2
|
//#region src/blocks/queue/options.ts
|
|
3
3
|
const queueSqlOptions = blockOptions({
|
|
4
4
|
backend: option.string({ default: "pgmq" }),
|
|
5
5
|
scheduler: option.string({ default: "pg_cron" })
|
|
6
6
|
});
|
|
7
7
|
const rateLimitSqlOptions = blockOptions({ preRequest: option.boolean({ default: true }) });
|
|
8
|
-
const webhookInboxSqlOptions = blockOptions({ extraColumns: option.
|
|
8
|
+
const webhookInboxSqlOptions = blockOptions({ extraColumns: option.extraColumns() });
|
|
9
9
|
//#endregion
|
|
10
10
|
export { rateLimitSqlOptions as n, webhookInboxSqlOptions as r, queueSqlOptions as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as blockOptions, r as option } from "./options-
|
|
1
|
+
import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
|
|
2
2
|
//#region src/blocks/oauth-server/options.ts
|
|
3
3
|
const oauthServerSqlOptions = blockOptions({ clientIdPattern: option.string() });
|
|
4
4
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as blockOptions, r as option } from "./options-
|
|
1
|
+
import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
|
|
2
2
|
//#region src/blocks/trash/options.ts
|
|
3
3
|
const trashSqlOptions = blockOptions({
|
|
4
4
|
retentionDays: option.number({ default: 30 }),
|
|
5
|
-
extraColumns: option.
|
|
5
|
+
extraColumns: option.extraColumns(),
|
|
6
6
|
deletedAt: option.string({ default: "deleted_at" })
|
|
7
7
|
});
|
|
8
8
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as blockOptions, r as option } from "./options-
|
|
1
|
+
import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
|
|
2
2
|
//#region src/blocks/signatures/options.ts
|
|
3
|
-
const signaturesSqlOptions = blockOptions({ extraColumns: option.
|
|
3
|
+
const signaturesSqlOptions = blockOptions({ extraColumns: option.extraColumns() });
|
|
4
4
|
//#endregion
|
|
5
5
|
export { signaturesSqlOptions as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as blockOptions, r as option } from "./options-
|
|
1
|
+
import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
|
|
2
2
|
//#region src/blocks/templates/options.ts
|
|
3
|
-
const templatesSqlOptions = blockOptions({ extraColumns: option.
|
|
3
|
+
const templatesSqlOptions = blockOptions({ extraColumns: option.extraColumns() });
|
|
4
4
|
//#endregion
|
|
5
5
|
export { templatesSqlOptions as t };
|