better-supabase 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-DZJZTY6g.js → adapter-D4aNBxhm.js} +2 -2
- package/dist/api-3C0AWFeP.js +696 -0
- package/dist/{api-Cj4W_pqT.d.ts → api-CHObZL7m.d.ts} +1 -1
- package/dist/{app-tables-C5HjXs2k.d.ts → app-tables-BGzdnQm5.d.ts} +1 -1
- package/dist/astro/index.js +5 -5
- package/dist/blocks/access-requests/index.js +1 -1
- package/dist/blocks/activities/index.js +1 -1
- package/dist/blocks/agents/index.js +1 -1
- package/dist/blocks/ai-chat/index.js +1 -1
- package/dist/blocks/ai-keys/index.js +1 -1
- package/dist/blocks/announcements/index.js +1 -1
- package/dist/blocks/api-keys/index.js +1 -1
- package/dist/blocks/approvals/index.js +1 -1
- package/dist/blocks/assets/index.js +1 -1
- package/dist/blocks/assignment/index.js +1 -1
- package/dist/blocks/attachments/index.js +1 -1
- package/dist/blocks/audit/index.d.ts +1 -1
- package/dist/blocks/audit/index.js +1 -1
- package/dist/blocks/automations/index.js +1 -1
- package/dist/blocks/billable-time/index.js +1 -1
- package/dist/blocks/billing/index.js +2 -2
- package/dist/blocks/bookings/index.js +1 -1
- package/dist/blocks/bulk/index.js +1 -1
- package/dist/blocks/calendar/index.js +1 -1
- package/dist/blocks/catalog/index.js +1 -1
- package/dist/blocks/channels/index.js +1 -1
- package/dist/blocks/collections/index.js +1 -1
- package/dist/blocks/compliance/index.js +1 -1
- package/dist/blocks/connectors/index.js +1 -1
- package/dist/blocks/contacts/index.js +1 -1
- package/dist/blocks/content/index.js +1 -1
- package/dist/blocks/contracts/index.js +1 -1
- package/dist/blocks/courses/index.js +1 -1
- package/dist/blocks/custom-fields/index.js +1 -1
- package/dist/blocks/data-lifecycle/index.js +1 -1
- package/dist/blocks/deals/index.js +1 -1
- package/dist/blocks/dispatch/index.js +1 -1
- package/dist/blocks/documents/index.js +1 -1
- package/dist/blocks/domains/index.js +1 -1
- package/dist/blocks/donations/index.js +1 -1
- package/dist/blocks/drive/index.js +1 -1
- package/dist/blocks/employees/index.js +1 -1
- package/dist/blocks/enrichment/index.js +1 -1
- package/dist/blocks/enrollments/index.js +1 -1
- package/dist/blocks/expenses/index.js +1 -1
- package/dist/blocks/flags/index.js +1 -1
- package/dist/blocks/forecasts/index.js +1 -1
- package/dist/blocks/forms/index.js +1 -1
- package/dist/blocks/guests/index.js +1 -1
- package/dist/blocks/hiring/index.js +1 -1
- package/dist/blocks/imports/index.js +1 -1
- package/dist/blocks/inbox/index.js +1 -1
- package/dist/blocks/incidents/index.js +1 -1
- package/dist/blocks/index.js +2 -2
- package/dist/blocks/inventory/index.js +1 -1
- package/dist/blocks/invoices/index.js +1 -1
- package/dist/blocks/leases/index.js +1 -1
- package/dist/blocks/leave/index.js +1 -1
- package/dist/blocks/ledger/index.js +1 -1
- package/dist/blocks/mail-sync/index.js +1 -1
- package/dist/blocks/messaging/index.js +1 -1
- package/dist/blocks/metrics/index.js +1 -1
- package/dist/blocks/moderation/index.js +1 -1
- package/dist/blocks/notifications/index.js +3 -3
- package/dist/blocks/numbering/index.js +1 -1
- package/dist/blocks/oauth-server/index.js +1 -1
- package/dist/blocks/orders/index.js +1 -1
- package/dist/blocks/organizations/index.js +1 -1
- package/dist/blocks/outbox/index.js +1 -1
- package/dist/blocks/passes/index.js +1 -1
- package/dist/blocks/pipelines/index.js +1 -1
- package/dist/blocks/posts/index.js +1 -1
- package/dist/blocks/promotions/index.js +1 -1
- package/dist/blocks/push/index.js +1 -1
- package/dist/blocks/quotes/index.js +1 -1
- package/dist/blocks/reactions/index.js +1 -1
- package/dist/blocks/relations/index.js +1 -1
- package/dist/blocks/reminders/index.js +1 -1
- package/dist/blocks/reviews/index.js +1 -1
- package/dist/blocks/saved-views/index.js +1 -1
- package/dist/blocks/scores/index.js +1 -1
- package/dist/blocks/search/index.js +1 -1
- package/dist/blocks/security-events/index.js +1 -1
- package/dist/blocks/segments/index.js +1 -1
- package/dist/blocks/sequences/index.js +1 -1
- package/dist/blocks/service-accounts/index.js +1 -1
- package/dist/blocks/settings/index.js +1 -1
- package/dist/blocks/share-links/index.js +1 -1
- package/dist/blocks/shipments/index.js +1 -1
- package/dist/blocks/signatures/index.js +1 -1
- package/dist/blocks/signing-keys/index.js +1 -1
- package/dist/blocks/sla/index.js +1 -1
- package/dist/blocks/sso/index.js +1 -1
- package/dist/blocks/state-machine/index.js +1 -1
- package/dist/blocks/tags/index.js +1 -1
- package/dist/blocks/tasks/index.js +2 -2
- package/dist/blocks/teams/index.js +1 -1
- package/dist/blocks/templates/index.js +1 -1
- package/dist/blocks/time-tracking/index.js +1 -1
- package/dist/blocks/timeline/index.js +1 -1
- package/dist/blocks/trash/index.js +1 -1
- package/dist/blocks/vercel-marketplace/index.js +1 -1
- package/dist/blocks/versions/index.js +1 -1
- package/dist/blocks/waitlist/index.js +1 -1
- package/dist/blocks/webhooks/index.js +4 -4
- package/dist/blocks/workflow-editor/index.js +1 -1
- package/dist/blocks/workflows/index.js +1 -1
- package/dist/cli/{add-C0w-mVTQ.js → add-B6CQOt3A.js} +2 -2
- package/dist/cli/{add-BTDPjVGC.js → add-BXFzr0Wf.js} +9 -9
- package/dist/cli/add-w_HumDPX.js +1 -0
- package/dist/cli/{backfill-BDdBs6Ne.js → backfill-Dflp6JZk.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-Bs-lA-U_.js → blocks-CBH3N7Fy.js} +1 -1
- package/dist/cli/{blocks-CQLME-HQ.js → blocks-FtOIcUbu.js} +1 -1
- package/dist/cli/{cache-DDKao2Va.js → cache-61VwYKEv.js} +1 -1
- package/dist/cli/{codemod-Bjl998Do.js → codemod-CqPRa25J.js} +1 -1
- package/dist/cli/{content-mapper-DgSTl-DL.js → content-mapper-DGQQY5IA.js} +2 -2
- package/dist/cli/{doctor-CMLWbt44.js → doctor-BxxSO193.js} +19 -17
- package/dist/cli/{gen-D3VX8WdV.js → gen-D2cqqqTH.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-D6D6eWze.js → init-BnG1IE1y.js} +5 -5
- package/dist/cli/{live-C_xgTOfD.js → live-D26OWOAb.js} +2 -2
- package/dist/cli/{mcp-B0Irjbes.js → mcp-1l3C_GdB.js} +2 -2
- package/dist/cli/{metadata-cLXra-XB.js → metadata-DDfPBHwI.js} +3 -3
- package/dist/cli/{migration-safety-OUK-Afbb.js → migration-safety-CQbrfZIx.js} +1 -1
- package/dist/cli/{migrations-CHenMvl_.js → migrations-Ch5Uuvyj.js} +1 -1
- package/dist/cli/{module-migration-6V7vXWUK.js → module-migration-Dul1uTYX.js} +2 -2
- package/dist/cli/{powersync-D83yAFbl.js → powersync-CfT-tRx1.js} +2 -2
- package/dist/cli/powersync-Vmhw5c1N.js +1 -0
- package/dist/cli/{print-C0OmQyTu.js → print-CbPT4PTL.js} +2 -2
- package/dist/cli/{remove-BWlOngNT.js → remove-kDH1yxKZ.js} +5 -5
- package/dist/cli/{render-9m70qveo.js → render-0Vd7BaNA.js} +3 -3
- package/dist/cli/{run-gE4eAazR.js → run-Dafms0D2.js} +8 -8
- package/dist/cli/{run-He3M-ZRq.js → run-DxTd55Ug.js} +21 -21
- package/dist/cli/{shared-Cx2WFVWq.js → shared-BQAMXvwd.js} +1 -1
- package/dist/cli/{snapshot-CZb3uVKE.js → snapshot-B8K6gYjA.js} +2 -2
- package/dist/cli/{source-CrYSCdPZ.js → source-CXDyCWz5.js} +1 -1
- package/dist/cli/{spec-Cn5RhuQc.js → spec-BGsnTkIl.js} +2 -2
- package/dist/cli/{spec-D4b9ePuQ.js → spec-CaN7nOqI.js} +1 -1
- package/dist/cli/{sql-layout-CLJ67h3L.js → sql-layout-BGAlcp1U.js} +2 -2
- package/dist/cli/{sync-B8VGiaHk.js → sync-CT_5VG0E.js} +3 -3
- package/dist/cli/{upgrade-DMiYx1C8.js → upgrade-DA7aO88E.js} +2 -2
- package/dist/cli/{upgrade-BvBWK3Fo.js → upgrade-frUtPDDb.js} +4 -4
- package/dist/cli/{version-BVg2Z6yv.js → version-CUdPyV6J.js} +1 -1
- package/dist/{composite-Dw5ofSF_.js → composite-CBRbvn5j.js} +2 -2
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +4 -4
- package/dist/{config-CD2OGfCG.js → config-C9AOcQ9S.js} +1 -1
- package/dist/{config-BOt5T6Vs.js → config-CH-D2B-4.js} +3 -3
- package/dist/{context-sgrUjA3U.d.ts → context-DEisra3V.d.ts} +15 -3
- package/dist/create/index.d.ts +72 -451
- package/dist/create/index.js +15 -1687
- package/dist/create/lite/index.d.ts +250 -13
- package/dist/create/lite/index.js +1007 -24
- package/dist/credentials/index.js +1 -1
- package/dist/edge/index.js +7 -7
- package/dist/elysia/index.js +1 -1
- package/dist/events/index.js +1 -1
- package/dist/expo/index.js +3 -3
- package/dist/{framework-DXM1vNcV.js → framework-DYEUraqt.js} +1 -1
- package/dist/h3/index.js +1 -1
- package/dist/h3/v1/index.js +1 -1
- package/dist/hono/index.js +6 -6
- package/dist/{index-5JSxY1MG.d.ts → index-3p_oWttZ.d.ts} +77 -2
- package/dist/{index-Bt7_mxn0.d.ts → index-CM2aGNRo.d.ts} +1 -1
- package/dist/{app-tables-DyswUg6J.js → instances-CK0jR3Pc.js} +147 -3
- package/dist/{kit-DhlB-vv_.js → kit-Bcd9wYCV.js} +1 -1
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.js +6 -6
- package/dist/mcp/sdk/index.js +2 -2
- package/dist/nestjs/index.js +1 -1
- package/dist/next/index.js +7 -7
- package/dist/node/index.js +1 -1
- package/dist/orpc/index.d.ts +1 -1
- package/dist/orpc/index.js +5 -5
- package/dist/otel/index.js +4 -4
- package/dist/preset/index.d.ts +4 -4
- package/dist/preset/index.js +4 -4
- package/dist/{preset-B3CukUhu.js → preset-CS490mYJ.js} +179 -7
- package/dist/project-NmP1NdLi.js +1760 -0
- package/dist/react/index.js +2 -2
- package/dist/react/server.js +2 -2
- package/dist/{react-_D_CeZMk.js → react-CcrQQl0_.js} +2 -2
- package/dist/react-router/index.js +5 -5
- package/dist/realtime/index.js +1 -1
- package/dist/{refusal-D48CMqpQ.js → refusal-DDlInPff.js} +2 -2
- package/dist/{instances-DDt7NdVl.js → resolved-names-DdlJzoMK.js} +2 -146
- package/dist/{resource-R3KToNze.js → resource-BUJcZKiW.js} +2 -2
- package/dist/{resources-DqIwoQsP.js → resources-jb3R6rEa.js} +1 -1
- package/dist/server/index.js +7 -7
- package/dist/{sign-in-1FJiXXyG.js → sign-in-NO7LWlw4.js} +2 -2
- package/dist/solid/index.js +1 -1
- package/dist/solid-start/index.js +5 -5
- package/dist/spec/index.d.ts +2 -2
- package/dist/spec/index.js +2 -693
- package/dist/sql/index.d.ts +3 -3
- package/dist/sql/index.js +2 -2
- package/dist/{sql-BjjgwJKg.js → sql-BMXEHTvr.js} +17 -3
- package/dist/svelte/index.js +1 -1
- package/dist/sveltekit/index.js +5 -5
- package/dist/tanstack-start/index.js +5 -5
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +4 -4
- package/dist/types-BC1HLEVx.d.ts +461 -0
- package/dist/vue/index.js +1 -1
- package/dist/yjs/index.js +1 -1
- package/package.json +1 -1
- package/dist/cli/add-CspY9jKT.js +0 -1
- package/dist/cli/powersync-DwhCH0gs.js +0 -1
- package/dist/types-DGHfTW8_.d.ts +0 -9
- package/dist/{build-CM8PJqwW.js → build-CH2N3Yf0.js} +3 -3
- package/dist/{create-blocks-CUS28FfS.js → create-blocks-BfrDUSM6.js} +1 -1
- package/dist/{data-hooks-tgF1Ct0F.js → data-hooks-CdcZfVS1.js} +1 -1
- package/dist/{respond-3RKp6VgU.js → respond-CZMWbUs3.js} +1 -1
- package/dist/{topic-J9I3yu6f.js → topic-DClSoqY7.js} +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
+
import { n as event, t as defineEvents } from "../event-map-CtPFhcOp.js";
|
|
3
4
|
import { U as rpcTransport, V as dbTransport, W as sqlTransport, o as blockCall } from "../block-helpers-B0f0ZVb5.js";
|
|
4
5
|
import { a as tenantCredentialRef, i as subjectFor, n as credentialRefInTenant, r as foreignCredentialRef } from "../provider-B6g7rBZX.js";
|
|
5
|
-
import { n as event, t as defineEvents } from "../event-map-CtPFhcOp.js";
|
|
6
6
|
import { n as hmacHex, r as timingSafeEqual } from "../hmac-B3CTTlfv.js";
|
|
7
7
|
import { o as verifySharedSecret, s as verifyWebhook } from "../signatures-CX1b4WHa.js";
|
|
8
8
|
import { n as revokeIfConfigured, t as credentialRouter } from "../compose-DKW0Tr3e.js";
|
package/dist/edge/index.js
CHANGED
|
@@ -2,15 +2,15 @@ import { n as dbError } from "../errors-BVFgt8BZ.js";
|
|
|
2
2
|
import { a as ok, r as err } from "../result-ntFBW2p2.js";
|
|
3
3
|
import { n as validate } from "../standard-BA3mLh6w.js";
|
|
4
4
|
import { o as problemResponse } from "../problem-Bf0cJ7tk.js";
|
|
5
|
-
import { a as unexpectedResponse, c as extendServer, o as withFlush, s as createServer } from "../adapter-
|
|
6
|
-
import { n as defaultExpose, o as respond, s as settle } from "../respond-
|
|
7
|
-
import { t as withBetterSupabase } from "../composite-
|
|
8
|
-
import { i as defineAction } from "../resource-
|
|
9
|
-
import { i as requireCaller } from "../kit-
|
|
5
|
+
import { a as unexpectedResponse, c as extendServer, o as withFlush, s as createServer } from "../adapter-D4aNBxhm.js";
|
|
6
|
+
import { n as defaultExpose, o as respond, s as settle } from "../respond-CZMWbUs3.js";
|
|
7
|
+
import { t as withBetterSupabase } from "../composite-CBRbvn5j.js";
|
|
8
|
+
import { i as defineAction } from "../resource-BUJcZKiW.js";
|
|
9
|
+
import { i as requireCaller } from "../kit-Bcd9wYCV.js";
|
|
10
10
|
import { t as withExtra } from "../extra-CGQ2_q3S.js";
|
|
11
|
-
import { n as resourceRouter } from "../resources-
|
|
11
|
+
import { n as resourceRouter } from "../resources-jb3R6rEa.js";
|
|
12
12
|
import { n as corsConfig, t as SUPABASE_CORS_HEADERS } from "../cors-h_v7TPxl.js";
|
|
13
|
-
import { t as EVERY_CALLER } from "../framework-
|
|
13
|
+
import { t as EVERY_CALLER } from "../framework-DYEUraqt.js";
|
|
14
14
|
import { t as FUNCTION_DESCRIPTOR } from "../function-contract-pEmsaUIf.js";
|
|
15
15
|
import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
|
|
16
16
|
import { withCors } from "@supabase/middleware/cors";
|
package/dist/elysia/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as around } from "../shared-Bf-I13Ht.js";
|
|
2
|
-
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-
|
|
2
|
+
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-DDlInPff.js";
|
|
3
3
|
import { bufferRequest } from "@supabase/middleware";
|
|
4
4
|
//#region src/bridges/elysia.ts
|
|
5
5
|
/**
|
package/dist/events/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { s as nowInstant } from "../temporal-Dbo0fLzc.js";
|
|
2
|
-
import { t as onBlockEvent } from "../block-event-listener-Bu6G0TFH.js";
|
|
3
2
|
import { i as forwardBlockEvents, n as blockCloudEvent, r as dataschemaOf } from "../cloud-event-XsM53POL.js";
|
|
4
3
|
import { t as jsonReplacer } from "../json-DaByVJpw.js";
|
|
5
4
|
import { n as event, r as mergeEvents, t as defineEvents } from "../event-map-CtPFhcOp.js";
|
|
5
|
+
import { t as onBlockEvent } from "../block-event-listener-Bu6G0TFH.js";
|
|
6
6
|
import { a as emitBlockEvent, i as blockEventAttributes, n as BLOCK_EVENT_RENAMES, t as BLOCK_ATTRIBUTES } from "../block-events-IWAyafO3.js";
|
|
7
7
|
//#region src/events/index.ts
|
|
8
8
|
const ROW_EVENT_TYPES = {
|
package/dist/expo/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as DbException } from "../db-exception-Lngc1W49.js";
|
|
2
2
|
import { c as toProblem } from "../problem-Bf0cJ7tk.js";
|
|
3
|
-
import { a as unexpectedResponse, b as isPrefetch, c as extendServer, s as createServer, x as refreshFor } from "../adapter-
|
|
3
|
+
import { a as unexpectedResponse, b as isPrefetch, c as extendServer, s as createServer, x as refreshFor } from "../adapter-D4aNBxhm.js";
|
|
4
4
|
import { h as serializeCookie } from "../resolve-B0mW2m7f.js";
|
|
5
|
-
import { i as guard, n as defaultExpose, o as respond } from "../respond-
|
|
6
|
-
import { t as withBetterSupabase } from "../composite-
|
|
5
|
+
import { i as guard, n as defaultExpose, o as respond } from "../respond-CZMWbUs3.js";
|
|
6
|
+
import { t as withBetterSupabase } from "../composite-CBRbvn5j.js";
|
|
7
7
|
import { r as handoffOf } from "../shared-Bf-I13Ht.js";
|
|
8
8
|
import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
|
|
9
9
|
import { StatusError, setResponseHeaders } from "expo-server";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as snapshotOf, n as toSession } from "./view-C8Ve14ja.js";
|
|
2
|
-
import { t as withBetterSupabase } from "./composite-
|
|
2
|
+
import { t as withBetterSupabase } from "./composite-CBRbvn5j.js";
|
|
3
3
|
//#region src/server/framework.ts
|
|
4
4
|
/**
|
|
5
5
|
* Every caller: the framework factories guard per loader, action or route
|
package/dist/h3/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as toResponse, i as nitroCloudflareEnv, n as bufferInPlace, t as around } from "../shared-Bf-I13Ht.js";
|
|
2
|
-
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-
|
|
2
|
+
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-DDlInPff.js";
|
|
3
3
|
//#region src/bridges/h3.ts
|
|
4
4
|
/**
|
|
5
5
|
* Runs an entry array as H3 2 middleware (`app.use(...)`, Nitro and Nuxt server
|
package/dist/h3/v1/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../../refusal-
|
|
1
|
+
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../../refusal-DDlInPff.js";
|
|
2
2
|
import { t as beforeRoute } from "../../before-route-B23K2zYU.js";
|
|
3
3
|
import { n as headRequest, t as applyWebHeaders } from "../../node-headers-C71zNQHe.js";
|
|
4
4
|
//#region src/h3/v1/index.ts
|
package/dist/hono/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as dbErrorOf } from "../errors-BVFgt8BZ.js";
|
|
2
2
|
import { o as problemResponse } from "../problem-Bf0cJ7tk.js";
|
|
3
|
-
import { a as unexpectedResponse, c as extendServer, n as flushEvents, s as createServer } from "../adapter-
|
|
3
|
+
import { a as unexpectedResponse, c as extendServer, n as flushEvents, s as createServer } from "../adapter-D4aNBxhm.js";
|
|
4
4
|
import { l as snapshotOf, n as toSession } from "../view-C8Ve14ja.js";
|
|
5
|
-
import { n as defaultExpose, o as respond, t as assertCookieRefresh } from "../respond-
|
|
6
|
-
import { t as withBetterSupabase } from "../composite-
|
|
7
|
-
import { i as defineAction, t as defineResource } from "../resource-
|
|
8
|
-
import { i as requireCaller } from "../kit-
|
|
9
|
-
import { t as matchResource } from "../resources-
|
|
5
|
+
import { n as defaultExpose, o as respond, t as assertCookieRefresh } from "../respond-CZMWbUs3.js";
|
|
6
|
+
import { t as withBetterSupabase } from "../composite-CBRbvn5j.js";
|
|
7
|
+
import { i as defineAction, t as defineResource } from "../resource-BUJcZKiW.js";
|
|
8
|
+
import { i as requireCaller } from "../kit-Bcd9wYCV.js";
|
|
9
|
+
import { t as matchResource } from "../resources-jb3R6rEa.js";
|
|
10
10
|
import { r as handoffOf } from "../shared-Bf-I13Ht.js";
|
|
11
11
|
import { n as corsConfig } from "../cors-h_v7TPxl.js";
|
|
12
12
|
import { t as rateLimitGate } from "../rate-limit-BWKGlhTM.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig,
|
|
1
|
+
import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig, cr as AppColumnType, di as Preset, hr as AppTableConfig, oi as PresetGlueItem, or as AppColumnConfig, ri as PresetCatalog, vt as presetConfig } from "./context-DEisra3V.js";
|
|
2
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
//#region src/preset/catalog.generated.d.ts
|
|
4
4
|
declare const PRESET_CATALOG: PresetCatalog;
|
|
@@ -14,6 +14,8 @@ declare function appDefaultError(column: Pick<AppColumnConfig, "type" | "options
|
|
|
14
14
|
declare function isAppDefault(type: AppColumnType, value: string): boolean;
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/preset/design.d.ts
|
|
17
|
+
/** Where Create links point. */
|
|
18
|
+
declare const CREATE_URL = "https://app.bettersupabase.com/create";
|
|
17
19
|
/**
|
|
18
20
|
* A design from the `/create` canvas (ADR 0040): the preset (its name, or its
|
|
19
21
|
* conventions and blocks), tables the app owns, extra columns on block tables,
|
|
@@ -157,6 +159,17 @@ declare function designConfig(resolved: ResolvedPreset, design: CreateDesign): R
|
|
|
157
159
|
* design file (`designFileSource`) instead.
|
|
158
160
|
*/
|
|
159
161
|
declare function createUrl(resolved: ResolvedPreset, design?: CreateDesign): Promise<string>;
|
|
162
|
+
/**
|
|
163
|
+
* The query `/create` and its routes read a selection from: `preset=<name>` for
|
|
164
|
+
* a named preset without a design, otherwise `design=<code>` with the preset
|
|
165
|
+
* inside the design. Throws a `DesignTooLongError` when the design is too long
|
|
166
|
+
* for a link.
|
|
167
|
+
*/
|
|
168
|
+
declare function createQuery(preset: Preset, design?: CreateDesign): Promise<string>;
|
|
169
|
+
/** The value `--preset` takes for a `createQuery`: the name, or the quoted URL. */
|
|
170
|
+
declare function presetArgumentOf(query: string): string;
|
|
171
|
+
/** A string that is equal for equal presets, for comparing selections. */
|
|
172
|
+
declare function presetKey(preset: Preset): string;
|
|
160
173
|
/**
|
|
161
174
|
* `better-supabase.config.ts` for a preset and an optional design: every block
|
|
162
175
|
* with its reason, the conventions that differ from the defaults and the app
|
|
@@ -259,4 +272,66 @@ declare function presetGlue(resolved: ResolvedPreset, catalog?: PresetCatalog):
|
|
|
259
272
|
/** The shadcn command that copies glue items into the app. */
|
|
260
273
|
declare function glueCommand(items: readonly PresetGlueItem[]): string;
|
|
261
274
|
//#endregion
|
|
262
|
-
|
|
275
|
+
//#region src/preset/instances.d.ts
|
|
276
|
+
/** Whether a preset can install `block` a second time, under another name. */
|
|
277
|
+
declare function canAddInstance(block: string): boolean;
|
|
278
|
+
/**
|
|
279
|
+
* What `block` requires, at every access level: the dependencies `uses` must
|
|
280
|
+
* name.
|
|
281
|
+
*/
|
|
282
|
+
declare function blockRequires(block: string, catalog?: PresetCatalog): readonly string[];
|
|
283
|
+
/** The blocks a preset installs, by name. */
|
|
284
|
+
declare function installedBlocks(preset: Preset): ReadonlySet<string>;
|
|
285
|
+
/** One `preset.instances` entry. */
|
|
286
|
+
type PresetInstance = NonNullable<Preset["instances"]>[string];
|
|
287
|
+
/** One of a block's entities that an instance can rename. */
|
|
288
|
+
interface BlockEntity {
|
|
289
|
+
readonly key: string;
|
|
290
|
+
/** The logical table that holds it. */
|
|
291
|
+
readonly table: string;
|
|
292
|
+
readonly singular: string;
|
|
293
|
+
/** A second instance of the block has to rename it. */
|
|
294
|
+
readonly required: boolean;
|
|
295
|
+
}
|
|
296
|
+
/** An installed instance: the block's own one, or another named one. */
|
|
297
|
+
interface BlockInstance {
|
|
298
|
+
readonly name: string;
|
|
299
|
+
readonly block: string;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* The entities `block` lets an instance rename; the tenant is renamed by
|
|
303
|
+
* `tenantName`.
|
|
304
|
+
*/
|
|
305
|
+
declare function blockEntities(block: string): readonly BlockEntity[];
|
|
306
|
+
/** The block `instance` installs. */
|
|
307
|
+
declare function instanceBlock(preset: Preset, instance: string): string;
|
|
308
|
+
/**
|
|
309
|
+
* Every instance the preset installs: each installed block under its own name,
|
|
310
|
+
* then each `instances` entry that installs a block under another name.
|
|
311
|
+
*/
|
|
312
|
+
declare function presetInstances(preset: Preset): readonly BlockInstance[];
|
|
313
|
+
/** The instances of `block`, its own one first when the preset selects it. */
|
|
314
|
+
declare function instancesOf(preset: Preset, block: string): readonly BlockInstance[];
|
|
315
|
+
/** The name `instance` gives `entity`, or undefined when it keeps the default. */
|
|
316
|
+
declare function entityName(preset: Preset, instance: string, entity: string): string | undefined;
|
|
317
|
+
/**
|
|
318
|
+
* The preset with `instance` naming `entity` `name`; undefined, or the entity's
|
|
319
|
+
* default, goes back to the default. An entry left empty is dropped.
|
|
320
|
+
*/
|
|
321
|
+
declare function withEntityName(preset: Preset, instance: string, entity: string, name: string | undefined): Preset;
|
|
322
|
+
/** Why `name` can't name a new instance, or undefined when it can. */
|
|
323
|
+
declare function instanceNameProblem(preset: Preset, name: string): string | undefined;
|
|
324
|
+
/**
|
|
325
|
+
* The preset with `name` set to `instance`: a new instance, or new settings for
|
|
326
|
+
* one already there. `instance.block` defaults to `name`.
|
|
327
|
+
*/
|
|
328
|
+
declare function withInstance(preset: Preset, name: string, instance: PresetInstance): Preset;
|
|
329
|
+
/**
|
|
330
|
+
* The preset without the instance `name`: its entry, the `uses` entries of
|
|
331
|
+
* other instances that pointed at it, and the ones a dependency left with one
|
|
332
|
+
* instance no longer needs. A block's own instance is removed by deselecting
|
|
333
|
+
* the block instead.
|
|
334
|
+
*/
|
|
335
|
+
declare function withoutInstance(preset: Preset, name: string): Preset;
|
|
336
|
+
//#endregion
|
|
337
|
+
export { readDesignFile as $, DesignFile as A, designFileSource as B, diffAppTables as C, DESIGN_FILE as D, CreateDesign as E, MAX_DESIGN_CODE_LENGTH as F, isDesignCode as G, designOf as H, createQuery as I, presetApplyCommand as J, parseDesign as K, createUrl as L, DesignParseIssue as M, DesignParseResult as N, DESIGN_FORMAT as O, DesignTooLongError as P, presetKey as Q, decodeDesign as R, DiffOptions as S, CREATE_URL as T, designSchema as U, designFormat as V, encodeDesign as W, presetConfigSource as X, presetArgumentOf as Y, presetInstallCommand as Z, glueCommand as _, blockRequires as a, DesignChange as b, installedBlocks as c, instancesOf as d, safeDesignFileSource as et, presetInstances as f, PROVIDER_COMMENT as g, withoutInstance as h, blockEntities as i, PRESET_CATALOG as it, DesignParseError as j, DesignErrorCode as k, instanceBlock as l, withInstance as m, BlockInstance as n, appDefaultError as nt, canAddInstance as o, withEntityName as p, presetAndDesignOf as q, PresetInstance as r, isAppDefault as rt, entityName as s, BlockEntity as t, safeParseDesign as tt, instanceNameProblem as u, presetBlocksSource as v, diffDesigns as w, DesignChangeKind as x, presetGlue as y, designConfig as z };
|
|
@@ -1,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-DhoA7dsD.js";
|
|
3
3
|
import { nt as ReadSet } from "./define-Lf6rI2QN.js";
|
|
4
|
-
import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-
|
|
4
|
+
import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-DEisra3V.js";
|
|
5
5
|
import { t as SubjectConfig } from "./subjects-DvmQeF_F.js";
|
|
6
6
|
//#region src/sql/render.d.ts
|
|
7
7
|
/** A module's SQL for `layout`, without header; `undefined` in custom mode. */
|
|
@@ -24,13 +24,13 @@ function asBlocksConfig(blocks) {
|
|
|
24
24
|
* block names, which renames nothing.
|
|
25
25
|
*/
|
|
26
26
|
function tenantNameOf(blocks) {
|
|
27
|
-
if (blocks === void 0 || isNameList(blocks)) return;
|
|
27
|
+
if (blocks === void 0 || isNameList$1(blocks)) return;
|
|
28
28
|
const entities = blocks["memberships"]?.entities;
|
|
29
29
|
if (entities === void 0 || typeof entities === "string") return;
|
|
30
30
|
const value = entities["organization"];
|
|
31
31
|
return typeof value === "string" ? value : value?.name;
|
|
32
32
|
}
|
|
33
|
-
function isNameList(blocks) {
|
|
33
|
+
function isNameList$1(blocks) {
|
|
34
34
|
return Array.isArray(blocks);
|
|
35
35
|
}
|
|
36
36
|
const MODULE_SCHEMA = "better_supabase";
|
|
@@ -16356,4 +16356,148 @@ function versionsEntry(table) {
|
|
|
16356
16356
|
return versions === void 0 ? {} : { versions };
|
|
16357
16357
|
}
|
|
16358
16358
|
//#endregion
|
|
16359
|
-
|
|
16359
|
+
//#region src/config/instances.ts
|
|
16360
|
+
/**
|
|
16361
|
+
* Blocks that install once: they hold the app's identity, tenancy, access and
|
|
16362
|
+
* plumbing, so a second copy would split what every other block reads.
|
|
16363
|
+
*/
|
|
16364
|
+
const CORE_BLOCKS = /* @__PURE__ */ new Set([
|
|
16365
|
+
"api-keys",
|
|
16366
|
+
"audit",
|
|
16367
|
+
"created-by",
|
|
16368
|
+
"grants",
|
|
16369
|
+
"data-lifecycle",
|
|
16370
|
+
"entitlements",
|
|
16371
|
+
"flags",
|
|
16372
|
+
"field-encryption",
|
|
16373
|
+
"field-history",
|
|
16374
|
+
"guests",
|
|
16375
|
+
"idempotency",
|
|
16376
|
+
"invitations",
|
|
16377
|
+
"jsonb-schemas",
|
|
16378
|
+
"identities",
|
|
16379
|
+
"memberships",
|
|
16380
|
+
"mfa",
|
|
16381
|
+
"oauth-server",
|
|
16382
|
+
"organizations",
|
|
16383
|
+
"outbox",
|
|
16384
|
+
"permissions",
|
|
16385
|
+
"pgtap",
|
|
16386
|
+
"profiles",
|
|
16387
|
+
"queue",
|
|
16388
|
+
"rate-limit",
|
|
16389
|
+
"read-sets",
|
|
16390
|
+
"realtime-tables",
|
|
16391
|
+
"reserved-slugs",
|
|
16392
|
+
"rls-guard",
|
|
16393
|
+
"search",
|
|
16394
|
+
"security-events",
|
|
16395
|
+
"service-accounts",
|
|
16396
|
+
"sessions",
|
|
16397
|
+
"settings",
|
|
16398
|
+
"signing-keys",
|
|
16399
|
+
"sso",
|
|
16400
|
+
"subjects",
|
|
16401
|
+
"teams",
|
|
16402
|
+
"trash",
|
|
16403
|
+
"updated-at",
|
|
16404
|
+
"usage",
|
|
16405
|
+
"vector-search"
|
|
16406
|
+
]);
|
|
16407
|
+
const INSTANCE_NAME = /^[a-z][a-zA-Z0-9-]*$/;
|
|
16408
|
+
/**
|
|
16409
|
+
* The prefix an instance gives the names its block's renames leave unchanged:
|
|
16410
|
+
* `hiring-pipelines` and `hiringPipelines` both give `hiring_pipelines`.
|
|
16411
|
+
*/
|
|
16412
|
+
function instancePrefix(name) {
|
|
16413
|
+
return name.replaceAll(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`).replaceAll("-", "_");
|
|
16414
|
+
}
|
|
16415
|
+
/** Whether `instance` installs its block under another name. */
|
|
16416
|
+
const isRenamedInstance = (instance) => instance.name !== instance.block;
|
|
16417
|
+
/** The blocks `block` may bind with `uses`: what it requires or works with. */
|
|
16418
|
+
function dependenciesOf(block, catalog) {
|
|
16419
|
+
const entry = catalog.blocks.find((each) => each.name === block);
|
|
16420
|
+
const requires = /* @__PURE__ */ new Set([...entry?.requires ?? [], ...Object.values(entry?.requiresByAccess ?? {}).flat()]);
|
|
16421
|
+
return {
|
|
16422
|
+
requires,
|
|
16423
|
+
known: /* @__PURE__ */ new Set([...requires, ...entry?.integrates ?? []])
|
|
16424
|
+
};
|
|
16425
|
+
}
|
|
16426
|
+
function instanceProblems(entries, catalog) {
|
|
16427
|
+
const blocks = new Set(catalog.blocks.map((block) => block.name));
|
|
16428
|
+
const byBlock = /* @__PURE__ */ new Map();
|
|
16429
|
+
for (const [name, entry] of entries) {
|
|
16430
|
+
const block = entry.block ?? name;
|
|
16431
|
+
byBlock.set(block, [...byBlock.get(block) ?? [], name]);
|
|
16432
|
+
}
|
|
16433
|
+
const problems = [];
|
|
16434
|
+
for (const [name, entry] of entries) {
|
|
16435
|
+
if (!INSTANCE_NAME.test(name)) {
|
|
16436
|
+
problems.push(`blocks.${name}: an instance name starts with a lowercase letter and holds letters, digits and -.`);
|
|
16437
|
+
continue;
|
|
16438
|
+
}
|
|
16439
|
+
if (entry.block !== void 0 && !blocks.has(entry.block)) {
|
|
16440
|
+
problems.push(`blocks.${name}.block: "${entry.block}" is not a block. See \`better-supabase blocks list\`.`);
|
|
16441
|
+
continue;
|
|
16442
|
+
}
|
|
16443
|
+
const block = entry.block ?? name;
|
|
16444
|
+
if (CORE_BLOCKS.has(block) && name !== block) problems.push(`blocks.${name}: "${block}" is a core block and installs once, under its own name. Rename the key to "${block}".`);
|
|
16445
|
+
const { requires, known } = dependenciesOf(block, catalog);
|
|
16446
|
+
for (const [dependency, instance] of Object.entries(entry.uses ?? {})) if (!known.has(dependency)) problems.push(`blocks.${name}.uses.${dependency}: "${block}" doesn't use "${dependency}".`);
|
|
16447
|
+
else if (!(byBlock.get(dependency) ?? []).includes(instance)) problems.push(`blocks.${name}.uses.${dependency}: "${instance}" is not an instance of "${dependency}".`);
|
|
16448
|
+
for (const dependency of requires) {
|
|
16449
|
+
const installed = byBlock.get(dependency) ?? [];
|
|
16450
|
+
if (installed.length > 1 && entry.uses?.[dependency] === void 0) problems.push(`blocks.${name}.uses.${dependency}: "${dependency}" is installed as ${installed.map((each) => `"${each}"`).join(" and ")}; name the one "${name}" uses.`);
|
|
16451
|
+
}
|
|
16452
|
+
}
|
|
16453
|
+
return problems;
|
|
16454
|
+
}
|
|
16455
|
+
function isNameList(blocks) {
|
|
16456
|
+
return Array.isArray(blocks);
|
|
16457
|
+
}
|
|
16458
|
+
/**
|
|
16459
|
+
* The instances in `blocks`, keyed by instance name. A list of names installs
|
|
16460
|
+
* each block once under its own name. Throws one error that lists every
|
|
16461
|
+
* instance whose `block` is unknown, that renames or repeats a core block, or
|
|
16462
|
+
* whose `uses` doesn't name an installed instance of a dependency.
|
|
16463
|
+
*/
|
|
16464
|
+
function resolveInstances(blocks, catalog = PRESET_CATALOG) {
|
|
16465
|
+
const entries = blocks === void 0 ? [] : isNameList(blocks) ? blocks.map((name) => [name, {}]) : Object.entries(blocks).flatMap(([name, entry]) => entry === void 0 ? [] : [[name, entry]]);
|
|
16466
|
+
const problems = instanceProblems(entries, catalog);
|
|
16467
|
+
if (problems.length > 0) throw new TypeError(problems.join("\n"));
|
|
16468
|
+
const byBlock = /* @__PURE__ */ new Map();
|
|
16469
|
+
for (const [name, entry] of entries) {
|
|
16470
|
+
const block = entry.block ?? name;
|
|
16471
|
+
byBlock.set(block, [...byBlock.get(block) ?? [], name]);
|
|
16472
|
+
}
|
|
16473
|
+
return Object.fromEntries(entries.map(([name, entry]) => {
|
|
16474
|
+
const block = entry.block ?? name;
|
|
16475
|
+
const { known } = dependenciesOf(block, catalog);
|
|
16476
|
+
const implied = [...known].flatMap((dependency) => {
|
|
16477
|
+
const installed = byBlock.get(dependency) ?? [];
|
|
16478
|
+
return installed.length === 1 && installed[0] !== dependency ? [[dependency, installed[0]]] : [];
|
|
16479
|
+
});
|
|
16480
|
+
const uses = Object.fromEntries([...implied, ...Object.entries(entry.uses ?? {})].filter(([dependency, instance]) => instance !== dependency));
|
|
16481
|
+
return [name, {
|
|
16482
|
+
name,
|
|
16483
|
+
block,
|
|
16484
|
+
...entry.on === void 0 ? {} : { on: entry.on },
|
|
16485
|
+
uses,
|
|
16486
|
+
config: withoutBlockKey(entry)
|
|
16487
|
+
}];
|
|
16488
|
+
}));
|
|
16489
|
+
}
|
|
16490
|
+
/**
|
|
16491
|
+
* `blocks` keyed by block name: the instances named after their block. The
|
|
16492
|
+
* other instances render on their own, from `instances`.
|
|
16493
|
+
*/
|
|
16494
|
+
function blocksByName(instances) {
|
|
16495
|
+
return Object.fromEntries(Object.values(instances).filter((instance) => !isRenamedInstance(instance)).map((instance) => [instance.block, instance.config]));
|
|
16496
|
+
}
|
|
16497
|
+
function withoutBlockKey(entry) {
|
|
16498
|
+
if (entry.block === void 0) return entry;
|
|
16499
|
+
const { block: _, ...rest } = entry;
|
|
16500
|
+
return rest;
|
|
16501
|
+
}
|
|
16502
|
+
//#endregion
|
|
16503
|
+
export { APP_ROLLUP_AGGREGATES as A, encryptedColumns as C, APP_COLUMN_FORMATS as D, APP_COLUMN_ACCESS as E, asBlocksConfig as F, resolveBlock as I, tenantNameOf as L, PRESET_CATALOG as M, BLOCK_SCOPES as N, APP_COLUMN_TYPES as O, DEFAULT_ACTIVE_TENANT as P, columnsWithAccess as S, hiddenColumns as T, appTablesOf as _, isRenamedInstance as a, isAppDefault as b, APP_NAME_MAX as c, appIdentifierError as d, appNameLengthError as f, appTableVersions as g, appTableEventTypes as h, instancePrefix as i, APP_TABLE_EVENT_KINDS as j, APP_ON_DELETE_ACTIONS as k, APP_RANK_COLUMN as l, appTableEventKinds as m, INSTANCE_NAME as n, resolveInstances as o, appReservedColumns as p, blocksByName as r, APP_DELETED_AT_COLUMN as s, CORE_BLOCKS as t, AUTH_USERS as u, withAppTableSubjects as v, hasColumnAccess as w, hasComputed as x, appDefaultError as y };
|
|
@@ -4,7 +4,7 @@ import { n as claimAt } from "./claims-Bp9My7XP.js";
|
|
|
4
4
|
import { t as authContext } from "./context-DBicfUNz.js";
|
|
5
5
|
import { a as isRequestMemo, r as checkPermission } from "./authorizer-BGhXaDmo.js";
|
|
6
6
|
import { n as toSession } from "./view-C8Ve14ja.js";
|
|
7
|
-
import { i as guard, s as settle } from "./respond-
|
|
7
|
+
import { i as guard, s as settle } from "./respond-CZMWbUs3.js";
|
|
8
8
|
//#region src/server/kit.ts
|
|
9
9
|
/** `FormData` as a plain object; repeated keys become arrays. */
|
|
10
10
|
function formDataObject(form) {
|
package/dist/mapper/bin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as VERSION } from "../cli/version-
|
|
2
|
-
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-
|
|
3
|
-
import { t as loadSnapshot } from "../cli/snapshot-
|
|
4
|
-
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-
|
|
1
|
+
import { t as VERSION } from "../cli/version-CUdPyV6J.js";
|
|
2
|
+
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-61VwYKEv.js";
|
|
3
|
+
import { t as loadSnapshot } from "../cli/snapshot-B8K6gYjA.js";
|
|
4
|
+
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-0Vd7BaNA.js";
|
|
5
5
|
import { i as discoverConfig, s as loadConfig } from "../cli/config-BH0goim0.js";
|
|
6
6
|
import { i as parseEnv, n as configEnvironment } from "../cli/env-DMgjB_4y.js";
|
|
7
|
-
import { s as schemaStampPath } from "../cli/content-mapper-
|
|
7
|
+
import { s as schemaStampPath } from "../cli/content-mapper-DGQQY5IA.js";
|
|
8
8
|
import { existsSync, realpathSync } from "node:fs";
|
|
9
9
|
import { basename, dirname, join, resolve } from "node:path";
|
|
10
10
|
import { createHash } from "node:crypto";
|
package/dist/mcp/index.js
CHANGED
|
@@ -6,15 +6,15 @@ import { a as methodNotAllowed, c as toProblem, o as problemResponse } from "../
|
|
|
6
6
|
import { t as SPEC_PINS } from "../spec-pins-D3zDek-u.js";
|
|
7
7
|
import { r as toDraft07, t as buildJsonSchema } from "../json-schema-DHJxiizN.js";
|
|
8
8
|
import { r as operationPermission, t as OPERATION_PREFIXES } from "../operations-DVHRHvv6.js";
|
|
9
|
-
import {
|
|
10
|
-
import { n as checkEach, r as checkPermission } from "../authorizer-BGhXaDmo.js";
|
|
9
|
+
import { r as pageSchema, t as pageInputSchema } from "../resource-schemas-up6bKOUi.js";
|
|
11
10
|
import { n as jsonResponse, t as jsonReplacer } from "../json-DaByVJpw.js";
|
|
12
|
-
import {
|
|
11
|
+
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-D4aNBxhm.js";
|
|
12
|
+
import { n as checkEach, r as checkPermission } from "../authorizer-BGhXaDmo.js";
|
|
13
|
+
import { i as guard, n as defaultExpose, s as settle } from "../respond-CZMWbUs3.js";
|
|
13
14
|
import { t as boundedTtlCache } from "../ttl-cache-Bhr9swjT.js";
|
|
14
|
-
import { t as defineResource } from "../resource-
|
|
15
|
-
import { r as hasRole } from "../kit-
|
|
15
|
+
import { t as defineResource } from "../resource-BUJcZKiW.js";
|
|
16
|
+
import { r as hasRole } from "../kit-Bcd9wYCV.js";
|
|
16
17
|
import { t as withExtra } from "../extra-CGQ2_q3S.js";
|
|
17
|
-
import { r as pageSchema, t as pageInputSchema } from "../resource-schemas-up6bKOUi.js";
|
|
18
18
|
import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "../http-DzbloBR-.js";
|
|
19
19
|
import { resourceMetadataResponse, unauthorizedResponse } from "@supabase/server/oauth-protected-resource";
|
|
20
20
|
//#region src/mcp/dialect.ts
|
package/dist/mcp/sdk/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
2
2
|
import { o as problemResponse } from "../../problem-Bf0cJ7tk.js";
|
|
3
3
|
import { i as delegationOf } from "../../actor-go7p9-CJ.js";
|
|
4
|
-
import { c as extendServer, i as resolveToken, n as flushEvents, s as createServer } from "../../adapter-
|
|
5
|
-
import { i as guard } from "../../respond-
|
|
4
|
+
import { c as extendServer, i as resolveToken, n as flushEvents, s as createServer } from "../../adapter-D4aNBxhm.js";
|
|
5
|
+
import { i as guard } from "../../respond-CZMWbUs3.js";
|
|
6
6
|
import { t as withExtra } from "../../extra-CGQ2_q3S.js";
|
|
7
7
|
import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "../../http-DzbloBR-.js";
|
|
8
8
|
import { n as loadSupabaseMcp, r as loadSupabaseMcpPlatform, t as isRecord } from "../../supabase-mcp-Dz9DgrKP.js";
|
package/dist/nestjs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-
|
|
1
|
+
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-DDlInPff.js";
|
|
2
2
|
import { t as beforeRoute } from "../before-route-B23K2zYU.js";
|
|
3
3
|
import { t as applyWebHeaders } from "../node-headers-C71zNQHe.js";
|
|
4
4
|
import { n as toWebRequest, t as sendWebResponse } from "../http-BjjojWg3.js";
|
package/dist/next/index.js
CHANGED
|
@@ -9,21 +9,21 @@ import { n as StatsRecorder, t as EMPTY_STATS } from "../stats-BHl1-zj9.js";
|
|
|
9
9
|
import { o as problemResponse } from "../problem-Bf0cJ7tk.js";
|
|
10
10
|
import { i as claimsOf } from "../claims-Bp9My7XP.js";
|
|
11
11
|
import { t as supportOf } from "../support-view-g4YLBeqX.js";
|
|
12
|
-
import { n as createBlockClient } from "../create-blocks-
|
|
12
|
+
import { n as createBlockClient } from "../create-blocks-BfrDUSM6.js";
|
|
13
13
|
import { a as recordCan, c as recordWriteInput, i as plainData, l as runBindingWrite, o as recordPermissionKeys, p as loadBindings, r as findBindingWrite, s as recordSubject, t as bindingWrites } from "../record-type-DRbnlj5q.js";
|
|
14
14
|
import { n as methodOf } from "../block-method-C9hWdHom.js";
|
|
15
15
|
import { t as tenantOf } from "../tenant-BgIiMQpo.js";
|
|
16
16
|
import { t as loadTimeline } from "../timeline--VU3A1e4.js";
|
|
17
|
-
import { T as serverCore, b as isPrefetch, c as extendServer, n as flushEvents, p as supportCookieMaxAge, r as handle, s as createServer, t as bearerRequest, v as outageResponse } from "../adapter-
|
|
17
|
+
import { T as serverCore, b as isPrefetch, c as extendServer, n as flushEvents, p as supportCookieMaxAge, r as handle, s as createServer, t as bearerRequest, v as outageResponse } from "../adapter-D4aNBxhm.js";
|
|
18
18
|
import { g as sessionCookieName, t as clientIp, v as writeSession } from "../resolve-B0mW2m7f.js";
|
|
19
19
|
import { a as isSessionSnapshot, f as checkAal, i as authzVersionOf, n as toSession, o as issuedAtOf, s as sessionCacheKey } from "../view-C8Ve14ja.js";
|
|
20
|
-
import { i as guard, n as defaultExpose, s as settle } from "../respond-
|
|
21
|
-
import { i as supportSessions, n as passwordGrant, r as safeRedirectPath, t as needsMfa } from "../sign-in-
|
|
22
|
-
import { i as defineAction } from "../resource-
|
|
20
|
+
import { i as guard, n as defaultExpose, s as settle } from "../respond-CZMWbUs3.js";
|
|
21
|
+
import { i as supportSessions, n as passwordGrant, r as safeRedirectPath, t as needsMfa } from "../sign-in-NO7LWlw4.js";
|
|
22
|
+
import { i as defineAction } from "../resource-BUJcZKiW.js";
|
|
23
23
|
import { r as tagFor, t as cacheTagsOf } from "../tags-CIZTqtlY.js";
|
|
24
|
-
import { i as requireCaller, n as formDataObject, t as authorizeCaller } from "../kit-
|
|
24
|
+
import { i as requireCaller, n as formDataObject, t as authorizeCaller } from "../kit-Bcd9wYCV.js";
|
|
25
25
|
import { t as withExtra } from "../extra-CGQ2_q3S.js";
|
|
26
|
-
import { n as resourceRouter } from "../resources-
|
|
26
|
+
import { n as resourceRouter } from "../resources-jb3R6rEa.js";
|
|
27
27
|
import { cache } from "react";
|
|
28
28
|
import { cacheLife, cacheTag, io, revalidateTag, updateTag } from "next/cache.js";
|
|
29
29
|
import { cookies, headers } from "next/headers.js";
|
package/dist/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as toResponse, t as around } from "../shared-Bf-I13Ht.js";
|
|
2
|
-
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-
|
|
2
|
+
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-DDlInPff.js";
|
|
3
3
|
import { t as beforeRoute } from "../before-route-B23K2zYU.js";
|
|
4
4
|
import { i as toWebHeaders, t as applyWebHeaders } from "../node-headers-C71zNQHe.js";
|
|
5
5
|
import { n as toWebRequest, t as sendWebResponse } from "../http-BjjojWg3.js";
|
package/dist/orpc/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { c as ResourceLoaderContext, i as AuthorizeOptions } from "../kit-CVgQCI
|
|
|
9
9
|
import { t as Validated } from "../shared-CRRfQAKG.js";
|
|
10
10
|
import { a as ResourceHandler } from "../resource-types-DjZ91WKA.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-CHObZL7m.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/orpc/index.js
CHANGED
|
@@ -4,15 +4,15 @@ import { r as err } from "../result-ntFBW2p2.js";
|
|
|
4
4
|
import { t as instanceProperty } from "../instance-property-hRh88y_s.js";
|
|
5
5
|
import { c as toProblem } from "../problem-Bf0cJ7tk.js";
|
|
6
6
|
import { i as claimsOf } from "../claims-Bp9My7XP.js";
|
|
7
|
+
import { t as TABLE_VERBS } from "../resource-DvgXqZB_.js";
|
|
7
8
|
import { t as callWithInput } from "../block-method-C9hWdHom.js";
|
|
8
9
|
import { t as tenantOf } from "../tenant-BgIiMQpo.js";
|
|
9
|
-
import { c as extendServer, n as flushEvents, s as createServer, x as refreshFor } from "../adapter-
|
|
10
|
+
import { c as extendServer, n as flushEvents, s as createServer, x as refreshFor } from "../adapter-D4aNBxhm.js";
|
|
10
11
|
import { r as checkPermission } from "../authorizer-BGhXaDmo.js";
|
|
11
12
|
import { n as toSession } from "../view-C8Ve14ja.js";
|
|
12
|
-
import { i as guard, n as defaultExpose, s as settle, t as assertCookieRefresh } from "../respond-
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import { t as authorizeCaller } from "../kit-DhlB-vv_.js";
|
|
13
|
+
import { i as guard, n as defaultExpose, s as settle, t as assertCookieRefresh } from "../respond-CZMWbUs3.js";
|
|
14
|
+
import { r as contextOf, t as defineResource } from "../resource-BUJcZKiW.js";
|
|
15
|
+
import { t as authorizeCaller } from "../kit-Bcd9wYCV.js";
|
|
16
16
|
import { t as rateLimitGate } from "../rate-limit-BWKGlhTM.js";
|
|
17
17
|
import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
|
|
18
18
|
import { COMMON_ERROR_STATUS_MAP, ORPCError, os } from "@orpc/server";
|
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.22.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.22.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.22.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.22.0");
|
|
261
261
|
return betterSupabase.events.on("block", (event) => {
|
|
262
262
|
const attributes = {
|
|
263
263
|
...options.attributes,
|
package/dist/preset/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bn as PRESETS, Ct as ResolvedPresetBlock, Et as resolvePreset, Fn as presetFromSpec, Gn as defaultPreset, Hn as PRESET_NAMES, In as presetOfSpec, Kn as isPresetName, Ln as presetSpec, Pn as PresetSpec, Rn as DEFAULT_PRESET_NAME, St as ResolvedPreset, Tt as presetBlockConflict, Un as PresetGroup, Vn as PRESET_GROUPS, Wn as PresetName, _i as
|
|
2
|
-
import { A as
|
|
3
|
-
import { i as appReservedColumns, n as appIdentifierError, r as appNameLengthError, t as APP_NAME_MAX } from "../app-tables-
|
|
4
|
-
export { APP_COLUMN_FORMATS, APP_NAME_MAX, type AppColumnFormat, CONVENTION_FIELDS, type ConfigConventions, type CreateDesign, DEFAULT_CONVENTIONS, DEFAULT_PRESET_NAME, DESIGN_FILE, DESIGN_FORMAT, type DesignChange, type DesignChangeKind, type DesignErrorCode, type DesignFile, DesignParseError, type DesignParseIssue, type DesignParseResult, DesignTooLongError, type DiffOptions, type ExpandedConfig, MAX_DESIGN_CODE_LENGTH, type NamedPreset, PRESETS, PRESET_CATALOG, PRESET_FRAMEWORKS, PRESET_GROUPS, PRESET_NAMES, PRESET_TENANT_NAMES, PROVIDER_COMMENT, type Preset, type PresetAccess, type PresetCatalog, type PresetCatalogBlock, type PresetCatalogManifest, type PresetConflict, type PresetConventions, type PresetField, type PresetFieldKey, type PresetFieldValue, type PresetFramework, type PresetGlueItem, type PresetGroup, type PresetInput, type PresetIntegration, type PresetName, type PresetPlatforms, type PresetScope, type PresetSpec, type PresetValueInfo, type ResolvedPreset, type ResolvedPresetBlock, appDefaultError, appIdentifierError, appNameLengthError, appReservedColumns, conventionConfig, createUrl, decodeDesign, defaultPreset, designConfig, designFileSource, designFormat, designOf, designSchema, diffAppTables, diffDesigns, encodeDesign, expandPreset, glueCommand, integrationsForFramework, isAppDefault, isDesignCode, isPresetName, listNames, namedPreset, parseDesign, presetAndDesignOf, presetApplyCommand, presetBlockConflict, presetBlocksSource, presetConfig, presetConfigSource, presetField, presetFromSpec, presetGlue, presetInstallCommand, presetOf, presetOfSpec, presetSpec, presetValueLabel, readDesignFile, resolvePreset, safeDesignFileSource, safeParseDesign };
|
|
1
|
+
import { Bn as PRESETS, Ci as presetValueLabel, Ct as ResolvedPresetBlock, Et as resolvePreset, Fn as presetFromSpec, Gn as defaultPreset, Hn as PRESET_NAMES, In as presetOfSpec, Kn as isPresetName, Ln as presetSpec, Pn as PresetSpec, Rn as DEFAULT_PRESET_NAME, Si as presetField, St as ResolvedPreset, Tt as presetBlockConflict, Un as PresetGroup, Vn as PRESET_GROUPS, Wn as PresetName, _i as PresetFramework, _t as expandPreset, ai as PresetCatalogManifest, bi as PresetValueInfo, bt as PresetConflict, ci as DEFAULT_CONVENTIONS, di as Preset, ei as CORE_BLOCKS, er as APP_COLUMN_FORMATS, fi as PresetAccess, gi as PresetFieldValue, gt as conventionConfig, hi as PresetFieldKey, ht as PresetInput, ii as PresetCatalogBlock, li as PRESET_FRAMEWORKS, mi as PresetField, mt as ExpandedConfig, ni as instancePrefix, oi as PresetGlueItem, pi as PresetConventions, pt as ConfigConventions, qn as namedPreset, ri as PresetCatalog, si as CONVENTION_FIELDS, sr as AppColumnFormat, ti as INSTANCE_NAME, ui as PRESET_TENANT_NAMES, vi as PresetPlatforms, vt as presetConfig, wt as listNames, xi as integrationsForFramework, xt as PresetIntegration, yi as PresetScope, yt as presetOf, zn as NamedPreset } from "../context-DEisra3V.js";
|
|
2
|
+
import { $ as readDesignFile, A as DesignFile, B as designFileSource, C as diffAppTables, D as DESIGN_FILE, E as CreateDesign, F as MAX_DESIGN_CODE_LENGTH, G as isDesignCode, H as designOf, I as createQuery, J as presetApplyCommand, K as parseDesign, L as createUrl, M as DesignParseIssue, N as DesignParseResult, O as DESIGN_FORMAT, P as DesignTooLongError, Q as presetKey, R as decodeDesign, S as DiffOptions, T as CREATE_URL, U as designSchema, V as designFormat, W as encodeDesign, X as presetConfigSource, Y as presetArgumentOf, Z as presetInstallCommand, _ as glueCommand, a as blockRequires, b as DesignChange, c as installedBlocks, d as instancesOf, et as safeDesignFileSource, f as presetInstances, g as PROVIDER_COMMENT, h as withoutInstance, i as blockEntities, it as PRESET_CATALOG, j as DesignParseError, k as DesignErrorCode, l as instanceBlock, m as withInstance, n as BlockInstance, nt as appDefaultError, o as canAddInstance, p as withEntityName, q as presetAndDesignOf, r as PresetInstance, rt as isAppDefault, s as entityName, t as BlockEntity, tt as safeParseDesign, u as instanceNameProblem, v as presetBlocksSource, w as diffDesigns, x as DesignChangeKind, y as presetGlue, z as designConfig } from "../index-3p_oWttZ.js";
|
|
3
|
+
import { i as appReservedColumns, n as appIdentifierError, r as appNameLengthError, t as APP_NAME_MAX } from "../app-tables-BGzdnQm5.js";
|
|
4
|
+
export { APP_COLUMN_FORMATS, APP_NAME_MAX, type AppColumnFormat, type BlockEntity, type BlockInstance, CONVENTION_FIELDS, CREATE_URL, type ConfigConventions, type CreateDesign, DEFAULT_CONVENTIONS, DEFAULT_PRESET_NAME, DESIGN_FILE, DESIGN_FORMAT, type DesignChange, type DesignChangeKind, type DesignErrorCode, type DesignFile, DesignParseError, type DesignParseIssue, type DesignParseResult, DesignTooLongError, type DiffOptions, type ExpandedConfig, INSTANCE_NAME, MAX_DESIGN_CODE_LENGTH, type NamedPreset, PRESETS, PRESET_CATALOG, PRESET_FRAMEWORKS, PRESET_GROUPS, PRESET_NAMES, PRESET_TENANT_NAMES, PROVIDER_COMMENT, type Preset, type PresetAccess, type PresetCatalog, type PresetCatalogBlock, type PresetCatalogManifest, type PresetConflict, type PresetConventions, type PresetField, type PresetFieldKey, type PresetFieldValue, type PresetFramework, type PresetGlueItem, type PresetGroup, type PresetInput, type PresetInstance, type PresetIntegration, type PresetName, type PresetPlatforms, type PresetScope, type PresetSpec, type PresetValueInfo, type ResolvedPreset, type ResolvedPresetBlock, CORE_BLOCKS as SINGLE_INSTANCE_BLOCKS, appDefaultError, appIdentifierError, appNameLengthError, appReservedColumns, blockEntities, blockRequires, canAddInstance, conventionConfig, createQuery, createUrl, decodeDesign, defaultPreset, designConfig, designFileSource, designFormat, designOf, designSchema, diffAppTables, diffDesigns, encodeDesign, entityName, expandPreset, glueCommand, installedBlocks, instanceBlock, instanceNameProblem, instancePrefix, instancesOf, integrationsForFramework, isAppDefault, isDesignCode, isPresetName, listNames, namedPreset, parseDesign, presetAndDesignOf, presetApplyCommand, presetArgumentOf, presetBlockConflict, presetBlocksSource, presetConfig, presetConfigSource, presetField, presetFromSpec, presetGlue, presetInstallCommand, presetInstances, presetKey, presetOf, presetOfSpec, presetSpec, presetValueLabel, readDesignFile, resolvePreset, safeDesignFileSource, safeParseDesign, withEntityName, withInstance, withoutInstance };
|