better-supabase 0.37.0 → 0.39.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-BlhdqqHf.d.ts → app-tables-BeLFmp0l.d.ts} +1 -1
- package/dist/{authorization-C7yjZttV.d.ts → authorization-DQZ8Lrp5.d.ts} +46 -6
- package/dist/{bind-BspFMDdW.d.ts → bind-DsDKjuQn.d.ts} +1 -1
- package/dist/{block-env-CLco8YUl.d.ts → block-env-mNi2rPSF.d.ts} +3 -3
- package/dist/block-subjects-CINiJW1R.js +253 -0
- package/dist/{block-tables-DfomofFv.d.ts → block-tables-DYFRvRWW.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/catalog/index.d.ts +29 -5
- package/dist/blocks/catalog/index.js +42 -9
- package/dist/blocks/comments/index.d.ts +4 -4
- package/dist/blocks/entitlements/index.d.ts +2 -2
- package/dist/blocks/expenses/index.d.ts +2 -0
- package/dist/blocks/expenses/index.js +10 -3
- 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 +15 -1
- package/dist/blocks/invoices/index.js +14 -1
- package/dist/blocks/leave/index.d.ts +35 -1
- package/dist/blocks/leave/index.js +18 -3
- 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-BCkaPIvM.js +1 -0
- package/dist/cli/{add-DqfJVb1F.js → add-Ba8xoX4q.js} +10 -10
- package/dist/cli/{add-Buuy7BSU.js → add-DKlk-VV9.js} +2 -2
- package/dist/cli/{app-table-files-Ku-4tPUu.js → app-table-files-Dw02ao0W.js} +2 -2
- package/dist/cli/{app-tables-Dg0sh4dH.js → app-tables-iSQ0c7G3.js} +2 -2
- package/dist/cli/{backfill-Dspz6kVJ.js → backfill-sYQgRuGd.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-CqVBlc4L.js → blocks-BAj3U18j.js} +1 -1
- package/dist/cli/{blocks-B8LAph-w.js → blocks-YKQzZhPK.js} +1 -1
- package/dist/cli/{cache-BbuuCIRU.js → cache-BFSbb4is.js} +1 -1
- package/dist/cli/{codemod-DIAy8uXt.js → codemod-vbToOtFK.js} +1 -1
- package/dist/cli/{content-mapper-NXfJ5VkP.js → content-mapper-COnyl3V7.js} +2 -2
- package/dist/cli/{doctor-CUOyLE0c.js → doctor-BTGesU_-.js} +15 -15
- package/dist/cli/{gen-s9canfdC.js → gen-h1Ncsh1X.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-Zs0Ca5on.js → init-DCy-FlB2.js} +8 -8
- package/dist/cli/{live-BaLsNove.js → live-BUOVB-DV.js} +2 -2
- package/dist/cli/{mcp-ST7bVpJD.js → mcp-CLAjfETj.js} +2 -2
- package/dist/cli/{metadata-aOvlCOOg.js → metadata-DqcJb3p5.js} +3 -3
- package/dist/cli/{migrate-ClBx3Ggx.js → migrate-dI1IaRan.js} +1 -1
- package/dist/cli/{migration-safety-mjm1pghO.js → migration-safety-Cj2AZdIH.js} +1 -1
- package/dist/cli/{migrations-tzItvwxT.js → migrations-CFIlnOmr.js} +2 -2
- package/dist/cli/{module-migration-D0Rjdvdx.js → module-migration-DteyIWzV.js} +2 -2
- package/dist/cli/powersync-D-1aQ3C6.js +1 -0
- package/dist/cli/{powersync-DryX_DMG.js → powersync-DWFvtUuZ.js} +3 -3
- package/dist/cli/{print-fOUnKwA9.js → print-DUUGo-bA.js} +2 -2
- package/dist/cli/{providers-BR1d_5jA.js → providers-B4q4yMUv.js} +1 -1
- package/dist/cli/{prune-workflows-CCjzNrxl.js → prune-workflows-DhJX2wAQ.js} +1 -1
- package/dist/cli/{remove-B_0OIusa.js → remove-BsAhvYpx.js} +5 -5
- package/dist/cli/{render-BCJKDX3c.js → render-CvRXYRSy.js} +3 -3
- package/dist/cli/{run-BctvQX_g.js → run-BY0fbQxQ.js} +27 -27
- package/dist/cli/{run-4VUQTR-R.js → run-DxWZi4IJ.js} +9 -9
- package/dist/cli/{shared-oY7PGamd.js → shared-C_9DBYw-.js} +1 -1
- package/dist/cli/{snapshot-CWtER9-4.js → snapshot-BAFwCE0l.js} +2 -2
- package/dist/cli/{source-D4uav_v9.js → source-CpnSlB6J.js} +1 -1
- package/dist/cli/{spec-BPsyEzqH.js → spec-BMBYao_7.js} +1 -1
- package/dist/cli/{spec-DTnBeaCD.js → spec-SNEhNUFc.js} +2 -2
- package/dist/cli/{sql-layout-DbhEQqq0.js → sql-layout-CKFIMA8Y.js} +2 -2
- package/dist/cli/{sync-CazH5FX4.js → sync-DMMrYcyr.js} +4 -4
- package/dist/cli/{upgrade-Dyb4-f0Q.js → upgrade-C1sSWUgx.js} +2 -2
- package/dist/cli/{upgrade-Cyx6ESpc.js → upgrade-D9tsBxs0.js} +5 -5
- package/dist/cli/{version-D1ZKUFng.js → version-DnpEuhUA.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-Dx3bEPlX.js → config-1-UmQczM.js} +1 -1
- package/dist/{config-uSliwPS6.js → config-AEB5iNEO.js} +4 -123
- package/dist/{context-D6OZQdcT.d.ts → context-Cln1eg7-.d.ts} +1 -1
- package/dist/contract/index.d.ts +3 -3
- package/dist/{controller-DhcSXkAC.d.ts → controller-BQHh7VG5.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-Bi4y8w8e.d.ts → entitlements-aN3jHcYL.d.ts} +1 -1
- package/dist/{field-errors-CJ_i6HFg.d.ts → field-errors-0V7t1-pz.d.ts} +4 -4
- package/dist/{index-Bm1ftdBA.d.ts → index-3JE4ptwV.d.ts} +2 -2
- package/dist/{index-DrDCN45q.d.ts → index-C0jB70wR.d.ts} +1 -1
- package/dist/{index-Bc5t2QRU.d.ts → index-CCb0JjiX.d.ts} +6 -6
- package/dist/{index-ChvuVimY.d.ts → index-D1harGe_.d.ts} +2 -2
- package/dist/{index-CRwpDGxd.d.ts → index-DWCo9ZUL.d.ts} +1 -1
- package/dist/{index-C71uHfVj.d.ts → index-DoDmA-sQ.d.ts} +2 -2
- package/dist/{index-Cbwvf4yE.d.ts → index-hmnB81h6.d.ts} +1 -1
- package/dist/{instances-DKULdpWB.js → instances-Bycf_aus.js} +13 -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-BDjgCmT9.d.ts → operations-TlhX7IZX.d.ts} +1 -1
- package/dist/{options-X61tvckX.js → options-BXbixNrP.js} +3 -1
- package/dist/{options-RYbyaVhv.js → options-CYZH9uxU.js} +3 -1
- package/dist/{options-CEwoGUk_.js → options-DiEoDCtf.js} +4 -1
- package/dist/{options-ScQ6Hnxo.js → options-zsLpIqBA.js} +2 -1
- package/dist/otel/index.js +4 -4
- package/dist/{permissions-BGx22GP3.d.ts → permissions-CwlRRwvr.d.ts} +1 -1
- package/dist/{ports-D63bA3p4.d.ts → ports-rJDkwtOQ.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-oc_liUHz.js → preset-DkeXFh7e.js} +2 -2
- package/dist/{project-Cs0kz5OP.js → project-Bcs-4Pfw.js} +5 -5
- package/dist/{push-token-BsyX0KlT.d.ts → push-token-BLQ09NeA.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 +3 -3
- package/dist/{sql-CWYbu_6y.js → sql-D-_Egz0E.js} +552 -108
- package/dist/ssr/index.d.ts +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/{tenant-DqnE50Ju.d.ts → tenant-BkW_auBX.d.ts} +1 -1
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +1 -1
- package/dist/{topic-Dp7VGPd-.d.ts → topic-L_8Qs5qs.d.ts} +1 -1
- package/dist/{types-DLXTmZtm.d.ts → types--PUNrvz8.d.ts} +2 -2
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-CtJAkWT4.d.ts → watch-topic-B9aKuw5v.d.ts} +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-pB1jCLIL.js → workflow-sdk-6psRpDIo.js} +1 -69
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +19 -0
- package/dist/cli/add-8zKWiO0X.js +0 -1
- package/dist/cli/powersync-vvu2-72V.js +0 -1
- package/dist/resolved-names-sd6RuTju.js +0 -130
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { r as errorText } from "./errors-DcJ_PayO.js";
|
|
2
2
|
import { a as sameText, t as display } from "./io-CQzy8PEZ.js";
|
|
3
|
-
import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-
|
|
3
|
+
import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-BFSbb4is.js";
|
|
4
4
|
import { t as byCodePoint } from "./compare-yl4sSwVn.js";
|
|
5
|
-
import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-
|
|
6
|
-
import { n as render } from "./render-
|
|
5
|
+
import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-BAFwCE0l.js";
|
|
6
|
+
import { n as render } from "./render-CvRXYRSy.js";
|
|
7
7
|
import { a as moduleKeyProblems, c as unsafeKey, i as entitlementsMode, n as accessRequirements, o as providerLabel, r as entitlementRequirements } from "./authorization-DJkkOjjG.js";
|
|
8
|
-
import { s as schemaStampPath } from "./content-mapper-
|
|
8
|
+
import { s as schemaStampPath } from "./content-mapper-COnyl3V7.js";
|
|
9
9
|
import { a as changedFiles, d as fileDiff, i as changeLines, r as applyPlan, s as hasConflicts } from "./files-DQayErI8.js";
|
|
10
|
-
import { n as migrationsDir } from "./sql-layout-
|
|
11
|
-
import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-
|
|
12
|
-
import { n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-
|
|
13
|
-
import { a as compiledReadSets } from "./providers-
|
|
14
|
-
import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-
|
|
10
|
+
import { n as migrationsDir } from "./sql-layout-CKFIMA8Y.js";
|
|
11
|
+
import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-C_9DBYw-.js";
|
|
12
|
+
import { n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-iSQ0c7G3.js";
|
|
13
|
+
import { a as compiledReadSets } from "./providers-B4q4yMUv.js";
|
|
14
|
+
import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-DteyIWzV.js";
|
|
15
15
|
import { existsSync } from "node:fs";
|
|
16
16
|
import { dirname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
17
17
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as toCatalog } from "./source-
|
|
1
|
+
import { a as toCatalog } from "./source-CpnSlB6J.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-BFSbb4is.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-CpnSlB6J.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-DnpEuhUA.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-SNEhNUFc.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-DnpEuhUA.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-BFSbb4is.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-BAFwCE0l.js";
|
|
2
|
+
import { a as toCatalog } from "./source-CpnSlB6J.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-CKFIMA8Y.js";
|
|
6
|
+
import { r as layoutFor } from "./providers-B4q4yMUv.js";
|
|
7
|
+
import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-CFIlnOmr.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-DteyIWzV.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-DMMrYcyr.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-D9tsBxs0.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-CKFIMA8Y.js";
|
|
4
|
+
import { r as layoutFor } from "./providers-B4q4yMUv.js";
|
|
5
|
+
import { r as migrationStamp } from "./migrations-CFIlnOmr.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-DteyIWzV.js";
|
|
7
|
+
import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-DMMrYcyr.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-B9aKuw5v.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-rJDkwtOQ.js";
|
|
4
|
+
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-DsDKjuQn.js";
|
|
5
|
+
import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-BQHh7VG5.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-D1harGe_.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-B9aKuw5v.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-rJDkwtOQ.js";
|
|
5
|
+
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-DsDKjuQn.js";
|
|
6
|
+
import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-BLQ09NeA.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-DQZ8Lrp5.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-Cln1eg7-.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 { n as
|
|
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 CONFIG_DEFAULTS, n as blockEntityRenames, r as blockSubjectTypes, s as resolveJsonSchema, t as blockEntities } from "../block-subjects-CINiJW1R.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-1-UmQczM.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-Bycf_aus.js";
|
|
5
5
|
import { r as FIELD_FORMATS } from "../field-formats-Cap-V7UP.js";
|
|
6
|
-
import { a as factories, c as resolveConfig,
|
|
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-AEB5iNEO.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-Bycf_aus.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 {
|
|
2
|
-
import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-
|
|
1
|
+
import { a as withBlockSubjects, c as CONFIG_DEFAULTS } from "./block-subjects-CINiJW1R.js";
|
|
2
|
+
import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-1-UmQczM.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 {
|
|
5
|
+
import { L as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-Bycf_aus.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
|
/**
|
|
@@ -14,125 +14,6 @@ function providerApiProblem(provider) {
|
|
|
14
14
|
if (version === 1) return;
|
|
15
15
|
return `authorization "${typeof provider.name === "string" ? provider.name : "provider"}" targets authorization provider API ${String(version)}; this better-supabase supports 1. Upgrade better-supabase or use a release of the provider for API 1.`;
|
|
16
16
|
}
|
|
17
|
-
// src/config/block-subjects.ts
|
|
18
|
-
const CATALOG = new Map(PRESET_CATALOG.blocks.map((block) => [block.name, block]));
|
|
19
|
-
/** `names` and every block they require, from the catalog, in order. */
|
|
20
|
-
function withRequired(names) {
|
|
21
|
-
const found = /* @__PURE__ */ new Set();
|
|
22
|
-
const add = (name) => {
|
|
23
|
-
if (found.has(name)) return;
|
|
24
|
-
found.add(name);
|
|
25
|
-
for (const required of CATALOG.get(name)?.requires ?? []) add(required);
|
|
26
|
-
};
|
|
27
|
-
for (const name of names) add(name);
|
|
28
|
-
return [...found];
|
|
29
|
-
}
|
|
30
|
-
const PLACEHOLDER = /\{([^{}]*)\}/g;
|
|
31
|
-
/** One installed module's names under `blocks`, from the catalog. */
|
|
32
|
-
function catalogNames(module) {
|
|
33
|
-
const entities = CATALOG.get(module)?.entities;
|
|
34
|
-
return entities === void 0 ? void 0 : {
|
|
35
|
-
tables: entities.tables,
|
|
36
|
-
entities: entities.specs
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* The entities `blocks.<module>.names` gives a new name, such as `work_item` to
|
|
41
|
-
* `task`, for the block's TypeScript client (`blocks.generated.ts`). Empty when
|
|
42
|
-
* the module renames none.
|
|
43
|
-
*/
|
|
44
|
-
function blockEntityRenames(module, blocks) {
|
|
45
|
-
const names = catalogNames(module);
|
|
46
|
-
if (names === void 0) return [];
|
|
47
|
-
return Object.values(resolveNames(module, names, blocks).entities).filter((entity) => !entity.global && (entity.to.singular !== entity.from.singular || entity.to.plural !== entity.from.plural)).map((entity) => ({
|
|
48
|
-
from: entity.from,
|
|
49
|
-
to: entity.to
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
/** The entities one installed block declares, with their final names. */
|
|
53
|
-
function blockEntities(module, blocks) {
|
|
54
|
-
const names = catalogNames(module);
|
|
55
|
-
if (names === void 0) return [];
|
|
56
|
-
const resolved = resolveNames(module, names, blocks);
|
|
57
|
-
const mapped = resolveBlock(blocks[module]).tables;
|
|
58
|
-
return Object.values(resolved.entities).map((entity) => {
|
|
59
|
-
const logical = entity.table;
|
|
60
|
-
const spec = logical === void 0 ? void 0 : names.tables[logical];
|
|
61
|
-
const target = logical === void 0 ? void 0 : mapped[logical];
|
|
62
|
-
const table = spec === void 0 || target === null ? void 0 : target ?? resolved.naming.rename(spec.name);
|
|
63
|
-
return {
|
|
64
|
-
key: entity.key,
|
|
65
|
-
from: entity.from,
|
|
66
|
-
to: entity.to,
|
|
67
|
-
primary: entity.primary,
|
|
68
|
-
table,
|
|
69
|
-
url: entity.url
|
|
70
|
-
};
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
/** The subjects one installed block registers, keyed by renamed entity. */
|
|
74
|
-
function subjectsOf(module, blocks) {
|
|
75
|
-
const entities = CATALOG.get(module)?.entities;
|
|
76
|
-
const names = catalogNames(module);
|
|
77
|
-
const config = resolveBlock(blocks[module]);
|
|
78
|
-
if (entities === void 0 || names === void 0 || config.mode === "custom") return {};
|
|
79
|
-
const resolved = resolveNames(module, names, blocks);
|
|
80
|
-
const key = (action) => config.permissions[action] ?? resolved.entityNaming.rename(entities.keys[action] ?? `${module}.${action}`);
|
|
81
|
-
return Object.fromEntries(Object.values(resolved.entities).flatMap((entity) => {
|
|
82
|
-
const subject = entity.subject;
|
|
83
|
-
const table = entity.table === void 0 ? void 0 : names.tables[entity.table];
|
|
84
|
-
const mapped = entity.table === void 0 ? void 0 : config.tables[entity.table];
|
|
85
|
-
if (subject === void 0 || entity.table === void 0 || table === void 0 || mapped === null) return [];
|
|
86
|
-
const logical = entity.table;
|
|
87
|
-
const column = (name) => config.columns[logical]?.[name] ?? resolved.naming.rename(table.columns[name] ?? name);
|
|
88
|
-
const titled = (key) => config.columns[logical]?.[key] === null && subject.fallbackTitle !== void 0 ? column(subject.fallbackTitle) : column(key);
|
|
89
|
-
const name = mapped ?? resolved.naming.rename(table.name);
|
|
90
|
-
const url = entity.url ?? subject.url;
|
|
91
|
-
const entry = {
|
|
92
|
-
table: name.includes(".") ? name : `${config.schema}.${name}`,
|
|
93
|
-
idType: "uuid",
|
|
94
|
-
tenant: column("tenant"),
|
|
95
|
-
title: titled(subject.title),
|
|
96
|
-
permissions: {
|
|
97
|
-
read: key(subject.permissions.read),
|
|
98
|
-
write: key(subject.permissions.write),
|
|
99
|
-
...subject.permissions.upload === void 0 ? {} : { upload: key(subject.permissions.upload) }
|
|
100
|
-
},
|
|
101
|
-
...subject.deletedAt === void 0 ? {} : { deletedAt: column(subject.deletedAt) },
|
|
102
|
-
...subject.rank === void 0 ? {} : { rank: {
|
|
103
|
-
column: column(subject.rank.column),
|
|
104
|
-
group: column(subject.rank.group)
|
|
105
|
-
} },
|
|
106
|
-
...subject.search === void 0 ? {} : { search: {
|
|
107
|
-
title: titled(subject.search.title),
|
|
108
|
-
body: subject.search.body.filter((name) => config.columns[logical]?.[name] !== null).map(column)
|
|
109
|
-
} },
|
|
110
|
-
...url === void 0 ? {} : { url: url.replaceAll(PLACEHOLDER, (_, placeholder) => `{${column(placeholder)}}`) },
|
|
111
|
-
...subject.cascade === true ? { cascade: true } : {}
|
|
112
|
-
};
|
|
113
|
-
return [[entity.to.singular, entry]];
|
|
114
|
-
}));
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* The entities of every installed block that registers one (work items, deals,
|
|
118
|
-
* companies and people, products, employees), under their renamed type, then
|
|
119
|
-
* `subjects`. Throws when `subjects` already has a block's type.
|
|
120
|
-
*/
|
|
121
|
-
/** The subject types one installed block registers, by renamed entity. */
|
|
122
|
-
function blockSubjectTypes(module, blocks) {
|
|
123
|
-
return Object.keys(subjectsOf(module, blocks));
|
|
124
|
-
}
|
|
125
|
-
function withBlockSubjects(subjects, blockNames, blocks) {
|
|
126
|
-
const merged = {};
|
|
127
|
-
for (const module of withRequired(blockNames)) for (const [type, entry] of Object.entries(subjectsOf(module, blocks))) {
|
|
128
|
-
if (Object.hasOwn(subjects, type)) throw new TypeError(`records.${type}: the ${module} block registers "${type}" itself; remove records.${type}, or set blocks.${module}.names.<entity>.subject to false to keep your own`);
|
|
129
|
-
merged[type] = entry;
|
|
130
|
-
}
|
|
131
|
-
return {
|
|
132
|
-
...merged,
|
|
133
|
-
...subjects
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
17
|
// src/config/expose.ts
|
|
137
18
|
const ALL_PRIVILEGES = [
|
|
138
19
|
"select",
|
|
@@ -1099,4 +980,4 @@ function zod(options = {}) {
|
|
|
1099
980
|
}
|
|
1100
981
|
};
|
|
1101
982
|
}
|
|
1102
|
-
export { factories as a, resolveConfig as c,
|
|
983
|
+
export { factories as a, resolveConfig as c, nuqs as i, providerApiProblem as l, valibot as n, CONFIG_SCHEMA_URL as o, standardSchema as r, defineConfig as s, zod as t };
|
|
@@ -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-DQZ8Lrp5.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-DQZ8Lrp5.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-C0jB70wR.js";
|
|
9
|
+
import { n as BlockTables, t as BlockTable } from "../block-tables-DYFRvRWW.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-DsDKjuQn.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-Cln1eg7-.js";
|
|
3
|
+
import { E as CreateDesign, b as DesignChange } from "../index-DWCo9ZUL.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--PUNrvz8.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-Bycf_aus.js";
|
|
2
|
+
import { m as diffDesigns } from "../preset-DkeXFh7e.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-Bcs-4Pfw.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-Cln1eg7-.js";
|
|
3
|
+
import { E as CreateDesign } from "../../index-DWCo9ZUL.js";
|
|
4
|
+
import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types--PUNrvz8.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-Bycf_aus.js";
|
|
2
|
+
import { n as loadProject } from "../../project-Bcs-4Pfw.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-L_8Qs5qs.js";
|
|
9
|
+
import { t as ClientPorts } from "./ports-rJDkwtOQ.js";
|
|
10
|
+
import { a as ClientAuth } from "./bind-DsDKjuQn.js";
|
|
11
|
+
import { a as LiveSource, r as LiveCountSeed } from "./index-DoDmA-sQ.js";
|
|
12
12
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
13
13
|
import { QueryClient } from "@tanstack/query-core";
|
|
14
14
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -1,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-DQZ8Lrp5.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-Cln1eg7-.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;
|
|
@@ -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-TlhX7IZX.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";
|
|
@@ -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-L_8Qs5qs.js";
|
|
9
|
+
import { t as AuthSnapshot } from "./bind-DsDKjuQn.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-DoDmA-sQ.js";
|
|
12
|
+
import { n as Controller } from "./controller-BQHh7VG5.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-0V7t1-pz.js";
|
|
14
|
+
import { t as BlockEnv } from "./block-env-mNi2rPSF.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";
|
|
@@ -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-rJDkwtOQ.js";
|
|
7
|
+
import { i as BindClientOptions, r as BetterClient } from "./bind-DsDKjuQn.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,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-Cln1eg7-.js";
|
|
2
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
declare const PRESET_CATALOG: PresetCatalog;
|
|
4
4
|
/**
|
|
@@ -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-L_8Qs5qs.js";
|
|
6
|
+
import { n as TopicPort } from "./watch-topic-B9aKuw5v.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 {
|
|
@@ -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-BQHh7VG5.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";
|