better-supabase 0.39.0 → 0.40.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-sdk/agents/index.d.ts +2 -2
- package/dist/{app-tables-BeLFmp0l.d.ts → app-tables-jaQmdgAM.d.ts} +1 -1
- package/dist/{authorization-DQZ8Lrp5.d.ts → authorization-Ul_ApMYW.d.ts} +2 -1
- package/dist/{bind-DsDKjuQn.d.ts → bind-B2GlypM6.d.ts} +1 -1
- package/dist/{block-env-mNi2rPSF.d.ts → block-env-Bcr-jEA1.d.ts} +3 -3
- package/dist/{block-subjects-CINiJW1R.js → block-subjects-BumEsEYb.js} +17 -6
- package/dist/{block-tables-DYFRvRWW.d.ts → block-tables-nkIjJ1ly.d.ts} +1 -1
- package/dist/blocks/ai-chat/index.d.ts +3 -3
- package/dist/blocks/announcements/index.d.ts +3 -3
- package/dist/blocks/api-keys/index.d.ts +1 -1
- package/dist/blocks/attachments/index.d.ts +1 -1
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/automations/index.d.ts +1 -1
- package/dist/blocks/billing/index.d.ts +1 -1
- package/dist/blocks/bookings/index.d.ts +1 -1
- package/dist/blocks/calendar/index.d.ts +1 -1
- package/dist/blocks/comments/index.d.ts +4 -4
- package/dist/blocks/entitlements/index.d.ts +2 -2
- package/dist/blocks/forms/index.d.ts +1 -1
- package/dist/blocks/inbox/index.d.ts +4 -4
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/invoices/index.d.ts +1 -0
- package/dist/blocks/invoices/index.js +18 -10
- package/dist/blocks/ledger/index.d.ts +1 -0
- package/dist/blocks/ledger/index.js +2 -1
- package/dist/blocks/messaging/index.d.ts +4 -4
- package/dist/blocks/mfa/index.d.ts +1 -1
- package/dist/blocks/notifications/index.d.ts +3 -3
- package/dist/blocks/onboarding/index.d.ts +1 -1
- package/dist/blocks/organizations/index.d.ts +2 -2
- package/dist/blocks/permissions/index.d.ts +1 -1
- package/dist/blocks/push/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +3 -3
- package/dist/blocks/saved-views/index.d.ts +1 -1
- package/dist/blocks/search/index.d.ts +2 -2
- package/dist/blocks/sessions/index.d.ts +1 -1
- package/dist/blocks/settings/index.d.ts +1 -1
- package/dist/blocks/subjects/index.d.ts +1 -1
- package/dist/blocks/tags/index.d.ts +1 -1
- package/dist/blocks/undo/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +1 -1
- package/dist/blocks/workflow-editor/index.d.ts +3 -3
- package/dist/blocks/workflows/index.d.ts +3 -3
- package/dist/claims/index.d.ts +3 -3
- package/dist/cli/{add-Ba8xoX4q.js → add-BVs8Ym-K.js} +10 -10
- package/dist/cli/{add-DKlk-VV9.js → add-DP1ct-7e.js} +2 -2
- package/dist/cli/add-DrwQvDYD.js +1 -0
- package/dist/cli/{app-table-files-Dw02ao0W.js → app-table-files-gjMyFqH4.js} +2 -2
- package/dist/cli/{app-tables-iSQ0c7G3.js → app-tables-B26PHK75.js} +2 -2
- package/dist/cli/{backfill-sYQgRuGd.js → backfill-CP_LpTK2.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-YKQzZhPK.js → blocks-CpBLp57s.js} +1 -1
- package/dist/cli/{blocks-BAj3U18j.js → blocks-Ewp49Kbm.js} +1 -1
- package/dist/cli/{cache-BFSbb4is.js → cache-BxxtUXVN.js} +1 -1
- package/dist/cli/{codemod-vbToOtFK.js → codemod-CGCxMEyD.js} +1 -1
- package/dist/cli/{content-mapper-COnyl3V7.js → content-mapper-DngBJv4r.js} +2 -2
- package/dist/cli/{doctor-BTGesU_-.js → doctor-3dcMraMn.js} +17 -17
- package/dist/cli/{gen-h1Ncsh1X.js → gen-DrXxFwUU.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-DCy-FlB2.js → init-bVKQ4Onb.js} +8 -8
- package/dist/cli/{live-BUOVB-DV.js → live-CHTbAqdS.js} +2 -2
- package/dist/cli/{mcp-CLAjfETj.js → mcp-BbmhntrR.js} +2 -2
- package/dist/cli/{metadata-DqcJb3p5.js → metadata-BS56R_eb.js} +3 -3
- package/dist/cli/{migrate-dI1IaRan.js → migrate-DV6a9-jI.js} +1 -1
- package/dist/cli/{migration-safety-Cj2AZdIH.js → migration-safety-Ce9IQwmJ.js} +1 -1
- package/dist/cli/{migrations-CFIlnOmr.js → migrations-CCCnMhmM.js} +2 -2
- package/dist/cli/{module-migration-DteyIWzV.js → module-migration-C0cAzpNa.js} +2 -2
- package/dist/cli/powersync-Cxd3a_v_.js +1 -0
- package/dist/cli/{powersync-DWFvtUuZ.js → powersync-OIIpG-y_.js} +3 -3
- package/dist/cli/{print-DUUGo-bA.js → print-BGF3d6O2.js} +2 -2
- package/dist/cli/{providers-B4q4yMUv.js → providers-fEzlYSLs.js} +1 -1
- package/dist/cli/{prune-workflows-DhJX2wAQ.js → prune-workflows-Bx7J5T3a.js} +1 -1
- package/dist/cli/{remove-BsAhvYpx.js → remove-Ds4N6WvD.js} +5 -5
- package/dist/cli/{render-CvRXYRSy.js → render-BeZToAp-.js} +3 -3
- package/dist/cli/{run-DxWZi4IJ.js → run-DR0sTyNQ.js} +9 -9
- package/dist/cli/{run-BY0fbQxQ.js → run-iUmtksq5.js} +27 -27
- package/dist/cli/{shared-C_9DBYw-.js → shared-BCWYvKeR.js} +1 -1
- package/dist/cli/{snapshot-BAFwCE0l.js → snapshot-CfgRxTQq.js} +2 -2
- package/dist/cli/{source-CpnSlB6J.js → source-Ct3ZCy6p.js} +1 -1
- package/dist/cli/{spec-BMBYao_7.js → spec-1eEq2P4T.js} +1 -1
- package/dist/cli/{spec-SNEhNUFc.js → spec-9vb-or-k.js} +2 -2
- package/dist/cli/{sql-layout-CKFIMA8Y.js → sql-layout-cYsnyjRf.js} +2 -2
- package/dist/cli/{sync-DMMrYcyr.js → sync-XpcpINnx.js} +4 -4
- package/dist/cli/{upgrade-C1sSWUgx.js → upgrade-A18FY5Iy.js} +2 -2
- package/dist/cli/{upgrade-D9tsBxs0.js → upgrade-DXhyb2jV.js} +5 -5
- package/dist/cli/{version-DnpEuhUA.js → version-PcwPOm4G.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +4 -4
- package/dist/{config-1-UmQczM.js → config-BRGMUEE2.js} +1 -1
- package/dist/{config-AEB5iNEO.js → config-qqAfS_1_.js} +4 -4
- package/dist/{context-Cln1eg7-.d.ts → context-dHluCmud.d.ts} +1 -1
- package/dist/contract/index.d.ts +3 -3
- package/dist/{controller-BQHh7VG5.d.ts → controller-BQXgMwWN.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +3 -3
- package/dist/create/lite/index.js +2 -2
- package/dist/{entitlements-aN3jHcYL.d.ts → entitlements-Jh_w-PgX.d.ts} +1 -1
- package/dist/{field-errors-0V7t1-pz.d.ts → field-errors-DIDkgzFA.d.ts} +4 -4
- package/dist/{index-CCb0JjiX.d.ts → index-BKz-E3Mv.d.ts} +6 -6
- package/dist/{index-C0jB70wR.d.ts → index-CpZ4WDDJ.d.ts} +1 -1
- package/dist/{index-DWCo9ZUL.d.ts → index-DhcLJAtX.d.ts} +1 -1
- package/dist/{index-hmnB81h6.d.ts → index-IrJQqPeQ.d.ts} +1 -1
- package/dist/{index-D1harGe_.d.ts → index-g_eFnFqo.d.ts} +2 -2
- package/dist/{index-3JE4ptwV.d.ts → index-xmb6YGTg.d.ts} +2 -2
- package/dist/{index-DoDmA-sQ.d.ts → index-y70eTezB.d.ts} +2 -2
- package/dist/{instances-Bycf_aus.js → instances-DqEZrffE.js} +5 -1
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +1 -1
- package/dist/next/index.d.ts +4 -4
- package/dist/{operations-TlhX7IZX.d.ts → operations-Sza7UQKP.d.ts} +1 -1
- package/dist/{options-BXbixNrP.js → options-C5cLEJEa.js} +2 -1
- package/dist/otel/index.js +4 -4
- package/dist/{permissions-CwlRRwvr.d.ts → permissions-COamTJYz.d.ts} +1 -1
- package/dist/{ports-rJDkwtOQ.d.ts → ports-1M1E_r2n.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-DkeXFh7e.js → preset-Byz43PrL.js} +2 -2
- package/dist/{project-Bcs-4Pfw.js → project-Y2wW_nr_.js} +5 -5
- package/dist/{push-token-BLQ09NeA.d.ts → push-token-DKImhAca.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 +5 -5
- package/dist/realtime/index.d.ts +3 -3
- package/dist/records/index.d.ts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/solid/index.d.ts +5 -5
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +2 -2
- package/dist/{sql-D-_Egz0E.js → sql-B1FA8jTx.js} +72 -23
- package/dist/ssr/index.d.ts +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/{tenant-BkW_auBX.d.ts → tenant-DflHpV32.d.ts} +1 -1
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +1 -1
- package/dist/{topic-L_8Qs5qs.d.ts → topic-CekU96q7.d.ts} +1 -1
- package/dist/{types--PUNrvz8.d.ts → types-B42S7qfO.d.ts} +2 -2
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-B9aKuw5v.d.ts → watch-topic-DBw411Mq.d.ts} +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +4 -0
- package/skills/better-supabase/SKILL.md +26 -8
- package/dist/cli/add-BCkaPIvM.js +0 -1
- package/dist/cli/powersync-D-1aQ3C6.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as runsWithInvalidConfig, d as DOCS_ORIGIN, f as GROUPS, g as runCommand, h as parseArgs$2, i as joinRepeated, l as COMMANDS, o as listArgs, p as RESERVED_NAMES, s as readsLegacyTables, t as GLOBAL_ARGS } from "./command-67WobzTC.js";
|
|
2
2
|
import { n as highlight, r as painter } from "./style-B5-nByxb.js";
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
3
|
+
import { t as VERSION } from "./version-PcwPOm4G.js";
|
|
4
4
|
import { n as CliError, o as toCliError } from "./errors-DcJ_PayO.js";
|
|
5
5
|
import { a as missingInputNext, o as resolveAgent, t as checkConsent } from "./agent-Tqq3MAqx.js";
|
|
6
6
|
import { a as globalFlags, c as resolveCommand, i as commandTree, n as closestName, o as isVariadic, r as commandArgs, t as checkArgs } from "./parse-yAC-NFMq.js";
|
|
@@ -16,43 +16,43 @@ import { resolve } from "node:path";
|
|
|
16
16
|
* loads on demand, so `--version` and `--help` import no command.
|
|
17
17
|
*/
|
|
18
18
|
const LOADERS = [
|
|
19
|
-
["init", () => import("./init-
|
|
20
|
-
["add", () => import("./add-
|
|
21
|
-
["remove", () => import("./remove-
|
|
22
|
-
["upgrade", () => import("./upgrade-
|
|
19
|
+
["init", () => import("./init-bVKQ4Onb.js").then((m) => m.initCommand)],
|
|
20
|
+
["add", () => import("./add-DrwQvDYD.js").then((m) => m.addCommand)],
|
|
21
|
+
["remove", () => import("./remove-Ds4N6WvD.js").then((m) => m.removeCommand)],
|
|
22
|
+
["upgrade", () => import("./upgrade-A18FY5Iy.js").then((m) => m.upgradeCommand)],
|
|
23
23
|
["table", () => import("./table-BIQA9Hdt.js").then((m) => m.tableCommand)],
|
|
24
|
-
["migrate schema-first", () => import("./migrate-
|
|
25
|
-
["gen", () => import("./gen-
|
|
26
|
-
["doctor", () => import("./doctor-
|
|
24
|
+
["migrate schema-first", () => import("./migrate-DV6a9-jI.js").then((m) => m.migrateSchemaFirstCommand)],
|
|
25
|
+
["gen", () => import("./gen-DrXxFwUU.js").then((m) => m.genCommand)],
|
|
26
|
+
["doctor", () => import("./doctor-3dcMraMn.js").then((m) => m.doctorCommand)],
|
|
27
27
|
["db query", () => import("./db-bK5eCLaE.js").then((m) => m.dbQueryCommand)],
|
|
28
28
|
["db diff", () => import("./db-bK5eCLaE.js").then((m) => m.dbDiffCommand)],
|
|
29
29
|
["db seed", () => import("./seed-CLlvrV8I.js").then((m) => m.seedCommand)],
|
|
30
|
-
["db backfill", () => import("./backfill-
|
|
31
|
-
["db prune-workflows", () => import("./prune-workflows-
|
|
30
|
+
["db backfill", () => import("./backfill-CP_LpTK2.js").then((m) => m.dbBackfillCommand)],
|
|
31
|
+
["db prune-workflows", () => import("./prune-workflows-Bx7J5T3a.js").then((m) => m.dbPruneWorkflowsCommand)],
|
|
32
32
|
["dev env", () => import("./env-AFfMXxWw.js").then((m) => m.envCommand)],
|
|
33
33
|
["dev run", () => import("./run-DX4X7xqV.js").then((m) => m.runCommand)],
|
|
34
34
|
["dev keys", () => import("./keys-Dj5sJNj7.js").then((m) => m.keysCommand)],
|
|
35
35
|
["dev stack ls", () => import("./stack-CQXLe5j0.js").then((m) => m.stackLsCommand)],
|
|
36
36
|
["dev stack prune", () => import("./stack-CQXLe5j0.js").then((m) => m.stackPruneCommand)],
|
|
37
|
-
["blocks list", () => import("./blocks-
|
|
38
|
-
["blocks view", () => import("./blocks-
|
|
39
|
-
["blocks search", () => import("./blocks-
|
|
40
|
-
["powersync streams", () => import("./powersync-
|
|
41
|
-
["spec emit", () => import("./spec-
|
|
42
|
-
["spec validate", () => import("./spec-
|
|
43
|
-
["mcp", () => import("./mcp-
|
|
37
|
+
["blocks list", () => import("./blocks-CpBLp57s.js").then((m) => m.blocksListCommand)],
|
|
38
|
+
["blocks view", () => import("./blocks-CpBLp57s.js").then((m) => m.blocksViewCommand)],
|
|
39
|
+
["blocks search", () => import("./blocks-CpBLp57s.js").then((m) => m.blocksSearchCommand)],
|
|
40
|
+
["powersync streams", () => import("./powersync-Cxd3a_v_.js").then((m) => m.powersyncStreamsCommand)],
|
|
41
|
+
["spec emit", () => import("./spec-1eEq2P4T.js").then((m) => m.specEmitCommand)],
|
|
42
|
+
["spec validate", () => import("./spec-1eEq2P4T.js").then((m) => m.specValidateCommand)],
|
|
43
|
+
["mcp", () => import("./mcp-BbmhntrR.js").then((m) => m.mcpCommand)],
|
|
44
44
|
["skills list", () => import("./skills-B5p6bDwe.js").then((m) => m.skillsListCommand)],
|
|
45
45
|
["skills install", () => import("./skills-B5p6bDwe.js").then((m) => m.skillsInstallCommand)],
|
|
46
|
-
["codemod 0.4", () => import("./codemod-
|
|
47
|
-
["codemod 0.5", () => import("./codemod-
|
|
48
|
-
["codemod 0.6", () => import("./codemod-
|
|
49
|
-
["codemod 0.9", () => import("./codemod-
|
|
50
|
-
["codemod 0.11", () => import("./codemod-
|
|
51
|
-
["codemod 0.15", () => import("./codemod-
|
|
52
|
-
["codemod 0.29", () => import("./codemod-
|
|
53
|
-
["codemod 0.32", () => import("./codemod-
|
|
54
|
-
["codemod 0.35", () => import("./codemod-
|
|
55
|
-
["codemod 0.37", () => import("./codemod-
|
|
46
|
+
["codemod 0.4", () => import("./codemod-CGCxMEyD.js").then((m) => m.codemodCommand("0.4"))],
|
|
47
|
+
["codemod 0.5", () => import("./codemod-CGCxMEyD.js").then((m) => m.codemodCommand("0.5"))],
|
|
48
|
+
["codemod 0.6", () => import("./codemod-CGCxMEyD.js").then((m) => m.codemodCommand("0.6"))],
|
|
49
|
+
["codemod 0.9", () => import("./codemod-CGCxMEyD.js").then((m) => m.codemodCommand("0.9"))],
|
|
50
|
+
["codemod 0.11", () => import("./codemod-CGCxMEyD.js").then((m) => m.codemodCommand("0.11"))],
|
|
51
|
+
["codemod 0.15", () => import("./codemod-CGCxMEyD.js").then((m) => m.codemodCommand("0.15"))],
|
|
52
|
+
["codemod 0.29", () => import("./codemod-CGCxMEyD.js").then((m) => m.codemodCommand("0.29"))],
|
|
53
|
+
["codemod 0.32", () => import("./codemod-CGCxMEyD.js").then((m) => m.codemodCommand("0.32"))],
|
|
54
|
+
["codemod 0.35", () => import("./codemod-CGCxMEyD.js").then((m) => m.codemodCommand("0.35"))],
|
|
55
|
+
["codemod 0.37", () => import("./codemod-CGCxMEyD.js").then((m) => m.codemodCommand("0.37"))],
|
|
56
56
|
["completion", () => import("./completion-Dm0S3ub0.js").then((m) => m.completionCommand)],
|
|
57
57
|
["config", () => import("./config-cbK-wiNs.js").then((m) => m.configCommand)]
|
|
58
58
|
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as toCatalog } from "./source-
|
|
1
|
+
import { a as toCatalog } from "./source-Ct3ZCy6p.js";
|
|
2
2
|
import { h as tomlGet, p as sqlWorkflow, r as detectWorkflow } from "./supabase-toml-B6-eEV5p.js";
|
|
3
3
|
// src/cli/doctor/shared.ts
|
|
4
4
|
const catalogs = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
2
|
-
import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-
|
|
2
|
+
import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-BxxtUXVN.js";
|
|
3
3
|
import { t as byCodePoint } from "./compare-yl4sSwVn.js";
|
|
4
|
-
import { n as managementSource, r as pgSource } from "./source-
|
|
4
|
+
import { n as managementSource, r as pgSource } from "./source-Ct3ZCy6p.js";
|
|
5
5
|
import { n as databaseUrl, u as accessToken } from "./config-DrrkMihk.js";
|
|
6
6
|
import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, u as pgFunctionHooks } from "./supabase-toml-B6-eEV5p.js";
|
|
7
7
|
import { t as connect } from "./db-B8zfxjl2.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { t as VERSION } from "./version-PcwPOm4G.js";
|
|
2
2
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
3
3
|
import { r as redactUrl } from "./redact--zOGdWzo.js";
|
|
4
4
|
import { n as HTTP_CHANNEL } from "./trace-D3TNqWBg.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as specEmitCommand, i as specValidateCommand } from "./spec-
|
|
1
|
+
export { n as specEmitCommand, i as specValidateCommand } from "./spec-9vb-or-k.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __require, t as __commonJSMin } from "./rolldown-runtime-DegdyBIC.js";
|
|
2
2
|
import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
3
|
+
import { t as VERSION } from "./version-PcwPOm4G.js";
|
|
4
4
|
import { i as failedResult, n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
5
5
|
import { t as display } from "./io-CQzy8PEZ.js";
|
|
6
|
-
import { c as writeAtomic, t as CACHE_DIR } from "./cache-
|
|
6
|
+
import { c as writeAtomic, t as CACHE_DIR } from "./cache-BxxtUXVN.js";
|
|
7
7
|
import { t as isRecord } from "./guards-DxwRG0Uv.js";
|
|
8
8
|
import { t as importFresh } from "./fresh-import-CdO2oQaQ.js";
|
|
9
9
|
import { a as changedFiles, i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-
|
|
2
|
-
import { a as toCatalog } from "./source-
|
|
1
|
+
import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-CfgRxTQq.js";
|
|
2
|
+
import { a as toCatalog } from "./source-Ct3ZCy6p.js";
|
|
3
3
|
import { d as readSupabaseToml, f as schemaPaths, n as declarativeSchemasDir, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import { dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -2,10 +2,10 @@ import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
|
2
2
|
import { t as display } from "./io-CQzy8PEZ.js";
|
|
3
3
|
import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, o as findSupabaseRoot, p as sqlWorkflow, t as PGDELTA_TABLE } from "./supabase-toml-B6-eEV5p.js";
|
|
4
4
|
import { d as fileDiff, i as changeLines, l as keepHandEdit, o as handEditedError, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-DQayErI8.js";
|
|
5
|
-
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-
|
|
6
|
-
import { r as layoutFor } from "./providers-
|
|
7
|
-
import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-
|
|
8
|
-
import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-
|
|
5
|
+
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-cYsnyjRf.js";
|
|
6
|
+
import { r as layoutFor } from "./providers-fEzlYSLs.js";
|
|
7
|
+
import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-CCCnMhmM.js";
|
|
8
|
+
import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-C0cAzpNa.js";
|
|
9
9
|
import { t as loadTopics } from "./topics-Cdg0V7Tt.js";
|
|
10
10
|
import { t as orphanedBlockFiles } from "./orphans-CPcR85QN.js";
|
|
11
11
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
|
|
2
2
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
3
|
-
import { t as syncModules } from "./sync-
|
|
3
|
+
import { t as syncModules } from "./sync-XpcpINnx.js";
|
|
4
4
|
import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
|
|
5
|
-
import { t as upgrade } from "./upgrade-
|
|
5
|
+
import { t as upgrade } from "./upgrade-DXhyb2jV.js";
|
|
6
6
|
// src/cli/commands/upgrade.ts
|
|
7
7
|
const UPGRADE_ARGS = {
|
|
8
8
|
check: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as display } from "./io-CQzy8PEZ.js";
|
|
2
2
|
import { d as fileDiff, i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
|
|
3
|
-
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-
|
|
4
|
-
import { r as layoutFor } from "./providers-
|
|
5
|
-
import { r as migrationStamp } from "./migrations-
|
|
6
|
-
import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-
|
|
7
|
-
import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-
|
|
3
|
+
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-cYsnyjRf.js";
|
|
4
|
+
import { r as layoutFor } from "./providers-fEzlYSLs.js";
|
|
5
|
+
import { r as migrationStamp } from "./migrations-CCCnMhmM.js";
|
|
6
|
+
import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-C0cAzpNa.js";
|
|
7
|
+
import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-XpcpINnx.js";
|
|
8
8
|
import { a as legacyPrefixSql, i as legacyPrefixNames, r as legacyBlocksTableSql } from "./legacy-prefix-D8Jfku6I.js";
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
10
|
import { readFile } from "node:fs/promises";
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as DataSync, c as LocalTablesOption, i as DataEntry, l as liveEngine, n as DataEngine, o as DataSyncState, r as DataEngineOptions, s as LiveEngineOptions, t as DataChanges, u as memoryEngine } from "../data-engine-CX1oYDZl.js";
|
|
2
|
-
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-
|
|
3
|
-
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-
|
|
4
|
-
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-
|
|
5
|
-
import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-
|
|
2
|
+
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-DBw411Mq.js";
|
|
3
|
+
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-1M1E_r2n.js";
|
|
4
|
+
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-B2GlypM6.js";
|
|
5
|
+
import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-BQXgMwWN.js";
|
|
6
6
|
import { n as FunctionContract } from "../function-contract-DgDBYbXu.js";
|
|
7
|
-
import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-
|
|
7
|
+
import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-g_eFnFqo.js";
|
|
8
8
|
export { type AuthPort, type AuthSnapshot, type AuthUser, type BetterClient, type BindClientOptions, type ClientAuth, ClientOptions, type ClientPorts, type Controller, type ControllerParts, type ControllerState, type DataChanges, type DataEngine, type DataEngineOptions, type DataEntry, type DataSync, type DataSyncState, type DeepLinkPort, type FilePickerPort, type FunctionContract, type FunctionContracts, type FunctionsHost, type InvokeOptions, type KeyboardPort, type LiveEngineOptions, type LocalTablesOption, type PickFilesOptions, type PickedFile, type PushRegistrationLike, type PushTokenPort, type Shortcut, type StoragePort, type TopicHandle, type TopicPort, type TopicWatch, type TypedFunctions, type UploadDestination, type UploadPort, type WebPushTokenOptions, bindClient, createClient, defineController, functions, liveEngine, memoryEngine, memoryStorage, storageUpload, webDeepLinks, webFilePicker, webKeyboard, webPorts, webPushToken, webStorage, whileSignedIn };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
2
2
|
import { T as UploadOptions, w as UploadBody } from "../../bucket-CrsJNHzi.js";
|
|
3
|
-
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-
|
|
4
|
-
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-
|
|
5
|
-
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-
|
|
6
|
-
import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-
|
|
3
|
+
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-DBw411Mq.js";
|
|
4
|
+
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-1M1E_r2n.js";
|
|
5
|
+
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-B2GlypM6.js";
|
|
6
|
+
import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-DKImhAca.js";
|
|
7
7
|
import { a as OAuthSignInOptions, c as linkParams, i as OAuthClient, l as signInWithOAuthBrowser, n as AuthLinkClient, o as WebBrowserLike, r as AuthLinkResult, s as handleAuthDeepLink, t as AuthFailure } from "../../auth-link-DRjtI1Ky.js";
|
|
8
8
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
9
9
|
/** The part of React Native's `AppState` that `autoRefreshOnForeground` uses. */
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as Casing } from "../types-BzIYSSWK.js";
|
|
2
|
-
import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-
|
|
3
|
-
import { $ as JsonSchemaTarget, $r as SnapshotExtras, $t as GeneratorNoun, An as SqlWorkflow, Ar as AppTablesConfig, B as ZodGeneratorOptions, Bi as MigrationSafetyConfig, Bn as ExposePrivilege, Br as CatalogIndex, Bt as GeneratedFile, Cn as EntitlementPlansSource, Cr as AppRollupAggregate, Dn as ResolvedSqlConfig, Dr as AppTableEvents, En as RealtimeConfig, Er as AppTableEventKind, Fi as EnvFileConfig, Fn as TopicTriggerValueConfig, Fr as CatalogEnum, G as standardSchema, Gi as GEN_TASKS, Gr as ExtrasDomain, Gt as GeneratorEntitySchemas, H as ValibotGeneratorOptions, Hi as PowerSyncGenConfig, Hn as Privilege, Hr as CatalogTable, Ht as GeneratorBlock, Ii as GenConfig, In as VectorDistance, Ir as CatalogForeignKey, J as FactoriesGeneratorOptions, Ji as IntegrationInfo, Jr as ExtrasHookFunction, Jt as GeneratorFunctionArg, K as NuqsGeneratorOptions, Ki as INTEGRATION_INFO, Kr as ExtrasFunction, Kt as GeneratorField, Li as GenTask, Ln as VectorSearchConfig, Lr as CatalogFunction, Lt as resolveJsonSchema, Mn as TopicTriggerLookupConfig, Mr as CatalogCheck, Nn as TopicTriggerPayloadValueConfig, Nr as CatalogColumn, On as SeedConfig, Or as AppTableSubject, Pi as DoctorConfig, Pn as TopicTriggerTopicConfig, Pr as CatalogColumnGrant, Q as jsonSchema, Qr as SnapshotBucket, Qt as GeneratorModel, Ri as IntegrationName, Rn as ColumnPrivilege, Rr as CatalogFunctionArg, Rt as ClaimsConfig, Sn as ToolingConfig, Sr as AppReferenceTarget, St as RoleNames, Tn as BucketConfig, Tr as AppTableConfig, U as valibot, Ui as SkillsAgent, Un as ResolvedExpose, Ur as CatalogTrigger, Ut as GeneratorBlockEntity, V as zod, Vi as OpenApiConfig, Vn as ExposeRole, Vr as CatalogPolicy, Vt as Generator, W as StandardSchemaGeneratorOptions, Wi as SkillsConfig, Wr as CatalogUnique, Wt as GeneratorColumn, X as JsonSchemaGeneratorOptions, Xr as ForeignKeyAction, Xt as GeneratorInputSchema, Y as factories, Yi as SKILLS_AGENTS, Yr as ExtrasTable, Yt as GeneratorInput, Z as buildJsonSchema, Zr as Snapshot, Zt as GeneratorJsonSchema, _n as DatabaseConfig, _r as AppColumnFormat, _t as defineConfig, ai as RpcFunctionArg, an as TableConfig, at as blockEntities, bn as SqlInput, br as AppOnDeleteAction, bt as BucketName, ci as RpcReturnColumn, cn as ResolvedConfig, ct as CONFIG_GROUPS, dn as AppTableInput, dr as APP_COLUMN_TYPES, dt as blockEntrySource, ei as GeneratorMetadata, en as GeneratorTable, et as ClaimPaths, fn as AppTablesInput, fr as APP_ON_DELETE_ACTIONS, ft as flattenConfig, gn as BlocksInput, gr as AppColumnConfig, gt as ResolveInput, hn as BlockInput, hr as AppColumnAccess, ht as CONFIG_SCHEMA_URL, ii as RpcFunction, in as SourceConfig, ir as CONFIG_DEFAULTS, it as BlockEntity, jn as TopicTriggerConfig, jr as Catalog, kn as SqlConfig, kr as AppTableVersions, li as RpcTypeReference, ln as ResolvedExtensions, lr as APP_COLUMN_ACCESS, lt as RENAMED_BLOCK_KEYS, mn as BetterSupabaseConfig, mr as APP_TABLE_EVENT_KINDS, mt as groupEntries, ni as PostgresFunction, nn as JsonTypeConfig, nt as claimPaths, oi as RpcFunctionOverload, on as DataHooksFramework, ot as blockEntityRenames, pn as AuthConfig, pr as APP_ROLLUP_AGGREGATES, pt as groupConfig, q as nuqs, qi as INTEGRATION_NAMES, qr as ExtrasHook, qt as GeneratorFunction, ri as PostgresFunctionArg, rn as RelationsConfig, rt as tenantClaimPaths, si as RpcFunctionReturns, sn as FlatConfig, st as blockSubjectTypes, ti as PostgresColumn, tn as JsonSchemaSource, tt as DEFAULT_CLAIMS, un as ApiConfig, ur as APP_COLUMN_FORMATS, ut as RENAMED_CONFIG_KEYS, vn as EnvironmentConfig, vr as AppColumnType, vt as resolveConfig, wn as EntitlementsConfig, wr as AppRollupConfig, wt as ExpandedConfig, xn as TenantConfig, xr as AppReference, xt as ConfigReferences, yn as GenGroupConfig, yr as AppLookupConfig, yt as BlockTableReference, z as ZodFlavor, zi as KeysConfig, zn as ExposeConfig, zr as CatalogGrant, zt as CodecsConfig } from "../context-
|
|
2
|
+
import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-Ul_ApMYW.js";
|
|
3
|
+
import { $ as JsonSchemaTarget, $r as SnapshotExtras, $t as GeneratorNoun, An as SqlWorkflow, Ar as AppTablesConfig, B as ZodGeneratorOptions, Bi as MigrationSafetyConfig, Bn as ExposePrivilege, Br as CatalogIndex, Bt as GeneratedFile, Cn as EntitlementPlansSource, Cr as AppRollupAggregate, Dn as ResolvedSqlConfig, Dr as AppTableEvents, En as RealtimeConfig, Er as AppTableEventKind, Fi as EnvFileConfig, Fn as TopicTriggerValueConfig, Fr as CatalogEnum, G as standardSchema, Gi as GEN_TASKS, Gr as ExtrasDomain, Gt as GeneratorEntitySchemas, H as ValibotGeneratorOptions, Hi as PowerSyncGenConfig, Hn as Privilege, Hr as CatalogTable, Ht as GeneratorBlock, Ii as GenConfig, In as VectorDistance, Ir as CatalogForeignKey, J as FactoriesGeneratorOptions, Ji as IntegrationInfo, Jr as ExtrasHookFunction, Jt as GeneratorFunctionArg, K as NuqsGeneratorOptions, Ki as INTEGRATION_INFO, Kr as ExtrasFunction, Kt as GeneratorField, Li as GenTask, Ln as VectorSearchConfig, Lr as CatalogFunction, Lt as resolveJsonSchema, Mn as TopicTriggerLookupConfig, Mr as CatalogCheck, Nn as TopicTriggerPayloadValueConfig, Nr as CatalogColumn, On as SeedConfig, Or as AppTableSubject, Pi as DoctorConfig, Pn as TopicTriggerTopicConfig, Pr as CatalogColumnGrant, Q as jsonSchema, Qr as SnapshotBucket, Qt as GeneratorModel, Ri as IntegrationName, Rn as ColumnPrivilege, Rr as CatalogFunctionArg, Rt as ClaimsConfig, Sn as ToolingConfig, Sr as AppReferenceTarget, St as RoleNames, Tn as BucketConfig, Tr as AppTableConfig, U as valibot, Ui as SkillsAgent, Un as ResolvedExpose, Ur as CatalogTrigger, Ut as GeneratorBlockEntity, V as zod, Vi as OpenApiConfig, Vn as ExposeRole, Vr as CatalogPolicy, Vt as Generator, W as StandardSchemaGeneratorOptions, Wi as SkillsConfig, Wr as CatalogUnique, Wt as GeneratorColumn, X as JsonSchemaGeneratorOptions, Xr as ForeignKeyAction, Xt as GeneratorInputSchema, Y as factories, Yi as SKILLS_AGENTS, Yr as ExtrasTable, Yt as GeneratorInput, Z as buildJsonSchema, Zr as Snapshot, Zt as GeneratorJsonSchema, _n as DatabaseConfig, _r as AppColumnFormat, _t as defineConfig, ai as RpcFunctionArg, an as TableConfig, at as blockEntities, bn as SqlInput, br as AppOnDeleteAction, bt as BucketName, ci as RpcReturnColumn, cn as ResolvedConfig, ct as CONFIG_GROUPS, dn as AppTableInput, dr as APP_COLUMN_TYPES, dt as blockEntrySource, ei as GeneratorMetadata, en as GeneratorTable, et as ClaimPaths, fn as AppTablesInput, fr as APP_ON_DELETE_ACTIONS, ft as flattenConfig, gn as BlocksInput, gr as AppColumnConfig, gt as ResolveInput, hn as BlockInput, hr as AppColumnAccess, ht as CONFIG_SCHEMA_URL, ii as RpcFunction, in as SourceConfig, ir as CONFIG_DEFAULTS, it as BlockEntity, jn as TopicTriggerConfig, jr as Catalog, kn as SqlConfig, kr as AppTableVersions, li as RpcTypeReference, ln as ResolvedExtensions, lr as APP_COLUMN_ACCESS, lt as RENAMED_BLOCK_KEYS, mn as BetterSupabaseConfig, mr as APP_TABLE_EVENT_KINDS, mt as groupEntries, ni as PostgresFunction, nn as JsonTypeConfig, nt as claimPaths, oi as RpcFunctionOverload, on as DataHooksFramework, ot as blockEntityRenames, pn as AuthConfig, pr as APP_ROLLUP_AGGREGATES, pt as groupConfig, q as nuqs, qi as INTEGRATION_NAMES, qr as ExtrasHook, qt as GeneratorFunction, ri as PostgresFunctionArg, rn as RelationsConfig, rt as tenantClaimPaths, si as RpcFunctionReturns, sn as FlatConfig, st as blockSubjectTypes, ti as PostgresColumn, tn as JsonSchemaSource, tt as DEFAULT_CLAIMS, un as ApiConfig, ur as APP_COLUMN_FORMATS, ut as RENAMED_CONFIG_KEYS, vn as EnvironmentConfig, vr as AppColumnType, vt as resolveConfig, wn as EntitlementsConfig, wr as AppRollupConfig, wt as ExpandedConfig, xn as TenantConfig, xr as AppReference, xt as ConfigReferences, yn as GenGroupConfig, yr as AppLookupConfig, yt as BlockTableReference, z as ZodFlavor, zi as KeysConfig, zn as ExposeConfig, zr as CatalogGrant, zt as CodecsConfig } from "../context-dHluCmud.js";
|
|
4
4
|
import { i as SubjectsConfig, n as SubjectPermission, r as SubjectSearch, t as SubjectConfig } from "../subjects-BGwLJ3IB.js";
|
|
5
5
|
import { a as FieldFormat, o as FieldFormatInput, r as FIELD_FORMATS } from "../field-formats-DVukMbRa.js";
|
|
6
6
|
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type BetterSupabaseConfig, type BlockConfig, type BlockEntity, type BlockInput, type BlockMode, type BlockScope, type BlockTableReference, type BlocksConfig, type BlocksInput, type BucketConfig, type BucketName, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, type Casing, type Catalog, type CatalogCheck, type CatalogColumn, type CatalogColumnGrant, type CatalogEnum, type CatalogForeignKey, type CatalogFunction, type CatalogFunctionArg, type CatalogGrant, type CatalogIndex, type CatalogPolicy, type CatalogTable, type CatalogTrigger, type CatalogUnique, type ClaimPaths, type ClaimsConfig, type CodecsConfig, type ColumnPrivilege, type ConfigReferences, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, type DataHooksFramework, type DatabaseConfig, type DisabledRow, type DoctorConfig, type EntitiesConfig, type EntitlementPlansSource, type EntitlementsConfig, type EntityConfig, type EnvFileConfig, type EnvironmentConfig, type ExpandedConfig, type ExposeConfig, type ExposePrivilege, type ExposeRole, type ExtrasDomain, type ExtrasFunction, type ExtrasHook, type ExtrasHookFunction, type ExtrasTable, FIELD_FORMATS, type FactoriesGeneratorOptions, type FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorColumn, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorNoun, type GeneratorTable, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaGeneratorOptions, type JsonSchemaSource, type JsonSchemaTarget, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type NuqsGeneratorOptions, type OpenApiConfig, type OwnTablePolicies, type PostgresColumn, type PostgresFunction, type PostgresFunctionArg, type PowerSyncGenConfig, type Privilege, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, type RealtimeConfig, type RelationsConfig, type ResolveInput, type ResolvedConfig, type ResolvedExpose, type ResolvedExtensions, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlConfig, type SqlInput, type SqlWorkflow, type StandardSchemaGeneratorOptions, type SubjectConfig, type SubjectPermission, type SubjectSearch, type SubjectsConfig, type TableConfig, type TenantConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type ValibotGeneratorOptions, type VectorDistance, type VectorSearchConfig, type ZodFlavor, type ZodGeneratorOptions, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
|
package/dist/config/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as CONFIG_DEFAULTS, n as blockEntityRenames, r as blockSubjectTypes,
|
|
2
|
-
import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_NAMES, I as SKILLS_AGENTS, M as groupEntries, N as GEN_TASKS, O as RENAMED_CONFIG_KEYS, P as INTEGRATION_INFO, j as groupConfig, k as blockEntrySource } from "../config-
|
|
1
|
+
import { c as resolveJsonSchema, l as CONFIG_DEFAULTS, n as blockEntityRenames, r as blockSubjectTypes, t as blockEntities } from "../block-subjects-BumEsEYb.js";
|
|
2
|
+
import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_NAMES, I as SKILLS_AGENTS, M as groupEntries, N as GEN_TASKS, O as RENAMED_CONFIG_KEYS, P as INTEGRATION_INFO, j as groupConfig, k as blockEntrySource } from "../config-BRGMUEE2.js";
|
|
3
3
|
import { a as tenantClaimPaths, r as claimPaths, t as DEFAULT_CLAIMS } from "../claims-CqTr_N1n.js";
|
|
4
|
-
import { A as APP_ROLLUP_AGGREGATES, D as APP_COLUMN_FORMATS, E as APP_COLUMN_ACCESS, L as tenantNameOf, O as APP_COLUMN_TYPES, P as DEFAULT_ACTIVE_TENANT, j as APP_TABLE_EVENT_KINDS, k as APP_ON_DELETE_ACTIONS } from "../instances-
|
|
4
|
+
import { A as APP_ROLLUP_AGGREGATES, D as APP_COLUMN_FORMATS, E as APP_COLUMN_ACCESS, L as tenantNameOf, O as APP_COLUMN_TYPES, P as DEFAULT_ACTIVE_TENANT, j as APP_TABLE_EVENT_KINDS, k as APP_ON_DELETE_ACTIONS } from "../instances-DqEZrffE.js";
|
|
5
5
|
import { r as FIELD_FORMATS } from "../field-formats-Cap-V7UP.js";
|
|
6
|
-
import { a as factories, c as resolveConfig, i as nuqs, l as providerApiProblem, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod } from "../config-
|
|
6
|
+
import { a as factories, c as resolveConfig, i as nuqs, l as providerApiProblem, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod } from "../config-qqAfS_1_.js";
|
|
7
7
|
import { n as jsonSchema, t as buildJsonSchema } from "../json-schema-D9eVL_xi.js";
|
|
8
8
|
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, FIELD_FORMATS, GEN_TASKS, INTEGRATION_INFO, INTEGRATION_NAMES, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, SKILLS_AGENTS, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as DEFAULT_TENANT } from "./entity-naming-BES3pkQI.js";
|
|
2
|
-
import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-
|
|
2
|
+
import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-DqEZrffE.js";
|
|
3
3
|
// src/config/names.ts
|
|
4
4
|
/** The steps `better-supabase gen` runs, in the order it runs them. */
|
|
5
5
|
const GEN_TASKS = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as withBlockSubjects,
|
|
2
|
-
import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-
|
|
1
|
+
import { a as withBlockSubjects, l as CONFIG_DEFAULTS } from "./block-subjects-BumEsEYb.js";
|
|
2
|
+
import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-BRGMUEE2.js";
|
|
3
3
|
import { t as DEFAULT_CLAIMS } from "./claims-CqTr_N1n.js";
|
|
4
4
|
import { o as tenantNames } from "./entity-naming-BES3pkQI.js";
|
|
5
|
-
import { L as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-
|
|
5
|
+
import { L as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-DqEZrffE.js";
|
|
6
6
|
import { C as variantsFor, S as variantTitle, _ as schemaName, a as extraSchemas, b as tableEntries, c as resultType, d as fieldSpec, f as fieldsFor, g as rowType, h as propertyKey, i as extraKinds, l as HEADER, m as parseImport, o as fieldMetaLines, p as optionalLine, s as objectType, u as fieldDocs, v as siblingPath, x as temporalGuardImport, y as tableDocs } from "./json-schema-D9eVL_xi.js";
|
|
7
7
|
// src/config/authorization.ts
|
|
8
8
|
/**
|
|
@@ -233,7 +233,7 @@ function resolveConfig(input, root) {
|
|
|
233
233
|
entitlements: entitlementsOf(config.entitlements, config.authorization !== void 0),
|
|
234
234
|
...config.authorization === void 0 ? {} : { authorization: authorizationOf(config.authorization) },
|
|
235
235
|
vectorSearch: vectorSearchOf(config.vectorSearch),
|
|
236
|
-
subjects: withBlockSubjects(withAppTableSubjects(config.subjects ?? {}, appTables, config.sql?.scope, tenantName), blocks.blockNames, blocks.blocks),
|
|
236
|
+
subjects: withBlockSubjects(withAppTableSubjects(config.subjects ?? {}, appTables, config.sql?.scope, tenantName), blocks.blockNames, blocks.blocks, config.sql?.tenantColumn),
|
|
237
237
|
sql: {
|
|
238
238
|
...config.sql?.workflow === void 0 ? {} : { workflow: config.sql.workflow },
|
|
239
239
|
dir: config.sql?.dir ?? CONFIG_DEFAULTS.sql.dir,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { F as ClaimsMeta, M as BucketPolicyName, N as Casing, T as AccessBucketPolicy, st as SchemaMeta, vt as BucketLifecycle } from "./types-BzIYSSWK.js";
|
|
3
|
-
import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-
|
|
3
|
+
import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-Ul_ApMYW.js";
|
|
4
4
|
import { Mn as EntityNames, Nn as EntityNoun, Pn as EntityRename, R as PortName, Ut as ActionDescriptor, Xt as BlockSchedule, Zt as DefaultAutomation, _ as BlockProvider, g as BlockEnvKey, i as BlockCategory, y as BlockWorker } from "./define-block-CDw9YGVh.js";
|
|
5
5
|
import { a as ScalarKind, i as FieldSpec } from "./table-schema-CwXg7oBz.js";
|
|
6
6
|
import { i as SubjectsConfig } from "./subjects-BGwLJ3IB.js";
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $t as AuthorizationSubject, D as AccessTopicPolicy, E as AccessPolicySql, Gt as AuthorizationChange, Jt as AuthorizationOutcome, Kt as AuthorizationContext, Qt as AuthorizationResourceSource, T as AccessBucketPolicy, Ut as AnyAuthorizer, Wt as AuthorizationCallKind, Xt as AuthorizationRequest, Yt as AuthorizationPurpose, Zt as AuthorizationResource, en as Authorizer, in as RequestMemo, nn as AuthzVersionCache, qt as AuthorizationIntent, rn as PermissionRef, tn as AuthorizerRuntime } from "../types-BzIYSSWK.js";
|
|
2
2
|
import { m as SessionSnapshot } from "../resolve-XlMQRUeG.js";
|
|
3
3
|
import { r as CredentialProvider } from "../provider-CVlXXbda.js";
|
|
4
|
-
import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "../authorization-
|
|
4
|
+
import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "../authorization-Ul_ApMYW.js";
|
|
5
5
|
import { _ as SupportAuthorize, g as SubscriberPolicy, i as AuthorizationHooks, v as SupportAuthorizeInput } from "../authorization-hooks-CR8TVvqo.js";
|
|
6
6
|
import { n as ApprovalOptions } from "../server-types-DpI82uNq.js";
|
|
7
7
|
import { s as ApiKeyResolverOptions } from "../api-keys-BncNDlWG.js";
|
|
8
|
-
import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-
|
|
9
|
-
import { n as BlockTables, t as BlockTable } from "../block-tables-
|
|
8
|
+
import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-CpZ4WDDJ.js";
|
|
9
|
+
import { n as BlockTables, t as BlockTable } from "../block-tables-nkIjJ1ly.js";
|
|
10
10
|
/**
|
|
11
11
|
* The types an authorization library implements or reads, in one entry with no
|
|
12
12
|
* runtime code. Every slot is versioned `apiVersion: 1`; a breaking change to
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ClientAuth } from "./bind-
|
|
1
|
+
import { a as ClientAuth } from "./bind-B2GlypM6.js";
|
|
2
2
|
/**
|
|
3
3
|
* A block's client state, framework-agnostic. `subscribe` and `getSnapshot`
|
|
4
4
|
* follow the external-store contract, so React's `useSyncExternalStore`, a Vue
|
package/dist/create/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-
|
|
3
|
-
import { E as CreateDesign, b as DesignChange } from "../index-
|
|
4
|
-
import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types
|
|
2
|
+
import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-dHluCmud.js";
|
|
3
|
+
import { E as CreateDesign, b as DesignChange } from "../index-DhcLJAtX.js";
|
|
4
|
+
import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-B42S7qfO.js";
|
|
5
5
|
import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-DtX4ic1F.js";
|
|
6
6
|
/** What `checkDesign` returns. */
|
|
7
7
|
export type DesignCheck = {
|
package/dist/create/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as APP_ON_DELETE_ACTIONS } from "../instances-
|
|
2
|
-
import { m as diffDesigns } from "../preset-
|
|
3
|
-
import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-
|
|
1
|
+
import { k as APP_ON_DELETE_ACTIONS } from "../instances-DqEZrffE.js";
|
|
2
|
+
import { m as diffDesigns } from "../preset-Byz43PrL.js";
|
|
3
|
+
import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-Y2wW_nr_.js";
|
|
4
4
|
// src/create/column-kinds.ts
|
|
5
5
|
/** The groups of the column type picker, in the order it shows them. */
|
|
6
6
|
const KIND_GROUPS = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { st as SchemaMeta } from "../../types-BzIYSSWK.js";
|
|
2
|
-
import { Tt as PresetInput } from "../../context-
|
|
3
|
-
import { E as CreateDesign } from "../../index-
|
|
4
|
-
import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types
|
|
2
|
+
import { Tt as PresetInput } from "../../context-dHluCmud.js";
|
|
3
|
+
import { E as CreateDesign } from "../../index-DhcLJAtX.js";
|
|
4
|
+
import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-B42S7qfO.js";
|
|
5
5
|
import { c as SpecDiagnostic } from "../../format-BT0Z3V54.js";
|
|
6
6
|
/**
|
|
7
7
|
* The parts of `@supabase/lite` that `liteStack()` uses, typed structurally so
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { y as appDefaultError } from "../../instances-
|
|
2
|
-
import { n as loadProject } from "../../project-
|
|
1
|
+
import { y as appDefaultError } from "../../instances-DqEZrffE.js";
|
|
2
|
+
import { n as loadProject } from "../../project-Y2wW_nr_.js";
|
|
3
3
|
import { n as loadLite, t as LITE_INSTALL } from "../../runtime-qslVrC9l.js";
|
|
4
4
|
import { t as defineApi } from "../../api-wwix_K5c.js";
|
|
5
5
|
// src/create/lite/apply.ts
|
|
@@ -5,10 +5,10 @@ import { mt as QuerySpec } from "./define-C_He1bQO.js";
|
|
|
5
5
|
import { tt as TemplateValues } from "./bucket-CrsJNHzi.js";
|
|
6
6
|
import { n as DataEngine } from "./data-engine-CX1oYDZl.js";
|
|
7
7
|
import { Dn as GeneratedBlocks } from "./define-block-CDw9YGVh.js";
|
|
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-
|
|
8
|
+
import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-CekU96q7.js";
|
|
9
|
+
import { t as ClientPorts } from "./ports-1M1E_r2n.js";
|
|
10
|
+
import { a as ClientAuth } from "./bind-B2GlypM6.js";
|
|
11
|
+
import { a as LiveSource, r as LiveCountSeed } from "./index-y70eTezB.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";
|
|
@@ -5,13 +5,13 @@ import { mt as QuerySpec } from "./define-C_He1bQO.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-CrsJNHzi.js";
|
|
6
6
|
import { m as RejectedChange, o as DataSyncState } from "./data-engine-CX1oYDZl.js";
|
|
7
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-DAS_5OfK.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-
|
|
9
|
-
import { t as AuthSnapshot } from "./bind-
|
|
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-CekU96q7.js";
|
|
9
|
+
import { t as AuthSnapshot } from "./bind-B2GlypM6.js";
|
|
10
10
|
import { n as AuthSession } from "./view-eHgOOyRS.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-y70eTezB.js";
|
|
12
|
+
import { n as Controller } from "./controller-BQXgMwWN.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-DIDkgzFA.js";
|
|
14
|
+
import { t as BlockEnv } from "./block-env-Bcr-jEA1.js";
|
|
15
15
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "./block-method-QSaPsL2P.js";
|
|
16
16
|
import { s as RecordFormValues, t as RecordForm } from "./record-form-C-gIxGXe.js";
|
|
17
17
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { O as AnyFunctions, Ut as AnyAuthorizer, dt as TableKey, k as AnyModels, nn as AuthzVersionCache, rn as PermissionRef } from "./types-BzIYSSWK.js";
|
|
2
|
-
import { t as OperationTable } from "./operations-
|
|
2
|
+
import { t as OperationTable } from "./operations-Sza7UQKP.js";
|
|
3
3
|
import { t as BetterSupabase } from "./define-C_He1bQO.js";
|
|
4
4
|
import { l as ServerOptions, o as ServerContext, r as BetterServer } from "./server-types-DpI82uNq.js";
|
|
5
5
|
import { r as GuardOptions } from "./respond-D7kUatjc.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ar as AppTablesConfig, Mt as ResolvedPreset, Ot as presetConfig, Tr as AppTableConfig, Wn as PresetSpec, er as PresetName, gi as PresetGlueItem, gr as AppColumnConfig, pi as PresetCatalog, vr as AppColumnType, xi as Preset } from "./context-
|
|
1
|
+
import { Ar as AppTablesConfig, Mt as ResolvedPreset, Ot as presetConfig, Tr as AppTableConfig, Wn as PresetSpec, er as PresetName, gi as PresetGlueItem, gr as AppColumnConfig, pi as PresetCatalog, vr as AppColumnType, xi as Preset } from "./context-dHluCmud.js";
|
|
2
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
declare const PRESET_CATALOG: PresetCatalog;
|
|
4
4
|
/**
|
|
@@ -3,7 +3,7 @@ import { Ct as Events, v as ApiKeyEventData } from "./events-DddDlibJ.js";
|
|
|
3
3
|
import { r as AuthState } from "./resolve-XlMQRUeG.js";
|
|
4
4
|
import { t as BlockProblemOptions } from "./problem-NGBjN-TO.js";
|
|
5
5
|
import { c as BlockOf } from "./define-block-CDw9YGVh.js";
|
|
6
|
-
import { n as Controller, t as AuthPort } from "./controller-
|
|
6
|
+
import { n as Controller, t as AuthPort } from "./controller-BQXgMwWN.js";
|
|
7
7
|
import { _ as createApiKeys, d as CreateApiKeyInput, f as CreatedApiKey, l as ApiKeys, s as ApiKeyResolverOptions, t as ApiKey } from "./api-keys-BncNDlWG.js";
|
|
8
8
|
import { Entry } from "@supabase/middleware";
|
|
9
9
|
import { AuthMode, JWTClaims, UserClaims } from "@supabase/server";
|
|
@@ -3,8 +3,8 @@ import { O as AnyFunctions, k as AnyModels } from "./types-BzIYSSWK.js";
|
|
|
3
3
|
import { l as PublicEnv } from "./index-F6lsRlsr.js";
|
|
4
4
|
import { T as SessionEncoding } from "./resolve-XlMQRUeG.js";
|
|
5
5
|
import { t as BetterSupabase } from "./define-C_He1bQO.js";
|
|
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-
|
|
6
|
+
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-1M1E_r2n.js";
|
|
7
|
+
import { i as BindClientOptions, r as BetterClient } from "./bind-B2GlypM6.js";
|
|
8
8
|
import { n as FunctionContract } from "./function-contract-DgDBYbXu.js";
|
|
9
9
|
import { FunctionInvokeOptions, SupabaseClient, SupabaseClientOptions } from "@supabase/supabase-js";
|
|
10
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as AccessPolicySql } from "./types-BzIYSSWK.js";
|
|
2
|
-
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-
|
|
2
|
+
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-Ul_ApMYW.js";
|
|
3
3
|
import { nt as ReadSet } from "./define-C_He1bQO.js";
|
|
4
|
-
import { R as TableGrant, Tr as AppTableConfig, Vr as CatalogPolicy, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, cn as ResolvedConfig, g as BlockSqlAccessProvider, h as BlockSql, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-
|
|
4
|
+
import { R as TableGrant, Tr as AppTableConfig, Vr as CatalogPolicy, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, cn as ResolvedConfig, g as BlockSqlAccessProvider, h as BlockSql, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-dHluCmud.js";
|
|
5
5
|
import { t as SubjectConfig } from "./subjects-BGwLJ3IB.js";
|
|
6
6
|
/** A module's SQL for `layout`, without header; `undefined` in custom mode. */
|
|
7
7
|
declare function moduleBody(name: string, layout?: BlockSqlLayout): string | undefined;
|
|
@@ -2,8 +2,8 @@ import { b as DbError, f as Result } from "./result-DTOQRyGY.js";
|
|
|
2
2
|
import { et as RecordRef, st as SchemaMeta } from "./types-BzIYSSWK.js";
|
|
3
3
|
import { mt as QuerySpec } from "./define-C_He1bQO.js";
|
|
4
4
|
import { t as DataChanges } from "./data-engine-CX1oYDZl.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-CekU96q7.js";
|
|
6
|
+
import { n as TopicPort } from "./watch-topic-DBw411Mq.js";
|
|
7
7
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
8
|
/** The `EventSource` the relay client reads with; the browser's fits. */
|
|
9
9
|
interface RelayEventSource {
|
|
@@ -3853,7 +3853,11 @@ const PRESET_CATALOG = {
|
|
|
3853
3853
|
"title": "Ledger",
|
|
3854
3854
|
"category": "commerce",
|
|
3855
3855
|
"requires": ["memberships", "permissions"],
|
|
3856
|
-
"integrates": [
|
|
3856
|
+
"integrates": [
|
|
3857
|
+
"outbox",
|
|
3858
|
+
"audit",
|
|
3859
|
+
"data-lifecycle"
|
|
3860
|
+
],
|
|
3857
3861
|
"manifest": "ledger",
|
|
3858
3862
|
"scopes": ["tenant"],
|
|
3859
3863
|
"entities": {
|
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-PcwPOm4G.js";
|
|
2
|
+
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-BxxtUXVN.js";
|
|
3
|
+
import { t as loadSnapshot } from "../cli/snapshot-CfgRxTQq.js";
|
|
4
|
+
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-BeZToAp-.js";
|
|
5
5
|
import { i as discoverConfig, s as loadConfig } from "../cli/config-DrrkMihk.js";
|
|
6
6
|
import { i as parseEnv, n as configEnvironment } from "../cli/env-BCuUsWOh.js";
|
|
7
|
-
import { s as schemaStampPath } from "../cli/content-mapper-
|
|
7
|
+
import { s as schemaStampPath } from "../cli/content-mapper-DngBJv4r.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,4 +1,4 @@
|
|
|
1
1
|
import { r as GuardOptions } from "../respond-D7kUatjc.js";
|
|
2
2
|
import { l as ResourceRouteOptions } from "../resource-types-CF3Uc6OW.js";
|
|
3
|
-
import { _ as ToolResult, a as ToolDecision, c as ToolResourceOptions, d as defineTool, f as MCP_PROTOCOL_VERSION, g as ToolInfo, h as ToolAnnotations, i as ToolContext, l as ToolResources, m as ServerDescription, n as McpOptions, o as ToolDefinition, p as ProtocolServer, r as McpTool, s as ToolRef, t as BetterMcp, u as createMcp, v as answerLine, y as answerMessage } from "../index-
|
|
3
|
+
import { _ as ToolResult, a as ToolDecision, c as ToolResourceOptions, d as defineTool, f as MCP_PROTOCOL_VERSION, g as ToolInfo, h as ToolAnnotations, i as ToolContext, l as ToolResources, m as ServerDescription, n as McpOptions, o as ToolDefinition, p as ProtocolServer, r as McpTool, s as ToolRef, t as BetterMcp, u as createMcp, v as answerLine, y as answerMessage } from "../index-CpZ4WDDJ.js";
|
|
4
4
|
export { type BetterMcp, type GuardOptions, MCP_PROTOCOL_VERSION, type McpOptions, type McpTool, type ProtocolServer, type ResourceRouteOptions, type ServerDescription, type ToolAnnotations, type ToolContext, type ToolDecision, type ToolDefinition, type ToolInfo, type ToolRef, type ToolResourceOptions, type ToolResources, type ToolResult, answerLine, answerMessage, createMcp, defineTool };
|