better-supabase 0.20.0 → 0.22.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/{adapter-CfuBICuG.js → adapter-D4aNBxhm.js} +4 -4
- package/dist/{ai-cache-BuNbWEFI.js → ai-cache-BFRKxgZ4.js} +2 -2
- package/dist/{ai-files-DeMWQfzs.js → ai-files-m_2z3rH1.js} +3 -3
- package/dist/{ai-schedules-Bp-U0cZG.d.ts → ai-schedules-7uQNMXve.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/ai-sdk/batches/index.js +3 -3
- package/dist/ai-sdk/cache/index.js +1 -1
- package/dist/ai-sdk/chat/index.js +1 -1
- package/dist/ai-sdk/files/index.js +2 -2
- package/dist/ai-sdk/index.js +3 -3
- package/dist/ai-sdk/mcp/index.js +2 -2
- package/dist/ai-sdk/workflow/index.js +2 -2
- package/dist/api-3C0AWFeP.js +696 -0
- package/dist/{api-BIw5g_4V.d.ts → api-CHObZL7m.d.ts} +2 -2
- package/dist/{app-tables-oYkgtcRM.d.ts → app-tables-BGzdnQm5.d.ts} +1 -1
- package/dist/astro/index.d.ts +3 -3
- package/dist/astro/index.js +5 -5
- package/dist/{attachments-BTIwCuwm.js → attachments-BXbLnNxm.js} +5 -5
- package/dist/{authorization-08F77H2w.d.ts → authorization-DhoA7dsD.d.ts} +22 -8
- package/dist/{automations-jIIaT9EJ.js → automations-BMuqwZZn.js} +5 -5
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-BwQGUqdQ.d.ts → bind-CFsctoFJ.d.ts} +4 -4
- package/dist/{block-authors-D9hyCizs.js → block-authors-Bw3zdzgl.js} +1 -1
- package/dist/{block-env-Dh0Fe-fK.d.ts → block-env-BrUNeuJ_.d.ts} +4 -4
- package/dist/{block-events-pBXPzwnW.js → block-events-IWAyafO3.js} +1 -1
- package/dist/{block-fields-DE_FgpOU.js → block-fields-BjXgX_5c.js} +4 -3
- package/dist/{block-helpers-DnCtsKtv.js → block-helpers-B0f0ZVb5.js} +169 -4
- package/dist/{block-hooks-DbIpkq7a.js → block-hooks-DKtz0HRh.js} +1 -1
- package/dist/{block-subjects-BRJO0IqO.js → block-subjects-DFSuFY1a.js} +1 -1
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/access-requests/index.js +4 -5
- package/dist/blocks/activities/index.d.ts +1 -1
- package/dist/blocks/activities/index.js +4 -5
- package/dist/blocks/agents/index.d.ts +1 -1
- package/dist/blocks/agents/index.js +3 -4
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-cache/index.js +2 -2
- package/dist/blocks/ai-chat/index.d.ts +4 -4
- package/dist/blocks/ai-chat/index.js +4 -5
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-files/index.js +2 -2
- package/dist/blocks/ai-keys/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.js +3 -4
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/ai-schedules/index.js +5 -6
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/announcements/index.js +4 -5
- package/dist/blocks/api-keys/index.d.ts +2 -2
- package/dist/blocks/api-keys/index.js +5 -6
- package/dist/blocks/approvals/index.d.ts +1 -1
- package/dist/blocks/approvals/index.js +4 -5
- package/dist/blocks/assets/index.d.ts +1 -1
- package/dist/blocks/assets/index.js +3 -4
- package/dist/blocks/assignment/index.d.ts +1 -1
- package/dist/blocks/assignment/index.js +4 -5
- package/dist/blocks/attachments/index.d.ts +2 -2
- package/dist/blocks/attachments/index.js +5 -6
- package/dist/blocks/audit/index.d.ts +5 -5
- package/dist/blocks/audit/index.js +8 -9
- package/dist/blocks/automations/index.d.ts +3 -3
- package/dist/blocks/automations/index.js +6 -6
- package/dist/blocks/billable-time/index.d.ts +1 -1
- package/dist/blocks/billable-time/index.js +6 -7
- package/dist/blocks/billing/index.d.ts +3 -3
- package/dist/blocks/billing/index.js +6 -7
- package/dist/blocks/bookings/index.d.ts +3 -3
- package/dist/blocks/bookings/index.js +7 -7
- package/dist/blocks/bulk/index.d.ts +4 -3
- package/dist/blocks/bulk/index.js +4 -4
- package/dist/blocks/calendar/index.d.ts +2 -2
- package/dist/blocks/calendar/index.js +7 -7
- package/dist/blocks/catalog/index.d.ts +1 -1
- package/dist/blocks/catalog/index.js +5 -6
- package/dist/blocks/channels/index.d.ts +1 -1
- package/dist/blocks/channels/index.js +3 -4
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/collections/index.js +3 -4
- package/dist/blocks/comments/index.d.ts +5 -5
- package/dist/blocks/comments/index.js +8 -9
- package/dist/blocks/compliance/index.d.ts +1 -1
- package/dist/blocks/compliance/index.js +5 -6
- package/dist/blocks/connectors/index.d.ts +1 -1
- package/dist/blocks/connectors/index.js +3 -4
- package/dist/blocks/contacts/index.d.ts +1 -1
- package/dist/blocks/contacts/index.js +4 -5
- package/dist/blocks/content/index.d.ts +1 -1
- package/dist/blocks/content/index.js +3 -4
- package/dist/blocks/contracts/index.d.ts +1 -1
- package/dist/blocks/contracts/index.js +8 -9
- package/dist/blocks/courses/index.d.ts +1 -1
- package/dist/blocks/courses/index.js +5 -6
- package/dist/blocks/created-by/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.js +2 -2
- package/dist/blocks/data-lifecycle/index.d.ts +1 -1
- package/dist/blocks/data-lifecycle/index.js +3 -4
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/deals/index.js +9 -10
- package/dist/blocks/dispatch/index.d.ts +1 -1
- package/dist/blocks/dispatch/index.js +7 -8
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/documents/index.js +2 -3
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/domains/index.js +3 -4
- package/dist/blocks/donations/index.d.ts +1 -1
- package/dist/blocks/donations/index.js +7 -8
- package/dist/blocks/drive/index.d.ts +5 -1
- package/dist/blocks/drive/index.js +6 -7
- package/dist/blocks/employees/index.d.ts +2 -2
- package/dist/blocks/employees/index.js +7 -8
- package/dist/blocks/enrichment/index.d.ts +1 -1
- package/dist/blocks/enrichment/index.js +2 -3
- package/dist/blocks/enrollments/index.d.ts +1 -1
- package/dist/blocks/enrollments/index.js +3 -4
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/entitlements/index.js +2 -2
- package/dist/blocks/expenses/index.d.ts +1 -1
- package/dist/blocks/expenses/index.js +6 -7
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/field-history/index.js +2 -3
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/flags/index.js +4 -5
- package/dist/blocks/forecasts/index.d.ts +1 -1
- package/dist/blocks/forecasts/index.js +5 -6
- package/dist/blocks/forms/index.d.ts +2 -2
- package/dist/blocks/forms/index.js +4 -5
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/goals/index.js +4 -5
- package/dist/blocks/guests/index.d.ts +1 -1
- package/dist/blocks/guests/index.js +4 -5
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/hiring/index.js +4 -5
- package/dist/blocks/identities/index.d.ts +1 -1
- package/dist/blocks/identities/index.js +2 -3
- package/dist/blocks/imports/index.d.ts +1 -1
- package/dist/blocks/imports/index.js +3 -3
- package/dist/blocks/inbox/index.d.ts +5 -5
- package/dist/blocks/inbox/index.js +4 -5
- package/dist/blocks/incidents/index.d.ts +1 -1
- package/dist/blocks/incidents/index.js +5 -6
- package/dist/blocks/index.d.ts +2 -2
- package/dist/blocks/index.js +7 -7
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/inventory/index.js +3 -4
- package/dist/blocks/invoices/index.d.ts +1 -1
- package/dist/blocks/invoices/index.js +6 -7
- package/dist/blocks/knowledge/index.d.ts +1 -1
- package/dist/blocks/knowledge/index.js +2 -2
- package/dist/blocks/lead-scoring/index.d.ts +1 -1
- package/dist/blocks/lead-scoring/index.js +4 -5
- package/dist/blocks/leases/index.d.ts +1 -1
- package/dist/blocks/leases/index.js +7 -8
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/leave/index.js +4 -5
- package/dist/blocks/ledger/index.d.ts +1 -1
- package/dist/blocks/ledger/index.js +3 -4
- package/dist/blocks/mail-sync/index.d.ts +1 -1
- package/dist/blocks/mail-sync/index.js +5 -6
- package/dist/blocks/memberships/index.d.ts +1 -1
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/memory/index.js +3 -4
- package/dist/blocks/messaging/index.d.ts +5 -5
- package/dist/blocks/messaging/index.js +6 -7
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/metrics/index.js +4 -5
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +1 -1
- package/dist/blocks/moderation/index.js +3 -4
- package/dist/blocks/notifications/index.d.ts +4 -4
- package/dist/blocks/notifications/index.js +8 -9
- package/dist/blocks/numbering/index.d.ts +1 -1
- package/dist/blocks/numbering/index.js +2 -2
- package/dist/blocks/oauth-server/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.js +3 -4
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.js +2 -3
- package/dist/blocks/orders/index.d.ts +9 -2
- package/dist/blocks/orders/index.js +7 -8
- package/dist/blocks/organizations/index.d.ts +3 -3
- package/dist/blocks/organizations/index.js +5 -6
- package/dist/blocks/outbox/index.d.ts +1 -1
- package/dist/blocks/outbox/index.js +3 -4
- package/dist/blocks/passes/index.d.ts +2 -2
- package/dist/blocks/passes/index.js +7 -8
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/permissions/index.js +2 -3
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/pipelines/index.js +4 -5
- package/dist/blocks/posts/index.d.ts +1 -1
- package/dist/blocks/posts/index.js +4 -5
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/profiles/index.js +3 -4
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/promotions/index.js +4 -5
- package/dist/blocks/push/index.d.ts +2 -2
- package/dist/blocks/push/index.js +5 -6
- package/dist/blocks/queue/index.d.ts +1 -1
- package/dist/blocks/queue/index.js +7 -8
- package/dist/blocks/quotes/index.d.ts +1 -1
- package/dist/blocks/quotes/index.js +6 -7
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/rank/index.js +2 -2
- package/dist/blocks/reactions/index.d.ts +4 -4
- package/dist/blocks/reactions/index.js +4 -5
- package/dist/blocks/relations/index.d.ts +3 -2
- package/dist/blocks/relations/index.js +8 -8
- package/dist/blocks/reminders/index.d.ts +10 -6
- package/dist/blocks/reminders/index.js +13 -12
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/reviews/index.js +3 -4
- package/dist/blocks/saved-views/index.d.ts +3 -3
- package/dist/blocks/saved-views/index.js +4 -4
- package/dist/blocks/scores/index.d.ts +1 -1
- package/dist/blocks/scores/index.js +4 -4
- package/dist/blocks/search/index.d.ts +3 -3
- package/dist/blocks/search/index.js +3 -4
- package/dist/blocks/security-events/index.d.ts +1 -1
- package/dist/blocks/security-events/index.js +2 -3
- package/dist/blocks/segments/index.d.ts +1 -1
- package/dist/blocks/segments/index.js +4 -5
- package/dist/blocks/sequences/index.d.ts +1 -1
- package/dist/blocks/sequences/index.js +3 -4
- package/dist/blocks/service-accounts/index.d.ts +1 -1
- package/dist/blocks/service-accounts/index.js +3 -4
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/index.js +1 -1
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/settings/index.js +3 -4
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/share-links/index.js +6 -6
- package/dist/blocks/shipments/index.d.ts +1 -1
- package/dist/blocks/shipments/index.js +9 -10
- package/dist/blocks/signatures/index.d.ts +1 -1
- package/dist/blocks/signatures/index.js +3 -4
- package/dist/blocks/signing-keys/index.d.ts +1 -1
- package/dist/blocks/signing-keys/index.js +2 -2
- package/dist/blocks/sla/index.d.ts +1 -1
- package/dist/blocks/sla/index.js +7 -8
- package/dist/blocks/sso/index.d.ts +1 -1
- package/dist/blocks/sso/index.js +2 -3
- package/dist/blocks/state-machine/index.d.ts +1 -1
- package/dist/blocks/state-machine/index.js +3 -3
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/subjects/index.js +3 -4
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tags/index.js +6 -6
- package/dist/blocks/tasks/index.d.ts +2 -2
- package/dist/blocks/tasks/index.js +7 -8
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/teams/index.js +3 -3
- package/dist/blocks/templates/index.d.ts +3 -3
- package/dist/blocks/templates/index.js +3 -4
- package/dist/blocks/time-tracking/index.d.ts +8 -1
- package/dist/blocks/time-tracking/index.js +9 -10
- package/dist/blocks/timeline/index.d.ts +3 -3
- package/dist/blocks/timeline/index.js +4 -5
- package/dist/blocks/trash/index.d.ts +1 -1
- package/dist/blocks/trash/index.js +3 -4
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/undo/index.js +2 -2
- package/dist/blocks/updated-at/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/usage/index.js +2 -3
- package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
- package/dist/blocks/vercel-marketplace/index.js +3 -4
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/versions/index.js +6 -7
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.js +4 -5
- package/dist/blocks/webhooks/index.d.ts +3 -3
- package/dist/blocks/webhooks/index.js +13 -14
- package/dist/blocks/workflow-editor/index.d.ts +6 -6
- package/dist/blocks/workflow-editor/index.js +10 -11
- package/dist/blocks/workflows/index.d.ts +4 -4
- package/dist/blocks/workflows/index.js +5 -6
- package/dist/{bookings-Dox2rced.d.ts → bookings-BpCNphYp.d.ts} +1 -2
- package/dist/{build-D9lWi5bk.js → build-CH2N3Yf0.js} +4 -4
- package/dist/{build-BFC8nFiL.js → build-DbIRFcHQ.js} +3 -65
- package/dist/chat-sdk/index.js +2 -3
- package/dist/cli/{add-CH7dC6UR.js → add-B6CQOt3A.js} +2 -2
- package/dist/cli/{add-CtLjnwds.js → add-BXFzr0Wf.js} +9 -9
- package/dist/cli/add-w_HumDPX.js +1 -0
- package/dist/cli/{backfill-DBJIMzcy.js → backfill-Dflp6JZk.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-i1w0EEvs.js → blocks-CBH3N7Fy.js} +1 -1
- package/dist/cli/{blocks-CS58-xnw.js → blocks-FtOIcUbu.js} +1 -1
- package/dist/cli/{cache-Cn3crN0v.js → cache-61VwYKEv.js} +1 -1
- package/dist/cli/{codemod-D6wifOAH.js → codemod-CqPRa25J.js} +1 -1
- package/dist/cli/{content-mapper-Q9We297z.js → content-mapper-DGQQY5IA.js} +2 -2
- package/dist/cli/{doctor-DmfdE5Ct.js → doctor-BxxSO193.js} +62 -58
- package/dist/cli/{gen-D68A0uN8.js → gen-D2cqqqTH.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-N7pkBbJn.js → init-BnG1IE1y.js} +5 -5
- package/dist/cli/{live-0xAAlTK_.js → live-D26OWOAb.js} +2 -2
- package/dist/cli/{mcp-CbN3ulRF.js → mcp-1l3C_GdB.js} +2 -2
- package/dist/cli/{metadata-417ldpf4.js → metadata-DDfPBHwI.js} +3 -3
- package/dist/cli/{migration-safety-BC_UI4jC.js → migration-safety-CQbrfZIx.js} +1 -1
- package/dist/cli/{migrations-DdBKwrvG.js → migrations-Ch5Uuvyj.js} +1 -1
- package/dist/cli/{module-migration-DdxPdqMC.js → module-migration-Dul1uTYX.js} +2 -2
- package/dist/cli/{powersync-CJTEz-uY.js → powersync-CfT-tRx1.js} +2 -2
- package/dist/cli/powersync-Vmhw5c1N.js +1 -0
- package/dist/cli/{print-DyFm91R-.js → print-CbPT4PTL.js} +2 -2
- package/dist/cli/{remove-CPY0xsVm.js → remove-kDH1yxKZ.js} +5 -5
- package/dist/cli/{render-DE3O1OFq.js → render-0Vd7BaNA.js} +22 -5
- package/dist/cli/{run-WtIEFGvP.js → run-Dafms0D2.js} +8 -8
- package/dist/cli/{run-CcrNGX9C.js → run-DxTd55Ug.js} +21 -21
- package/dist/cli/{shared-SlukBuKn.js → shared-BQAMXvwd.js} +1 -1
- package/dist/cli/{snapshot-pyIsJjUV.js → snapshot-B8K6gYjA.js} +2 -2
- package/dist/cli/{source-Bclt9D0Y.js → source-CXDyCWz5.js} +1 -1
- package/dist/cli/{spec-D7zsEVj_.js → spec-BGsnTkIl.js} +2 -2
- package/dist/cli/{spec-BsdLx7tZ.js → spec-CaN7nOqI.js} +1 -1
- package/dist/cli/{sql-layout-C6baAM5t.js → sql-layout-BGAlcp1U.js} +2 -2
- package/dist/cli/{sync-Cse8VXAU.js → sync-CT_5VG0E.js} +3 -3
- package/dist/cli/{upgrade-28ENjIJU.js → upgrade-DA7aO88E.js} +2 -2
- package/dist/cli/{upgrade-Cwc1RiAE.js → upgrade-frUtPDDb.js} +4 -4
- package/dist/cli/{version-yWIaLG04.js → version-CUdPyV6J.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/index.js +1 -1
- package/dist/client/native/index.d.ts +4 -4
- package/dist/client/native/index.js +1 -1
- package/dist/{codecs-BfmQSbM6.js → codecs-CSUFGrdP.js} +3 -3
- package/dist/commerce/index.js +3 -3
- package/dist/{composite-D24L5RIY.js → composite-CBRbvn5j.js} +2 -2
- package/dist/{composite-DbRuu6Jb.d.ts → composite-ChzHhSB0.d.ts} +3 -3
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +5 -5
- package/dist/{config-CD2OGfCG.js → config-C9AOcQ9S.js} +1 -1
- package/dist/{config-D74JT0qL.js → config-CH-D2B-4.js} +4 -4
- package/dist/{context-CjHXhCck.d.ts → context-DEisra3V.d.ts} +19 -7
- package/dist/{controller-BeqcjERs.d.ts → controller-B6vWdKSa.d.ts} +1 -1
- package/dist/{controller-BNZKd6bJ.js → controller-qG-B1eDn.js} +1 -1
- package/dist/{conversion-BqDvi8ty.d.ts → conversion-DBgMck5U.d.ts} +1 -1
- package/dist/create/index.d.ts +72 -451
- package/dist/create/index.js +15 -1687
- package/dist/create/lite/index.d.ts +250 -13
- package/dist/create/lite/index.js +1007 -24
- package/dist/{create-blocks-0pWKQ6x4.js → create-blocks-BfrDUSM6.js} +14 -10
- package/dist/credentials/index.js +3 -4
- package/dist/{cron-CgHTKwYG.js → cron-DdT4ti8a.js} +1 -1
- package/dist/{cron-route-UU9i5i9J.js → cron-route-FjKgRvTY.js} +1 -1
- package/dist/{deal-forecast-DikouYGj.js → deal-forecast-CKBnRodz.js} +2 -2
- package/dist/{define-Djgn3HQQ.js → define-D-dLADd5.js} +16 -19
- package/dist/{define-BqaUwrIC.d.ts → define-Lf6rI2QN.d.ts} +14 -8
- package/dist/{define-block-CRwHsxZO.d.ts → define-block-DCAiOrNX.d.ts} +12 -3
- package/dist/edge/index.d.ts +5 -5
- package/dist/edge/index.js +7 -7
- package/dist/elysia/index.js +1 -1
- package/dist/{entitlements-mDz7GfA_.d.ts → entitlements-BPaPd3MD.d.ts} +1 -1
- package/dist/{entitlements-DBir2qwB.js → entitlements-tGL6-69B.js} +2 -2
- package/dist/{entity-schema-BDv6w-OQ.js → entity-schema-B1YmMtP8.js} +1 -1
- package/dist/events/index.js +3 -3
- package/dist/{executor-3qcMhg6R.js → executor-C2Ne-Scm.js} +3 -2
- package/dist/{executor-Bi056Cnj.d.ts → executor-DNK401lZ.d.ts} +1 -1
- package/dist/{executor-D3gB-9si.js → executor-DqIci3Jb.js} +3 -3
- package/dist/{executor-BQ7dYw4E.js → executor-WolvKszH.js} +3 -3
- package/dist/{executor-_O-CqCPl.d.ts → executor-aFV7nEBs.d.ts} +2 -2
- package/dist/expo/index.d.ts +2 -2
- package/dist/expo/index.js +3 -3
- package/dist/{field-errors-Cfvcg-C3.d.ts → field-errors-DBgDCITw.d.ts} +6 -6
- package/dist/{fields--5a88KJe.js → fields-BBm49w-E.js} +1 -1
- package/dist/{filter-evaluate-w1XOIUOL.js → filter-evaluate-lCToXzZI.js} +2 -2
- package/dist/{filter-query-DMoKo82_.js → filter-query-CQ6d5GnQ.js} +1 -1
- package/dist/{flags-ClOQY-p5.js → flags-DF_SCqp5.js} +1 -1
- package/dist/flags-sdk/index.js +2 -2
- package/dist/{framework-B-1Ka0GW.d.ts → framework-DKA3fTHl.d.ts} +3 -3
- package/dist/{framework-CNhTg0th.js → framework-DYEUraqt.js} +1 -1
- package/dist/h3/index.js +1 -1
- package/dist/h3/v1/index.js +1 -1
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +6 -6
- package/dist/{index-CjnDGAJr.d.ts → index-3p_oWttZ.d.ts} +77 -2
- package/dist/{index-BzW1T3oI.d.ts → index-ByF22_C6.d.ts} +3 -3
- package/dist/{index-BdzfjFnd.d.ts → index-C4sjewrr.d.ts} +9 -9
- package/dist/{index-CYzckGOz.d.ts → index-CM2aGNRo.d.ts} +9 -5
- package/dist/{index-DfgP-9eC.d.ts → index-CdMZQCYR.d.ts} +3 -3
- package/dist/{index-EieRHooI.d.ts → index-ClvuSZEz.d.ts} +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -7
- package/dist/{app-tables-DyswUg6J.js → instances-CK0jR3Pc.js} +147 -3
- package/dist/{json-schema-Ca6gYbEP.js → json-schema-DHJxiizN.js} +1 -1
- package/dist/{kit-DhlB-vv_.js → kit-Bcd9wYCV.js} +1 -1
- package/dist/{knowledge-CV6OSirC.js → knowledge-tCrrU99q.js} +2 -2
- package/dist/list/index.d.ts +1 -1
- package/dist/list/index.js +3 -3
- package/dist/{list-query-BKy2zBaT.js → list-query-BnpA2BDg.js} +1 -1
- package/dist/{list-query-6vTI1VN6.d.ts → list-query-XYfUZb0j.d.ts} +1 -1
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +4 -4
- package/dist/mcp/index.js +7 -7
- package/dist/mcp/sdk/index.d.ts +2 -2
- package/dist/mcp/sdk/index.js +2 -2
- package/dist/{messages-D4XWuRTj.js → messages-ecPW_nOv.js} +1 -1
- package/dist/{model-messages-CKG0zwdF.js → model-messages-CkZSDDHP.js} +1 -1
- package/dist/{money-codec-uV5WbT60.js → money-codec-BJuS2zEW.js} +1 -1
- package/dist/nestjs/index.js +1 -1
- package/dist/next/index.d.ts +14 -14
- package/dist/next/index.js +8 -8
- package/dist/node/index.js +1 -1
- package/dist/{operations-DbNAgo7E.d.ts → operations-DC3wU3Sy.d.ts} +1 -1
- package/dist/orpc/index.d.ts +4 -4
- package/dist/orpc/index.js +5 -5
- package/dist/otel/index.js +5 -5
- package/dist/{ports-DO3tgLTo.d.ts → ports-BbBJVyS0.d.ts} +1 -1
- package/dist/{ports-CaVRXjxq.js → ports-DvpNseap.js} +1 -1
- package/dist/postgres/index.js +5 -4
- package/dist/{postgrest-executor-BFW4oWte.js → postgrest-executor-B_Uezhrm.js} +7 -3
- package/dist/powersync/index.d.ts +3 -3
- package/dist/powersync/index.js +1 -1
- package/dist/preset/index.d.ts +4 -4
- package/dist/preset/index.js +4 -4
- package/dist/{preset-B3CukUhu.js → preset-CS490mYJ.js} +179 -7
- package/dist/project-NmP1NdLi.js +1760 -0
- package/dist/{push-token-IFGi8jvd.d.ts → push-token-CPJfPFa2.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/query/index.js +1 -1
- package/dist/{rate-limit-BPuUWz4U.js → rate-limit-fZ_d8gSE.js} +4 -5
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +2 -2
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +6 -6
- package/dist/react/server.js +2 -2
- package/dist/{react-D-p70_wL.js → react-CcrQQl0_.js} +4 -4
- package/dist/react-router/index.d.ts +3 -3
- package/dist/react-router/index.js +5 -5
- package/dist/{read-set-BnKnofIj.js → read-set-B1sDib5O.js} +1 -1
- package/dist/realtime/index.d.ts +3 -3
- package/dist/realtime/index.js +2 -2
- package/dist/{record-bindings-DkBJpC5A.js → record-bindings-Z51mGfhB.js} +1 -1
- package/dist/{record-form-yMVvkPiQ.d.ts → record-form-BbZpwsEi.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/records/index.js +3 -3
- package/dist/{refusal-D48CMqpQ.js → refusal-DDlInPff.js} +2 -2
- package/dist/{instances-DDt7NdVl.js → resolved-names-DdlJzoMK.js} +2 -146
- package/dist/{resource-R3KToNze.js → resource-BUJcZKiW.js} +2 -2
- package/dist/{resource-execute-LR71zWej.d.ts → resource-execute-CUG6xUuh.d.ts} +1 -1
- package/dist/{resource-types-eXuFxVt7.d.ts → resource-types-DjZ91WKA.d.ts} +1 -1
- package/dist/{resources-Dpz3h8Fe.d.ts → resources-6Ncdt9XT.d.ts} +1 -1
- package/dist/{resources-DqIwoQsP.js → resources-jb3R6rEa.js} +1 -1
- package/dist/{rows-EGAbu7MG.js → rows-BdqXmiB-.js} +2 -2
- package/dist/{rows-Bh9QemqN.js → rows-jijHLVE_.js} +1 -1
- package/dist/{rrule-79K2c3Nr.js → rrule-C9Ot6ax8.js} +1 -1
- package/dist/{sales-lines-CP4Z_LyE.js → sales-lines-DO7oRu1o.js} +3 -3
- package/dist/{sales-shared-BKXXA5qV.js → sales-shared-BuTA8JK7.js} +2 -2
- package/dist/{schemas-BSTNfGsQ.js → schemas-CLOTvdsC.js} +1 -1
- package/dist/{scores-CsgM-dw7.js → scores-bY2Is0kx.js} +2 -2
- package/dist/server/index.d.ts +7 -7
- package/dist/server/index.js +9 -9
- package/dist/{server-types-BTBzrzOH.d.ts → server-types-BH6AjDBN.d.ts} +1 -1
- package/dist/{session-BgYGk_FS.d.ts → session-Y5SSYO2C.d.ts} +1 -1
- package/dist/{shared-C47zAh2A.js → shared-BeHTi8Fu.js} +1 -1
- package/dist/{sign-in-BTaRWS-L.js → sign-in-NO7LWlw4.js} +5 -5
- package/dist/{signatures-CNcoq392.js → signatures-CX1b4WHa.js} +2 -2
- package/dist/{signers-BAEzvTJ0.d.ts → signers-BKgmVh6A.d.ts} +2 -2
- package/dist/{signing-keys-DqI-gB_C.js → signing-keys-CWtpMask.js} +3 -3
- package/dist/solid/index.d.ts +6 -6
- package/dist/solid/index.js +1 -1
- package/dist/solid-start/index.d.ts +3 -3
- package/dist/solid-start/index.js +5 -5
- package/dist/spec/index.d.ts +2 -2
- package/dist/spec/index.js +2 -693
- package/dist/{spec-DTWkHzYZ.js → spec-BMvCCNnd.js} +1 -1
- package/dist/sql/index.d.ts +4 -4
- package/dist/sql/index.js +2 -2
- package/dist/{sql-B0wb7XA5.js → sql-BMXEHTvr.js} +9685 -6254
- package/dist/{sql-BPbbPzRJ.js → sql-CYt7EhH0.js} +2 -2
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/sqlite/index.js +1 -1
- package/dist/{sso-Co2TbnEy.js → sso-DdDpJQzw.js} +2 -2
- package/dist/ssr/index.d.ts +1 -1
- package/dist/storage/index.js +3 -3
- package/dist/streams/index.js +1 -2
- package/dist/{subject-readers-F1xvRY-d.js → subject-readers-CeeJJOQ4.js} +1 -1
- package/dist/svelte/index.d.ts +6 -6
- package/dist/svelte/index.js +1 -1
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/sveltekit/index.js +5 -5
- package/dist/{table-schema-CD8cJz_M.js → table-schema-C80xItaV.js} +1 -1
- package/dist/{tags-CXeJu332.d.ts → tags-Cjtcp5cN.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +3 -3
- package/dist/tanstack-start/index.js +5 -5
- package/dist/{temporal-DLZlWbOi.js → temporal-Dbo0fLzc.js} +12 -2
- package/dist/{temporal-required-Dy0GGD8E.js → temporal-required-DcLhnDhQ.js} +1 -1
- package/dist/{tenant-DzymQ9sv.d.ts → tenant-BHvMFNXl.d.ts} +1 -1
- package/dist/testing/index.d.ts +10 -10
- package/dist/testing/index.js +10 -10
- package/dist/{timeline-BMVOKokJ.d.ts → timeline-CEzj9v1z.d.ts} +3 -3
- package/dist/{topic-0uK4db_2.d.ts → topic-gTVjLGTk.d.ts} +2 -2
- package/dist/types-BC1HLEVx.d.ts +461 -0
- package/dist/{types-DsRfiQ0v.d.ts → types-yj8VF4oY.d.ts} +5 -0
- package/dist/{undo-B3FQvuAd.js → undo-BbftL9-4.js} +2 -2
- package/dist/vercel-connect/index.js +1 -1
- package/dist/{verify-ZLFUdlqE.js → verify-7EucfCnv.js} +3 -3
- package/dist/{verify-DexkIx4t.d.ts → verify-B0KLBb3j.d.ts} +1 -1
- package/dist/vue/index.d.ts +6 -6
- package/dist/vue/index.js +1 -1
- package/dist/{watch-topic-CG3kOX-D.d.ts → watch-topic-C6HhbnVz.d.ts} +1 -1
- package/dist/wire-ChYn1g21.js +91 -0
- package/dist/workflow-sdk/builder/index.d.ts +2 -2
- package/dist/workflow-sdk/builder/index.js +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/package.json +1 -1
- package/skills/better-supabase/references/ui-recipes.md +1 -1
- package/dist/block-transport-PNea4lfQ.js +0 -84
- package/dist/cli/add-DyCrVejx.js +0 -1
- package/dist/cli/powersync-CYQ4Ljcz.js +0 -1
- package/dist/types-DGHfTW8_.d.ts +0 -9
- package/dist/{data-hooks-tgF1Ct0F.js → data-hooks-CdcZfVS1.js} +1 -1
- package/dist/{respond-3RKp6VgU.js → respond-CZMWbUs3.js} +1 -1
- package/dist/{topic-DXbA-jwr.js → topic-DClSoqY7.js} +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig,
|
|
1
|
+
import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig, cr as AppColumnType, di as Preset, hr as AppTableConfig, oi as PresetGlueItem, or as AppColumnConfig, ri as PresetCatalog, vt as presetConfig } from "./context-DEisra3V.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;
|
|
@@ -14,6 +14,8 @@ declare function appDefaultError(column: Pick<AppColumnConfig, "type" | "options
|
|
|
14
14
|
declare function isAppDefault(type: AppColumnType, value: string): boolean;
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/preset/design.d.ts
|
|
17
|
+
/** Where Create links point. */
|
|
18
|
+
declare const CREATE_URL = "https://app.bettersupabase.com/create";
|
|
17
19
|
/**
|
|
18
20
|
* A design from the `/create` canvas (ADR 0040): the preset (its name, or its
|
|
19
21
|
* conventions and blocks), tables the app owns, extra columns on block tables,
|
|
@@ -157,6 +159,17 @@ declare function designConfig(resolved: ResolvedPreset, design: CreateDesign): R
|
|
|
157
159
|
* design file (`designFileSource`) instead.
|
|
158
160
|
*/
|
|
159
161
|
declare function createUrl(resolved: ResolvedPreset, design?: CreateDesign): Promise<string>;
|
|
162
|
+
/**
|
|
163
|
+
* The query `/create` and its routes read a selection from: `preset=<name>` for
|
|
164
|
+
* a named preset without a design, otherwise `design=<code>` with the preset
|
|
165
|
+
* inside the design. Throws a `DesignTooLongError` when the design is too long
|
|
166
|
+
* for a link.
|
|
167
|
+
*/
|
|
168
|
+
declare function createQuery(preset: Preset, design?: CreateDesign): Promise<string>;
|
|
169
|
+
/** The value `--preset` takes for a `createQuery`: the name, or the quoted URL. */
|
|
170
|
+
declare function presetArgumentOf(query: string): string;
|
|
171
|
+
/** A string that is equal for equal presets, for comparing selections. */
|
|
172
|
+
declare function presetKey(preset: Preset): string;
|
|
160
173
|
/**
|
|
161
174
|
* `better-supabase.config.ts` for a preset and an optional design: every block
|
|
162
175
|
* with its reason, the conventions that differ from the defaults and the app
|
|
@@ -259,4 +272,66 @@ declare function presetGlue(resolved: ResolvedPreset, catalog?: PresetCatalog):
|
|
|
259
272
|
/** The shadcn command that copies glue items into the app. */
|
|
260
273
|
declare function glueCommand(items: readonly PresetGlueItem[]): string;
|
|
261
274
|
//#endregion
|
|
262
|
-
|
|
275
|
+
//#region src/preset/instances.d.ts
|
|
276
|
+
/** Whether a preset can install `block` a second time, under another name. */
|
|
277
|
+
declare function canAddInstance(block: string): boolean;
|
|
278
|
+
/**
|
|
279
|
+
* What `block` requires, at every access level: the dependencies `uses` must
|
|
280
|
+
* name.
|
|
281
|
+
*/
|
|
282
|
+
declare function blockRequires(block: string, catalog?: PresetCatalog): readonly string[];
|
|
283
|
+
/** The blocks a preset installs, by name. */
|
|
284
|
+
declare function installedBlocks(preset: Preset): ReadonlySet<string>;
|
|
285
|
+
/** One `preset.instances` entry. */
|
|
286
|
+
type PresetInstance = NonNullable<Preset["instances"]>[string];
|
|
287
|
+
/** One of a block's entities that an instance can rename. */
|
|
288
|
+
interface BlockEntity {
|
|
289
|
+
readonly key: string;
|
|
290
|
+
/** The logical table that holds it. */
|
|
291
|
+
readonly table: string;
|
|
292
|
+
readonly singular: string;
|
|
293
|
+
/** A second instance of the block has to rename it. */
|
|
294
|
+
readonly required: boolean;
|
|
295
|
+
}
|
|
296
|
+
/** An installed instance: the block's own one, or another named one. */
|
|
297
|
+
interface BlockInstance {
|
|
298
|
+
readonly name: string;
|
|
299
|
+
readonly block: string;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* The entities `block` lets an instance rename; the tenant is renamed by
|
|
303
|
+
* `tenantName`.
|
|
304
|
+
*/
|
|
305
|
+
declare function blockEntities(block: string): readonly BlockEntity[];
|
|
306
|
+
/** The block `instance` installs. */
|
|
307
|
+
declare function instanceBlock(preset: Preset, instance: string): string;
|
|
308
|
+
/**
|
|
309
|
+
* Every instance the preset installs: each installed block under its own name,
|
|
310
|
+
* then each `instances` entry that installs a block under another name.
|
|
311
|
+
*/
|
|
312
|
+
declare function presetInstances(preset: Preset): readonly BlockInstance[];
|
|
313
|
+
/** The instances of `block`, its own one first when the preset selects it. */
|
|
314
|
+
declare function instancesOf(preset: Preset, block: string): readonly BlockInstance[];
|
|
315
|
+
/** The name `instance` gives `entity`, or undefined when it keeps the default. */
|
|
316
|
+
declare function entityName(preset: Preset, instance: string, entity: string): string | undefined;
|
|
317
|
+
/**
|
|
318
|
+
* The preset with `instance` naming `entity` `name`; undefined, or the entity's
|
|
319
|
+
* default, goes back to the default. An entry left empty is dropped.
|
|
320
|
+
*/
|
|
321
|
+
declare function withEntityName(preset: Preset, instance: string, entity: string, name: string | undefined): Preset;
|
|
322
|
+
/** Why `name` can't name a new instance, or undefined when it can. */
|
|
323
|
+
declare function instanceNameProblem(preset: Preset, name: string): string | undefined;
|
|
324
|
+
/**
|
|
325
|
+
* The preset with `name` set to `instance`: a new instance, or new settings for
|
|
326
|
+
* one already there. `instance.block` defaults to `name`.
|
|
327
|
+
*/
|
|
328
|
+
declare function withInstance(preset: Preset, name: string, instance: PresetInstance): Preset;
|
|
329
|
+
/**
|
|
330
|
+
* The preset without the instance `name`: its entry, the `uses` entries of
|
|
331
|
+
* other instances that pointed at it, and the ones a dependency left with one
|
|
332
|
+
* instance no longer needs. A block's own instance is removed by deselecting
|
|
333
|
+
* the block instead.
|
|
334
|
+
*/
|
|
335
|
+
declare function withoutInstance(preset: Preset, name: string): Preset;
|
|
336
|
+
//#endregion
|
|
337
|
+
export { readDesignFile as $, DesignFile as A, designFileSource as B, diffAppTables as C, DESIGN_FILE as D, CreateDesign as E, MAX_DESIGN_CODE_LENGTH as F, isDesignCode as G, designOf as H, createQuery as I, presetApplyCommand as J, parseDesign as K, createUrl as L, DesignParseIssue as M, DesignParseResult as N, DESIGN_FORMAT as O, DesignTooLongError as P, presetKey as Q, decodeDesign as R, DiffOptions as S, CREATE_URL as T, designSchema as U, designFormat as V, encodeDesign as W, presetConfigSource as X, presetArgumentOf as Y, presetInstallCommand as Z, glueCommand as _, blockRequires as a, DesignChange as b, installedBlocks as c, instancesOf as d, safeDesignFileSource as et, presetInstances as f, PROVIDER_COMMENT as g, withoutInstance as h, blockEntities as i, PRESET_CATALOG as it, DesignParseError as j, DesignErrorCode as k, instanceBlock as l, withInstance as m, BlockInstance as n, appDefaultError as nt, canAddInstance as o, withEntityName as p, presetAndDesignOf as q, PresetInstance as r, isAppDefault as rt, entityName as s, BlockEntity as t, safeParseDesign as tt, instanceNameProblem as u, presetBlocksSource as v, diffDesigns as w, DesignChangeKind as x, presetGlue as y, designConfig as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { $ as RecordRef, ot as SchemaMeta } from "./types-DFdg_4yN.js";
|
|
3
|
-
import {
|
|
3
|
+
import { mt as QuerySpec } from "./define-Lf6rI2QN.js";
|
|
4
4
|
import { t as DataChanges } from "./data-engine-BWoz9lED.js";
|
|
5
|
-
import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-
|
|
6
|
-
import { n as TopicPort } from "./watch-topic-
|
|
5
|
+
import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-gTVjLGTk.js";
|
|
6
|
+
import { n as TopicPort } from "./watch-topic-C6HhbnVz.js";
|
|
7
7
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
8
|
//#region src/realtime/relay.d.ts
|
|
9
9
|
/** The `EventSource` the relay client reads with; the browser's fits. */
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { b as DbError, f as Result, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { $ as RecordRef } from "./types-DFdg_4yN.js";
|
|
3
3
|
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "./events-vcqenSYU.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mt as QuerySpec } from "./define-Lf6rI2QN.js";
|
|
5
5
|
import { A as TtlPreset, C as TransformOptions, E as UrlOptions, T as UploadOptions, l as ImageTransform, tt as TemplateValues, w as UploadBody } from "./bucket-vc-QRrva.js";
|
|
6
6
|
import { m as RejectedChange, o as DataSyncState } from "./data-engine-BWoz9lED.js";
|
|
7
|
-
import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-
|
|
8
|
-
import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-
|
|
9
|
-
import { t as AuthSnapshot } from "./bind-
|
|
7
|
+
import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-ClvuSZEz.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-gTVjLGTk.js";
|
|
9
|
+
import { t as AuthSnapshot } from "./bind-CFsctoFJ.js";
|
|
10
10
|
import { t as AuthSession } from "./view-DyFdMCqg.js";
|
|
11
|
-
import { r as LiveCountSeed, v as RelayClientOptions } from "./index-
|
|
12
|
-
import { n as Controller } from "./controller-
|
|
13
|
-
import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-
|
|
14
|
-
import { t as BlockEnv } from "./block-env-
|
|
11
|
+
import { r as LiveCountSeed, v as RelayClientOptions } from "./index-ByF22_C6.js";
|
|
12
|
+
import { n as Controller } from "./controller-B6vWdKSa.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-DBgDCITw.js";
|
|
14
|
+
import { t as BlockEnv } from "./block-env-BrUNeuJ_.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-BbZpwsEi.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,7 +1,7 @@
|
|
|
1
1
|
import { E as AccessPolicySql } from "./types-DFdg_4yN.js";
|
|
2
|
-
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-
|
|
3
|
-
import {
|
|
4
|
-
import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-
|
|
2
|
+
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-DhoA7dsD.js";
|
|
3
|
+
import { nt as ReadSet } from "./define-Lf6rI2QN.js";
|
|
4
|
+
import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-DEisra3V.js";
|
|
5
5
|
import { t as SubjectConfig } from "./subjects-DvmQeF_F.js";
|
|
6
6
|
//#region src/sql/render.d.ts
|
|
7
7
|
/** A module's SQL for `layout`, without header; `undefined` in custom mode. */
|
|
@@ -352,8 +352,12 @@ interface TenantQuery {
|
|
|
352
352
|
declare function tenantsQuery(layout: BlockSqlLayout, installed: readonly string[], tenant: string): TenantQuery | undefined;
|
|
353
353
|
//#endregion
|
|
354
354
|
//#region src/sql/subject-registry.d.ts
|
|
355
|
-
/**
|
|
356
|
-
|
|
355
|
+
/**
|
|
356
|
+
* Every column a registry entry names, keyed by the config path that names it.
|
|
357
|
+
* A subject without `tenant` gets the tenant column of `tenant`, the noun
|
|
358
|
+
* `blocks.memberships.entities.organization` renames the tenant to.
|
|
359
|
+
*/
|
|
360
|
+
declare function subjectColumns(entry: SubjectConfig, tenant?: string): readonly (readonly [path: string, column: string])[];
|
|
357
361
|
//#endregion
|
|
358
362
|
//#region src/sql/schema-scan.d.ts
|
|
359
363
|
/** Privileges one role gets on a table, from the policies that name it. */
|
|
@@ -2,9 +2,9 @@ import { t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
|
2
2
|
import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
|
|
3
3
|
import { l as PublicEnv } from "./index-NRMMhhEi.js";
|
|
4
4
|
import { g as SessionEncoding } from "./resolve-CXX6DHv3.js";
|
|
5
|
-
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-
|
|
5
|
+
import { t as BetterSupabase } from "./define-Lf6rI2QN.js";
|
|
6
|
+
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-BbBJVyS0.js";
|
|
7
|
+
import { i as BindClientOptions, r as BetterClient } from "./bind-CFsctoFJ.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
|
|
@@ -3,9 +3,9 @@ import { n as DbException } from "./escape-like-PReMbEEU.js";
|
|
|
3
3
|
import { f as Result, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
4
4
|
import { $ as RecordRef, K as Insert, O as AnyFunctions, Z as PrimaryKeyValue, ht as Update, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
|
|
5
5
|
import { o as EventHub } from "./events-vcqenSYU.js";
|
|
6
|
-
import { A as
|
|
6
|
+
import { A as OffsetPageArgs, At as GetArgs, B as Returned, C as FindExt, Ct as AggregateResult, G as UpsertArgs, Ot as CountArgs, Pt as ListArgs, Qt as CacheAdapter, S as DeleteExt, Vt as Payload, W as UpdateArgs, _ as CursorPage, bt as AggregateArgs, j as OffsetRangeArgs, k as OffsetPage, mt as QuerySpec, pt as InferResult, q as WriteArgs, t as BetterSupabase, v as CursorPageArgs, w as GetKey, x as DeleteArgs, y as Db } from "./define-Lf6rI2QN.js";
|
|
7
7
|
import { n as DataEngine, r as DataEngineOptions } from "./data-engine-BWoz9lED.js";
|
|
8
|
-
import { Dn as GeneratedBlocks, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, in as RecordBindingData, nn as AnyRecordBindingWrite, on as RecordBindingOptions, t as AnyBlock, tn as AnyRecordBinding, un as RecordBindingWriteInput } from "./define-block-
|
|
8
|
+
import { Dn as GeneratedBlocks, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, in as RecordBindingData, nn as AnyRecordBindingWrite, on as RecordBindingOptions, t as AnyBlock, tn as AnyRecordBinding, un as RecordBindingWriteInput } from "./define-block-DCAiOrNX.js";
|
|
9
9
|
import { t as BetterQueryMeta } from "./invalidate-DMp4eqfF.js";
|
|
10
10
|
import { DataTag, InfiniteData, QueryClient, SkipToken } from "@tanstack/query-core";
|
|
11
11
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { $ as RecordRef, A as BucketMeta, At as NoExtension, B as FunctionMeta,
|
|
|
6
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-vcqenSYU.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 { $t as
|
|
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-Lf6rI2QN.js";
|
|
10
10
|
import { Q as StoragePath } from "./bucket-vc-QRrva.js";
|
|
11
11
|
import { a as PostgrestPlan, n as PlanLimit, o as compilePostgrest, r as PlanOrder, t as PlanFilter } from "./postgrest-z-T0l23T.js";
|
|
12
12
|
import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec, r as tableSchema, t as StandardJSONSchemaV1 } from "./table-schema-BlF6k62Q.js";
|
|
@@ -204,4 +204,4 @@ export declare function toCamel(name: string): string;
|
|
|
204
204
|
/** `firstName` to `first_name`. */
|
|
205
205
|
export declare function toSnake(name: string): string;
|
|
206
206
|
//#endregion
|
|
207
|
-
export { type AccessBucketPolicy, type AccessPolicySql, type AccessTopicPolicy, type Actor, type AggregateArgs, type AggregateFn, type AggregateOrderBy, type AggregateOrderByArg, type AggregateResult, type AggregateRow, type Aggregation, type AnyFunctions, type AnyModels, type AnyPlugin, type ApplyExtension, AsyncResult, type AuthEvent, type AuthOutageEvent, type BetterResultApi, type BetterResultErr, type BetterResultErrors, type BetterResultOk, type BetterResultValue, BetterSupabase, type BetterSupabaseEvents, type BlockEvent, type BlockEventType, type BlockProblemOptions, type BlocksHelper, type BucketMeta, type BucketPolicyName, type BucketRegistry, type BucketsHelper, type CacheAdapter, type CacheTarget, type CallOptions, type Casing, type CheckConstraint, type ClaimsMeta, type Codec, type ColumnMeta, type ColumnOp, type ColumnOrderBy, type ColumnOrderByArg, type Compiler, type Condition, type ConflictTarget, type ConnectOptions, type CountArg, type CountArgs, type CountMode, type CursorPage, type CursorPageArgs, type DatabaseOf, type Db, type DbBlockSource, type DbError, type DbErrorClass, type DbErrorClasses, type DbErrorKind, type DbErrorKinds, type DbErrorMatchers, type DbErrorOf, DbException, type DbExtras, type DbHelpers, type DbOf, type DbStats, type DeleteArgs, type DeleteExt, type DeleteOp, EMPTY_STATS, type EnrichDatabase, type Err, type ErrorEvent, type ErrorMapper, type ErrorMessages, type EventHandler, EventHub, type EventMap, type EventName, type Events, type ExecuteContext, type ExecuteResult, type Executor, type ExtensionOf, type ExtensionsOf, type FieldFilter, type FieldSpec, type FindExt, type Flags, type ForeignKeyConstraint, type FunctionMeta, type FunctionResult, type FunctionSignature, type FunctionSource, type FunctionTypes, type FunctionsOf, type GeneratedColumns, type GetArgs, type GetKey, type HasFlag, type HookArgs, type Include, type IncludeArg, type IncludeArgs, type InferReadSetParams, type InferResult, type Insert, type InsertOp, type JsonPathOps, type ListArgs, type LogFields, type Logger, type ManyResult, type ManyWriteArgs, type MappedDbError, type Measure, type MeasureArg, type MeasureKey, type MemoryCache, type ModelFlags, type ModelTypes, type ModelsOf, type MutableWhere, type MutationEvent, type MutationIntent, type MutationKind, type MutationNotice, type MutationOp, type NoExtension, type NumericMeasureArg, type OffsetPage, type OffsetPageArgs, type OffsetRangeArgs, type Ok, type Operation, type OrderByArg, type OrderByInput, type OrderTerm, PLUGIN_API_VERSION, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, type PageOf, type Payload, type PlanFilter, type PlanLimit, type PlanOrder, type Plugin, type Policy, type PolicyDecision, type PostgrestClientLike, type PostgrestExecutorOptions, type PostgrestPlan, type PrimaryKeyColumn, type PrimaryKeyValue, type ProblemDetails, type ProblemFormat, type ProblemOptions, type ProblemResponseOptions, type Quantifier, type QueryEvent, type QuerySpec, type RawDbError, type ReadArgs, type ReadMethod, type ReadSet, type ReadSetAuth, type ReadSetOptions, type ReadSetParamType, type ReadSetParamTypes, type ReadSetParamValue, type ReadSetParams, type ReadSetResult, type RealtimeTableMeta, type RecordRef, type RefreshEvent, type RelationMeasureArg, type RelationMeta, type RelationTypes, type Relations, type Repository, type RepositoryApi, type RepositoryExtension, type RepositoryOf, type RequestArgs, type RequestContext, type Result, type ResultColumn, type Returned, type Row, type RowFilter, type RpcContext, type RpcDefinition, type RpcNotice, type RpcOptions, SPEC_PINS, type Schema, type SchemaMeta, type ScopeFor, type SearchArgs, type SelectArg, type SelectColumn, type SelectOp, type Selection, type Simplify, type SortDirection, type SortSpec, type Specs, type StandardJSONSchemaV1, type StandardSchemaV1, StatsRecorder, type StoragePath, type SubjectTypeOf, type SupabaseOptions, type TableFlags, type TableKey, type TableMeta, type TableRepositoryExtension, type TableSchema, type TableSchemaSpec, type TableSpecs, type TableValidators, type UniqueConstraint, type UniqueKeyName, type UniqueWhere, type Update, type UpdateArgs, type UpdateOp, type UpsertArgs, type UpsertManyArgs, type ValidationIssue, type ValidationOptions, type WhereArg, type WhereInput, type WithExtension, type WritableColumns, type WriteArgs, type WriteManyArgs, and, cacheTargetOf, column, compilePostgrest, consoleLogger, dbError, defineBetterResultErrors, definePlugin, defineReadSet, defineSupabase, err, escapeLike, explainPostgrest, fromBetterResult, fromProblem, isCheck, isConflict, isDbError, isForeignKey, isProblem, isQuerySpec, isReadSet, mapDbError, matchDbError, memoryCache, not, ok, or, postgrestCompiler, postgrestExecutor, problemResponse, readSetTables, recordStats, rowKey, rpcCacheTargets, silentLogger, specTables, statusOf, tableSchema, toBetterResult, toDbError, toProblem, validate };
|
|
207
|
+
export { type AccessBucketPolicy, type AccessPolicySql, type AccessTopicPolicy, type Actor, type AggregateArgs, type AggregateFn, type AggregateOrderBy, type AggregateOrderByArg, type AggregateResult, type AggregateRow, type Aggregation, type AnyFunctions, type AnyModels, type AnyPlugin, type ApiOptions, type ApplyExtension, AsyncResult, type AuthEvent, type AuthOutageEvent, type BetterResultApi, type BetterResultErr, type BetterResultErrors, type BetterResultOk, type BetterResultValue, BetterSupabase, type BetterSupabaseEvents, type BlockEvent, type BlockEventType, type BlockProblemOptions, type BlocksHelper, type BucketMeta, type BucketPolicyName, type BucketRegistry, type BucketsHelper, type CacheAdapter, type CacheTarget, type CallOptions, type Casing, type CheckConstraint, type ClaimsMeta, type Codec, type ColumnMeta, type ColumnOp, type ColumnOrderBy, type ColumnOrderByArg, type Compiler, type Condition, type ConflictTarget, type ConnectOptions, type CountArg, type CountArgs, type CountMode, type CursorPage, type CursorPageArgs, type DatabaseOf, type Db, type DbBlockSource, type DbError, type DbErrorClass, type DbErrorClasses, type DbErrorKind, type DbErrorKinds, type DbErrorMatchers, type DbErrorOf, DbException, type DbExtras, type DbHelpers, type DbOf, type DbStats, type DeleteArgs, type DeleteExt, type DeleteOp, EMPTY_STATS, type EnrichDatabase, type Err, type ErrorEvent, type ErrorMapper, type ErrorMessages, type EventHandler, EventHub, type EventMap, type EventName, type Events, type ExecuteContext, type ExecuteResult, type Executor, type ExtensionOf, type ExtensionsOf, type FieldFilter, type FieldSpec, type FindExt, type Flags, type ForeignKeyConstraint, type FunctionMeta, type FunctionResult, type FunctionSignature, type FunctionSource, type FunctionTypes, type FunctionsOf, type GeneratedColumns, type GetArgs, type GetKey, type HasFlag, type HookArgs, type Include, type IncludeArg, type IncludeArgs, type InferReadSetParams, type InferResult, type Insert, type InsertOp, type JsonPathOps, type ListArgs, type LogFields, type Logger, type ManyResult, type ManyWriteArgs, type MappedDbError, type Measure, type MeasureArg, type MeasureKey, type MemoryCache, type ModelFlags, type ModelTypes, type ModelsOf, type MutableWhere, type MutationEvent, type MutationIntent, type MutationKind, type MutationNotice, type MutationOp, type NoExtension, type NumericMeasureArg, type OffsetPage, type OffsetPageArgs, type OffsetRangeArgs, type Ok, type Operation, type OrderByArg, type OrderByInput, type OrderTerm, PLUGIN_API_VERSION, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, type PageOf, type Payload, type PlanFilter, type PlanLimit, type PlanOrder, type Plugin, type Policy, type PolicyDecision, type PostgrestClientLike, type PostgrestExecutorOptions, type PostgrestPlan, type PrimaryKeyColumn, type PrimaryKeyValue, type ProblemDetails, type ProblemFormat, type ProblemOptions, type ProblemResponseOptions, type Quantifier, type QueryEvent, type QuerySpec, type RawDbError, type ReadArgs, type ReadMethod, type ReadSet, type ReadSetAuth, type ReadSetOptions, type ReadSetParamType, type ReadSetParamTypes, type ReadSetParamValue, type ReadSetParams, type ReadSetResult, type RealtimeTableMeta, type RecordRef, type RefreshEvent, type RelationMeasureArg, type RelationMeta, type RelationTypes, type Relations, type Repository, type RepositoryApi, type RepositoryExtension, type RepositoryOf, type RequestArgs, type RequestContext, type Result, type ResultColumn, type Returned, type Row, type RowFilter, type RpcContext, type RpcDefinition, type RpcNotice, type RpcOptions, SPEC_PINS, type Schema, type SchemaMeta, type ScopeFor, type SearchArgs, type SelectArg, type SelectColumn, type SelectOp, type Selection, type Simplify, type SortDirection, type SortSpec, type Specs, type StandardJSONSchemaV1, type StandardSchemaV1, StatsRecorder, type StoragePath, type SubjectTypeOf, type SupabaseOptions, type TableFlags, type TableKey, type TableMeta, type TableRepositoryExtension, type TableSchema, type TableSchemaSpec, type TableSpecs, type TableValidators, type UniqueConstraint, type UniqueKeyName, type UniqueWhere, type Update, type UpdateArgs, type UpdateOp, type UpsertArgs, type UpsertManyArgs, type ValidationIssue, type ValidationOptions, type WhereArg, type WhereInput, type WithExtension, type WritableColumns, type WriteArgs, type WriteManyArgs, and, cacheTargetOf, column, compilePostgrest, consoleLogger, dbError, defineBetterResultErrors, definePlugin, defineReadSet, defineSupabase, err, escapeLike, explainPostgrest, fromBetterResult, fromProblem, isCheck, isConflict, isDbError, isForeignKey, isProblem, isQuerySpec, isReadSet, mapDbError, matchDbError, memoryCache, not, ok, or, postgrestCompiler, postgrestExecutor, problemResponse, readSetTables, recordStats, rowKey, rpcCacheTargets, silentLogger, specTables, statusOf, tableSchema, toBetterResult, toDbError, toProblem, validate };
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { t as DbException } from "./db-exception-Lngc1W49.js";
|
|
2
2
|
import { a as isConflict, c as mapDbError, i as isCheck, l as matchDbError, n as dbError, o as isDbError, s as isForeignKey, u as statusOf } from "./errors-BVFgt8BZ.js";
|
|
3
|
-
import { a as isPlainTime, i as isPlainDateTime, l as provideTemporal, n as isInstant, o as isZonedDateTime, r as isPlainDate } from "./temporal-
|
|
3
|
+
import { a as isPlainTime, i as isPlainDateTime, l as provideTemporal, n as isInstant, o as isZonedDateTime, r as isPlainDate } from "./temporal-Dbo0fLzc.js";
|
|
4
4
|
import { t as escapeLike } from "./escape-like-DHfx6jRr.js";
|
|
5
|
-
import {
|
|
5
|
+
import { i as tableMeta, r as defineSchema } from "./build-DbIRFcHQ.js";
|
|
6
6
|
import { i as or, n as column, r as not, t as and } from "./types-R6syp1el.js";
|
|
7
|
+
import { o as encodeValue, r as decodeValue } from "./wire-ChYn1g21.js";
|
|
7
8
|
import { a as ok, i as fromBetterResult, n as defineBetterResultErrors, o as toBetterResult, r as err, s as toDbError, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
8
|
-
import { a as decodeRows, c as rowKey, i as encodeCursor, l as rpcCacheTargets, n as defineSupabase, o as cacheTargetOf, r as decodeCursor, s as memoryCache, t as BetterSupabase } from "./define-
|
|
9
|
+
import { a as decodeRows, c as rowKey, i as encodeCursor, l as rpcCacheTargets, n as defineSupabase, o as cacheTargetOf, r as decodeCursor, s as memoryCache, t as BetterSupabase } from "./define-D-dLADd5.js";
|
|
9
10
|
import { n as touchedTables, t as invalidationTargets } from "./tables-Cb-3_VWc.js";
|
|
10
11
|
import { n as silentLogger, t as consoleLogger } from "./logger-glM28NVN.js";
|
|
11
12
|
import { t as EventHub } from "./events-D6IZ5CE8.js";
|
|
12
13
|
import { r as definePlugin, t as PLUGIN_API_VERSION } from "./plugin-AKwwe2gF.js";
|
|
13
14
|
import { t as simplify } from "./simplify-DDO0j0LI.js";
|
|
14
|
-
import { n as postgrestExecutor, s as compilePostgrest, t as explainPostgrest } from "./postgrest-executor-
|
|
15
|
-
import { n as isQuerySpec, r as specTables } from "./spec-
|
|
16
|
-
import { c as readSetTables, i as defineReadSet, o as isReadSet } from "./read-set-
|
|
15
|
+
import { n as postgrestExecutor, s as compilePostgrest, t as explainPostgrest } from "./postgrest-executor-B_Uezhrm.js";
|
|
16
|
+
import { n as isQuerySpec, r as specTables } from "./spec-BMvCCNnd.js";
|
|
17
|
+
import { c as readSetTables, i as defineReadSet, o as isReadSet } from "./read-set-B1sDib5O.js";
|
|
17
18
|
import { n as validate } from "./standard-BA3mLh6w.js";
|
|
18
19
|
import { n as StatsRecorder, r as recordStats, t as EMPTY_STATS } from "./stats-BHl1-zj9.js";
|
|
19
20
|
import { n as toDb, t as toApp } from "./casing-DdFWEtqr.js";
|
|
20
21
|
import { c as toProblem, i as isProblem, n as PROBLEM_TYPE_BASE, o as problemResponse, r as fromProblem, t as PROBLEM_CONTENT_TYPE } from "./problem-Bf0cJ7tk.js";
|
|
21
|
-
import { n as tableSchema } from "./table-schema-
|
|
22
|
+
import { n as tableSchema } from "./table-schema-C80xItaV.js";
|
|
22
23
|
import { t as SPEC_PINS } from "./spec-pins-D3zDek-u.js";
|
|
23
24
|
import { n as scopeOperation, r as scopeSelection, t as scopeCondition } from "./scope-DgWjuXUw.js";
|
|
24
25
|
//#region src/core/error-messages.ts
|
|
@@ -24,13 +24,13 @@ function asBlocksConfig(blocks) {
|
|
|
24
24
|
* block names, which renames nothing.
|
|
25
25
|
*/
|
|
26
26
|
function tenantNameOf(blocks) {
|
|
27
|
-
if (blocks === void 0 || isNameList(blocks)) return;
|
|
27
|
+
if (blocks === void 0 || isNameList$1(blocks)) return;
|
|
28
28
|
const entities = blocks["memberships"]?.entities;
|
|
29
29
|
if (entities === void 0 || typeof entities === "string") return;
|
|
30
30
|
const value = entities["organization"];
|
|
31
31
|
return typeof value === "string" ? value : value?.name;
|
|
32
32
|
}
|
|
33
|
-
function isNameList(blocks) {
|
|
33
|
+
function isNameList$1(blocks) {
|
|
34
34
|
return Array.isArray(blocks);
|
|
35
35
|
}
|
|
36
36
|
const MODULE_SCHEMA = "better_supabase";
|
|
@@ -16356,4 +16356,148 @@ function versionsEntry(table) {
|
|
|
16356
16356
|
return versions === void 0 ? {} : { versions };
|
|
16357
16357
|
}
|
|
16358
16358
|
//#endregion
|
|
16359
|
-
|
|
16359
|
+
//#region src/config/instances.ts
|
|
16360
|
+
/**
|
|
16361
|
+
* Blocks that install once: they hold the app's identity, tenancy, access and
|
|
16362
|
+
* plumbing, so a second copy would split what every other block reads.
|
|
16363
|
+
*/
|
|
16364
|
+
const CORE_BLOCKS = /* @__PURE__ */ new Set([
|
|
16365
|
+
"api-keys",
|
|
16366
|
+
"audit",
|
|
16367
|
+
"created-by",
|
|
16368
|
+
"grants",
|
|
16369
|
+
"data-lifecycle",
|
|
16370
|
+
"entitlements",
|
|
16371
|
+
"flags",
|
|
16372
|
+
"field-encryption",
|
|
16373
|
+
"field-history",
|
|
16374
|
+
"guests",
|
|
16375
|
+
"idempotency",
|
|
16376
|
+
"invitations",
|
|
16377
|
+
"jsonb-schemas",
|
|
16378
|
+
"identities",
|
|
16379
|
+
"memberships",
|
|
16380
|
+
"mfa",
|
|
16381
|
+
"oauth-server",
|
|
16382
|
+
"organizations",
|
|
16383
|
+
"outbox",
|
|
16384
|
+
"permissions",
|
|
16385
|
+
"pgtap",
|
|
16386
|
+
"profiles",
|
|
16387
|
+
"queue",
|
|
16388
|
+
"rate-limit",
|
|
16389
|
+
"read-sets",
|
|
16390
|
+
"realtime-tables",
|
|
16391
|
+
"reserved-slugs",
|
|
16392
|
+
"rls-guard",
|
|
16393
|
+
"search",
|
|
16394
|
+
"security-events",
|
|
16395
|
+
"service-accounts",
|
|
16396
|
+
"sessions",
|
|
16397
|
+
"settings",
|
|
16398
|
+
"signing-keys",
|
|
16399
|
+
"sso",
|
|
16400
|
+
"subjects",
|
|
16401
|
+
"teams",
|
|
16402
|
+
"trash",
|
|
16403
|
+
"updated-at",
|
|
16404
|
+
"usage",
|
|
16405
|
+
"vector-search"
|
|
16406
|
+
]);
|
|
16407
|
+
const INSTANCE_NAME = /^[a-z][a-zA-Z0-9-]*$/;
|
|
16408
|
+
/**
|
|
16409
|
+
* The prefix an instance gives the names its block's renames leave unchanged:
|
|
16410
|
+
* `hiring-pipelines` and `hiringPipelines` both give `hiring_pipelines`.
|
|
16411
|
+
*/
|
|
16412
|
+
function instancePrefix(name) {
|
|
16413
|
+
return name.replaceAll(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`).replaceAll("-", "_");
|
|
16414
|
+
}
|
|
16415
|
+
/** Whether `instance` installs its block under another name. */
|
|
16416
|
+
const isRenamedInstance = (instance) => instance.name !== instance.block;
|
|
16417
|
+
/** The blocks `block` may bind with `uses`: what it requires or works with. */
|
|
16418
|
+
function dependenciesOf(block, catalog) {
|
|
16419
|
+
const entry = catalog.blocks.find((each) => each.name === block);
|
|
16420
|
+
const requires = /* @__PURE__ */ new Set([...entry?.requires ?? [], ...Object.values(entry?.requiresByAccess ?? {}).flat()]);
|
|
16421
|
+
return {
|
|
16422
|
+
requires,
|
|
16423
|
+
known: /* @__PURE__ */ new Set([...requires, ...entry?.integrates ?? []])
|
|
16424
|
+
};
|
|
16425
|
+
}
|
|
16426
|
+
function instanceProblems(entries, catalog) {
|
|
16427
|
+
const blocks = new Set(catalog.blocks.map((block) => block.name));
|
|
16428
|
+
const byBlock = /* @__PURE__ */ new Map();
|
|
16429
|
+
for (const [name, entry] of entries) {
|
|
16430
|
+
const block = entry.block ?? name;
|
|
16431
|
+
byBlock.set(block, [...byBlock.get(block) ?? [], name]);
|
|
16432
|
+
}
|
|
16433
|
+
const problems = [];
|
|
16434
|
+
for (const [name, entry] of entries) {
|
|
16435
|
+
if (!INSTANCE_NAME.test(name)) {
|
|
16436
|
+
problems.push(`blocks.${name}: an instance name starts with a lowercase letter and holds letters, digits and -.`);
|
|
16437
|
+
continue;
|
|
16438
|
+
}
|
|
16439
|
+
if (entry.block !== void 0 && !blocks.has(entry.block)) {
|
|
16440
|
+
problems.push(`blocks.${name}.block: "${entry.block}" is not a block. See \`better-supabase blocks list\`.`);
|
|
16441
|
+
continue;
|
|
16442
|
+
}
|
|
16443
|
+
const block = entry.block ?? name;
|
|
16444
|
+
if (CORE_BLOCKS.has(block) && name !== block) problems.push(`blocks.${name}: "${block}" is a core block and installs once, under its own name. Rename the key to "${block}".`);
|
|
16445
|
+
const { requires, known } = dependenciesOf(block, catalog);
|
|
16446
|
+
for (const [dependency, instance] of Object.entries(entry.uses ?? {})) if (!known.has(dependency)) problems.push(`blocks.${name}.uses.${dependency}: "${block}" doesn't use "${dependency}".`);
|
|
16447
|
+
else if (!(byBlock.get(dependency) ?? []).includes(instance)) problems.push(`blocks.${name}.uses.${dependency}: "${instance}" is not an instance of "${dependency}".`);
|
|
16448
|
+
for (const dependency of requires) {
|
|
16449
|
+
const installed = byBlock.get(dependency) ?? [];
|
|
16450
|
+
if (installed.length > 1 && entry.uses?.[dependency] === void 0) problems.push(`blocks.${name}.uses.${dependency}: "${dependency}" is installed as ${installed.map((each) => `"${each}"`).join(" and ")}; name the one "${name}" uses.`);
|
|
16451
|
+
}
|
|
16452
|
+
}
|
|
16453
|
+
return problems;
|
|
16454
|
+
}
|
|
16455
|
+
function isNameList(blocks) {
|
|
16456
|
+
return Array.isArray(blocks);
|
|
16457
|
+
}
|
|
16458
|
+
/**
|
|
16459
|
+
* The instances in `blocks`, keyed by instance name. A list of names installs
|
|
16460
|
+
* each block once under its own name. Throws one error that lists every
|
|
16461
|
+
* instance whose `block` is unknown, that renames or repeats a core block, or
|
|
16462
|
+
* whose `uses` doesn't name an installed instance of a dependency.
|
|
16463
|
+
*/
|
|
16464
|
+
function resolveInstances(blocks, catalog = PRESET_CATALOG) {
|
|
16465
|
+
const entries = blocks === void 0 ? [] : isNameList(blocks) ? blocks.map((name) => [name, {}]) : Object.entries(blocks).flatMap(([name, entry]) => entry === void 0 ? [] : [[name, entry]]);
|
|
16466
|
+
const problems = instanceProblems(entries, catalog);
|
|
16467
|
+
if (problems.length > 0) throw new TypeError(problems.join("\n"));
|
|
16468
|
+
const byBlock = /* @__PURE__ */ new Map();
|
|
16469
|
+
for (const [name, entry] of entries) {
|
|
16470
|
+
const block = entry.block ?? name;
|
|
16471
|
+
byBlock.set(block, [...byBlock.get(block) ?? [], name]);
|
|
16472
|
+
}
|
|
16473
|
+
return Object.fromEntries(entries.map(([name, entry]) => {
|
|
16474
|
+
const block = entry.block ?? name;
|
|
16475
|
+
const { known } = dependenciesOf(block, catalog);
|
|
16476
|
+
const implied = [...known].flatMap((dependency) => {
|
|
16477
|
+
const installed = byBlock.get(dependency) ?? [];
|
|
16478
|
+
return installed.length === 1 && installed[0] !== dependency ? [[dependency, installed[0]]] : [];
|
|
16479
|
+
});
|
|
16480
|
+
const uses = Object.fromEntries([...implied, ...Object.entries(entry.uses ?? {})].filter(([dependency, instance]) => instance !== dependency));
|
|
16481
|
+
return [name, {
|
|
16482
|
+
name,
|
|
16483
|
+
block,
|
|
16484
|
+
...entry.on === void 0 ? {} : { on: entry.on },
|
|
16485
|
+
uses,
|
|
16486
|
+
config: withoutBlockKey(entry)
|
|
16487
|
+
}];
|
|
16488
|
+
}));
|
|
16489
|
+
}
|
|
16490
|
+
/**
|
|
16491
|
+
* `blocks` keyed by block name: the instances named after their block. The
|
|
16492
|
+
* other instances render on their own, from `instances`.
|
|
16493
|
+
*/
|
|
16494
|
+
function blocksByName(instances) {
|
|
16495
|
+
return Object.fromEntries(Object.values(instances).filter((instance) => !isRenamedInstance(instance)).map((instance) => [instance.block, instance.config]));
|
|
16496
|
+
}
|
|
16497
|
+
function withoutBlockKey(entry) {
|
|
16498
|
+
if (entry.block === void 0) return entry;
|
|
16499
|
+
const { block: _, ...rest } = entry;
|
|
16500
|
+
return rest;
|
|
16501
|
+
}
|
|
16502
|
+
//#endregion
|
|
16503
|
+
export { APP_ROLLUP_AGGREGATES as A, encryptedColumns as C, APP_COLUMN_FORMATS as D, APP_COLUMN_ACCESS as E, asBlocksConfig as F, resolveBlock as I, tenantNameOf as L, PRESET_CATALOG as M, BLOCK_SCOPES as N, APP_COLUMN_TYPES as O, DEFAULT_ACTIVE_TENANT as P, columnsWithAccess as S, hiddenColumns as T, appTablesOf as _, isRenamedInstance as a, isAppDefault as b, APP_NAME_MAX as c, appIdentifierError as d, appNameLengthError as f, appTableVersions as g, appTableEventTypes as h, instancePrefix as i, APP_TABLE_EVENT_KINDS as j, APP_ON_DELETE_ACTIONS as k, APP_RANK_COLUMN as l, appTableEventKinds as m, INSTANCE_NAME as n, resolveInstances as o, appReservedColumns as p, blocksByName as r, APP_DELETED_AT_COLUMN as s, CORE_BLOCKS as t, AUTH_USERS as u, withAppTableSubjects as v, hasColumnAccess as w, hasComputed as x, appDefaultError as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as isList } from "./guards-6F2bCtQR.js";
|
|
2
|
-
import { i as tableJsonSchema, r as fieldJsonSchema, t as forTarget } from "./table-schema-
|
|
2
|
+
import { i as tableJsonSchema, r as fieldJsonSchema, t as forTarget } from "./table-schema-C80xItaV.js";
|
|
3
3
|
import { i as entityNames } from "./entity-naming-Dtyq5sKE.js";
|
|
4
4
|
//#region src/generators/shared.ts
|
|
5
5
|
const INTEGER$1 = /* @__PURE__ */ new Set([
|
|
@@ -4,7 +4,7 @@ import { n as claimAt } from "./claims-Bp9My7XP.js";
|
|
|
4
4
|
import { t as authContext } from "./context-DBicfUNz.js";
|
|
5
5
|
import { a as isRequestMemo, r as checkPermission } from "./authorizer-BGhXaDmo.js";
|
|
6
6
|
import { n as toSession } from "./view-C8Ve14ja.js";
|
|
7
|
-
import { i as guard, s as settle } from "./respond-
|
|
7
|
+
import { i as guard, s as settle } from "./respond-CZMWbUs3.js";
|
|
8
8
|
//#region src/server/kit.ts
|
|
9
9
|
/** `FormData` as a plain object; repeated keys become arrays. */
|
|
10
10
|
function formDataObject(form) {
|
|
@@ -3,8 +3,8 @@ import { n as dbError } from "./errors-BVFgt8BZ.js";
|
|
|
3
3
|
import { n as isRecord } from "./guards-6F2bCtQR.js";
|
|
4
4
|
import { a as ok, r as err, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
5
5
|
import { t as vectorLiteral } from "./search-Cn_DGluL.js";
|
|
6
|
-
import {
|
|
7
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
6
|
+
import { A as recordsOf, L as textOf, M as run, O as recordOf, f as errorText, h as instantOf, k as recordOrEmpty, n as applyTemporal, o as blockCall, p as injectableOf, w as optionalText } from "./block-helpers-B0f0ZVb5.js";
|
|
7
|
+
import { r as withBlockHooks } from "./block-hooks-DKtz0HRh.js";
|
|
8
8
|
//#region src/blocks/knowledge/knowledge.ts
|
|
9
9
|
const SCOPES = /* @__PURE__ */ new Set([
|
|
10
10
|
"organization",
|
package/dist/list/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
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-BXLs72G9.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-
|
|
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-XYfUZb0j.js";
|
|
3
3
|
import { n as FilterRecordField, r as evaluateFilterQuery, t as FilterEvaluation } from "../filter-evaluate-CPxeae5X.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 };
|
package/dist/list/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FILTER_OPERATOR_LABELS, o as decodeFilterQuery, s as encodeFilterQuery, t as FILTER_OPERATORS } from "../filter-query-
|
|
2
|
-
import { n as defineListQuery, t as UNSET } from "../list-query-
|
|
3
|
-
import { t as evaluateFilterQuery } from "../filter-evaluate-
|
|
1
|
+
import { n as FILTER_OPERATOR_LABELS, o as decodeFilterQuery, s as encodeFilterQuery, t as FILTER_OPERATORS } from "../filter-query-CQ6d5GnQ.js";
|
|
2
|
+
import { n as defineListQuery, t as UNSET } from "../list-query-BnpA2BDg.js";
|
|
3
|
+
import { t as evaluateFilterQuery } from "../filter-evaluate-lCToXzZI.js";
|
|
4
4
|
export { FILTER_OPERATORS, FILTER_OPERATOR_LABELS, UNSET, decodeFilterQuery, defineListQuery, encodeFilterQuery, evaluateFilterQuery };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as filterFieldsOf, i as checkFilterQuery, l as filterJsonSchema, o as decodeFilterQuery, p as toFilterFields, s as encodeFilterQuery, u as filterWhere } from "./filter-query-
|
|
1
|
+
import { c as filterFieldsOf, i as checkFilterQuery, l as filterJsonSchema, o as decodeFilterQuery, p as toFilterFields, s as encodeFilterQuery, u as filterWhere } from "./filter-query-CQ6d5GnQ.js";
|
|
2
2
|
//#region src/list/list-query.ts
|
|
3
3
|
/** Facet value meaning "not set": filters with `is null`. */
|
|
4
4
|
const UNSET = "__unset__";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as ValidationIssue, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { O as AnyFunctions, a as CountMode, it as Row, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
|
|
3
|
-
import {
|
|
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-Lf6rI2QN.js";
|
|
4
4
|
import { c as FilterFieldLabels, h as FilterQuery, o as FilterField, r as FilterClock, s as FilterFieldInfo, v as ListFilterConfig } from "./filter-query-BXLs72G9.js";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
//#region src/list/list-query.d.ts
|
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-
|
|
1
|
+
import { t as VERSION } from "../cli/version-CUdPyV6J.js";
|
|
2
|
+
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-61VwYKEv.js";
|
|
3
|
+
import { t as loadSnapshot } from "../cli/snapshot-B8K6gYjA.js";
|
|
4
|
+
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-0Vd7BaNA.js";
|
|
5
5
|
import { i as discoverConfig, s as loadConfig } from "../cli/config-BH0goim0.js";
|
|
6
6
|
import { i as parseEnv, n as configEnvironment } from "../cli/env-DMgjB_4y.js";
|
|
7
|
-
import { s as schemaStampPath } from "../cli/content-mapper-
|
|
7
|
+
import { s as schemaStampPath } from "../cli/content-mapper-DGQQY5IA.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
1
|
import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
|
|
2
|
-
import { t as OperationTable } from "../operations-
|
|
2
|
+
import { t as OperationTable } from "../operations-DC3wU3Sy.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-
|
|
4
|
+
import { t as BetterSupabase } from "../define-Lf6rI2QN.js";
|
|
5
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BH6AjDBN.js";
|
|
6
6
|
import { r as GuardOptions } from "../respond-oZeJ342J.js";
|
|
7
7
|
import { D as ResourceOperation } from "../model-hwpvole9.js";
|
|
8
|
-
import { l as ResourceRouteOptions } from "../resource-types-
|
|
8
|
+
import { l as ResourceRouteOptions } from "../resource-types-DjZ91WKA.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
//#region src/mcp/dialect.d.ts
|
|
11
11
|
/**
|
package/dist/mcp/index.js
CHANGED
|
@@ -4,17 +4,17 @@ import { t as base64ToText } from "../base64-B9Wlsdj7.js";
|
|
|
4
4
|
import { n as validate } from "../standard-BA3mLh6w.js";
|
|
5
5
|
import { a as methodNotAllowed, c as toProblem, o as problemResponse } from "../problem-Bf0cJ7tk.js";
|
|
6
6
|
import { t as SPEC_PINS } from "../spec-pins-D3zDek-u.js";
|
|
7
|
-
import { r as toDraft07, t as buildJsonSchema } from "../json-schema-
|
|
7
|
+
import { r as toDraft07, t as buildJsonSchema } from "../json-schema-DHJxiizN.js";
|
|
8
8
|
import { r as operationPermission, t as OPERATION_PREFIXES } from "../operations-DVHRHvv6.js";
|
|
9
|
-
import {
|
|
10
|
-
import { n as checkEach, r as checkPermission } from "../authorizer-BGhXaDmo.js";
|
|
9
|
+
import { r as pageSchema, t as pageInputSchema } from "../resource-schemas-up6bKOUi.js";
|
|
11
10
|
import { n as jsonResponse, t as jsonReplacer } from "../json-DaByVJpw.js";
|
|
12
|
-
import {
|
|
11
|
+
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-D4aNBxhm.js";
|
|
12
|
+
import { n as checkEach, r as checkPermission } from "../authorizer-BGhXaDmo.js";
|
|
13
|
+
import { i as guard, n as defaultExpose, s as settle } from "../respond-CZMWbUs3.js";
|
|
13
14
|
import { t as boundedTtlCache } from "../ttl-cache-Bhr9swjT.js";
|
|
14
|
-
import { t as defineResource } from "../resource-
|
|
15
|
-
import { r as hasRole } from "../kit-
|
|
15
|
+
import { t as defineResource } from "../resource-BUJcZKiW.js";
|
|
16
|
+
import { r as hasRole } from "../kit-Bcd9wYCV.js";
|
|
16
17
|
import { t as withExtra } from "../extra-CGQ2_q3S.js";
|
|
17
|
-
import { r as pageSchema, t as pageInputSchema } from "../resource-schemas-up6bKOUi.js";
|
|
18
18
|
import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "../http-DzbloBR-.js";
|
|
19
19
|
import { resourceMetadataResponse, unauthorizedResponse } from "@supabase/server/oauth-protected-resource";
|
|
20
20
|
//#region src/mcp/dialect.ts
|
package/dist/mcp/sdk/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { O as AnyFunctions, k as AnyModels } from "../../types-DFdg_4yN.js";
|
|
|
2
2
|
import { r as AuthState } from "../../resolve-CXX6DHv3.js";
|
|
3
3
|
import { i as CredentialRef, r as CredentialProvider } from "../../provider-CqwEOLCA.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-
|
|
5
|
+
import { t as BetterSupabase } from "../../define-Lf6rI2QN.js";
|
|
6
|
+
import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-BH6AjDBN.js";
|
|
7
7
|
import { r as GuardOptions, t as AllowedCaller } from "../../respond-oZeJ342J.js";
|
|
8
8
|
import { AuthInfo, CallToolResult, Icon, InputRequiredResult, OAuthTokenVerifier, RegisteredTool, ScopeChallengeHandler, ServerContext, StandardSchemaWithJSON, ToolAnnotations } from "@modelcontextprotocol/server";
|
|
9
9
|
//#region src/mcp/sdk/sdk.d.ts
|