better-supabase 0.23.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{access-sql-bjWFUWlk.js → access-sql-CTDNuxRv.js} +177 -12
- package/dist/{ai-schedules-7uQNMXve.d.ts → ai-schedules-yGZH-vQb.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/ai-sdk/batches/index.d.ts +1 -1
- package/dist/ai-sdk/index.d.ts +1 -1
- package/dist/ai-sdk/mcp/index.d.ts +3 -3
- package/dist/{api-CHObZL7m.d.ts → api-B1OkIWdx.d.ts} +3 -3
- package/dist/{api-keys-D5k63K6y.d.ts → api-keys-ClhKBDcc.d.ts} +1 -1
- package/dist/{app-tables-CJO6pWwy.d.ts → app-tables-62GqZIhd.d.ts} +1 -1
- package/dist/{approvals-Dh9dUXrN.d.ts → approvals-C5fmPLsH.d.ts} +1 -1
- package/dist/astro/index.d.ts +5 -5
- package/dist/{authorization-Dtwpjeuz.d.ts → authorization-BCG1v0iC.d.ts} +73 -15
- package/dist/{authorization-hooks-D_pwXlBs.d.ts → authorization-hooks-DtzreCAq.d.ts} +1 -1
- package/dist/{automations-FCnWy387.js → automations-8L3NEuoq.js} +4 -1
- package/dist/{availability-vguUvEK2.d.ts → availability-BdeKCHpl.d.ts} +10 -0
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-DaoTunvE.d.ts → bind-C54jD0r3.d.ts} +4 -4
- package/dist/{block-env-DUyo2I5O.d.ts → block-env-CM-LFfj4.d.ts} +4 -4
- package/dist/blocks/access-requests/index.d.ts +2 -2
- package/dist/blocks/activities/index.d.ts +3 -3
- package/dist/blocks/agents/index.d.ts +2 -2
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-chat/index.d.ts +5 -5
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.d.ts +3 -3
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/announcements/index.d.ts +5 -5
- package/dist/blocks/api-keys/index.d.ts +5 -5
- package/dist/blocks/approvals/index.d.ts +3 -3
- package/dist/blocks/assets/index.d.ts +2 -2
- package/dist/blocks/assignment/index.d.ts +3 -3
- package/dist/blocks/attachments/index.d.ts +3 -3
- package/dist/blocks/audit/index.d.ts +7 -7
- package/dist/blocks/automations/index.d.ts +5 -5
- package/dist/blocks/billable-time/index.d.ts +2 -2
- package/dist/blocks/billing/index.d.ts +5 -5
- package/dist/blocks/bookings/index.d.ts +6 -6
- package/dist/blocks/bulk/index.d.ts +2 -2
- package/dist/blocks/calendar/index.d.ts +46 -13
- package/dist/blocks/calendar/index.js +130 -30
- package/dist/blocks/catalog/index.d.ts +2 -2
- package/dist/blocks/channels/index.d.ts +3 -3
- package/dist/blocks/collections/index.d.ts +3 -3
- package/dist/blocks/comments/index.d.ts +5 -5
- package/dist/blocks/compliance/index.d.ts +2 -2
- package/dist/blocks/connectors/index.d.ts +3 -3
- package/dist/blocks/contacts/index.d.ts +3 -3
- package/dist/blocks/content/index.d.ts +2 -2
- package/dist/blocks/contracts/index.d.ts +2 -2
- package/dist/blocks/courses/index.d.ts +2 -2
- package/dist/blocks/created-by/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.d.ts +2 -2
- package/dist/blocks/custom-fields/index.js +1 -1
- package/dist/blocks/data-lifecycle/index.d.ts +4 -4
- package/dist/blocks/deals/index.d.ts +3 -3
- package/dist/blocks/dispatch/index.d.ts +2 -2
- package/dist/blocks/documents/index.d.ts +2 -2
- package/dist/blocks/domains/index.d.ts +2 -2
- package/dist/blocks/donations/index.d.ts +2 -2
- package/dist/blocks/drive/index.d.ts +4 -4
- package/dist/blocks/employees/index.d.ts +21 -6
- package/dist/blocks/employees/index.js +37 -2
- package/dist/blocks/enrichment/index.d.ts +3 -3
- package/dist/blocks/enrollments/index.d.ts +2 -2
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/expenses/index.d.ts +2 -2
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/flags/index.d.ts +2 -2
- package/dist/blocks/forecasts/index.d.ts +3 -3
- package/dist/blocks/forms/index.d.ts +3 -3
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/guests/index.d.ts +2 -2
- package/dist/blocks/hiring/index.d.ts +13 -6
- package/dist/blocks/hiring/index.js +15 -4
- package/dist/blocks/identities/index.d.ts +2 -2
- package/dist/blocks/imports/index.d.ts +2 -2
- package/dist/blocks/inbox/index.d.ts +6 -6
- package/dist/blocks/incidents/index.d.ts +2 -2
- package/dist/blocks/index.d.ts +4 -4
- package/dist/blocks/inventory/index.d.ts +2 -2
- package/dist/blocks/invoices/index.d.ts +3 -3
- package/dist/blocks/knowledge/index.d.ts +1 -1
- package/dist/blocks/lead-scoring/index.d.ts +1 -1
- package/dist/blocks/leases/index.d.ts +2 -2
- package/dist/blocks/leave/index.d.ts +2 -2
- package/dist/blocks/ledger/index.d.ts +2 -2
- package/dist/blocks/mail-sync/index.d.ts +3 -3
- package/dist/blocks/memberships/index.d.ts +1 -1
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/messaging/index.d.ts +7 -7
- package/dist/blocks/metrics/index.d.ts +2 -2
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +2 -2
- package/dist/blocks/notifications/index.d.ts +7 -7
- package/dist/blocks/numbering/index.d.ts +2 -2
- package/dist/blocks/oauth-server/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/orders/index.d.ts +3 -3
- package/dist/blocks/organizations/index.d.ts +4 -4
- package/dist/blocks/outbox/index.d.ts +2 -2
- package/dist/blocks/passes/index.d.ts +3 -3
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/pipelines/index.d.ts +3 -3
- package/dist/blocks/posts/index.d.ts +2 -2
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/promotions/index.d.ts +2 -2
- package/dist/blocks/push/index.d.ts +3 -3
- package/dist/blocks/queue/index.d.ts +1 -1
- package/dist/blocks/quotes/index.d.ts +3 -3
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +5 -5
- package/dist/blocks/relations/index.d.ts +2 -2
- package/dist/blocks/reminders/index.d.ts +4 -4
- package/dist/blocks/reviews/index.d.ts +2 -2
- package/dist/blocks/saved-views/index.d.ts +4 -4
- package/dist/blocks/scores/index.d.ts +2 -2
- package/dist/blocks/search/index.d.ts +4 -4
- package/dist/blocks/security-events/index.d.ts +3 -3
- package/dist/blocks/segments/index.d.ts +3 -3
- package/dist/blocks/sequences/index.d.ts +2 -2
- package/dist/blocks/service-accounts/index.d.ts +2 -2
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +3 -3
- package/dist/blocks/share-links/index.d.ts +2 -2
- package/dist/blocks/shipments/index.d.ts +2 -2
- package/dist/blocks/signatures/index.d.ts +2 -2
- package/dist/blocks/signing-keys/index.d.ts +2 -2
- package/dist/blocks/sla/index.d.ts +3 -3
- package/dist/blocks/sso/index.d.ts +3 -3
- package/dist/blocks/state-machine/index.d.ts +2 -2
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/tags/index.d.ts +3 -3
- package/dist/blocks/tasks/index.d.ts +6 -6
- package/dist/blocks/tasks/index.js +1 -1
- package/dist/blocks/teams/index.d.ts +2 -2
- package/dist/blocks/templates/index.d.ts +4 -4
- package/dist/blocks/time-tracking/index.d.ts +10 -5
- package/dist/blocks/time-tracking/index.js +16 -9
- package/dist/blocks/timeline/index.d.ts +4 -4
- package/dist/blocks/trash/index.d.ts +2 -2
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/updated-at/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/vercel-marketplace/index.d.ts +2 -2
- package/dist/blocks/versions/index.d.ts +2 -2
- package/dist/blocks/waitlist/index.d.ts +2 -2
- package/dist/blocks/webhooks/index.d.ts +6 -6
- package/dist/blocks/workflow-editor/index.d.ts +7 -7
- package/dist/blocks/workflows/index.d.ts +5 -5
- package/dist/{bookings-BpCNphYp.d.ts → bookings-CVw5-Q0Z.d.ts} +1 -1
- package/dist/chat-sdk/index.d.ts +2 -2
- package/dist/cli/{add-DVHniZOO.js → add-BKcE_g9D.js} +2 -2
- package/dist/cli/{add-C7lKQNBL.js → add-DUyg9qna.js} +40 -15
- package/dist/cli/add-pDOlqWUa.js +1 -0
- package/dist/cli/{backfill-Lrn-Qp5X.js → backfill-r9RELEEh.js} +4 -4
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-BKNd886C.js → blocks-DTOFdrxL.js} +1 -1
- package/dist/cli/{blocks-2Yw9t-_U.js → blocks-k1OG8XDs.js} +2 -2
- package/dist/cli/{cache-ByhPVMo-.js → cache-Czfw7Iow.js} +1 -1
- package/dist/cli/{codemod-C0eXpzFu.js → codemod-ClmbiLuL.js} +3 -3
- package/dist/cli/{command-BWEEXmtz.js → command-CVzTJSLp.js} +31 -0
- package/dist/cli/{completion-8EDK21xj.js → completion-CNCqE-Gb.js} +1 -1
- package/dist/cli/{completion-BfnKI4QZ.js → completion-Dpk6vh0p.js} +2 -2
- package/dist/cli/{completion-Bt7LMypX.js → completion-DxEXxFpz.js} +2 -2
- package/dist/cli/{config-CeaQMrvS.js → config-D2YUlzrl.js} +1 -1
- package/dist/cli/{config-WKDixoGK.js → config-EjNj3HfT.js} +1 -1
- package/dist/cli/{config-BVfeG3A5.js → config-KvV-sLZL.js} +290 -10
- package/dist/cli/{content-mapper-qH-_YQ8H.js → content-mapper-ez_mT0d4.js} +2 -2
- package/dist/cli/{db-DwjyUbAh.js → db-uYN6O5Eg.js} +38 -14
- package/dist/cli/{doctor-BnxkqXGA.js → doctor-BD9oo4MG.js} +31 -28
- package/dist/cli/{env-DMgjB_4y.js → env-BK0xKMeU.js} +1 -2
- package/dist/cli/{env-C-Bl6Awn.js → env-Bat6ogep.js} +1 -1
- package/dist/cli/env-Cy2lWBRC.js +1 -0
- package/dist/cli/{env-BCgVZkcb.js → env-DEAtgGoj.js} +2 -2
- package/dist/cli/{exec--Q1ZEWUW.js → exec-Ca5s-ygi.js} +1 -1
- package/dist/cli/{gen-aERmP3Sw.js → gen-8Ya8n2sA.js} +16 -16
- package/dist/cli/in-stack-diff-Cp-tVPj2.js +186 -0
- package/dist/cli/index.d.ts +1 -2
- package/dist/cli/index.js +8 -8
- package/dist/cli/{init-DWUqVSVW.js → init-DgL3sDfQ.js} +118 -11
- package/dist/cli/{keys-CbaL0lnw.js → keys-CsanNk-2.js} +1 -1
- package/dist/cli/{live-KcdTBUij.js → live-CMMEct_F.js} +2 -2
- package/dist/cli/{mcp-Dsjjo-LT.js → mcp-DEHtzAkq.js} +4 -4
- package/dist/cli/{metadata-DWQSIZ59.js → metadata-BZh-cOzC.js} +3 -3
- package/dist/cli/migrate-sVs1QYTM.js +306 -0
- package/dist/cli/{migration-safety-Cy7xlU4G.js → migration-safety-ClnYNMdq.js} +2 -2
- package/dist/cli/migrations-DWh38tO9.js +117 -0
- package/dist/cli/{module-migration-C6NLY9iZ.js → module-migration-CXfRJIV4.js} +2 -2
- package/dist/cli/{moved-DVwgE8lV.js → moved-Cnb4fp49.js} +1 -1
- package/dist/cli/{parse-B079x40m.js → parse-BWM6IGhF.js} +1 -1
- package/dist/cli/powersync-DURhWDVc.js +1 -0
- package/dist/cli/{powersync-CE_hQdgc.js → powersync-Dnyr-Wy5.js} +4 -3
- package/dist/cli/{print-Cy_ram9N.js → print-DJrSr56b.js} +2 -2
- package/dist/cli/{migrations-CUjNXokR.js → providers-CpaISitn.js} +4 -116
- package/dist/cli/{remove-DmwjzqaW.js → remove-ChaieK3t.js} +6 -6
- package/dist/cli/{render-CF09FCra.js → render-DUNJ4Pss.js} +8 -5
- package/dist/cli/{run-BYpZ8FjF.js → run-ChCQPYOh.js} +41 -39
- package/dist/cli/{run-lh-chAJW.js → run-Cl9COGuy.js} +10 -10
- package/dist/cli/{run-DmOTMa44.js → run-CxFDjL1Q.js} +4 -4
- package/dist/cli/seed-BJ7c-ktX.js +1 -0
- package/dist/cli/{seed-BMynpMPy.js → seed-BzVLTdRl.js} +3 -3
- package/dist/cli/{shared-D05A6t1e.js → shared-5uqc1GBj.js} +1 -1
- package/dist/cli/{skills-FXAVPLzp.js → skills-0gz_qjVb.js} +1 -1
- package/dist/cli/{snapshot-BITNbA5V.js → snapshot-DdAP7LWO.js} +3 -3
- package/dist/cli/{source-GGJHuzpH.js → source-2irbWSck.js} +1 -1
- package/dist/cli/{source-args-CDmmFmFG.js → source-args-DAcQt-Mh.js} +1 -1
- package/dist/cli/{spec-BGcRdlhN.js → spec-B7n4Rthp.js} +3 -3
- package/dist/cli/{spec-BjxXWaNQ.js → spec-_MS0ym5r.js} +1 -1
- package/dist/cli/{sql-layout-BoD5ynN9.js → sql-layout-DYKkQw1k.js} +21 -7
- package/dist/cli/{stack-DgASZP0K.js → stack-CteM33gC.js} +3 -3
- package/dist/cli/{stack-status-B_Ipd_-z.js → stack-status-BkkYRlXG.js} +1 -1
- package/dist/cli/{stacks-BYlQ96WS.js → stacks-CiDBH1dB.js} +1 -1
- package/dist/cli/{sync-_QlsTmqu.js → sync-DnSOrQuA.js} +4 -3
- package/dist/cli/table-DeH8X0qz.js +89 -0
- package/dist/cli/{upgrade-Cwhb1M7O.js → upgrade-CWdrC-K3.js} +5 -4
- package/dist/cli/{upgrade-n9ar1kc4.js → upgrade-cMy5fKkg.js} +3 -3
- package/dist/cli/{version-RSpJIWDd.js → version-C5RAWmrD.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{cloud-event-CzZTJkXv.d.ts → cloud-event-DcJwder2.d.ts} +1 -1
- package/dist/{composite-ChzHhSB0.d.ts → composite-CWJvZgni.d.ts} +6 -6
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.js +4 -4
- package/dist/{config-RwpFcPq8.js → config-CTeR7XHK.js} +6 -5
- package/dist/{config-vHLJ8SKf.js → config-CvJHIy5q.js} +4 -3
- package/dist/{connectors-Fud4amxp.d.ts → connectors-CHGiffYH.d.ts} +1 -1
- package/dist/{context-CMf4OKpN.d.ts → context-BFEX0b7H.d.ts} +109 -4
- package/dist/{controller-BGto_kYM.d.ts → controller-Cl6HmMBk.d.ts} +1 -1
- package/dist/{conversion-DBgMck5U.d.ts → conversion-DlfStnln.d.ts} +1 -1
- package/dist/create/index.d.ts +62 -3
- package/dist/create/index.js +67 -4
- package/dist/create/lite/index.d.ts +140 -3
- package/dist/create/lite/index.js +399 -47
- package/dist/credentials/index.d.ts +3 -3
- package/dist/{define-Lf6rI2QN.d.ts → define-BLP6XtoL.d.ts} +1 -1
- package/dist/{define-block-DCAiOrNX.d.ts → define-block-DibVN37N.d.ts} +4 -4
- package/dist/edge/index.d.ts +8 -8
- package/dist/elysia/index.d.ts +1 -1
- package/dist/{ended-gUsMZVNg.d.ts → ended-B8RyuUXF.d.ts} +1 -1
- package/dist/{entitlements-CIhVQ-0u.d.ts → entitlements-Y-n4RGAd.d.ts} +2 -2
- package/dist/eve/index.d.ts +2 -2
- package/dist/{event-calendar-DCufbihU.d.ts → event-calendar-DVLs2wUO.d.ts} +1 -1
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-vcqenSYU.d.ts → events-Cc9DDQWH.d.ts} +2 -0
- package/dist/{executor-DNK401lZ.d.ts → executor-C-Ox9eKq.d.ts} +1 -1
- package/dist/{executor-aFV7nEBs.d.ts → executor-DNPm13a9.d.ts} +2 -2
- package/dist/expo/index.d.ts +3 -3
- package/dist/{field-errors-BDhPaO0a.d.ts → field-errors-Btn3czyz.d.ts} +7 -7
- package/dist/{framework-DKA3fTHl.d.ts → framework-GlxXiotm.d.ts} +6 -6
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/hono/index.d.ts +8 -8
- package/dist/{index-CFWlHuVY.d.ts → index-8wOL81rB.d.ts} +1 -1
- package/dist/{index-ClvuSZEz.d.ts → index-BfYDY6eh.d.ts} +3 -3
- package/dist/{index-ujNqgZ6B.d.ts → index-C0_cweyT.d.ts} +11 -11
- package/dist/{index--OhYKouV.d.ts → index-CAY7rIQs.d.ts} +3 -3
- package/dist/{index-CG9rA8H8.d.ts → index-C_qlBJ3k.d.ts} +2 -2
- package/dist/{index-iRkFvJ7J.d.ts → index-D1ckLbUM.d.ts} +1 -1
- package/dist/{index-lV43eM34.d.ts → index-DPMVWm_Z.d.ts} +4 -4
- package/dist/{index-4MStWaeF.d.ts → index-k-SyCzcQ.d.ts} +105 -120
- package/dist/index.d.ts +2 -2
- package/dist/{instances-BPJSESPx.js → instances-C7qUTjhJ.js} +85 -6
- package/dist/{kit-CVgQCIBO.d.ts → kit-Dxx3MT8m.d.ts} +3 -3
- package/dist/list/index.d.ts +1 -1
- package/dist/{list-query-XYfUZb0j.d.ts → list-query-XHoYDlRN.d.ts} +1 -1
- package/dist/mapper/bin.js +7 -7
- package/dist/mcp/index.d.ts +5 -5
- package/dist/mcp/sdk/index.d.ts +5 -5
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +21 -21
- package/dist/node/index.d.ts +2 -2
- package/dist/{operations-qSBBV5vl.d.ts → operations-DE7SOBw-.d.ts} +1 -1
- package/dist/{options-D4ADKTKo.js → options-B5E2MGIz.js} +6 -1
- package/dist/options-C4LuqmdG.js +15 -0
- package/dist/{options-D2s7fT1s.js → options-COo7_3MX.js} +2 -1
- package/dist/{options-D32-YxnO.js → options-DhoLMknl.js} +3 -1
- package/dist/{options-BPp2zzsz.js → options-eTepQ1rZ.js} +2 -1
- package/dist/orpc/index.d.ts +7 -7
- package/dist/otel/index.d.ts +1 -1
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-HxjZTfF6.d.ts → outbox-DxZgoKwp.d.ts} +2 -2
- package/dist/{pool-CrtT4dg-.d.ts → pool-wjbAMqc1.d.ts} +1 -1
- package/dist/{ports-DbHiNSAa.d.ts → ports-DP0bthUk.d.ts} +1 -1
- package/dist/postgres/index.d.ts +1 -1
- package/dist/powersync/index.d.ts +3 -3
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-B1xXOJ0T.js → preset-DwuWNBip.js} +2 -2
- package/dist/{project-BM6QMtzV.js → project-Bo1vZqVs.js} +5 -5
- package/dist/{provider-CqwEOLCA.d.ts → provider-ClrIplXa.d.ts} +1 -1
- package/dist/{push-token-BwF1fyjA.d.ts → push-token-v3xCcVU7.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +7 -7
- 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 +5 -5
- package/dist/realtime/index.d.ts +4 -4
- package/dist/realtime/index.js +1 -1
- package/dist/{record-form-BbZpwsEi.d.ts → record-form-D2-F4IwS.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/{refresh-DT_ICaK-.d.ts → refresh-CCKB1Wa6.d.ts} +1 -1
- package/dist/{refusal-OrlI3g4H.d.ts → refusal-D_tklIEb.d.ts} +2 -2
- package/dist/{resolve-CXX6DHv3.d.ts → resolve-Bj1qD7Dy.d.ts} +1 -1
- package/dist/{resolved-names-WzRYhUez.js → resolved-names-iLBOUaib.js} +2 -2
- package/dist/{resource-execute-CUG6xUuh.d.ts → resource-execute-BSTIfp1D.d.ts} +1 -1
- package/dist/{resource-types-DjZ91WKA.d.ts → resource-types-D5WEvYtV.d.ts} +2 -2
- package/dist/{resources-6Ncdt9XT.d.ts → resources-CsZ7RhZC.d.ts} +1 -1
- package/dist/{respond-oZeJ342J.d.ts → respond-BzRG-0qc.d.ts} +1 -1
- package/dist/server/index.d.ts +20 -20
- package/dist/{server-types-BH6AjDBN.d.ts → server-types-BlDiY-ya.d.ts} +8 -8
- package/dist/{session-Y5SSYO2C.d.ts → session-BGP98Rgj.d.ts} +5 -5
- package/dist/{session-status-qQLm7jzh.d.ts → session-status-C4t7kbSn.d.ts} +2 -2
- package/dist/{sign-in-BAjR49fq.d.ts → sign-in-CAadgm33.d.ts} +2 -2
- package/dist/solid/index.d.ts +9 -9
- package/dist/solid-start/index.d.ts +5 -5
- package/dist/spec/index.d.ts +1 -1
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +5 -5
- package/dist/{sql-CNH8kjLS.js → sql-B7vBP9g0.js} +6248 -2092
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/ssr/index.d.ts +5 -5
- package/dist/storage/index.js +1 -1
- package/dist/{subject-readers-8GySC9Z8.d.ts → subject-readers-DJbzlm8a.d.ts} +1 -1
- package/dist/{subjects-NomQg6Eg.d.ts → subjects-BYCL-6hA.d.ts} +15 -1
- package/dist/{support-B4ZBVxt3.d.ts → support-D7CMbhRT.d.ts} +4 -4
- package/dist/{support-view-BYOgwXsJ.d.ts → support-view-CIDXF3_H.d.ts} +1 -1
- package/dist/svelte/index.d.ts +8 -8
- package/dist/sveltekit/index.d.ts +6 -6
- package/dist/{tags-Cjtcp5cN.d.ts → tags-Dg4Ywmqp.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +5 -5
- package/dist/{tenant-D4BA7XQ-.d.ts → tenant-CyLEXgot.d.ts} +2 -2
- package/dist/testing/index.d.ts +16 -16
- package/dist/testing/index.js +2 -2
- package/dist/{timeline-CEzj9v1z.d.ts → timeline-Cjl-1hiA.d.ts} +3 -3
- package/dist/{topic-utZqhw96.d.ts → topic-B_DGdAEs.d.ts} +3 -3
- package/dist/{topic-F0FKzJyQ.js → topic-DnsNG4Kj.js} +1 -1
- package/dist/{types-yj8VF4oY.d.ts → types-BdaBfYIw.d.ts} +2 -2
- package/dist/{types-DLnBJ3ST.d.ts → types-DF8JYEf5.d.ts} +2 -2
- package/dist/{types-EO2crSX_.d.ts → types-DR1MHh7N.d.ts} +1 -1
- package/dist/{vault-O-YlAyHb.d.ts → vault-BghaujrZ.d.ts} +1 -1
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/{verify-B0KLBb3j.d.ts → verify-CI8LgSpv.d.ts} +1 -1
- package/dist/{view-DyFdMCqg.d.ts → view-BvNA7EOC.d.ts} +1 -1
- package/dist/vue/index.d.ts +9 -9
- package/dist/{watch-topic-B1UCoQfz.d.ts → watch-topic-1zIAtiNM.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-B3Ss55Fy.d.ts → workflow-sdk-BNsZrcVg.d.ts} +1 -1
- package/dist/{workflow-sdk-CE8sEK57.js → workflow-sdk-CaEw822d.js} +25 -4
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/package.json +11 -1
- package/schemas/config-v1.json +95 -1
- package/dist/cli/add-vZRn-uH0.js +0 -1
- package/dist/cli/env-xhwXk5Ri.js +0 -1
- package/dist/cli/in-stack-diff-DQTW53Vf.js +0 -257
- package/dist/cli/powersync-BOhjVQCb.js +0 -1
- package/dist/cli/seed-CO3j_bly.js +0 -1
- package/dist/options-DztCKw_f.js +0 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { E as AccessPolicySql } from "./types-DFdg_4yN.js";
|
|
2
|
-
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-
|
|
3
|
-
import { nt as ReadSet } from "./define-
|
|
4
|
-
import {
|
|
5
|
-
import { t as SubjectConfig } from "./subjects-
|
|
2
|
+
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-BCG1v0iC.js";
|
|
3
|
+
import { nt as ReadSet } from "./define-BLP6XtoL.js";
|
|
4
|
+
import { Dr as AppTableConfig, R as TableGrant, Ur as CatalogPolicy, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, o as BlockSqlContractFunction, un as ResolvedConfig, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-BFEX0b7H.js";
|
|
5
|
+
import { t as SubjectConfig } from "./subjects-BYCL-6hA.js";
|
|
6
6
|
//#region src/sql/render.d.ts
|
|
7
7
|
/** A module's SQL for `layout`, without header; `undefined` in custom mode. */
|
|
8
8
|
declare function moduleBody(name: string, layout?: BlockSqlLayout): string | undefined;
|
|
@@ -157,7 +157,7 @@ interface BlockSqlPermissionKey {
|
|
|
157
157
|
* check, after `blocks.<module>.permissions` overrides. Modules in custom mode
|
|
158
158
|
* are skipped, and so is `invitations.invitePlatform` without platform roles.
|
|
159
159
|
*/
|
|
160
|
-
declare function modulePermissionKeys(config: AnyBlocksConfig, names: readonly string[]): BlockSqlPermissionKey[];
|
|
160
|
+
declare function modulePermissionKeys(config: AnyBlocksConfig, names: readonly string[], subjects?: BlockSqlLayout["subjects"]): BlockSqlPermissionKey[];
|
|
161
161
|
interface BlockSqlExtension {
|
|
162
162
|
readonly name: string;
|
|
163
163
|
readonly statement: string;
|
|
@@ -251,7 +251,7 @@ declare function moduleWritesText(module: string, logical: string, column: strin
|
|
|
251
251
|
* `ownTables` lists it or `blocks.<name>.on` names it, with the columns their
|
|
252
252
|
* SQL names: mapped to `null` and unused optional columns are left out.
|
|
253
253
|
*/
|
|
254
|
-
declare function adoptedTables(modules: AnyBlocksConfig, ownTables?: Readonly<Record<string, string>>, views?: Pick<BlockSqlLayout, "ownViews" | "ownColumns">): readonly AdoptedTable[];
|
|
254
|
+
declare function adoptedTables(modules: AnyBlocksConfig, ownTables?: Readonly<Record<string, string>>, views?: Pick<BlockSqlLayout, "ownViews" | "ownColumns" | "subjects">): readonly AdoptedTable[];
|
|
255
255
|
/**
|
|
256
256
|
* The columns the modules write on the app's other tables (`appSubjectTables`,
|
|
257
257
|
* such as a tag link table) that those tables lack, and the enum columns they
|
|
@@ -260,7 +260,7 @@ declare function adoptedTables(modules: AnyBlocksConfig, ownTables?: Readonly<Re
|
|
|
260
260
|
*/
|
|
261
261
|
declare function adoptedColumnProblems(modules: AnyBlocksConfig, files: readonly {
|
|
262
262
|
readonly text: string;
|
|
263
|
-
}[], schemas: readonly string[], ownTables?: Readonly<Record<string, string
|
|
263
|
+
}[], schemas: readonly string[], ownTables?: Readonly<Record<string, string>>, subjects?: BlockSqlLayout["subjects"]): readonly string[];
|
|
264
264
|
/** A block table mapped to a view of the app's. */
|
|
265
265
|
interface AdoptedView {
|
|
266
266
|
readonly module: string;
|
|
@@ -359,83 +359,6 @@ declare function tenantsQuery(layout: BlockSqlLayout, installed: readonly string
|
|
|
359
359
|
*/
|
|
360
360
|
declare function subjectColumns(entry: SubjectConfig, tenant?: string): readonly (readonly [path: string, column: string])[];
|
|
361
361
|
//#endregion
|
|
362
|
-
//#region src/sql/schema-scan.d.ts
|
|
363
|
-
/** Privileges one role gets on a table, from the policies that name it. */
|
|
364
|
-
interface PolicyGrant {
|
|
365
|
-
/** `schema.table`, unquoted; an unqualified name is in `public`. */
|
|
366
|
-
readonly table: string;
|
|
367
|
-
readonly role: "anon" | "authenticated";
|
|
368
|
-
readonly privileges: readonly ("select" | "insert" | "update" | "delete")[];
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* The tables `files` create (`create table`), as `schema.table`, in the order
|
|
372
|
-
* they first appear. Only tables in `schemas` are kept.
|
|
373
|
-
*/
|
|
374
|
-
declare function declaredTables(files: readonly {
|
|
375
|
-
readonly text: string;
|
|
376
|
-
}[], schemas: readonly string[]): string[];
|
|
377
|
-
/** A view the app's files create. */
|
|
378
|
-
interface DeclaredView {
|
|
379
|
-
/** Its columns, or `undefined` when they can't be read (`select *`). */
|
|
380
|
-
readonly columns: readonly string[] | undefined;
|
|
381
|
-
/** Whether `insert`, `update` and `delete` reach the table under it. */
|
|
382
|
-
readonly updatable: boolean;
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* The views and materialized views `files` create, as `schema.view`, with their
|
|
386
|
-
* columns and whether they are auto-updatable. A later `drop view` removes one.
|
|
387
|
-
* Only views in `schemas` are kept.
|
|
388
|
-
*/
|
|
389
|
-
declare function declaredViews(files: readonly {
|
|
390
|
-
readonly text: string;
|
|
391
|
-
}[], schemas: readonly string[]): ReadonlyMap<string, DeclaredView>;
|
|
392
|
-
/**
|
|
393
|
-
* The tables in `schemas` that `files` leave with row level security on: `alter
|
|
394
|
-
* table ... enable row level security`, until a later `disable` or `drop
|
|
395
|
-
* table`.
|
|
396
|
-
*/
|
|
397
|
-
declare function rlsTables(files: readonly {
|
|
398
|
-
readonly text: string;
|
|
399
|
-
}[], schemas: readonly string[]): string[];
|
|
400
|
-
/**
|
|
401
|
-
* Columns each `create table` in `files` declares, as `schema.table` to
|
|
402
|
-
* unquoted names. `like` and table constraints are skipped. Only tables in
|
|
403
|
-
* `schemas` are kept.
|
|
404
|
-
*/
|
|
405
|
-
declare function declaredTableColumns(files: readonly {
|
|
406
|
-
readonly text: string;
|
|
407
|
-
}[], schemas: readonly string[]): ReadonlyMap<string, ReadonlySet<string>>;
|
|
408
|
-
/**
|
|
409
|
-
* The declared type of each column of each `create table` in `files`, as
|
|
410
|
-
* `schema.table` to unquoted column name to type. A type is lower-cased with
|
|
411
|
-
* its spacing normalised, and a quoted part keeps its case without quotes. Only
|
|
412
|
-
* tables in `schemas` are kept.
|
|
413
|
-
*/
|
|
414
|
-
declare function declaredColumnTypes(files: readonly {
|
|
415
|
-
readonly text: string;
|
|
416
|
-
}[], schemas: readonly string[]): ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
417
|
-
/**
|
|
418
|
-
* The privileges the permissive policies in `files` imply, per table and role:
|
|
419
|
-
* `for all` gives the four commands, `to public` (or no `to`) counts for
|
|
420
|
-
* `authenticated` only, so `anon` needs a policy that names it. Restrictive
|
|
421
|
-
* policies grant nothing. Only tables in `schemas` are kept.
|
|
422
|
-
*/
|
|
423
|
-
declare function policyGrants(files: readonly {
|
|
424
|
-
readonly text: string;
|
|
425
|
-
}[], schemas: readonly string[]): PolicyGrant[];
|
|
426
|
-
declare function extensionSchema(sources: readonly {
|
|
427
|
-
readonly text: string;
|
|
428
|
-
}[], extension: string): string | undefined;
|
|
429
|
-
/**
|
|
430
|
-
* The update trigger that keeps `updated_at` current on each table in `schemas`
|
|
431
|
-
* the files create one on, by `schema.table`: its function is named like one
|
|
432
|
-
* (`set_updated_at`, `moddatetime`, `touch_*`) or the files define it with
|
|
433
|
-
* `new.updated_at :=`. Block triggers (`bsb_*`) don't count.
|
|
434
|
-
*/
|
|
435
|
-
declare function declaredUpdatedAtTriggers(files: readonly {
|
|
436
|
-
readonly text: string;
|
|
437
|
-
}[], schemas: readonly string[]): Readonly<Record<string, string>>;
|
|
438
|
-
//#endregion
|
|
439
362
|
//#region src/core/access-sql.d.ts
|
|
440
363
|
/** The Postgres types a scope's ids can have. */
|
|
441
364
|
declare const SCOPE_ID_TYPES: readonly string[];
|
|
@@ -532,40 +455,9 @@ declare const scopePolicyName: (table: {
|
|
|
532
455
|
readonly enrich?: unknown;
|
|
533
456
|
}, command: string) => string;
|
|
534
457
|
//#endregion
|
|
535
|
-
//#region src/sql/tenant-scope.d.ts
|
|
536
|
-
/**
|
|
537
|
-
* The restrictive policy that keeps each organization's rows apart (ADR 0099).
|
|
538
|
-
* Postgres combines permissive policies with `or`, so any permissive policy the
|
|
539
|
-
* app adds would widen a block's; a restrictive one is combined with `and`, so
|
|
540
|
-
* no permissive policy reaches past it.
|
|
541
|
-
*/
|
|
542
|
-
declare const TENANT_SCOPE_POLICY = "bsb_tenant_scope";
|
|
543
|
-
//#endregion
|
|
544
|
-
//#region src/sql/policy-cover.d.ts
|
|
545
|
-
type PolicyCommand$1 = "select" | "insert" | "update" | "delete";
|
|
546
|
-
/**
|
|
547
|
-
* The commands `block` grants beyond the app's permissive policies: the app has
|
|
548
|
-
* a policy for the command and none of them covers the block's. A command the
|
|
549
|
-
* app has no policy for is the block's to grant.
|
|
550
|
-
*/
|
|
551
|
-
declare function widenedCommands(block: CatalogPolicy, apps: readonly CatalogPolicy[]): PolicyCommand$1[];
|
|
552
|
-
declare function appTablePolicyNotes(sql: string): {
|
|
553
|
-
readonly table: string;
|
|
554
|
-
readonly policy: string;
|
|
555
|
-
readonly commands: readonly PolicyCommand$1[];
|
|
556
|
-
}[];
|
|
557
|
-
/**
|
|
558
|
-
* The policies `sources` leave on each `schema.table` in `schemas`, in order: a
|
|
559
|
-
* later `drop policy` removes one, and a later `create policy` of the same name
|
|
560
|
-
* replaces it.
|
|
561
|
-
*/
|
|
562
|
-
declare function declaredPolicies(sources: readonly {
|
|
563
|
-
readonly text: string;
|
|
564
|
-
}[], schemas: readonly string[]): Record<string, CatalogPolicy[]>;
|
|
565
|
-
//#endregion
|
|
566
458
|
//#region src/sql/policy.d.ts
|
|
567
459
|
/** A command a policy applies to. */
|
|
568
|
-
type PolicyCommand = "all" | "select" | "insert" | "update" | "delete";
|
|
460
|
+
type PolicyCommand$1 = "all" | "select" | "insert" | "update" | "delete";
|
|
569
461
|
/**
|
|
570
462
|
* One row level security policy (ADR 0103). `table` is `schema.table`,
|
|
571
463
|
* unquoted; a name without a schema is in `public`. `roles` lists the roles it
|
|
@@ -574,7 +466,7 @@ type PolicyCommand = "all" | "select" | "insert" | "update" | "delete";
|
|
|
574
466
|
interface Policy {
|
|
575
467
|
readonly table: string;
|
|
576
468
|
readonly name: string;
|
|
577
|
-
readonly command: PolicyCommand;
|
|
469
|
+
readonly command: PolicyCommand$1;
|
|
578
470
|
readonly roles: readonly string[];
|
|
579
471
|
readonly permissive: boolean;
|
|
580
472
|
readonly using: string | null;
|
|
@@ -584,13 +476,16 @@ interface Policy {
|
|
|
584
476
|
interface PolicyInput {
|
|
585
477
|
readonly table: string;
|
|
586
478
|
readonly name: string;
|
|
587
|
-
readonly command?: PolicyCommand;
|
|
479
|
+
readonly command?: PolicyCommand$1;
|
|
588
480
|
readonly roles?: readonly string[];
|
|
589
481
|
readonly permissive?: boolean;
|
|
590
482
|
readonly using?: string | null;
|
|
591
483
|
readonly check?: string | null;
|
|
592
484
|
}
|
|
593
|
-
/**
|
|
485
|
+
/**
|
|
486
|
+
* A policy with the defaults Postgres uses: `for all to public`, permissive. A
|
|
487
|
+
* `name` in double quotes is unquoted, so `sqlIdent(name)` works as a name.
|
|
488
|
+
*/
|
|
594
489
|
declare function policy(input: PolicyInput): Policy;
|
|
595
490
|
/** The catalog shape of `policy`, without its table. */
|
|
596
491
|
declare function catalogPolicy(entry: Policy): CatalogPolicy;
|
|
@@ -644,6 +539,39 @@ interface Grant {
|
|
|
644
539
|
/** The table grants of `sql`, read past comments, strings and dollar quotes. */
|
|
645
540
|
declare function readGrants(sql: string): Grant[];
|
|
646
541
|
//#endregion
|
|
542
|
+
//#region src/sql/tenant-scope.d.ts
|
|
543
|
+
/**
|
|
544
|
+
* The restrictive policy that keeps each organization's rows apart (ADR 0099).
|
|
545
|
+
* Postgres combines permissive policies with `or`, so any permissive policy the
|
|
546
|
+
* app adds would widen a block's; a restrictive one is combined with `and`, so
|
|
547
|
+
* no permissive policy reaches past it.
|
|
548
|
+
*/
|
|
549
|
+
declare const TENANT_SCOPE_POLICY = "bsb_tenant_scope";
|
|
550
|
+
/** Every name the tenant scope policies of a table carry. */
|
|
551
|
+
declare const TENANT_SCOPE_NAMES: readonly string[];
|
|
552
|
+
//#endregion
|
|
553
|
+
//#region src/sql/policy-cover.d.ts
|
|
554
|
+
type PolicyCommand = "select" | "insert" | "update" | "delete";
|
|
555
|
+
/**
|
|
556
|
+
* The commands `block` grants beyond the app's permissive policies: the app has
|
|
557
|
+
* a policy for the command and none of them covers the block's. A command the
|
|
558
|
+
* app has no policy for is the block's to grant.
|
|
559
|
+
*/
|
|
560
|
+
declare function widenedCommands(block: CatalogPolicy, apps: readonly CatalogPolicy[]): PolicyCommand[];
|
|
561
|
+
declare function appTablePolicyNotes(sql: string): {
|
|
562
|
+
readonly table: string;
|
|
563
|
+
readonly policy: string;
|
|
564
|
+
readonly commands: readonly PolicyCommand[];
|
|
565
|
+
}[];
|
|
566
|
+
/**
|
|
567
|
+
* The policies `sources` leave on each `schema.table` in `schemas`, in order: a
|
|
568
|
+
* later `drop policy` removes one, and a later `create policy` of the same name
|
|
569
|
+
* replaces it.
|
|
570
|
+
*/
|
|
571
|
+
declare function declaredPolicies(sources: readonly {
|
|
572
|
+
readonly text: string;
|
|
573
|
+
}[], schemas: readonly string[]): Record<string, CatalogPolicy[]>;
|
|
574
|
+
//#endregion
|
|
647
575
|
//#region src/sql/policy-rule.d.ts
|
|
648
576
|
/** A comparison a rule can make against a column. */
|
|
649
577
|
type RuleOperator = "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
@@ -741,4 +669,61 @@ interface PolicyFunctionsOptions {
|
|
|
741
669
|
*/
|
|
742
670
|
declare function policyFunctionsSql(options?: PolicyFunctionsOptions): string;
|
|
743
671
|
//#endregion
|
|
744
|
-
|
|
672
|
+
//#region src/sql/bsb-tags.d.ts
|
|
673
|
+
/**
|
|
674
|
+
* One `@bsb` feature: `subject title=number` is `{ name: "subject", args: {
|
|
675
|
+
* title: "number" } }`.
|
|
676
|
+
*/
|
|
677
|
+
interface BsbTag {
|
|
678
|
+
readonly name: string;
|
|
679
|
+
/** `key=value` pairs; a bare word is `true`. */
|
|
680
|
+
readonly args: Readonly<Record<string, string | true>>;
|
|
681
|
+
}
|
|
682
|
+
interface BsbComment {
|
|
683
|
+
/** The comment's free text, without the tag block. */
|
|
684
|
+
readonly text: string;
|
|
685
|
+
readonly tags: readonly BsbTag[];
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Splits a table comment into its free text and its `@bsb` tags (ADR 0102). The
|
|
689
|
+
* tag block starts at `@bsb` and runs to the end of the comment; tags are
|
|
690
|
+
* separated by `;`. A comment without `@bsb` is all text.
|
|
691
|
+
*/
|
|
692
|
+
declare function parseBsbComment(comment: string | null): BsbComment;
|
|
693
|
+
/** The comment `parseBsbComment` reads back: the text, then `@bsb` and the tags. */
|
|
694
|
+
declare function formatBsbComment(comment: BsbComment): string;
|
|
695
|
+
/**
|
|
696
|
+
* `comment` with the tag `name` set to `tag` (replacing a tag of that name), or
|
|
697
|
+
* removed when `tag` is undefined. The free text stays as it is.
|
|
698
|
+
*/
|
|
699
|
+
declare function setBsbTag(comment: string | null, name: string, tag: BsbTag | undefined): string;
|
|
700
|
+
/** The `comment on table` statement for `table` (already quoted) and `comment`. */
|
|
701
|
+
declare function commentOnTableSql(table: string, comment: string): string;
|
|
702
|
+
//#endregion
|
|
703
|
+
//#region src/sql/table-features.d.ts
|
|
704
|
+
/** The per-table features a `@bsb` tag turns on (ADR 0102). */
|
|
705
|
+
declare const TABLE_FEATURES: readonly ["realtime", "audit", "audit-reads", "subject", "json", "expose", "encrypted", "server", "events", "vector-search"];
|
|
706
|
+
type TableFeature = (typeof TABLE_FEATURES)[number];
|
|
707
|
+
declare function isTableFeature(value: string): value is TableFeature;
|
|
708
|
+
/** Whether `sql` creates `table`, in `schema` or unqualified. */
|
|
709
|
+
declare function createsTable(sql: string, schema: string, table: string): boolean;
|
|
710
|
+
/** The features the table's comment turns on, in `sql`. */
|
|
711
|
+
declare function tableFeatures(sql: string, schema: string, table: string): readonly string[];
|
|
712
|
+
/**
|
|
713
|
+
* `sql` with the `@bsb` tag `feature` on or off in `table`'s comment. The
|
|
714
|
+
* comment statement is rewritten in place, or appended when the file has none;
|
|
715
|
+
* the free text stays. Returns `sql` unchanged when the feature is already in
|
|
716
|
+
* the wanted state.
|
|
717
|
+
*/
|
|
718
|
+
declare function setTableFeature(sql: string, schema: string, table: string, feature: TableFeature, enabled: boolean, tag?: BsbTag): string;
|
|
719
|
+
/**
|
|
720
|
+
* The `@bsb` table comments in `sql`, with an unqualified table in `public`.
|
|
721
|
+
* Comments without tags are left out.
|
|
722
|
+
*/
|
|
723
|
+
declare function tableTagComments(sql: string): {
|
|
724
|
+
schema: string;
|
|
725
|
+
name: string;
|
|
726
|
+
comment: string;
|
|
727
|
+
}[];
|
|
728
|
+
//#endregion
|
|
729
|
+
export { MigrationOptionUse as $, BlockSqlTopic as $t, declaredPolicies as A, BlockSqlExtension as At, catalogPolicy as B, moduleDataDir as Bt, isRule as C, APP_TABLES_MARKER as Ct, renderRulePolicy as D, instanceFunctions as Dt, renderRule as E, DEFAULT_ROLES as Et, Policy as F, moduleSchemaExtensions as Ft, readPolicy as G, BLOCK_RENAMES as Gt, policy as H, EntityRenamePlan as Ht, PolicyCommand$1 as I, blockFileState as It, hasColumnAccess as J, renamedBlock as Jt, renderPolicy as K, currentBlockName as Kt, PolicyInput as L, isModuleDataFile as Lt, TENANT_SCOPE_NAMES as M, moduleEventTriggers as Mt, TENANT_SCOPE_POLICY as N, moduleHidingColumns as Nt, rulePolicy as O, SQL_MODULES as Ot, Grant as P, modulePermissionKeys as Pt, sharedRolesProblems as Q, upgradePlan as Qt, ReadPolicy as R, moduleFileVersion as Rt, disallowedPolicyCalls as S, moduleWritesText as St, readRulePolicies as T, appTablesFiles as Tt, readGrants as U, EntityRenameStep as Ut, maskSql as V, moduleFilePaths as Vt, readPolicies as W, entityRenamePlan as Wt, compileReadSet as X, InstalledBlock as Xt, CompiledReadSet as Y, BlockSqlUpgradePlan as Yt, compileReadSets as Z, moduleDeprecations as Zt, Rule as _, AdoptedTable as _t, setTableFeature as a, templateFunctions as at, RulePolicyInput as b, adoptedTables as bt, BsbComment as c, tenantsQuery as ct, formatBsbComment as d, sameTenantTrigger as dt, customContracts as en, migrationOptionUses as et, parseBsbComment as f, DataExportPlan as ft, ReadRulePolicy as g, resolveExposeColumns as gt, PolicyFunctionsOptions as h, excludedColumns as ht, isTableFeature as i, scopeProblems as it, widenedCommands as j, BlockSqlPermissionKey as jt, appTablePolicyNotes as k, resolveBlocks as kt, BsbTag as l, expiredFlagsQuery as lt, POLICY_FUNCTIONS as m, dataExportPlan as mt, TableFeature as n, moduleTopics as nn, SCOPE_ID_TYPES as nt, tableFeatures as o, subjectColumns as ot, setBsbTag as p, SECRET_COLUMNS as pt, scopePolicyName as q, formerBlockName as qt, createsTable as r, renderBlocks as rn, resolveProviderSql as rt, tableTagComments as s, TenantQuery as st, TABLE_FEATURES as t, moduleBody as tn, moduleLayout as tt, commentOnTableSql as u, sameTenantColumn as ut, RuleOperator as v, AdoptedView as vt, policyFunctionsSql as w, APP_TABLES_MODULE as wt, RuleValue as x, adoptedViews as xt, RulePolicy as y, adoptedColumnProblems as yt, RenderPolicyOptions as z, sameBlockFile as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { n as DbException, t as escapeLike } from "./escape-like-PReMbEEU.js";
|
|
|
3
3
|
import { A as isConflict, C as DbErrorMatchers, D as ValidationIssue, E as RawDbError, F as statusOf, M as isForeignKey, N as mapDbError, O as dbError, P as matchDbError, S as DbErrorKinds, T as ErrorMapper, _ as ok, a as BetterResultOk, b as DbError, c as DbErrorClasses, d as Ok, f as Result, g as fromBetterResult, h as err, i as BetterResultErrors, j as isDbError, k as isCheck, l as Err, m as defineBetterResultErrors, n as BetterResultApi, o as BetterResultValue, r as BetterResultErr, s as DbErrorClass, t as AsyncResult, u as MappedDbError, v as toBetterResult, w as DbErrorOf, x as DbErrorKind, y as toDbError } from "./result-DZeA5KS6.js";
|
|
4
4
|
import { n as validate, t as StandardSchemaV1 } from "./standard-DBV730sF.js";
|
|
5
5
|
import { $ as RecordRef, A as BucketMeta, At as NoExtension, B as FunctionMeta, Bt as Executor, C as not, Ct as ApplyExtension, D as AccessTopicPolicy, Dt as HasFlag, E as AccessPolicySql, Et as ExtensionsOf, F as Codec, Ft as RequestContext, G as GeneratedColumns, H as FunctionSignature, I as ColumnMeta, It as WithExtension, J as ModelTypes, K as Insert, L as DatabaseOf, Lt as definePlugin, M as Casing, Mt as Plugin, N as CheckConstraint, Nt as RepositoryApi, O as AnyFunctions, Ot as HookArgs, P as ClaimsMeta, Pt as RepositoryExtension, Q as RealtimeTableMeta, R as Flags, Rt as ExecuteContext, S as column, St as AnyPlugin, T as AccessBucketPolicy, Tt as ExtensionOf, U as FunctionTypes, V as FunctionResult, Vt as RpcContext, W as FunctionsOf, X as PrimaryKeyColumn, Y as ModelsOf, Z as PrimaryKeyValue, _ as SelectColumn, a as CountMode, at as Schema, b as UpdateOp, c as Include, ct as SubjectTypeOf, d as MutationIntent, dt as TableMeta, et as RelationMeta, f as MutationKind, ft as UniqueConstraint, g as Quantifier, gt as WritableColumns, h as OrderTerm, ht as Update, i as Condition, it as Row, j as BucketPolicyName, jt as PLUGIN_API_VERSION, k as AnyModels, kt as MutationEvent, l as InsertOp, lt as TableFlags, m as Operation, mt as UniqueWhere, n as Aggregation, nt as Relations, o as DeleteOp, ot as SchemaMeta, p as MutationOp, pt as UniqueKeyName, q as ModelFlags, r as ColumnOp, rt as ResultColumn, s as FunctionSource, st as Simplify, t as AggregateFn, tt as RelationTypes, u as Measure, ut as TableKey, v as SelectOp, w as or, wt as CallOptions, x as and, xt as Actor, y as Selection, z as ForeignKeyConstraint, zt as ExecuteResult } from "./types-DFdg_4yN.js";
|
|
6
|
-
import { Ct as Events, O as BlockEventType, T as BlockEvent, a as EventHandler, bt as EventMap, c as MutationNotice, d as RpcNotice, i as ErrorEvent, l as QueryEvent, n as AuthOutageEvent, o as EventHub, r as BetterSupabaseEvents, s as EventName, t as AuthEvent, u as RefreshEvent } from "./events-
|
|
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-Cc9DDQWH.js";
|
|
7
7
|
import { i as silentLogger, n as Logger, r as consoleLogger, t as LogFields } from "./logger-DWVYUmwi.js";
|
|
8
8
|
import { a as ProblemFormat, c as fromProblem, d as toProblem, i as ProblemDetails, l as isProblem, n as PROBLEM_CONTENT_TYPE, o as ProblemOptions, r as PROBLEM_TYPE_BASE, s as ProblemResponseOptions, t as BlockProblemOptions, u as problemResponse } from "./problem-DNwN8iGz.js";
|
|
9
|
-
import { $ as SearchArgs, $t as CacheTarget, A as OffsetPageArgs, At as GetArgs, B as Returned, Bt as OrderByInput, C as FindExt, Ct as AggregateResult, D as ManyWriteArgs, Dt as CountArg, E as ManyResult, Et as ColumnOrderByArg, F as PageOf, Ft as MeasureArg, G as UpsertArgs, Gt as SelectArg, Ht as ReadArgs, It as MeasureKey, J as WriteManyArgs, Jt as WhereArg, K as UpsertManyArgs, Kt as SortDirection, Lt as MutableWhere, Mt as IncludeArgs, Nt as JsonPathOps, Ot as CountArgs, Pt as ListArgs, Q as recordStats, Qt as CacheAdapter, R as Repository, Rt as NumericMeasureArg, S as DeleteExt, St as AggregateOrderByArg, Tt as ColumnOrderBy, U as RpcOptions, Ut as RelationMeasureArg, V as RowFilter, Vt as Payload, W as UpdateArgs, Wt as RequestArgs, X as EMPTY_STATS, Xt as BucketRegistry, Y as DbStats, Yt as WhereInput, Z as StatsRecorder, Zt as BucketsHelper, _ as CursorPage, _t as TableSpecs, a as explainPostgrest, at as ReadSetParamType, b as DbHelpers, bt as AggregateArgs, c as RpcDefinition, ct as ReadSetParams, dt as isReadSet, en as MemoryCache, f as BlocksHelper, ft as readSetTables, g as ConflictTarget, gt as Specs, h as DbOf, ht as ReadMethod, i as PostgrestExecutorOptions, in as rpcCacheTargets, it as ReadSetOptions, j as OffsetRangeArgs, jt as IncludeArg, k as OffsetPage, kt as FieldFilter, l as SupabaseOptions, lt as ReadSetResult, m as DbExtras, mt as QuerySpec, n as defineSupabase, nn as memoryCache, nt as ReadSet, o as postgrestExecutor, ot as ReadSetParamTypes, p as DbBlockSource, pt as InferResult, q as WriteArgs, qt as SortSpec, r as PostgrestClientLike, rn as rowKey, rt as ReadSetAuth, s as ConnectOptions, st as ReadSetParamValue, t as BetterSupabase, tn as cacheTargetOf, tt as InferReadSetParams, u as ApiOptions, ut as defineReadSet, v as CursorPageArgs, vt as isQuerySpec, w as GetKey, wt as AggregateRow, x as DeleteArgs, xt as AggregateOrderBy, y as Db, yt as specTables, z as RepositoryOf, zt as OrderByArg } from "./define-
|
|
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-BLP6XtoL.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";
|
|
@@ -168,7 +168,7 @@ const PRESET_CATALOG = {
|
|
|
168
168
|
"title": "Realtime table changes",
|
|
169
169
|
"category": "database",
|
|
170
170
|
"requires": [],
|
|
171
|
-
"integrates": [],
|
|
171
|
+
"integrates": ["memberships"],
|
|
172
172
|
"manifest": "realtime-tables"
|
|
173
173
|
},
|
|
174
174
|
{
|
|
@@ -1620,7 +1620,10 @@ const PRESET_CATALOG = {
|
|
|
1620
1620
|
"autoDecline": "auto_decline",
|
|
1621
1621
|
"createdBy": "created_by",
|
|
1622
1622
|
"createdAt": "created_at",
|
|
1623
|
-
"updatedAt": "updated_at"
|
|
1623
|
+
"updatedAt": "updated_at",
|
|
1624
|
+
"visibility": "visibility",
|
|
1625
|
+
"owner": "owner_id",
|
|
1626
|
+
"rdates": "rdates"
|
|
1624
1627
|
}
|
|
1625
1628
|
},
|
|
1626
1629
|
"calendars": {
|
|
@@ -1633,7 +1636,11 @@ const PRESET_CATALOG = {
|
|
|
1633
1636
|
"color": "color",
|
|
1634
1637
|
"ownerType": "owner_type",
|
|
1635
1638
|
"ownerId": "owner_id",
|
|
1636
|
-
"createdAt": "created_at"
|
|
1639
|
+
"createdAt": "created_at",
|
|
1640
|
+
"visibility": "visibility",
|
|
1641
|
+
"description": "description",
|
|
1642
|
+
"rank": "rank",
|
|
1643
|
+
"isDefault": "is_default"
|
|
1637
1644
|
}
|
|
1638
1645
|
}
|
|
1639
1646
|
},
|
|
@@ -2473,6 +2480,7 @@ const PRESET_CATALOG = {
|
|
|
2473
2480
|
"integrates": [
|
|
2474
2481
|
"outbox",
|
|
2475
2482
|
"audit",
|
|
2483
|
+
"employees",
|
|
2476
2484
|
"approvals"
|
|
2477
2485
|
],
|
|
2478
2486
|
"manifest": "time-tracking",
|
|
@@ -2509,7 +2517,8 @@ const PRESET_CATALOG = {
|
|
|
2509
2517
|
"createdAt": "created_at",
|
|
2510
2518
|
"updatedAt": "updated_at",
|
|
2511
2519
|
"seconds": "seconds",
|
|
2512
|
-
"runningSince": "running_since"
|
|
2520
|
+
"runningSince": "running_since",
|
|
2521
|
+
"employee": "employee_id"
|
|
2513
2522
|
}
|
|
2514
2523
|
},
|
|
2515
2524
|
"timesheets": {
|
|
@@ -2527,7 +2536,8 @@ const PRESET_CATALOG = {
|
|
|
2527
2536
|
"status": "status",
|
|
2528
2537
|
"decidedBy": "decided_by",
|
|
2529
2538
|
"decidedAt": "decided_at",
|
|
2530
|
-
"decisionNote": "decision_note"
|
|
2539
|
+
"decisionNote": "decision_note",
|
|
2540
|
+
"employee": "employee_id"
|
|
2531
2541
|
}
|
|
2532
2542
|
}
|
|
2533
2543
|
},
|
|
@@ -3427,6 +3437,7 @@ const PRESET_CATALOG = {
|
|
|
3427
3437
|
"primary": true,
|
|
3428
3438
|
"subject": {
|
|
3429
3439
|
"title": "name",
|
|
3440
|
+
"fallbackTitle": "firstName",
|
|
3430
3441
|
"permissions": {
|
|
3431
3442
|
"read": "read",
|
|
3432
3443
|
"write": "write"
|
|
@@ -3457,7 +3468,9 @@ const PRESET_CATALOG = {
|
|
|
3457
3468
|
"originId": "origin_id",
|
|
3458
3469
|
"createdBy": "created_by",
|
|
3459
3470
|
"createdAt": "created_at",
|
|
3460
|
-
"updatedAt": "updated_at"
|
|
3471
|
+
"updatedAt": "updated_at",
|
|
3472
|
+
"firstName": "first_name",
|
|
3473
|
+
"lastName": "last_name"
|
|
3461
3474
|
}
|
|
3462
3475
|
} },
|
|
3463
3476
|
"keys": {
|
|
@@ -6606,6 +6619,8 @@ const PRESET_CATALOG = {
|
|
|
6606
6619
|
},
|
|
6607
6620
|
{ "name": "CalendarActions" },
|
|
6608
6621
|
{ "name": "CalendarAttendee" },
|
|
6622
|
+
{ "name": "CalendarAttendeeInput" },
|
|
6623
|
+
{ "name": "CalendarAttributes" },
|
|
6609
6624
|
{ "name": "CalendarController" },
|
|
6610
6625
|
{ "name": "CalendarControllerOptions" },
|
|
6611
6626
|
{ "name": "CalendarEvent" },
|
|
@@ -6613,12 +6628,15 @@ const PRESET_CATALOG = {
|
|
|
6613
6628
|
{ "name": "CalendarEventKind" },
|
|
6614
6629
|
{ "name": "CalendarEvents" },
|
|
6615
6630
|
{ "name": "CalendarEventStatus" },
|
|
6631
|
+
{ "name": "CalendarGrant" },
|
|
6632
|
+
{ "name": "CalendarGrantRole" },
|
|
6616
6633
|
{ "name": "CalendarImport" },
|
|
6617
6634
|
{ "name": "CalendarInfo" },
|
|
6618
6635
|
{ "name": "CalendarOccurrence" },
|
|
6619
6636
|
{ "name": "CalendarOptions" },
|
|
6620
6637
|
{ "name": "CalendarSnapshot" },
|
|
6621
6638
|
{ "name": "CalendarTransparency" },
|
|
6639
|
+
{ "name": "CalendarVisibility" },
|
|
6622
6640
|
{ "name": "EventCalendarEvent" },
|
|
6623
6641
|
{ "name": "EventCalendarOptions" },
|
|
6624
6642
|
{ "name": "EventCalendarResource" },
|
|
@@ -6680,6 +6698,16 @@ const PRESET_CATALOG = {
|
|
|
6680
6698
|
"optional": true,
|
|
6681
6699
|
"array": true
|
|
6682
6700
|
},
|
|
6701
|
+
"rdates": {
|
|
6702
|
+
"kind": "instant",
|
|
6703
|
+
"optional": true,
|
|
6704
|
+
"array": true
|
|
6705
|
+
},
|
|
6706
|
+
"visibility": {
|
|
6707
|
+
"kind": "enum",
|
|
6708
|
+
"values": ["public", "private"],
|
|
6709
|
+
"optional": true
|
|
6710
|
+
},
|
|
6683
6711
|
"subjectType": {
|
|
6684
6712
|
"kind": "string",
|
|
6685
6713
|
"optional": true,
|
|
@@ -6764,6 +6792,17 @@ const PRESET_CATALOG = {
|
|
|
6764
6792
|
"format": "date-time"
|
|
6765
6793
|
}
|
|
6766
6794
|
},
|
|
6795
|
+
"rdates": {
|
|
6796
|
+
"type": "array",
|
|
6797
|
+
"items": {
|
|
6798
|
+
"type": "string",
|
|
6799
|
+
"format": "date-time"
|
|
6800
|
+
}
|
|
6801
|
+
},
|
|
6802
|
+
"visibility": {
|
|
6803
|
+
"type": "string",
|
|
6804
|
+
"enum": ["public", "private"]
|
|
6805
|
+
},
|
|
6767
6806
|
"subjectType": { "type": ["string", "null"] },
|
|
6768
6807
|
"subjectId": { "type": ["string", "null"] },
|
|
6769
6808
|
"color": { "type": ["string", "null"] },
|
|
@@ -6847,6 +6886,16 @@ const PRESET_CATALOG = {
|
|
|
6847
6886
|
"optional": true,
|
|
6848
6887
|
"array": true
|
|
6849
6888
|
},
|
|
6889
|
+
"rdates": {
|
|
6890
|
+
"kind": "instant",
|
|
6891
|
+
"optional": true,
|
|
6892
|
+
"array": true
|
|
6893
|
+
},
|
|
6894
|
+
"visibility": {
|
|
6895
|
+
"kind": "enum",
|
|
6896
|
+
"values": ["public", "private"],
|
|
6897
|
+
"optional": true
|
|
6898
|
+
},
|
|
6850
6899
|
"subjectType": {
|
|
6851
6900
|
"kind": "string",
|
|
6852
6901
|
"optional": true,
|
|
@@ -6931,6 +6980,17 @@ const PRESET_CATALOG = {
|
|
|
6931
6980
|
"format": "date-time"
|
|
6932
6981
|
}
|
|
6933
6982
|
},
|
|
6983
|
+
"rdates": {
|
|
6984
|
+
"type": "array",
|
|
6985
|
+
"items": {
|
|
6986
|
+
"type": "string",
|
|
6987
|
+
"format": "date-time"
|
|
6988
|
+
}
|
|
6989
|
+
},
|
|
6990
|
+
"visibility": {
|
|
6991
|
+
"type": "string",
|
|
6992
|
+
"enum": ["public", "private"]
|
|
6993
|
+
},
|
|
6934
6994
|
"subjectType": { "type": ["string", "null"] },
|
|
6935
6995
|
"subjectId": { "type": ["string", "null"] },
|
|
6936
6996
|
"color": { "type": ["string", "null"] },
|
|
@@ -6964,6 +7024,7 @@ const PRESET_CATALOG = {
|
|
|
6964
7024
|
"type": "CalendarEvents",
|
|
6965
7025
|
"types": [
|
|
6966
7026
|
"calendar.created",
|
|
7027
|
+
"calendar.updated",
|
|
6967
7028
|
"calendar_event.created",
|
|
6968
7029
|
"calendar_event.updated",
|
|
6969
7030
|
"calendar_event.deleted"
|
|
@@ -11275,6 +11336,16 @@ const PRESET_CATALOG = {
|
|
|
11275
11336
|
"minLength": 1,
|
|
11276
11337
|
"maxLength": 200
|
|
11277
11338
|
},
|
|
11339
|
+
"firstName": {
|
|
11340
|
+
"kind": "string",
|
|
11341
|
+
"optional": true,
|
|
11342
|
+
"maxLength": 200
|
|
11343
|
+
},
|
|
11344
|
+
"lastName": {
|
|
11345
|
+
"kind": "string",
|
|
11346
|
+
"optional": true,
|
|
11347
|
+
"maxLength": 200
|
|
11348
|
+
},
|
|
11278
11349
|
"email": {
|
|
11279
11350
|
"kind": "string",
|
|
11280
11351
|
"optional": true,
|
|
@@ -11339,6 +11410,14 @@ const PRESET_CATALOG = {
|
|
|
11339
11410
|
"minLength": 1,
|
|
11340
11411
|
"maxLength": 200
|
|
11341
11412
|
},
|
|
11413
|
+
"firstName": {
|
|
11414
|
+
"type": "string",
|
|
11415
|
+
"maxLength": 200
|
|
11416
|
+
},
|
|
11417
|
+
"lastName": {
|
|
11418
|
+
"type": "string",
|
|
11419
|
+
"maxLength": 200
|
|
11420
|
+
},
|
|
11342
11421
|
"email": {
|
|
11343
11422
|
"type": "string",
|
|
11344
11423
|
"maxLength": 320
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { b as DbError } from "./result-DZeA5KS6.js";
|
|
2
|
-
import { r as AuthState } from "./resolve-
|
|
2
|
+
import { r as AuthState } from "./resolve-Bj1qD7Dy.js";
|
|
3
3
|
import { i as AuthorizationResource } from "./authorizer-B6X09otb.js";
|
|
4
|
-
import { t as AuthSession } from "./view-
|
|
5
|
-
import { r as GuardOptions } from "./respond-
|
|
4
|
+
import { t as AuthSession } from "./view-BvNA7EOC.js";
|
|
5
|
+
import { r as GuardOptions } from "./respond-BzRG-0qc.js";
|
|
6
6
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
7
|
//#region src/server/kit.d.ts
|
|
8
8
|
/**
|
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-XHoYDlRN.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 };
|
|
@@ -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 { 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-
|
|
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-BLP6XtoL.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-
|
|
5
|
-
import { i as discoverConfig, s as loadConfig } from "../cli/config-
|
|
6
|
-
import { i as parseEnv, n as configEnvironment } from "../cli/env-
|
|
7
|
-
import { s as schemaStampPath } from "../cli/content-mapper-
|
|
1
|
+
import { t as VERSION } from "../cli/version-C5RAWmrD.js";
|
|
2
|
+
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-Czfw7Iow.js";
|
|
3
|
+
import { t as loadSnapshot } from "../cli/snapshot-DdAP7LWO.js";
|
|
4
|
+
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-DUNJ4Pss.js";
|
|
5
|
+
import { i as discoverConfig, s as loadConfig } from "../cli/config-KvV-sLZL.js";
|
|
6
|
+
import { i as parseEnv, n as configEnvironment } from "../cli/env-BK0xKMeU.js";
|
|
7
|
+
import { s as schemaStampPath } from "../cli/content-mapper-ez_mT0d4.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-DE7SOBw-.js";
|
|
3
3
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
4
|
-
import { t as BetterSupabase } from "../define-
|
|
5
|
-
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-
|
|
6
|
-
import { r as GuardOptions } from "../respond-
|
|
4
|
+
import { t as BetterSupabase } from "../define-BLP6XtoL.js";
|
|
5
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BlDiY-ya.js";
|
|
6
|
+
import { r as GuardOptions } from "../respond-BzRG-0qc.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-D5WEvYtV.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
//#region src/mcp/dialect.d.ts
|
|
11
11
|
/**
|
package/dist/mcp/sdk/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "../../types-DFdg_4yN.js";
|
|
2
|
-
import { r as AuthState } from "../../resolve-
|
|
3
|
-
import { i as CredentialRef, r as CredentialProvider } from "../../provider-
|
|
2
|
+
import { r as AuthState } from "../../resolve-Bj1qD7Dy.js";
|
|
3
|
+
import { i as CredentialRef, r as CredentialProvider } from "../../provider-ClrIplXa.js";
|
|
4
4
|
import { i as SupabaseMcpScope, n as SupabaseMcpModule, r as SupabaseMcpPlatformModule, t as SupabaseMcpFeature } from "../../supabase-mcp-Z4vtsuoO.js";
|
|
5
|
-
import { t as BetterSupabase } from "../../define-
|
|
6
|
-
import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-
|
|
7
|
-
import { r as GuardOptions, t as AllowedCaller } from "../../respond-
|
|
5
|
+
import { t as BetterSupabase } from "../../define-BLP6XtoL.js";
|
|
6
|
+
import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-BlDiY-ya.js";
|
|
7
|
+
import { r as GuardOptions, t as AllowedCaller } from "../../respond-BzRG-0qc.js";
|
|
8
8
|
import { AuthInfo, CallToolResult, Icon, InputRequiredResult, OAuthTokenVerifier, RegisteredTool, ScopeChallengeHandler, ServerContext, StandardSchemaWithJSON, ToolAnnotations } from "@modelcontextprotocol/server";
|
|
9
9
|
//#region src/mcp/sdk/sdk.d.ts
|
|
10
10
|
interface McpAuthOptions extends ServerOptions, Omit<GuardOptions, "scopes"> {
|
package/dist/nestjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as RouteGuardOptions } from "../refusal-
|
|
1
|
+
import { n as RouteGuardOptions } from "../refusal-D_tklIEb.js";
|
|
2
2
|
import { t as Validated } from "../shared-CRRfQAKG.js";
|
|
3
|
-
import { l as ToNodeOptions } from "../index-
|
|
3
|
+
import { l as ToNodeOptions } from "../index-D1ckLbUM.js";
|
|
4
4
|
import { AnyEntry } from "@supabase/middleware";
|
|
5
5
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
6
6
|
//#region src/nestjs/index.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as SessionWatchStatus, t as SessionStatusBody } from "../../session-status-
|
|
1
|
+
import { i as SessionWatchStatus, t as SessionStatusBody } from "../../session-status-C4t7kbSn.js";
|
|
2
2
|
//#region src/next/client/session-watch.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Why the session changed: Auth ended it or banned the user, the user signed
|