better-supabase 0.25.0 → 0.29.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-bjWFUWlk.js → access-sql-CTDNuxRv.js} +177 -12
- package/dist/{agents-CMIB3802.d.ts → agents-CM_cCtcr.d.ts} +4 -4
- package/dist/{ai-cache-2LGgaT7F.d.ts → ai-cache-BTGqckta.d.ts} +4 -4
- package/dist/{ai-chat-BCaKsvLW.d.ts → ai-chat-B7_vQvxU.d.ts} +4 -4
- package/dist/{ai-schedules-yGZH-vQb.d.ts → ai-schedules-CZEfo-_M.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 +1 -1
- 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-B1OkIWdx.d.ts → api-59rv5hL6.d.ts} +5 -5
- package/dist/{api-keys-ClhKBDcc.d.ts → api-keys-JE-aykZE.d.ts} +4 -4
- package/dist/{app-tables-xij_MI5H.d.ts → app-tables-DekyKNQ8.d.ts} +1 -1
- package/dist/{approvals-C5fmPLsH.d.ts → approvals-BfEafAzt.d.ts} +5 -5
- package/dist/{assistant-ndGdOBax.d.ts → assistant-B49qATbj.d.ts} +2 -2
- package/dist/astro/index.d.ts +7 -7
- package/dist/{authorization-BJV2i8xB.d.ts → authorization-C7nuWMuB.d.ts} +27 -6
- package/dist/{authorization-hooks-DtzreCAq.d.ts → authorization-hooks-BWhkMZfH.d.ts} +2 -2
- package/dist/better-result/index.d.ts +3 -3
- package/dist/{bind-vKDmdu_4.d.ts → bind-DmUGUsBd.d.ts} +7 -7
- package/dist/{block-env-wVLz0KMV.d.ts → block-env-DWtZsqhH.d.ts} +4 -4
- package/dist/{block-helpers-CRpAHrp_.d.ts → block-helpers-D5emQ2O6.d.ts} +1 -1
- package/dist/{block-hooks-DZN2w69m.d.ts → block-hooks-B8itxzEE.d.ts} +2 -2
- package/dist/{block-subjects-CphkQPxp.d.ts → block-subjects-C1_9DkSA.d.ts} +1 -1
- package/dist/{block-transport-DWZSJrwN.d.ts → block-transport-9EUA3q_I.d.ts} +2 -2
- package/dist/blocks/access-requests/index.d.ts +5 -5
- package/dist/blocks/activities/index.d.ts +10 -10
- package/dist/blocks/activities/index.js +1 -1
- 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 +7 -7
- 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 +6 -6
- 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 +12 -12
- package/dist/blocks/collections/index.js +1 -1
- 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 +7 -7
- package/dist/blocks/contacts/index.js +1 -1
- 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/custom-fields/index.js +1 -1
- 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 +7 -7
- 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 +7 -7
- package/dist/blocks/employees/index.d.ts +8 -8
- package/dist/blocks/employees/index.js +1 -1
- 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/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/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 +7 -7
- 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 +7 -7
- 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/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 +12 -12
- package/dist/blocks/notifications/index.js +1 -1
- 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/outbox/index.d.ts +4 -4
- package/dist/blocks/passes/index.d.ts +8 -8
- package/dist/blocks/permissions/index.d.ts +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 +6 -6
- package/dist/blocks/queue/index.d.ts +6 -6
- package/dist/blocks/quotes/index.d.ts +8 -8
- package/dist/blocks/rank/index.d.ts +5 -5
- 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 +9 -9
- package/dist/blocks/reminders/index.js +1 -1
- 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 +8 -8
- package/dist/blocks/security-events/index.d.ts +7 -7
- package/dist/blocks/segments/index.d.ts +8 -8
- 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 +10 -10
- package/dist/blocks/tasks/index.js +1 -1
- 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 +14 -14
- package/dist/blocks/webhooks/index.js +1 -1
- package/dist/blocks/workflow-editor/index.d.ts +9 -9
- package/dist/blocks/workflows/index.d.ts +7 -7
- package/dist/{bookings-CVw5-Q0Z.d.ts → bookings-xsmM2TA_.d.ts} +3 -3
- package/dist/{bucket-vc-QRrva.d.ts → bucket-SvRQwYS4.d.ts} +1 -1
- package/dist/chat-sdk/index.d.ts +6 -6
- package/dist/cli/{add-C2pNvVpu.js → add-BKkV99g9.js} +2 -2
- package/dist/cli/{add-BTVrOGJF.js → add-CrQ3jS7t.js} +55 -88
- package/dist/cli/add-CwhrRJz5.js +1 -0
- package/dist/cli/app-table-files-PnPOpuB4.js +346 -0
- package/dist/cli/{backfill-BicVPugb.js → backfill-DDDLhinm.js} +4 -4
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-sScN-ik-.js → blocks-BCVcjvbm.js} +1 -1
- package/dist/cli/{blocks-BmYOH4T-.js → blocks-tRfYx_mh.js} +2 -2
- package/dist/cli/{cache-1TfBy2K4.js → cache-DQZ09YOg.js} +1 -1
- package/dist/cli/{codemod-ylE6wGLo.js → codemod-HKuwQmi_.js} +5 -5
- package/dist/cli/{command-BWEEXmtz.js → command-DIPmo0wh.js} +37 -1
- package/dist/cli/{completion-Bt7LMypX.js → completion-DxPxMtyP.js} +2 -2
- package/dist/cli/{completion-8EDK21xj.js → completion-DyLMSjOD.js} +1 -1
- package/dist/cli/{completion-BfnKI4QZ.js → completion-FUgqm2-N.js} +2 -2
- package/dist/cli/{config-WKDixoGK.js → config-BfapErxs.js} +1 -1
- package/dist/cli/{config-BVfeG3A5.js → config-Cskysxp-.js} +327 -16
- package/dist/cli/{config-CeaQMrvS.js → config-Df5cXWNN.js} +1 -1
- package/dist/cli/{config-group-C8tjut39.js → config-group-CP-B9uRt.js} +2 -3
- package/dist/cli/{content-mapper-hUW2nb92.js → content-mapper-B0ehR7K-.js} +2 -2
- package/dist/cli/{db-DwjyUbAh.js → db-CWvH1_46.js} +38 -14
- package/dist/cli/{doctor-D3WKFBSv.js → doctor-CXJOhwLB.js} +36 -33
- package/dist/cli/{env-DMgjB_4y.js → env-BK0xKMeU.js} +1 -2
- package/dist/cli/{env-BCgVZkcb.js → env-BM242BCV.js} +2 -2
- package/dist/cli/{env-C-Bl6Awn.js → env-Bat6ogep.js} +1 -1
- package/dist/cli/env-uqfUbUzk.js +1 -0
- package/dist/cli/{exec--Q1ZEWUW.js → exec-Ca5s-ygi.js} +1 -1
- package/dist/cli/{gen-CqsUdsB2.js → gen-B7rw4j19.js} +16 -16
- package/dist/cli/in-stack-diff-Cp-tVPj2.js +186 -0
- package/dist/cli/index.d.ts +9 -3
- package/dist/cli/index.js +8 -8
- package/dist/cli/{init-DryZ5Mp1.js → init-C1bXXB_P.js} +131 -12
- package/dist/cli/{keys-CbaL0lnw.js → keys-V-HcO-21.js} +1 -1
- package/dist/cli/{live-Di45imoV.js → live-PpAh9pAc.js} +2 -2
- package/dist/cli/{mcp-BklC-3eK.js → mcp-BRNAchdH.js} +6 -14
- package/dist/cli/{metadata-7PsBF5Xw.js → metadata-dAAKb_kR.js} +3 -3
- package/dist/cli/migrate-BWYXFnaW.js +46 -0
- package/dist/cli/{migration-safety-Doy9qYO8.js → migration-safety-DGQswWZy.js} +2 -2
- package/dist/cli/migrations-Cqk-lJwu.js +117 -0
- package/dist/cli/{module-migration-ZIn1NCMi.js → module-migration-8-hMiZtW.js} +2 -2
- package/dist/cli/{moved-DVwgE8lV.js → moved-DNOtp9LA.js} +1 -1
- package/dist/cli/{parse-B079x40m.js → parse-BPf3kGnc.js} +1 -1
- package/dist/cli/{powersync-BRGXOCJ0.js → powersync-BWQ-8T3G.js} +4 -3
- package/dist/cli/powersync-CbYxLsjv.js +1 -0
- package/dist/cli/{print-Dfqd4DB-.js → print-DSTnq5xz.js} +2 -2
- package/dist/cli/{migrations-JtsPYv8g.js → providers-Cjf5iOp5.js} +4 -116
- package/dist/cli/{remove-CQzSCYTu.js → remove-CwG8cPv1.js} +7 -7
- package/dist/cli/{render-DWRz-uPQ.js → render-B18iAdsT.js} +9 -6
- package/dist/cli/{run-DPLedqTF.js → run-C2Yg5MWt.js} +42 -40
- package/dist/cli/{run-DmOTMa44.js → run-CvPl8iQd.js} +4 -4
- package/dist/cli/{run-j54rk2w-.js → run-Wx_2Acgv.js} +11 -11
- package/dist/cli/seed-BOun22-k.js +1 -0
- package/dist/cli/{seed-BMynpMPy.js → seed-CDnL4Tnc.js} +3 -3
- package/dist/cli/{shared-CslNcs-R.js → shared-BHbtUOvh.js} +1 -1
- package/dist/cli/{skills-FXAVPLzp.js → skills-DM3oeIxY.js} +1 -1
- package/dist/cli/{snapshot-DdN5GlhH.js → snapshot-CXgsUPGj.js} +3 -3
- package/dist/cli/{source-COARbqch.js → source-B6aMAoEK.js} +1 -1
- package/dist/cli/{source-args-CDmmFmFG.js → source-args-v8ljFDfc.js} +1 -1
- package/dist/cli/{spec-CgLNZc_C.js → spec-BcYic005.js} +3 -3
- package/dist/cli/{spec-DIhBQlBF.js → spec-EO0TP84d.js} +1 -1
- package/dist/cli/{sql-layout-8jrP5gIa.js → sql-layout-CkxDNVEH.js} +21 -7
- package/dist/cli/{stack-DgASZP0K.js → stack-ClESAZYf.js} +3 -3
- package/dist/cli/{stack-status-B_Ipd_-z.js → stack-status-BkkYRlXG.js} +1 -1
- package/dist/cli/{stacks-BYlQ96WS.js → stacks-CiDBH1dB.js} +1 -1
- package/dist/cli/{sync-SqyVHRSJ.js → sync-pq6gmlhG.js} +4 -3
- package/dist/cli/table-dyKddjwo.js +89 -0
- package/dist/cli/{upgrade-D0aLhluU.js → upgrade-BoHb4h9P.js} +3 -3
- package/dist/cli/{upgrade-CY-vj_qh.js → upgrade-Dp9p7A69.js} +5 -4
- package/dist/cli/{version-Bhca9D6q.js → version-CQHFm-ak.js} +1 -1
- package/dist/client/index.d.ts +6 -6
- package/dist/client/native/index.d.ts +5 -5
- package/dist/{cloud-event-DcJwder2.d.ts → cloud-event-0pQ9vFNS.d.ts} +1 -1
- package/dist/{compiler-D3UmE7ao.d.ts → compiler-BEeVWXPS.d.ts} +2 -2
- package/dist/{composite-CWJvZgni.d.ts → composite-BJ9s-IJJ.d.ts} +7 -7
- package/dist/config/index.d.ts +5 -5
- package/dist/config/index.js +5 -5
- package/dist/{config-C19McoGo.js → config-bqKaPjst.js} +7 -28
- package/dist/{config-CP-WaboC.js → config-r7njjNgh.js} +3 -3
- package/dist/{connectors-CHGiffYH.d.ts → connectors-uC5baoFV.d.ts} +4 -4
- package/dist/{context-BJoHD20l.d.ts → context-B4TsE2gY.d.ts} +138 -52
- package/dist/{controller-CwGXms17.d.ts → controller-CtwAsnVV.d.ts} +1 -1
- package/dist/{conversion-DlfStnln.d.ts → conversion-g8HzH9My.d.ts} +1 -1
- package/dist/create/index.d.ts +62 -3
- package/dist/create/index.js +67 -4
- package/dist/create/lite/index.d.ts +141 -4
- package/dist/create/lite/index.js +399 -47
- package/dist/credentials/index.d.ts +4 -4
- package/dist/{data-engine-BWoz9lED.d.ts → data-engine-rvbR2C4F.d.ts} +1 -1
- package/dist/{define-BLP6XtoL.d.ts → define-D8_9X5fZ.d.ts} +5 -5
- package/dist/{define-block-DibVN37N.d.ts → define-block-DWVZSZv1.d.ts} +12 -12
- package/dist/{documents-Cup1rpjF.d.ts → documents-BbwYyynk.d.ts} +3 -3
- package/dist/edge/index.d.ts +9 -9
- package/dist/elysia/index.d.ts +1 -1
- package/dist/{embeddings-D_RsS6ow.d.ts → embeddings-I3s5sTDt.d.ts} +1 -1
- package/dist/{ended-B8RyuUXF.d.ts → ended-EZzN9QTM.d.ts} +2 -2
- package/dist/{entitlements-CsZcfllV.d.ts → entitlements-Bw3eYGKJ.d.ts} +2 -2
- package/dist/eve/index.d.ts +5 -5
- package/dist/{eve-B7jxYPCw.d.ts → eve-BfhVFV33.d.ts} +2 -2
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-Cc9DDQWH.d.ts → events-B2qbZps6.d.ts} +1 -1
- package/dist/{executor-DNPm13a9.d.ts → executor-BfirBzOr.d.ts} +4 -4
- package/dist/{executor-C-Ox9eKq.d.ts → executor-BlS0kCrN.d.ts} +1 -1
- package/dist/{executor-hGjrop3A.d.ts → executor-DXQIx4sW.d.ts} +1 -1
- package/dist/expo/index.d.ts +4 -4
- package/dist/{field-errors-6BVg31Yp.d.ts → field-errors-DkzFduux.d.ts} +10 -10
- package/dist/{fields-C3q2ypnO.d.ts → fields-snbaZ14h.d.ts} +1 -1
- package/dist/{filter-evaluate-CPxeae5X.d.ts → filter-evaluate-BRpNiNPG.d.ts} +1 -1
- package/dist/{filter-query-BXLs72G9.d.ts → filter-query-DBt7OKuH.d.ts} +1 -1
- package/dist/{flags-C01PLMJ-.d.ts → flags-DDKTThrO.d.ts} +2 -2
- package/dist/flags-sdk/index.d.ts +1 -1
- package/dist/{framework-GlxXiotm.d.ts → framework-DVYTtQXA.d.ts} +7 -7
- package/dist/{gateway-DzI687yd.d.ts → gateway-Ve7cByEr.d.ts} +3 -3
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/hono/index.d.ts +9 -9
- package/dist/{inbox-NDKwSk_H.d.ts → inbox-c8B86Trp.d.ts} +5 -5
- package/dist/{index-C_qlBJ3k.d.ts → index-B4wttiLh.d.ts} +4 -4
- package/dist/{index-BfYDY6eh.d.ts → index-BM6NmKSc.d.ts} +5 -5
- package/dist/{index-CbUCGMqj.d.ts → index-BNgpz_BV.d.ts} +5 -5
- package/dist/{index-C0QuN9_P.d.ts → index-BxckmAFc.d.ts} +106 -121
- package/dist/{index-Cagz4Z2k.d.ts → index-CB66nl14.d.ts} +4 -3
- package/dist/{index-DOHx3JuB.d.ts → index-CBQT_nXf.d.ts} +5 -5
- package/dist/{index-D01wHGSN.d.ts → index-Cw5gGSP8.d.ts} +14 -14
- package/dist/{index-CQhPHHDF.d.ts → index-Cxsnd-OL.d.ts} +1 -1
- package/dist/{index-D1ckLbUM.d.ts → index-pZn6S_iq.d.ts} +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/{instances-qz2MCMyK.js → instances-C7qUTjhJ.js} +1 -1
- package/dist/{kit-Dxx3MT8m.d.ts → kit-B8yWCRN7.d.ts} +3 -3
- package/dist/{knowledge-F1IhRI4Q.d.ts → knowledge-CsLPACGJ.d.ts} +5 -5
- package/dist/lint/index.d.ts +1 -1
- package/dist/list/index.d.ts +3 -3
- package/dist/{list-query-XHoYDlRN.d.ts → list-query-BcU8NnNL.d.ts} +3 -3
- package/dist/mapper/bin.js +7 -7
- package/dist/mcp/index.d.ts +6 -6
- package/dist/mcp/sdk/index.d.ts +6 -6
- package/dist/{messaging-C_Pr9tGx.d.ts → messaging-DQP09JsY.d.ts} +4 -4
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +22 -22
- package/dist/node/index.d.ts +2 -2
- package/dist/{operations-CPhOcuzl.d.ts → operations-CqmQrTKw.d.ts} +1 -1
- package/dist/{options-BOGo1qCA.js → options-B5E2MGIz.js} +3 -1
- package/dist/{options-D2s7fT1s.js → options-COo7_3MX.js} +2 -1
- package/dist/{options-D32-YxnO.js → options-DhoLMknl.js} +3 -1
- package/dist/orpc/index.d.ts +8 -8
- package/dist/otel/index.d.ts +2 -2
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-DxZgoKwp.d.ts → outbox-BZ712Z3X.d.ts} +4 -4
- package/dist/{pool-wjbAMqc1.d.ts → pool-DDR1ndk7.d.ts} +3 -3
- package/dist/{ports-Bw7uxPd_.d.ts → ports-6LBgr1Aa.d.ts} +1 -1
- package/dist/postgres/index.d.ts +4 -4
- package/dist/{postgrest-z-T0l23T.d.ts → postgrest-AJc8hnJU.d.ts} +1 -1
- package/dist/powersync/index.d.ts +6 -6
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-BbSWLoXM.js → preset-DCdEnJj9.js} +9 -14
- package/dist/{project-TN03XDsA.js → project-C4NA_van.js} +5 -5
- package/dist/{provider-ClrIplXa.d.ts → provider-CWjzAIX9.d.ts} +1 -1
- package/dist/{push-token-vykw2JXT.d.ts → push-token-BXsrJ7W9.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +8 -8
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +8 -8
- package/dist/react/session.d.ts +2 -2
- package/dist/react-router/index.d.ts +6 -6
- package/dist/realtime/index.d.ts +6 -6
- package/dist/realtime/index.js +2 -2
- package/dist/{record-form-D2-F4IwS.d.ts → record-form-CubgBrtI.d.ts} +1 -1
- package/dist/{recordings-BBSJt_YV.d.ts → recordings-DeZYx-Kv.d.ts} +1 -1
- package/dist/records/index.d.ts +9 -9
- package/dist/{refresh-CCKB1Wa6.d.ts → refresh-D02Pbf5B.d.ts} +1 -1
- package/dist/{refusal-D_tklIEb.d.ts → refusal-B0VmlAxF.d.ts} +2 -2
- package/dist/{resolve-Bj1qD7Dy.d.ts → resolve-CtX6T0c0.d.ts} +1 -1
- package/dist/{resolved-names-Dsf28_Dr.js → resolved-names-iLBOUaib.js} +2 -2
- package/dist/{resource-D8pzB5Qf.d.ts → resource-WxN0IsvB.d.ts} +1 -1
- package/dist/{resource-execute-BSTIfp1D.d.ts → resource-execute-BzqR8DdD.d.ts} +2 -2
- package/dist/{resource-types-D5WEvYtV.d.ts → resource-types-BVbHgTPg.d.ts} +4 -4
- package/dist/{resources-CsZ7RhZC.d.ts → resources-BSbRa0Ab.d.ts} +2 -2
- package/dist/{respond-BzRG-0qc.d.ts → respond-Dzu_-EPH.d.ts} +1 -1
- package/dist/{sales-lines-KxxStRzU.d.ts → sales-lines-BsmrNHe9.d.ts} +1 -1
- package/dist/{scores-B2BiNuVJ.d.ts → scores-Y8TvyJi1.d.ts} +5 -5
- package/dist/server/index.d.ts +24 -24
- package/dist/server/index.js +1 -1
- package/dist/{server-types-BlDiY-ya.d.ts → server-types-BkTIxW_H.d.ts} +11 -11
- package/dist/{session-BGP98Rgj.d.ts → session-BOzx2qHC.d.ts} +6 -6
- package/dist/{session-status-C4t7kbSn.d.ts → session-status-BP8eYVnA.d.ts} +2 -2
- package/dist/{sign-in-CAadgm33.d.ts → sign-in-CfwJAJJL.d.ts} +2 -2
- package/dist/{signers-BKgmVh6A.d.ts → signers-ZmxO1I05.d.ts} +4 -4
- package/dist/{signing-keys-BNDUxpQL.d.ts → signing-keys-udgP7Aod.d.ts} +2 -2
- package/dist/solid/index.d.ts +10 -10
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/spec/index.d.ts +2 -2
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +5 -5
- package/dist/{sql-Dg3W1ENk.js → sql-CoBySj2F.js} +3617 -1285
- package/dist/sqlite/index.d.ts +3 -3
- package/dist/{sso-B0Txid2-.d.ts → sso-CkU_4mtK.d.ts} +3 -3
- package/dist/ssr/index.d.ts +5 -5
- 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-DJbzlm8a.d.ts → subject-readers-CB5Te02u.d.ts} +5 -5
- package/dist/{subject-readers-CeeJJOQ4.js → subject-readers-VHcrWhmq.js} +2 -2
- package/dist/{subjects-NomQg6Eg.d.ts → subjects-BYCL-6hA.d.ts} +15 -1
- package/dist/{subjects-BpIEN1MS.d.ts → subjects-CiBNKy2y.d.ts} +4 -4
- package/dist/{support-D7CMbhRT.d.ts → support-BxyPOFk4.d.ts} +4 -4
- package/dist/{support-view-CIDXF3_H.d.ts → support-view-nqUWKHEs.d.ts} +1 -1
- package/dist/svelte/index.d.ts +9 -9
- package/dist/sveltekit/index.d.ts +7 -7
- package/dist/{tags-Dg4Ywmqp.d.ts → tags-Cm48BsOa.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +3 -3
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/{tenant-BRmKZ7aq.d.ts → tenant-Ded341Qz.d.ts} +2 -2
- package/dist/testing/index.d.ts +25 -25
- package/dist/testing/index.js +2 -2
- package/dist/{timeline-Cjl-1hiA.d.ts → timeline-DvXtXq5q.d.ts} +5 -5
- package/dist/{topic-F0FKzJyQ.js → topic-DnsNG4Kj.js} +1 -1
- package/dist/{topic-CpsKVBot.d.ts → topic-XDdKzlrn.d.ts} +5 -5
- package/dist/{types-Dp3UCr1e.d.ts → types-B-D6fYx2.d.ts} +1 -1
- package/dist/{types-CjRwmCRP.d.ts → types-BFwB-E1j.d.ts} +2 -2
- package/dist/{types-Czq9Xtpa.d.ts → types-CK2X2wCB.d.ts} +5 -5
- package/dist/{types-DFdg_4yN.d.ts → types-CPl9uJ0G.d.ts} +2 -2
- package/dist/{types-DR1MHh7N.d.ts → types-CwQgFo8c.d.ts} +4 -4
- package/dist/{types-Dr9wZgNy.d.ts → types-DMihLukJ.d.ts} +3 -3
- package/dist/{types-A4yyKEsg.d.ts → types-iCyZ3lMx.d.ts} +4 -4
- package/dist/{types-BdaBfYIw.d.ts → types-nspa5I-a.d.ts} +7 -7
- package/dist/{undo-B1jwnVyN.d.ts → undo-0HkWXASn.d.ts} +2 -2
- package/dist/{usage-Dp45V42p.d.ts → usage-BkWAPkg2.d.ts} +4 -4
- package/dist/{vault-BghaujrZ.d.ts → vault-BkdPmL7f.d.ts} +2 -2
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/{verify-CI8LgSpv.d.ts → verify-41mZmspj.d.ts} +2 -2
- package/dist/{view-BvNA7EOC.d.ts → view-C8_xvD-j.d.ts} +1 -1
- package/dist/vue/index.d.ts +10 -10
- package/dist/{watch-topic-BaMZX139.d.ts → watch-topic-DpN_GEoS.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +3 -3
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-CE8sEK57.js → workflow-sdk-CaEw822d.js} +25 -4
- package/dist/{workflow-sdk-BNsZrcVg.d.ts → workflow-sdk-rg3IbCZC.d.ts} +3 -3
- package/dist/{workflows-B0ZPAQu0.d.ts → workflows-xL6t0TXx.d.ts} +7 -4
- package/dist/yjs/index.d.ts +2 -2
- package/dist/yjs/index.js +1 -1
- package/package.json +11 -2
- package/schemas/config-v1.json +45 -351
- package/skills/better-supabase/references/ui-recipes.md +5 -5
- package/dist/cli/add-Bf1fyCWm.js +0 -1
- package/dist/cli/env-xhwXk5Ri.js +0 -1
- package/dist/cli/in-stack-diff-DQTW53Vf.js +0 -257
- package/dist/cli/powersync-Dq-txa0_.js +0 -1
- package/dist/cli/seed-CO3j_bly.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { E as AccessPolicySql } from "./types-
|
|
2
|
-
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-
|
|
3
|
-
import { nt as ReadSet } from "./define-
|
|
4
|
-
import {
|
|
5
|
-
import { t as SubjectConfig } from "./subjects-
|
|
1
|
+
import { E as AccessPolicySql } from "./types-CPl9uJ0G.js";
|
|
2
|
+
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-C7nuWMuB.js";
|
|
3
|
+
import { nt as ReadSet } from "./define-D8_9X5fZ.js";
|
|
4
|
+
import { R as TableGrant, Tr as AppTableConfig, Vr as CatalogPolicy, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, cn as ResolvedConfig, g as BlockSqlAccessProvider, h as BlockSql, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-B4TsE2gY.js";
|
|
5
|
+
import { t as SubjectConfig } from "./subjects-BYCL-6hA.js";
|
|
6
6
|
//#region src/sql/render.d.ts
|
|
7
7
|
/** A module's SQL for `layout`, without header; `undefined` in custom mode. */
|
|
8
8
|
declare function moduleBody(name: string, layout?: BlockSqlLayout): string | undefined;
|
|
@@ -157,7 +157,7 @@ interface BlockSqlPermissionKey {
|
|
|
157
157
|
* check, after `blocks.<module>.permissions` overrides. Modules in custom mode
|
|
158
158
|
* are skipped, and so is `invitations.invitePlatform` without platform roles.
|
|
159
159
|
*/
|
|
160
|
-
declare function modulePermissionKeys(config: AnyBlocksConfig, names: readonly string[]): BlockSqlPermissionKey[];
|
|
160
|
+
declare function modulePermissionKeys(config: AnyBlocksConfig, names: readonly string[], subjects?: BlockSqlLayout["subjects"]): BlockSqlPermissionKey[];
|
|
161
161
|
interface BlockSqlExtension {
|
|
162
162
|
readonly name: string;
|
|
163
163
|
readonly statement: string;
|
|
@@ -251,7 +251,7 @@ declare function moduleWritesText(module: string, logical: string, column: strin
|
|
|
251
251
|
* `ownTables` lists it or `blocks.<name>.on` names it, with the columns their
|
|
252
252
|
* SQL names: mapped to `null` and unused optional columns are left out.
|
|
253
253
|
*/
|
|
254
|
-
declare function adoptedTables(modules: AnyBlocksConfig, ownTables?: Readonly<Record<string, string>>, views?: Pick<BlockSqlLayout, "ownViews" | "ownColumns">): readonly AdoptedTable[];
|
|
254
|
+
declare function adoptedTables(modules: AnyBlocksConfig, ownTables?: Readonly<Record<string, string>>, views?: Pick<BlockSqlLayout, "ownViews" | "ownColumns" | "subjects">): readonly AdoptedTable[];
|
|
255
255
|
/**
|
|
256
256
|
* The columns the modules write on the app's other tables (`appSubjectTables`,
|
|
257
257
|
* such as a tag link table) that those tables lack, and the enum columns they
|
|
@@ -260,7 +260,7 @@ declare function adoptedTables(modules: AnyBlocksConfig, ownTables?: Readonly<Re
|
|
|
260
260
|
*/
|
|
261
261
|
declare function adoptedColumnProblems(modules: AnyBlocksConfig, files: readonly {
|
|
262
262
|
readonly text: string;
|
|
263
|
-
}[], schemas: readonly string[], ownTables?: Readonly<Record<string, string
|
|
263
|
+
}[], schemas: readonly string[], ownTables?: Readonly<Record<string, string>>, subjects?: BlockSqlLayout["subjects"]): readonly string[];
|
|
264
264
|
/** A block table mapped to a view of the app's. */
|
|
265
265
|
interface AdoptedView {
|
|
266
266
|
readonly module: string;
|
|
@@ -359,83 +359,6 @@ declare function tenantsQuery(layout: BlockSqlLayout, installed: readonly string
|
|
|
359
359
|
*/
|
|
360
360
|
declare function subjectColumns(entry: SubjectConfig, tenant?: string): readonly (readonly [path: string, column: string])[];
|
|
361
361
|
//#endregion
|
|
362
|
-
//#region src/sql/schema-scan.d.ts
|
|
363
|
-
/** Privileges one role gets on a table, from the policies that name it. */
|
|
364
|
-
interface PolicyGrant {
|
|
365
|
-
/** `schema.table`, unquoted; an unqualified name is in `public`. */
|
|
366
|
-
readonly table: string;
|
|
367
|
-
readonly role: "anon" | "authenticated";
|
|
368
|
-
readonly privileges: readonly ("select" | "insert" | "update" | "delete")[];
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* The tables `files` create (`create table`), as `schema.table`, in the order
|
|
372
|
-
* they first appear. Only tables in `schemas` are kept.
|
|
373
|
-
*/
|
|
374
|
-
declare function declaredTables(files: readonly {
|
|
375
|
-
readonly text: string;
|
|
376
|
-
}[], schemas: readonly string[]): string[];
|
|
377
|
-
/** A view the app's files create. */
|
|
378
|
-
interface DeclaredView {
|
|
379
|
-
/** Its columns, or `undefined` when they can't be read (`select *`). */
|
|
380
|
-
readonly columns: readonly string[] | undefined;
|
|
381
|
-
/** Whether `insert`, `update` and `delete` reach the table under it. */
|
|
382
|
-
readonly updatable: boolean;
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* The views and materialized views `files` create, as `schema.view`, with their
|
|
386
|
-
* columns and whether they are auto-updatable. A later `drop view` removes one.
|
|
387
|
-
* Only views in `schemas` are kept.
|
|
388
|
-
*/
|
|
389
|
-
declare function declaredViews(files: readonly {
|
|
390
|
-
readonly text: string;
|
|
391
|
-
}[], schemas: readonly string[]): ReadonlyMap<string, DeclaredView>;
|
|
392
|
-
/**
|
|
393
|
-
* The tables in `schemas` that `files` leave with row level security on: `alter
|
|
394
|
-
* table ... enable row level security`, until a later `disable` or `drop
|
|
395
|
-
* table`.
|
|
396
|
-
*/
|
|
397
|
-
declare function rlsTables(files: readonly {
|
|
398
|
-
readonly text: string;
|
|
399
|
-
}[], schemas: readonly string[]): string[];
|
|
400
|
-
/**
|
|
401
|
-
* Columns each `create table` in `files` declares, as `schema.table` to
|
|
402
|
-
* unquoted names. `like` and table constraints are skipped. Only tables in
|
|
403
|
-
* `schemas` are kept.
|
|
404
|
-
*/
|
|
405
|
-
declare function declaredTableColumns(files: readonly {
|
|
406
|
-
readonly text: string;
|
|
407
|
-
}[], schemas: readonly string[]): ReadonlyMap<string, ReadonlySet<string>>;
|
|
408
|
-
/**
|
|
409
|
-
* The declared type of each column of each `create table` in `files`, as
|
|
410
|
-
* `schema.table` to unquoted column name to type. A type is lower-cased with
|
|
411
|
-
* its spacing normalised, and a quoted part keeps its case without quotes. Only
|
|
412
|
-
* tables in `schemas` are kept.
|
|
413
|
-
*/
|
|
414
|
-
declare function declaredColumnTypes(files: readonly {
|
|
415
|
-
readonly text: string;
|
|
416
|
-
}[], schemas: readonly string[]): ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
417
|
-
/**
|
|
418
|
-
* The privileges the permissive policies in `files` imply, per table and role:
|
|
419
|
-
* `for all` gives the four commands, `to public` (or no `to`) counts for
|
|
420
|
-
* `authenticated` only, so `anon` needs a policy that names it. Restrictive
|
|
421
|
-
* policies grant nothing. Only tables in `schemas` are kept.
|
|
422
|
-
*/
|
|
423
|
-
declare function policyGrants(files: readonly {
|
|
424
|
-
readonly text: string;
|
|
425
|
-
}[], schemas: readonly string[]): PolicyGrant[];
|
|
426
|
-
declare function extensionSchema(sources: readonly {
|
|
427
|
-
readonly text: string;
|
|
428
|
-
}[], extension: string): string | undefined;
|
|
429
|
-
/**
|
|
430
|
-
* The update trigger that keeps `updated_at` current on each table in `schemas`
|
|
431
|
-
* the files create one on, by `schema.table`: its function is named like one
|
|
432
|
-
* (`set_updated_at`, `moddatetime`, `touch_*`) or the files define it with
|
|
433
|
-
* `new.updated_at :=`. Block triggers (`bsb_*`) don't count.
|
|
434
|
-
*/
|
|
435
|
-
declare function declaredUpdatedAtTriggers(files: readonly {
|
|
436
|
-
readonly text: string;
|
|
437
|
-
}[], schemas: readonly string[]): Readonly<Record<string, string>>;
|
|
438
|
-
//#endregion
|
|
439
362
|
//#region src/core/access-sql.d.ts
|
|
440
363
|
/** The Postgres types a scope's ids can have. */
|
|
441
364
|
declare const SCOPE_ID_TYPES: readonly string[];
|
|
@@ -532,40 +455,9 @@ declare const scopePolicyName: (table: {
|
|
|
532
455
|
readonly enrich?: unknown;
|
|
533
456
|
}, command: string) => string;
|
|
534
457
|
//#endregion
|
|
535
|
-
//#region src/sql/tenant-scope.d.ts
|
|
536
|
-
/**
|
|
537
|
-
* The restrictive policy that keeps each organization's rows apart (ADR 0099).
|
|
538
|
-
* Postgres combines permissive policies with `or`, so any permissive policy the
|
|
539
|
-
* app adds would widen a block's; a restrictive one is combined with `and`, so
|
|
540
|
-
* no permissive policy reaches past it.
|
|
541
|
-
*/
|
|
542
|
-
declare const TENANT_SCOPE_POLICY = "bsb_tenant_scope";
|
|
543
|
-
//#endregion
|
|
544
|
-
//#region src/sql/policy-cover.d.ts
|
|
545
|
-
type PolicyCommand$1 = "select" | "insert" | "update" | "delete";
|
|
546
|
-
/**
|
|
547
|
-
* The commands `block` grants beyond the app's permissive policies: the app has
|
|
548
|
-
* a policy for the command and none of them covers the block's. A command the
|
|
549
|
-
* app has no policy for is the block's to grant.
|
|
550
|
-
*/
|
|
551
|
-
declare function widenedCommands(block: CatalogPolicy, apps: readonly CatalogPolicy[]): PolicyCommand$1[];
|
|
552
|
-
declare function appTablePolicyNotes(sql: string): {
|
|
553
|
-
readonly table: string;
|
|
554
|
-
readonly policy: string;
|
|
555
|
-
readonly commands: readonly PolicyCommand$1[];
|
|
556
|
-
}[];
|
|
557
|
-
/**
|
|
558
|
-
* The policies `sources` leave on each `schema.table` in `schemas`, in order: a
|
|
559
|
-
* later `drop policy` removes one, and a later `create policy` of the same name
|
|
560
|
-
* replaces it.
|
|
561
|
-
*/
|
|
562
|
-
declare function declaredPolicies(sources: readonly {
|
|
563
|
-
readonly text: string;
|
|
564
|
-
}[], schemas: readonly string[]): Record<string, CatalogPolicy[]>;
|
|
565
|
-
//#endregion
|
|
566
458
|
//#region src/sql/policy.d.ts
|
|
567
459
|
/** A command a policy applies to. */
|
|
568
|
-
type PolicyCommand = "all" | "select" | "insert" | "update" | "delete";
|
|
460
|
+
type PolicyCommand$1 = "all" | "select" | "insert" | "update" | "delete";
|
|
569
461
|
/**
|
|
570
462
|
* One row level security policy (ADR 0103). `table` is `schema.table`,
|
|
571
463
|
* unquoted; a name without a schema is in `public`. `roles` lists the roles it
|
|
@@ -574,7 +466,7 @@ type PolicyCommand = "all" | "select" | "insert" | "update" | "delete";
|
|
|
574
466
|
interface Policy {
|
|
575
467
|
readonly table: string;
|
|
576
468
|
readonly name: string;
|
|
577
|
-
readonly command: PolicyCommand;
|
|
469
|
+
readonly command: PolicyCommand$1;
|
|
578
470
|
readonly roles: readonly string[];
|
|
579
471
|
readonly permissive: boolean;
|
|
580
472
|
readonly using: string | null;
|
|
@@ -584,13 +476,16 @@ interface Policy {
|
|
|
584
476
|
interface PolicyInput {
|
|
585
477
|
readonly table: string;
|
|
586
478
|
readonly name: string;
|
|
587
|
-
readonly command?: PolicyCommand;
|
|
479
|
+
readonly command?: PolicyCommand$1;
|
|
588
480
|
readonly roles?: readonly string[];
|
|
589
481
|
readonly permissive?: boolean;
|
|
590
482
|
readonly using?: string | null;
|
|
591
483
|
readonly check?: string | null;
|
|
592
484
|
}
|
|
593
|
-
/**
|
|
485
|
+
/**
|
|
486
|
+
* A policy with the defaults Postgres uses: `for all to public`, permissive. A
|
|
487
|
+
* `name` in double quotes is unquoted, so `sqlIdent(name)` works as a name.
|
|
488
|
+
*/
|
|
594
489
|
declare function policy(input: PolicyInput): Policy;
|
|
595
490
|
/** The catalog shape of `policy`, without its table. */
|
|
596
491
|
declare function catalogPolicy(entry: Policy): CatalogPolicy;
|
|
@@ -644,6 +539,39 @@ interface Grant {
|
|
|
644
539
|
/** The table grants of `sql`, read past comments, strings and dollar quotes. */
|
|
645
540
|
declare function readGrants(sql: string): Grant[];
|
|
646
541
|
//#endregion
|
|
542
|
+
//#region src/sql/tenant-scope.d.ts
|
|
543
|
+
/**
|
|
544
|
+
* The restrictive policy that keeps each organization's rows apart (ADR 0099).
|
|
545
|
+
* Postgres combines permissive policies with `or`, so any permissive policy the
|
|
546
|
+
* app adds would widen a block's; a restrictive one is combined with `and`, so
|
|
547
|
+
* no permissive policy reaches past it.
|
|
548
|
+
*/
|
|
549
|
+
declare const TENANT_SCOPE_POLICY = "bsb_tenant_scope";
|
|
550
|
+
/** Every name the tenant scope policies of a table carry. */
|
|
551
|
+
declare const TENANT_SCOPE_NAMES: readonly string[];
|
|
552
|
+
//#endregion
|
|
553
|
+
//#region src/sql/policy-cover.d.ts
|
|
554
|
+
type PolicyCommand = "select" | "insert" | "update" | "delete";
|
|
555
|
+
/**
|
|
556
|
+
* The commands `block` grants beyond the app's permissive policies: the app has
|
|
557
|
+
* a policy for the command and none of them covers the block's. A command the
|
|
558
|
+
* app has no policy for is the block's to grant.
|
|
559
|
+
*/
|
|
560
|
+
declare function widenedCommands(block: CatalogPolicy, apps: readonly CatalogPolicy[]): PolicyCommand[];
|
|
561
|
+
declare function appTablePolicyNotes(sql: string): {
|
|
562
|
+
readonly table: string;
|
|
563
|
+
readonly policy: string;
|
|
564
|
+
readonly commands: readonly PolicyCommand[];
|
|
565
|
+
}[];
|
|
566
|
+
/**
|
|
567
|
+
* The policies `sources` leave on each `schema.table` in `schemas`, in order: a
|
|
568
|
+
* later `drop policy` removes one, and a later `create policy` of the same name
|
|
569
|
+
* replaces it.
|
|
570
|
+
*/
|
|
571
|
+
declare function declaredPolicies(sources: readonly {
|
|
572
|
+
readonly text: string;
|
|
573
|
+
}[], schemas: readonly string[]): Record<string, CatalogPolicy[]>;
|
|
574
|
+
//#endregion
|
|
647
575
|
//#region src/sql/policy-rule.d.ts
|
|
648
576
|
/** A comparison a rule can make against a column. */
|
|
649
577
|
type RuleOperator = "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
@@ -741,4 +669,61 @@ interface PolicyFunctionsOptions {
|
|
|
741
669
|
*/
|
|
742
670
|
declare function policyFunctionsSql(options?: PolicyFunctionsOptions): string;
|
|
743
671
|
//#endregion
|
|
744
|
-
|
|
672
|
+
//#region src/sql/bsb-tags.d.ts
|
|
673
|
+
/**
|
|
674
|
+
* One `@bsb` feature: `subject title=number` is `{ name: "subject", args: {
|
|
675
|
+
* title: "number" } }`.
|
|
676
|
+
*/
|
|
677
|
+
interface BsbTag {
|
|
678
|
+
readonly name: string;
|
|
679
|
+
/** `key=value` pairs; a bare word is `true`. */
|
|
680
|
+
readonly args: Readonly<Record<string, string | true>>;
|
|
681
|
+
}
|
|
682
|
+
interface BsbComment {
|
|
683
|
+
/** The comment's free text, without the tag block. */
|
|
684
|
+
readonly text: string;
|
|
685
|
+
readonly tags: readonly BsbTag[];
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Splits a table comment into its free text and its `@bsb` tags (ADR 0102). The
|
|
689
|
+
* tag block starts at `@bsb` and runs to the end of the comment; tags are
|
|
690
|
+
* separated by `;`. A comment without `@bsb` is all text.
|
|
691
|
+
*/
|
|
692
|
+
declare function parseBsbComment(comment: string | null): BsbComment;
|
|
693
|
+
/** The comment `parseBsbComment` reads back: the text, then `@bsb` and the tags. */
|
|
694
|
+
declare function formatBsbComment(comment: BsbComment): string;
|
|
695
|
+
/**
|
|
696
|
+
* `comment` with the tag `name` set to `tag` (replacing a tag of that name), or
|
|
697
|
+
* removed when `tag` is undefined. The free text stays as it is.
|
|
698
|
+
*/
|
|
699
|
+
declare function setBsbTag(comment: string | null, name: string, tag: BsbTag | undefined): string;
|
|
700
|
+
/** The `comment on table` statement for `table` (already quoted) and `comment`. */
|
|
701
|
+
declare function commentOnTableSql(table: string, comment: string): string;
|
|
702
|
+
//#endregion
|
|
703
|
+
//#region src/sql/table-features.d.ts
|
|
704
|
+
/** The per-table features a `@bsb` tag turns on (ADR 0102). */
|
|
705
|
+
declare const TABLE_FEATURES: readonly ["realtime", "audit", "audit-reads", "subject", "json", "expose", "encrypted", "server", "events", "vector-search"];
|
|
706
|
+
type TableFeature = (typeof TABLE_FEATURES)[number];
|
|
707
|
+
declare function isTableFeature(value: string): value is TableFeature;
|
|
708
|
+
/** Whether `sql` creates `table`, in `schema` or unqualified. */
|
|
709
|
+
declare function createsTable(sql: string, schema: string, table: string): boolean;
|
|
710
|
+
/** The features the table's comment turns on, in `sql`. */
|
|
711
|
+
declare function tableFeatures(sql: string, schema: string, table: string): readonly string[];
|
|
712
|
+
/**
|
|
713
|
+
* `sql` with the `@bsb` tag `feature` on or off in `table`'s comment. The
|
|
714
|
+
* comment statement is rewritten in place, or appended when the file has none;
|
|
715
|
+
* the free text stays. Returns `sql` unchanged when the feature is already in
|
|
716
|
+
* the wanted state.
|
|
717
|
+
*/
|
|
718
|
+
declare function setTableFeature(sql: string, schema: string, table: string, feature: TableFeature, enabled: boolean, tag?: BsbTag): string;
|
|
719
|
+
/**
|
|
720
|
+
* The `@bsb` table comments in `sql`, with an unqualified table in `public`.
|
|
721
|
+
* Comments without tags are left out.
|
|
722
|
+
*/
|
|
723
|
+
declare function tableTagComments(sql: string): {
|
|
724
|
+
schema: string;
|
|
725
|
+
name: string;
|
|
726
|
+
comment: string;
|
|
727
|
+
}[];
|
|
728
|
+
//#endregion
|
|
729
|
+
export { MigrationOptionUse as $, BlockSqlTopic as $t, declaredPolicies as A, BlockSqlExtension as At, catalogPolicy as B, moduleDataDir as Bt, isRule as C, APP_TABLES_MARKER as Ct, renderRulePolicy as D, instanceFunctions as Dt, renderRule as E, DEFAULT_ROLES as Et, Policy as F, moduleSchemaExtensions as Ft, readPolicy as G, BLOCK_RENAMES as Gt, policy as H, EntityRenamePlan as Ht, PolicyCommand$1 as I, blockFileState as It, hasColumnAccess as J, renamedBlock as Jt, renderPolicy as K, currentBlockName as Kt, PolicyInput as L, isModuleDataFile as Lt, TENANT_SCOPE_NAMES as M, moduleEventTriggers as Mt, TENANT_SCOPE_POLICY as N, moduleHidingColumns as Nt, rulePolicy as O, SQL_MODULES as Ot, Grant as P, modulePermissionKeys as Pt, sharedRolesProblems as Q, upgradePlan as Qt, ReadPolicy as R, moduleFileVersion as Rt, disallowedPolicyCalls as S, moduleWritesText as St, readRulePolicies as T, appTablesFiles as Tt, readGrants as U, EntityRenameStep as Ut, maskSql as V, moduleFilePaths as Vt, readPolicies as W, entityRenamePlan as Wt, compileReadSet as X, InstalledBlock as Xt, CompiledReadSet as Y, BlockSqlUpgradePlan as Yt, compileReadSets as Z, moduleDeprecations as Zt, Rule as _, AdoptedTable as _t, setTableFeature as a, templateFunctions as at, RulePolicyInput as b, adoptedTables as bt, BsbComment as c, tenantsQuery as ct, formatBsbComment as d, sameTenantTrigger as dt, customContracts as en, migrationOptionUses as et, parseBsbComment as f, DataExportPlan as ft, ReadRulePolicy as g, resolveExposeColumns as gt, PolicyFunctionsOptions as h, excludedColumns as ht, isTableFeature as i, scopeProblems as it, widenedCommands as j, BlockSqlPermissionKey as jt, appTablePolicyNotes as k, resolveBlocks as kt, BsbTag as l, expiredFlagsQuery as lt, POLICY_FUNCTIONS as m, dataExportPlan as mt, TableFeature as n, moduleTopics as nn, SCOPE_ID_TYPES as nt, tableFeatures as o, subjectColumns as ot, setBsbTag as p, SECRET_COLUMNS as pt, scopePolicyName as q, formerBlockName as qt, createsTable as r, renderBlocks as rn, resolveProviderSql as rt, tableTagComments as s, TenantQuery as st, TABLE_FEATURES as t, moduleBody as tn, moduleLayout as tt, commentOnTableSql as u, sameTenantColumn as ut, RuleOperator as v, AdoptedView as vt, policyFunctionsSql as w, APP_TABLES_MODULE as wt, RuleValue as x, adoptedViews as xt, RulePolicy as y, adoptedColumnProblems as yt, RenderPolicyOptions as z, sameBlockFile as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as AppTablesConfig, Mt as ResolvedPreset, Ot as presetConfig, Tr as AppTableConfig, Wn as PresetSpec, er as PresetName, gi as PresetGlueItem, gr as AppColumnConfig, pi as PresetCatalog, vr as AppColumnType, xi as Preset } from "./context-B4TsE2gY.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;
|
|
@@ -172,8 +172,9 @@ declare function presetArgumentOf(query: string): string;
|
|
|
172
172
|
declare function presetKey(preset: Preset): string;
|
|
173
173
|
/**
|
|
174
174
|
* `better-supabase.config.ts` for a preset and an optional design: every block
|
|
175
|
-
* with its reason
|
|
176
|
-
*
|
|
175
|
+
* with its reason and the conventions that differ from the defaults, under a
|
|
176
|
+
* comment with the `/create` URL that reopens the canvas. The design's tables
|
|
177
|
+
* are not in it: `init --preset` and `add --preset` write them as SQL files.
|
|
177
178
|
*/
|
|
178
179
|
declare function presetConfigSource(resolved: ResolvedPreset, design?: CreateDesign): Promise<string>;
|
|
179
180
|
/** The command that starts a project from the preset and design. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
|
-
import { O as AnyFunctions, k as AnyModels } from "./types-
|
|
2
|
+
import { O as AnyFunctions, k as AnyModels } from "./types-CPl9uJ0G.js";
|
|
3
3
|
import { l as PublicEnv } from "./index-NRMMhhEi.js";
|
|
4
|
-
import { g as SessionEncoding } from "./resolve-
|
|
5
|
-
import { t as BetterSupabase } from "./define-
|
|
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-
|
|
4
|
+
import { g as SessionEncoding } from "./resolve-CtX6T0c0.js";
|
|
5
|
+
import { t as BetterSupabase } from "./define-D8_9X5fZ.js";
|
|
6
|
+
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-6LBgr1Aa.js";
|
|
7
|
+
import { i as BindClientOptions, r as BetterClient } from "./bind-DmUGUsBd.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
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { b as DbError, f as Result, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
|
-
import { $ as RecordRef } from "./types-
|
|
3
|
-
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "./events-
|
|
4
|
-
import { mt as QuerySpec } from "./define-
|
|
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-
|
|
6
|
-
import { m as RejectedChange, o as DataSyncState } from "./data-engine-
|
|
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-
|
|
10
|
-
import { t as AuthSession } from "./view-
|
|
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-
|
|
2
|
+
import { $ as RecordRef } from "./types-CPl9uJ0G.js";
|
|
3
|
+
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "./events-B2qbZps6.js";
|
|
4
|
+
import { mt as QuerySpec } from "./define-D8_9X5fZ.js";
|
|
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-SvRQwYS4.js";
|
|
6
|
+
import { m as RejectedChange, o as DataSyncState } from "./data-engine-rvbR2C4F.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-BM6NmKSc.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-XDdKzlrn.js";
|
|
9
|
+
import { t as AuthSnapshot } from "./bind-DmUGUsBd.js";
|
|
10
|
+
import { t as AuthSession } from "./view-C8_xvD-j.js";
|
|
11
|
+
import { r as LiveCountSeed, v as RelayClientOptions } from "./index-BNgpz_BV.js";
|
|
12
|
+
import { n as Controller } from "./controller-CtwAsnVV.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-DkzFduux.js";
|
|
14
|
+
import { t as BlockEnv } from "./block-env-DWtZsqhH.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-CubgBrtI.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,5 +1,5 @@
|
|
|
1
1
|
import { b as DbError, f as Result, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
|
-
import { C as TransformOptions, N as StorageClient, Q as StoragePath, a as BucketConnectOptions, i as BucketConfig, n as Bucket, r as BucketClient, s as BucketPolicy, v as StorageAdminClient } from "./bucket-
|
|
2
|
+
import { C as TransformOptions, N as StorageClient, Q as StoragePath, a as BucketConnectOptions, i as BucketConfig, n as Bucket, r as BucketClient, s as BucketPolicy, v as StorageAdminClient } from "./bucket-SvRQwYS4.js";
|
|
3
3
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
4
4
|
//#region src/storage/errors.d.ts
|
|
5
5
|
/** Maps a Storage error (`StorageApiError`, fetch failures) to a `DbError`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RouteGuardOptions } from "./refusal-
|
|
1
|
+
import { n as RouteGuardOptions } from "./refusal-B0VmlAxF.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
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { n as DbException, t as escapeLike } from "./escape-like-PReMbEEU.js";
|
|
3
3
|
import { A as isConflict, C as DbErrorMatchers, D as ValidationIssue, E as RawDbError, F as statusOf, M as isForeignKey, N as mapDbError, O as dbError, P as matchDbError, S as DbErrorKinds, T as ErrorMapper, _ as ok, a as BetterResultOk, b as DbError, c as DbErrorClasses, d as Ok, f as Result, g as fromBetterResult, h as err, i as BetterResultErrors, j as isDbError, k as isCheck, l as Err, m as defineBetterResultErrors, n as BetterResultApi, o as BetterResultValue, r as BetterResultErr, s as DbErrorClass, t as AsyncResult, u as MappedDbError, v as toBetterResult, w as DbErrorOf, x as DbErrorKind, y as toDbError } from "./result-DZeA5KS6.js";
|
|
4
4
|
import { n as validate, t as StandardSchemaV1 } from "./standard-DBV730sF.js";
|
|
5
|
-
import { $ as RecordRef, A as BucketMeta, At as NoExtension, B as FunctionMeta, Bt as Executor, C as not, Ct as ApplyExtension, D as AccessTopicPolicy, Dt as HasFlag, E as AccessPolicySql, Et as ExtensionsOf, F as Codec, Ft as RequestContext, G as GeneratedColumns, H as FunctionSignature, I as ColumnMeta, It as WithExtension, J as ModelTypes, K as Insert, L as DatabaseOf, Lt as definePlugin, M as Casing, Mt as Plugin, N as CheckConstraint, Nt as RepositoryApi, O as AnyFunctions, Ot as HookArgs, P as ClaimsMeta, Pt as RepositoryExtension, Q as RealtimeTableMeta, R as Flags, Rt as ExecuteContext, S as column, St as AnyPlugin, T as AccessBucketPolicy, Tt as ExtensionOf, U as FunctionTypes, V as FunctionResult, Vt as RpcContext, W as FunctionsOf, X as PrimaryKeyColumn, Y as ModelsOf, Z as PrimaryKeyValue, _ as SelectColumn, a as CountMode, at as Schema, b as UpdateOp, c as Include, ct as SubjectTypeOf, d as MutationIntent, dt as TableMeta, et as RelationMeta, f as MutationKind, ft as UniqueConstraint, g as Quantifier, gt as WritableColumns, h as OrderTerm, ht as Update, i as Condition, it as Row, j as BucketPolicyName, jt as PLUGIN_API_VERSION, k as AnyModels, kt as MutationEvent, l as InsertOp, lt as TableFlags, m as Operation, mt as UniqueWhere, n as Aggregation, nt as Relations, o as DeleteOp, ot as SchemaMeta, p as MutationOp, pt as UniqueKeyName, q as ModelFlags, r as ColumnOp, rt as ResultColumn, s as FunctionSource, st as Simplify, t as AggregateFn, tt as RelationTypes, u as Measure, ut as TableKey, v as SelectOp, w as or, wt as CallOptions, x as and, xt as Actor, y as Selection, z as ForeignKeyConstraint, zt as ExecuteResult } from "./types-
|
|
6
|
-
import { Ct as Events, O as BlockEventType, T as BlockEvent, a as EventHandler, bt as EventMap, c as MutationNotice, d as RpcNotice, i as ErrorEvent, l as QueryEvent, n as AuthOutageEvent, o as EventHub, r as BetterSupabaseEvents, s as EventName, t as AuthEvent, u as RefreshEvent } from "./events-
|
|
5
|
+
import { $ as RecordRef, A as BucketMeta, At as NoExtension, B as FunctionMeta, Bt as Executor, C as not, Ct as ApplyExtension, D as AccessTopicPolicy, Dt as HasFlag, E as AccessPolicySql, Et as ExtensionsOf, F as Codec, Ft as RequestContext, G as GeneratedColumns, H as FunctionSignature, I as ColumnMeta, It as WithExtension, J as ModelTypes, K as Insert, L as DatabaseOf, Lt as definePlugin, M as Casing, Mt as Plugin, N as CheckConstraint, Nt as RepositoryApi, O as AnyFunctions, Ot as HookArgs, P as ClaimsMeta, Pt as RepositoryExtension, Q as RealtimeTableMeta, R as Flags, Rt as ExecuteContext, S as column, St as AnyPlugin, T as AccessBucketPolicy, Tt as ExtensionOf, U as FunctionTypes, V as FunctionResult, Vt as RpcContext, W as FunctionsOf, X as PrimaryKeyColumn, Y as ModelsOf, Z as PrimaryKeyValue, _ as SelectColumn, a as CountMode, at as Schema, b as UpdateOp, c as Include, ct as SubjectTypeOf, d as MutationIntent, dt as TableMeta, et as RelationMeta, f as MutationKind, ft as UniqueConstraint, g as Quantifier, gt as WritableColumns, h as OrderTerm, ht as Update, i as Condition, it as Row, j as BucketPolicyName, jt as PLUGIN_API_VERSION, k as AnyModels, kt as MutationEvent, l as InsertOp, lt as TableFlags, m as Operation, mt as UniqueWhere, n as Aggregation, nt as Relations, o as DeleteOp, ot as SchemaMeta, p as MutationOp, pt as UniqueKeyName, q as ModelFlags, r as ColumnOp, rt as ResultColumn, s as FunctionSource, st as Simplify, t as AggregateFn, tt as RelationTypes, u as Measure, ut as TableKey, v as SelectOp, w as or, wt as CallOptions, x as and, xt as Actor, y as Selection, z as ForeignKeyConstraint, zt as ExecuteResult } from "./types-CPl9uJ0G.js";
|
|
6
|
+
import { Ct as Events, O as BlockEventType, T as BlockEvent, a as EventHandler, bt as EventMap, c as MutationNotice, d as RpcNotice, i as ErrorEvent, l as QueryEvent, n as AuthOutageEvent, o as EventHub, r as BetterSupabaseEvents, s as EventName, t as AuthEvent, u as RefreshEvent } from "./events-B2qbZps6.js";
|
|
7
7
|
import { i as silentLogger, n as Logger, r as consoleLogger, t as LogFields } from "./logger-DWVYUmwi.js";
|
|
8
8
|
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, t as BlockProblemOptions, u as problemResponse } from "./problem-DNwN8iGz.js";
|
|
9
|
-
import { $ as SearchArgs, $t as CacheTarget, A as OffsetPageArgs, At as GetArgs, B as Returned, Bt as OrderByInput, C as FindExt, Ct as AggregateResult, D as ManyWriteArgs, Dt as CountArg, E as ManyResult, Et as ColumnOrderByArg, F as PageOf, Ft as MeasureArg, G as UpsertArgs, Gt as SelectArg, Ht as ReadArgs, It as MeasureKey, J as WriteManyArgs, Jt as WhereArg, K as UpsertManyArgs, Kt as SortDirection, Lt as MutableWhere, Mt as IncludeArgs, Nt as JsonPathOps, Ot as CountArgs, Pt as ListArgs, Q as recordStats, Qt as CacheAdapter, R as Repository, Rt as NumericMeasureArg, S as DeleteExt, St as AggregateOrderByArg, Tt as ColumnOrderBy, U as RpcOptions, Ut as RelationMeasureArg, V as RowFilter, Vt as Payload, W as UpdateArgs, Wt as RequestArgs, X as EMPTY_STATS, Xt as BucketRegistry, Y as DbStats, Yt as WhereInput, Z as StatsRecorder, Zt as BucketsHelper, _ as CursorPage, _t as TableSpecs, a as explainPostgrest, at as ReadSetParamType, b as DbHelpers, bt as AggregateArgs, c as RpcDefinition, ct as ReadSetParams, dt as isReadSet, en as MemoryCache, f as BlocksHelper, ft as readSetTables, g as ConflictTarget, gt as Specs, h as DbOf, ht as ReadMethod, i as PostgrestExecutorOptions, in as rpcCacheTargets, it as ReadSetOptions, j as OffsetRangeArgs, jt as IncludeArg, k as OffsetPage, kt as FieldFilter, l as SupabaseOptions, lt as ReadSetResult, m as DbExtras, mt as QuerySpec, n as defineSupabase, nn as memoryCache, nt as ReadSet, o as postgrestExecutor, ot as ReadSetParamTypes, p as DbBlockSource, pt as InferResult, q as WriteArgs, qt as SortSpec, r as PostgrestClientLike, rn as rowKey, rt as ReadSetAuth, s as ConnectOptions, st as ReadSetParamValue, t as BetterSupabase, tn as cacheTargetOf, tt as InferReadSetParams, u as ApiOptions, ut as defineReadSet, v as CursorPageArgs, vt as isQuerySpec, w as GetKey, wt as AggregateRow, x as DeleteArgs, xt as AggregateOrderBy, y as Db, yt as specTables, z as RepositoryOf, zt as OrderByArg } from "./define-
|
|
10
|
-
import { Q as StoragePath } from "./bucket-
|
|
11
|
-
import { a as PostgrestPlan, n as PlanLimit, o as compilePostgrest, r as PlanOrder, t as PlanFilter } from "./postgrest-
|
|
9
|
+
import { $ as SearchArgs, $t as CacheTarget, A as OffsetPageArgs, At as GetArgs, B as Returned, Bt as OrderByInput, C as FindExt, Ct as AggregateResult, D as ManyWriteArgs, Dt as CountArg, E as ManyResult, Et as ColumnOrderByArg, F as PageOf, Ft as MeasureArg, G as UpsertArgs, Gt as SelectArg, Ht as ReadArgs, It as MeasureKey, J as WriteManyArgs, Jt as WhereArg, K as UpsertManyArgs, Kt as SortDirection, Lt as MutableWhere, Mt as IncludeArgs, Nt as JsonPathOps, Ot as CountArgs, Pt as ListArgs, Q as recordStats, Qt as CacheAdapter, R as Repository, Rt as NumericMeasureArg, S as DeleteExt, St as AggregateOrderByArg, Tt as ColumnOrderBy, U as RpcOptions, Ut as RelationMeasureArg, V as RowFilter, Vt as Payload, W as UpdateArgs, Wt as RequestArgs, X as EMPTY_STATS, Xt as BucketRegistry, Y as DbStats, Yt as WhereInput, Z as StatsRecorder, Zt as BucketsHelper, _ as CursorPage, _t as TableSpecs, a as explainPostgrest, at as ReadSetParamType, b as DbHelpers, bt as AggregateArgs, c as RpcDefinition, ct as ReadSetParams, dt as isReadSet, en as MemoryCache, f as BlocksHelper, ft as readSetTables, g as ConflictTarget, gt as Specs, h as DbOf, ht as ReadMethod, i as PostgrestExecutorOptions, in as rpcCacheTargets, it as ReadSetOptions, j as OffsetRangeArgs, jt as IncludeArg, k as OffsetPage, kt as FieldFilter, l as SupabaseOptions, lt as ReadSetResult, m as DbExtras, mt as QuerySpec, n as defineSupabase, nn as memoryCache, nt as ReadSet, o as postgrestExecutor, ot as ReadSetParamTypes, p as DbBlockSource, pt as InferResult, q as WriteArgs, qt as SortSpec, r as PostgrestClientLike, rn as rowKey, rt as ReadSetAuth, s as ConnectOptions, st as ReadSetParamValue, t as BetterSupabase, tn as cacheTargetOf, tt as InferReadSetParams, u as ApiOptions, ut as defineReadSet, v as CursorPageArgs, vt as isQuerySpec, w as GetKey, wt as AggregateRow, x as DeleteArgs, xt as AggregateOrderBy, y as Db, yt as specTables, z as RepositoryOf, zt as OrderByArg } from "./define-D8_9X5fZ.js";
|
|
10
|
+
import { Q as StoragePath } from "./bucket-SvRQwYS4.js";
|
|
11
|
+
import { a as PostgrestPlan, n as PlanLimit, o as compilePostgrest, r as PlanOrder, t as PlanFilter } from "./postgrest-AJc8hnJU.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
|
-
import { n as postgrestCompiler, t as Compiler } from "./compiler-
|
|
13
|
+
import { n as postgrestCompiler, t as Compiler } from "./compiler-BEeVWXPS.js";
|
|
14
14
|
import { t as SPEC_PINS } from "./spec-pins-BZkKfwY8.js";
|
|
15
15
|
//#region src/core/error-messages.d.ts
|
|
16
16
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { b as DbError } from "./result-DZeA5KS6.js";
|
|
2
|
-
import { r as AuthState } from "./resolve-
|
|
2
|
+
import { r as AuthState } from "./resolve-CtX6T0c0.js";
|
|
3
3
|
import { i as AuthorizationResource } from "./authorizer-B6X09otb.js";
|
|
4
|
-
import { t as AuthSession } from "./view-
|
|
5
|
-
import { r as GuardOptions } from "./respond-
|
|
4
|
+
import { t as AuthSession } from "./view-C8_xvD-j.js";
|
|
5
|
+
import { r as GuardOptions } from "./respond-Dzu_-EPH.js";
|
|
6
6
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
7
|
//#region src/server/kit.d.ts
|
|
8
8
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
3
3
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
4
|
-
import { r as BlockTemporalOptions } from "./block-helpers-
|
|
5
|
-
import { t as BlockTransport } from "./block-transport-
|
|
6
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
7
|
-
import { f as AiFiles, o as AiFile } from "./types-
|
|
8
|
-
import { g as JobHandler } from "./types-
|
|
4
|
+
import { r as BlockTemporalOptions } from "./block-helpers-D5emQ2O6.js";
|
|
5
|
+
import { t as BlockTransport } from "./block-transport-9EUA3q_I.js";
|
|
6
|
+
import { n as BlockHooks } from "./block-hooks-B8itxzEE.js";
|
|
7
|
+
import { f as AiFiles, o as AiFile } from "./types-DMihLukJ.js";
|
|
8
|
+
import { g as JobHandler } from "./types-CK2X2wCB.js";
|
|
9
9
|
//#region src/blocks/knowledge/knowledge.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* Turns texts into vectors. `model` is stored with each document, so a document
|
package/dist/lint/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mt as Plugin, Pt as RepositoryExtension, m as Operation } from "../types-
|
|
1
|
+
import { Mt as Plugin, Pt as RepositoryExtension, m as Operation } from "../types-CPl9uJ0G.js";
|
|
2
2
|
//#region src/lint/guards.d.ts
|
|
3
3
|
type GuardLevel = "off" | "warn" | "error";
|
|
4
4
|
/** A level, or a level with the rule's option: `['error', 500]`. */
|
package/dist/list/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as FilterRule, a as FilterDateValue, b as encodeFilterQuery, c as FilterFieldLabels, d as FilterLimits, f as FilterNode, g as FilterRelativeDate, h as FilterQuery, i as FilterCombinator, l as FilterFieldType, m as FilterOperatorSpec, n as FILTER_OPERATOR_LABELS, o as FilterField, p as FilterOperatorArity, r as FilterClock, s as FilterFieldInfo, t as FILTER_OPERATORS, u as FilterGroupNode, v as ListFilterConfig, y as decodeFilterQuery } from "../filter-query-
|
|
2
|
-
import { _ as UNSET, a as ListExtra, c as ListParseOptions, d as ListQuery, f as ListQueryConfig, g as ParserSpec, h as OpenApiParameter, i as ListDefinition, l as ListParseResult, m as ListSearchParams, n as FacetCounts, o as ListPage, p as ListQueryInput, r as FacetInfo, s as ListPagination, t as FacetCountFields, u as ListParsers, v as defineListQuery } from "../list-query-
|
|
3
|
-
import { n as FilterRecordField, r as evaluateFilterQuery, t as FilterEvaluation } from "../filter-evaluate-
|
|
1
|
+
import { _ as FilterRule, a as FilterDateValue, b as encodeFilterQuery, c as FilterFieldLabels, d as FilterLimits, f as FilterNode, g as FilterRelativeDate, h as FilterQuery, i as FilterCombinator, l as FilterFieldType, m as FilterOperatorSpec, n as FILTER_OPERATOR_LABELS, o as FilterField, p as FilterOperatorArity, r as FilterClock, s as FilterFieldInfo, t as FILTER_OPERATORS, u as FilterGroupNode, v as ListFilterConfig, y as decodeFilterQuery } from "../filter-query-DBt7OKuH.js";
|
|
2
|
+
import { _ as UNSET, a as ListExtra, c as ListParseOptions, d as ListQuery, f as ListQueryConfig, g as ParserSpec, h as OpenApiParameter, i as ListDefinition, l as ListParseResult, m as ListSearchParams, n as FacetCounts, o as ListPage, p as ListQueryInput, r as FacetInfo, s as ListPagination, t as FacetCountFields, u as ListParsers, v as defineListQuery } from "../list-query-BcU8NnNL.js";
|
|
3
|
+
import { n as FilterRecordField, r as evaluateFilterQuery, t as FilterEvaluation } from "../filter-evaluate-BRpNiNPG.js";
|
|
4
4
|
export { FILTER_OPERATORS, FILTER_OPERATOR_LABELS, type FacetCountFields, type FacetCounts, type FacetInfo, type FilterClock, type FilterCombinator, type FilterDateValue, type FilterEvaluation, type FilterField, type FilterFieldInfo, type FilterFieldLabels, type FilterFieldType, type FilterGroupNode, type FilterLimits, type FilterNode, type FilterOperatorArity, type FilterOperatorSpec, type FilterQuery, type FilterRecordField, type FilterRelativeDate, type FilterRule, type ListDefinition, type ListExtra, type ListFilterConfig, type ListPage, type ListPagination, type ListParseOptions, type ListParseResult, type ListParsers, type ListQuery, type ListQueryConfig, type ListQueryInput, type ListSearchParams, type OpenApiParameter, type ParserSpec, UNSET, decodeFilterQuery, defineListQuery, encodeFilterQuery, evaluateFilterQuery };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { D as ValidationIssue, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
|
-
import { O as AnyFunctions, a as CountMode, it as Row, k as AnyModels, ut as TableKey } from "./types-
|
|
3
|
-
import { A as OffsetPageArgs, C as FindExt, Gt as SelectArg, Vt as Payload, Yt as WhereInput, _ as CursorPage, jt as IncludeArg, k as OffsetPage, t as BetterSupabase, v as CursorPageArgs, z as RepositoryOf, zt as OrderByArg } from "./define-
|
|
4
|
-
import { c as FilterFieldLabels, h as FilterQuery, o as FilterField, r as FilterClock, s as FilterFieldInfo, v as ListFilterConfig } from "./filter-query-
|
|
2
|
+
import { O as AnyFunctions, a as CountMode, it as Row, k as AnyModels, ut as TableKey } from "./types-CPl9uJ0G.js";
|
|
3
|
+
import { A as OffsetPageArgs, C as FindExt, Gt as SelectArg, Vt as Payload, Yt as WhereInput, _ as CursorPage, jt as IncludeArg, k as OffsetPage, t as BetterSupabase, v as CursorPageArgs, z as RepositoryOf, zt as OrderByArg } from "./define-D8_9X5fZ.js";
|
|
4
|
+
import { c as FilterFieldLabels, h as FilterQuery, o as FilterField, r as FilterClock, s as FilterFieldInfo, v as ListFilterConfig } from "./filter-query-DBt7OKuH.js";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
//#region src/list/list-query.d.ts
|
|
7
7
|
/** Facet value meaning "not set": filters with `is null`. */
|
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-
|
|
6
|
-
import { i as parseEnv, n as configEnvironment } from "../cli/env-
|
|
7
|
-
import { s as schemaStampPath } from "../cli/content-mapper-
|
|
1
|
+
import { t as VERSION } from "../cli/version-CQHFm-ak.js";
|
|
2
|
+
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-DQZ09YOg.js";
|
|
3
|
+
import { t as loadSnapshot } from "../cli/snapshot-CXgsUPGj.js";
|
|
4
|
+
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-B18iAdsT.js";
|
|
5
|
+
import { i as discoverConfig, s as loadConfig } from "../cli/config-Cskysxp-.js";
|
|
6
|
+
import { i as parseEnv, n as configEnvironment } from "../cli/env-BK0xKMeU.js";
|
|
7
|
+
import { s as schemaStampPath } from "../cli/content-mapper-B0ehR7K-.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";
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-
|
|
2
|
-
import { t as OperationTable } from "../operations-
|
|
1
|
+
import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-CPl9uJ0G.js";
|
|
2
|
+
import { t as OperationTable } from "../operations-CqmQrTKw.js";
|
|
3
3
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
4
|
-
import { t as BetterSupabase } from "../define-
|
|
5
|
-
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-
|
|
6
|
-
import { r as GuardOptions } from "../respond-
|
|
4
|
+
import { t as BetterSupabase } from "../define-D8_9X5fZ.js";
|
|
5
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BkTIxW_H.js";
|
|
6
|
+
import { r as GuardOptions } from "../respond-Dzu_-EPH.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-BVbHgTPg.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
//#region src/mcp/dialect.d.ts
|
|
11
11
|
/**
|
package/dist/mcp/sdk/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { O as AnyFunctions, k as AnyModels } from "../../types-
|
|
2
|
-
import { r as AuthState } from "../../resolve-
|
|
3
|
-
import { i as CredentialRef, r as CredentialProvider } from "../../provider-
|
|
1
|
+
import { O as AnyFunctions, k as AnyModels } from "../../types-CPl9uJ0G.js";
|
|
2
|
+
import { r as AuthState } from "../../resolve-CtX6T0c0.js";
|
|
3
|
+
import { i as CredentialRef, r as CredentialProvider } from "../../provider-CWjzAIX9.js";
|
|
4
4
|
import { i as SupabaseMcpScope, n as SupabaseMcpModule, r as SupabaseMcpPlatformModule, t as SupabaseMcpFeature } from "../../supabase-mcp-Z4vtsuoO.js";
|
|
5
|
-
import { t as BetterSupabase } from "../../define-
|
|
6
|
-
import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-
|
|
7
|
-
import { r as GuardOptions, t as AllowedCaller } from "../../respond-
|
|
5
|
+
import { t as BetterSupabase } from "../../define-D8_9X5fZ.js";
|
|
6
|
+
import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-BkTIxW_H.js";
|
|
7
|
+
import { r as GuardOptions, t as AllowedCaller } from "../../respond-Dzu_-EPH.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"> {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "./standard-DBV730sF.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "./block-fields-BE7pInWZ.js";
|
|
5
|
-
import { $ as RecordRef } from "./types-
|
|
5
|
+
import { $ as RecordRef } from "./types-CPl9uJ0G.js";
|
|
6
6
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
7
|
-
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "./block-helpers-
|
|
8
|
-
import { t as BlockTransport } from "./block-transport-
|
|
9
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
7
|
+
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "./block-helpers-D5emQ2O6.js";
|
|
8
|
+
import { t as BlockTransport } from "./block-transport-9EUA3q_I.js";
|
|
9
|
+
import { n as BlockHooks } from "./block-hooks-B8itxzEE.js";
|
|
10
10
|
import { t as Author } from "./block-authors-DzXLUiIq.js";
|
|
11
11
|
import { a as ThreadSummary, i as ThreadSummarizer, r as SummaryTarget, t as SummarizeOptions } from "./summaries-8jQTELIX.js";
|
|
12
12
|
//#region src/blocks/messaging/messaging.d.ts
|
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-B0VmlAxF.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-pZn6S_iq.js";
|
|
4
4
|
import { AnyEntry } from "@supabase/middleware";
|
|
5
5
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
6
6
|
//#region src/nestjs/index.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as SessionWatchStatus, t as SessionStatusBody } from "../../session-status-
|
|
1
|
+
import { i as SessionWatchStatus, t as SessionStatusBody } from "../../session-status-BP8eYVnA.js";
|
|
2
2
|
//#region src/next/client/session-watch.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Why the session changed: Auth ended it or banned the user, the user signed
|