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
package/dist/sqlite/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Bt as Executor } from "../types-DFdg_4yN.js";
|
|
2
2
|
import { c as LocalTablesOption, n as DataEngine, s as LiveEngineOptions } from "../data-engine-BWoz9lED.js";
|
|
3
|
-
import { i as fromSqliteError, n as SqliteDatabaseLike, o as CheckSqliteOptions, r as SqliteExecutorOptions, s as checkSqlite, t as SqliteContextLike } from "../executor-
|
|
3
|
+
import { i as fromSqliteError, n as SqliteDatabaseLike, o as CheckSqliteOptions, r as SqliteExecutorOptions, s as checkSqlite, t as SqliteContextLike } from "../executor-DNPm13a9.js";
|
|
4
4
|
//#region src/sqlite/engine.d.ts
|
|
5
5
|
/** A SQLite database that may report which tables changed. */
|
|
6
6
|
interface ChangingSqliteDatabase extends SqliteDatabaseLike {
|
package/dist/ssr/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as readSession, D as writeSession, E as sessionEncoding, S as pruneSessionChunks, T as sessionCookieName, _ as StoredSession, a as ResolveAuthOptions, b as clearSessionAtScopes, d as CookieOptions, f as CookieRecord, g as SessionEncoding, h as DEFAULT_SESSION_ENCODING, l as resolveAuth, m as CookieWrite, n as AuthResolver, p as CookieScope, r as AuthState, t as AuthResolution, u as AUTH_CACHE_HEADERS, v as WriteSessionOptions, w as serializeCookie, x as parseCookies, y as applyCookieWrites } from "../resolve-
|
|
2
|
-
import { n as toSession, t as AuthSession } from "../view-
|
|
3
|
-
import { r as MembershipClaim } from "../entitlements-
|
|
4
|
-
import { n as RefreshOutcome, r as refreshSession, t as RefreshOptions } from "../refresh-
|
|
5
|
-
import { a as sessionStatus, i as clearSessionCookies, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-
|
|
1
|
+
import { C as readSession, D as writeSession, E as sessionEncoding, S as pruneSessionChunks, T as sessionCookieName, _ as StoredSession, a as ResolveAuthOptions, b as clearSessionAtScopes, d as CookieOptions, f as CookieRecord, g as SessionEncoding, h as DEFAULT_SESSION_ENCODING, l as resolveAuth, m as CookieWrite, n as AuthResolver, p as CookieScope, r as AuthState, t as AuthResolution, u as AUTH_CACHE_HEADERS, v as WriteSessionOptions, w as serializeCookie, x as parseCookies, y as applyCookieWrites } from "../resolve-Bj1qD7Dy.js";
|
|
2
|
+
import { n as toSession, t as AuthSession } from "../view-BvNA7EOC.js";
|
|
3
|
+
import { r as MembershipClaim } from "../entitlements-Y-n4RGAd.js";
|
|
4
|
+
import { n as RefreshOutcome, r as refreshSession, t as RefreshOptions } from "../refresh-CCKB1Wa6.js";
|
|
5
|
+
import { a as sessionStatus, i as clearSessionCookies, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-B8RyuUXF.js";
|
|
6
6
|
export { AUTH_CACHE_HEADERS, type AuthResolution, type AuthResolver, type AuthSession, type AuthState, type ClearSessionCookiesOptions, type CookieOptions, type CookieRecord, type CookieScope, type CookieWrite, DEFAULT_SESSION_ENCODING, type MembershipClaim, type RefreshOptions, type RefreshOutcome, type ResolveAuthOptions, type SessionEncoding, type SessionStatus, type SessionStatusOptions, type StoredSession, type WriteSessionOptions, applyCookieWrites, authContext, clearSessionAtScopes, clearSessionCookies, parseCookies, pruneSessionChunks, readSession, refreshSession, resolveAuth, serializeCookie, sessionCookieName, sessionEncoding, sessionStatus, toSession, writeSession };
|
package/dist/storage/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { a as spansAllTenants } from "../plugin-AKwwe2gF.js";
|
|
|
8
8
|
import { n as decodeJwtPayload } from "../base64-B9Wlsdj7.js";
|
|
9
9
|
import { a as tenantClaimPaths, o as tenantFrom, s as tenantPathsFor } from "../claims-Bp9My7XP.js";
|
|
10
10
|
import { a as sqlString, i as sqlIdent, n as parseTemplate, r as slug, t as claimSql } from "../template-Drgg3v2J.js";
|
|
11
|
-
import { r as accessCheck } from "../access-sql-
|
|
11
|
+
import { r as accessCheck } from "../access-sql-CTDNuxRv.js";
|
|
12
12
|
import { t as fromStorageError } from "../errors-CyxMxzlu.js";
|
|
13
13
|
import { a as ttlSeconds, i as TTL, r as transformFor, t as checkVariants } from "../variants-Cy--Ub-a.js";
|
|
14
14
|
import { i as storageImageUrl, r as storageImageSrcSet } from "../image-url-_d7xYsXK.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as BlockTransport } from "./block-transport-DWZSJrwN.js";
|
|
2
|
-
import { g as SubscriberPolicy } from "./authorization-hooks-
|
|
2
|
+
import { g as SubscriberPolicy } from "./authorization-hooks-DtzreCAq.js";
|
|
3
3
|
//#region src/core/subject-readers.d.ts
|
|
4
4
|
interface SubjectReadersOptions {
|
|
5
5
|
/** The schema of the `subjects` module. Default `better_supabase`. */
|
|
@@ -86,6 +86,17 @@ interface SubjectPermission {
|
|
|
86
86
|
readonly rows?: string;
|
|
87
87
|
/** A uuid column of the subject row that grants the action to its user. */
|
|
88
88
|
readonly owner?: string;
|
|
89
|
+
/**
|
|
90
|
+
* A permission key the caller must hold as well, in the row's tenant (or on
|
|
91
|
+
* `scope`), whichever of `key`, `rows` and `owner` grants the action.
|
|
92
|
+
*/
|
|
93
|
+
readonly also?: string;
|
|
94
|
+
}
|
|
95
|
+
/** One table `search.watch[].through` crosses: from the `from` column to `to`. */
|
|
96
|
+
interface SearchWatchHop {
|
|
97
|
+
readonly table: string;
|
|
98
|
+
readonly from: string;
|
|
99
|
+
readonly to: string;
|
|
89
100
|
}
|
|
90
101
|
/**
|
|
91
102
|
* What the search index reads for a record type: `title` and `body` columns of
|
|
@@ -114,12 +125,15 @@ interface SubjectSearch {
|
|
|
114
125
|
/**
|
|
115
126
|
* Tables whose changes re-index the record: `key` is the column holding the
|
|
116
127
|
* record's id, or, with `via`, the column the record's `via` column points
|
|
117
|
-
* at.
|
|
128
|
+
* at. `through` follows `key` across further tables first, such as a junction
|
|
129
|
+
* table: each hop reads `to` from the rows of `table` whose `from` holds the
|
|
130
|
+
* previous value.
|
|
118
131
|
*/
|
|
119
132
|
readonly watch?: readonly {
|
|
120
133
|
readonly table: string;
|
|
121
134
|
readonly key: string;
|
|
122
135
|
readonly via?: string;
|
|
136
|
+
readonly through?: readonly SearchWatchHop[];
|
|
123
137
|
}[];
|
|
124
138
|
}
|
|
125
139
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
3
|
-
import { o as EventHub } from "./events-
|
|
4
|
-
import { r as AuthState } from "./resolve-
|
|
3
|
+
import { o as EventHub } from "./events-Cc9DDQWH.js";
|
|
4
|
+
import { r as AuthState } from "./resolve-Bj1qD7Dy.js";
|
|
5
5
|
import { a as ProblemFormat } from "./problem-DNwN8iGz.js";
|
|
6
|
-
import { _ as SupportAuthorize, i as AuthorizationHooks } from "./authorization-hooks-
|
|
7
|
-
import { t as BetterPostgres } from "./pool-
|
|
6
|
+
import { _ as SupportAuthorize, i as AuthorizationHooks } from "./authorization-hooks-DtzreCAq.js";
|
|
7
|
+
import { t as BetterPostgres } from "./pool-wjbAMqc1.js";
|
|
8
8
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
9
9
|
//#region src/auth/support.d.ts
|
|
10
10
|
type SupportEndedBy = "admin" | "expired" | "revoked";
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { b as DbError } from "../result-DZeA5KS6.js";
|
|
2
|
-
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-
|
|
3
|
-
import { mt as QuerySpec } from "../define-
|
|
2
|
+
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-Cc9DDQWH.js";
|
|
3
|
+
import { mt as QuerySpec } from "../define-BLP6XtoL.js";
|
|
4
4
|
import { tt as TemplateValues } from "../bucket-vc-QRrva.js";
|
|
5
|
-
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-
|
|
6
|
-
import { t as AuthSnapshot } from "../bind-
|
|
7
|
-
import { t as AuthSession } from "../view-
|
|
8
|
-
import { n as Controller } from "../controller-
|
|
9
|
-
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-
|
|
10
|
-
import { n as BlockOptions } from "../block-env-
|
|
5
|
+
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-B_DGdAEs.js";
|
|
6
|
+
import { t as AuthSnapshot } from "../bind-C54jD0r3.js";
|
|
7
|
+
import { t as AuthSession } from "../view-BvNA7EOC.js";
|
|
8
|
+
import { n as Controller } from "../controller-Cl6HmMBk.js";
|
|
9
|
+
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-Btn3czyz.js";
|
|
10
|
+
import { n as BlockOptions } from "../block-env-CM-LFfj4.js";
|
|
11
11
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
|
|
12
12
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
13
13
|
import { QueryClient } from "@tanstack/query-core";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
|
|
2
2
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
3
|
-
import { t as BetterSupabase } from "../define-
|
|
4
|
-
import { n as BetterServer } from "../server-types-
|
|
5
|
-
import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-
|
|
6
|
-
import { t as RefusalRedirects } from "../refusal-
|
|
7
|
-
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-
|
|
3
|
+
import { t as BetterSupabase } from "../define-BLP6XtoL.js";
|
|
4
|
+
import { n as BetterServer } from "../server-types-BlDiY-ya.js";
|
|
5
|
+
import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-Dxx3MT8m.js";
|
|
6
|
+
import { t as RefusalRedirects } from "../refusal-D_tklIEb.js";
|
|
7
|
+
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-GlxXiotm.js";
|
|
8
8
|
import { t as Validated } from "../shared-CRRfQAKG.js";
|
|
9
|
-
import { i as tagFor } from "../tags-
|
|
9
|
+
import { i as tagFor } from "../tags-Dg4Ywmqp.js";
|
|
10
10
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
11
11
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
12
12
|
//#region src/bridges/sveltekit.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as CacheTarget, Qt as CacheAdapter } from "./define-
|
|
1
|
+
import { $t as CacheTarget, Qt as CacheAdapter } from "./define-BLP6XtoL.js";
|
|
2
2
|
//#region src/core/tags.d.ts
|
|
3
3
|
interface TagOptions {
|
|
4
4
|
/** The tenant the read is scoped to; `"*"` is every tenant's reads. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
|
|
2
|
-
import { t as BetterSupabase, y as Db } from "../define-
|
|
2
|
+
import { t as BetterSupabase, y as Db } from "../define-BLP6XtoL.js";
|
|
3
3
|
import { n as DataEngine } from "../data-engine-BWoz9lED.js";
|
|
4
4
|
import { t as BetterQueryMeta } from "../invalidate-DMp4eqfF.js";
|
|
5
5
|
import { QueryClient, SkipToken } from "@tanstack/query-core";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
|
|
2
2
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
3
|
-
import { t as BetterSupabase } from "../define-
|
|
4
|
-
import { n as BetterServer } from "../server-types-
|
|
5
|
-
import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-
|
|
6
|
-
import { t as RefusalRedirects } from "../refusal-
|
|
7
|
-
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-
|
|
3
|
+
import { t as BetterSupabase } from "../define-BLP6XtoL.js";
|
|
4
|
+
import { n as BetterServer } from "../server-types-BlDiY-ya.js";
|
|
5
|
+
import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-Dxx3MT8m.js";
|
|
6
|
+
import { t as RefusalRedirects } from "../refusal-D_tklIEb.js";
|
|
7
|
+
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-GlxXiotm.js";
|
|
8
8
|
import { t as Validated } from "../shared-CRRfQAKG.js";
|
|
9
9
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
10
10
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as AuthSnapshot } from "./bind-
|
|
2
|
-
import { t as AuthSession } from "./view-
|
|
1
|
+
import { t as AuthSnapshot } from "./bind-C54jD0r3.js";
|
|
2
|
+
import { t as AuthSession } from "./view-BvNA7EOC.js";
|
|
3
3
|
//#region src/auth/tenant.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The active tenant of a user session: the `claim` claim (`tenant_id` by
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { $ as RecordRef, Bt as Executor, Ft as RequestContext, K as Insert, O as AnyFunctions, St as AnyPlugin, ht as Update, it as Row, k as AnyModels, ot as SchemaMeta, ut as TableKey } from "../types-DFdg_4yN.js";
|
|
3
|
-
import { o as EventHub } from "../events-
|
|
3
|
+
import { o as EventHub } from "../events-Cc9DDQWH.js";
|
|
4
4
|
import { c as InlineJwks, t as BetterSupabaseEnv } from "../index-NRMMhhEi.js";
|
|
5
|
-
import { n as AuthResolver } from "../resolve-
|
|
6
|
-
import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../provider-
|
|
5
|
+
import { n as AuthResolver } from "../resolve-Bj1qD7Dy.js";
|
|
6
|
+
import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../provider-ClrIplXa.js";
|
|
7
7
|
import { n as SqlClient } from "../executor-hGjrop3A.js";
|
|
8
8
|
import { a as BlockTransportMiddleware } from "../block-hooks-DZN2w69m.js";
|
|
9
9
|
import { a as SessionActor, o as SessionDelegation } from "../actor-CoveJgya.js";
|
|
10
10
|
import { P as QueueProvider } from "../types-Czq9Xtpa.js";
|
|
11
11
|
import { n as Embedder } from "../knowledge-F1IhRI4Q.js";
|
|
12
|
-
import { a as AuthorizationProvider } from "../authorization-
|
|
12
|
+
import { a as AuthorizationProvider } from "../authorization-BCG1v0iC.js";
|
|
13
13
|
import { o as StreamStore } from "../store-CpheI-lN.js";
|
|
14
14
|
import { o as Authorizer } from "../authorizer-B6X09otb.js";
|
|
15
|
-
import { Qt as CacheAdapter, Y as DbStats, t as BetterSupabase, y as Db } from "../define-
|
|
15
|
+
import { Qt as CacheAdapter, Y as DbStats, t as BetterSupabase, y as Db } from "../define-BLP6XtoL.js";
|
|
16
16
|
import { Q as StoragePath } from "../bucket-vc-QRrva.js";
|
|
17
|
-
import { a as ServerContext, c as ServerOptions } from "../server-types-
|
|
17
|
+
import { a as ServerContext, c as ServerOptions } from "../server-types-BlDiY-ya.js";
|
|
18
18
|
import { n as Impersonator } from "../impersonation-YTa9dZUv.js";
|
|
19
|
-
import { tn as AnyRecordBinding } from "../define-block-
|
|
19
|
+
import { tn as AnyRecordBinding } from "../define-block-DibVN37N.js";
|
|
20
20
|
import { n as Money } from "../money-BNRdJQzA.js";
|
|
21
|
-
import { i as EventSink, t as CloudEvent } from "../cloud-event-
|
|
22
|
-
import { i as AuthorizationHooks } from "../authorization-hooks-
|
|
23
|
-
import { s as SqlClaims, t as BetterPostgres } from "../pool-
|
|
24
|
-
import { C as SupportSessionStore } from "../support-
|
|
25
|
-
import { r as GuardOptions } from "../respond-
|
|
21
|
+
import { i as EventSink, t as CloudEvent } from "../cloud-event-DcJwder2.js";
|
|
22
|
+
import { i as AuthorizationHooks } from "../authorization-hooks-DtzreCAq.js";
|
|
23
|
+
import { s as SqlClaims, t as BetterPostgres } from "../pool-wjbAMqc1.js";
|
|
24
|
+
import { C as SupportSessionStore } from "../support-D7CMbhRT.js";
|
|
25
|
+
import { r as GuardOptions } from "../respond-BzRG-0qc.js";
|
|
26
26
|
import { l as Transcriber, s as NoteTaker, u as TranscriberInput } from "../recordings-BBSJt_YV.js";
|
|
27
|
-
import { n as Controller } from "../controller-
|
|
28
|
-
import { c as AiTaskRunner, o as AiTaskRun, r as AiTask } from "../ai-schedules-
|
|
29
|
-
import {
|
|
27
|
+
import { n as Controller } from "../controller-Cl6HmMBk.js";
|
|
28
|
+
import { c as AiTaskRunner, o as AiTaskRun, r as AiTask } from "../ai-schedules-yGZH-vQb.js";
|
|
29
|
+
import { Ut as Generator, Zt as GeneratorInput, en as GeneratorModel, un as ResolvedConfig } from "../context-BFEX0b7H.js";
|
|
30
30
|
import { r as WebhookInput } from "../signatures-Dkx9OE8j.js";
|
|
31
31
|
import { n as Payment, o as PaymentProvider } from "../payments-BYcN34Fp.js";
|
|
32
32
|
import { t as NotificationChannel } from "../channel-JcMd5lNP.js";
|
|
33
33
|
import { a as DeliveryTransport } from "../delivery-n6lZGuGx.js";
|
|
34
34
|
import { l as TaxProvider, r as TaxAddress } from "../tax-DPShHual.js";
|
|
35
35
|
import { p as ShippingProvider, s as ShipmentAddress } from "../carrier-KzeYXVrW.js";
|
|
36
|
-
import { L as WorkflowGraph, c as GraphCompiler, i as BuilderStarter, r as BuilderStartCall } from "../types-
|
|
36
|
+
import { L as WorkflowGraph, c as GraphCompiler, i as BuilderStarter, r as BuilderStartCall } from "../types-BdaBfYIw.js";
|
|
37
37
|
import { O as IncomingDestination, f as WebhookSecretStore, o as WebhookSigner, v as WebhookTransport } from "../signers-BKgmVh6A.js";
|
|
38
38
|
import { t as ApiModel } from "../model-hwpvole9.js";
|
|
39
39
|
import { l as VersionOf, t as AnyDocumentFormat } from "../format-u-65igKI.js";
|
package/dist/testing/index.js
CHANGED
|
@@ -6,8 +6,8 @@ import { t as temporal } from "../temporal-required-DcLhnDhQ.js";
|
|
|
6
6
|
import { a as ok } from "../result-ntFBW2p2.js";
|
|
7
7
|
import { t as BetterSupabase } from "../define-D-dLADd5.js";
|
|
8
8
|
import { a as toBase64Url, r as fromBase64, t as base64ToText } from "../base64-B9Wlsdj7.js";
|
|
9
|
-
import { c as resolveConfig } from "../config-
|
|
10
|
-
import { a as isScopeName, c as templateFunctions, l as templatePlaceholders, n as TEMPLATE_PLACEHOLDERS, s as scopeProblems, u as templateProblems } from "../access-sql-
|
|
9
|
+
import { c as resolveConfig } from "../config-CTeR7XHK.js";
|
|
10
|
+
import { a as isScopeName, c as templateFunctions, l as templatePlaceholders, n as TEMPLATE_PLACEHOLDERS, s as scopeProblems, u as templateProblems } from "../access-sql-CTDNuxRv.js";
|
|
11
11
|
import { r as TRACKING_STATUSES, t as LABEL_FORMATS } from "../statuses-zRcc2TeZ.js";
|
|
12
12
|
import { i as seedLite, n as loadLite, r as migrateLite, t as LITE_INSTALL } from "../runtime-CoKxZibd.js";
|
|
13
13
|
import { t as buildApiModel } from "../build-CH2N3Yf0.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { D as ValidationIssue, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { $ as RecordRef } from "./types-DFdg_4yN.js";
|
|
3
3
|
import { o as FilterField } from "./filter-query-BXLs72G9.js";
|
|
4
|
-
import { cn as RecordBindingResult, hn as TimelineItem, in as RecordBindingData } from "./define-block-
|
|
5
|
-
import { A as BindingBlocks, F as LoadBindingsOptions, M as BindingName, N as BindingOf, P as BindingSource, V as PermissionSet, _ as RecordTypeBlocks, g as RecordType, h as RecordCan } from "./index-
|
|
6
|
-
import { c as ListParseOptions, m as ListSearchParams } from "./list-query-
|
|
4
|
+
import { cn as RecordBindingResult, hn as TimelineItem, in as RecordBindingData } from "./define-block-DibVN37N.js";
|
|
5
|
+
import { A as BindingBlocks, F as LoadBindingsOptions, M as BindingName, N as BindingOf, P as BindingSource, V as PermissionSet, _ as RecordTypeBlocks, g as RecordType, h as RecordCan } from "./index-BfYDY6eh.js";
|
|
6
|
+
import { c as ListParseOptions, m as ListSearchParams } from "./list-query-XHoYDlRN.js";
|
|
7
7
|
//#region src/records/list.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* How a binding fills a list column: `count` is how many rows it has (the
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { D as ValidationIssue, b as DbError, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { D as AccessTopicPolicy, O as AnyFunctions, it as Row, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
|
|
3
|
-
import { t as AuthorizationFunctions } from "./authorization-
|
|
4
|
-
import { t as BetterSupabase } from "./define-
|
|
3
|
+
import { t as AuthorizationFunctions } from "./authorization-BCG1v0iC.js";
|
|
4
|
+
import { t as BetterSupabase } from "./define-BLP6XtoL.js";
|
|
5
5
|
import { et as TemplateParams, tt as TemplateValues } from "./bucket-vc-QRrva.js";
|
|
6
|
-
import { g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, m as Subscriber } from "./authorization-hooks-
|
|
6
|
+
import { g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, m as Subscriber } from "./authorization-hooks-DtzreCAq.js";
|
|
7
7
|
import { t as RealtimeStatus } from "./realtime-status-BhNkb-Ow.js";
|
|
8
8
|
import { RealtimeChannel, SupabaseClient } from "@supabase/supabase-js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -3,7 +3,7 @@ import { a as ok, r as err, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
|
3
3
|
import { t as toApp } from "./casing-DdFWEtqr.js";
|
|
4
4
|
import { a as tenantClaimPaths } from "./claims-Bp9My7XP.js";
|
|
5
5
|
import { a as sqlString, i as sqlIdent, n as parseTemplate, r as slug, t as claimSql } from "./template-Drgg3v2J.js";
|
|
6
|
-
import { a as isScopeName, i as fillTemplate, o as resolveProviderSql, r as accessCheck } from "./access-sql-
|
|
6
|
+
import { a as isScopeName, i as fillTemplate, o as resolveProviderSql, r as accessCheck } from "./access-sql-CTDNuxRv.js";
|
|
7
7
|
import { t as topicStatus } from "./realtime-status-asHvhiOh.js";
|
|
8
8
|
import { t as refreshRealtimeAuth } from "./auth-DyF_LRxd.js";
|
|
9
9
|
import { t as joinTopic } from "./channels-CfcFPuo_.js";
|
|
@@ -3,13 +3,13 @@ import { T as ErrorMapper, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
|
3
3
|
import { t as StandardSchemaV1 } from "./standard-DBV730sF.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "./block-fields-BE7pInWZ.js";
|
|
5
5
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
6
|
-
import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-
|
|
6
|
+
import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-ClrIplXa.js";
|
|
7
7
|
import { r as BlockTemporalOptions } from "./block-helpers-CRpAHrp_.js";
|
|
8
8
|
import { t as BlockTransport } from "./block-transport-DWZSJrwN.js";
|
|
9
9
|
import { n as BlockHooks } from "./block-hooks-DZN2w69m.js";
|
|
10
10
|
import { h as FilterQuery, l as FilterFieldType } from "./filter-query-BXLs72G9.js";
|
|
11
11
|
import { f as WorkflowStarter, g as Workflows, p as WorkflowSubject, r as WorkflowRunMode, s as WorkflowSchedule } from "./workflows-B0ZPAQu0.js";
|
|
12
|
-
import { i as AuthorizationHooks } from "./authorization-hooks-
|
|
12
|
+
import { i as AuthorizationHooks } from "./authorization-hooks-DtzreCAq.js";
|
|
13
13
|
//#region src/blocks/workflow-editor/graph.d.ts
|
|
14
14
|
type WorkflowNodeKind = "trigger" | "step" | "sleep" | "approval" | "condition";
|
|
15
15
|
type WorkflowConditionOperator = "equals" | "notEquals" | "exists" | "truthy" | "greaterThan" | "lessThan" | "contains";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { k as DesignErrorCode } from "./index-
|
|
1
|
+
import { Ci as Preset, Sr as AppOnDeleteAction, _r as AppColumnAccess, br as AppColumnType, jr as AppTableVersions, yr as AppColumnFormat } from "./context-BFEX0b7H.js";
|
|
2
|
+
import { k as DesignErrorCode } from "./index-8wOL81rB.js";
|
|
3
3
|
//#region src/create/issue.d.ts
|
|
4
4
|
/** Where in the project pipeline an issue came from. */
|
|
5
5
|
type IssueSource = "design" | "rules" | "sql" | "verifier" | "plan";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
3
3
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
4
|
-
import { i as CredentialRef, r as CredentialProvider } from "./provider-
|
|
4
|
+
import { i as CredentialRef, r as CredentialProvider } from "./provider-ClrIplXa.js";
|
|
5
5
|
import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-CRpAHrp_.js";
|
|
6
6
|
import { t as BlockTransport } from "./block-transport-DWZSJrwN.js";
|
|
7
7
|
import { n as BlockHooks } from "./block-hooks-DZN2w69m.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T as ErrorMapper, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
|
-
import { c as SetCredentialOptions, i as CredentialRef, r as CredentialProvider } from "./provider-
|
|
2
|
+
import { c as SetCredentialOptions, i as CredentialRef, r as CredentialProvider } from "./provider-ClrIplXa.js";
|
|
3
3
|
import { t as BlockTransport } from "./block-transport-DWZSJrwN.js";
|
|
4
4
|
//#region src/credentials/vault.d.ts
|
|
5
5
|
/** How a request the third party sends is signed with the stored secret. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CredentialSubject, r as CredentialProvider } from "../provider-
|
|
1
|
+
import { a as CredentialSubject, r as CredentialProvider } from "../provider-ClrIplXa.js";
|
|
2
2
|
//#region src/vercel-connect/vercel-connect.d.ts
|
|
3
3
|
interface ConnectTokenParams {
|
|
4
4
|
subject: CredentialSubject;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { f as Result } from "./result-DZeA5KS6.js";
|
|
3
3
|
import { O as AnyFunctions, it as Row, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
|
|
4
|
-
import { t as BetterSupabase } from "./define-
|
|
4
|
+
import { t as BetterSupabase } from "./define-BLP6XtoL.js";
|
|
5
5
|
import { n as VerifyOptions, r as WebhookInput, t as VerifiedWebhook } from "./signatures-Dkx9OE8j.js";
|
|
6
6
|
//#region src/blocks/webhooks/verify.d.ts
|
|
7
7
|
/** The `Stripe-Signature` header for `body`, for tests and local replays. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as DbError } from "./result-DZeA5KS6.js";
|
|
2
|
-
import { i as InvalidReason, r as AuthState } from "./resolve-
|
|
2
|
+
import { i as InvalidReason, r as AuthState } from "./resolve-Bj1qD7Dy.js";
|
|
3
3
|
import { a as SessionActor, o as SessionDelegation } from "./actor-CoveJgya.js";
|
|
4
4
|
import { n as Impersonator } from "./impersonation-YTa9dZUv.js";
|
|
5
5
|
import { n as AmrEntry, t as Aal } from "./mfa-oIOYTpvc.js";
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { b as DbError } from "../result-DZeA5KS6.js";
|
|
2
|
-
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-
|
|
3
|
-
import { mt as QuerySpec } from "../define-
|
|
2
|
+
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-Cc9DDQWH.js";
|
|
3
|
+
import { mt as QuerySpec } from "../define-BLP6XtoL.js";
|
|
4
4
|
import { tt as TemplateValues } from "../bucket-vc-QRrva.js";
|
|
5
|
-
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-
|
|
6
|
-
import { t as AuthSnapshot } from "../bind-
|
|
7
|
-
import { t as AuthSession } from "../view-
|
|
8
|
-
import { n as Controller } from "../controller-
|
|
9
|
-
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-
|
|
10
|
-
import { n as BlockOptions } from "../block-env-
|
|
5
|
+
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-B_DGdAEs.js";
|
|
6
|
+
import { t as AuthSnapshot } from "../bind-C54jD0r3.js";
|
|
7
|
+
import { t as AuthSession } from "../view-BvNA7EOC.js";
|
|
8
|
+
import { n as Controller } from "../controller-Cl6HmMBk.js";
|
|
9
|
+
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-Btn3czyz.js";
|
|
10
|
+
import { n as BlockOptions } from "../block-env-CM-LFfj4.js";
|
|
11
11
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
|
|
12
|
-
import { t as SupportView } from "../support-view-
|
|
12
|
+
import { t as SupportView } from "../support-view-CIDXF3_H.js";
|
|
13
13
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
14
14
|
import { QueryClient } from "@tanstack/query-core";
|
|
15
15
|
import { App, ComputedRef, MaybeRefOrGetter, Ref, ShallowRef } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-
|
|
1
|
+
import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-B_DGdAEs.js";
|
|
2
2
|
//#region src/realtime/watch-topic.d.ts
|
|
3
3
|
interface TopicWatch {
|
|
4
4
|
readonly onMessage: (event: string, payload: unknown) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as WorkflowGraph, i as BuilderStarter, l as NodeRunRecord } from "../../types-
|
|
2
|
-
import { a as GraphSubject, i as GraphStepCall, o as approvalToken, r as GraphRuntime, s as executeGraph, t as GraphApprovalCall } from "../../executor-
|
|
3
|
-
import { s as WorkflowFn } from "../../workflow-sdk-
|
|
1
|
+
import { L as WorkflowGraph, i as BuilderStarter, l as NodeRunRecord } from "../../types-BdaBfYIw.js";
|
|
2
|
+
import { a as GraphSubject, i as GraphStepCall, o as approvalToken, r as GraphRuntime, s as executeGraph, t as GraphApprovalCall } from "../../executor-C-Ox9eKq.js";
|
|
3
|
+
import { s as WorkflowFn } from "../../workflow-sdk-BNsZrcVg.js";
|
|
4
4
|
import { World } from "@workflow/world";
|
|
5
5
|
//#region src/workflow-sdk/builder/builder.d.ts
|
|
6
6
|
/** The env flag the Workflow SDK reads before it starts or runs dynamic source. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { _ as workflowContext, a as StartOnEventOptions, c as WorkflowRunAs, d as authorizeHook, f as contextAttributes, g as startOnEvent, h as startFor, i as StartForOptions, l as WorkflowRunAsFor, m as protectWebHandler, n as HookForbiddenError, o as WorkflowContextOptions, p as hookMetadata, r as ProtectWebHandlerOptions, s as WorkflowFn, t as AuthorizeHookOptions, u as WorkflowStarterOptions, v as workflowStarter } from "../workflow-sdk-
|
|
2
|
+
import { _ as workflowContext, a as StartOnEventOptions, c as WorkflowRunAs, d as authorizeHook, f as contextAttributes, g as startOnEvent, h as startFor, i as StartForOptions, l as WorkflowRunAsFor, m as protectWebHandler, n as HookForbiddenError, o as WorkflowContextOptions, p as hookMetadata, r as ProtectWebHandlerOptions, s as WorkflowFn, t as AuthorizeHookOptions, u as WorkflowStarterOptions, v as workflowStarter } from "../workflow-sdk-BNsZrcVg.js";
|
|
3
3
|
//#region src/workflow-sdk/approval-waiter.d.ts
|
|
4
4
|
/** How `approvalWaiter.wait` ended. */
|
|
5
5
|
type ApprovalWaitResult<P> = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
2
2
|
import { o as problemResponse } from "../../problem-Bf0cJ7tk.js";
|
|
3
3
|
import { i as sqlIdent } from "../../template-Drgg3v2J.js";
|
|
4
|
-
import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-
|
|
4
|
+
import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-CaEw822d.js";
|
|
5
5
|
import { n as hmacHex, r as timingSafeEqual } from "../../hmac-B3CTTlfv.js";
|
|
6
6
|
import { t as watchPoolErrors } from "../../pool-errors-JUBcGrre.js";
|
|
7
7
|
import { n as memoized } from "../../optional-peer-C1NbBRJm.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ft as RequestContext } from "./types-DFdg_4yN.js";
|
|
2
2
|
import { f as WorkflowStarter, l as WorkflowStartCall, p as WorkflowSubject, t as WorkflowPrincipalKind } from "./workflows-B0ZPAQu0.js";
|
|
3
|
-
import { a as OutboxEvent, o as OutboxHandler } from "./outbox-
|
|
3
|
+
import { a as OutboxEvent, o as OutboxHandler } from "./outbox-DxZgoKwp.js";
|
|
4
4
|
import { Hook, Run } from "workflow/api";
|
|
5
5
|
import { World } from "@workflow/world";
|
|
6
6
|
//#region src/workflow-sdk/workflow-sdk.d.ts
|
|
@@ -60,6 +60,10 @@ function extraFieldsArg(columns) {
|
|
|
60
60
|
drop: (fn, types) => `drop function if exists ${fn}(${on ? types : [types, "jsonb"].filter((type) => type !== "").join(", ")});`
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
+
/** Takes the default grants on later objects in a schema from every client role. */
|
|
64
|
+
const revokeDefaults = (schema) => `alter default privileges in schema ${schema} revoke all on tables from public, anon, authenticated;
|
|
65
|
+
alter default privileges in schema ${schema} revoke all on sequences from public, anon, authenticated;
|
|
66
|
+
alter default privileges in schema ${schema} revoke all on functions from public, anon, authenticated;`;
|
|
63
67
|
const SCHEMA = `create schema if not exists better_supabase;
|
|
64
68
|
grant usage on schema better_supabase to anon, authenticated, service_role;`;
|
|
65
69
|
/**
|
|
@@ -92,7 +96,8 @@ function schemaPreamble(ctx) {
|
|
|
92
96
|
if (ctx.schemaName === "better_supabase") return SCHEMA;
|
|
93
97
|
return `${SCHEMA}
|
|
94
98
|
create schema if not exists ${ctx.schema};
|
|
95
|
-
grant usage on schema ${ctx.schema} to anon, authenticated, service_role
|
|
99
|
+
grant usage on schema ${ctx.schema} to anon, authenticated, service_role;
|
|
100
|
+
${revokeDefaults(ctx.schema)}`;
|
|
96
101
|
}
|
|
97
102
|
/** A claim from the top level of the token, then `app_metadata`. */
|
|
98
103
|
function jwtClaim(name) {
|
|
@@ -516,7 +521,7 @@ ${checks.map((check) => {
|
|
|
516
521
|
}).join("\n\n")}\n`;
|
|
517
522
|
}
|
|
518
523
|
/** SQL that takes every privilege on a table from `anon` and `authenticated`. */
|
|
519
|
-
const revokeTable = (table) => `revoke all on ${table} from anon, authenticated;`;
|
|
524
|
+
const revokeTable = (table) => `revoke all on ${table} from public, anon, authenticated;`;
|
|
520
525
|
/**
|
|
521
526
|
* One policy per command for rows `authenticated` owns. A permissive `for all`
|
|
522
527
|
* policy would also grant writes on its own, so the read-only actor check
|
|
@@ -593,7 +598,7 @@ begin
|
|
|
593
598
|
continue;
|
|
594
599
|
end;
|
|
595
600
|
execute format('alter table %I.%I enable row level security', v_schema, v_part);
|
|
596
|
-
execute format('revoke all on %I.%I from anon, authenticated', v_schema, v_part);
|
|
601
|
+
execute format('revoke all on %I.%I from public, anon, authenticated', v_schema, v_part);
|
|
597
602
|
v_made := v_made + 1;
|
|
598
603
|
end loop;
|
|
599
604
|
return v_made;
|
|
@@ -660,7 +665,7 @@ begin
|
|
|
660
665
|
if (select c.relkind from pg_catalog.pg_class c where c.oid = ${sqlString(table)}::regclass) = 'p' then
|
|
661
666
|
create table if not exists ${fallback} partition of ${table} default;
|
|
662
667
|
alter table ${fallback} enable row level security;
|
|
663
|
-
revoke all on ${fallback} from anon, authenticated;
|
|
668
|
+
revoke all on ${fallback} from public, anon, authenticated;
|
|
664
669
|
end if;
|
|
665
670
|
end;
|
|
666
671
|
$$;`;
|
|
@@ -1044,6 +1049,22 @@ const OPTIONAL_MODULE_PERMISSIONS = {
|
|
|
1044
1049
|
update: "tenant",
|
|
1045
1050
|
delete: "tenant"
|
|
1046
1051
|
},
|
|
1052
|
+
tasks: {
|
|
1053
|
+
create: "tenant",
|
|
1054
|
+
delete: "tenant"
|
|
1055
|
+
},
|
|
1056
|
+
employees: {
|
|
1057
|
+
create: "tenant",
|
|
1058
|
+
contractsRead: "tenant",
|
|
1059
|
+
contractsWrite: "tenant",
|
|
1060
|
+
privateDetailsWrite: "tenant"
|
|
1061
|
+
},
|
|
1062
|
+
hiring: {
|
|
1063
|
+
create: "tenant",
|
|
1064
|
+
jobsCreate: "tenant",
|
|
1065
|
+
jobsUpdate: "tenant",
|
|
1066
|
+
score: "tenant"
|
|
1067
|
+
},
|
|
1047
1068
|
teams: {
|
|
1048
1069
|
create: "tenant",
|
|
1049
1070
|
update: "tenant",
|
package/dist/yjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../result-DZeA5KS6.js";
|
|
2
|
-
import { c as RealtimeClient, r as PresenceMember } from "../topic-
|
|
2
|
+
import { c as RealtimeClient, r as PresenceMember } from "../topic-B_DGdAEs.js";
|
|
3
3
|
import { a as DocumentSuggestion, d as OpenedDocument, l as Documents, r as DocumentRef, t as DecidedSuggestion } from "../documents-Cup1rpjF.js";
|
|
4
4
|
//#region src/yjs/yjs.d.ts
|
|
5
5
|
type PresenceState = Readonly<Record<string, unknown>>;
|
package/dist/yjs/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { n as isRecord } from "../guards-6F2bCtQR.js";
|
|
|
2
2
|
import { a as ok, r as err, t as AsyncResult } from "../result-ntFBW2p2.js";
|
|
3
3
|
import { i as toBase64, r as fromBase64 } from "../base64-B9Wlsdj7.js";
|
|
4
4
|
import { t as importOptionalPeer } from "../optional-peer-C1NbBRJm.js";
|
|
5
|
-
import { t as defineTopic } from "../topic-
|
|
5
|
+
import { t as defineTopic } from "../topic-DnsNG4Kj.js";
|
|
6
6
|
//#region src/yjs/yjs.ts
|
|
7
7
|
function isYjs(value) {
|
|
8
8
|
return isRecord(value) && typeof value["applyUpdate"] === "function" && typeof value["mergeUpdates"] === "function";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-supabase",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "Strongly typed Supabase: generated schema, typed repositories, plugins, auth glue, framework integrations and the better-supabase CLI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -903,6 +903,8 @@
|
|
|
903
903
|
"@supabase/config": "0.11.1",
|
|
904
904
|
"@supabase/lite": "0.11.0",
|
|
905
905
|
"@supabase/mcp-server-supabase": "0.14.0",
|
|
906
|
+
"@supabase/pg-delta": "1.0.0-alpha.60",
|
|
907
|
+
"@supabase/pg-topo": "1.0.0-alpha.8",
|
|
906
908
|
"@supabase/postgrest-typegen": "0.6.0",
|
|
907
909
|
"@supabase/supabase-js": "2.118.0",
|
|
908
910
|
"@sveltejs/kit": "3.1.0",
|
|
@@ -993,6 +995,8 @@
|
|
|
993
995
|
"@supabase/config": ">=0.9.0 <0.12",
|
|
994
996
|
"@supabase/lite": ">=0.11.0 <0.12",
|
|
995
997
|
"@supabase/mcp-server-supabase": ">=0.13.0 <0.15",
|
|
998
|
+
"@supabase/pg-delta": ">=1.0.0-alpha.60 <1.0.0",
|
|
999
|
+
"@supabase/pg-topo": ">=1.0.0-alpha.8 <1.0.0",
|
|
996
1000
|
"@supabase/postgrest-typegen": ">=0.6.0 <0.7",
|
|
997
1001
|
"@supabase/supabase-js": "^2.118.0",
|
|
998
1002
|
"@sveltejs/kit": ">=2 <4",
|
|
@@ -1081,6 +1085,12 @@
|
|
|
1081
1085
|
"@supabase/mcp-server-supabase": {
|
|
1082
1086
|
"optional": true
|
|
1083
1087
|
},
|
|
1088
|
+
"@supabase/pg-delta": {
|
|
1089
|
+
"optional": true
|
|
1090
|
+
},
|
|
1091
|
+
"@supabase/pg-topo": {
|
|
1092
|
+
"optional": true
|
|
1093
|
+
},
|
|
1084
1094
|
"@supabase/postgrest-typegen": {
|
|
1085
1095
|
"optional": true
|
|
1086
1096
|
},
|