better-supabase 0.28.0 → 0.30.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/{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-62GqZIhd.d.ts → app-tables-yyVncXEt.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-BCG1v0iC.d.ts → authorization-CDU9tYA_.d.ts} +17 -3
- 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-C54jD0r3.d.ts → bind-p7asfI6H.d.ts} +7 -7
- package/dist/{block-env-CM-LFfj4.d.ts → block-env-B8wG3xeh.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/calendar/index.js +1 -1
- 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/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 +6 -6
- package/dist/blocks/employees/index.d.ts +8 -8
- package/dist/blocks/enrichment/index.d.ts +6 -6
- package/dist/blocks/enrollments/index.d.ts +6 -6
- package/dist/blocks/entitlements/index.d.ts +6 -6
- package/dist/blocks/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 +8 -8
- 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 +9 -9
- package/dist/blocks/teams/index.d.ts +4 -4
- package/dist/blocks/templates/index.d.ts +7 -7
- package/dist/blocks/time-tracking/index.d.ts +7 -7
- package/dist/blocks/timeline/index.d.ts +8 -8
- package/dist/blocks/trash/index.d.ts +6 -6
- package/dist/blocks/undo/index.d.ts +4 -4
- package/dist/blocks/updated-at/index.d.ts +2 -2
- package/dist/blocks/usage/index.d.ts +4 -4
- package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
- package/dist/blocks/versions/index.d.ts +6 -6
- package/dist/blocks/waitlist/index.d.ts +5 -5
- package/dist/blocks/webhooks/index.d.ts +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-BdhGOwkB.js +1 -0
- package/dist/cli/{add-DUyg9qna.js → add-D4w-Axib.js} +27 -85
- package/dist/cli/{add-BKcE_g9D.js → add-Dggyehsy.js} +2 -2
- package/dist/cli/{migrate-sVs1QYTM.js → app-table-files-CiGuwLkO.js} +90 -50
- package/dist/cli/{backfill-r9RELEEh.js → backfill-DjVjXW_P.js} +4 -4
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-DTOFdrxL.js → blocks-Bbmb6W_F.js} +1 -1
- package/dist/cli/{blocks-k1OG8XDs.js → blocks-jRL9K1R8.js} +2 -2
- package/dist/cli/{cache-Czfw7Iow.js → cache-BuoIFlUJ.js} +1 -1
- package/dist/cli/{codemod-ClmbiLuL.js → codemod-DRavXBCb.js} +5 -5
- package/dist/cli/{command-CVzTJSLp.js → command-DIPmo0wh.js} +6 -1
- package/dist/cli/{completion-DxEXxFpz.js → completion-DxPxMtyP.js} +2 -2
- package/dist/cli/{completion-CNCqE-Gb.js → completion-DyLMSjOD.js} +1 -1
- package/dist/cli/{completion-Dpk6vh0p.js → completion-FUgqm2-N.js} +2 -2
- package/dist/cli/{config-EjNj3HfT.js → config-BfapErxs.js} +1 -1
- package/dist/cli/{config-KvV-sLZL.js → config-Cskysxp-.js} +38 -7
- package/dist/cli/{config-D2YUlzrl.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-ez_mT0d4.js → content-mapper-BCtyfKXl.js} +2 -2
- package/dist/cli/{db-uYN6O5Eg.js → db-CWvH1_46.js} +3 -3
- package/dist/cli/{doctor-BD9oo4MG.js → doctor-Di2ZekfN.js} +57 -24
- package/dist/cli/{env-DEAtgGoj.js → env-B2CbnbzD.js} +2 -2
- package/dist/cli/env-CynGCICL.js +1 -0
- package/dist/cli/{gen-8Ya8n2sA.js → gen-STKC9vkK.js} +16 -16
- package/dist/cli/index.d.ts +9 -2
- package/dist/cli/index.js +8 -8
- package/dist/cli/{init-DgL3sDfQ.js → init-DW6_nIwj.js} +22 -10
- package/dist/cli/{keys-CsanNk-2.js → keys-V-HcO-21.js} +1 -1
- package/dist/cli/{live-CMMEct_F.js → live-0G4Plw3K.js} +2 -2
- package/dist/cli/{mcp-DEHtzAkq.js → mcp-flKS8iU5.js} +6 -14
- package/dist/cli/{metadata-BZh-cOzC.js → metadata-VARUbXEe.js} +3 -3
- package/dist/cli/migrate-Bkq07XcT.js +46 -0
- package/dist/cli/{migration-safety-ClnYNMdq.js → migration-safety-BfVeza5j.js} +2 -2
- package/dist/cli/{migrations-DWh38tO9.js → migrations-BCq7Zs2E.js} +2 -2
- package/dist/cli/{module-migration-CXfRJIV4.js → module-migration-lbeUrsYv.js} +2 -2
- package/dist/cli/{moved-Cnb4fp49.js → moved-DNOtp9LA.js} +1 -1
- package/dist/cli/{parse-BWM6IGhF.js → parse-BPf3kGnc.js} +1 -1
- package/dist/cli/{powersync-Dnyr-Wy5.js → powersync-B15CfH5Y.js} +4 -4
- package/dist/cli/powersync-DnBsDchT.js +1 -0
- package/dist/cli/{print-DJrSr56b.js → print-DjxpBRnv.js} +2 -2
- package/dist/cli/{providers-CpaISitn.js → providers-dyxcHQY3.js} +1 -1
- package/dist/cli/{remove-ChaieK3t.js → remove-BLq5gbal.js} +7 -7
- package/dist/cli/{render-DUNJ4Pss.js → render-CizUf3RW.js} +5 -5
- package/dist/cli/{run-CxFDjL1Q.js → run-ChEjR7yw.js} +3 -3
- package/dist/cli/{run-Cl9COGuy.js → run-ChOY6s4o.js} +9 -9
- package/dist/cli/{run-ChCQPYOh.js → run-MwM__teL.js} +41 -41
- package/dist/cli/seed-BOun22-k.js +1 -0
- package/dist/cli/{seed-BzVLTdRl.js → seed-CDnL4Tnc.js} +3 -3
- package/dist/cli/{shared-5uqc1GBj.js → shared-DV5wIv-7.js} +1 -1
- package/dist/cli/{skills-0gz_qjVb.js → skills-DM3oeIxY.js} +1 -1
- package/dist/cli/{snapshot-DdAP7LWO.js → snapshot-B5LXkVMC.js} +3 -3
- package/dist/cli/{source-2irbWSck.js → source-BoLNG_2A.js} +1 -1
- package/dist/cli/{source-args-DAcQt-Mh.js → source-args-v8ljFDfc.js} +1 -1
- package/dist/cli/{spec-_MS0ym5r.js → spec-D6QeE2Zx.js} +1 -1
- package/dist/cli/{spec-B7n4Rthp.js → spec-Dz-PGCaM.js} +3 -3
- package/dist/cli/{sql-layout-DYKkQw1k.js → sql-layout-zo02f3Dm.js} +2 -2
- package/dist/cli/{stack-CteM33gC.js → stack-ClESAZYf.js} +1 -1
- package/dist/cli/{stack-env-6hS-WEmh.js → stack-env-3ziggrU3.js} +1 -1
- package/dist/cli/{sync-DnSOrQuA.js → sync-m-oZ_SyI.js} +4 -4
- package/dist/cli/{table-DeH8X0qz.js → table-dyKddjwo.js} +1 -1
- package/dist/cli/{upgrade-CWdrC-K3.js → upgrade-C9sgVZ5z.js} +5 -5
- package/dist/cli/{upgrade-cMy5fKkg.js → upgrade-WwEJaX3i.js} +3 -3
- package/dist/cli/{version-C5RAWmrD.js → version-D2BQuqta.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 +4 -4
- package/dist/config/index.js +3 -3
- package/dist/{config-CvJHIy5q.js → config-bqKaPjst.js} +6 -27
- package/dist/{config-CTeR7XHK.js → config-r7njjNgh.js} +1 -1
- package/dist/{connectors-CHGiffYH.d.ts → connectors-uC5baoFV.d.ts} +4 -4
- package/dist/{context-BFEX0b7H.d.ts → context-nbYYjv7U.d.ts} +46 -51
- package/dist/{controller-Cl6HmMBk.d.ts → controller-TRocodqG.d.ts} +1 -1
- package/dist/{conversion-DlfStnln.d.ts → conversion-g8HzH9My.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +2 -2
- package/dist/create/lite/index.d.ts +4 -4
- package/dist/create/lite/index.js +1 -1
- package/dist/credentials/index.d.ts +4 -4
- package/dist/{data-engine-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-Y-n4RGAd.d.ts → entitlements-B1i1-wfe.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-Btn3czyz.d.ts → field-errors-tJvehEFc.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-DPMVWm_Z.d.ts → index-8US7qlvW.d.ts} +5 -5
- package/dist/{index-C_qlBJ3k.d.ts → index-B4wttiLh.d.ts} +4 -4
- package/dist/{index-CAY7rIQs.d.ts → index-BKrxynq9.d.ts} +5 -5
- package/dist/{index-BfYDY6eh.d.ts → index-BM6NmKSc.d.ts} +5 -5
- package/dist/{index-8wOL81rB.d.ts → index-BkzXwuIN.d.ts} +4 -3
- package/dist/{index-k-SyCzcQ.d.ts → index-CWAQRWY8.d.ts} +4 -4
- 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-C0_cweyT.d.ts → index-zsgNmE8m.d.ts} +14 -14
- package/dist/index.d.ts +6 -6
- 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 +6 -6
- 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 +103 -28
- package/dist/next/index.js +189 -49
- package/dist/node/index.d.ts +2 -2
- package/dist/{operations-DE7SOBw-.d.ts → operations-CB9atU2e.d.ts} +1 -1
- package/dist/{options-C4LuqmdG.js → options-BKBy5wM_.js} +2 -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-DP0bthUk.d.ts → ports-hpbyMySO.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 +2 -2
- package/dist/{preset-DwuWNBip.js → preset-DCdEnJj9.js} +8 -13
- package/dist/{project-Bo1vZqVs.js → project-B32wb5J6.js} +4 -4
- package/dist/{provider-ClrIplXa.d.ts → provider-CWjzAIX9.d.ts} +1 -1
- package/dist/{push-token-v3xCcVU7.d.ts → push-token-DQ1ycFPU.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 +1 -1
- 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/{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 +2 -2
- 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-BzihC_8k.d.ts +50 -0
- package/dist/{sign-in-NO7LWlw4.js → sign-in-Cyj3ZlFX.js} +120 -25
- 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 +4 -4
- package/dist/sql/index.js +2 -2
- package/dist/{sql-B7vBP9g0.js → sql-CyeDg3Yh.js} +321 -212
- 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/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-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-CyLEXgot.d.ts → tenant-C9YE_kqK.d.ts} +2 -2
- package/dist/testing/index.d.ts +25 -25
- package/dist/testing/index.js +1 -1
- package/dist/{timeline-Cjl-1hiA.d.ts → timeline-DvXtXq5q.d.ts} +5 -5
- package/dist/{topic-B_DGdAEs.d.ts → topic-breZqx_4.d.ts} +5 -5
- package/dist/{types-Dp3UCr1e.d.ts → types-B-D6fYx2.d.ts} +1 -1
- package/dist/{types-DF8JYEf5.d.ts → types-C3I7S51U.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-1zIAtiNM.d.ts → watch-topic-ItO3dz8m.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-CaEw822d.js → workflow-sdk-BWPsdzVK.js} +36 -8
- 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/package.json +1 -2
- package/schemas/config-v1.json +5 -352
- package/schemas/doctor-report-v1.json +1 -0
- package/skills/better-supabase/references/ui-recipes.md +5 -5
- package/skills/better-supabase-auth/SKILL.md +8 -1
- package/dist/cli/add-pDOlqWUa.js +0 -1
- package/dist/cli/env-Cy2lWBRC.js +0 -1
- package/dist/cli/powersync-DURhWDVc.js +0 -1
- package/dist/cli/seed-BJ7c-ktX.js +0 -1
- package/dist/sign-in-CAadgm33.d.ts +0 -24
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as errorText } from "./errors-BTe6A15O.js";
|
|
2
2
|
import { a as sameText, t as display } from "./io-DH1kcmmP.js";
|
|
3
|
-
import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-
|
|
3
|
+
import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-BuoIFlUJ.js";
|
|
4
4
|
import { t as byCodePoint } from "./compare-BmIWVEui.js";
|
|
5
|
-
import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-
|
|
6
|
-
import { n as render } from "./render-
|
|
7
|
-
import { a as compiledReadSets, c as entitlementRequirements, d as providerLabel, f as unsafeKey, l as entitlementsMode, o as accessProviderMode, s as accessRequirements, u as moduleKeyProblems } from "./providers-
|
|
8
|
-
import { s as schemaStampPath } from "./content-mapper-
|
|
5
|
+
import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-B5LXkVMC.js";
|
|
6
|
+
import { n as render } from "./render-CizUf3RW.js";
|
|
7
|
+
import { a as compiledReadSets, c as entitlementRequirements, d as providerLabel, f as unsafeKey, l as entitlementsMode, o as accessProviderMode, s as accessRequirements, u as moduleKeyProblems } from "./providers-dyxcHQY3.js";
|
|
8
|
+
import { s as schemaStampPath } from "./content-mapper-BCtyfKXl.js";
|
|
9
9
|
import { a as changedFiles, d as fileDiff, i as changeLines, r as applyPlan, s as hasConflicts } from "./files-CX71yBm8.js";
|
|
10
|
-
import { n as migrationsDir, o as writtenByBlocks } from "./sql-layout-
|
|
11
|
-
import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-
|
|
12
|
-
import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-
|
|
10
|
+
import { n as migrationsDir, o as writtenByBlocks } from "./sql-layout-zo02f3Dm.js";
|
|
11
|
+
import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-DV5wIv-7.js";
|
|
12
|
+
import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-lbeUrsYv.js";
|
|
13
13
|
import { existsSync } from "node:fs";
|
|
14
14
|
import { dirname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
15
15
|
import { readFile } from "node:fs/promises";
|
|
@@ -553,7 +553,7 @@ const RLS_RULES = [
|
|
|
553
553
|
code: "BS213",
|
|
554
554
|
severity: "warning",
|
|
555
555
|
title: "API roles can write the columns that grant access",
|
|
556
|
-
description: "RLS helpers decide access from columns such as `memberships.user_id`, `memberships.role` or `contacts.customer_id`, and an authorization provider lists them as `decidingColumns`. When `anon` or `authenticated` may insert or update one of them, and a policy lets them write the row, a user can grant themselves access. A table-level grant counts even after a column-level revoke. A single-column primary key, a tenant column every write policy pins to a tenant the caller acts in (`current_tenant_id()`, `can('tenant', column, ...)`, `tenant_ids_with(...)` or the membership helper `member_organization_ids()`, alone or next to a guest's grant from `portal_subjects()`), a subject's `deletedAt` column in `config.
|
|
556
|
+
description: "RLS helpers decide access from columns such as `memberships.user_id`, `memberships.role` or `contacts.customer_id`, and an authorization provider lists them as `decidingColumns`. When `anon` or `authenticated` may insert or update one of them, and a policy lets them write the row, a user can grant themselves access. A table-level grant counts even after a column-level revoke. A single-column primary key, a tenant column every write policy pins to a tenant the caller acts in (`current_tenant_id()`, `can('tenant', column, ...)`, `tenant_ids_with(...)` or the membership helper `member_organization_ids()`, alone or next to a guest's grant from `portal_subjects()`), a subject's `deletedAt` column in `config.subjects` and a block's soft-delete column (they only hide rows) don't count unless the provider lists them.",
|
|
557
557
|
check: (context) => {
|
|
558
558
|
const tables = new Map(catalogOf(context).tables.map((table) => [qualified(table), table]));
|
|
559
559
|
return [...grantColumns(context)].flatMap(([name, byColumn]) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as runsWithInvalidConfig, d as DOCS_ORIGIN, f as GROUPS, g as runCommand, h as parseArgs$2, i as joinRepeated, l as COMMANDS, o as listArgs, p as RESERVED_NAMES, s as readsLegacyTables, t as GLOBAL_ARGS } from "./command-DIPmo0wh.js";
|
|
2
2
|
import { n as highlight, r as painter } from "./style-Bm2X5JrN.js";
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
3
|
+
import { t as VERSION } from "./version-D2BQuqta.js";
|
|
4
4
|
import { n as CliError, o as toCliError } from "./errors-BTe6A15O.js";
|
|
5
5
|
import { a as missingInputNext, o as resolveAgent, t as checkConsent } from "./agent-CbuPvI2x.js";
|
|
6
|
-
import { a as globalFlags, c as resolveCommand, i as commandTree, n as closestName, o as isVariadic, r as commandArgs, t as checkArgs } from "./parse-
|
|
7
|
-
import { n as movedCommand, r as movedFlag } from "./moved-
|
|
6
|
+
import { a as globalFlags, c as resolveCommand, i as commandTree, n as closestName, o as isVariadic, r as commandArgs, t as checkArgs } from "./parse-BPf3kGnc.js";
|
|
7
|
+
import { n as movedCommand, r as movedFlag } from "./moved-DNOtp9LA.js";
|
|
8
8
|
import { n as HTTP_CHANNEL, t as EXEC_CHANNEL } from "./trace-VbdO6bcN.js";
|
|
9
9
|
import { stripVTControlCharacters } from "node:util";
|
|
10
10
|
import { subscribe, unsubscribe } from "node:diagnostics_channel";
|
|
@@ -16,40 +16,40 @@ import { resolve } from "node:path";
|
|
|
16
16
|
* loads on demand, so `--version` and `--help` import no command.
|
|
17
17
|
*/
|
|
18
18
|
const LOADERS = [
|
|
19
|
-
["init", () => import("./init-
|
|
20
|
-
["add", () => import("./add-
|
|
21
|
-
["remove", () => import("./remove-
|
|
22
|
-
["upgrade", () => import("./upgrade-
|
|
23
|
-
["table", () => import("./table-
|
|
24
|
-
["migrate schema-first", () => import("./migrate-
|
|
25
|
-
["gen", () => import("./gen-
|
|
26
|
-
["doctor", () => import("./doctor-
|
|
27
|
-
["db query", () => import("./db-
|
|
28
|
-
["db diff", () => import("./db-
|
|
29
|
-
["db seed", () => import("./seed-
|
|
30
|
-
["db backfill", () => import("./backfill-
|
|
31
|
-
["dev env", () => import("./env-
|
|
32
|
-
["dev run", () => import("./run-
|
|
33
|
-
["dev keys", () => import("./keys-
|
|
34
|
-
["dev stack ls", () => import("./stack-
|
|
35
|
-
["dev stack prune", () => import("./stack-
|
|
36
|
-
["blocks list", () => import("./blocks-
|
|
37
|
-
["blocks view", () => import("./blocks-
|
|
38
|
-
["blocks search", () => import("./blocks-
|
|
39
|
-
["powersync streams", () => import("./powersync-
|
|
40
|
-
["spec emit", () => import("./spec-
|
|
41
|
-
["spec validate", () => import("./spec-
|
|
42
|
-
["mcp", () => import("./mcp-
|
|
43
|
-
["skills list", () => import("./skills-
|
|
44
|
-
["skills install", () => import("./skills-
|
|
45
|
-
["codemod 0.4", () => import("./codemod-
|
|
46
|
-
["codemod 0.5", () => import("./codemod-
|
|
47
|
-
["codemod 0.6", () => import("./codemod-
|
|
48
|
-
["codemod 0.9", () => import("./codemod-
|
|
49
|
-
["codemod 0.11", () => import("./codemod-
|
|
50
|
-
["codemod 0.15", () => import("./codemod-
|
|
51
|
-
["completion", () => import("./completion-
|
|
52
|
-
["config", () => import("./config-
|
|
19
|
+
["init", () => import("./init-DW6_nIwj.js").then((m) => m.initCommand)],
|
|
20
|
+
["add", () => import("./add-BdhGOwkB.js").then((m) => m.addCommand)],
|
|
21
|
+
["remove", () => import("./remove-BLq5gbal.js").then((m) => m.removeCommand)],
|
|
22
|
+
["upgrade", () => import("./upgrade-WwEJaX3i.js").then((m) => m.upgradeCommand)],
|
|
23
|
+
["table", () => import("./table-dyKddjwo.js").then((m) => m.tableCommand)],
|
|
24
|
+
["migrate schema-first", () => import("./migrate-Bkq07XcT.js").then((m) => m.migrateSchemaFirstCommand)],
|
|
25
|
+
["gen", () => import("./gen-STKC9vkK.js").then((m) => m.genCommand)],
|
|
26
|
+
["doctor", () => import("./doctor-Di2ZekfN.js").then((m) => m.doctorCommand)],
|
|
27
|
+
["db query", () => import("./db-CWvH1_46.js").then((m) => m.dbQueryCommand)],
|
|
28
|
+
["db diff", () => import("./db-CWvH1_46.js").then((m) => m.dbDiffCommand)],
|
|
29
|
+
["db seed", () => import("./seed-BOun22-k.js").then((m) => m.seedCommand)],
|
|
30
|
+
["db backfill", () => import("./backfill-DjVjXW_P.js").then((m) => m.dbBackfillCommand)],
|
|
31
|
+
["dev env", () => import("./env-CynGCICL.js").then((m) => m.envCommand)],
|
|
32
|
+
["dev run", () => import("./run-ChEjR7yw.js").then((m) => m.runCommand)],
|
|
33
|
+
["dev keys", () => import("./keys-V-HcO-21.js").then((m) => m.keysCommand)],
|
|
34
|
+
["dev stack ls", () => import("./stack-ClESAZYf.js").then((m) => m.stackLsCommand)],
|
|
35
|
+
["dev stack prune", () => import("./stack-ClESAZYf.js").then((m) => m.stackPruneCommand)],
|
|
36
|
+
["blocks list", () => import("./blocks-Bbmb6W_F.js").then((m) => m.blocksListCommand)],
|
|
37
|
+
["blocks view", () => import("./blocks-Bbmb6W_F.js").then((m) => m.blocksViewCommand)],
|
|
38
|
+
["blocks search", () => import("./blocks-Bbmb6W_F.js").then((m) => m.blocksSearchCommand)],
|
|
39
|
+
["powersync streams", () => import("./powersync-DnBsDchT.js").then((m) => m.powersyncStreamsCommand)],
|
|
40
|
+
["spec emit", () => import("./spec-D6QeE2Zx.js").then((m) => m.specEmitCommand)],
|
|
41
|
+
["spec validate", () => import("./spec-D6QeE2Zx.js").then((m) => m.specValidateCommand)],
|
|
42
|
+
["mcp", () => import("./mcp-flKS8iU5.js").then((m) => m.mcpCommand)],
|
|
43
|
+
["skills list", () => import("./skills-DM3oeIxY.js").then((m) => m.skillsListCommand)],
|
|
44
|
+
["skills install", () => import("./skills-DM3oeIxY.js").then((m) => m.skillsInstallCommand)],
|
|
45
|
+
["codemod 0.4", () => import("./codemod-DRavXBCb.js").then((m) => m.codemodCommand("0.4"))],
|
|
46
|
+
["codemod 0.5", () => import("./codemod-DRavXBCb.js").then((m) => m.codemodCommand("0.5"))],
|
|
47
|
+
["codemod 0.6", () => import("./codemod-DRavXBCb.js").then((m) => m.codemodCommand("0.6"))],
|
|
48
|
+
["codemod 0.9", () => import("./codemod-DRavXBCb.js").then((m) => m.codemodCommand("0.9"))],
|
|
49
|
+
["codemod 0.11", () => import("./codemod-DRavXBCb.js").then((m) => m.codemodCommand("0.11"))],
|
|
50
|
+
["codemod 0.15", () => import("./codemod-DRavXBCb.js").then((m) => m.codemodCommand("0.15"))],
|
|
51
|
+
["completion", () => import("./completion-FUgqm2-N.js").then((m) => m.completionCommand)],
|
|
52
|
+
["config", () => import("./config-BfapErxs.js").then((m) => m.configCommand)]
|
|
53
53
|
];
|
|
54
54
|
/** The built-in commands, for `createCli`. */
|
|
55
55
|
function builtinCommands() {
|
|
@@ -468,7 +468,7 @@ function cliFromTree(init, extra = {}) {
|
|
|
468
468
|
};
|
|
469
469
|
if (argv[0] === "__complete") {
|
|
470
470
|
const words = argv[1] === "--" ? argv.slice(2) : argv.slice(1);
|
|
471
|
-
const lines = await import("./completion-
|
|
471
|
+
const lines = await import("./completion-DyLMSjOD.js").then(async ({ complete, completionLines }) => completionLines(await complete(tree, words))).catch(() => "");
|
|
472
472
|
if (lines !== "") out(lines);
|
|
473
473
|
return {
|
|
474
474
|
code: 0,
|
|
@@ -597,7 +597,7 @@ function cliFromTree(init, extra = {}) {
|
|
|
597
597
|
try {
|
|
598
598
|
const [loaded, { defaultConfig, discoverConfig, loadConfig }, { configEnvironment, isCi, parseEnv }] = await Promise.all([
|
|
599
599
|
node.load(),
|
|
600
|
-
import("./config-
|
|
600
|
+
import("./config-Df5cXWNN.js"),
|
|
601
601
|
import("./env-Bat6ogep.js")
|
|
602
602
|
]);
|
|
603
603
|
command = loaded;
|
|
@@ -608,7 +608,7 @@ function cliFromTree(init, extra = {}) {
|
|
|
608
608
|
const env = parseEnv(options.env ?? {});
|
|
609
609
|
const environment = configEnvironment(globals.env, env);
|
|
610
610
|
const configFile = discoverConfig(cwd, globals.config);
|
|
611
|
-
const loadWith = (path) => loadConfig(cwd, globals.config, environment, path).catch((cause) => {
|
|
611
|
+
const loadWith = (path) => loadConfig(cwd, globals.config, environment, path, { legacyTables: readsLegacyTables(command) }).catch((cause) => {
|
|
612
612
|
throw cause instanceof CliError ? cause : new CliError("config_invalid", toCliError(cause).message, { cause });
|
|
613
613
|
});
|
|
614
614
|
const reloadConfig = () => loadWith();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as seedCommand } from "./seed-CDnL4Tnc.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
|
|
2
2
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CbuPvI2x.js";
|
|
3
3
|
import { t as display } from "./io-DH1kcmmP.js";
|
|
4
|
-
import { l as stdinDatabaseUrl, n as databaseUrl, o as importExport } from "./config-
|
|
4
|
+
import { l as stdinDatabaseUrl, n as databaseUrl, o as importExport } from "./config-Cskysxp-.js";
|
|
5
5
|
import { m as supabaseDir } from "./supabase-toml-CncmQbO0.js";
|
|
6
6
|
import { t as connect } from "./db-CQCLx7cx.js";
|
|
7
7
|
import { c as insideRoot, i as changeLines, n as PLAN_ARGS, r as applyPlan, s as hasConflicts, u as planResult } from "./files-CX71yBm8.js";
|
|
8
|
-
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-
|
|
8
|
+
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-v8ljFDfc.js";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { resolve } from "node:path";
|
|
11
11
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as toCatalog } from "./source-
|
|
1
|
+
import { a as toCatalog } from "./source-BoLNG_2A.js";
|
|
2
2
|
import { h as tomlGet, p as sqlWorkflow, r as detectWorkflow } from "./supabase-toml-CncmQbO0.js";
|
|
3
3
|
//#region src/cli/doctor/shared.ts
|
|
4
4
|
const catalogs = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as list,
|
|
1
|
+
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
|
|
2
2
|
import { n as CliError } from "./errors-BTe6A15O.js";
|
|
3
3
|
import { t as byCodePoint } from "./compare-BmIWVEui.js";
|
|
4
4
|
import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
|
|
2
|
-
import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-
|
|
2
|
+
import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-BuoIFlUJ.js";
|
|
3
3
|
import { t as byCodePoint } from "./compare-BmIWVEui.js";
|
|
4
|
-
import { n as managementSource, r as pgSource } from "./source-
|
|
5
|
-
import { n as databaseUrl, u as accessToken } from "./config-
|
|
4
|
+
import { n as managementSource, r as pgSource } from "./source-BoLNG_2A.js";
|
|
5
|
+
import { n as databaseUrl, u as accessToken } from "./config-Cskysxp-.js";
|
|
6
6
|
import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, u as pgFunctionHooks } from "./supabase-toml-CncmQbO0.js";
|
|
7
7
|
import { t as connect } from "./db-CQCLx7cx.js";
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { t as VERSION } from "./version-D2BQuqta.js";
|
|
2
2
|
import { n as CliError } from "./errors-BTe6A15O.js";
|
|
3
3
|
import { r as redactUrl } from "./redact-KGAk2Ul9.js";
|
|
4
4
|
import { n as HTTP_CHANNEL } from "./trace-VbdO6bcN.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-BTe6A15O.js";
|
|
2
|
-
import { l as stdinDatabaseUrl } from "./config-
|
|
2
|
+
import { l as stdinDatabaseUrl } from "./config-Cskysxp-.js";
|
|
3
3
|
//#region src/cli/commands/source-args.ts
|
|
4
4
|
/**
|
|
5
5
|
* The connection string from stdin, for commands that connect but read no
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as specEmitCommand, i as specValidateCommand } from "./spec-
|
|
1
|
+
export { n as specEmitCommand, i as specValidateCommand } from "./spec-Dz-PGCaM.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __require, t as __commonJSMin } from "./rolldown-runtime-kJ_i4yPo.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
2
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
|
|
3
|
+
import { t as VERSION } from "./version-D2BQuqta.js";
|
|
4
4
|
import { i as failedResult, n as CliError, r as errorText } from "./errors-BTe6A15O.js";
|
|
5
5
|
import { t as display } from "./io-DH1kcmmP.js";
|
|
6
|
-
import { c as writeAtomic, t as CACHE_DIR } from "./cache-
|
|
6
|
+
import { c as writeAtomic, t as CACHE_DIR } from "./cache-BuoIFlUJ.js";
|
|
7
7
|
import { t as isRecord } from "./guards-CUlDNYZs.js";
|
|
8
8
|
import { t as importFresh } from "./fresh-import-DzgsGHkX.js";
|
|
9
9
|
import { a as changedFiles, i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-
|
|
2
|
-
import { a as toCatalog } from "./source-
|
|
1
|
+
import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-B5LXkVMC.js";
|
|
2
|
+
import { a as toCatalog } from "./source-BoLNG_2A.js";
|
|
3
3
|
import { d as readSupabaseToml, f as schemaPaths, n as declarativeSchemasDir, p as sqlWorkflow } from "./supabase-toml-CncmQbO0.js";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import { dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
|
|
2
2
|
import { r as supabaseCli } from "./exec-Ca5s-ygi.js";
|
|
3
3
|
import { a as readSharedMemory, i as reportStacks, n as listStacks, r as prunePlan, t as branchName } from "./stacks-CiDBH1dB.js";
|
|
4
4
|
//#region src/cli/commands/stack.ts
|
|
@@ -90,4 +90,4 @@ function staleVariables(shell, values) {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
//#endregion
|
|
93
|
-
export { staleVariables as i, prefixFromFlag as n,
|
|
93
|
+
export { staleVariables as a, stackEnvValues as i, prefixFromFlag as n, redactValue as r, PREFIX_NAMES as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-BTe6A15O.js";
|
|
2
2
|
import { t as display } from "./io-DH1kcmmP.js";
|
|
3
|
-
import { r as layoutFor } from "./providers-
|
|
3
|
+
import { r as layoutFor } from "./providers-dyxcHQY3.js";
|
|
4
4
|
import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, o as findSupabaseRoot, p as sqlWorkflow, t as PGDELTA_TABLE } from "./supabase-toml-CncmQbO0.js";
|
|
5
5
|
import { d as fileDiff, i as changeLines, l as keepHandEdit, o as handEditedError, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-CX71yBm8.js";
|
|
6
|
-
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-
|
|
7
|
-
import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-
|
|
8
|
-
import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-
|
|
6
|
+
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-zo02f3Dm.js";
|
|
7
|
+
import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-BCq7Zs2E.js";
|
|
8
|
+
import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-lbeUrsYv.js";
|
|
9
9
|
import { t as loadTopics } from "./topics-BpdnYmWb.js";
|
|
10
10
|
import { t as orphanedBlockFiles } from "./orphans-BAboqyVM.js";
|
|
11
11
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
|
|
2
2
|
import { i as plain } from "./style-Bm2X5JrN.js";
|
|
3
3
|
import { n as CliError } from "./errors-BTe6A15O.js";
|
|
4
4
|
import { t as display } from "./io-DH1kcmmP.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as display } from "./io-DH1kcmmP.js";
|
|
2
|
-
import { r as layoutFor } from "./providers-
|
|
2
|
+
import { r as layoutFor } from "./providers-dyxcHQY3.js";
|
|
3
3
|
import { d as fileDiff, i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
|
|
4
|
-
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-
|
|
5
|
-
import { r as migrationStamp } from "./migrations-
|
|
6
|
-
import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-
|
|
7
|
-
import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-
|
|
4
|
+
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-zo02f3Dm.js";
|
|
5
|
+
import { r as migrationStamp } from "./migrations-BCq7Zs2E.js";
|
|
6
|
+
import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-lbeUrsYv.js";
|
|
7
|
+
import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-m-oZ_SyI.js";
|
|
8
8
|
import { a as legacyPrefixSql, i as legacyPrefixNames, r as legacyBlocksTableSql } from "./legacy-prefix-R7UChFFl.js";
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
10
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
|
|
2
2
|
import { i as plain } from "./style-Bm2X5JrN.js";
|
|
3
|
-
import { t as syncModules } from "./sync-
|
|
3
|
+
import { t as syncModules } from "./sync-m-oZ_SyI.js";
|
|
4
4
|
import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
|
|
5
|
-
import { t as upgrade } from "./upgrade-
|
|
5
|
+
import { t as upgrade } from "./upgrade-C9sgVZ5z.js";
|
|
6
6
|
//#region src/cli/commands/upgrade.ts
|
|
7
7
|
const UPGRADE_ARGS = {
|
|
8
8
|
check: {
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as DataSync, c as LocalTablesOption, i as DataEntry, l as liveEngine, n as DataEngine, o as DataSyncState, r as DataEngineOptions, s as LiveEngineOptions, t as DataChanges, u as memoryEngine } from "../data-engine-
|
|
2
|
-
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-
|
|
3
|
-
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-
|
|
4
|
-
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-
|
|
5
|
-
import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-
|
|
1
|
+
import { a as DataSync, c as LocalTablesOption, i as DataEntry, l as liveEngine, n as DataEngine, o as DataSyncState, r as DataEngineOptions, s as LiveEngineOptions, t as DataChanges, u as memoryEngine } from "../data-engine-rvbR2C4F.js";
|
|
2
|
+
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-ItO3dz8m.js";
|
|
3
|
+
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-hpbyMySO.js";
|
|
4
|
+
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-p7asfI6H.js";
|
|
5
|
+
import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-TRocodqG.js";
|
|
6
6
|
import { n as FunctionContract } from "../function-contract-DxFNOmsm.js";
|
|
7
|
-
import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-
|
|
7
|
+
import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-8US7qlvW.js";
|
|
8
8
|
export { type AuthPort, type AuthSnapshot, type AuthUser, type BetterClient, type BindClientOptions, type ClientAuth, ClientOptions, type ClientPorts, type Controller, type ControllerParts, type ControllerState, type DataChanges, type DataEngine, type DataEngineOptions, type DataEntry, type DataSync, type DataSyncState, type DeepLinkPort, type FilePickerPort, type FunctionContract, type FunctionContracts, type FunctionsHost, type InvokeOptions, type KeyboardPort, type LiveEngineOptions, type LocalTablesOption, type PickFilesOptions, type PickedFile, type PushRegistrationLike, type PushTokenPort, type Shortcut, type StoragePort, type TopicHandle, type TopicPort, type TopicWatch, type TypedFunctions, type UploadDestination, type UploadPort, type WebPushTokenOptions, bindClient, createClient, defineController, functions, liveEngine, memoryEngine, memoryStorage, storageUpload, webDeepLinks, webFilePicker, webKeyboard, webPorts, webPushToken, webStorage, whileSignedIn };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
2
|
-
import { T as UploadOptions, w as UploadBody } from "../../bucket-
|
|
3
|
-
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-
|
|
4
|
-
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-
|
|
5
|
-
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-
|
|
6
|
-
import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-
|
|
2
|
+
import { T as UploadOptions, w as UploadBody } from "../../bucket-SvRQwYS4.js";
|
|
3
|
+
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-ItO3dz8m.js";
|
|
4
|
+
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-hpbyMySO.js";
|
|
5
|
+
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-p7asfI6H.js";
|
|
6
|
+
import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-DQ1ycFPU.js";
|
|
7
7
|
import { a as OAuthSignInOptions, c as linkParams, i as OAuthClient, l as signInWithOAuthBrowser, n as AuthLinkClient, o as WebBrowserLike, r as AuthLinkResult, s as handleAuthDeepLink, t as AuthFailure } from "../../auth-link-B4NL84XU.js";
|
|
8
8
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
9
9
|
//#region src/client/native/auto-refresh.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { D as BlockEventPattern, T as BlockEvent, o as EventHub } from "./events-
|
|
2
|
+
import { D as BlockEventPattern, T as BlockEvent, o as EventHub } from "./events-B2qbZps6.js";
|
|
3
3
|
//#region src/events/cloud-event.d.ts
|
|
4
4
|
/** A CloudEvents 1.0 event. Extension attributes are lowercase alphanumerics. */
|
|
5
5
|
interface CloudEvent<T = unknown> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as Operation } from "./types-
|
|
2
|
-
import { a as PostgrestPlan } from "./postgrest-
|
|
1
|
+
import { m as Operation } from "./types-CPl9uJ0G.js";
|
|
2
|
+
import { a as PostgrestPlan } from "./postgrest-AJc8hnJU.js";
|
|
3
3
|
//#region src/core/compiler.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Turns an IR operation into something a backend runs. An `Executor` for a new
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { O as AnyFunctions, k as AnyModels } from "./types-
|
|
2
|
-
import { r as AuthState } from "./resolve-
|
|
3
|
-
import { t as BetterSupabase, y as Db } from "./define-
|
|
4
|
-
import { a as ServerContext, b as ReplicaState, c as ServerOptions, n as BetterServer } from "./server-types-
|
|
5
|
-
import { t as ActiveSupport } from "./support-
|
|
6
|
-
import { n as SessionEntryConfig } from "./session-
|
|
7
|
-
import { r as GuardOptions } from "./respond-
|
|
1
|
+
import { O as AnyFunctions, k as AnyModels } from "./types-CPl9uJ0G.js";
|
|
2
|
+
import { r as AuthState } from "./resolve-CtX6T0c0.js";
|
|
3
|
+
import { t as BetterSupabase, y as Db } from "./define-D8_9X5fZ.js";
|
|
4
|
+
import { a as ServerContext, b as ReplicaState, c as ServerOptions, n as BetterServer } from "./server-types-BkTIxW_H.js";
|
|
5
|
+
import { t as ActiveSupport } from "./support-BxyPOFk4.js";
|
|
6
|
+
import { n as SessionEntryConfig } from "./session-BOzx2qHC.js";
|
|
7
|
+
import { r as GuardOptions } from "./respond-Dzu_-EPH.js";
|
|
8
8
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
9
9
|
import { Entry, SingleKeyEntry } from "@supabase/middleware";
|
|
10
10
|
import { AuthMode, JWTClaims, UserClaims } from "@supabase/server";
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as Casing } from "../types-
|
|
2
|
-
import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-
|
|
3
|
-
import { $ as JsonSchemaTarget, $r as
|
|
1
|
+
import { M as Casing } from "../types-CPl9uJ0G.js";
|
|
2
|
+
import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-CDU9tYA_.js";
|
|
3
|
+
import { $ as JsonSchemaTarget, $r as SnapshotExtras, $t as GeneratorNoun, An as SqlWorkflow, Ar as AppTablesConfig, B as ZodGeneratorOptions, Bi as MigrationSafetyConfig, Bn as ExposePrivilege, Br as CatalogIndex, Bt as GeneratedFile, Cn as EntitlementPlansSource, Cr as AppRollupAggregate, Dn as ResolvedSqlConfig, Dr as AppTableEvents, En as RealtimeConfig, Er as AppTableEventKind, Fi as EnvFileConfig, Fn as TopicTriggerValueConfig, Fr as CatalogEnum, G as standardSchema, Gi as GEN_TASKS, Gr as ExtrasDomain, Gt as GeneratorEntitySchemas, H as ValibotGeneratorOptions, Hi as PowerSyncGenConfig, Hn as Privilege, Hr as CatalogTable, Ht as GeneratorBlock, Ii as GenConfig, In as VectorDistance, Ir as CatalogForeignKey, J as FactoriesGeneratorOptions, Ji as IntegrationInfo, Jr as ExtrasHookFunction, Jt as GeneratorFunctionArg, K as NuqsGeneratorOptions, Ki as INTEGRATION_INFO, Kr as ExtrasFunction, Kt as GeneratorField, Li as GenTask, Ln as VectorSearchConfig, Lr as CatalogFunction, Lt as resolveJsonSchema, Mn as TopicTriggerLookupConfig, Mr as CatalogCheck, Nn as TopicTriggerPayloadValueConfig, Nr as CatalogColumn, On as SeedConfig, Or as AppTableSubject, Pi as DoctorConfig, Pn as TopicTriggerTopicConfig, Pr as CatalogColumnGrant, Q as jsonSchema, Qr as SnapshotBucket, Qt as GeneratorModel, Ri as IntegrationName, Rn as ColumnPrivilege, Rr as CatalogFunctionArg, Rt as ClaimsConfig, Sn as ToolingConfig, Sr as AppReferenceTarget, St as RoleNames, Tn as BucketConfig, Tr as AppTableConfig, U as valibot, Ui as SkillsAgent, Un as ResolvedExpose, Ur as CatalogTrigger, Ut as GeneratorBlockEntity, V as zod, Vi as OpenApiConfig, Vn as ExposeRole, Vr as CatalogPolicy, Vt as Generator, W as StandardSchemaGeneratorOptions, Wi as SkillsConfig, Wr as CatalogUnique, Wt as GeneratorColumn, X as JsonSchemaGeneratorOptions, Xr as ForeignKeyAction, Xt as GeneratorInputSchema, Y as factories, Yi as SKILLS_AGENTS, Yr as ExtrasTable, Yt as GeneratorInput, Z as buildJsonSchema, Zr as Snapshot, Zt as GeneratorJsonSchema, _n as DatabaseConfig, _r as AppColumnFormat, _t as defineConfig, ai as RpcFunctionArg, an as TableConfig, at as blockEntities, bn as OrganizationConfig, br as AppOnDeleteAction, bt as BucketName, ci as RpcReturnColumn, cn as ResolvedConfig, ct as CONFIG_GROUPS, dn as AppTableInput, dr as APP_COLUMN_TYPES, dt as blockEntrySource, ei as GeneratorMetadata, en as GeneratorTable, et as ClaimPaths, fn as AppTablesInput, fr as APP_ON_DELETE_ACTIONS, ft as flattenConfig, gn as BlocksInput, gr as AppColumnConfig, gt as ResolveInput, hn as BlockInput, hr as AppColumnAccess, ht as CONFIG_SCHEMA_URL, ii as RpcFunction, in as SourceConfig, ir as CONFIG_DEFAULTS, it as BlockEntity, jn as TopicTriggerConfig, jr as Catalog, kn as SqlConfig, kr as AppTableVersions, li as RpcTypeReference, ln as ResolvedExtensions, lr as APP_COLUMN_ACCESS, lt as RENAMED_BLOCK_KEYS, mn as BetterSupabaseConfig, mr as APP_TABLE_EVENT_KINDS, mt as groupEntries, ni as PostgresFunction, nn as JsonTypeConfig, nt as claimPaths, oi as RpcFunctionOverload, on as DataHooksFramework, ot as blockEntityRenames, pn as AuthConfig, pr as APP_ROLLUP_AGGREGATES, pt as groupConfig, q as nuqs, qi as INTEGRATION_NAMES, qr as ExtrasHook, qt as GeneratorFunction, ri as PostgresFunctionArg, rn as RelationsConfig, rt as tenantClaimPaths, si as RpcFunctionReturns, sn as FlatConfig, st as blockSubjectTypes, ti as PostgresColumn, tn as JsonSchemaSource, tt as DEFAULT_CLAIMS, un as ApiConfig, ur as APP_COLUMN_FORMATS, ut as RENAMED_CONFIG_KEYS, vn as EnvironmentConfig, vr as AppColumnType, vt as resolveConfig, wn as EntitlementsConfig, wr as AppRollupConfig, wt as ExpandedConfig, xn as SqlInput, xr as AppReference, xt as ConfigReferences, yn as GenGroupConfig, yr as AppLookupConfig, yt as BlockTableReference, z as ZodFlavor, zi as KeysConfig, zn as ExposeConfig, zr as CatalogGrant, zt as CodecsConfig } from "../context-nbYYjv7U.js";
|
|
4
4
|
import { i as SubjectsConfig, n as SubjectPermission, r as SubjectSearch, t as SubjectConfig } from "../subjects-BYCL-6hA.js";
|
|
5
5
|
import { a as FieldFormat, o as FieldFormatInput, r as FIELD_FORMATS } from "../field-formats-CAFNkKSN.js";
|
|
6
|
-
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEventKind, type AppTableEvents, type AppTableInput, type
|
|
6
|
+
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type BetterSupabaseConfig, type BlockConfig, type BlockEntity, type BlockInput, type BlockMode, type BlockScope, type BlockTableReference, type BlocksConfig, type BlocksInput, type BucketConfig, type BucketName, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, type Casing, type Catalog, type CatalogCheck, type CatalogColumn, type CatalogColumnGrant, type CatalogEnum, type CatalogForeignKey, type CatalogFunction, type CatalogFunctionArg, type CatalogGrant, type CatalogIndex, type CatalogPolicy, type CatalogTable, type CatalogTrigger, type CatalogUnique, type ClaimPaths, type ClaimsConfig, type CodecsConfig, type ColumnPrivilege, type ConfigReferences, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, type DataHooksFramework, type DatabaseConfig, type DisabledRow, type DoctorConfig, type EntitiesConfig, type EntitlementPlansSource, type EntitlementsConfig, type EntityConfig, type EnvFileConfig, type EnvironmentConfig, type ExpandedConfig, type ExposeConfig, type ExposePrivilege, type ExposeRole, type ExtrasDomain, type ExtrasFunction, type ExtrasHook, type ExtrasHookFunction, type ExtrasTable, FIELD_FORMATS, type FactoriesGeneratorOptions, type FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorColumn, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorNoun, type GeneratorTable, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaGeneratorOptions, type JsonSchemaSource, type JsonSchemaTarget, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type NuqsGeneratorOptions, type OpenApiConfig, type OrganizationConfig, type OwnTablePolicies, type PostgresColumn, type PostgresFunction, type PostgresFunctionArg, type PowerSyncGenConfig, type Privilege, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, type RealtimeConfig, type RelationsConfig, type ResolveInput, type ResolvedConfig, type ResolvedExpose, type ResolvedExtensions, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlConfig, type SqlInput, type SqlWorkflow, type StandardSchemaGeneratorOptions, type SubjectConfig, type SubjectPermission, type SubjectSearch, type SubjectsConfig, type TableConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type ValibotGeneratorOptions, type VectorDistance, type VectorSearchConfig, type ZodFlavor, type ZodGeneratorOptions, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
|
package/dist/config/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as resolveJsonSchema, r as CONFIG_DEFAULTS } from "../resolved-names-iLBOUaib.js";
|
|
2
|
-
import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as
|
|
2
|
+
import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_NAMES, I as SKILLS_AGENTS, M as groupEntries, N as GEN_TASKS, O as RENAMED_CONFIG_KEYS, P as INTEGRATION_INFO, j as groupConfig, k as blockEntrySource } from "../config-bqKaPjst.js";
|
|
3
3
|
import { a as tenantClaimPaths, r as claimPaths, t as DEFAULT_CLAIMS } from "../claims-Bp9My7XP.js";
|
|
4
4
|
import { A as APP_ROLLUP_AGGREGATES, D as APP_COLUMN_FORMATS, E as APP_COLUMN_ACCESS, L as tenantNameOf, O as APP_COLUMN_TYPES, P as DEFAULT_ACTIVE_TENANT, j as APP_TABLE_EVENT_KINDS, k as APP_ON_DELETE_ACTIONS } from "../instances-C7qUTjhJ.js";
|
|
5
5
|
import { r as FIELD_FORMATS } from "../field-formats-C6QKA3UR.js";
|
|
6
|
-
import { a as factories, c as resolveConfig, d as blockSubjectTypes, f as providerApiProblem, i as nuqs, l as blockEntities, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod, u as blockEntityRenames } from "../config-
|
|
6
|
+
import { a as factories, c as resolveConfig, d as blockSubjectTypes, f as providerApiProblem, i as nuqs, l as blockEntities, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod, u as blockEntityRenames } from "../config-r7njjNgh.js";
|
|
7
7
|
import { n as jsonSchema, t as buildJsonSchema } from "../json-schema-DHJxiizN.js";
|
|
8
|
-
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, FIELD_FORMATS, GEN_TASKS, INTEGRATION_INFO, INTEGRATION_NAMES, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, SKILLS_AGENTS, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries,
|
|
8
|
+
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, FIELD_FORMATS, GEN_TASKS, INTEGRATION_INFO, INTEGRATION_NAMES, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, SKILLS_AGENTS, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
|
|
@@ -116,11 +116,7 @@ const CONFIG_GROUPS = {
|
|
|
116
116
|
]
|
|
117
117
|
};
|
|
118
118
|
/** Top-level keys renamed by the regrouping: the grouped name, then the flat. */
|
|
119
|
-
const RENAMED_CONFIG_KEYS = [
|
|
120
|
-
["records", "subjects"],
|
|
121
|
-
["tables", "appTables"],
|
|
122
|
-
["adapters", "integrations"]
|
|
123
|
-
];
|
|
119
|
+
const RENAMED_CONFIG_KEYS = [["adapters", "integrations"]];
|
|
124
120
|
/** Keys renamed inside `blocks.<name>`: the grouped name, then the flat. */
|
|
125
121
|
const RENAMED_BLOCK_KEYS = [
|
|
126
122
|
["ownership", "mode"],
|
|
@@ -164,9 +160,9 @@ function organizationOf(organization, out) {
|
|
|
164
160
|
}
|
|
165
161
|
/**
|
|
166
162
|
* The grouped config in the flat shape `resolveConfig` reads: every group's
|
|
167
|
-
* keys at the top level, `
|
|
168
|
-
*
|
|
169
|
-
*
|
|
163
|
+
* keys at the top level, `adapters` under its flat name, `auth.organization` as
|
|
164
|
+
* `claims.tenant` and `organization`, and the renamed block and app table keys
|
|
165
|
+
* under their flat names.
|
|
170
166
|
*/
|
|
171
167
|
function flattenConfig(config) {
|
|
172
168
|
const source = { ...config };
|
|
@@ -192,21 +188,6 @@ function flattenConfig(config) {
|
|
|
192
188
|
}
|
|
193
189
|
const GROUP_OF = new Map(Object.entries(CONFIG_GROUPS).flatMap(([group, keys]) => keys.map((key) => [key, group])));
|
|
194
190
|
const ENVIRONMENT_KEY = /^\$(?:development|production|test|ci)$/;
|
|
195
|
-
const GROUPED_KEYS = /* @__PURE__ */ new Set([
|
|
196
|
-
"database",
|
|
197
|
-
"auth",
|
|
198
|
-
"api",
|
|
199
|
-
"tooling",
|
|
200
|
-
"records",
|
|
201
|
-
"adapters"
|
|
202
|
-
]);
|
|
203
|
-
/**
|
|
204
|
-
* Whether a top-level `tables` is the generator overrides of a config written
|
|
205
|
-
* before 0.15 rather than the app tables of a grouped one.
|
|
206
|
-
*/
|
|
207
|
-
function hasFlatTables(keys) {
|
|
208
|
-
return keys.includes("appTables") || !keys.some((key) => GROUPED_KEYS.has(key));
|
|
209
|
-
}
|
|
210
191
|
/**
|
|
211
192
|
* Moves `claims.tenant`, the flat `organization` and the 0.14 tenant plugin's
|
|
212
193
|
* column to `auth.organization`.
|
|
@@ -258,9 +239,8 @@ function groupConfig(config) {
|
|
|
258
239
|
function groupEntries(config) {
|
|
259
240
|
const out = {};
|
|
260
241
|
const groups = {};
|
|
261
|
-
const flatTables = hasFlatTables(Object.keys(config));
|
|
262
242
|
for (const [key, value] of Object.entries(config)) {
|
|
263
|
-
const group =
|
|
243
|
+
const group = GROUP_OF.get(key);
|
|
264
244
|
const renamed = RENAMED_CONFIG_KEYS.find(([, flat]) => flat === key);
|
|
265
245
|
if (key === "gen" && isObject(value)) groups["gen"] = {
|
|
266
246
|
...value,
|
|
@@ -282,7 +262,6 @@ function groupEntries(config) {
|
|
|
282
262
|
const database = groups["database"];
|
|
283
263
|
if (database !== void 0 && isObject(database["sql"])) database["sql"] = renameKeys(database["sql"], OWNER, true);
|
|
284
264
|
withOrganization(out, groups);
|
|
285
|
-
if (out["tables"] !== void 0 && flatTables) out["tables"] = eachEntry(out["tables"], OWNER, true);
|
|
286
265
|
if (out["blocks"] !== void 0) out["blocks"] = eachEntry(out["blocks"], RENAMED_BLOCK_KEYS, true);
|
|
287
266
|
return {
|
|
288
267
|
...out,
|
|
@@ -1697,4 +1676,4 @@ function expandFlatPreset(config) {
|
|
|
1697
1676
|
};
|
|
1698
1677
|
}
|
|
1699
1678
|
//#endregion
|
|
1700
|
-
export { flattenConfig as A, integrationsForFramework as C, RENAMED_BLOCK_KEYS as D, CONFIG_GROUPS as E,
|
|
1679
|
+
export { flattenConfig as A, integrationsForFramework as C, RENAMED_BLOCK_KEYS as D, CONFIG_GROUPS as E, INTEGRATION_NAMES as F, SKILLS_AGENTS as I, groupEntries as M, GEN_TASKS as N, RENAMED_CONFIG_KEYS as O, INTEGRATION_INFO as P, PRESET_TENANT_NAMES as S, presetValueLabel as T, isPresetName as _, presetOf as a, DEFAULT_CONVENTIONS as b, presetSpec as c, resolvePreset as d, DEFAULT_PRESET_NAME as f, defaultPreset as g, PRESET_NAMES as h, presetConfig as i, groupConfig as j, blockEntrySource as k, listNames as l, PRESET_GROUPS as m, expandFlatPreset as n, presetFromSpec as o, PRESETS as p, expandPreset as r, presetOfSpec as s, conventionConfig as t, presetBlockConflict as u, namedPreset as v, presetField as w, PRESET_FRAMEWORKS as x, CONVENTION_FIELDS as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as CONFIG_DEFAULTS, t as resolveNames } from "./resolved-names-iLBOUaib.js";
|
|
2
|
-
import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-
|
|
2
|
+
import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-bqKaPjst.js";
|
|
3
3
|
import { t as DEFAULT_CLAIMS } from "./claims-Bp9My7XP.js";
|
|
4
4
|
import { o as tenantNames } from "./entity-naming-Dtyq5sKE.js";
|
|
5
5
|
import { I as resolveBlock, L as tenantNameOf, M as PRESET_CATALOG, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-C7qUTjhJ.js";
|
|
@@ -3,10 +3,10 @@ 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
5
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
6
|
-
import { i as CredentialRef, r as CredentialProvider } from "./provider-
|
|
7
|
-
import { r as BlockTemporalOptions } from "./block-helpers-
|
|
8
|
-
import { t as BlockTransport } from "./block-transport-
|
|
9
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
6
|
+
import { i as CredentialRef, r as CredentialProvider } from "./provider-CWjzAIX9.js";
|
|
7
|
+
import { 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
|
//#region src/blocks/connectors/connectors.d.ts
|
|
11
11
|
type ConnectorTransport = "http" | "sse";
|
|
12
12
|
/**
|