better-supabase 0.15.1 → 0.16.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/{ai-schedules-D_Hz-ik5.d.ts → ai-schedules-BmkARmQ9.d.ts} +1 -1
- package/dist/{api-DxAPqMrE.d.ts → api-hHwieEfz.d.ts} +1 -1
- package/dist/{app-tables-CbCFSXLG.d.ts → app-tables-yMQ4ubyY.d.ts} +1 -1
- package/dist/astro/index.d.ts +4 -4
- package/dist/{auth-module-BEFESDC4.js → auth-module-BbmX-N4L.js} +12 -4
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-h5jre2K0.d.ts → bind-JGCPGUJh.d.ts} +4 -4
- package/dist/{block-env-BrfRvPrj.d.ts → block-env-y65GF_px.d.ts} +4 -4
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/activities/index.d.ts +1 -1
- package/dist/blocks/agents/index.d.ts +1 -1
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-chat/index.d.ts +4 -4
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.d.ts +1 -1
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/api-keys/index.d.ts +2 -2
- package/dist/blocks/approvals/index.d.ts +1 -1
- package/dist/blocks/assets/index.d.ts +1 -1
- package/dist/blocks/assignment/index.d.ts +1 -1
- package/dist/blocks/attachments/index.d.ts +2 -2
- package/dist/blocks/audit/index.d.ts +5 -5
- package/dist/blocks/automations/index.d.ts +3 -3
- package/dist/blocks/billable-time/index.d.ts +1 -1
- package/dist/blocks/billing/index.d.ts +3 -3
- package/dist/blocks/bookings/index.d.ts +2 -2
- package/dist/blocks/bulk/index.d.ts +1 -1
- package/dist/blocks/calendar/index.d.ts +2 -2
- package/dist/blocks/catalog/index.d.ts +1 -1
- package/dist/blocks/channels/index.d.ts +1 -1
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/comments/index.d.ts +4 -4
- package/dist/blocks/compliance/index.d.ts +1 -1
- package/dist/blocks/connectors/index.d.ts +1 -1
- package/dist/blocks/contacts/index.d.ts +1 -1
- package/dist/blocks/content/index.d.ts +1 -1
- package/dist/blocks/contracts/index.d.ts +1 -1
- package/dist/blocks/courses/index.d.ts +1 -1
- package/dist/blocks/created-by/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/data-lifecycle/index.d.ts +1 -1
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/dispatch/index.d.ts +1 -1
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/donations/index.d.ts +1 -1
- package/dist/blocks/drive/index.d.ts +1 -1
- package/dist/blocks/employees/index.d.ts +2 -2
- package/dist/blocks/enrichment/index.d.ts +1 -1
- package/dist/blocks/enrollments/index.d.ts +1 -1
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/expenses/index.d.ts +1 -1
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/forecasts/index.d.ts +1 -1
- package/dist/blocks/forms/index.d.ts +2 -2
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/guests/index.d.ts +1 -1
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/identities/index.d.ts +1 -1
- package/dist/blocks/imports/index.d.ts +1 -1
- package/dist/blocks/inbox/index.d.ts +5 -5
- package/dist/blocks/incidents/index.d.ts +1 -1
- package/dist/blocks/index.d.ts +2 -2
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/invoices/index.d.ts +1 -1
- 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 +1 -1
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/ledger/index.d.ts +1 -1
- package/dist/blocks/mail-sync/index.d.ts +1 -1
- 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 +4 -4
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +1 -1
- package/dist/blocks/notifications/index.d.ts +4 -4
- package/dist/blocks/numbering/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.d.ts +1 -1
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/orders/index.d.ts +2 -2
- package/dist/blocks/organizations/index.d.ts +2 -2
- package/dist/blocks/outbox/index.d.ts +1 -1
- package/dist/blocks/passes/index.d.ts +1 -1
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/posts/index.d.ts +1 -1
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/push/index.d.ts +2 -2
- package/dist/blocks/queue/index.d.ts +29 -2
- package/dist/blocks/queue/index.js +1 -1
- package/dist/blocks/quotes/index.d.ts +1 -1
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +4 -4
- package/dist/blocks/relations/index.d.ts +1 -1
- package/dist/blocks/reminders/index.d.ts +1 -1
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/saved-views/index.d.ts +3 -3
- package/dist/blocks/scores/index.d.ts +1 -1
- package/dist/blocks/search/index.d.ts +3 -3
- package/dist/blocks/security-events/index.d.ts +1 -1
- package/dist/blocks/segments/index.d.ts +1 -1
- package/dist/blocks/sequences/index.d.ts +1 -1
- package/dist/blocks/service-accounts/index.d.ts +1 -1
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/shipments/index.d.ts +1 -1
- package/dist/blocks/signatures/index.d.ts +1 -1
- package/dist/blocks/signing-keys/index.d.ts +1 -1
- package/dist/blocks/sla/index.d.ts +1 -1
- package/dist/blocks/sso/index.d.ts +1 -1
- package/dist/blocks/state-machine/index.d.ts +1 -1
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tasks/index.d.ts +2 -2
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/templates/index.d.ts +1 -1
- package/dist/blocks/time-tracking/index.d.ts +1 -1
- package/dist/blocks/timeline/index.d.ts +3 -3
- package/dist/blocks/trash/index.d.ts +1 -1
- 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 +1 -1
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/webhooks/index.d.ts +2 -2
- package/dist/blocks/webhooks/index.js +1 -1
- package/dist/blocks/workflow-editor/index.d.ts +4 -4
- package/dist/blocks/workflows/index.d.ts +4 -4
- package/dist/{bucket-CiNi8sIw.d.ts → bucket-vc-QRrva.d.ts} +40 -1
- package/dist/cli/add-Bfb_ISrO.js +1 -0
- package/dist/cli/{add-DNOL9PDu.js → add-D7TkPdco.js} +9 -9
- package/dist/cli/{add-C04vkBk9.js → add-I8OW-qJH.js} +2 -2
- package/dist/cli/{backfill-VFzf-TJP.js → backfill-DIz5DnlQ.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-Bn7WUca5.js → blocks-Bp5RPoft.js} +1 -1
- package/dist/cli/{blocks-Cb7mILFU.js → blocks-xk-SE8gS.js} +1 -1
- package/dist/cli/{cache-DkplpIGe.js → cache-AznIssjI.js} +1 -1
- package/dist/cli/{codemod-BbaE5dL_.js → codemod-Aewxza6i.js} +1 -1
- package/dist/cli/{content-mapper-Cdx6arxu.js → content-mapper-DCrz6OIv.js} +2 -2
- package/dist/cli/{doctor-C-VO-QQ2.js → doctor-DkOSLPEQ.js} +13 -13
- package/dist/cli/{gen-yRHOHW1b.js → gen-CFkYUnWq.js} +10 -10
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-BOw0SX65.js → init-CHj9ad4S.js} +5 -5
- package/dist/cli/{live-Lmg-hYyO.js → live-DGdLR41j.js} +2 -2
- package/dist/cli/{mcp-DQ1zR2eA.js → mcp-BZno503V.js} +2 -2
- package/dist/cli/{metadata-CZaxkv21.js → metadata-BfgHMe4q.js} +3 -3
- package/dist/cli/{migration-safety-BbhLu2fo.js → migration-safety-BnnXPAro.js} +1 -1
- package/dist/cli/{module-migration-DOn6EmNz.js → module-migration-O_IxewFs.js} +1 -1
- package/dist/cli/{print-D_xf8PPj.js → print-DosQIFSy.js} +1 -1
- package/dist/cli/{remove-BY_TOTRj.js → remove-DK2G_KHm.js} +5 -5
- package/dist/cli/{render-lJmHr0y9.js → render-5y5a1QZr.js} +3 -3
- package/dist/cli/{run-BJ6IMs_H.js → run-Bs4OKdDI.js} +7 -7
- package/dist/cli/{run-DkB0fhc9.js → run-MRET30vh.js} +20 -20
- package/dist/cli/{shared-Bh-6IqJS.js → shared-BLqbvY2x.js} +1 -1
- package/dist/cli/{snapshot-Bzcigm7T.js → snapshot-uTUlEzY2.js} +2 -2
- package/dist/cli/{source-WoLdcQzN.js → source-D2gJHKwC.js} +1 -1
- package/dist/cli/{spec-CZMiLhv_.js → spec-Cm2einTO.js} +2 -2
- package/dist/cli/{spec-BF_dpwzW.js → spec-DUjOtciN.js} +1 -1
- package/dist/cli/{sql-layout-rFP0oq1N.js → sql-layout-lUWenjJw.js} +2 -2
- package/dist/cli/{sync-mANmYYoL.js → sync-CZMRB3aU.js} +2 -2
- package/dist/cli/{upgrade-B0Q9wMs-.js → upgrade-BFEIMC7U.js} +3 -3
- package/dist/cli/{upgrade-BrNLt92u.js → upgrade-fVsJniXm.js} +2 -2
- package/dist/cli/{version-CyavsyGA.js → version-B2Dr6VmJ.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/index.js +1 -1
- package/dist/client/native/index.d.ts +5 -5
- package/dist/client/native/index.js +1 -1
- package/dist/{client-BAEbEA7t.js → client-C_mlji5R.js} +6 -5
- package/dist/{composite-BZYXlVBN.d.ts → composite-CfYyU3vs.d.ts} +4 -3
- package/dist/config/index.d.ts +1 -1
- package/dist/{context-TGX2eDS5.d.ts → context-8kb8m5uO.d.ts} +1 -1
- package/dist/{controller-DyPPMFSw.d.ts → controller-BW-5Opig.d.ts} +1 -1
- package/dist/{conversion-O-kyhXcC.d.ts → conversion-3iv2r7YC.d.ts} +1 -1
- package/dist/create/index.d.ts +2 -2
- package/dist/create/index.js +1 -1
- package/dist/{define-DFBnQyYg.d.ts → define-C5AcEkEJ.d.ts} +1 -1
- package/dist/{define-block-DvvcM54N.d.ts → define-block-C1RHXz7L.d.ts} +2 -2
- package/dist/edge/index.d.ts +5 -5
- package/dist/{entitlements-BnhDBxLW.d.ts → entitlements-sO977DO-.d.ts} +1 -1
- package/dist/{executor-CVIn6JHa.d.ts → executor-BcNWcD-4.d.ts} +2 -2
- package/dist/expo/index.d.ts +2 -2
- package/dist/{field-errors-DYtg1mwv.d.ts → field-errors-Dt86dCKk.d.ts} +12 -12
- package/dist/{framework-h5lP_5yj.d.ts → framework-BGdZVyPL.d.ts} +3 -3
- package/dist/hono/index.d.ts +4 -4
- package/dist/{index-BAHGLvGD.d.ts → index-CENWq3zb.d.ts} +1 -1
- package/dist/{index-Do2ChN_y.d.ts → index-CQhPHHDF.d.ts} +20 -2
- package/dist/{index-DN9mfmhA.d.ts → index-CTu-3fJB.d.ts} +51 -3
- package/dist/{index-BfK6olKm.d.ts → index-Cc4mIQS8.d.ts} +2 -2
- package/dist/{index-BfkltrGJ.d.ts → index-CcAmFNVi.d.ts} +2 -2
- package/dist/{index-Ab4UeEn_.d.ts → index-Craf712U.d.ts} +44 -12
- package/dist/{index-B4gcStOz.d.ts → index-DZKCc2WM.d.ts} +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/list/index.d.ts +1 -1
- package/dist/{list-query-BDVutLFr.d.ts → list-query-DYhgRTd5.d.ts} +1 -1
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/sdk/index.d.ts +2 -2
- package/dist/next/client/index.d.ts +81 -1
- package/dist/next/client/index.js +178 -2
- package/dist/next/index.d.ts +15 -14
- package/dist/orpc/index.d.ts +4 -4
- package/dist/otel/index.js +4 -4
- package/dist/{ports-DOhtuw3c.js → ports-CaVRXjxq.js} +1 -1
- package/dist/{ports-CpdiQv1D.d.ts → ports-mObLgH1z.d.ts} +1 -1
- package/dist/powersync/index.d.ts +2 -2
- package/dist/preset/index.d.ts +3 -3
- package/dist/{push-token-B3m3pWAv.d.ts → push-token-BSSvsWXZ.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/{rate-limit-o44SYkVY.js → rate-limit-Dt9vAY4E.js} +53 -0
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +3 -3
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/native/index.js +1 -1
- package/dist/react/server.d.ts +12 -7
- package/dist/react/server.js +8 -3
- package/dist/react/session.d.ts +5 -0
- package/dist/react/session.js +9 -1
- package/dist/{react-BuDYI62C.js → react-CZUZYn9E.js} +41 -4
- package/dist/react-router/index.d.ts +3 -3
- package/dist/realtime/index.d.ts +5 -5
- package/dist/realtime/index.js +2 -1
- package/dist/{record-form-DB_5Ue_B.d.ts → record-form-D9ILuVtA.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/relay-gKvKJ3xf.js +208 -0
- package/dist/{resource-execute-CzHuDsil.d.ts → resource-execute-Cpnob1Vj.d.ts} +1 -1
- package/dist/{resource-types-DnKiH4G2.d.ts → resource-types-pMeLs68X.d.ts} +1 -1
- package/dist/{resources-B9cQxhjw.d.ts → resources-7iq2-5_A.d.ts} +1 -1
- package/dist/server/index.d.ts +147 -9
- package/dist/server/index.js +396 -1
- package/dist/{server-types-7QPzW2bF.d.ts → server-types-CK8mUIUT.d.ts} +5 -354
- package/dist/{session-CfBCJGgc.d.ts → session-DWmFv3vB.d.ts} +2 -1
- package/dist/session-status-qQLm7jzh.d.ts +82 -0
- package/dist/{sign-in-BsIaNx2C.js → sign-in-CmPK1AgM.js} +20 -10
- package/dist/solid/index.d.ts +7 -7
- package/dist/solid/index.js +1 -1
- package/dist/solid-start/index.d.ts +3 -3
- package/dist/spec/index.d.ts +1 -1
- package/dist/sql/index.d.ts +3 -3
- package/dist/sql/index.js +1 -1
- package/dist/{sql-OLVW4t08.js → sql-Dl3Alk43.js} +127 -0
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/ssr/index.d.ts +1 -1
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +54 -1
- package/dist/support-B4ZBVxt3.d.ts +357 -0
- package/dist/svelte/index.d.ts +7 -7
- package/dist/svelte/index.js +1 -1
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/{tags-BjHflcHF.d.ts → tags-qvVk79pp.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +3 -3
- package/dist/{tenant-DzFsg0Pc.d.ts → tenant-DOKIJI62.d.ts} +1 -1
- package/dist/testing/index.d.ts +8 -7
- package/dist/{timeline-WrFMgd3U.d.ts → timeline-CvTuXYvn.d.ts} +3 -3
- package/dist/{topic-DNFEFGKI.d.ts → topic-CZXHhZye.d.ts} +2 -2
- package/dist/{verify-CMou8dWZ.d.ts → verify-CjvNLY7N.d.ts} +1 -1
- package/dist/vue/index.d.ts +7 -7
- package/dist/vue/index.js +1 -1
- package/dist/{watch-topic-Bo9S2R4P.d.ts → watch-topic-BAxoPKZx.d.ts} +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/skills/better-supabase-api/SKILL.md +3 -1
- package/skills/better-supabase-auth/SKILL.md +7 -0
- package/dist/cli/add-CUH0rORo.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { p as commandMeta, r as defineCliCommand } from "./command-CQ61x6gN.js";
|
|
2
2
|
import { i as plain } from "./style-Bm2X5JrN.js";
|
|
3
|
-
import { t as syncModules } from "./sync-
|
|
3
|
+
import { t as syncModules } from "./sync-CZMRB3aU.js";
|
|
4
4
|
import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
|
|
5
|
-
import { t as upgrade } from "./upgrade-
|
|
5
|
+
import { t as upgrade } from "./upgrade-BFEIMC7U.js";
|
|
6
6
|
//#region src/cli/commands/upgrade.ts
|
|
7
7
|
const UPGRADE_ARGS = {
|
|
8
8
|
check: {
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as DataSync, c as LocalTablesOption, i as DataEntry, l as liveEngine, n as DataEngine, o as DataSyncState, r as DataEngineOptions, s as LiveEngineOptions, t as DataChanges, u as memoryEngine } from "../data-engine-BWoz9lED.js";
|
|
2
|
-
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-
|
|
3
|
-
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-
|
|
4
|
-
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-
|
|
5
|
-
import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-
|
|
2
|
+
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-BAxoPKZx.js";
|
|
3
|
+
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-mObLgH1z.js";
|
|
4
|
+
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-JGCPGUJh.js";
|
|
5
|
+
import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-BW-5Opig.js";
|
|
6
6
|
import { n as FunctionContract } from "../function-contract-DxFNOmsm.js";
|
|
7
|
-
import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-
|
|
7
|
+
import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-DZKCc2WM.js";
|
|
8
8
|
export { type AuthPort, type AuthSnapshot, type AuthUser, type BetterClient, type BindClientOptions, type ClientAuth, ClientOptions, type ClientPorts, type Controller, type ControllerParts, type ControllerState, type DataChanges, type DataEngine, type DataEngineOptions, type DataEntry, type DataSync, type DataSyncState, type DeepLinkPort, type FilePickerPort, type FunctionContract, type FunctionContracts, type FunctionsHost, type InvokeOptions, type KeyboardPort, type LiveEngineOptions, type LocalTablesOption, type PickFilesOptions, type PickedFile, type PushRegistrationLike, type PushTokenPort, type Shortcut, type StoragePort, type TopicHandle, type TopicPort, type TopicWatch, type TypedFunctions, type UploadDestination, type UploadPort, type WebPushTokenOptions, bindClient, createClient, defineController, functions, liveEngine, memoryEngine, memoryStorage, storageUpload, webDeepLinks, webFilePicker, webKeyboard, webPorts, webPushToken, webStorage, whileSignedIn };
|
package/dist/client/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { n as dbError } from "../errors-BVFgt8BZ.js";
|
|
|
2
2
|
import { a as ok, r as err, t as AsyncResult } from "../result-ntFBW2p2.js";
|
|
3
3
|
import { i as isProblem, r as fromProblem } from "../problem-Bf0cJ7tk.js";
|
|
4
4
|
import { EnvValidationError, parseEnv } from "../env/index.js";
|
|
5
|
-
import { n as storageUpload, r as bindClient, t as memoryStorage } from "../ports-
|
|
5
|
+
import { n as storageUpload, r as bindClient, t as memoryStorage } from "../ports-CaVRXjxq.js";
|
|
6
6
|
import { a as memoryEngine, n as liveEngine } from "../data-engine-D1BkmBoR.js";
|
|
7
7
|
import { n as whileSignedIn, t as defineController } from "../controller-BEliOBOv.js";
|
|
8
8
|
import { createBrowserClient } from "@supabase/ssr";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-
|
|
4
|
-
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-
|
|
5
|
-
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-
|
|
6
|
-
import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-
|
|
2
|
+
import { T as UploadOptions, w as UploadBody } from "../../bucket-vc-QRrva.js";
|
|
3
|
+
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-BAxoPKZx.js";
|
|
4
|
+
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-mObLgH1z.js";
|
|
5
|
+
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-JGCPGUJh.js";
|
|
6
|
+
import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-BSSvsWXZ.js";
|
|
7
7
|
import { a as OAuthSignInOptions, c as linkParams, i as OAuthClient, l as signInWithOAuthBrowser, n as AuthLinkClient, o as WebBrowserLike, r as AuthLinkResult, s as handleAuthDeepLink, t as AuthFailure } from "../../auth-link-B4NL84XU.js";
|
|
8
8
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
9
9
|
//#region src/client/native/auto-refresh.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
2
2
|
import { r as err, s as toDbError, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
3
3
|
import { i as toBase64, r as fromBase64 } from "../../base64-B9Wlsdj7.js";
|
|
4
|
-
import { n as storageUpload, r as bindClient, t as memoryStorage } from "../../ports-
|
|
4
|
+
import { n as storageUpload, r as bindClient, t as memoryStorage } from "../../ports-CaVRXjxq.js";
|
|
5
5
|
import { n as linkParams, r as signInWithOAuthBrowser, t as handleAuthDeepLink } from "../../auth-link-D3-bU6yz.js";
|
|
6
6
|
import { t as expoPushToken } from "../../push-token-D6REHMMw.js";
|
|
7
7
|
//#region src/client/native/auto-refresh.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as dbError } from "./errors-BVFgt8BZ.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as specKey, i as sessionUserId, r as claimedTenant, t as authModuleOf } from "./auth-module-BbmX-N4L.js";
|
|
3
3
|
import { r as invalidateTables } from "./user-change-DgWC6RRC.js";
|
|
4
4
|
import { n as liveQuery, t as liveCount } from "./live-C21DgbsD.js";
|
|
5
5
|
//#region src/bindings/client.ts
|
|
@@ -22,14 +22,15 @@ function plainCaller(supabase) {
|
|
|
22
22
|
return {
|
|
23
23
|
current: () => caller,
|
|
24
24
|
subscribe: (listener) => {
|
|
25
|
-
|
|
25
|
+
const authModule = authModuleOf(supabase);
|
|
26
|
+
if (!authModule) {
|
|
26
27
|
caller = {
|
|
27
28
|
status: "signed-out",
|
|
28
29
|
userId: null
|
|
29
30
|
};
|
|
30
31
|
return () => void 0;
|
|
31
32
|
}
|
|
32
|
-
const { data } =
|
|
33
|
+
const { data } = authModule.onAuthStateChange((_event, session) => {
|
|
33
34
|
caller = {
|
|
34
35
|
status: session ? "signed-in" : "signed-out",
|
|
35
36
|
userId: session ? sessionUserId(session) : null
|
|
@@ -93,7 +94,7 @@ function startLiveQuery(run) {
|
|
|
93
94
|
const { client, queryClient, options } = run;
|
|
94
95
|
const tenant = options.tenant ?? claimedTenant(run.auth, client.betterSupabase.meta);
|
|
95
96
|
const userId = run.auth.user?.id ?? null;
|
|
96
|
-
const live = liveQuery(client.betterSupabase, client.supabase, run.spec, {
|
|
97
|
+
const live = liveQuery(client.betterSupabase, run.realtime ?? client.supabase, run.spec, {
|
|
97
98
|
onChange: (tables) => void invalidateTables(queryClient, tables),
|
|
98
99
|
onStatus: run.onStatus,
|
|
99
100
|
...tenant === void 0 ? {} : { tenant },
|
|
@@ -126,7 +127,7 @@ function startLiveCount(run) {
|
|
|
126
127
|
const { client, key, options } = run;
|
|
127
128
|
const tenant = options.tenant ?? claimedTenant(run.auth, client.betterSupabase.meta);
|
|
128
129
|
const userId = run.auth.user?.id ?? null;
|
|
129
|
-
const live = liveCount(client.betterSupabase, client.supabase, client.db, run.spec, {
|
|
130
|
+
const live = liveCount(client.betterSupabase, run.realtime ?? client.supabase, client.db, run.spec, {
|
|
130
131
|
immediate: run.immediate,
|
|
131
132
|
...run.since === void 0 ? {} : { since: run.since },
|
|
132
133
|
onCount: (count) => {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
|
|
2
2
|
import { r as AuthState } from "./resolve-CXX6DHv3.js";
|
|
3
|
-
import { t as BetterSupabase, v as Db } from "./define-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { t as BetterSupabase, v as Db } from "./define-C5AcEkEJ.js";
|
|
4
|
+
import { a as ServerContext, b as ReplicaState, c as ServerOptions, n as BetterServer } from "./server-types-CK8mUIUT.js";
|
|
5
|
+
import { t as ActiveSupport } from "./support-B4ZBVxt3.js";
|
|
6
|
+
import { n as SessionEntryConfig } from "./session-DWmFv3vB.js";
|
|
6
7
|
import { r as GuardOptions } from "./respond-Dn1_YhC1.js";
|
|
7
8
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
8
9
|
import { Entry, SingleKeyEntry } from "@supabase/middleware";
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as Casing } from "../types-DFdg_4yN.js";
|
|
2
2
|
import { C as EntityConfig, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, k as tenantNameOf, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-HZdJCaVm.js";
|
|
3
|
-
import { $ as blockEntrySource, $n as APP_COLUMN_ACCESS, $r as RpcTypeReference, $t as ResolvedExtensions, A as ValibotGeneratorOptions, Ai as SkillsConfig, An as ExposePrivilege, Ar as CatalogIndex, At as GeneratedFile, B as jsonSchema, Br as ForeignKeyAction, Bt as GeneratorInputSchema, Ci as GenConfig, Cn as TopicTriggerPayloadValueConfig, Cr as CatalogColumn, D as ZodFlavor, Di as MigrationSafetyConfig, Dn as VectorSearchConfig, Dr as CatalogFunction, Dt as resolveJsonSchema, Ei as KeysConfig, En as VectorDistance, Er as CatalogForeignKey, F as nuqs, Fi as SKILLS_AGENTS, Fr as ExtrasDomain, Ft as GeneratorEntitySchemas, G as tenantClaimPaths, Gr as PostgresColumn, Gt as JsonSchemaSource, H as ClaimPaths, Hr as SnapshotBucket, Ht as GeneratorModel, I as FactoriesGeneratorOptions, Ir as ExtrasFunction, It as GeneratorField, J as blockEntityRenames, Jn as CONFIG_DEFAULTS, Jr as RpcFunction, Jt as SourceConfig, K as BlockEntity, Kr as PostgresFunction, Kt as JsonTypeConfig, L as factories, Lr as ExtrasHook, Lt as GeneratorFunction, M as StandardSchemaGeneratorOptions, Mi as INTEGRATION_INFO, Mn as Privilege, Mr as CatalogTable, Mt as GeneratorBlock, N as standardSchema, Ni as INTEGRATION_NAMES, Nn as ResolvedExpose, Nr as CatalogTrigger, Nt as GeneratorBlockEntity, O as ZodGeneratorOptions, Oi as OpenApiConfig, On as ColumnPrivilege, Or as CatalogFunctionArg, Ot as ClaimsConfig, P as NuqsGeneratorOptions, Pi as IntegrationInfo, Pr as CatalogUnique, Pt as GeneratorColumn, Q as RENAMED_CONFIG_KEYS, Qr as RpcReturnColumn, Qt as ResolvedConfig, R as JsonSchemaGeneratorOptions, Rr as ExtrasHookFunction, Rt as GeneratorFunctionArg, Si as EnvFileConfig, Sn as TopicTriggerLookupConfig, Sr as CatalogCheck, Ti as IntegrationName, Tn as TopicTriggerValueConfig, Tr as CatalogEnum, U as DEFAULT_CLAIMS, Ur as SnapshotExtras, Ut as GeneratorNoun, V as JsonSchemaTarget, Vr as Snapshot, Vt as GeneratorJsonSchema, W as claimPaths, Wr as GeneratorMetadata, Wt as GeneratorTable, X as CONFIG_GROUPS, Xr as RpcFunctionOverload, Xt as DataHooksFramework, Y as blockSubjectTypes, Yr as RpcFunctionArg, Yt as TableConfig, Z as RENAMED_BLOCK_KEYS, Zr as RpcFunctionReturns, Zt as FlatConfig, _n as ResolvedSqlConfig, _r as AppTableEvents, an as BlockInput, ar as AppColumnAccess, at as defineConfig, bn as SqlWorkflow, br as AppTablesConfig, cn as EnvironmentConfig, cr as AppColumnType, ct as BlockTableReference, dn as SqlInput, dr as AppReference, dt as RoleNames, en as ApiConfig, er as APP_COLUMN_FORMATS, et as flattenConfig, fn as ToolingConfig, fr as AppReferenceTarget, ft as TypedReference, gn as RealtimeConfig, gr as AppTableEventKind, hn as BucketConfig, hr as AppTableConfig, in as BetterSupabaseConfig, ir as APP_TABLE_EVENT_KINDS, it as CONFIG_SCHEMA_URL, j as valibot, ji as GEN_TASKS, jn as ExposeRole, jr as CatalogPolicy, jt as Generator, k as zod, ki as SkillsAgent, kn as ExposeConfig, kr as CatalogGrant, kt as CodecsConfig, ln as GenGroupConfig, lr as AppLookupConfig, lt as BucketName, mn as EntitlementsConfig, mr as AppRollupConfig, mt as ExpandedConfig, nn as AppTablesInput, nr as APP_ON_DELETE_ACTIONS, nt as groupEntries, on as BlocksInput, or as AppColumnConfig, ot as resolveConfig, pn as EntitlementPlansSource, pr as AppRollupAggregate, q as blockEntities, qr as PostgresFunctionArg, qt as RelationsConfig, rn as AuthConfig, rr as APP_ROLLUP_AGGREGATES, rt as hasFlatTables, sn as DatabaseConfig, sr as AppColumnFormat, st as AppTableNames, tn as AppTableInput, tr as APP_COLUMN_TYPES, tt as groupConfig, un as OrganizationConfig, ur as AppOnDeleteAction, ut as ConfigReferences, vn as SeedConfig, vr as AppTableSubject, wi as GenTask, wn as TopicTriggerTopicConfig, wr as CatalogColumnGrant, xi as DoctorConfig, xn as TopicTriggerConfig, xr as Catalog, yn as SqlConfig, yr as AppTableVersions, z as buildJsonSchema, zr as ExtrasTable, zt as GeneratorInput } from "../context-
|
|
3
|
+
import { $ as blockEntrySource, $n as APP_COLUMN_ACCESS, $r as RpcTypeReference, $t as ResolvedExtensions, A as ValibotGeneratorOptions, Ai as SkillsConfig, An as ExposePrivilege, Ar as CatalogIndex, At as GeneratedFile, B as jsonSchema, Br as ForeignKeyAction, Bt as GeneratorInputSchema, Ci as GenConfig, Cn as TopicTriggerPayloadValueConfig, Cr as CatalogColumn, D as ZodFlavor, Di as MigrationSafetyConfig, Dn as VectorSearchConfig, Dr as CatalogFunction, Dt as resolveJsonSchema, Ei as KeysConfig, En as VectorDistance, Er as CatalogForeignKey, F as nuqs, Fi as SKILLS_AGENTS, Fr as ExtrasDomain, Ft as GeneratorEntitySchemas, G as tenantClaimPaths, Gr as PostgresColumn, Gt as JsonSchemaSource, H as ClaimPaths, Hr as SnapshotBucket, Ht as GeneratorModel, I as FactoriesGeneratorOptions, Ir as ExtrasFunction, It as GeneratorField, J as blockEntityRenames, Jn as CONFIG_DEFAULTS, Jr as RpcFunction, Jt as SourceConfig, K as BlockEntity, Kr as PostgresFunction, Kt as JsonTypeConfig, L as factories, Lr as ExtrasHook, Lt as GeneratorFunction, M as StandardSchemaGeneratorOptions, Mi as INTEGRATION_INFO, Mn as Privilege, Mr as CatalogTable, Mt as GeneratorBlock, N as standardSchema, Ni as INTEGRATION_NAMES, Nn as ResolvedExpose, Nr as CatalogTrigger, Nt as GeneratorBlockEntity, O as ZodGeneratorOptions, Oi as OpenApiConfig, On as ColumnPrivilege, Or as CatalogFunctionArg, Ot as ClaimsConfig, P as NuqsGeneratorOptions, Pi as IntegrationInfo, Pr as CatalogUnique, Pt as GeneratorColumn, Q as RENAMED_CONFIG_KEYS, Qr as RpcReturnColumn, Qt as ResolvedConfig, R as JsonSchemaGeneratorOptions, Rr as ExtrasHookFunction, Rt as GeneratorFunctionArg, Si as EnvFileConfig, Sn as TopicTriggerLookupConfig, Sr as CatalogCheck, Ti as IntegrationName, Tn as TopicTriggerValueConfig, Tr as CatalogEnum, U as DEFAULT_CLAIMS, Ur as SnapshotExtras, Ut as GeneratorNoun, V as JsonSchemaTarget, Vr as Snapshot, Vt as GeneratorJsonSchema, W as claimPaths, Wr as GeneratorMetadata, Wt as GeneratorTable, X as CONFIG_GROUPS, Xr as RpcFunctionOverload, Xt as DataHooksFramework, Y as blockSubjectTypes, Yr as RpcFunctionArg, Yt as TableConfig, Z as RENAMED_BLOCK_KEYS, Zr as RpcFunctionReturns, Zt as FlatConfig, _n as ResolvedSqlConfig, _r as AppTableEvents, an as BlockInput, ar as AppColumnAccess, at as defineConfig, bn as SqlWorkflow, br as AppTablesConfig, cn as EnvironmentConfig, cr as AppColumnType, ct as BlockTableReference, dn as SqlInput, dr as AppReference, dt as RoleNames, en as ApiConfig, er as APP_COLUMN_FORMATS, et as flattenConfig, fn as ToolingConfig, fr as AppReferenceTarget, ft as TypedReference, gn as RealtimeConfig, gr as AppTableEventKind, hn as BucketConfig, hr as AppTableConfig, in as BetterSupabaseConfig, ir as APP_TABLE_EVENT_KINDS, it as CONFIG_SCHEMA_URL, j as valibot, ji as GEN_TASKS, jn as ExposeRole, jr as CatalogPolicy, jt as Generator, k as zod, ki as SkillsAgent, kn as ExposeConfig, kr as CatalogGrant, kt as CodecsConfig, ln as GenGroupConfig, lr as AppLookupConfig, lt as BucketName, mn as EntitlementsConfig, mr as AppRollupConfig, mt as ExpandedConfig, nn as AppTablesInput, nr as APP_ON_DELETE_ACTIONS, nt as groupEntries, on as BlocksInput, or as AppColumnConfig, ot as resolveConfig, pn as EntitlementPlansSource, pr as AppRollupAggregate, q as blockEntities, qr as PostgresFunctionArg, qt as RelationsConfig, rn as AuthConfig, rr as APP_ROLLUP_AGGREGATES, rt as hasFlatTables, sn as DatabaseConfig, sr as AppColumnFormat, st as AppTableNames, tn as AppTableInput, tr as APP_COLUMN_TYPES, tt as groupConfig, un as OrganizationConfig, ur as AppOnDeleteAction, ut as ConfigReferences, vn as SeedConfig, vr as AppTableSubject, wi as GenTask, wn as TopicTriggerTopicConfig, wr as CatalogColumnGrant, xi as DoctorConfig, xn as TopicTriggerConfig, xr as Catalog, yn as SqlConfig, yr as AppTableVersions, z as buildJsonSchema, zr as ExtrasTable, zt as GeneratorInput } from "../context-8kb8m5uO.js";
|
|
4
4
|
import { n as SubjectsConfig, t as SubjectConfig } from "../subjects-DvmQeF_F.js";
|
|
5
5
|
import { a as FieldFormat, o as FieldFormatInput, r as FIELD_FORMATS } from "../field-formats-CAFNkKSN.js";
|
|
6
6
|
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableNames, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type BetterSupabaseConfig, type BlockConfig, type BlockEntity, type BlockInput, type BlockMode, type BlockScope, type BlockTableReference, type BlocksConfig, type BlocksInput, type BucketConfig, type BucketName, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, type Casing, type Catalog, type CatalogCheck, type CatalogColumn, type CatalogColumnGrant, type CatalogEnum, type CatalogForeignKey, type CatalogFunction, type CatalogFunctionArg, type CatalogGrant, type CatalogIndex, type CatalogPolicy, type CatalogTable, type CatalogTrigger, type CatalogUnique, type ClaimPaths, type ClaimsConfig, type CodecsConfig, type ColumnPrivilege, type ConfigReferences, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, type DataHooksFramework, type DatabaseConfig, type DisabledRow, type DoctorConfig, type EntitiesConfig, type EntitlementPlansSource, type EntitlementsConfig, type EntityConfig, type EnvFileConfig, type EnvironmentConfig, type ExpandedConfig, type ExposeConfig, type ExposePrivilege, type ExposeRole, type ExtrasDomain, type ExtrasFunction, type ExtrasHook, type ExtrasHookFunction, type ExtrasTable, FIELD_FORMATS, type FactoriesGeneratorOptions, type FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorColumn, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorNoun, type GeneratorTable, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaGeneratorOptions, type JsonSchemaSource, type JsonSchemaTarget, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type NuqsGeneratorOptions, type OpenApiConfig, type OrganizationConfig, type PostgresColumn, type PostgresFunction, type PostgresFunctionArg, type Privilege, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, type RealtimeConfig, type RelationsConfig, type ResolvedConfig, type ResolvedExpose, type ResolvedExtensions, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlConfig, type SqlInput, type SqlWorkflow, type StandardSchemaGeneratorOptions, type SubjectConfig, type SubjectsConfig, type TableConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type TypedReference, type ValibotGeneratorOptions, type VectorDistance, type VectorSearchConfig, type ZodFlavor, type ZodGeneratorOptions, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, hasFlatTables, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { M as Casing, P as ClaimsMeta, T as AccessBucketPolicy, _t as BucketLifecycle, j as BucketPolicyName, ot as SchemaMeta } from "./types-DFdg_4yN.js";
|
|
3
3
|
import { D as ResolvedBlock, E as NamedInstance, F as BlockNameRegistry, P as TablesOf, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-HZdJCaVm.js";
|
|
4
|
-
import { Mn as EntityNames, Nn as EntityNoun, Pn as EntityRename, R as PortName, Ut as ActionDescriptor, Xt as BlockSchedule, Zt as DefaultAutomation, _ as BlockProvider, g as BlockEnvKey, i as BlockCategory, y as BlockWorker } from "./define-block-
|
|
4
|
+
import { Mn as EntityNames, Nn as EntityNoun, Pn as EntityRename, R as PortName, Ut as ActionDescriptor, Xt as BlockSchedule, Zt as DefaultAutomation, _ as BlockProvider, g as BlockEnvKey, i as BlockCategory, y as BlockWorker } from "./define-block-C1RHXz7L.js";
|
|
5
5
|
import { a as ScalarKind, i as FieldSpec } from "./table-schema-BlF6k62Q.js";
|
|
6
6
|
import { n as SubjectsConfig } from "./subjects-DvmQeF_F.js";
|
|
7
7
|
import { i as FIELD_FORMAT_NAMES, s as FieldFormatName } from "./field-formats-CAFNkKSN.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as Result } from "./result-DZeA5KS6.js";
|
|
2
|
-
import { Bt as Action, Ht as ActionContext, Vt as ActionCall } from "./define-block-
|
|
2
|
+
import { Bt as Action, Ht as ActionContext, Vt as ActionCall } from "./define-block-C1RHXz7L.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
//#region src/blocks/automations/conversion.d.ts
|
|
5
5
|
/** A record a conversion reads from or creates: its subject type and id. */
|
package/dist/create/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { Pn as PresetSpec, Wn as PresetName, ar as AppColumnAccess, ci as Preset, cr as AppColumnType, g as BlockSqlAccessProvider, ht as PresetInput, nr as APP_ON_DELETE_ACTIONS, sr as AppColumnFormat, ur as AppOnDeleteAction, yr as AppTableVersions } from "../context-
|
|
3
|
-
import { a as DesignChange, p as DesignErrorCode, u as CreateDesign } from "../index-
|
|
2
|
+
import { Pn as PresetSpec, Wn as PresetName, ar as AppColumnAccess, ci as Preset, cr as AppColumnType, g as BlockSqlAccessProvider, ht as PresetInput, nr as APP_ON_DELETE_ACTIONS, sr as AppColumnFormat, ur as AppOnDeleteAction, yr as AppTableVersions } from "../context-8kb8m5uO.js";
|
|
3
|
+
import { a as DesignChange, p as DesignErrorCode, u as CreateDesign } from "../index-CENWq3zb.js";
|
|
4
4
|
import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-wtecfrNf.js";
|
|
5
5
|
import { t as PresetMigrationFile } from "../types-DGHfTW8_.js";
|
|
6
6
|
//#region src/create/design-computed.d.ts
|
package/dist/create/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { a as presetOf, d as resolvePreset } from "../config-CcehOvbz.js";
|
|
|
2
2
|
import { C as APP_ON_DELETE_ACTIONS, E as PRESET_CATALOG, a as appIdentifierError, m as isAppDefault, o as appNameLengthError, p as appDefaultError, s as appReservedColumns } from "../app-tables-D29Rahtg.js";
|
|
3
3
|
import { c as resolveConfig } from "../config-DWGgUQCh.js";
|
|
4
4
|
import { _ as jsonPointer, a as DesignParseError, h as encodeDesign, n as diffDesigns, o as DesignTooLongError, p as designOf, u as designConfig, v as parseDesign } from "../preset-CsHnIBJF.js";
|
|
5
|
-
import { I as SQL_MODULES, g as renderBlocks, i as moduleLayout } from "../sql-
|
|
5
|
+
import { I as SQL_MODULES, g as renderBlocks, i as moduleLayout } from "../sql-Dl3Alk43.js";
|
|
6
6
|
//#region src/create/column-keys.ts
|
|
7
7
|
/** The most options a select takes, and the longest option. */
|
|
8
8
|
const MAX_OPTIONS = 100;
|
|
@@ -4,7 +4,7 @@ import { t as StandardSchemaV1 } from "./standard-DBV730sF.js";
|
|
|
4
4
|
import { Bt as Executor, Ct as ApplyExtension, Ft as RequestContext, It as WithExtension, K as Insert, O as AnyFunctions, St as AnyPlugin, Tt as ExtensionOf, Z as PrimaryKeyValue, a as CountMode, at as Schema, dt as TableMeta, ht as Update, it as Row, k as AnyModels, m as Operation, mt as UniqueWhere, nt as Relations, ot as SchemaMeta, pt as UniqueKeyName, st as Simplify, tt as RelationTypes, ut as TableKey } from "./types-DFdg_4yN.js";
|
|
5
5
|
import { a as EventHandler, c as MutationNotice, d as RpcNotice, o as EventHub, s as EventName } from "./events-vcqenSYU.js";
|
|
6
6
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
7
|
-
import {
|
|
7
|
+
import { j as StorageApi, n as Bucket, r as BucketClient } from "./bucket-vc-QRrva.js";
|
|
8
8
|
import { h as FilterQuery } from "./filter-query-BXLs72G9.js";
|
|
9
9
|
import { a as PostgrestPlan, i as PostgrestCompileOptions } from "./postgrest-z-T0l23T.js";
|
|
10
10
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
@@ -13,8 +13,8 @@ import { f as AiFiles, y as UploadClaimStorage } from "./types-Dr9wZgNy.js";
|
|
|
13
13
|
import { g as JobHandler } from "./types-Czq9Xtpa.js";
|
|
14
14
|
import { t as BlockOptionsSchema } from "./options-CsGl5BLH.js";
|
|
15
15
|
import { t as Author } from "./block-authors-DzXLUiIq.js";
|
|
16
|
-
import { u as BlockInstanceSurface } from "./define-
|
|
17
|
-
import {
|
|
16
|
+
import { u as BlockInstanceSurface } from "./define-C5AcEkEJ.js";
|
|
17
|
+
import { A as TtlPreset, C as TransformOptions, l as ImageTransform } from "./bucket-vc-QRrva.js";
|
|
18
18
|
import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec } from "./table-schema-BlF6k62Q.js";
|
|
19
19
|
import { i as EventSink } from "./cloud-event-CzZTJkXv.js";
|
|
20
20
|
import { g as Workflows } from "./workflows-B0ZPAQu0.js";
|
package/dist/edge/index.d.ts
CHANGED
|
@@ -2,17 +2,17 @@ import { f as Result } from "../result-DZeA5KS6.js";
|
|
|
2
2
|
import { t as StandardSchemaV1 } from "../standard-DBV730sF.js";
|
|
3
3
|
import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
|
|
4
4
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
5
|
-
import { t as BetterSupabase } from "../define-
|
|
6
|
-
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-
|
|
5
|
+
import { t as BetterSupabase } from "../define-C5AcEkEJ.js";
|
|
6
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-CK8mUIUT.js";
|
|
7
7
|
import { t as AuthSession } from "../view-DyFdMCqg.js";
|
|
8
8
|
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-Dn1_YhC1.js";
|
|
9
9
|
import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-DOwKpSkA.js";
|
|
10
10
|
import { n as FunctionContract, t as DescribedFunction } from "../function-contract-DxFNOmsm.js";
|
|
11
11
|
import { t as Validated } from "../shared-CRRfQAKG.js";
|
|
12
12
|
import { n as SUPABASE_CORS_HEADERS, r as corsConfig, t as CorsOptions } from "../cors-kLq6VM06.js";
|
|
13
|
-
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-
|
|
14
|
-
import { t as ResourceMap } from "../resources-
|
|
15
|
-
import { t as defineAction } from "../resource-execute-
|
|
13
|
+
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-pMeLs68X.js";
|
|
14
|
+
import { t as ResourceMap } from "../resources-7iq2-5_A.js";
|
|
15
|
+
import { t as defineAction } from "../resource-execute-Cpnob1Vj.js";
|
|
16
16
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
17
17
|
//#region src/bridges/edge.d.ts
|
|
18
18
|
/** The platform context Workers pass as the third `fetch` argument. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as RawDbError, b as DbError, f as Result } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { Bt as Executor, O as AnyFunctions, dt as TableMeta, k as AnyModels, m as Operation, ut as TableKey } from "./types-DFdg_4yN.js";
|
|
3
|
-
import { pt as QuerySpec, t as BetterSupabase } from "./define-
|
|
4
|
-
import { i as ListDefinition } from "./list-query-
|
|
3
|
+
import { pt as QuerySpec, t as BetterSupabase } from "./define-C5AcEkEJ.js";
|
|
4
|
+
import { i as ListDefinition } from "./list-query-DYhgRTd5.js";
|
|
5
5
|
import { t as Compiler } from "./compiler-D3UmE7ao.js";
|
|
6
6
|
//#region src/compile/sqlite.d.ts
|
|
7
7
|
/** A value SQLite binds: booleans become `0`/`1`, objects JSON text. */
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
|
|
2
|
-
import { t as BetterSupabase } from "../define-
|
|
3
|
-
import { a as ServerContext, c as ServerOptions, n as BetterServer, r as ContextOptions } from "../server-types-
|
|
2
|
+
import { t as BetterSupabase } from "../define-C5AcEkEJ.js";
|
|
3
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer, r as ContextOptions } from "../server-types-CK8mUIUT.js";
|
|
4
4
|
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-Dn1_YhC1.js";
|
|
5
5
|
import { t as Validated } from "../shared-CRRfQAKG.js";
|
|
6
6
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { o as EventHub } from "./events-vcqenSYU.js";
|
|
3
3
|
import { o as BlockTenant } from "./block-helpers-CRpAHrp_.js";
|
|
4
|
-
import { pt as QuerySpec } from "./define-
|
|
5
|
-
import {
|
|
4
|
+
import { pt as QuerySpec } from "./define-C5AcEkEJ.js";
|
|
5
|
+
import { tt as TemplateValues } from "./bucket-vc-QRrva.js";
|
|
6
6
|
import { n as DataEngine } from "./data-engine-BWoz9lED.js";
|
|
7
|
-
import { Dn as GeneratedBlocks } from "./define-block-
|
|
8
|
-
import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-
|
|
9
|
-
import { t as ClientPorts } from "./ports-
|
|
10
|
-
import { a as ClientAuth } from "./bind-
|
|
11
|
-
import { a as LiveSource, r as LiveCountSeed } from "./index-
|
|
7
|
+
import { Dn as GeneratedBlocks } from "./define-block-C1RHXz7L.js";
|
|
8
|
+
import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-CZXHhZye.js";
|
|
9
|
+
import { t as ClientPorts } from "./ports-mObLgH1z.js";
|
|
10
|
+
import { a as ClientAuth } from "./bind-JGCPGUJh.js";
|
|
11
|
+
import { a as LiveSource, r as LiveCountSeed } from "./index-CTu-3fJB.js";
|
|
12
12
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
13
13
|
import { QueryClient } from "@tanstack/query-core";
|
|
14
14
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -50,11 +50,11 @@ interface UseActionOptions<I, T> {
|
|
|
50
50
|
}
|
|
51
51
|
interface BroadcastOptions extends Omit<SubscribeOptions, "onStatus"> {
|
|
52
52
|
/**
|
|
53
|
-
* A supabase-js client to subscribe with, for apps without the provider
|
|
54
|
-
* resubscribes when the client's user changes.
|
|
55
|
-
* client.
|
|
53
|
+
* A supabase-js client to subscribe with, for apps without the provider, or a
|
|
54
|
+
* `relayRealtimeClient(url)`. It resubscribes when the client's user changes.
|
|
55
|
+
* Defaults to the provider's `realtime`, then its client.
|
|
56
56
|
*/
|
|
57
|
-
readonly client?:
|
|
57
|
+
readonly client?: RealtimeClient;
|
|
58
58
|
/** The query client `invalidate` refetches with. Defaults to the provider's. */
|
|
59
59
|
readonly queryClient?: QueryClient;
|
|
60
60
|
/**
|
|
@@ -84,7 +84,7 @@ interface PresenceHookOptions<I> {
|
|
|
84
84
|
*/
|
|
85
85
|
readonly state?: I | null;
|
|
86
86
|
/** A supabase-js client for apps without the provider. */
|
|
87
|
-
readonly client?:
|
|
87
|
+
readonly client?: RealtimeClient;
|
|
88
88
|
}
|
|
89
89
|
/** The parts of a `defineTopic(..., { presence })` topic the bindings use. */
|
|
90
90
|
interface PresenceTopic<P extends string, I, O> {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as SessionSnapshot, c as ServerOptions } from "./server-types-CK8mUIUT.js";
|
|
3
3
|
import { t as AuthSession } from "./view-DyFdMCqg.js";
|
|
4
|
-
import { n as SessionEntryConfig } from "./session-
|
|
5
|
-
import { n as BetterSupabaseContributions } from "./composite-
|
|
4
|
+
import { n as SessionEntryConfig } from "./session-DWmFv3vB.js";
|
|
5
|
+
import { n as BetterSupabaseContributions } from "./composite-CfYyU3vs.js";
|
|
6
6
|
import { c as ResourceLoaderContext } from "./kit-DOwKpSkA.js";
|
|
7
7
|
import { t as RefusalRedirects } from "./refusal-CSntB_x8.js";
|
|
8
8
|
//#region src/server/framework.d.ts
|
package/dist/hono/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
|
|
2
2
|
import { r as AuthState } from "../resolve-CXX6DHv3.js";
|
|
3
3
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
4
|
-
import { t as BetterSupabase } from "../define-
|
|
5
|
-
import {
|
|
4
|
+
import { t as BetterSupabase } from "../define-C5AcEkEJ.js";
|
|
5
|
+
import { O as SessionSnapshot, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer } from "../server-types-CK8mUIUT.js";
|
|
6
6
|
import { t as AuthSession } from "../view-DyFdMCqg.js";
|
|
7
7
|
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-Dn1_YhC1.js";
|
|
8
8
|
import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-DOwKpSkA.js";
|
|
9
9
|
import { t as CorsOptions } from "../cors-kLq6VM06.js";
|
|
10
|
-
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-
|
|
11
|
-
import { t as defineAction } from "../resource-execute-
|
|
10
|
+
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-pMeLs68X.js";
|
|
11
|
+
import { t as defineAction } from "../resource-execute-Cpnob1Vj.js";
|
|
12
12
|
import { i as RouteRateLimitRule, n as RateLimitVerdict, r as RateLimiter, t as RateLimitRouteOptions } from "../rate-limit-Bztf32cl.js";
|
|
13
13
|
import { AnyEntry, Contributions, ValidateEntries } from "@supabase/middleware";
|
|
14
14
|
import { Context, ErrorHandler, Hono, MiddlewareHandler } from "hono";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig, ci as Preset, cr as AppColumnType, ei as PresetCatalog, hr as AppTableConfig, or as AppColumnConfig, ri as PresetGlueItem, vt as presetConfig } from "./context-
|
|
1
|
+
import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig, ci as Preset, cr as AppColumnType, ei as PresetCatalog, hr as AppTableConfig, or as AppColumnConfig, ri as PresetGlueItem, vt as presetConfig } from "./context-8kb8m5uO.js";
|
|
2
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
//#region src/preset/catalog.generated.d.ts
|
|
4
4
|
declare const PRESET_CATALOG: PresetCatalog;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as DbError, f as Result, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
|
-
import {
|
|
2
|
+
import { C as TransformOptions, N as StorageClient, Q as StoragePath, a as BucketConnectOptions, i as BucketConfig, n as Bucket, r as BucketClient, s as BucketPolicy, v as StorageAdminClient } from "./bucket-vc-QRrva.js";
|
|
3
3
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
4
4
|
//#region src/storage/errors.d.ts
|
|
5
5
|
/** Maps a Storage error (`StorageApiError`, fetch failures) to a `DbError`. */
|
|
@@ -284,4 +284,22 @@ interface VectorBucket<Id extends string, I extends Readonly<Record<string, Vect
|
|
|
284
284
|
*/
|
|
285
285
|
declare function defineVectorBucket<const Id extends string, const I extends Readonly<Record<string, VectorIndexConfig>>>(config: VectorBucketConfig<Id, I>): VectorBucket<Id, I>;
|
|
286
286
|
//#endregion
|
|
287
|
-
|
|
287
|
+
//#region src/storage/resumable.d.ts
|
|
288
|
+
interface ResumableEndpointOptions {
|
|
289
|
+
/**
|
|
290
|
+
* On a hosted project, send the upload to the direct Storage host
|
|
291
|
+
* (`<project-ref>.storage.supabase.co`), which Supabase recommends for large
|
|
292
|
+
* files. Defaults to true; other hosts, such as a local stack or a custom
|
|
293
|
+
* domain, are kept.
|
|
294
|
+
*/
|
|
295
|
+
readonly direct?: boolean;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* The TUS endpoint for a signed resumable upload,
|
|
299
|
+
* `<storage>/upload/resumable/sign`. `url` is the project URL (`SUPABASE_URL`),
|
|
300
|
+
* the Storage URL (`.../storage/v1`) or a signed upload URL from
|
|
301
|
+
* `createSignedUploadUrl`.
|
|
302
|
+
*/
|
|
303
|
+
declare function resumableEndpoint(url: string, options?: ResumableEndpointOptions): string;
|
|
304
|
+
//#endregion
|
|
305
|
+
export { ConnectedRef as A, avatarBucket as C, BucketMap as D, BucketIdOf as E, StorageImageSize as F, storageImageSrcSet as I, storageImageUrl as L, StoredRef as M, defineBuckets as N, BucketWithId as O, StorageImageOptions as P, fromStorageError as R, OrganizationLogoBucketOptions as S, AnyBucket as T, defineAnalyticsBucket as _, VectorBucketConfig as a, ImageBucketOptions as b, VectorIndexClient as c, VectorQueryOptions as d, VectorRecord as f, AnalyticsCatalog as g, AnalyticsBucketClient as h, VectorBucketClient as i, ResolvedRef as j, Buckets as k, VectorIndexConfig as l, AnalyticsBucket as m, resumableEndpoint as n, VectorDistance as o, defineVectorBucket as p, VectorBucket as r, VectorHit as s, ResumableEndpointOptions as t, VectorMetadata as u, AvatarBucketOptions as v, organizationLogoBucket as w, ImageVariant as x, IMAGE_TYPES as y };
|
|
@@ -1,9 +1,57 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { $ as RecordRef, ot as SchemaMeta } from "./types-DFdg_4yN.js";
|
|
3
|
-
import { pt as QuerySpec } from "./define-
|
|
3
|
+
import { pt as QuerySpec } from "./define-C5AcEkEJ.js";
|
|
4
4
|
import { t as DataChanges } from "./data-engine-BWoz9lED.js";
|
|
5
|
-
import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-
|
|
5
|
+
import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-CZXHhZye.js";
|
|
6
|
+
import { n as TopicPort } from "./watch-topic-BAxoPKZx.js";
|
|
6
7
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
|
+
//#region src/realtime/relay.d.ts
|
|
9
|
+
/** The `EventSource` the relay client reads with; the browser's fits. */
|
|
10
|
+
interface RelayEventSource {
|
|
11
|
+
readonly readyState: number;
|
|
12
|
+
addEventListener(type: string, listener: (event: {
|
|
13
|
+
readonly data?: unknown;
|
|
14
|
+
}) => void): void;
|
|
15
|
+
close(): void;
|
|
16
|
+
}
|
|
17
|
+
type RelayEventSourceConstructor = new (url: string, init?: {
|
|
18
|
+
withCredentials?: boolean;
|
|
19
|
+
}) => RelayEventSource;
|
|
20
|
+
interface RelayClientOptions {
|
|
21
|
+
/** Defaults to the global `EventSource`. */
|
|
22
|
+
readonly EventSource?: RelayEventSourceConstructor;
|
|
23
|
+
/** `fetch` for broadcasts; defaults to the global one. */
|
|
24
|
+
readonly fetch?: typeof fetch;
|
|
25
|
+
/**
|
|
26
|
+
* Milliseconds to wait for the first join before reporting `TIMED_OUT`.
|
|
27
|
+
* Defaults to 15000.
|
|
28
|
+
*/
|
|
29
|
+
readonly timeoutMs?: number;
|
|
30
|
+
/** The longest wait between reconnects after the relay refused. Defaults to 30000. */
|
|
31
|
+
readonly maxBackoffMs?: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A Realtime client that joins topics through `realtimeRelay` on the server
|
|
35
|
+
* instead of a browser connection with the user's token: for support sessions
|
|
36
|
+
* ("view as user") and apps that keep sessions in httpOnly cookies. It has the
|
|
37
|
+
* `RealtimeClient` surface, so `defineTopic(...).subscribe`, `send`,
|
|
38
|
+
* `liveQuery`, `watchTopic` and the React hooks take it unchanged. Each topic
|
|
39
|
+
* is one server-sent event stream that reconnects on its own and reports a
|
|
40
|
+
* rejoin after a gap, so live queries refetch. Presence states arrive, but
|
|
41
|
+
* `track` answers `error`: presence is not relayed upstream.
|
|
42
|
+
*
|
|
43
|
+
* ```ts
|
|
44
|
+
* const realtime = relayRealtimeClient("/api/realtime");
|
|
45
|
+
* using sub = notifications.subscribe(realtime, { userId }, handlers);
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
declare function relayRealtimeClient(url: string, options?: RelayClientOptions): RealtimeClient;
|
|
49
|
+
/**
|
|
50
|
+
* The block controllers' realtime port over `realtimeRelay`:
|
|
51
|
+
* `topicPort(relayRealtimeClient(url, options))`.
|
|
52
|
+
*/
|
|
53
|
+
declare function relayTopicPort(url: string, options?: RelayClientOptions): TopicPort;
|
|
54
|
+
//#endregion
|
|
7
55
|
//#region src/realtime/subject-presence.d.ts
|
|
8
56
|
/** The presence topic template; the subjects module's policies authorize it. */
|
|
9
57
|
declare const SUBJECT_PRESENCE_TEMPLATE = "presence:{subjectType}:{subjectId}";
|
|
@@ -185,4 +233,4 @@ interface RealtimeChangesOptions {
|
|
|
185
233
|
*/
|
|
186
234
|
declare function realtimeChanges(betterSupabase: LiveSource, client: RealtimeClient, options?: RealtimeChangesOptions): DataChanges;
|
|
187
235
|
//#endregion
|
|
188
|
-
export { subjectPresenceValues as _, LiveSource as a, liveCount as c, realtimeChanges as d, SUBJECT_PRESENCE_TEMPLATE as f, subjectPresenceTopic as g, subjectPresence as h, LiveQueryOptions as i, liveQuery as l, SubjectPresenceValues as m, LiveCountOptions as n, LiveSubscription as o, SubjectPresenceTopic as p, LiveCountSeed as r, RealtimeChangesOptions as s, CountRunner as t, liveTopic as u };
|
|
236
|
+
export { relayTopicPort as S, subjectPresenceValues as _, LiveSource as a, RelayEventSourceConstructor as b, liveCount as c, realtimeChanges as d, SUBJECT_PRESENCE_TEMPLATE as f, subjectPresenceTopic as g, subjectPresence as h, LiveQueryOptions as i, liveQuery as l, SubjectPresenceValues as m, LiveCountOptions as n, LiveSubscription as o, SubjectPresenceTopic as p, LiveCountSeed as r, RealtimeChangesOptions as s, CountRunner as t, liveTopic as u, RelayClientOptions as v, relayRealtimeClient as x, RelayEventSource as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as AccessPolicySql } from "./types-DFdg_4yN.js";
|
|
2
2
|
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-HZdJCaVm.js";
|
|
3
|
-
import { tt as ReadSet } from "./define-
|
|
4
|
-
import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-
|
|
3
|
+
import { tt as ReadSet } from "./define-C5AcEkEJ.js";
|
|
4
|
+
import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-8kb8m5uO.js";
|
|
5
5
|
import { t as SubjectConfig } from "./subjects-DvmQeF_F.js";
|
|
6
6
|
//#region src/sql/render.d.ts
|
|
7
7
|
/** A module's SQL for `layout`, without header; `undefined` in custom mode. */
|
|
@@ -3,9 +3,9 @@ import { n as DbException } from "./escape-like-PReMbEEU.js";
|
|
|
3
3
|
import { f as Result, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
4
4
|
import { $ as RecordRef, K as Insert, O as AnyFunctions, Z as PrimaryKeyValue, ht as Update, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
|
|
5
5
|
import { o as EventHub } from "./events-vcqenSYU.js";
|
|
6
|
-
import { A as OffsetRangeArgs, Bt as Payload, C as GetKey, Dt as CountArgs, K as WriteArgs, Nt as ListArgs, O as OffsetPage, S as FindExt, St as AggregateResult, U as UpdateArgs, W as UpsertArgs, Zt as CacheAdapter, _ as CursorPageArgs, b as DeleteArgs, ft as InferResult, g as CursorPage, k as OffsetPageArgs, kt as GetArgs, pt as QuerySpec, t as BetterSupabase, v as Db, x as DeleteExt, yt as AggregateArgs, z as Returned } from "./define-
|
|
6
|
+
import { A as OffsetRangeArgs, Bt as Payload, C as GetKey, Dt as CountArgs, K as WriteArgs, Nt as ListArgs, O as OffsetPage, S as FindExt, St as AggregateResult, U as UpdateArgs, W as UpsertArgs, Zt as CacheAdapter, _ as CursorPageArgs, b as DeleteArgs, ft as InferResult, g as CursorPage, k as OffsetPageArgs, kt as GetArgs, pt as QuerySpec, t as BetterSupabase, v as Db, x as DeleteExt, yt as AggregateArgs, z as Returned } from "./define-C5AcEkEJ.js";
|
|
7
7
|
import { n as DataEngine, r as DataEngineOptions } from "./data-engine-BWoz9lED.js";
|
|
8
|
-
import { Dn as GeneratedBlocks, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, in as RecordBindingData, nn as AnyRecordBindingWrite, on as RecordBindingOptions, t as AnyBlock, tn as AnyRecordBinding, un as RecordBindingWriteInput } from "./define-block-
|
|
8
|
+
import { Dn as GeneratedBlocks, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, in as RecordBindingData, nn as AnyRecordBindingWrite, on as RecordBindingOptions, t as AnyBlock, tn as AnyRecordBinding, un as RecordBindingWriteInput } from "./define-block-C1RHXz7L.js";
|
|
9
9
|
import { t as BetterQueryMeta } from "./invalidate-DMp4eqfF.js";
|
|
10
10
|
import { DataTag, InfiniteData, QueryClient, SkipToken } from "@tanstack/query-core";
|
|
11
11
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|