better-supabase 0.58.0 → 0.58.1

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.
Files changed (120) hide show
  1. package/dist/{adapter-base-xVHtNe6Y.js → adapter-base-8PuJ3OoB.js} +1 -1
  2. package/dist/{api-CCA7xIEu.js → api-D-YoZpRe.js} +1 -1
  3. package/dist/{app-tables-BS_qkwdc.d.ts → app-tables-IXL0Hzut.d.ts} +1 -1
  4. package/dist/astro/index.js +3 -3
  5. package/dist/{block-tables-DCB8f9J4.d.ts → block-tables-DmDyNlJf.d.ts} +1 -1
  6. package/dist/{build-CfjNUbQF.js → build-1ikup3O6.js} +1 -1
  7. package/dist/cli/{add-AGqgANt0.js → add-B63B07UG.js} +9 -9
  8. package/dist/cli/{add-PGMtNCB5.js → add-CBNxtc8h.js} +2 -2
  9. package/dist/cli/add-CeZUs_jU.js +1 -0
  10. package/dist/cli/{app-table-files-DN6altk8.js → app-table-files-BQU5_xhz.js} +3 -3
  11. package/dist/cli/{app-tables-BEuVy9jZ.js → app-tables-DUCrWiGS.js} +2 -2
  12. package/dist/cli/{backfill-DQky-bnQ.js → backfill-ff_y-n3l.js} +1 -1
  13. package/dist/cli/bin.js +1 -1
  14. package/dist/cli/{blocks-C4gf-NCB.js → blocks-BuwjO--N.js} +1 -1
  15. package/dist/cli/{blocks-CvgKphq5.js → blocks-DcMd8kRY.js} +1 -1
  16. package/dist/cli/{cache-BL0PV5bp.js → cache-Di8fhrqf.js} +1 -1
  17. package/dist/cli/{codemod-CfMLArut.js → codemod-Bu77IP-l.js} +40 -10
  18. package/dist/cli/{codemod-naming-GlDd60vP.js → codemod-naming-CB4FfxcO.js} +3 -3
  19. package/dist/cli/{column-renames-OREkqj_i.js → column-renames-B8tfoufA.js} +2 -2
  20. package/dist/cli/{content-mapper-4kvJb2Zr.js → content-mapper-Dby_JOgB.js} +1 -1
  21. package/dist/cli/{dev-DZPgvArG.js → dev-CJnbxe_s.js} +3 -3
  22. package/dist/cli/{doctor-9H-4NFvs.js → doctor-C_GPFp8I.js} +39 -24
  23. package/dist/cli/{emit-CvADhyWe.js → emit-Diublx-B.js} +2 -2
  24. package/dist/cli/{gen-DMIJFtUS.js → gen-BgTMpJhV.js} +3 -3
  25. package/dist/cli/{gen-tasks--SLFTBiL.js → gen-tasks-Dn9gxauI.js} +9 -9
  26. package/dist/cli/index.d.ts +1 -1
  27. package/dist/cli/index.js +7 -7
  28. package/dist/cli/{init-PfhcsqFp.js → init-1gNLko5F.js} +8 -8
  29. package/dist/cli/{live-D7d0_esL.js → live-D07gGcoV.js} +2 -2
  30. package/dist/cli/{mcp-3zkYyT1k.js → mcp-BwMLfpxa.js} +2 -2
  31. package/dist/cli/{memo-backend-u47k0fen.js → memo-backend-yki17W-K.js} +1 -1
  32. package/dist/cli/{metadata-DPc2UrU8.js → metadata-CxF9te2t.js} +4 -4
  33. package/dist/cli/{migrate-BaOQ2TRl.js → migrate-D4gNS4gj.js} +1 -1
  34. package/dist/cli/{migration-safety-C9VTNSRj.js → migration-safety-DsQonP4-.js} +1 -1
  35. package/dist/cli/{module-migration-D3eboFLN.js → module-migration-Cl-I5j0j.js} +1 -1
  36. package/dist/cli/{partition-DWO1HSmo.js → partition-C5G03PgD.js} +1 -1
  37. package/dist/cli/powersync-TDly6ptq.js +1 -0
  38. package/dist/cli/{powersync-CVA8cmDL.js → powersync-WhAasez3.js} +3 -3
  39. package/dist/cli/{print-BLFFKbTG.js → print-B6dsmPgY.js} +2 -2
  40. package/dist/cli/{providers-CwsjSukl.js → providers-B4QIwuqF.js} +1 -1
  41. package/dist/cli/{prune-workflows-Y-8-5f6g.js → prune-workflows-BRLMJAN3.js} +1 -1
  42. package/dist/cli/{remove-BJXH69GK.js → remove-H86BDqeG.js} +6 -6
  43. package/dist/cli/{render-DpQu2hex.js → render-DinflArt.js} +4 -4
  44. package/dist/cli/{render-cache-D-mQmPU3.js → render-cache-BoFKfBx6.js} +1 -1
  45. package/dist/cli/{run-DBtkS8LK.js → run-3BMqhsTa.js} +7 -7
  46. package/dist/cli/{run-DfESdGAS.js → run-sk-YY1p3.js} +30 -30
  47. package/dist/cli/{shared-BOCyL4Jr.js → shared-B9fxx6uL.js} +1 -1
  48. package/dist/cli/{source-Di9xMdUa.js → source-Dwn8SwJg.js} +1 -1
  49. package/dist/cli/{spec-B8BagkH4.js → spec--0tYexnO.js} +1 -1
  50. package/dist/cli/{spec-CKLkRyUY.js → spec-BFlvbXVb.js} +2 -2
  51. package/dist/cli/{sql-layout-DoiFr1yL.js → sql-layout-CpbXj-r9.js} +2 -2
  52. package/dist/cli/{squash-COXoWW5e.js → squash-DLXeXmpI.js} +1 -1
  53. package/dist/cli/{sync-B4TvyjWJ.js → sync-DHUrIa97.js} +4 -4
  54. package/dist/cli/{upgrade-AyAHttUG.js → upgrade-DKfXHex4.js} +5 -5
  55. package/dist/cli/{upgrade-MiBhMtCR.js → upgrade-N7lDosgT.js} +5 -5
  56. package/dist/cli/{version-Coyg0Oh1.js → version-Bm4K-iOw.js} +1 -1
  57. package/dist/client/index.js +1 -1
  58. package/dist/client/native/index.js +2 -2
  59. package/dist/{composite-CE_0rQOp.js → composite-6VIY4jUO.js} +1 -1
  60. package/dist/config/index.d.ts +1 -1
  61. package/dist/{context-CTVM2dnp.d.ts → context-DMBXEzQa.d.ts} +7 -1
  62. package/dist/contract/index.d.ts +1 -1
  63. package/dist/create/index.d.ts +3 -3
  64. package/dist/create/index.js +1 -1
  65. package/dist/create/lite/index.d.ts +2 -2
  66. package/dist/create/lite/index.js +2 -2
  67. package/dist/{define-runtime-D65Va0N-.js → define-runtime-BBF5JHl4.js} +3 -2
  68. package/dist/{define-runtime-full-BbAQ7sWI.js → define-runtime-full-D6v1ST7M.js} +1 -1
  69. package/dist/edge/index.js +4 -4
  70. package/dist/{executor-BL-zAKSs.js → executor-BgjsCon6.js} +1 -1
  71. package/dist/expo/index.js +3 -3
  72. package/dist/{extras-BUIrkbFZ.d.ts → extras-C258FsPj.d.ts} +1 -1
  73. package/dist/{framework-B2sjpHOX.js → framework-DSGTH9p6.js} +1 -1
  74. package/dist/generators/factories/index.d.ts +1 -1
  75. package/dist/generators/factories/index.js +1 -1
  76. package/dist/generators/index.d.ts +2 -2
  77. package/dist/generators/json-schema/index.d.ts +2 -2
  78. package/dist/generators/json-schema/index.js +1 -1
  79. package/dist/generators/nuqs/index.d.ts +1 -1
  80. package/dist/generators/nuqs/index.js +1 -1
  81. package/dist/generators/standard-schema/index.d.ts +1 -1
  82. package/dist/generators/standard-schema/index.js +1 -1
  83. package/dist/generators/valibot/index.d.ts +1 -1
  84. package/dist/generators/valibot/index.js +1 -1
  85. package/dist/generators/zod/index.d.ts +1 -1
  86. package/dist/generators/zod/index.js +1 -1
  87. package/dist/hono/index.js +3 -3
  88. package/dist/{index-DYIGj6Qq.d.ts → index-CIVA5x1i.d.ts} +1 -1
  89. package/dist/{index-C1UeevYS.d.ts → index-DRKAMZV3.d.ts} +1 -1
  90. package/dist/{json-schema-CjKyPNYA.js → json-schema-Ba8xSQxR.js} +1 -1
  91. package/dist/mapper/bin.js +5 -5
  92. package/dist/mcp/index.js +1 -1
  93. package/dist/mcp/sdk/index.js +1 -1
  94. package/dist/{mcp-CzzpcpQl.js → mcp-CaC-3JB3.js} +3 -3
  95. package/dist/next/index.js +2 -2
  96. package/dist/orpc/index.js +2 -2
  97. package/dist/otel/index.js +5 -5
  98. package/dist/{ports-_zS9fGcE.js → ports-BXtpOQRz.js} +1 -1
  99. package/dist/powersync/index.js +1 -1
  100. package/dist/preset/index.d.ts +3 -3
  101. package/dist/{project-I5wL8liz.js → project-Bgz2gbh5.js} +1 -1
  102. package/dist/react-router/index.js +3 -3
  103. package/dist/server/index.js +4 -4
  104. package/dist/{server-DwF_O2Lx.js → server-DFxO9Dyz.js} +1 -1
  105. package/dist/solid-start/index.js +3 -3
  106. package/dist/spec/index.js +2 -2
  107. package/dist/sql/index.d.ts +4 -4
  108. package/dist/sql/index.js +1 -1
  109. package/dist/{sql-C4eWk1yb.js → sql-BbaGokNJ.js} +45 -26
  110. package/dist/sqlite/index.js +1 -1
  111. package/dist/sveltekit/index.js +3 -3
  112. package/dist/tanstack-start/index.js +3 -3
  113. package/dist/testing/index.d.ts +1 -1
  114. package/dist/testing/index.js +2 -2
  115. package/dist/{types-B7t7smOy.d.ts → types-BidEA6pZ.d.ts} +1 -1
  116. package/dist/{version-4Go_CIFV.js → version-Ce4Rk4uV.js} +1 -1
  117. package/dist/webmcp/index.js +1 -1
  118. package/package.json +1 -1
  119. package/dist/cli/add-Ck4nVuBp.js +0 -1
  120. package/dist/cli/powersync-BQSUM-F9.js +0 -1
@@ -6,11 +6,11 @@ import { t as tenantOf } from "../tenant-Duq0dWqX.js";
6
6
  import { i as claimsOf } from "../claims-CX-ar1vt.js";
7
7
  import { t as DbException } from "../db-exception-Dv18UZ-I.js";
8
8
  import { c as toProblem } from "../problem-BwplIuhI.js";
9
- import { t as adapterBase } from "../adapter-base-xVHtNe6Y.js";
9
+ import { t as adapterBase } from "../adapter-base-8PuJ3OoB.js";
10
10
  import { g as unexpectedResponse } from "../sessions-Dedk1ubX.js";
11
- import { c as bootstrapSchema, l as bootstrapWith, n as extendServer, s as accessOf, t as createServer } from "../server-DwF_O2Lx.js";
11
+ import { c as bootstrapSchema, l as bootstrapWith, n as extendServer, s as accessOf, t as createServer } from "../server-DFxO9Dyz.js";
12
12
  import { i as userSessionTags, r as tableTags, t as sessionIdTag } from "../cache-tags-C5Oivuxo.js";
13
- import { t as withBetterSupabase } from "../composite-CE_0rQOp.js";
13
+ import { t as withBetterSupabase } from "../composite-6VIY4jUO.js";
14
14
  import { r as refreshFor } from "../request-kind-BMNdlQpz.js";
15
15
  import { i as guard, o as respond } from "../respond-DLvLJwwN.js";
16
16
  import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
@@ -1,6 +1,6 @@
1
1
  import { L as ColumnMeta, ft as TableMeta, st as SchemaMeta } from "./types-BJ4cg51a.js";
2
2
  import { a as ScalarKind, i as FieldSpec } from "./table-schema-CwXg7oBz.js";
3
- import { Er as GeneratorInput } from "./context-CTVM2dnp.js";
3
+ import { Er as GeneratorInput } from "./context-DMBXEzQa.js";
4
4
  /** What field planning reads: the metadata and the typed-jsonb config. */
5
5
  interface SchemaSource {
6
6
  readonly meta: SchemaMeta;
@@ -1,6 +1,6 @@
1
1
  import { c as snapshotOf } from "./snapshot-C1KUHKTc.js";
2
2
  import { i as toSession } from "./view-DpKWWhP2.js";
3
- import { t as withBetterSupabase } from "./composite-CE_0rQOp.js";
3
+ import { t as withBetterSupabase } from "./composite-6VIY4jUO.js";
4
4
  // src/server/framework.ts
5
5
  /**
6
6
  * Every caller: the framework factories guard per loader, action or route
@@ -1,4 +1,4 @@
1
- import { hr as Generator } from "../../context-CTVM2dnp.js";
1
+ import { hr as Generator } from "../../context-DMBXEzQa.js";
2
2
  interface FactoriesGeneratorOptions {
3
3
  /**
4
4
  * Output path relative to the project root. Defaults to
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "../../version-4Go_CIFV.js";
1
+ import { t as VERSION } from "../../version-Ce4Rk4uV.js";
2
2
  import { f as siblingPath, t as HEADER } from "../../shared-BXRDj6UR.js";
3
3
  import { r as relativeImport } from "../../kit-D6kdfQFj.js";
4
4
  // src/generators/factories.ts
@@ -1,6 +1,6 @@
1
1
  import { a as ScalarKind } from "../table-schema-CwXg7oBz.js";
2
- import { Ar as GeneratorModule, Cr as GeneratorFunction, Er as GeneratorInput, Mr as GeneratorTable, Sr as GeneratorField, Tr as GeneratorImports, _r as GeneratorBlockEntity, br as GeneratorConfigView, gr as GeneratorBlock, hr as Generator, kr as GeneratorModel, mr as GeneratedFile, vr as GeneratorCapability, xr as GeneratorEntitySchemas, yr as GeneratorColumn } from "../context-CTVM2dnp.js";
3
- import { A as tableDocs, C as parseCheckBounds, D as rowType, E as propertyKey, F as variantsFor, M as temporalGuardImport, N as titleOf, O as schemaName, P as variantTitle, S as optionalLine, T as parseImport, _ as TableDocs, a as extraKinds, b as fieldSpec, c as fieldMetaLines, d as Bounds, f as DocsSource, g as SchemaSource, h as HEADER, i as ResultSchema, j as tableEntries, k as siblingPath, l as objectType, m as FieldPlan, n as ExtraSchemas, o as extraSchemas, p as FieldDocs, r as FieldMeta, s as fieldMeta, t as ExtraSchema, u as resultType, v as Variant, w as parseComment, x as fieldsFor, y as fieldDocs } from "../extras-BUIrkbFZ.js";
2
+ import { Ar as GeneratorModule, Cr as GeneratorFunction, Er as GeneratorInput, Mr as GeneratorTable, Sr as GeneratorField, Tr as GeneratorImports, _r as GeneratorBlockEntity, br as GeneratorConfigView, gr as GeneratorBlock, hr as Generator, kr as GeneratorModel, mr as GeneratedFile, vr as GeneratorCapability, xr as GeneratorEntitySchemas, yr as GeneratorColumn } from "../context-DMBXEzQa.js";
3
+ import { A as tableDocs, C as parseCheckBounds, D as rowType, E as propertyKey, F as variantsFor, M as temporalGuardImport, N as titleOf, O as schemaName, P as variantTitle, S as optionalLine, T as parseImport, _ as TableDocs, a as extraKinds, b as fieldSpec, c as fieldMetaLines, d as Bounds, f as DocsSource, g as SchemaSource, h as HEADER, i as ResultSchema, j as tableEntries, k as siblingPath, l as objectType, m as FieldPlan, n as ExtraSchemas, o as extraSchemas, p as FieldDocs, r as FieldMeta, s as fieldMeta, t as ExtraSchema, u as resultType, v as Variant, w as parseComment, x as fieldsFor, y as fieldDocs } from "../extras-C258FsPj.js";
4
4
  /** The generator contract this release of `gen` runs. */
5
5
  export declare const GENERATOR_API_VERSION = 2;
6
6
  /** What `defineGenerator` takes: a `Generator` without its `apiVersion`. */
@@ -1,5 +1,5 @@
1
- import { hr as Generator } from "../../context-CTVM2dnp.js";
2
- import { f as DocsSource, n as ExtraSchemas } from "../../extras-BUIrkbFZ.js";
1
+ import { hr as Generator } from "../../context-DMBXEzQa.js";
2
+ import { f as DocsSource, n as ExtraSchemas } from "../../extras-C258FsPj.js";
3
3
  /** The JSON Schema dialects the generators and MCP emit. */
4
4
  type JsonSchemaTarget = "draft-2020-12" | "draft-07" | "openapi-3.0";
5
5
  interface JsonSchemaGeneratorOptions {
@@ -1 +1 @@
1
- export { t as jsonSchema, n as toJsonSchema } from "../../json-schema-CjKyPNYA.js";
1
+ export { t as jsonSchema, n as toJsonSchema } from "../../json-schema-Ba8xSQxR.js";
@@ -1,4 +1,4 @@
1
- import { hr as Generator } from "../../context-CTVM2dnp.js";
1
+ import { hr as Generator } from "../../context-DMBXEzQa.js";
2
2
  interface NuqsGeneratorOptions {
3
3
  /** Output path relative to the project root. Defaults to `<output>.nuqs.ts`. */
4
4
  readonly output?: string;
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "../../version-4Go_CIFV.js";
1
+ import { t as VERSION } from "../../version-Ce4Rk4uV.js";
2
2
  import { f as siblingPath, t as HEADER } from "../../shared-BXRDj6UR.js";
3
3
  // src/generators/nuqs.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { hr as Generator } from "../../context-CTVM2dnp.js";
1
+ import { hr as Generator } from "../../context-DMBXEzQa.js";
2
2
  interface StandardSchemaGeneratorOptions {
3
3
  /**
4
4
  * Output path relative to the project root. Defaults to
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "../../version-4Go_CIFV.js";
1
+ import { t as VERSION } from "../../version-Ce4Rk4uV.js";
2
2
  import { _ as variantTitle, c as parseImport, d as schemaName, f as siblingPath, i as fieldsFor, l as propertyKey, m as tableEntries, n as fieldDocs, p as tableDocs, r as fieldSpec, t as HEADER, v as variantsFor } from "../../shared-BXRDj6UR.js";
3
3
  import { a as objectType, i as fieldMetaLines, n as extraSchemas } from "../../extras-CW8CKLeE.js";
4
4
  import { r as relativeImport } from "../../kit-D6kdfQFj.js";
@@ -1,4 +1,4 @@
1
- import { hr as Generator } from "../../context-CTVM2dnp.js";
1
+ import { hr as Generator } from "../../context-DMBXEzQa.js";
2
2
  interface ValibotGeneratorOptions {
3
3
  /**
4
4
  * Output path relative to the project root. Defaults to
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "../../version-4Go_CIFV.js";
1
+ import { t as VERSION } from "../../version-Ce4Rk4uV.js";
2
2
  import { _ as variantTitle, a as optionalLine, c as parseImport, d as schemaName, f as siblingPath, h as temporalGuardImport, i as fieldsFor, l as propertyKey, m as tableEntries, n as fieldDocs, p as tableDocs, t as HEADER, u as rowType, v as variantsFor } from "../../shared-BXRDj6UR.js";
3
3
  import { a as objectType, i as fieldMetaLines, n as extraSchemas, o as resultType, t as extraKinds } from "../../extras-CW8CKLeE.js";
4
4
  import { r as relativeImport } from "../../kit-D6kdfQFj.js";
@@ -1,4 +1,4 @@
1
- import { hr as Generator } from "../../context-CTVM2dnp.js";
1
+ import { hr as Generator } from "../../context-DMBXEzQa.js";
2
2
  interface ZodGeneratorOptions {
3
3
  /** Output path relative to the project root. Defaults to `<output>.zod.ts`. */
4
4
  readonly output?: string;
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "../../version-4Go_CIFV.js";
1
+ import { t as VERSION } from "../../version-Ce4Rk4uV.js";
2
2
  import { _ as variantTitle, a as optionalLine, c as parseImport, d as schemaName, f as siblingPath, h as temporalGuardImport, i as fieldsFor, l as propertyKey, m as tableEntries, n as fieldDocs, p as tableDocs, t as HEADER, u as rowType, v as variantsFor } from "../../shared-BXRDj6UR.js";
3
3
  import { a as objectType, i as fieldMetaLines, n as extraSchemas, o as resultType, t as extraKinds } from "../../extras-CW8CKLeE.js";
4
4
  import { r as relativeImport } from "../../kit-D6kdfQFj.js";
@@ -3,16 +3,16 @@ import { i as toSession } from "../view-DpKWWhP2.js";
3
3
  import { r as handoffOf } from "../shared-Ci1g9nl4.js";
4
4
  import { r as dbErrorOf } from "../errors-DK1wGb9z.js";
5
5
  import { o as problemResponse } from "../problem-BwplIuhI.js";
6
- import { t as adapterBase } from "../adapter-base-xVHtNe6Y.js";
6
+ import { t as adapterBase } from "../adapter-base-8PuJ3OoB.js";
7
7
  import { g as unexpectedResponse, p as flushEvents } from "../sessions-Dedk1ubX.js";
8
- import { t as withBetterSupabase } from "../composite-CE_0rQOp.js";
8
+ import { t as withBetterSupabase } from "../composite-6VIY4jUO.js";
9
9
  import { n as corsConfig } from "../cors-DrDFLMNn.js";
10
10
  import { i as requireCaller } from "../kit-BgRTtW9w.js";
11
11
  import { t as rateLimitGate } from "../rate-limit-Wolzge1m.js";
12
12
  import { i as defineAction, t as defineResource } from "../resource-BxSmk1R1.js";
13
13
  import { t as matchResource } from "../resources-CM9wwyfa.js";
14
14
  import { o as respond, t as assertCookieRefresh } from "../respond-DLvLJwwN.js";
15
- import { n as extendServer, t as createServer } from "../server-DwF_O2Lx.js";
15
+ import { n as extendServer, t as createServer } from "../server-DFxO9Dyz.js";
16
16
  import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
17
17
  import { withCors } from "@supabase/middleware/cors";
18
18
  import { Hono } from "hono";
@@ -1,4 +1,4 @@
1
- import { $i as PresetGlueItem, Ji as BlockCatalog, Qr as AppColumnType, Vn as ResolvedPreset, Xi as PresetCatalog, Xr as AppColumnConfig, di as AppTablesConfig, rn as CreateDesign } from "./context-CTVM2dnp.js";
1
+ import { $i as PresetGlueItem, Ji as BlockCatalog, Qr as AppColumnType, Vn as ResolvedPreset, Xi as PresetCatalog, Xr as AppColumnConfig, di as AppTablesConfig, rn as CreateDesign } from "./context-DMBXEzQa.js";
2
2
  import { kr as Preset } from "./define-block-kWv1wYf7.js";
3
3
  declare const BLOCK_CATALOG: BlockCatalog;
4
4
  declare const PRESET_CATALOG: PresetCatalog;
@@ -1,7 +1,7 @@
1
1
  import { E as AccessPolicySql } from "./types-BJ4cg51a.js";
2
2
  import { Mt as SubjectConfig, r as AnyBlocksConfig } from "./blocks-RVd7m590.js";
3
3
  import { q as ReadSet } from "./db-blocks-Db3LVXco.js";
4
- import { Ct as ResolvedConfig, L as TableGrant, Si as CatalogPolicy, _ as BlockSqlFile, ai as AppTableConfig, g as BlockSqlEntitlementsProvider, h as BlockSqlDeprecation, m as BlockSqlAccessProvider, n as BlockSqlContractFunction, p as BlockSql, r as BlockSqlIdType, t as BlockSqlContext, v as BlockSqlLayout } from "./context-CTVM2dnp.js";
4
+ import { Ct as ResolvedConfig, L as TableGrant, Si as CatalogPolicy, _ as BlockSqlFile, ai as AppTableConfig, g as BlockSqlEntitlementsProvider, h as BlockSqlDeprecation, m as BlockSqlAccessProvider, n as BlockSqlContractFunction, p as BlockSql, r as BlockSqlIdType, t as BlockSqlContext, v as BlockSqlLayout } from "./context-DMBXEzQa.js";
5
5
  import { n as AuthorizationFunctions } from "./authorization-Dq47C4vf.js";
6
6
  /** The contract's argument list with `{id}` resolved, as Postgres prints it. */
7
7
  declare function contractSignature(fn: BlockSqlContractFunction, idType: string): string;
@@ -1,5 +1,5 @@
1
1
  import { i as tableJsonSchema, r as fieldJsonSchema, t as forTarget } from "./table-schema-CnUdpnfT.js";
2
- import { t as VERSION } from "./version-4Go_CIFV.js";
2
+ import { t as VERSION } from "./version-Ce4Rk4uV.js";
3
3
  import { t as isList } from "./guards-CsRa6v57.js";
4
4
  import { n as extraSchemas, r as fieldMeta } from "./extras-CW8CKLeE.js";
5
5
  import { _ as variantTitle, f as siblingPath, i as fieldsFor, m as tableEntries, n as fieldDocs, p as tableDocs, r as fieldSpec, v as variantsFor } from "./shared-BXRDj6UR.js";
@@ -1,10 +1,10 @@
1
- import { d as loadSnapshot } from "../cli/sql-layout-DoiFr1yL.js";
1
+ import { d as loadSnapshot } from "../cli/sql-layout-CpbXj-r9.js";
2
2
  import { i as discoverConfig, s as loadConfig } from "../cli/config-NxPVkM-K.js";
3
- import { s as schemaStampPath } from "../cli/content-mapper-4kvJb2Zr.js";
3
+ import { s as schemaStampPath } from "../cli/content-mapper-Dby_JOgB.js";
4
4
  import { i as parseEnv, n as configEnvironment } from "../cli/env-CQ831uY0.js";
5
- import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-DpQu2hex.js";
6
- import { i as lastTypesModule, o as typesModuleKey, s as writeAtomic } from "../cli/cache-BL0PV5bp.js";
7
- import { t as VERSION } from "../cli/version-Coyg0Oh1.js";
5
+ import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-DinflArt.js";
6
+ import { i as lastTypesModule, o as typesModuleKey, s as writeAtomic } from "../cli/cache-Di8fhrqf.js";
7
+ import { t as VERSION } from "../cli/version-Bm4K-iOw.js";
8
8
  import { existsSync, realpathSync } from "node:fs";
9
9
  import { basename, dirname, join, resolve } from "node:path";
10
10
  import { readFile } from "node:fs/promises";
package/dist/mcp/index.js CHANGED
@@ -1 +1 @@
1
- export { r as MCP_PROTOCOL_VERSION, i as answerLine, a as answerMessage, t as createMcp, n as defineTool } from "../mcp-CzzpcpQl.js";
1
+ export { r as MCP_PROTOCOL_VERSION, i as answerLine, a as answerMessage, t as createMcp, n as defineTool } from "../mcp-CaC-3JB3.js";
@@ -2,7 +2,7 @@ import { i as delegationOf } from "../../actor-DraVJ7tB.js";
2
2
  import { h as resolveToken, p as flushEvents } from "../../sessions-Dedk1ubX.js";
3
3
  import { t as withExtra } from "../../extra-Dz9n5y1s.js";
4
4
  import { i as guard } from "../../respond-DLvLJwwN.js";
5
- import { n as extendServer, t as createServer } from "../../server-DwF_O2Lx.js";
5
+ import { n as extendServer, t as createServer } from "../../server-DFxO9Dyz.js";
6
6
  import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "../../http-BRUI3qim.js";
7
7
  import { n as dbError } from "../../errors-DK1wGb9z.js";
8
8
  import { o as problemResponse } from "../../problem-BwplIuhI.js";
@@ -3,13 +3,13 @@ import { n as jsonResponse, t as jsonReplacer } from "./json-O5vFw243.js";
3
3
  import { a as methodNotAllowed, c as toProblem, o as problemResponse } from "./problem-BwplIuhI.js";
4
4
  import { n as validate } from "./standard-DM4THQrL.js";
5
5
  import { t as boundedTtlCache } from "./ttl-cache-C5S0L2wx.js";
6
- import { n as toJsonSchema, r as toDraft07 } from "./json-schema-CjKyPNYA.js";
7
- import { t as adapterBase } from "./adapter-base-xVHtNe6Y.js";
6
+ import { n as toJsonSchema, r as toDraft07 } from "./json-schema-Ba8xSQxR.js";
7
+ import { t as adapterBase } from "./adapter-base-8PuJ3OoB.js";
8
8
  import { p as flushEvents } from "./sessions-Dedk1ubX.js";
9
9
  import { t as withExtra } from "./extra-Dz9n5y1s.js";
10
10
  import { t as defineResource } from "./resource-BxSmk1R1.js";
11
11
  import { i as guard, s as settle } from "./respond-DLvLJwwN.js";
12
- import { n as extendServer, t as createServer } from "./server-DwF_O2Lx.js";
12
+ import { n as extendServer, t as createServer } from "./server-DFxO9Dyz.js";
13
13
  import { r as pageSchema, t as pageInputSchema } from "./resource-schemas-Bq0g2RCQ.js";
14
14
  import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "./http-BRUI3qim.js";
15
15
  import { t as base64ToText } from "./base64-CEBz6-Jj.js";
@@ -11,11 +11,11 @@ import { n as validate } from "../standard-DM4THQrL.js";
11
11
  import { t as EMPTY_STATS } from "../stats-D2TN2c3B.js";
12
12
  import { r as tagFor, t as cacheTagsOf } from "../tags-CW-KvjdL.js";
13
13
  import { t as ACCOUNT_PARTS } from "../account-parts-CsuHH0Zs.js";
14
- import { t as adapterBase } from "../adapter-base-xVHtNe6Y.js";
14
+ import { t as adapterBase } from "../adapter-base-8PuJ3OoB.js";
15
15
  import { t as tenantOf } from "../tenant-Duq0dWqX.js";
16
16
  import { c as serverCore, f as bearerRequest, m as handle } from "../sessions-Dedk1ubX.js";
17
17
  import { r as permissionsOf } from "../permissions-Dk3BH3dS.js";
18
- import { c as bootstrapSchema, l as bootstrapWith, n as extendServer, s as accessOf, t as createServer, u as mapBootstrapMemo } from "../server-DwF_O2Lx.js";
18
+ import { c as bootstrapSchema, l as bootstrapWith, n as extendServer, s as accessOf, t as createServer, u as mapBootstrapMemo } from "../server-DFxO9Dyz.js";
19
19
  import { t as withExtra } from "../extra-Dz9n5y1s.js";
20
20
  import { i as requireCaller, n as formDataObject, t as authorizeCaller } from "../kit-BgRTtW9w.js";
21
21
  import { n as resourceRouter } from "../resources-CM9wwyfa.js";
@@ -2,14 +2,14 @@ import { i as toSession } from "../view-DpKWWhP2.js";
2
2
  import { i as claimsOf } from "../claims-CX-ar1vt.js";
3
3
  import { n as dbError, r as dbErrorOf } from "../errors-DK1wGb9z.js";
4
4
  import { c as toProblem } from "../problem-BwplIuhI.js";
5
- import { t as adapterBase } from "../adapter-base-xVHtNe6Y.js";
5
+ import { t as adapterBase } from "../adapter-base-8PuJ3OoB.js";
6
6
  import { p as flushEvents } from "../sessions-Dedk1ubX.js";
7
7
  import { t as authorizeCaller } from "../kit-BgRTtW9w.js";
8
8
  import { t as rateLimitGate } from "../rate-limit-Wolzge1m.js";
9
9
  import { t as tenantOf } from "../tenant-Duq0dWqX.js";
10
10
  import { r as refreshFor } from "../request-kind-BMNdlQpz.js";
11
11
  import { i as guard, s as settle, t as assertCookieRefresh } from "../respond-DLvLJwwN.js";
12
- import { n as extendServer, t as createServer } from "../server-DwF_O2Lx.js";
12
+ import { n as extendServer, t as createServer } from "../server-DFxO9Dyz.js";
13
13
  import { t as callWithInput } from "../block-method-DIbWG4Mj.js";
14
14
  import { r as checkPermission } from "../authorizer-DtUCjKBn.js";
15
15
  import { n as isRecord } from "../guards-CsRa6v57.js";
@@ -1,7 +1,7 @@
1
1
  import { r as blockEventAttributes } from "../block-events-uKWyOpAy.js";
2
2
  import { r as definePlugin } from "../plugin-Ca2qBiFZ.js";
3
3
  import { t as SPEC_PINS } from "../spec-pins-Dlz8OVqi.js";
4
- import "../version-4Go_CIFV.js";
4
+ import "../version-Ce4Rk4uV.js";
5
5
  import { SpanKind, SpanStatusCode, context, metrics, propagation, trace } from "@opentelemetry/api";
6
6
  // src/otel/index.ts
7
7
  const INSTRUMENTATION_NAME = "better-supabase";
@@ -40,9 +40,9 @@ function systemOf(executor) {
40
40
  * ```
41
41
  */
42
42
  function otel(options = {}) {
43
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.58.0");
43
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.58.1");
44
44
  let histogram;
45
- if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.58.0")).createHistogram("db.client.operation.duration", {
45
+ if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.58.1")).createHistogram("db.client.operation.duration", {
46
46
  unit: "s",
47
47
  description: "Duration of database client operations.",
48
48
  advice: { explicitBucketBoundaries: [
@@ -231,7 +231,7 @@ function otel(options = {}) {
231
231
  * `betterSupabase.events`. Returns a function that stops listening.
232
232
  */
233
233
  function traceAuth(betterSupabase, options = {}) {
234
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.58.0");
234
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.58.1");
235
235
  const offAuth = betterSupabase.events.on("auth", (event) => {
236
236
  const span = tracer.startSpan("auth.resolve", {
237
237
  kind: SpanKind.INTERNAL,
@@ -270,7 +270,7 @@ function traceAuth(betterSupabase, options = {}) {
270
270
  * `*.denied`) set an error status. Returns a function that stops listening.
271
271
  */
272
272
  function traceBlockEvents(betterSupabase, options = {}) {
273
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.58.0");
273
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.58.1");
274
274
  return betterSupabase.events.on("block", (event) => {
275
275
  const attributes = {
276
276
  ...options.attributes,
@@ -2,7 +2,7 @@ import { l as postgrestExecutor } from "./codec-CqLbYQ6z.js";
2
2
  import { a as ok, r as err, t as AsyncResult } from "./result-DijoXEFG.js";
3
3
  import { r as decodeJwtPayload } from "./base64-CEBz6-Jj.js";
4
4
  import { i as userContext } from "./impersonation-BlU6M8zN.js";
5
- import { t as provideLeanConnectionRuntime } from "./define-runtime-D65Va0N-.js";
5
+ import { t as provideLeanConnectionRuntime } from "./define-runtime-BBF5JHl4.js";
6
6
  import { n as hasAuthModule, r as claimedTenant } from "./auth-module-D_RA-X_y.js";
7
7
  import { t as currentTenant } from "./tenant-source-46lMuMEn.js";
8
8
  import { n as identityKey } from "./user-change-Ngy8z1fZ.js";
@@ -1,4 +1,4 @@
1
- import { a as sqliteCompiler, c as quoteSqliteIdent, i as checkSqlite, l as sqliteValue, n as postgrestTimestamp, o as compileSqlite, r as sqliteExecutor, s as likeToGlob, t as fromSqliteError } from "../executor-BL-zAKSs.js";
1
+ import { a as sqliteCompiler, c as quoteSqliteIdent, i as checkSqlite, l as sqliteValue, n as postgrestTimestamp, o as compileSqlite, r as sqliteExecutor, s as likeToGlob, t as fromSqliteError } from "../executor-BgjsCon6.js";
2
2
  import { i as localEngine } from "../data-engine-MRAlinsa.js";
3
3
  import { n as authzVersionOf } from "../snapshot-C1KUHKTc.js";
4
4
  import { n as claimAt, s as tenantPathsFor } from "../claims-CX-ar1vt.js";
@@ -1,5 +1,5 @@
1
1
  import { Ar as PresetAccess, Dr as PRESET_FRAMEWORKS, Er as DEFAULT_CONVENTIONS, Fr as PresetFramework, Hr as integrationsForFramework, Lr as PresetPlatforms, Mr as PresetField, Nr as PresetFieldKey, Or as PRESET_TENANT_NAMES, Pr as PresetFieldValue, Rr as PresetScope, Tr as CONVENTION_FIELDS, Ur as presetField, Vr as PresetValueInfo, Wr as presetValueLabel, jr as PresetConventions, kr as Preset, zr as PresetSubjectOptions } from "../define-block-kWv1wYf7.js";
2
- import { $i as PresetGlueItem, $t as defaultPreset, An as readDesignFile, Bn as ResolvedComposite, Cn as parseDesign, Dn as presetConfigSource, En as presetArgumentOf, Fn as presetOfSpec, Gi as CORE_BLOCKS, Gn as removeComposite, Hn as ResolvedPresetBlock, In as presetSpec, Ji as BlockCatalog, Jt as PRESETS, Ki as INSTANCE_NAME, Kn as resolvePreset, Kt as DEFAULT_PRESET_NAME, Ln as CompositeRemoval, Mn as safeParseDesign, Nn as PresetSpec, On as presetInstallCommand, Pn as presetFromSpec, Qi as PresetCatalogManifest, Qt as PresetName, Rn as PresetConflict, Sn as isDesignCode, Tn as presetApplyCommand, Un as listNames, Vn as ResolvedPreset, Wn as presetBlockConflict, Wr as APP_COLUMN_FORMATS, Xi as PresetCatalog, Xt as PRESET_NAMES, Yi as BlockCatalogEntry, Yt as PRESET_GROUPS, Zi as PresetCatalogBlock, Zr as AppColumnFormat, Zt as PresetGroup, _n as designFileSource, _t as presetOf, an as DESIGN_FORMAT, bn as designSchema, cn as DesignParseError, dn as DesignTooLongError, dt as ConfigConventions, en as isPresetName, fn as MAX_DESIGN_CODE_LENGTH, ft as ExpandedConfig, gn as designConfig, gt as presetConfig, hn as decodeDesign, ht as expandPreset, in as DESIGN_FILE, jn as safeDesignFileSource, kn as presetKey, ln as DesignParseIssue, mn as createUrl, mt as conventionConfig, nn as CREATE_URL, on as DesignErrorCode, pn as createQuery, pt as PresetInput, qi as instancePrefix, qt as NamedPreset, rn as CreateDesign, sn as DesignFile, tn as namedPreset, un as DesignParseResult, vn as designFormat, wn as presetAndDesignOf, xn as encodeDesign, yn as designOf, zn as PresetIntegration } from "../context-CTVM2dnp.js";
3
- import { C as diffAppTables, D as PRESET_CATALOG, E as isAppDefault, O as BLOCK_CATALOG, S as DiffOptions, T as appDefaultError, _ as glueCommand, a as blockRequires, b as DesignChange, c as installedBlocks, d as instancesOf, f as presetInstances, g as PROVIDER_COMMENT, h as withoutInstance, i as blockEntities, l as instanceBlock, m as withInstance, n as BlockInstance, o as canAddInstance, p as withEntityName, r as PresetInstance, s as entityName, t as BlockEntity, u as instanceNameProblem, v as presetBlocksSource, w as diffDesigns, x as DesignChangeKind, y as presetGlue } from "../index-DYIGj6Qq.js";
4
- import { i as appReservedColumns, n as appIdentifierError, r as appNameLengthError, t as APP_NAME_MAX } from "../app-tables-BS_qkwdc.js";
2
+ import { $i as PresetGlueItem, $t as defaultPreset, An as readDesignFile, Bn as ResolvedComposite, Cn as parseDesign, Dn as presetConfigSource, En as presetArgumentOf, Fn as presetOfSpec, Gi as CORE_BLOCKS, Gn as removeComposite, Hn as ResolvedPresetBlock, In as presetSpec, Ji as BlockCatalog, Jt as PRESETS, Ki as INSTANCE_NAME, Kn as resolvePreset, Kt as DEFAULT_PRESET_NAME, Ln as CompositeRemoval, Mn as safeParseDesign, Nn as PresetSpec, On as presetInstallCommand, Pn as presetFromSpec, Qi as PresetCatalogManifest, Qt as PresetName, Rn as PresetConflict, Sn as isDesignCode, Tn as presetApplyCommand, Un as listNames, Vn as ResolvedPreset, Wn as presetBlockConflict, Wr as APP_COLUMN_FORMATS, Xi as PresetCatalog, Xt as PRESET_NAMES, Yi as BlockCatalogEntry, Yt as PRESET_GROUPS, Zi as PresetCatalogBlock, Zr as AppColumnFormat, Zt as PresetGroup, _n as designFileSource, _t as presetOf, an as DESIGN_FORMAT, bn as designSchema, cn as DesignParseError, dn as DesignTooLongError, dt as ConfigConventions, en as isPresetName, fn as MAX_DESIGN_CODE_LENGTH, ft as ExpandedConfig, gn as designConfig, gt as presetConfig, hn as decodeDesign, ht as expandPreset, in as DESIGN_FILE, jn as safeDesignFileSource, kn as presetKey, ln as DesignParseIssue, mn as createUrl, mt as conventionConfig, nn as CREATE_URL, on as DesignErrorCode, pn as createQuery, pt as PresetInput, qi as instancePrefix, qt as NamedPreset, rn as CreateDesign, sn as DesignFile, tn as namedPreset, un as DesignParseResult, vn as designFormat, wn as presetAndDesignOf, xn as encodeDesign, yn as designOf, zn as PresetIntegration } from "../context-DMBXEzQa.js";
3
+ import { C as diffAppTables, D as PRESET_CATALOG, E as isAppDefault, O as BLOCK_CATALOG, S as DiffOptions, T as appDefaultError, _ as glueCommand, a as blockRequires, b as DesignChange, c as installedBlocks, d as instancesOf, f as presetInstances, g as PROVIDER_COMMENT, h as withoutInstance, i as blockEntities, l as instanceBlock, m as withInstance, n as BlockInstance, o as canAddInstance, p as withEntityName, r as PresetInstance, s as entityName, t as BlockEntity, u as instanceNameProblem, v as presetBlocksSource, w as diffDesigns, x as DesignChangeKind, y as presetGlue } from "../index-CIVA5x1i.js";
4
+ import { i as appReservedColumns, n as appIdentifierError, r as appNameLengthError, t as APP_NAME_MAX } from "../app-tables-IXL0Hzut.js";
5
5
  export { APP_COLUMN_FORMATS, APP_NAME_MAX, type AppColumnFormat, BLOCK_CATALOG, type BlockCatalog, type BlockCatalogEntry, type BlockEntity, type BlockInstance, CONVENTION_FIELDS, CREATE_URL, type CompositeRemoval, type ConfigConventions, type CreateDesign, DEFAULT_CONVENTIONS, DEFAULT_PRESET_NAME, DESIGN_FILE, DESIGN_FORMAT, type DesignChange, type DesignChangeKind, type DesignErrorCode, type DesignFile, DesignParseError, type DesignParseIssue, type DesignParseResult, DesignTooLongError, type DiffOptions, type ExpandedConfig, INSTANCE_NAME, MAX_DESIGN_CODE_LENGTH, type NamedPreset, PRESETS, PRESET_CATALOG, PRESET_FRAMEWORKS, PRESET_GROUPS, PRESET_NAMES, PRESET_TENANT_NAMES, PROVIDER_COMMENT, type Preset, type PresetAccess, type PresetCatalog, type PresetCatalogBlock, type PresetCatalogManifest, type PresetConflict, type PresetConventions, type PresetField, type PresetFieldKey, type PresetFieldValue, type PresetFramework, type PresetGlueItem, type PresetGroup, type PresetInput, type PresetInstance, type PresetIntegration, type PresetName, type PresetPlatforms, type PresetScope, type PresetSpec, type PresetSubjectOptions, type PresetValueInfo, type ResolvedComposite, type ResolvedPreset, type ResolvedPresetBlock, CORE_BLOCKS as SINGLE_INSTANCE_BLOCKS, appDefaultError, appIdentifierError, appNameLengthError, appReservedColumns, blockEntities, blockRequires, canAddInstance, conventionConfig, createQuery, createUrl, decodeDesign, defaultPreset, designConfig, designFileSource, designFormat, designOf, designSchema, diffAppTables, diffDesigns, encodeDesign, entityName, expandPreset, glueCommand, installedBlocks, instanceBlock, instanceNameProblem, instancePrefix, instancesOf, integrationsForFramework, isAppDefault, isDesignCode, isPresetName, listNames, namedPreset, parseDesign, presetAndDesignOf, presetApplyCommand, presetArgumentOf, presetBlockConflict, presetBlocksSource, presetConfig, presetConfigSource, presetField, presetFromSpec, presetGlue, presetInstallCommand, presetInstances, presetKey, presetOf, presetOfSpec, presetSpec, presetValueLabel, readDesignFile, removeComposite, resolvePreset, safeDesignFileSource, safeParseDesign, withEntityName, withInstance, withoutInstance };
@@ -2,7 +2,7 @@ import { a as presetOf, f as resolvePreset } from "./config-a_CzEbpi.js";
2
2
  import { D as designOf, M as parseDesign, j as jsonPointer, k as encodeDesign, v as DesignParseError, w as designConfig, y as DesignTooLongError } from "./preset-HzYIrxUS.js";
3
3
  import { I as PRESET_CATALOG, b as appDefaultError, d as appIdentifierError, f as appNameLengthError, p as appReservedColumns, x as isAppDefault } from "./instances-07Lopbd1.js";
4
4
  import { i as resolveConfig } from "./config-DzPViWQU.js";
5
- import { Ft as SQL_MODULES, ot as renderBlocks, q as moduleLayout } from "./sql-C4eWk1yb.js";
5
+ import { Ft as SQL_MODULES, ot as renderBlocks, q as moduleLayout } from "./sql-BbaGokNJ.js";
6
6
  // src/create/column-keys.ts
7
7
  /** The most options a select takes, and the longest option. */
8
8
  const MAX_OPTIONS = 100;
@@ -1,12 +1,12 @@
1
1
  import { n as bufferInPlace, t as around } from "../shared-Ci1g9nl4.js";
2
2
  import { o as problemResponse } from "../problem-BwplIuhI.js";
3
- import { t as adapterBase } from "../adapter-base-xVHtNe6Y.js";
3
+ import { t as adapterBase } from "../adapter-base-8PuJ3OoB.js";
4
4
  import { _ as withFlush } from "../sessions-Dedk1ubX.js";
5
- import { i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-B2sjpHOX.js";
5
+ import { i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-DSGTH9p6.js";
6
6
  import { i as requireCaller, o as runAction } from "../kit-BgRTtW9w.js";
7
7
  import { r as refusalResponse } from "../refusal-CgSrkirX.js";
8
8
  import { s as settle } from "../respond-DLvLJwwN.js";
9
- import { n as extendServer, t as createServer } from "../server-DwF_O2Lx.js";
9
+ import { n as extendServer, t as createServer } from "../server-DFxO9Dyz.js";
10
10
  // src/bridges/react-router.ts
11
11
  /**
12
12
  * Runs an entry array as React Router server middleware. The contributions are
@@ -1,6 +1,6 @@
1
- import { d as defineAuthorizationHooks, f as SERVER_EVENT_SOURCE, n as extendServer, r as TENANT_HEADER, t as createServer } from "../server-DwF_O2Lx.js";
1
+ import { d as defineAuthorizationHooks, f as SERVER_EVENT_SOURCE, n as extendServer, r as TENANT_HEADER, t as createServer } from "../server-DFxO9Dyz.js";
2
2
  import { n as PRIMARY_COOKIE } from "../replicas-DiDz-zyr.js";
3
- import { t as adapterBase } from "../adapter-base-xVHtNe6Y.js";
3
+ import { t as adapterBase } from "../adapter-base-8PuJ3OoB.js";
4
4
  import { _ as withFlush, c as serverCore, g as unexpectedResponse, h as resolveToken, i as withSession, m as handle, p as flushEvents } from "../sessions-Dedk1ubX.js";
5
5
  import { n as event, t as defineEvents } from "../event-map-DLajpFiJ.js";
6
6
  import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../claim-names-B3KyK7Js.js";
@@ -18,9 +18,9 @@ import { n as supportClaims, t as sqlSupportStore } from "../support-DqbhfGgx.js
18
18
  import { t as supportOf } from "../support-view-CvDEgyGY.js";
19
19
  import { i as userContext, r as impersonatorOf } from "../impersonation-BlU6M8zN.js";
20
20
  import "../claims/index.js";
21
- import { t as provideConnectionRuntime } from "../define-runtime-full-BbAQ7sWI.js";
21
+ import { t as provideConnectionRuntime } from "../define-runtime-full-D6v1ST7M.js";
22
22
  import { t as postgresExecutor } from "../executor-BWg7xw7c.js";
23
- import { n as withGuard, t as withBetterSupabase } from "../composite-CE_0rQOp.js";
23
+ import { n as withGuard, t as withBetterSupabase } from "../composite-6VIY4jUO.js";
24
24
  import { n as jwtClaimsOf, r as userClaimsOf, t as authModeOf } from "../claims-DouHL7ZL.js";
25
25
  import { i as delegationOf, n as actorOf, r as agentClaims, t as IDENTITY_SCOPES } from "../actor-DraVJ7tB.js";
26
26
  import { t as authContext } from "../context-DxTbfhD8.js";
@@ -4,7 +4,7 @@ import { a as narrowCap, i as delegatedClaims, r as contextClaims } from "./dele
4
4
  import { i as userContext, t as actClaim } from "./impersonation-BlU6M8zN.js";
5
5
  import { m as sessionCookieName } from "./resolve-oJsHQ9Ib.js";
6
6
  import { s as requestMemo, t as bindAuthorizer } from "./authorizer-DtUCjKBn.js";
7
- import { t as provideConnectionRuntime } from "./define-runtime-full-BbAQ7sWI.js";
7
+ import { t as provideConnectionRuntime } from "./define-runtime-full-D6v1ST7M.js";
8
8
  import { n as dbError } from "./errors-DK1wGb9z.js";
9
9
  import { l as postgrestExecutor } from "./codec-CqLbYQ6z.js";
10
10
  import { a as ok, r as err, t as AsyncResult } from "./result-DijoXEFG.js";
@@ -1,11 +1,11 @@
1
1
  import { t as beforeRoute } from "../before-route-Ra3OhI2x.js";
2
2
  import { i as nitroCloudflareEnv } from "../shared-Ci1g9nl4.js";
3
- import { t as adapterBase } from "../adapter-base-xVHtNe6Y.js";
3
+ import { t as adapterBase } from "../adapter-base-8PuJ3OoB.js";
4
4
  import { p as flushEvents } from "../sessions-Dedk1ubX.js";
5
- import { i as localsOf, r as frameworkEntry } from "../framework-B2sjpHOX.js";
5
+ import { i as localsOf, r as frameworkEntry } from "../framework-DSGTH9p6.js";
6
6
  import { i as requireCaller, o as runAction } from "../kit-BgRTtW9w.js";
7
7
  import { r as refusalResponse } from "../refusal-CgSrkirX.js";
8
- import { n as extendServer, t as createServer } from "../server-DwF_O2Lx.js";
8
+ import { n as extendServer, t as createServer } from "../server-DFxO9Dyz.js";
9
9
  // src/solid-start/index.ts
10
10
  /** SolidStart integration: middleware, guards and server function actions. */
11
11
  function createSolidStart(betterSupabase, options) {
@@ -1,5 +1,5 @@
1
- import { a as toOpenApi30Schema, n as openapiFormat, o as defineDocumentFormat, r as OPENAPI_33_PREVIEW_VERSION, t as defineApi } from "../api-CCA7xIEu.js";
2
- import { a as topicsFrom, c as PROBLEM_SCHEMA, d as mergeJson, f as pointerToken, i as safeKey, l as convertStandard, r as CLOUD_EVENT_TRAIT, s as DEFAULT_ERRORS, t as defineApiModel, u as pascal } from "../build-CfjNUbQF.js";
1
+ import { a as toOpenApi30Schema, n as openapiFormat, o as defineDocumentFormat, r as OPENAPI_33_PREVIEW_VERSION, t as defineApi } from "../api-D-YoZpRe.js";
2
+ import { a as topicsFrom, c as PROBLEM_SCHEMA, d as mergeJson, f as pointerToken, i as safeKey, l as convertStandard, r as CLOUD_EVENT_TRAIT, s as DEFAULT_ERRORS, t as defineApiModel, u as pascal } from "../build-1ikup3O6.js";
3
3
  import { t as FUNCTION_DESCRIPTOR } from "../function-contract-Bf6llTkE.js";
4
4
  import { r as isPlainObject } from "../clone-H_gCsL29.js";
5
5
  import { a as methodNotAllowed } from "../problem-BwplIuhI.js";
@@ -1,7 +1,7 @@
1
1
  import { C as BlockOptionsRegistry, S as BLOCK_OPTION_SCHEMAS, b as resolveBlock } from "../blocks-RVd7m590.js";
2
- import { A as declaredTableColumns, Br as sameTenantLayout, C as notNullCheckName, D as addedColumnTypes, E as PolicyGrant, F as policyGrants, Hr as auditRegistrations, I as rlsTables, M as declaredUpdatedAtTriggers, N as declaredViews, O as declaredColumnTypes, P as extensionSchema, S as blockSqlVersion, T as OwnIndex, Vr as AuditedTable, _ as BlockSqlFile, a as BlockSqlTableSpec, aa as readArgSqlType, b as BlockSqlUpgrade, c as moduleIdType, d as appValues, ea as BlockSqlRead, f as checkedValueMaps, g as BlockSqlEntitlementsProvider, h as BlockSqlDeprecation, i as BlockSqlNames, ia as readArgSource, j as declaredTables, k as declaredIndexes, l as ValueMap, m as BlockSqlAccessProvider, n as BlockSqlContractFunction, na as BlockSqlReadArgType, o as MODULE_ID_TYPES, p as BlockSql, r as BlockSqlIdType, ra as declareRead, s as isBlockSqlIdType, t as BlockSqlContext, ta as BlockSqlReadArg, u as ValueMaps, v as BlockSqlLayout, w as DeclaredView, x as OwnView, y as BlockSqlTestFile, zr as DeclaredForeignKey } from "../context-CTVM2dnp.js";
2
+ import { A as declaredTableColumns, Br as sameTenantLayout, C as notNullCheckName, D as addedColumnTypes, E as PolicyGrant, F as policyGrants, Hr as auditRegistrations, I as rlsTables, M as declaredUpdatedAtTriggers, N as declaredViews, O as declaredColumnTypes, P as extensionSchema, S as blockSqlVersion, T as OwnIndex, Vr as AuditedTable, _ as BlockSqlFile, a as BlockSqlTableSpec, aa as readArgSqlType, b as BlockSqlUpgrade, c as moduleIdType, d as appValues, ea as BlockSqlRead, f as checkedValueMaps, g as BlockSqlEntitlementsProvider, h as BlockSqlDeprecation, i as BlockSqlNames, ia as readArgSource, j as declaredTables, k as declaredIndexes, l as ValueMap, m as BlockSqlAccessProvider, n as BlockSqlContractFunction, na as BlockSqlReadArgType, o as MODULE_ID_TYPES, p as BlockSql, r as BlockSqlIdType, ra as declareRead, s as isBlockSqlIdType, t as BlockSqlContext, ta as BlockSqlReadArg, u as ValueMaps, v as BlockSqlLayout, w as DeclaredView, x as OwnView, y as BlockSqlTestFile, zr as DeclaredForeignKey } from "../context-DMBXEzQa.js";
3
3
  import { a as BlockSqlEmit, i as BlockSqlAudit, n as AuditCategory, r as BlockSqlAction, t as AUDIT_CATEGORIES } from "../audit-actions-DC-AtyWB.js";
4
- import { $ as PolicyCommand, $n as moduleContext, $t as AdoptedView, A as POLICY_FUNCTIONS, An as EntityRenameStep, At as checkValues, B as policyFunctionsSql, Bn as ParseStore, Bt as DataExportPlan, C as setTagBlock, Cn as blockFileState, Ct as templateFunctions, D as formatBsbComment, Dn as moduleDataDir, Dt as writtenValues, E as commentOnTableSql, En as sameBlockFile, Et as duplicateObjects, F as RulePolicy, Fn as ModuleRenderEntry, Ft as TenantQuery, G as bsbPolicyName, Gn as duplicatePolicies, Gt as excludedColumns, H as renderRule, Hn as appColumnsOf, Ht as dataExportPlan, I as RulePolicyInput, In as ModuleRenderStore, It as tenantsQuery, J as widenedCommands, Jn as setParseStore, Jt as clearMemo, K as appTablePolicyNotes, Kn as ownerOf, Kt as resolveExposeColumns, L as RuleValue, Ln as moduleRenderStats, Lt as expiredFlagsQuery, M as ReadRulePolicy, Mn as SqlStatement, Mt as ReadRolesModule, N as Rule, Nn as splitStatements, Nt as blockReadRoles, O as parseBsbComment, On as moduleFilePaths, Ot as CheckValues, P as RuleOperator, Pn as renderKey, Pt as subjectColumns, Q as Policy, Qn as upgradePlan, Qt as AdoptedTable, R as disallowedPolicyCalls, Rn as setModuleRenderStore, Rt as sameTenantColumn, S as renderTagBlock, Sn as moduleSchemaExtensions, St as scopeProblems, T as BsbTag, Tn as moduleFileVersion, Tt as DuplicateObject, U as renderRulePolicy, Un as buildModel, Ut as OwnedColumn, V as readRulePolicies, Vn as SchemaModel, Vt as SECRET_COLUMNS, W as rulePolicy, Wn as conflicts, Wt as ownedColumns, X as TENANT_SCOPE_POLICY, Xn as InstalledBlock, Xt as memoized, Y as TENANT_SCOPE_NAMES, Yn as BlockSqlUpgradePlan, Yt as memoStats, Z as Grant, Zn as moduleDeprecations, Zt as setMemoBackend, _ as tableTagComments, _n as BlockSqlExtension, _t as migrationOptionUses, a as ListTemplateOptions, an as PRELUDE_FUNCTIONS, ar as customContracts, at as policy, b as TagRenderOptions, bn as moduleHidingColumns, bt as resolveProviderSql, c as listDeclare, cn as APP_TABLES_MODULE, cr as renderBlocks, ct as readPolicy, d as TableFeature, dn as instanceFunctions, dt as hasColumnAccess, en as adoptedColumnProblems, er as redundantNulls, et as PolicyInput, f as createsTable, fn as SeedDefaultsFunction, ft as CompiledReadSet, g as tableFeatures, gn as resolveBlocks, gt as MigrationOptionUse, h as setTableFeature, hn as moduleSource, ht as sharedRolesProblems, i as ListSortKey, in as UNSCOPED_MODULE, ir as BlockSqlTopic, it as maskSql, j as PolicyFunctionsOptions, jn as entityRenamePlan, jt as declaredCheckValues, k as setBsbTag, kn as EntityRenamePlan, kt as TableCheckValues, l as listOrder, ln as appTablesFiles, lr as contractSignature, lt as renderPolicy, m as setFeatureStatement, mn as SQL_MODULES, mt as compileReadSets, n as renderAutoEmbedding, nn as adoptedViews, nr as legacyOptionTarget, nt as RenderPolicyOptions, o as keysetPredicate, on as PRELUDE_MODULE, or as moduleBody, ot as readGrants, p as isTableFeature, pn as seedDefaultsFunctions, pt as compileReadSet, q as declaredPolicies, qn as parseDeclared, qt as MemoBackend, r as LIST_TOTAL_CAP, rn as moduleWritesText, rr as LEGACY_OPTION, rt as catalogPolicy, s as listBody, sn as APP_TABLES_MARKER, sr as moduleTopics, st as readPolicies, t as AutoEmbeddingConfig, tn as adoptedTables, tr as legacyOptionTables, tt as ReadPolicy, u as TABLE_FEATURES, un as DEFAULT_ROLES, ut as scopePolicyName, v as RENDERED_FEATURES, vn as BlockSqlPermissionKey, vt as moduleLayout, w as BsbComment, wn as isModuleDataFile, wt as templatePlaceholderProblems, x as isRenderedFeature, xn as modulePermissionKeys, xt as sameTemplateFunction, y as RenderedFeature, yn as moduleEventTriggers, yt as SCOPE_ID_TYPES, z as isRule, zn as Declaration, zt as sameTenantTrigger } from "../index-C1UeevYS.js";
5
- import { n as BlockTables, r as blockTables, t as BlockTable } from "../block-tables-DCB8f9J4.js";
6
- import { a as appTableEventTypes } from "../app-tables-BS_qkwdc.js";
4
+ import { $ as PolicyCommand, $n as moduleContext, $t as AdoptedView, A as POLICY_FUNCTIONS, An as EntityRenameStep, At as checkValues, B as policyFunctionsSql, Bn as ParseStore, Bt as DataExportPlan, C as setTagBlock, Cn as blockFileState, Ct as templateFunctions, D as formatBsbComment, Dn as moduleDataDir, Dt as writtenValues, E as commentOnTableSql, En as sameBlockFile, Et as duplicateObjects, F as RulePolicy, Fn as ModuleRenderEntry, Ft as TenantQuery, G as bsbPolicyName, Gn as duplicatePolicies, Gt as excludedColumns, H as renderRule, Hn as appColumnsOf, Ht as dataExportPlan, I as RulePolicyInput, In as ModuleRenderStore, It as tenantsQuery, J as widenedCommands, Jn as setParseStore, Jt as clearMemo, K as appTablePolicyNotes, Kn as ownerOf, Kt as resolveExposeColumns, L as RuleValue, Ln as moduleRenderStats, Lt as expiredFlagsQuery, M as ReadRulePolicy, Mn as SqlStatement, Mt as ReadRolesModule, N as Rule, Nn as splitStatements, Nt as blockReadRoles, O as parseBsbComment, On as moduleFilePaths, Ot as CheckValues, P as RuleOperator, Pn as renderKey, Pt as subjectColumns, Q as Policy, Qn as upgradePlan, Qt as AdoptedTable, R as disallowedPolicyCalls, Rn as setModuleRenderStore, Rt as sameTenantColumn, S as renderTagBlock, Sn as moduleSchemaExtensions, St as scopeProblems, T as BsbTag, Tn as moduleFileVersion, Tt as DuplicateObject, U as renderRulePolicy, Un as buildModel, Ut as OwnedColumn, V as readRulePolicies, Vn as SchemaModel, Vt as SECRET_COLUMNS, W as rulePolicy, Wn as conflicts, Wt as ownedColumns, X as TENANT_SCOPE_POLICY, Xn as InstalledBlock, Xt as memoized, Y as TENANT_SCOPE_NAMES, Yn as BlockSqlUpgradePlan, Yt as memoStats, Z as Grant, Zn as moduleDeprecations, Zt as setMemoBackend, _ as tableTagComments, _n as BlockSqlExtension, _t as migrationOptionUses, a as ListTemplateOptions, an as PRELUDE_FUNCTIONS, ar as customContracts, at as policy, b as TagRenderOptions, bn as moduleHidingColumns, bt as resolveProviderSql, c as listDeclare, cn as APP_TABLES_MODULE, cr as renderBlocks, ct as readPolicy, d as TableFeature, dn as instanceFunctions, dt as hasColumnAccess, en as adoptedColumnProblems, er as redundantNulls, et as PolicyInput, f as createsTable, fn as SeedDefaultsFunction, ft as CompiledReadSet, g as tableFeatures, gn as resolveBlocks, gt as MigrationOptionUse, h as setTableFeature, hn as moduleSource, ht as sharedRolesProblems, i as ListSortKey, in as UNSCOPED_MODULE, ir as BlockSqlTopic, it as maskSql, j as PolicyFunctionsOptions, jn as entityRenamePlan, jt as declaredCheckValues, k as setBsbTag, kn as EntityRenamePlan, kt as TableCheckValues, l as listOrder, ln as appTablesFiles, lr as contractSignature, lt as renderPolicy, m as setFeatureStatement, mn as SQL_MODULES, mt as compileReadSets, n as renderAutoEmbedding, nn as adoptedViews, nr as legacyOptionTarget, nt as RenderPolicyOptions, o as keysetPredicate, on as PRELUDE_MODULE, or as moduleBody, ot as readGrants, p as isTableFeature, pn as seedDefaultsFunctions, pt as compileReadSet, q as declaredPolicies, qn as parseDeclared, qt as MemoBackend, r as LIST_TOTAL_CAP, rn as moduleWritesText, rr as LEGACY_OPTION, rt as catalogPolicy, s as listBody, sn as APP_TABLES_MARKER, sr as moduleTopics, st as readPolicies, t as AutoEmbeddingConfig, tn as adoptedTables, tr as legacyOptionTables, tt as ReadPolicy, u as TABLE_FEATURES, un as DEFAULT_ROLES, ut as scopePolicyName, v as RENDERED_FEATURES, vn as BlockSqlPermissionKey, vt as moduleLayout, w as BsbComment, wn as isModuleDataFile, wt as templatePlaceholderProblems, x as isRenderedFeature, xn as modulePermissionKeys, xt as sameTemplateFunction, y as RenderedFeature, yn as moduleEventTriggers, yt as SCOPE_ID_TYPES, z as isRule, zn as Declaration, zt as sameTenantTrigger } from "../index-DRKAMZV3.js";
5
+ import { n as BlockTables, r as blockTables, t as BlockTable } from "../block-tables-DmDyNlJf.js";
6
+ import { a as appTableEventTypes } from "../app-tables-IXL0Hzut.js";
7
7
  export { APP_TABLES_MARKER, APP_TABLES_MODULE, AUDIT_CATEGORIES, type AdoptedTable, type AdoptedView, type AuditCategory, type AuditedTable, type AutoEmbeddingConfig, BLOCK_OPTION_SCHEMAS, type BlockOptionsRegistry, type BlockSql, type BlockSqlAccessProvider, type BlockSqlAction, type BlockSqlAudit, type BlockSqlContext, type BlockSqlContractFunction, type BlockSqlDeprecation, type BlockSqlEmit, type BlockSqlEntitlementsProvider, type BlockSqlExtension, type BlockSqlFile, type BlockSqlIdType, type BlockSqlLayout, type BlockSqlNames, type BlockSqlPermissionKey, type BlockSqlRead, type BlockSqlReadArg, type BlockSqlReadArgType, type BlockSqlTableSpec, type BlockSqlTestFile, type BlockSqlTopic, type BlockSqlUpgrade, type BlockSqlUpgradePlan, type BlockTable, type BlockTables, type BsbComment, type BsbTag, type CheckValues, type CompiledReadSet, DEFAULT_ROLES, type DataExportPlan, type Declaration, type DeclaredForeignKey, type DeclaredView, type DuplicateObject, type EntityRenamePlan, type EntityRenameStep, type Grant, type InstalledBlock, LEGACY_OPTION, LIST_TOTAL_CAP, type ListSortKey, type ListTemplateOptions, MODULE_ID_TYPES, type MemoBackend, type MigrationOptionUse, type ModuleRenderEntry, type ModuleRenderStore, type OwnIndex, type OwnView, type OwnedColumn, POLICY_FUNCTIONS, PRELUDE_FUNCTIONS, PRELUDE_MODULE, type ParseStore, type Policy, type PolicyCommand, type PolicyFunctionsOptions, type PolicyGrant, type PolicyInput, RENDERED_FEATURES, type ReadPolicy, type ReadRolesModule, type ReadRulePolicy, type RenderPolicyOptions, type RenderedFeature, type Rule, type RuleOperator, type RulePolicy, type RulePolicyInput, type RuleValue, SCOPE_ID_TYPES, SECRET_COLUMNS, SQL_MODULES, type SchemaModel, type SeedDefaultsFunction, type SqlStatement, TABLE_FEATURES, TENANT_SCOPE_NAMES, TENANT_SCOPE_POLICY, type TableCheckValues, type TableFeature, type TagRenderOptions, type TenantQuery, UNSCOPED_MODULE, type ValueMap, type ValueMaps, addedColumnTypes, adoptedColumnProblems, adoptedTables, adoptedViews, appColumnsOf, appTableEventTypes, appTablePolicyNotes, appTablesFiles, appValues, auditRegistrations, blockFileState, blockReadRoles, blockSqlVersion, blockTables, bsbPolicyName, buildModel, catalogPolicy, checkValues, checkedValueMaps, clearMemo, commentOnTableSql, compileReadSet, compileReadSets, conflicts, contractSignature, createsTable, customContracts, dataExportPlan, declareRead, declaredCheckValues, declaredColumnTypes, declaredIndexes, declaredPolicies, declaredTableColumns, declaredTables, declaredUpdatedAtTriggers, declaredViews, disallowedPolicyCalls, duplicateObjects, duplicatePolicies, entityRenamePlan, excludedColumns, expiredFlagsQuery, extensionSchema, formatBsbComment, hasColumnAccess, instanceFunctions, isBlockSqlIdType, isModuleDataFile, isRenderedFeature, isRule, isTableFeature, keysetPredicate, legacyOptionTables, legacyOptionTarget, listBody, listDeclare, listOrder, maskSql, memoStats, memoized, migrationOptionUses, moduleBody, moduleContext, moduleDataDir, moduleDeprecations, moduleEventTriggers, moduleFilePaths, moduleFileVersion, moduleHidingColumns, moduleIdType, moduleLayout, modulePermissionKeys, moduleRenderStats, moduleSchemaExtensions, moduleSource, moduleTopics, moduleWritesText, notNullCheckName, ownedColumns, ownerOf, parseBsbComment, parseDeclared, policy, policyFunctionsSql, policyGrants, readArgSource, readArgSqlType, readGrants, readPolicies, readPolicy, readRulePolicies, redundantNulls, renderAutoEmbedding, renderBlocks, renderKey, renderPolicy, renderRule, renderRulePolicy, renderTagBlock, resolveBlock, resolveBlocks, resolveExposeColumns, resolveProviderSql, rlsTables, rulePolicy, sameBlockFile, sameTemplateFunction, sameTenantColumn, sameTenantLayout, sameTenantTrigger, scopePolicyName, scopeProblems, seedDefaultsFunctions, setBsbTag, setFeatureStatement, setMemoBackend, setModuleRenderStore, setParseStore, setTableFeature, setTagBlock, sharedRolesProblems, splitStatements, subjectColumns, tableFeatures, tableTagComments, templateFunctions, templatePlaceholderProblems, tenantsQuery, upgradePlan, widenedCommands, writtenValues };
package/dist/sql/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { B as resolveBlock, T as hasColumnAccess, h as appTableEventTypes } from "../instances-07Lopbd1.js";
2
- import { $ as ownerOf, $t as redundantNulls, A as declaredCheckValues, At as sameBlockFile, B as clearMemo, Bt as excludedColumns, C as rulePolicy, Ct as appTablesFiles, D as duplicateObjects, Dt as blockFileState, E as sharedRolesProblems, Et as blockSqlVersion, F as sameTenantLayout, Ft as SQL_MODULES, G as blockTables, Gt as keysetPredicate, H as memoized, Ht as SECRET_COLUMNS, I as adoptedColumnProblems, It as moduleSource, J as entityRenamePlan, Jt as listOrder, K as seedDefaultsFunctions, Kt as listBody, L as adoptedTables, Lt as resolveBlocks, M as tenantsQuery, Mt as moduleHidingColumns, N as expiredFlagsQuery, Nt as modulePermissionKeys, O as writtenValues, Ot as isModuleDataFile, P as ownedColumns, Pt as moduleSchemaExtensions, Q as duplicatePolicies, Qt as moduleContext, R as adoptedViews, Rt as TENANT_SCOPE_NAMES, S as renderRulePolicy, St as APP_TABLES_MODULE, T as compileReadSets, Tt as renderAutoEmbedding, U as setMemoBackend, Ut as dataExportPlan, V as memoStats, Vt as resolveExposeColumns, W as instanceFunctions, Wt as LIST_TOTAL_CAP, X as buildModel, Xt as sameTenantTrigger, Y as appColumnsOf, Yt as sameTenantColumn, Z as conflicts, Zt as migrationOptionUses, _ as disallowedPolicyCalls, _n as extensionSchema, _t as setModuleRenderStore, a as setTableFeature, an as checkedValueMaps, at as moduleTopics, b as readRulePolicies, bn as auditRegistrations, bt as moduleFilePaths, c as RENDERED_FEATURES, cn as AUDIT_CATEGORIES, ct as upgradePlan, d as setTagBlock, dn as declaredColumnTypes, dt as appTablePolicyNotes, en as MODULE_ID_TYPES, et as parseDeclared, f as commentOnTableSql, fn as declaredIndexes, ft as declaredPolicies, g as POLICY_FUNCTIONS, gn as declaredViews, gt as moduleRenderStats, h as setBsbTag, hn as declaredUpdatedAtTriggers, ht as PRELUDE_MODULE, i as setFeatureStatement, in as appValues, it as moduleBody, j as blockReadRoles, jt as moduleEventTriggers, k as checkValues, kt as moduleFileVersion, l as isRenderedFeature, ln as BLOCK_OPTION_SCHEMAS, lt as bsbPolicyName, m as parseBsbComment, mn as declaredTables, mt as PRELUDE_FUNCTIONS, n as createsTable, nn as moduleIdType, nt as splitStatements, o as tableFeatures, on as legacyOptionTables, ot as renderBlocks, p as formatBsbComment, pn as declaredTableColumns, pt as widenedCommands, q as moduleLayout, qt as listDeclare, r as isTableFeature, rn as contractSignature, rt as customContracts, s as tableTagComments, sn as legacyOptionTarget, st as moduleDeprecations, t as TABLE_FEATURES, tn as isBlockSqlIdType, tt as setParseStore, u as renderTagBlock, un as addedColumnTypes, ut as UNSCOPED_MODULE, v as isRule, vn as policyGrants, vt as renderKey, w as compileReadSet, wt as scopePolicyName, x as renderRule, xt as APP_TABLES_MARKER, y as policyFunctionsSql, yn as rlsTables, yt as moduleDataDir, z as moduleWritesText, zt as TENANT_SCOPE_POLICY } from "../sql-C4eWk1yb.js";
2
+ import { $ as ownerOf, $t as redundantNulls, A as declaredCheckValues, At as sameBlockFile, B as clearMemo, Bt as excludedColumns, C as rulePolicy, Ct as appTablesFiles, D as duplicateObjects, Dt as blockFileState, E as sharedRolesProblems, Et as blockSqlVersion, F as sameTenantLayout, Ft as SQL_MODULES, G as blockTables, Gt as keysetPredicate, H as memoized, Ht as SECRET_COLUMNS, I as adoptedColumnProblems, It as moduleSource, J as entityRenamePlan, Jt as listOrder, K as seedDefaultsFunctions, Kt as listBody, L as adoptedTables, Lt as resolveBlocks, M as tenantsQuery, Mt as moduleHidingColumns, N as expiredFlagsQuery, Nt as modulePermissionKeys, O as writtenValues, Ot as isModuleDataFile, P as ownedColumns, Pt as moduleSchemaExtensions, Q as duplicatePolicies, Qt as moduleContext, R as adoptedViews, Rt as TENANT_SCOPE_NAMES, S as renderRulePolicy, St as APP_TABLES_MODULE, T as compileReadSets, Tt as renderAutoEmbedding, U as setMemoBackend, Ut as dataExportPlan, V as memoStats, Vt as resolveExposeColumns, W as instanceFunctions, Wt as LIST_TOTAL_CAP, X as buildModel, Xt as sameTenantTrigger, Y as appColumnsOf, Yt as sameTenantColumn, Z as conflicts, Zt as migrationOptionUses, _ as disallowedPolicyCalls, _n as extensionSchema, _t as setModuleRenderStore, a as setTableFeature, an as checkedValueMaps, at as moduleTopics, b as readRulePolicies, bn as auditRegistrations, bt as moduleFilePaths, c as RENDERED_FEATURES, cn as AUDIT_CATEGORIES, ct as upgradePlan, d as setTagBlock, dn as declaredColumnTypes, dt as appTablePolicyNotes, en as MODULE_ID_TYPES, et as parseDeclared, f as commentOnTableSql, fn as declaredIndexes, ft as declaredPolicies, g as POLICY_FUNCTIONS, gn as declaredViews, gt as moduleRenderStats, h as setBsbTag, hn as declaredUpdatedAtTriggers, ht as PRELUDE_MODULE, i as setFeatureStatement, in as appValues, it as moduleBody, j as blockReadRoles, jt as moduleEventTriggers, k as checkValues, kt as moduleFileVersion, l as isRenderedFeature, ln as BLOCK_OPTION_SCHEMAS, lt as bsbPolicyName, m as parseBsbComment, mn as declaredTables, mt as PRELUDE_FUNCTIONS, n as createsTable, nn as moduleIdType, nt as splitStatements, o as tableFeatures, on as legacyOptionTables, ot as renderBlocks, p as formatBsbComment, pn as declaredTableColumns, pt as widenedCommands, q as moduleLayout, qt as listDeclare, r as isTableFeature, rn as contractSignature, rt as customContracts, s as tableTagComments, sn as legacyOptionTarget, st as moduleDeprecations, t as TABLE_FEATURES, tn as isBlockSqlIdType, tt as setParseStore, u as renderTagBlock, un as addedColumnTypes, ut as UNSCOPED_MODULE, v as isRule, vn as policyGrants, vt as renderKey, w as compileReadSet, wt as scopePolicyName, x as renderRule, xt as APP_TABLES_MARKER, y as policyFunctionsSql, yn as rlsTables, yt as moduleDataDir, z as moduleWritesText, zt as TENANT_SCOPE_POLICY } from "../sql-BbaGokNJ.js";
3
3
  import { a as LEGACY_OPTION } from "../options-Bfd-k6yw.js";
4
4
  import { A as notNullCheckName } from "../shared-D-qwk29i.js";
5
5
  import { s as subjectColumns } from "../contributions-Bh-HcHoJ.js";