better-supabase 0.16.0 → 0.17.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-BmkARmQ9.d.ts → ai-schedules-Dk9H3kAp.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/{api-hHwieEfz.d.ts → api-CpL3hm87.d.ts} +1 -1
- package/dist/{app-tables-D29Rahtg.js → app-tables-Q0TYfeih.js} +1 -0
- package/dist/{app-tables-yMQ4ubyY.d.ts → app-tables-dS02piE7.d.ts} +1 -1
- package/dist/astro/index.d.ts +3 -3
- package/dist/{authorization-HZdJCaVm.d.ts → authorization-CNsvnwle.d.ts} +19 -3
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-JGCPGUJh.d.ts → bind-C801IaK-.d.ts} +4 -4
- package/dist/{block-env-y65GF_px.d.ts → block-env-BeG4DiiO.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 +5 -5
- 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 +4 -3
- package/dist/blocks/created-by/index.js +2 -2
- 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 +5 -5
- 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 +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 +7 -4
- package/dist/blocks/updated-at/index.js +2 -2
- 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/workflow-editor/index.d.ts +4 -4
- package/dist/blocks/workflows/index.d.ts +4 -4
- package/dist/cli/{add-I8OW-qJH.js → add-BinNYhFD.js} +2 -2
- package/dist/cli/{add-D7TkPdco.js → add-DMcrsWjC.js} +13 -11
- package/dist/cli/add-z-3pXI6C.js +1 -0
- package/dist/cli/{backfill-DIz5DnlQ.js → backfill-DxBB62Zr.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-xk-SE8gS.js → blocks-DSgTifw0.js} +1 -1
- package/dist/cli/{blocks-Bp5RPoft.js → blocks-rxOS-Mzz.js} +1 -1
- package/dist/cli/{cache-AznIssjI.js → cache-oU0yHKf0.js} +1 -1
- package/dist/cli/{codemod-Aewxza6i.js → codemod-Dsrv_3gQ.js} +1 -1
- package/dist/cli/{config-9t5ec_N7.js → config-2rwFHbwj.js} +3 -1
- package/dist/cli/{config-CBqkQjjN.js → config-C6XylzKz.js} +1 -1
- package/dist/cli/{content-mapper-DCrz6OIv.js → content-mapper-DLbXilBz.js} +2 -2
- package/dist/cli/{db-DrBI_HNv.js → db-Bwrr3GHM.js} +2 -2
- package/dist/cli/{doctor-DkOSLPEQ.js → doctor-CKt5Yyl4.js} +184 -142
- package/dist/cli/{gen-CFkYUnWq.js → gen-CeG6lbka.js} +13 -13
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-CHj9ad4S.js → init-DrQlf9RL.js} +6 -6
- package/dist/cli/{live-DGdLR41j.js → live-BvWGM4c3.js} +2 -2
- package/dist/cli/{mcp-BZno503V.js → mcp-BrOnGB15.js} +2 -2
- package/dist/cli/{metadata-BfgHMe4q.js → metadata-BNSdPuKp.js} +3 -3
- package/dist/cli/{migration-safety-BnnXPAro.js → migration-safety-NtB3dsRU.js} +2 -2
- package/dist/cli/{module-migration-O_IxewFs.js → module-migration-mKhX88V_.js} +1 -1
- package/dist/cli/{print-DosQIFSy.js → print-Dh8iuPK3.js} +1 -1
- package/dist/cli/{remove-DK2G_KHm.js → remove-DfFXVBRr.js} +5 -5
- package/dist/cli/{render-5y5a1QZr.js → render-ChIwdIOJ.js} +10 -4
- package/dist/cli/{run-Bs4OKdDI.js → run-CLSHSVYo.js} +7 -7
- package/dist/cli/{run-MRET30vh.js → run-D48ZEU58.js} +24 -24
- package/dist/cli/{seed-Cz8PcXeT.js → seed-CG-pA-5N.js} +2 -2
- package/dist/cli/seed-CUxW5Dks.js +1 -0
- package/dist/cli/{shared-BLqbvY2x.js → shared-D0XBFSlz.js} +1 -1
- package/dist/cli/{snapshot-uTUlEzY2.js → snapshot-C6vh_n3t.js} +3 -3
- package/dist/cli/{source-D2gJHKwC.js → source-BZbEK5if.js} +1 -1
- package/dist/cli/{source-args-IpJRJO5t.js → source-args-MTLYpifA.js} +1 -1
- package/dist/cli/{spec-Cm2einTO.js → spec-B4LhpI6t.js} +2 -2
- package/dist/cli/{spec-DUjOtciN.js → spec-C-dhdKwa.js} +1 -1
- package/dist/cli/{sql-layout-lUWenjJw.js → sql-layout-26LSoifK.js} +2 -2
- package/dist/cli/{sync-CZMRB3aU.js → sync-CHGMZCJ5.js} +2 -2
- package/dist/cli/{upgrade-BFEIMC7U.js → upgrade-C0dVsqNX.js} +3 -3
- package/dist/cli/{upgrade-fVsJniXm.js → upgrade-GB9rqUGT.js} +2 -2
- package/dist/cli/{version-B2Dr6VmJ.js → version-T507a49w.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{composite-CfYyU3vs.d.ts → composite-B7f1MMgr.d.ts} +3 -3
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.js +4 -4
- package/dist/{config-DWGgUQCh.js → config-BVNNJwGC.js} +7 -6
- package/dist/{config-CcehOvbz.js → config-CIBc79_8.js} +1 -1
- package/dist/{context-8kb8m5uO.d.ts → context-CKCgjEDF.d.ts} +9 -2
- package/dist/{controller-BW-5Opig.d.ts → controller-CJUXhshv.d.ts} +1 -1
- package/dist/{conversion-3iv2r7YC.d.ts → conversion-DgHdDlTK.d.ts} +1 -1
- package/dist/create/index.d.ts +2 -2
- package/dist/create/index.js +5 -5
- package/dist/{define-C5AcEkEJ.d.ts → define-Cgru0_kF.d.ts} +1 -1
- package/dist/{define-block-C1RHXz7L.d.ts → define-block-Xxw8Hroe.d.ts} +1 -1
- package/dist/edge/index.d.ts +5 -5
- package/dist/{entitlements-sO977DO-.d.ts → entitlements-B0jmjNLD.d.ts} +1 -1
- package/dist/{executor-BcNWcD-4.d.ts → executor-BWFfz0ik.d.ts} +2 -2
- package/dist/expo/index.d.ts +2 -2
- package/dist/{extension-B-lajjex.js → extension-DTaHjwdc.js} +3 -2
- package/dist/{extension-B0EjCYhO.js → extension-mGylYROs.js} +2 -10
- package/dist/{field-errors-Dt86dCKk.d.ts → field-errors-DqlebtTE.d.ts} +6 -6
- package/dist/{framework-BGdZVyPL.d.ts → framework-CF6zFU7a.d.ts} +3 -3
- package/dist/hono/index.d.ts +4 -4
- package/dist/{index-CcAmFNVi.d.ts → index-B8YjrfVl.d.ts} +2 -2
- package/dist/{index-CENWq3zb.d.ts → index-BCeTYhFk.d.ts} +1 -1
- package/dist/{index-Craf712U.d.ts → index-ClMN0f98.d.ts} +9 -9
- package/dist/{index-DZKCc2WM.d.ts → index-DUxXdQN_.d.ts} +3 -3
- package/dist/{index-Cc4mIQS8.d.ts → index-Dbb7BQdi.d.ts} +9 -4
- package/dist/{index-CTu-3fJB.d.ts → index-lB-8iPmY.d.ts} +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/{instances-BHjCZoF8.js → instances-QOzIz9-q.js} +1 -1
- package/dist/list/index.d.ts +1 -1
- package/dist/{list-query-DYhgRTd5.d.ts → list-query-DxjuIHEL.d.ts} +1 -1
- package/dist/mapper/bin.js +6 -6
- package/dist/mcp/index.d.ts +4 -4
- package/dist/mcp/sdk/index.d.ts +2 -2
- package/dist/next/index.d.ts +14 -14
- package/dist/{operations-CSc_IsHO.d.ts → operations-Dc07aV_H.d.ts} +1 -1
- package/dist/{options-DChZoVfs.d.ts → options-B_NrjVDt.d.ts} +1 -0
- package/dist/{options-B2swWnJW.js → options-CCUaRLgd.js} +2 -1
- package/dist/{options-CM6-18FQ.d.ts → options-CDSCkYxu.d.ts} +1 -0
- package/dist/{options-C-dQHH5-.js → options-tSsUF0-7.js} +2 -1
- package/dist/orpc/index.d.ts +4 -4
- package/dist/otel/index.js +4 -4
- package/dist/{ports-mObLgH1z.d.ts → ports-DnpAuTvB.d.ts} +1 -1
- package/dist/powersync/index.d.ts +2 -2
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-CsHnIBJF.js → preset-BIANzB5p.js} +2 -2
- package/dist/{push-token-BSSvsWXZ.d.ts → push-token-C_mFkYfq.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +6 -6
- package/dist/react-router/index.d.ts +3 -3
- package/dist/realtime/index.d.ts +3 -3
- package/dist/{record-form-D9ILuVtA.d.ts → record-form-xWvVcb86.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/{resource-execute-Cpnob1Vj.d.ts → resource-execute-DqWfEc56.d.ts} +1 -1
- package/dist/{resource-types-pMeLs68X.d.ts → resource-types-BIoz_ElD.d.ts} +1 -1
- package/dist/{resources-7iq2-5_A.d.ts → resources-Bt2PDKE7.d.ts} +1 -1
- package/dist/server/index.d.ts +7 -7
- package/dist/{server-types-CK8mUIUT.d.ts → server-types-gR4Q1aM0.d.ts} +1 -1
- package/dist/{session-DWmFv3vB.d.ts → session-C1OuXbtN.d.ts} +1 -1
- package/dist/solid/index.d.ts +6 -6
- package/dist/solid-start/index.d.ts +3 -3
- package/dist/spec/index.d.ts +1 -1
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-Dl3Alk43.js → sql-ClTmzHs8.js} +72 -31
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/ssr/index.d.ts +1 -1
- package/dist/svelte/index.d.ts +6 -6
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/{tags-qvVk79pp.d.ts → tags-sM-CH9Mn.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-DOKIJI62.d.ts → tenant-DVvjw9H-.d.ts} +1 -1
- package/dist/testing/index.d.ts +7 -7
- package/dist/testing/index.js +3 -3
- package/dist/{timeline-CvTuXYvn.d.ts → timeline-BBfKuMVL.d.ts} +3 -3
- package/dist/{topic-CZXHhZye.d.ts → topic-BtLz-qTI.d.ts} +2 -2
- package/dist/{verify-CjvNLY7N.d.ts → verify-DEqY__0N.d.ts} +1 -1
- package/dist/vue/index.d.ts +6 -6
- package/dist/{watch-topic-BAxoPKZx.d.ts → watch-topic-tnfOTa3-.d.ts} +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +22 -0
- package/schemas/doctor-report-v1.json +1 -0
- package/dist/cli/add-Bfb_ISrO.js +0 -1
- package/dist/cli/seed-D6XijwbR.js +0 -1
|
@@ -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-Xxw8Hroe.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-CKCgjEDF.js";
|
|
3
|
+
import { a as DesignChange, p as DesignErrorCode, u as CreateDesign } from "../index-BCeTYhFk.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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as presetOf, d as resolvePreset } from "../config-
|
|
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-
|
|
3
|
-
import { c as resolveConfig } from "../config-
|
|
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-
|
|
5
|
-
import {
|
|
1
|
+
import { a as presetOf, d as resolvePreset } from "../config-CIBc79_8.js";
|
|
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-Q0TYfeih.js";
|
|
3
|
+
import { c as resolveConfig } from "../config-BVNNJwGC.js";
|
|
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-BIANzB5p.js";
|
|
5
|
+
import { L as SQL_MODULES, g as renderBlocks, i as moduleLayout } from "../sql-ClTmzHs8.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;
|
|
@@ -723,7 +723,7 @@ interface Repository<M extends AnyModels, T extends TableKey<M>, E = unknown> {
|
|
|
723
723
|
update(filter: RowFilter<M, T>, patch: Update<M, T>): AsyncResult<{
|
|
724
724
|
count: number;
|
|
725
725
|
}>;
|
|
726
|
-
update<const A extends ManyWriteArgs<M, T> & {
|
|
726
|
+
update<const A extends ManyWriteArgs<M, T> & Pick<WriteArgs<M, T>, "override"> & {
|
|
727
727
|
/** Update every visible row when `where` filters nothing. */
|
|
728
728
|
readonly allowAll?: boolean;
|
|
729
729
|
} & FindExt<E, M, T>>(filter: RowFilter<M, T>, patch: NoInfer<Update<M, T>>, args: A): AsyncResult<ManyResult<M, T, A>>;
|
|
@@ -13,7 +13,7 @@ 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-
|
|
16
|
+
import { u as BlockInstanceSurface } from "./define-Cgru0_kF.js";
|
|
17
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";
|
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-Cgru0_kF.js";
|
|
6
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-gR4Q1aM0.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-BIoz_ElD.js";
|
|
14
|
+
import { t as ResourceMap } from "../resources-Bt2PDKE7.js";
|
|
15
|
+
import { t as defineAction } from "../resource-execute-DqWfEc56.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-Cgru0_kF.js";
|
|
4
|
+
import { i as ListDefinition } from "./list-query-DxjuIHEL.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-Cgru0_kF.js";
|
|
3
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer, r as ContextOptions } from "../server-types-gR4Q1aM0.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";
|
|
@@ -14,8 +14,8 @@ function defaultActor(context) {
|
|
|
14
14
|
* stamp, like the block's `track_actor` trigger. Without an actor (anonymous
|
|
15
15
|
* requests) nothing is set.
|
|
16
16
|
*/
|
|
17
|
-
function createdByExtension(
|
|
18
|
-
const resolve =
|
|
17
|
+
function createdByExtension(extension = {}) {
|
|
18
|
+
const resolve = extension.resolve ?? defaultActor;
|
|
19
19
|
return definePlugin({
|
|
20
20
|
name: "actor",
|
|
21
21
|
beforeMutation(op, { table, context, options }) {
|
|
@@ -29,6 +29,7 @@ function createdByExtension(options = {}) {
|
|
|
29
29
|
updated,
|
|
30
30
|
impersonated
|
|
31
31
|
], "actor", options);
|
|
32
|
+
if (extension.stamp === "trigger") return op;
|
|
32
33
|
const id = resolve(context);
|
|
33
34
|
if (id === void 0) return op;
|
|
34
35
|
const impersonator = context.actor?.impersonator;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { r as definePlugin } from "./plugin-AKwwe2gF.js";
|
|
2
2
|
import { a as insertsOnly, c as withDefault, i as guardManaged, t as dbName } from "./extension-shared-Djm8mGHD.js";
|
|
3
3
|
//#region src/blocks/updated-at/extension.ts
|
|
4
|
-
|
|
5
|
-
* The `updated-at` block's repository extension. Stamps the columns generated
|
|
6
|
-
* as `Flags.timestamps`: `createdAt` on insert, `updatedAt` on insert and
|
|
7
|
-
* update. A call that sets either column fails with `invalid_request` unless it
|
|
8
|
-
* passes `{ override: true }`, which keeps the caller's values. The block's
|
|
9
|
-
* `track_updated_at` trigger covers writes that bypass the app, and every write
|
|
10
|
-
* when the runtime has no Temporal.
|
|
11
|
-
*/
|
|
12
|
-
function updatedAtExtension() {
|
|
4
|
+
function updatedAtExtension(extension = {}) {
|
|
13
5
|
return definePlugin({
|
|
14
6
|
name: "timestamps",
|
|
15
7
|
describe(api) {
|
|
@@ -25,7 +17,7 @@ function updatedAtExtension() {
|
|
|
25
17
|
const created = dbName(table, flags.createdAt);
|
|
26
18
|
const updated = dbName(table, flags.updatedAt);
|
|
27
19
|
guardManaged(op, [created, updated], "timestamps", options);
|
|
28
|
-
if (op.kind === "delete") return op;
|
|
20
|
+
if (op.kind === "delete" || extension.stamp === "trigger") return op;
|
|
29
21
|
const stamp = readClock(now);
|
|
30
22
|
if (stamp === void 0) return op;
|
|
31
23
|
switch (op.kind) {
|
|
@@ -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-
|
|
4
|
+
import { pt as QuerySpec } from "./define-Cgru0_kF.js";
|
|
5
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-Xxw8Hroe.js";
|
|
8
|
+
import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-BtLz-qTI.js";
|
|
9
|
+
import { t as ClientPorts } from "./ports-DnpAuTvB.js";
|
|
10
|
+
import { a as ClientAuth } from "./bind-C801IaK-.js";
|
|
11
|
+
import { a as LiveSource, r as LiveCountSeed } from "./index-lB-8iPmY.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";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
|
|
2
|
-
import { O as SessionSnapshot, c as ServerOptions } from "./server-types-
|
|
2
|
+
import { O as SessionSnapshot, c as ServerOptions } from "./server-types-gR4Q1aM0.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-C1OuXbtN.js";
|
|
5
|
+
import { n as BetterSupabaseContributions } from "./composite-B7f1MMgr.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 { O as SessionSnapshot, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer } from "../server-types-
|
|
4
|
+
import { t as BetterSupabase } from "../define-Cgru0_kF.js";
|
|
5
|
+
import { O as SessionSnapshot, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer } from "../server-types-gR4Q1aM0.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-BIoz_ElD.js";
|
|
11
|
+
import { t as defineAction } from "../resource-execute-DqWfEc56.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";
|
|
@@ -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-Cgru0_kF.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-Xxw8Hroe.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";
|
|
@@ -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-CKCgjEDF.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,19 +1,19 @@
|
|
|
1
1
|
import { b as DbError, f as Result, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { $ as RecordRef } from "./types-DFdg_4yN.js";
|
|
3
3
|
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "./events-vcqenSYU.js";
|
|
4
|
-
import { pt as QuerySpec } from "./define-
|
|
4
|
+
import { pt as QuerySpec } from "./define-Cgru0_kF.js";
|
|
5
5
|
import { A as TtlPreset, C as TransformOptions, E as UrlOptions, T as UploadOptions, l as ImageTransform, tt as TemplateValues, w as UploadBody } from "./bucket-vc-QRrva.js";
|
|
6
6
|
import { m as RejectedChange, o as DataSyncState } from "./data-engine-BWoz9lED.js";
|
|
7
|
-
import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-
|
|
8
|
-
import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-
|
|
9
|
-
import { t as AuthSnapshot } from "./bind-
|
|
7
|
+
import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-B8YjrfVl.js";
|
|
8
|
+
import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-BtLz-qTI.js";
|
|
9
|
+
import { t as AuthSnapshot } from "./bind-C801IaK-.js";
|
|
10
10
|
import { t as AuthSession } from "./view-DyFdMCqg.js";
|
|
11
|
-
import { r as LiveCountSeed, v as RelayClientOptions } from "./index-
|
|
12
|
-
import { n as Controller } from "./controller-
|
|
13
|
-
import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-
|
|
14
|
-
import { t as BlockEnv } from "./block-env-
|
|
11
|
+
import { r as LiveCountSeed, v as RelayClientOptions } from "./index-lB-8iPmY.js";
|
|
12
|
+
import { n as Controller } from "./controller-CJUXhshv.js";
|
|
13
|
+
import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-DqlebtTE.js";
|
|
14
|
+
import { t as BlockEnv } from "./block-env-BeG4DiiO.js";
|
|
15
15
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "./block-method-CiVa2G-J.js";
|
|
16
|
-
import { s as RecordFormValues, t as RecordForm } from "./record-form-
|
|
16
|
+
import { s as RecordFormValues, t as RecordForm } from "./record-form-xWvVcb86.js";
|
|
17
17
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
18
18
|
import { DependencyList, ReactNode, SubmitEvent } from "react";
|
|
19
19
|
import { QueryClient } from "@tanstack/query-core";
|
|
@@ -2,9 +2,9 @@ import { t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
|
2
2
|
import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
|
|
3
3
|
import { l as PublicEnv } from "./index-NRMMhhEi.js";
|
|
4
4
|
import { g as SessionEncoding } from "./resolve-CXX6DHv3.js";
|
|
5
|
-
import { t as BetterSupabase } from "./define-
|
|
6
|
-
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-
|
|
7
|
-
import { i as BindClientOptions, r as BetterClient } from "./bind-
|
|
5
|
+
import { t as BetterSupabase } from "./define-Cgru0_kF.js";
|
|
6
|
+
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-DnpAuTvB.js";
|
|
7
|
+
import { i as BindClientOptions, r as BetterClient } from "./bind-C801IaK-.js";
|
|
8
8
|
import { n as FunctionContract } from "./function-contract-DxFNOmsm.js";
|
|
9
9
|
import { FunctionInvokeOptions, SupabaseClient, SupabaseClientOptions } from "@supabase/supabase-js";
|
|
10
10
|
//#region src/client/functions.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as AccessPolicySql } from "./types-DFdg_4yN.js";
|
|
2
|
-
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-
|
|
3
|
-
import { 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-
|
|
2
|
+
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-CNsvnwle.js";
|
|
3
|
+
import { tt as ReadSet } from "./define-Cgru0_kF.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-CKCgjEDF.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. */
|
|
@@ -534,6 +534,11 @@ type PolicyCommand = "select" | "insert" | "update" | "delete";
|
|
|
534
534
|
* app has no policy for is the block's to grant.
|
|
535
535
|
*/
|
|
536
536
|
declare function widenedCommands(block: CatalogPolicy, apps: readonly CatalogPolicy[]): PolicyCommand[];
|
|
537
|
+
declare function appTablePolicyNotes(sql: string): {
|
|
538
|
+
readonly table: string;
|
|
539
|
+
readonly policy: string;
|
|
540
|
+
readonly commands: readonly PolicyCommand[];
|
|
541
|
+
}[];
|
|
537
542
|
/**
|
|
538
543
|
* The policies `sources` leave on each `schema.table` in `schemas`, in order: a
|
|
539
544
|
* later `drop policy` removes one, and a later `create policy` of the same name
|
|
@@ -543,4 +548,4 @@ declare function declaredPolicies(sources: readonly {
|
|
|
543
548
|
readonly text: string;
|
|
544
549
|
}[], schemas: readonly string[]): Record<string, CatalogPolicy[]>;
|
|
545
550
|
//#endregion
|
|
546
|
-
export {
|
|
551
|
+
export { moduleHidingColumns as $, expiredFlagsQuery as A, adoptedColumnProblems as B, declaredViews as C, renderBlocks as Ct, subjectColumns as D, rlsTables as E, dataExportPlan as F, appTablesFiles as G, adoptedViews as H, excludedColumns as I, SQL_MODULES as J, DEFAULT_ROLES as K, resolveExposeColumns as L, sameTenantTrigger as M, DataExportPlan as N, TenantQuery as O, SECRET_COLUMNS as P, moduleEventTriggers as Q, AdoptedTable as R, declaredUpdatedAtTriggers as S, moduleTopics as St, policyGrants as T, APP_TABLES_MARKER as U, adoptedTables as V, APP_TABLES_MODULE as W, BlockSqlExtension as X, resolveBlocks as Y, BlockSqlPermissionKey as Z, templateFunctions as _, moduleDeprecations as _t, scopePolicyName as a, sameBlockFile as at, declaredTableColumns as b, customContracts as bt, compileReadSet as c, EntityRenamePlan as ct, MigrationOptionUse as d, BLOCK_RENAMES as dt, modulePermissionKeys as et, migrationOptionUses as f, currentBlockName as ft, scopeProblems as g, InstalledBlock as gt, resolveProviderSql as h, BlockSqlUpgradePlan as ht, TENANT_SCOPE_POLICY as i, moduleFileVersion as it, sameTenantColumn as j, tenantsQuery as k, compileReadSets as l, EntityRenameStep as lt, SCOPE_ID_TYPES as m, renamedBlock as mt, declaredPolicies as n, blockFileState as nt, hasColumnAccess as o, moduleDataDir as ot, moduleLayout as p, formerBlockName as pt, instanceFunctions as q, widenedCommands as r, isModuleDataFile as rt, CompiledReadSet as s, moduleFilePaths as st, appTablePolicyNotes as t, moduleSchemaExtensions as tt, sharedRolesProblems as u, entityRenamePlan as ut, DeclaredView as v, upgradePlan as vt, extensionSchema as w, declaredTables as x, moduleBody as xt, PolicyGrant as y, BlockSqlTopic as yt, AdoptedView as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { $ as RecordRef, ot as SchemaMeta } from "./types-DFdg_4yN.js";
|
|
3
|
-
import { pt as QuerySpec } from "./define-
|
|
3
|
+
import { pt as QuerySpec } from "./define-Cgru0_kF.js";
|
|
4
4
|
import { t as DataChanges } from "./data-engine-BWoz9lED.js";
|
|
5
|
-
import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-
|
|
6
|
-
import { n as TopicPort } from "./watch-topic-
|
|
5
|
+
import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-BtLz-qTI.js";
|
|
6
|
+
import { n as TopicPort } from "./watch-topic-tnfOTa3-.js";
|
|
7
7
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
8
|
//#region src/realtime/relay.d.ts
|
|
9
9
|
/** The `EventSource` the relay client reads with; the browser's fits. */
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { $ as RecordRef, A as BucketMeta, At as NoExtension, B as FunctionMeta,
|
|
|
6
6
|
import { Ct as Events, O as BlockEventType, T as BlockEvent, a as EventHandler, bt as EventMap, c as MutationNotice, d as RpcNotice, i as ErrorEvent, l as QueryEvent, n as AuthOutageEvent, o as EventHub, r as BetterSupabaseEvents, s as EventName, t as AuthEvent, u as RefreshEvent } from "./events-vcqenSYU.js";
|
|
7
7
|
import { i as silentLogger, n as Logger, r as consoleLogger, t as LogFields } from "./logger-DWVYUmwi.js";
|
|
8
8
|
import { a as ProblemFormat, c as fromProblem, d as toProblem, i as ProblemDetails, l as isProblem, n as PROBLEM_CONTENT_TYPE, o as ProblemOptions, r as PROBLEM_TYPE_BASE, s as ProblemResponseOptions, t as BlockProblemOptions, u as problemResponse } from "./problem-DNwN8iGz.js";
|
|
9
|
-
import { $t as MemoryCache, A as OffsetRangeArgs, At as IncludeArg, B as RowFilter, Bt as Payload, C as GetKey, Ct as AggregateRow, Dt as CountArgs, E as ManyWriteArgs, Et as CountArg, Ft as MeasureKey, G as UpsertManyArgs, Gt as SortDirection, H as RpcOptions, Ht as RelationMeasureArg, It as MutableWhere, J as DbStats, Jt as WhereInput, K as WriteArgs, Kt as SortSpec, L as Repository, Lt as NumericMeasureArg, Mt as JsonPathOps, Nt as ListArgs, O as OffsetPage, Ot as FieldFilter, P as PageOf, Pt as MeasureArg, Q as SearchArgs, Qt as CacheTarget, R as RepositoryOf, Rt as OrderByArg, S as FindExt, St as AggregateResult, T as ManyResult, Tt as ColumnOrderByArg, U as UpdateArgs, Ut as RequestArgs, Vt as ReadArgs, W as UpsertArgs, Wt as SelectArg, X as StatsRecorder, Xt as BucketsHelper, Y as EMPTY_STATS, Yt as BucketRegistry, Z as recordStats, Zt as CacheAdapter, _ as CursorPageArgs, _t as isQuerySpec, a as explainPostgrest, at as ReadSetParamTypes, b as DeleteArgs, bt as AggregateOrderBy, c as RpcDefinition, ct as ReadSetResult, d as BlocksHelper, dt as readSetTables, en as cacheTargetOf, et as InferReadSetParams, f as DbBlockSource, ft as InferResult, g as CursorPage, gt as TableSpecs, h as ConflictTarget, ht as Specs, i as PostgrestExecutorOptions, it as ReadSetParamType, jt as IncludeArgs, k as OffsetPageArgs, kt as GetArgs, l as SupabaseOptions, lt as defineReadSet, m as DbOf, mt as ReadMethod, n as defineSupabase, nn as rowKey, nt as ReadSetAuth, o as postgrestExecutor, ot as ReadSetParamValue, p as DbExtras, pt as QuerySpec, q as WriteManyArgs, qt as WhereArg, r as PostgrestClientLike, rn as rpcCacheTargets, rt as ReadSetOptions, s as ConnectOptions, st as ReadSetParams, t as BetterSupabase, tn as memoryCache, tt as ReadSet, ut as isReadSet, v as Db, vt as specTables, wt as ColumnOrderBy, x as DeleteExt, xt as AggregateOrderByArg, y as DbHelpers, yt as AggregateArgs, z as Returned, zt as OrderByInput } from "./define-
|
|
9
|
+
import { $t as MemoryCache, A as OffsetRangeArgs, At as IncludeArg, B as RowFilter, Bt as Payload, C as GetKey, Ct as AggregateRow, Dt as CountArgs, E as ManyWriteArgs, Et as CountArg, Ft as MeasureKey, G as UpsertManyArgs, Gt as SortDirection, H as RpcOptions, Ht as RelationMeasureArg, It as MutableWhere, J as DbStats, Jt as WhereInput, K as WriteArgs, Kt as SortSpec, L as Repository, Lt as NumericMeasureArg, Mt as JsonPathOps, Nt as ListArgs, O as OffsetPage, Ot as FieldFilter, P as PageOf, Pt as MeasureArg, Q as SearchArgs, Qt as CacheTarget, R as RepositoryOf, Rt as OrderByArg, S as FindExt, St as AggregateResult, T as ManyResult, Tt as ColumnOrderByArg, U as UpdateArgs, Ut as RequestArgs, Vt as ReadArgs, W as UpsertArgs, Wt as SelectArg, X as StatsRecorder, Xt as BucketsHelper, Y as EMPTY_STATS, Yt as BucketRegistry, Z as recordStats, Zt as CacheAdapter, _ as CursorPageArgs, _t as isQuerySpec, a as explainPostgrest, at as ReadSetParamTypes, b as DeleteArgs, bt as AggregateOrderBy, c as RpcDefinition, ct as ReadSetResult, d as BlocksHelper, dt as readSetTables, en as cacheTargetOf, et as InferReadSetParams, f as DbBlockSource, ft as InferResult, g as CursorPage, gt as TableSpecs, h as ConflictTarget, ht as Specs, i as PostgrestExecutorOptions, it as ReadSetParamType, jt as IncludeArgs, k as OffsetPageArgs, kt as GetArgs, l as SupabaseOptions, lt as defineReadSet, m as DbOf, mt as ReadMethod, n as defineSupabase, nn as rowKey, nt as ReadSetAuth, o as postgrestExecutor, ot as ReadSetParamValue, p as DbExtras, pt as QuerySpec, q as WriteManyArgs, qt as WhereArg, r as PostgrestClientLike, rn as rpcCacheTargets, rt as ReadSetOptions, s as ConnectOptions, st as ReadSetParams, t as BetterSupabase, tn as memoryCache, tt as ReadSet, ut as isReadSet, v as Db, vt as specTables, wt as ColumnOrderBy, x as DeleteExt, xt as AggregateOrderByArg, y as DbHelpers, yt as AggregateArgs, z as Returned, zt as OrderByInput } from "./define-Cgru0_kF.js";
|
|
10
10
|
import { Q as StoragePath } from "./bucket-vc-QRrva.js";
|
|
11
11
|
import { a as PostgrestPlan, n as PlanLimit, o as compilePostgrest, r as PlanOrder, t as PlanFilter } from "./postgrest-z-T0l23T.js";
|
|
12
12
|
import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec, r as tableSchema, t as StandardJSONSchemaV1 } from "./table-schema-BlF6k62Q.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as entityNoun, i as entityNames, n as checkEntityName, s as tenantRename, t as DEFAULT_TENANT } from "./entity-naming-Dtyq5sKE.js";
|
|
2
|
-
import { E as PRESET_CATALOG, j as tenantNameOf } from "./app-tables-
|
|
2
|
+
import { E as PRESET_CATALOG, j as tenantNameOf } from "./app-tables-Q0TYfeih.js";
|
|
3
3
|
//#region src/config/defaults.ts
|
|
4
4
|
/**
|
|
5
5
|
* Every default `resolveConfig` fills in. Other modules (the SQL module
|
package/dist/list/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { _ as FilterRule, a as FilterDateValue, b as encodeFilterQuery, c as FilterFieldLabels, d as FilterLimits, f as FilterNode, g as FilterRelativeDate, h as FilterQuery, i as FilterCombinator, l as FilterFieldType, m as FilterOperatorSpec, n as FILTER_OPERATOR_LABELS, o as FilterField, p as FilterOperatorArity, r as FilterClock, s as FilterFieldInfo, t as FILTER_OPERATORS, u as FilterGroupNode, v as ListFilterConfig, y as decodeFilterQuery } from "../filter-query-BXLs72G9.js";
|
|
2
|
-
import { _ as UNSET, a as ListExtra, c as ListParseOptions, d as ListQuery, f as ListQueryConfig, g as ParserSpec, h as OpenApiParameter, i as ListDefinition, l as ListParseResult, m as ListSearchParams, n as FacetCounts, o as ListPage, p as ListQueryInput, r as FacetInfo, s as ListPagination, t as FacetCountFields, u as ListParsers, v as defineListQuery } from "../list-query-
|
|
2
|
+
import { _ as UNSET, a as ListExtra, c as ListParseOptions, d as ListQuery, f as ListQueryConfig, g as ParserSpec, h as OpenApiParameter, i as ListDefinition, l as ListParseResult, m as ListSearchParams, n as FacetCounts, o as ListPage, p as ListQueryInput, r as FacetInfo, s as ListPagination, t as FacetCountFields, u as ListParsers, v as defineListQuery } from "../list-query-DxjuIHEL.js";
|
|
3
3
|
import { n as FilterRecordField, r as evaluateFilterQuery, t as FilterEvaluation } from "../filter-evaluate-CPxeae5X.js";
|
|
4
4
|
export { FILTER_OPERATORS, FILTER_OPERATOR_LABELS, type FacetCountFields, type FacetCounts, type FacetInfo, type FilterClock, type FilterCombinator, type FilterDateValue, type FilterEvaluation, type FilterField, type FilterFieldInfo, type FilterFieldLabels, type FilterFieldType, type FilterGroupNode, type FilterLimits, type FilterNode, type FilterOperatorArity, type FilterOperatorSpec, type FilterQuery, type FilterRecordField, type FilterRelativeDate, type FilterRule, type ListDefinition, type ListExtra, type ListFilterConfig, type ListPage, type ListPagination, type ListParseOptions, type ListParseResult, type ListParsers, type ListQuery, type ListQueryConfig, type ListQueryInput, type ListSearchParams, type OpenApiParameter, type ParserSpec, UNSET, decodeFilterQuery, defineListQuery, encodeFilterQuery, evaluateFilterQuery };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as ValidationIssue, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { O as AnyFunctions, a as CountMode, it as Row, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
|
|
3
|
-
import { At as IncludeArg, Bt as Payload, Jt as WhereInput, O as OffsetPage, R as RepositoryOf, Rt as OrderByArg, S as FindExt, Wt as SelectArg, _ as CursorPageArgs, g as CursorPage, k as OffsetPageArgs, t as BetterSupabase } from "./define-
|
|
3
|
+
import { At as IncludeArg, Bt as Payload, Jt as WhereInput, O as OffsetPage, R as RepositoryOf, Rt as OrderByArg, S as FindExt, Wt as SelectArg, _ as CursorPageArgs, g as CursorPage, k as OffsetPageArgs, t as BetterSupabase } from "./define-Cgru0_kF.js";
|
|
4
4
|
import { c as FilterFieldLabels, h as FilterQuery, o as FilterField, r as FilterClock, s as FilterFieldInfo, v as ListFilterConfig } from "./filter-query-BXLs72G9.js";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
//#region src/list/list-query.d.ts
|
package/dist/mapper/bin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as VERSION } from "../cli/version-
|
|
2
|
-
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-
|
|
3
|
-
import { t as loadSnapshot } from "../cli/snapshot-
|
|
4
|
-
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-
|
|
5
|
-
import { i as discoverConfig, s as loadConfig } from "../cli/config-
|
|
1
|
+
import { t as VERSION } from "../cli/version-T507a49w.js";
|
|
2
|
+
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-oU0yHKf0.js";
|
|
3
|
+
import { t as loadSnapshot } from "../cli/snapshot-C6vh_n3t.js";
|
|
4
|
+
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-ChIwdIOJ.js";
|
|
5
|
+
import { i as discoverConfig, s as loadConfig } from "../cli/config-2rwFHbwj.js";
|
|
6
6
|
import { i as parseEnv, n as configEnvironment } from "../cli/env-DMgjB_4y.js";
|
|
7
|
-
import { s as schemaStampPath } from "../cli/content-mapper-
|
|
7
|
+
import { s as schemaStampPath } from "../cli/content-mapper-DLbXilBz.js";
|
|
8
8
|
import { existsSync, realpathSync } from "node:fs";
|
|
9
9
|
import { basename, dirname, join, resolve } from "node:path";
|
|
10
10
|
import { createHash } from "node:crypto";
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
|
|
2
|
-
import { t as OperationTable } from "../operations-
|
|
2
|
+
import { t as OperationTable } from "../operations-Dc07aV_H.js";
|
|
3
3
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
4
|
-
import { t as BetterSupabase } from "../define-
|
|
5
|
-
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-
|
|
4
|
+
import { t as BetterSupabase } from "../define-Cgru0_kF.js";
|
|
5
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-gR4Q1aM0.js";
|
|
6
6
|
import { r as GuardOptions } from "../respond-Dn1_YhC1.js";
|
|
7
7
|
import { D as ResourceOperation } from "../model-hwpvole9.js";
|
|
8
|
-
import { l as ResourceRouteOptions } from "../resource-types-
|
|
8
|
+
import { l as ResourceRouteOptions } from "../resource-types-BIoz_ElD.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
//#region src/mcp/dialect.d.ts
|
|
11
11
|
/**
|
package/dist/mcp/sdk/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { O as AnyFunctions, k as AnyModels } from "../../types-DFdg_4yN.js";
|
|
|
2
2
|
import { r as AuthState } from "../../resolve-CXX6DHv3.js";
|
|
3
3
|
import { i as CredentialRef, r as CredentialProvider } from "../../provider-CqwEOLCA.js";
|
|
4
4
|
import { i as SupabaseMcpScope, n as SupabaseMcpModule, r as SupabaseMcpPlatformModule, t as SupabaseMcpFeature } from "../../supabase-mcp-Z4vtsuoO.js";
|
|
5
|
-
import { t as BetterSupabase } from "../../define-
|
|
6
|
-
import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-
|
|
5
|
+
import { t as BetterSupabase } from "../../define-Cgru0_kF.js";
|
|
6
|
+
import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-gR4Q1aM0.js";
|
|
7
7
|
import { r as GuardOptions, t as AllowedCaller } from "../../respond-Dn1_YhC1.js";
|
|
8
8
|
import { AuthInfo, CallToolResult, Icon, InputRequiredResult, OAuthTokenVerifier, RegisteredTool, ScopeChallengeHandler, ServerContext, StandardSchemaWithJSON, ToolAnnotations } from "@modelcontextprotocol/server";
|
|
9
9
|
//#region src/mcp/sdk/sdk.d.ts
|
package/dist/next/index.d.ts
CHANGED
|
@@ -2,27 +2,27 @@ import { b as DbError, f as Result } from "../result-DZeA5KS6.js";
|
|
|
2
2
|
import { $ as RecordRef, O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
|
|
3
3
|
import { r as AuthState } from "../resolve-CXX6DHv3.js";
|
|
4
4
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
5
|
-
import { J as DbStats, Zt as CacheAdapter, pt as QuerySpec, t as BetterSupabase, tt as ReadSet } from "../define-
|
|
6
|
-
import { A as isSessionSnapshot, M as sessionCacheKey, O as SessionSnapshot, a as ServerContext, c as ServerOptions, j as issuedAtOf, k as authzVersionOf, l as SharedServer, n as BetterServer, r as ContextOptions } from "../server-types-
|
|
5
|
+
import { J as DbStats, Zt as CacheAdapter, pt as QuerySpec, t as BetterSupabase, tt as ReadSet } from "../define-Cgru0_kF.js";
|
|
6
|
+
import { A as isSessionSnapshot, M as sessionCacheKey, O as SessionSnapshot, a as ServerContext, c as ServerOptions, j as issuedAtOf, k as authzVersionOf, l as SharedServer, n as BetterServer, r as ContextOptions } from "../server-types-gR4Q1aM0.js";
|
|
7
7
|
import { n as Impersonator } from "../impersonation-YTa9dZUv.js";
|
|
8
8
|
import { n as AmrEntry, t as Aal } from "../mfa-oIOYTpvc.js";
|
|
9
|
-
import { S as BlockClientSource, on as RecordBindingOptions } from "../define-block-
|
|
10
|
-
import { M as BindingName, N as BindingOf, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "../index-
|
|
11
|
-
import { t as tenantOf } from "../tenant-
|
|
9
|
+
import { S as BlockClientSource, on as RecordBindingOptions } from "../define-block-Xxw8Hroe.js";
|
|
10
|
+
import { M as BindingName, N as BindingOf, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "../index-B8YjrfVl.js";
|
|
11
|
+
import { t as tenantOf } from "../tenant-DVvjw9H-.js";
|
|
12
12
|
import { n as toSession, t as AuthSession } from "../view-DyFdMCqg.js";
|
|
13
13
|
import { a as SupportPolicy, c as supportSessions, i as SupportOptions, o as SupportSessions, s as SupportStartRequest, t as ActiveSupport } from "../support-B4ZBVxt3.js";
|
|
14
|
-
import { t as AuthOutageHook } from "../session-
|
|
14
|
+
import { t as AuthOutageHook } from "../session-C1OuXbtN.js";
|
|
15
15
|
import { n as AuthKind, r as GuardOptions } from "../respond-Dn1_YhC1.js";
|
|
16
16
|
import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, r as ActionResult, t as ActionInput } from "../kit-DOwKpSkA.js";
|
|
17
|
-
import { c as ListParseOptions, m as ListSearchParams } from "../list-query-
|
|
18
|
-
import { r as LiveCountSeed, t as CountRunner } from "../index-
|
|
19
|
-
import { r as MembershipClaim } from "../entitlements-
|
|
20
|
-
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-
|
|
21
|
-
import { t as ResourceMap } from "../resources-
|
|
22
|
-
import { t as defineAction } from "../resource-execute-
|
|
17
|
+
import { c as ListParseOptions, m as ListSearchParams } from "../list-query-DxjuIHEL.js";
|
|
18
|
+
import { r as LiveCountSeed, t as CountRunner } from "../index-lB-8iPmY.js";
|
|
19
|
+
import { r as MembershipClaim } from "../entitlements-B0jmjNLD.js";
|
|
20
|
+
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-BIoz_ElD.js";
|
|
21
|
+
import { t as ResourceMap } from "../resources-Bt2PDKE7.js";
|
|
22
|
+
import { t as defineAction } from "../resource-execute-DqWfEc56.js";
|
|
23
23
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
|
|
24
|
-
import { i as tagFor, t as TagOptions } from "../tags-
|
|
25
|
-
import { c as RecordListCells, n as Timeline, o as RecordList, u as RecordListPage } from "../timeline-
|
|
24
|
+
import { i as tagFor, t as TagOptions } from "../tags-sM-CH9Mn.js";
|
|
25
|
+
import { c as RecordListCells, n as Timeline, o as RecordList, u as RecordListPage } from "../timeline-BBfKuMVL.js";
|
|
26
26
|
import { r as safeRedirectPath } from "../sign-in-BAjR49fq.js";
|
|
27
27
|
import { n as supportOf, t as SupportView } from "../support-view-BYOgwXsJ.js";
|
|
28
28
|
import { NextRequest } from "next/server.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as AuthorizationOperation } from "./authorization-
|
|
1
|
+
import { r as AuthorizationOperation } from "./authorization-CNsvnwle.js";
|
|
2
2
|
//#region src/core/operations.d.ts
|
|
3
3
|
/** Operations by name, as `authorization.operations` or a module's own defaults. */
|
|
4
4
|
type OperationTable = Readonly<Record<string, AuthorizationOperation>>;
|
|
@@ -3,7 +3,8 @@ import { n as blockOptions, r as option } from "./options-BMjcVuaI.js";
|
|
|
3
3
|
const createdBySqlOptions = blockOptions({
|
|
4
4
|
createdBy: option.string({ default: "created_by" }),
|
|
5
5
|
updatedBy: option.string({ default: "updated_by" }),
|
|
6
|
-
impersonatedBy: option.string({ default: "impersonated_by" })
|
|
6
|
+
impersonatedBy: option.string({ default: "impersonated_by" }),
|
|
7
|
+
stamp: option.unknown({ default: "client" })
|
|
7
8
|
});
|
|
8
9
|
//#endregion
|
|
9
10
|
export { createdBySqlOptions as t };
|
|
@@ -8,6 +8,7 @@ type CreatedBySqlOptions = {
|
|
|
8
8
|
readonly updatedBy?: string;
|
|
9
9
|
/** The admin behind an impersonated write; `track_actor` fills it. */
|
|
10
10
|
readonly impersonatedBy?: string;
|
|
11
|
+
readonly stamp?: "client" | "trigger";
|
|
11
12
|
};
|
|
12
13
|
//#endregion
|
|
13
14
|
export { CreatedBySqlOptions as t };
|
|
@@ -2,7 +2,8 @@ import { n as blockOptions, r as option } from "./options-BMjcVuaI.js";
|
|
|
2
2
|
//#region src/blocks/updated-at/options.ts
|
|
3
3
|
const updatedAtSqlOptions = blockOptions({
|
|
4
4
|
createdAt: option.string({ default: "created_at" }),
|
|
5
|
-
updatedAt: option.string({ default: "updated_at" })
|
|
5
|
+
updatedAt: option.string({ default: "updated_at" }),
|
|
6
|
+
stamp: option.unknown({ default: "client" })
|
|
6
7
|
});
|
|
7
8
|
//#endregion
|
|
8
9
|
export { updatedAtSqlOptions as t };
|
package/dist/orpc/index.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { b as DbError, f as Result } from "../result-DZeA5KS6.js";
|
|
|
2
2
|
import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
|
|
3
3
|
import { r as AuthState } from "../resolve-CXX6DHv3.js";
|
|
4
4
|
import { i as ProblemDetails } from "../problem-DNwN8iGz.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-Cgru0_kF.js";
|
|
6
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-gR4Q1aM0.js";
|
|
7
7
|
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-Dn1_YhC1.js";
|
|
8
8
|
import { c as ResourceLoaderContext, i as AuthorizeOptions } from "../kit-DOwKpSkA.js";
|
|
9
9
|
import { t as Validated } from "../shared-CRRfQAKG.js";
|
|
10
|
-
import { a as ResourceHandler } from "../resource-types-
|
|
10
|
+
import { a as ResourceHandler } from "../resource-types-BIoz_ElD.js";
|
|
11
11
|
import { i as RouteRateLimitRule, n as RateLimitVerdict, r as RateLimiter, t as RateLimitRouteOptions } from "../rate-limit-Bztf32cl.js";
|
|
12
|
-
import { t as Api } from "../api-
|
|
12
|
+
import { t as Api } from "../api-CpL3hm87.js";
|
|
13
13
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
14
14
|
import { AnySchema, BuilderWithMiddlewares, DecoratedMiddleware, DecoratedProcedure, MetaPlugin, ORPCError, Schema } from "@orpc/server";
|
|
15
15
|
//#region src/orpc/router.d.ts
|
package/dist/otel/index.js
CHANGED
|
@@ -40,9 +40,9 @@ function systemOf(executor) {
|
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
42
|
function otel(options = {}) {
|
|
43
|
-
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.
|
|
43
|
+
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.17.0");
|
|
44
44
|
let histogram;
|
|
45
|
-
if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.
|
|
45
|
+
if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.17.0")).createHistogram("db.client.operation.duration", {
|
|
46
46
|
unit: "s",
|
|
47
47
|
description: "Duration of database client operations.",
|
|
48
48
|
advice: { explicitBucketBoundaries: [
|
|
@@ -219,7 +219,7 @@ function otel(options = {}) {
|
|
|
219
219
|
* `betterSupabase.events`. Returns a function that stops listening.
|
|
220
220
|
*/
|
|
221
221
|
function traceAuth(betterSupabase, options = {}) {
|
|
222
|
-
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.
|
|
222
|
+
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.17.0");
|
|
223
223
|
const offAuth = betterSupabase.events.on("auth", (event) => {
|
|
224
224
|
const span = tracer.startSpan("auth.resolve", {
|
|
225
225
|
kind: SpanKind.INTERNAL,
|
|
@@ -257,7 +257,7 @@ function traceAuth(betterSupabase, options = {}) {
|
|
|
257
257
|
* an error status. Returns a function that stops listening.
|
|
258
258
|
*/
|
|
259
259
|
function traceBlockEvents(betterSupabase, options = {}) {
|
|
260
|
-
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.
|
|
260
|
+
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.17.0");
|
|
261
261
|
return betterSupabase.events.on("block", (event) => {
|
|
262
262
|
const attributes = {
|
|
263
263
|
...options.attributes,
|