better-supabase 0.25.0 → 0.28.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.
Files changed (180) hide show
  1. package/dist/{access-sql-bjWFUWlk.js → access-sql-CTDNuxRv.js} +177 -12
  2. package/dist/ai-sdk/agents/index.d.ts +2 -2
  3. package/dist/{app-tables-xij_MI5H.d.ts → app-tables-62GqZIhd.d.ts} +1 -1
  4. package/dist/{authorization-BJV2i8xB.d.ts → authorization-BCG1v0iC.d.ts} +24 -3
  5. package/dist/{bind-vKDmdu_4.d.ts → bind-C54jD0r3.d.ts} +1 -1
  6. package/dist/{block-env-wVLz0KMV.d.ts → block-env-CM-LFfj4.d.ts} +3 -3
  7. package/dist/blocks/ai-chat/index.d.ts +3 -3
  8. package/dist/blocks/announcements/index.d.ts +3 -3
  9. package/dist/blocks/api-keys/index.d.ts +1 -1
  10. package/dist/blocks/attachments/index.d.ts +1 -1
  11. package/dist/blocks/audit/index.d.ts +2 -2
  12. package/dist/blocks/automations/index.d.ts +1 -1
  13. package/dist/blocks/billing/index.d.ts +1 -1
  14. package/dist/blocks/bookings/index.d.ts +1 -1
  15. package/dist/blocks/calendar/index.d.ts +1 -1
  16. package/dist/blocks/comments/index.d.ts +4 -4
  17. package/dist/blocks/custom-fields/index.js +1 -1
  18. package/dist/blocks/drive/index.d.ts +1 -1
  19. package/dist/blocks/employees/index.js +1 -1
  20. package/dist/blocks/entitlements/index.d.ts +2 -2
  21. package/dist/blocks/forms/index.d.ts +1 -1
  22. package/dist/blocks/inbox/index.d.ts +4 -4
  23. package/dist/blocks/index.d.ts +1 -1
  24. package/dist/blocks/messaging/index.d.ts +4 -4
  25. package/dist/blocks/mfa/index.d.ts +1 -1
  26. package/dist/blocks/notifications/index.d.ts +3 -3
  27. package/dist/blocks/onboarding/index.d.ts +1 -1
  28. package/dist/blocks/organizations/index.d.ts +2 -2
  29. package/dist/blocks/permissions/index.d.ts +1 -1
  30. package/dist/blocks/push/index.d.ts +1 -1
  31. package/dist/blocks/reactions/index.d.ts +3 -3
  32. package/dist/blocks/reminders/index.d.ts +1 -1
  33. package/dist/blocks/saved-views/index.d.ts +1 -1
  34. package/dist/blocks/search/index.d.ts +2 -2
  35. package/dist/blocks/sessions/index.d.ts +1 -1
  36. package/dist/blocks/settings/index.d.ts +1 -1
  37. package/dist/blocks/subjects/index.d.ts +1 -1
  38. package/dist/blocks/tags/index.d.ts +1 -1
  39. package/dist/blocks/tasks/index.d.ts +1 -1
  40. package/dist/blocks/tasks/index.js +1 -1
  41. package/dist/blocks/undo/index.d.ts +1 -1
  42. package/dist/blocks/usage/index.d.ts +1 -1
  43. package/dist/blocks/workflow-editor/index.d.ts +3 -3
  44. package/dist/blocks/workflows/index.d.ts +3 -3
  45. package/dist/cli/{add-C2pNvVpu.js → add-BKcE_g9D.js} +2 -2
  46. package/dist/cli/{add-BTVrOGJF.js → add-DUyg9qna.js} +40 -15
  47. package/dist/cli/add-pDOlqWUa.js +1 -0
  48. package/dist/cli/{backfill-BicVPugb.js → backfill-r9RELEEh.js} +4 -4
  49. package/dist/cli/bin.js +1 -1
  50. package/dist/cli/{blocks-sScN-ik-.js → blocks-DTOFdrxL.js} +1 -1
  51. package/dist/cli/{blocks-BmYOH4T-.js → blocks-k1OG8XDs.js} +2 -2
  52. package/dist/cli/{cache-1TfBy2K4.js → cache-Czfw7Iow.js} +1 -1
  53. package/dist/cli/{codemod-ylE6wGLo.js → codemod-ClmbiLuL.js} +3 -3
  54. package/dist/cli/{command-BWEEXmtz.js → command-CVzTJSLp.js} +31 -0
  55. package/dist/cli/{completion-8EDK21xj.js → completion-CNCqE-Gb.js} +1 -1
  56. package/dist/cli/{completion-BfnKI4QZ.js → completion-Dpk6vh0p.js} +2 -2
  57. package/dist/cli/{completion-Bt7LMypX.js → completion-DxEXxFpz.js} +2 -2
  58. package/dist/cli/{config-CeaQMrvS.js → config-D2YUlzrl.js} +1 -1
  59. package/dist/cli/{config-WKDixoGK.js → config-EjNj3HfT.js} +1 -1
  60. package/dist/cli/{config-BVfeG3A5.js → config-KvV-sLZL.js} +290 -10
  61. package/dist/cli/{content-mapper-hUW2nb92.js → content-mapper-ez_mT0d4.js} +2 -2
  62. package/dist/cli/{db-DwjyUbAh.js → db-uYN6O5Eg.js} +38 -14
  63. package/dist/cli/{doctor-D3WKFBSv.js → doctor-BD9oo4MG.js} +31 -28
  64. package/dist/cli/{env-DMgjB_4y.js → env-BK0xKMeU.js} +1 -2
  65. package/dist/cli/{env-C-Bl6Awn.js → env-Bat6ogep.js} +1 -1
  66. package/dist/cli/env-Cy2lWBRC.js +1 -0
  67. package/dist/cli/{env-BCgVZkcb.js → env-DEAtgGoj.js} +2 -2
  68. package/dist/cli/{exec--Q1ZEWUW.js → exec-Ca5s-ygi.js} +1 -1
  69. package/dist/cli/{gen-CqsUdsB2.js → gen-8Ya8n2sA.js} +16 -16
  70. package/dist/cli/in-stack-diff-Cp-tVPj2.js +186 -0
  71. package/dist/cli/index.d.ts +1 -2
  72. package/dist/cli/index.js +8 -8
  73. package/dist/cli/{init-DryZ5Mp1.js → init-DgL3sDfQ.js} +118 -11
  74. package/dist/cli/{keys-CbaL0lnw.js → keys-CsanNk-2.js} +1 -1
  75. package/dist/cli/{live-Di45imoV.js → live-CMMEct_F.js} +2 -2
  76. package/dist/cli/{mcp-BklC-3eK.js → mcp-DEHtzAkq.js} +4 -4
  77. package/dist/cli/{metadata-7PsBF5Xw.js → metadata-BZh-cOzC.js} +3 -3
  78. package/dist/cli/migrate-sVs1QYTM.js +306 -0
  79. package/dist/cli/{migration-safety-Doy9qYO8.js → migration-safety-ClnYNMdq.js} +2 -2
  80. package/dist/cli/migrations-DWh38tO9.js +117 -0
  81. package/dist/cli/{module-migration-ZIn1NCMi.js → module-migration-CXfRJIV4.js} +2 -2
  82. package/dist/cli/{moved-DVwgE8lV.js → moved-Cnb4fp49.js} +1 -1
  83. package/dist/cli/{parse-B079x40m.js → parse-BWM6IGhF.js} +1 -1
  84. package/dist/cli/powersync-DURhWDVc.js +1 -0
  85. package/dist/cli/{powersync-BRGXOCJ0.js → powersync-Dnyr-Wy5.js} +4 -3
  86. package/dist/cli/{print-Dfqd4DB-.js → print-DJrSr56b.js} +2 -2
  87. package/dist/cli/{migrations-JtsPYv8g.js → providers-CpaISitn.js} +4 -116
  88. package/dist/cli/{remove-CQzSCYTu.js → remove-ChaieK3t.js} +6 -6
  89. package/dist/cli/{render-DWRz-uPQ.js → render-DUNJ4Pss.js} +8 -5
  90. package/dist/cli/{run-DPLedqTF.js → run-ChCQPYOh.js} +41 -39
  91. package/dist/cli/{run-j54rk2w-.js → run-Cl9COGuy.js} +10 -10
  92. package/dist/cli/{run-DmOTMa44.js → run-CxFDjL1Q.js} +4 -4
  93. package/dist/cli/seed-BJ7c-ktX.js +1 -0
  94. package/dist/cli/{seed-BMynpMPy.js → seed-BzVLTdRl.js} +3 -3
  95. package/dist/cli/{shared-CslNcs-R.js → shared-5uqc1GBj.js} +1 -1
  96. package/dist/cli/{skills-FXAVPLzp.js → skills-0gz_qjVb.js} +1 -1
  97. package/dist/cli/{snapshot-DdN5GlhH.js → snapshot-DdAP7LWO.js} +3 -3
  98. package/dist/cli/{source-COARbqch.js → source-2irbWSck.js} +1 -1
  99. package/dist/cli/{source-args-CDmmFmFG.js → source-args-DAcQt-Mh.js} +1 -1
  100. package/dist/cli/{spec-CgLNZc_C.js → spec-B7n4Rthp.js} +3 -3
  101. package/dist/cli/{spec-DIhBQlBF.js → spec-_MS0ym5r.js} +1 -1
  102. package/dist/cli/{sql-layout-8jrP5gIa.js → sql-layout-DYKkQw1k.js} +21 -7
  103. package/dist/cli/{stack-DgASZP0K.js → stack-CteM33gC.js} +3 -3
  104. package/dist/cli/{stack-status-B_Ipd_-z.js → stack-status-BkkYRlXG.js} +1 -1
  105. package/dist/cli/{stacks-BYlQ96WS.js → stacks-CiDBH1dB.js} +1 -1
  106. package/dist/cli/{sync-SqyVHRSJ.js → sync-DnSOrQuA.js} +4 -3
  107. package/dist/cli/table-DeH8X0qz.js +89 -0
  108. package/dist/cli/{upgrade-CY-vj_qh.js → upgrade-CWdrC-K3.js} +5 -4
  109. package/dist/cli/{upgrade-D0aLhluU.js → upgrade-cMy5fKkg.js} +3 -3
  110. package/dist/cli/{version-Bhca9D6q.js → version-C5RAWmrD.js} +1 -1
  111. package/dist/client/index.d.ts +5 -5
  112. package/dist/client/native/index.d.ts +4 -4
  113. package/dist/config/index.d.ts +3 -3
  114. package/dist/config/index.js +4 -4
  115. package/dist/{config-CP-WaboC.js → config-CTeR7XHK.js} +3 -3
  116. package/dist/{config-C19McoGo.js → config-CvJHIy5q.js} +1 -1
  117. package/dist/{context-BJoHD20l.d.ts → context-BFEX0b7H.d.ts} +106 -3
  118. package/dist/{controller-CwGXms17.d.ts → controller-Cl6HmMBk.d.ts} +1 -1
  119. package/dist/create/index.d.ts +62 -3
  120. package/dist/create/index.js +67 -4
  121. package/dist/create/lite/index.d.ts +140 -3
  122. package/dist/create/lite/index.js +399 -47
  123. package/dist/{entitlements-CsZcfllV.d.ts → entitlements-Y-n4RGAd.d.ts} +1 -1
  124. package/dist/{field-errors-6BVg31Yp.d.ts → field-errors-Btn3czyz.d.ts} +4 -4
  125. package/dist/{index-Cagz4Z2k.d.ts → index-8wOL81rB.d.ts} +1 -1
  126. package/dist/{index-D01wHGSN.d.ts → index-C0_cweyT.d.ts} +6 -6
  127. package/dist/{index-CbUCGMqj.d.ts → index-CAY7rIQs.d.ts} +2 -2
  128. package/dist/{index-DOHx3JuB.d.ts → index-DPMVWm_Z.d.ts} +2 -2
  129. package/dist/{index-C0QuN9_P.d.ts → index-k-SyCzcQ.d.ts} +104 -119
  130. package/dist/{instances-qz2MCMyK.js → instances-C7qUTjhJ.js} +1 -1
  131. package/dist/mapper/bin.js +7 -7
  132. package/dist/mcp/index.d.ts +1 -1
  133. package/dist/next/index.d.ts +3 -3
  134. package/dist/{operations-CPhOcuzl.d.ts → operations-DE7SOBw-.d.ts} +1 -1
  135. package/dist/{options-BOGo1qCA.js → options-B5E2MGIz.js} +3 -1
  136. package/dist/{options-D2s7fT1s.js → options-COo7_3MX.js} +2 -1
  137. package/dist/{options-D32-YxnO.js → options-DhoLMknl.js} +3 -1
  138. package/dist/otel/index.js +4 -4
  139. package/dist/{ports-Bw7uxPd_.d.ts → ports-DP0bthUk.d.ts} +1 -1
  140. package/dist/powersync/index.d.ts +2 -2
  141. package/dist/preset/index.d.ts +3 -3
  142. package/dist/preset/index.js +3 -3
  143. package/dist/{preset-BbSWLoXM.js → preset-DwuWNBip.js} +2 -2
  144. package/dist/{project-TN03XDsA.js → project-Bo1vZqVs.js} +5 -5
  145. package/dist/{push-token-vykw2JXT.d.ts → push-token-v3xCcVU7.d.ts} +1 -1
  146. package/dist/react/index.d.ts +5 -5
  147. package/dist/react/native/index.d.ts +1 -1
  148. package/dist/react/server.d.ts +5 -5
  149. package/dist/realtime/index.d.ts +3 -3
  150. package/dist/realtime/index.js +1 -1
  151. package/dist/records/index.d.ts +3 -3
  152. package/dist/{resolved-names-Dsf28_Dr.js → resolved-names-iLBOUaib.js} +2 -2
  153. package/dist/server/index.d.ts +1 -1
  154. package/dist/solid/index.d.ts +5 -5
  155. package/dist/sql/index.d.ts +5 -5
  156. package/dist/sql/index.js +5 -5
  157. package/dist/{sql-Dg3W1ENk.js → sql-B7vBP9g0.js} +3577 -1246
  158. package/dist/ssr/index.d.ts +1 -1
  159. package/dist/storage/index.js +1 -1
  160. package/dist/{subjects-NomQg6Eg.d.ts → subjects-BYCL-6hA.d.ts} +15 -1
  161. package/dist/svelte/index.d.ts +5 -5
  162. package/dist/{tenant-BRmKZ7aq.d.ts → tenant-CyLEXgot.d.ts} +1 -1
  163. package/dist/testing/index.d.ts +3 -3
  164. package/dist/testing/index.js +2 -2
  165. package/dist/{topic-CpsKVBot.d.ts → topic-B_DGdAEs.d.ts} +1 -1
  166. package/dist/{topic-F0FKzJyQ.js → topic-DnsNG4Kj.js} +1 -1
  167. package/dist/{types-CjRwmCRP.d.ts → types-DF8JYEf5.d.ts} +2 -2
  168. package/dist/vue/index.d.ts +5 -5
  169. package/dist/{watch-topic-BaMZX139.d.ts → watch-topic-1zIAtiNM.d.ts} +1 -1
  170. package/dist/workflow-sdk/world/index.js +1 -1
  171. package/dist/{workflow-sdk-CE8sEK57.js → workflow-sdk-CaEw822d.js} +25 -4
  172. package/dist/yjs/index.d.ts +1 -1
  173. package/dist/yjs/index.js +1 -1
  174. package/package.json +11 -1
  175. package/schemas/config-v1.json +42 -0
  176. package/dist/cli/add-Bf1fyCWm.js +0 -1
  177. package/dist/cli/env-xhwXk5Ri.js +0 -1
  178. package/dist/cli/in-stack-diff-DQTW53Vf.js +0 -257
  179. package/dist/cli/powersync-Dq-txa0_.js +0 -1
  180. package/dist/cli/seed-CO3j_bly.js +0 -1
@@ -3,8 +3,8 @@ import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
3
3
  import { l as PublicEnv } from "./index-NRMMhhEi.js";
4
4
  import { g as SessionEncoding } from "./resolve-Bj1qD7Dy.js";
5
5
  import { t as BetterSupabase } from "./define-BLP6XtoL.js";
6
- import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-Bw7uxPd_.js";
7
- import { i as BindClientOptions, r as BetterClient } from "./bind-vKDmdu_4.js";
6
+ import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-DP0bthUk.js";
7
+ import { i as BindClientOptions, r as BetterClient } from "./bind-C54jD0r3.js";
8
8
  import { n as FunctionContract } from "./function-contract-DxFNOmsm.js";
9
9
  import { FunctionInvokeOptions, SupabaseClient, SupabaseClientOptions } from "@supabase/supabase-js";
10
10
  //#region src/client/functions.d.ts
@@ -1,8 +1,8 @@
1
1
  import { E as AccessPolicySql } from "./types-DFdg_4yN.js";
2
- import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-BJV2i8xB.js";
2
+ import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-BCG1v0iC.js";
3
3
  import { nt as ReadSet } from "./define-BLP6XtoL.js";
4
- import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-BJoHD20l.js";
5
- import { t as SubjectConfig } from "./subjects-NomQg6Eg.js";
4
+ import { Dr as AppTableConfig, R as TableGrant, Ur as CatalogPolicy, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, o as BlockSqlContractFunction, un as ResolvedConfig, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-BFEX0b7H.js";
5
+ import { t as SubjectConfig } from "./subjects-BYCL-6hA.js";
6
6
  //#region src/sql/render.d.ts
7
7
  /** A module's SQL for `layout`, without header; `undefined` in custom mode. */
8
8
  declare function moduleBody(name: string, layout?: BlockSqlLayout): string | undefined;
@@ -157,7 +157,7 @@ interface BlockSqlPermissionKey {
157
157
  * check, after `blocks.<module>.permissions` overrides. Modules in custom mode
158
158
  * are skipped, and so is `invitations.invitePlatform` without platform roles.
159
159
  */
160
- declare function modulePermissionKeys(config: AnyBlocksConfig, names: readonly string[]): BlockSqlPermissionKey[];
160
+ declare function modulePermissionKeys(config: AnyBlocksConfig, names: readonly string[], subjects?: BlockSqlLayout["subjects"]): BlockSqlPermissionKey[];
161
161
  interface BlockSqlExtension {
162
162
  readonly name: string;
163
163
  readonly statement: string;
@@ -251,7 +251,7 @@ declare function moduleWritesText(module: string, logical: string, column: strin
251
251
  * `ownTables` lists it or `blocks.<name>.on` names it, with the columns their
252
252
  * SQL names: mapped to `null` and unused optional columns are left out.
253
253
  */
254
- declare function adoptedTables(modules: AnyBlocksConfig, ownTables?: Readonly<Record<string, string>>, views?: Pick<BlockSqlLayout, "ownViews" | "ownColumns">): readonly AdoptedTable[];
254
+ declare function adoptedTables(modules: AnyBlocksConfig, ownTables?: Readonly<Record<string, string>>, views?: Pick<BlockSqlLayout, "ownViews" | "ownColumns" | "subjects">): readonly AdoptedTable[];
255
255
  /**
256
256
  * The columns the modules write on the app's other tables (`appSubjectTables`,
257
257
  * such as a tag link table) that those tables lack, and the enum columns they
@@ -260,7 +260,7 @@ declare function adoptedTables(modules: AnyBlocksConfig, ownTables?: Readonly<Re
260
260
  */
261
261
  declare function adoptedColumnProblems(modules: AnyBlocksConfig, files: readonly {
262
262
  readonly text: string;
263
- }[], schemas: readonly string[], ownTables?: Readonly<Record<string, string>>): readonly string[];
263
+ }[], schemas: readonly string[], ownTables?: Readonly<Record<string, string>>, subjects?: BlockSqlLayout["subjects"]): readonly string[];
264
264
  /** A block table mapped to a view of the app's. */
265
265
  interface AdoptedView {
266
266
  readonly module: string;
@@ -359,83 +359,6 @@ declare function tenantsQuery(layout: BlockSqlLayout, installed: readonly string
359
359
  */
360
360
  declare function subjectColumns(entry: SubjectConfig, tenant?: string): readonly (readonly [path: string, column: string])[];
361
361
  //#endregion
362
- //#region src/sql/schema-scan.d.ts
363
- /** Privileges one role gets on a table, from the policies that name it. */
364
- interface PolicyGrant {
365
- /** `schema.table`, unquoted; an unqualified name is in `public`. */
366
- readonly table: string;
367
- readonly role: "anon" | "authenticated";
368
- readonly privileges: readonly ("select" | "insert" | "update" | "delete")[];
369
- }
370
- /**
371
- * The tables `files` create (`create table`), as `schema.table`, in the order
372
- * they first appear. Only tables in `schemas` are kept.
373
- */
374
- declare function declaredTables(files: readonly {
375
- readonly text: string;
376
- }[], schemas: readonly string[]): string[];
377
- /** A view the app's files create. */
378
- interface DeclaredView {
379
- /** Its columns, or `undefined` when they can't be read (`select *`). */
380
- readonly columns: readonly string[] | undefined;
381
- /** Whether `insert`, `update` and `delete` reach the table under it. */
382
- readonly updatable: boolean;
383
- }
384
- /**
385
- * The views and materialized views `files` create, as `schema.view`, with their
386
- * columns and whether they are auto-updatable. A later `drop view` removes one.
387
- * Only views in `schemas` are kept.
388
- */
389
- declare function declaredViews(files: readonly {
390
- readonly text: string;
391
- }[], schemas: readonly string[]): ReadonlyMap<string, DeclaredView>;
392
- /**
393
- * The tables in `schemas` that `files` leave with row level security on: `alter
394
- * table ... enable row level security`, until a later `disable` or `drop
395
- * table`.
396
- */
397
- declare function rlsTables(files: readonly {
398
- readonly text: string;
399
- }[], schemas: readonly string[]): string[];
400
- /**
401
- * Columns each `create table` in `files` declares, as `schema.table` to
402
- * unquoted names. `like` and table constraints are skipped. Only tables in
403
- * `schemas` are kept.
404
- */
405
- declare function declaredTableColumns(files: readonly {
406
- readonly text: string;
407
- }[], schemas: readonly string[]): ReadonlyMap<string, ReadonlySet<string>>;
408
- /**
409
- * The declared type of each column of each `create table` in `files`, as
410
- * `schema.table` to unquoted column name to type. A type is lower-cased with
411
- * its spacing normalised, and a quoted part keeps its case without quotes. Only
412
- * tables in `schemas` are kept.
413
- */
414
- declare function declaredColumnTypes(files: readonly {
415
- readonly text: string;
416
- }[], schemas: readonly string[]): ReadonlyMap<string, ReadonlyMap<string, string>>;
417
- /**
418
- * The privileges the permissive policies in `files` imply, per table and role:
419
- * `for all` gives the four commands, `to public` (or no `to`) counts for
420
- * `authenticated` only, so `anon` needs a policy that names it. Restrictive
421
- * policies grant nothing. Only tables in `schemas` are kept.
422
- */
423
- declare function policyGrants(files: readonly {
424
- readonly text: string;
425
- }[], schemas: readonly string[]): PolicyGrant[];
426
- declare function extensionSchema(sources: readonly {
427
- readonly text: string;
428
- }[], extension: string): string | undefined;
429
- /**
430
- * The update trigger that keeps `updated_at` current on each table in `schemas`
431
- * the files create one on, by `schema.table`: its function is named like one
432
- * (`set_updated_at`, `moddatetime`, `touch_*`) or the files define it with
433
- * `new.updated_at :=`. Block triggers (`bsb_*`) don't count.
434
- */
435
- declare function declaredUpdatedAtTriggers(files: readonly {
436
- readonly text: string;
437
- }[], schemas: readonly string[]): Readonly<Record<string, string>>;
438
- //#endregion
439
362
  //#region src/core/access-sql.d.ts
440
363
  /** The Postgres types a scope's ids can have. */
441
364
  declare const SCOPE_ID_TYPES: readonly string[];
@@ -532,40 +455,9 @@ declare const scopePolicyName: (table: {
532
455
  readonly enrich?: unknown;
533
456
  }, command: string) => string;
534
457
  //#endregion
535
- //#region src/sql/tenant-scope.d.ts
536
- /**
537
- * The restrictive policy that keeps each organization's rows apart (ADR 0099).
538
- * Postgres combines permissive policies with `or`, so any permissive policy the
539
- * app adds would widen a block's; a restrictive one is combined with `and`, so
540
- * no permissive policy reaches past it.
541
- */
542
- declare const TENANT_SCOPE_POLICY = "bsb_tenant_scope";
543
- //#endregion
544
- //#region src/sql/policy-cover.d.ts
545
- type PolicyCommand$1 = "select" | "insert" | "update" | "delete";
546
- /**
547
- * The commands `block` grants beyond the app's permissive policies: the app has
548
- * a policy for the command and none of them covers the block's. A command the
549
- * app has no policy for is the block's to grant.
550
- */
551
- declare function widenedCommands(block: CatalogPolicy, apps: readonly CatalogPolicy[]): PolicyCommand$1[];
552
- declare function appTablePolicyNotes(sql: string): {
553
- readonly table: string;
554
- readonly policy: string;
555
- readonly commands: readonly PolicyCommand$1[];
556
- }[];
557
- /**
558
- * The policies `sources` leave on each `schema.table` in `schemas`, in order: a
559
- * later `drop policy` removes one, and a later `create policy` of the same name
560
- * replaces it.
561
- */
562
- declare function declaredPolicies(sources: readonly {
563
- readonly text: string;
564
- }[], schemas: readonly string[]): Record<string, CatalogPolicy[]>;
565
- //#endregion
566
458
  //#region src/sql/policy.d.ts
567
459
  /** A command a policy applies to. */
568
- type PolicyCommand = "all" | "select" | "insert" | "update" | "delete";
460
+ type PolicyCommand$1 = "all" | "select" | "insert" | "update" | "delete";
569
461
  /**
570
462
  * One row level security policy (ADR 0103). `table` is `schema.table`,
571
463
  * unquoted; a name without a schema is in `public`. `roles` lists the roles it
@@ -574,7 +466,7 @@ type PolicyCommand = "all" | "select" | "insert" | "update" | "delete";
574
466
  interface Policy {
575
467
  readonly table: string;
576
468
  readonly name: string;
577
- readonly command: PolicyCommand;
469
+ readonly command: PolicyCommand$1;
578
470
  readonly roles: readonly string[];
579
471
  readonly permissive: boolean;
580
472
  readonly using: string | null;
@@ -584,13 +476,16 @@ interface Policy {
584
476
  interface PolicyInput {
585
477
  readonly table: string;
586
478
  readonly name: string;
587
- readonly command?: PolicyCommand;
479
+ readonly command?: PolicyCommand$1;
588
480
  readonly roles?: readonly string[];
589
481
  readonly permissive?: boolean;
590
482
  readonly using?: string | null;
591
483
  readonly check?: string | null;
592
484
  }
593
- /** A policy with the defaults Postgres uses: `for all to public`, permissive. */
485
+ /**
486
+ * A policy with the defaults Postgres uses: `for all to public`, permissive. A
487
+ * `name` in double quotes is unquoted, so `sqlIdent(name)` works as a name.
488
+ */
594
489
  declare function policy(input: PolicyInput): Policy;
595
490
  /** The catalog shape of `policy`, without its table. */
596
491
  declare function catalogPolicy(entry: Policy): CatalogPolicy;
@@ -644,6 +539,39 @@ interface Grant {
644
539
  /** The table grants of `sql`, read past comments, strings and dollar quotes. */
645
540
  declare function readGrants(sql: string): Grant[];
646
541
  //#endregion
542
+ //#region src/sql/tenant-scope.d.ts
543
+ /**
544
+ * The restrictive policy that keeps each organization's rows apart (ADR 0099).
545
+ * Postgres combines permissive policies with `or`, so any permissive policy the
546
+ * app adds would widen a block's; a restrictive one is combined with `and`, so
547
+ * no permissive policy reaches past it.
548
+ */
549
+ declare const TENANT_SCOPE_POLICY = "bsb_tenant_scope";
550
+ /** Every name the tenant scope policies of a table carry. */
551
+ declare const TENANT_SCOPE_NAMES: readonly string[];
552
+ //#endregion
553
+ //#region src/sql/policy-cover.d.ts
554
+ type PolicyCommand = "select" | "insert" | "update" | "delete";
555
+ /**
556
+ * The commands `block` grants beyond the app's permissive policies: the app has
557
+ * a policy for the command and none of them covers the block's. A command the
558
+ * app has no policy for is the block's to grant.
559
+ */
560
+ declare function widenedCommands(block: CatalogPolicy, apps: readonly CatalogPolicy[]): PolicyCommand[];
561
+ declare function appTablePolicyNotes(sql: string): {
562
+ readonly table: string;
563
+ readonly policy: string;
564
+ readonly commands: readonly PolicyCommand[];
565
+ }[];
566
+ /**
567
+ * The policies `sources` leave on each `schema.table` in `schemas`, in order: a
568
+ * later `drop policy` removes one, and a later `create policy` of the same name
569
+ * replaces it.
570
+ */
571
+ declare function declaredPolicies(sources: readonly {
572
+ readonly text: string;
573
+ }[], schemas: readonly string[]): Record<string, CatalogPolicy[]>;
574
+ //#endregion
647
575
  //#region src/sql/policy-rule.d.ts
648
576
  /** A comparison a rule can make against a column. */
649
577
  type RuleOperator = "=" | "<>" | "<" | "<=" | ">" | ">=";
@@ -741,4 +669,61 @@ interface PolicyFunctionsOptions {
741
669
  */
742
670
  declare function policyFunctionsSql(options?: PolicyFunctionsOptions): string;
743
671
  //#endregion
744
- export { extensionSchema as $, renderBlocks as $t, declaredPolicies as A, modulePermissionKeys as At, migrationOptionUses as B, entityRenamePlan as Bt, maskSql as C, instanceFunctions as Ct, readPolicy as D, BlockSqlPermissionKey as Dt, readPolicies as E, BlockSqlExtension as Et, CompiledReadSet as F, sameBlockFile as Ft, templateFunctions as G, BlockSqlUpgradePlan as Gt, SCOPE_ID_TYPES as H, currentBlockName as Ht, compileReadSet as I, moduleDataDir as It, declaredColumnTypes as J, upgradePlan as Jt, DeclaredView as K, InstalledBlock as Kt, compileReadSets as L, moduleFilePaths as Lt, TENANT_SCOPE_POLICY as M, blockFileState as Mt, scopePolicyName as N, isModuleDataFile as Nt, renderPolicy as O, moduleEventTriggers as Ot, hasColumnAccess as P, moduleFileVersion as Pt, declaredViews as Q, moduleTopics as Qt, sharedRolesProblems as R, EntityRenamePlan as Rt, catalogPolicy as S, DEFAULT_ROLES as St, readGrants as T, resolveBlocks as Tt, resolveProviderSql as U, formerBlockName as Ut, moduleLayout as V, BLOCK_RENAMES as Vt, scopeProblems as W, renamedBlock as Wt, declaredTables as X, customContracts as Xt, declaredTableColumns as Y, BlockSqlTopic as Yt, declaredUpdatedAtTriggers as Z, moduleBody as Zt, Policy as _, adoptedViews as _t, RuleOperator as a, expiredFlagsQuery as at, ReadPolicy as b, APP_TABLES_MODULE as bt, RuleValue as c, DataExportPlan as ct, policyFunctionsSql as d, excludedColumns as dt, policyGrants as et, readRulePolicies as f, resolveExposeColumns as ft, Grant as g, adoptedTables as gt, rulePolicy as h, adoptedColumnProblems as ht, Rule as i, tenantsQuery as it, widenedCommands as j, moduleSchemaExtensions as jt, appTablePolicyNotes as k, moduleHidingColumns as kt, disallowedPolicyCalls as l, SECRET_COLUMNS as lt, renderRulePolicy as m, AdoptedView as mt, PolicyFunctionsOptions as n, subjectColumns as nt, RulePolicy as o, sameTenantColumn as ot, renderRule as p, AdoptedTable as pt, PolicyGrant as q, moduleDeprecations as qt, ReadRulePolicy as r, TenantQuery as rt, RulePolicyInput as s, sameTenantTrigger as st, POLICY_FUNCTIONS as t, rlsTables as tt, isRule as u, dataExportPlan as ut, PolicyCommand as v, moduleWritesText as vt, policy as w, SQL_MODULES as wt, RenderPolicyOptions as x, appTablesFiles as xt, PolicyInput as y, APP_TABLES_MARKER as yt, MigrationOptionUse as z, EntityRenameStep as zt };
672
+ //#region src/sql/bsb-tags.d.ts
673
+ /**
674
+ * One `@bsb` feature: `subject title=number` is `{ name: "subject", args: {
675
+ * title: "number" } }`.
676
+ */
677
+ interface BsbTag {
678
+ readonly name: string;
679
+ /** `key=value` pairs; a bare word is `true`. */
680
+ readonly args: Readonly<Record<string, string | true>>;
681
+ }
682
+ interface BsbComment {
683
+ /** The comment's free text, without the tag block. */
684
+ readonly text: string;
685
+ readonly tags: readonly BsbTag[];
686
+ }
687
+ /**
688
+ * Splits a table comment into its free text and its `@bsb` tags (ADR 0102). The
689
+ * tag block starts at `@bsb` and runs to the end of the comment; tags are
690
+ * separated by `;`. A comment without `@bsb` is all text.
691
+ */
692
+ declare function parseBsbComment(comment: string | null): BsbComment;
693
+ /** The comment `parseBsbComment` reads back: the text, then `@bsb` and the tags. */
694
+ declare function formatBsbComment(comment: BsbComment): string;
695
+ /**
696
+ * `comment` with the tag `name` set to `tag` (replacing a tag of that name), or
697
+ * removed when `tag` is undefined. The free text stays as it is.
698
+ */
699
+ declare function setBsbTag(comment: string | null, name: string, tag: BsbTag | undefined): string;
700
+ /** The `comment on table` statement for `table` (already quoted) and `comment`. */
701
+ declare function commentOnTableSql(table: string, comment: string): string;
702
+ //#endregion
703
+ //#region src/sql/table-features.d.ts
704
+ /** The per-table features a `@bsb` tag turns on (ADR 0102). */
705
+ declare const TABLE_FEATURES: readonly ["realtime", "audit", "audit-reads", "subject", "json", "expose", "encrypted", "server", "events", "vector-search"];
706
+ type TableFeature = (typeof TABLE_FEATURES)[number];
707
+ declare function isTableFeature(value: string): value is TableFeature;
708
+ /** Whether `sql` creates `table`, in `schema` or unqualified. */
709
+ declare function createsTable(sql: string, schema: string, table: string): boolean;
710
+ /** The features the table's comment turns on, in `sql`. */
711
+ declare function tableFeatures(sql: string, schema: string, table: string): readonly string[];
712
+ /**
713
+ * `sql` with the `@bsb` tag `feature` on or off in `table`'s comment. The
714
+ * comment statement is rewritten in place, or appended when the file has none;
715
+ * the free text stays. Returns `sql` unchanged when the feature is already in
716
+ * the wanted state.
717
+ */
718
+ declare function setTableFeature(sql: string, schema: string, table: string, feature: TableFeature, enabled: boolean, tag?: BsbTag): string;
719
+ /**
720
+ * The `@bsb` table comments in `sql`, with an unqualified table in `public`.
721
+ * Comments without tags are left out.
722
+ */
723
+ declare function tableTagComments(sql: string): {
724
+ schema: string;
725
+ name: string;
726
+ comment: string;
727
+ }[];
728
+ //#endregion
729
+ export { MigrationOptionUse as $, BlockSqlTopic as $t, declaredPolicies as A, BlockSqlExtension as At, catalogPolicy as B, moduleDataDir as Bt, isRule as C, APP_TABLES_MARKER as Ct, renderRulePolicy as D, instanceFunctions as Dt, renderRule as E, DEFAULT_ROLES as Et, Policy as F, moduleSchemaExtensions as Ft, readPolicy as G, BLOCK_RENAMES as Gt, policy as H, EntityRenamePlan as Ht, PolicyCommand$1 as I, blockFileState as It, hasColumnAccess as J, renamedBlock as Jt, renderPolicy as K, currentBlockName as Kt, PolicyInput as L, isModuleDataFile as Lt, TENANT_SCOPE_NAMES as M, moduleEventTriggers as Mt, TENANT_SCOPE_POLICY as N, moduleHidingColumns as Nt, rulePolicy as O, SQL_MODULES as Ot, Grant as P, modulePermissionKeys as Pt, sharedRolesProblems as Q, upgradePlan as Qt, ReadPolicy as R, moduleFileVersion as Rt, disallowedPolicyCalls as S, moduleWritesText as St, readRulePolicies as T, appTablesFiles as Tt, readGrants as U, EntityRenameStep as Ut, maskSql as V, moduleFilePaths as Vt, readPolicies as W, entityRenamePlan as Wt, compileReadSet as X, InstalledBlock as Xt, CompiledReadSet as Y, BlockSqlUpgradePlan as Yt, compileReadSets as Z, moduleDeprecations as Zt, Rule as _, AdoptedTable as _t, setTableFeature as a, templateFunctions as at, RulePolicyInput as b, adoptedTables as bt, BsbComment as c, tenantsQuery as ct, formatBsbComment as d, sameTenantTrigger as dt, customContracts as en, migrationOptionUses as et, parseBsbComment as f, DataExportPlan as ft, ReadRulePolicy as g, resolveExposeColumns as gt, PolicyFunctionsOptions as h, excludedColumns as ht, isTableFeature as i, scopeProblems as it, widenedCommands as j, BlockSqlPermissionKey as jt, appTablePolicyNotes as k, resolveBlocks as kt, BsbTag as l, expiredFlagsQuery as lt, POLICY_FUNCTIONS as m, dataExportPlan as mt, TableFeature as n, moduleTopics as nn, SCOPE_ID_TYPES as nt, tableFeatures as o, subjectColumns as ot, setBsbTag as p, SECRET_COLUMNS as pt, scopePolicyName as q, formerBlockName as qt, createsTable as r, renderBlocks as rn, resolveProviderSql as rt, tableTagComments as s, TenantQuery as st, TABLE_FEATURES as t, moduleBody as tn, moduleLayout as tt, commentOnTableSql as u, sameTenantColumn as ut, RuleOperator as v, AdoptedView as vt, policyFunctionsSql as w, APP_TABLES_MODULE as wt, RuleValue as x, adoptedViews as xt, RulePolicy as y, adoptedColumnProblems as yt, RenderPolicyOptions as z, sameBlockFile as zt };
@@ -168,7 +168,7 @@ const PRESET_CATALOG = {
168
168
  "title": "Realtime table changes",
169
169
  "category": "database",
170
170
  "requires": [],
171
- "integrates": [],
171
+ "integrates": ["memberships"],
172
172
  "manifest": "realtime-tables"
173
173
  },
174
174
  {
@@ -1,10 +1,10 @@
1
- import { t as VERSION } from "../cli/version-Bhca9D6q.js";
2
- import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-1TfBy2K4.js";
3
- import { t as loadSnapshot } from "../cli/snapshot-DdN5GlhH.js";
4
- import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-DWRz-uPQ.js";
5
- import { i as discoverConfig, s as loadConfig } from "../cli/config-BVfeG3A5.js";
6
- import { i as parseEnv, n as configEnvironment } from "../cli/env-DMgjB_4y.js";
7
- import { s as schemaStampPath } from "../cli/content-mapper-hUW2nb92.js";
1
+ import { t as VERSION } from "../cli/version-C5RAWmrD.js";
2
+ import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-Czfw7Iow.js";
3
+ import { t as loadSnapshot } from "../cli/snapshot-DdAP7LWO.js";
4
+ import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-DUNJ4Pss.js";
5
+ import { i as discoverConfig, s as loadConfig } from "../cli/config-KvV-sLZL.js";
6
+ import { i as parseEnv, n as configEnvironment } from "../cli/env-BK0xKMeU.js";
7
+ import { s as schemaStampPath } from "../cli/content-mapper-ez_mT0d4.js";
8
8
  import { existsSync, realpathSync } from "node:fs";
9
9
  import { basename, dirname, join, resolve } from "node:path";
10
10
  import { createHash } from "node:crypto";
@@ -1,5 +1,5 @@
1
1
  import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
2
- import { t as OperationTable } from "../operations-CPhOcuzl.js";
2
+ import { t as OperationTable } from "../operations-DE7SOBw-.js";
3
3
  import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
4
4
  import { t as BetterSupabase } from "../define-BLP6XtoL.js";
5
5
  import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BlDiY-ya.js";
@@ -8,15 +8,15 @@ import { n as Impersonator } from "../impersonation-YTa9dZUv.js";
8
8
  import { n as AmrEntry, t as Aal } from "../mfa-oIOYTpvc.js";
9
9
  import { S as BlockClientSource, on as RecordBindingOptions } from "../define-block-DibVN37N.js";
10
10
  import { M as BindingName, N as BindingOf, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "../index-BfYDY6eh.js";
11
- import { t as tenantOf } from "../tenant-BRmKZ7aq.js";
11
+ import { t as tenantOf } from "../tenant-CyLEXgot.js";
12
12
  import { n as toSession, t as AuthSession } from "../view-BvNA7EOC.js";
13
13
  import { a as SupportPolicy, c as supportSessions, i as SupportOptions, o as SupportSessions, s as SupportStartRequest, t as ActiveSupport } from "../support-D7CMbhRT.js";
14
14
  import { t as AuthOutageHook } from "../session-BGP98Rgj.js";
15
15
  import { n as AuthKind, r as GuardOptions } from "../respond-BzRG-0qc.js";
16
16
  import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, r as ActionResult, t as ActionInput } from "../kit-Dxx3MT8m.js";
17
17
  import { c as ListParseOptions, m as ListSearchParams } from "../list-query-XHoYDlRN.js";
18
- import { r as LiveCountSeed, t as CountRunner } from "../index-CbUCGMqj.js";
19
- import { r as MembershipClaim } from "../entitlements-CsZcfllV.js";
18
+ import { r as LiveCountSeed, t as CountRunner } from "../index-CAY7rIQs.js";
19
+ import { r as MembershipClaim } from "../entitlements-Y-n4RGAd.js";
20
20
  import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-D5WEvYtV.js";
21
21
  import { t as ResourceMap } from "../resources-CsZ7RhZC.js";
22
22
  import { t as defineAction } from "../resource-execute-BSTIfp1D.js";
@@ -1,4 +1,4 @@
1
- import { r as AuthorizationOperation } from "./authorization-BJV2i8xB.js";
1
+ import { r as AuthorizationOperation } from "./authorization-BCG1v0iC.js";
2
2
  //#region src/core/operations.d.ts
3
3
  /** Operations by name, as `authorization.operations` or a module's own defaults. */
4
4
  type OperationTable = Readonly<Record<string, AuthorizationOperation>>;
@@ -7,7 +7,9 @@ const employeesSqlOptions = blockOptions({
7
7
  contractExtraColumns: option.extraColumns(),
8
8
  name: option.string({ default: "single" }),
9
9
  privateDetails: option.string({ default: "json" }),
10
- contracts: option.string({ default: "append" })
10
+ contracts: option.string({ default: "append" }),
11
+ salaryUnits: option.string({ default: "minor" }),
12
+ contractOverlap: option.string({ default: "end" })
11
13
  });
12
14
  //#endregion
13
15
  export { employeesSqlOptions as t };
@@ -3,7 +3,8 @@ import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
3
3
  const tasksSqlOptions = blockOptions({
4
4
  prefix: option.string({ default: "TASK-" }),
5
5
  maxAssignees: option.number({ default: 0 }),
6
- extraColumns: option.extraColumns()
6
+ extraColumns: option.extraColumns(),
7
+ authorCanDelete: option.boolean({ default: true })
7
8
  });
8
9
  //#endregion
9
10
  export { tasksSqlOptions as t };
@@ -2,7 +2,9 @@ import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
2
2
  //#region src/blocks/custom-fields/options.ts
3
3
  const customFieldsSqlOptions = blockOptions({
4
4
  layout: option.string({ default: "normalized" }),
5
- auditReads: option.boolean({ default: false })
5
+ auditReads: option.boolean({ default: false }),
6
+ rankType: option.string({ default: "text" }),
7
+ readAccess: option.string({ default: "tenant" })
6
8
  });
7
9
  //#endregion
8
10
  export { customFieldsSqlOptions as t };
@@ -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.25.0");
43
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.28.0");
44
44
  let histogram;
45
- if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.25.0")).createHistogram("db.client.operation.duration", {
45
+ if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.28.0")).createHistogram("db.client.operation.duration", {
46
46
  unit: "s",
47
47
  description: "Duration of database client operations.",
48
48
  advice: { explicitBucketBoundaries: [
@@ -219,7 +219,7 @@ function otel(options = {}) {
219
219
  * `betterSupabase.events`. Returns a function that stops listening.
220
220
  */
221
221
  function traceAuth(betterSupabase, options = {}) {
222
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.25.0");
222
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.28.0");
223
223
  const offAuth = betterSupabase.events.on("auth", (event) => {
224
224
  const span = tracer.startSpan("auth.resolve", {
225
225
  kind: SpanKind.INTERNAL,
@@ -257,7 +257,7 @@ function traceAuth(betterSupabase, options = {}) {
257
257
  * an error status. Returns a function that stops listening.
258
258
  */
259
259
  function traceBlockEvents(betterSupabase, options = {}) {
260
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.25.0");
260
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.28.0");
261
261
  return betterSupabase.events.on("block", (event) => {
262
262
  const attributes = {
263
263
  ...options.attributes,
@@ -1,5 +1,5 @@
1
1
  import { t as AsyncResult } from "./result-DZeA5KS6.js";
2
- import { n as TopicPort } from "./watch-topic-BaMZX139.js";
2
+ import { n as TopicPort } from "./watch-topic-1zIAtiNM.js";
3
3
  import { SupabaseClient } from "@supabase/supabase-js";
4
4
  //#region src/client/ports.d.ts
5
5
  /**
@@ -2,8 +2,8 @@ import { f as Result } from "../result-DZeA5KS6.js";
2
2
  import { Bt as Executor } from "../types-DFdg_4yN.js";
3
3
  import { t as BlockTransport } from "../block-transport-DWZSJrwN.js";
4
4
  import { C as UploadRouteOptions, E as uploadRoute, S as UploadRoute, T as uploadOutcome, _ as UploadConnectorOptions, b as UploadOutcome, c as LocalTablesOption, d as CreateUploadRepository, f as CrudEntryLike, g as UploadConnector, h as RejectedStore, m as RejectedChange, n as DataEngine, p as CrudQueueLike, s as LiveEngineOptions, v as UploadErrorContext, w as createUploadConnector, x as UploadRepository, y as UploadFunction } from "../data-engine-BWoz9lED.js";
5
- import { n as TopicPort } from "../watch-topic-BaMZX139.js";
6
- import { t as AuthSnapshot } from "../bind-vKDmdu_4.js";
5
+ import { n as TopicPort } from "../watch-topic-1zIAtiNM.js";
6
+ import { t as AuthSnapshot } from "../bind-C54jD0r3.js";
7
7
  import { C as quoteSqliteIdent, S as likeToGlob, _ as SqliteQuery, a as postgrestTimestamp, b as SqliteValue, c as sqliteCompiler, d as SqliteDecode, f as SqliteInsertPlan, g as SqlitePlan, h as SqliteNested, i as fromSqliteError, l as SqliteColumn, m as SqliteKeys, n as SqliteDatabaseLike, o as CheckSqliteOptions, p as SqliteKeyedPlan, r as SqliteExecutorOptions, s as checkSqlite, t as SqliteContextLike, u as SqliteCompilerOptions, v as SqliteReturning, w as sqliteValue, x as compileSqlite, y as SqliteSelectPlan } from "../executor-DNPm13a9.js";
8
8
  //#region src/powersync/sync.d.ts
9
9
  /** The part of PowerSync's `SyncStatus` the engine reads. */
@@ -1,4 +1,4 @@
1
- import { Bn as PRESETS, Ci as presetValueLabel, Ct as ResolvedPresetBlock, Et as resolvePreset, Fn as presetFromSpec, Gn as defaultPreset, Hn as PRESET_NAMES, In as presetOfSpec, Kn as isPresetName, Ln as presetSpec, Pn as PresetSpec, Rn as DEFAULT_PRESET_NAME, Si as presetField, St as ResolvedPreset, Tt as presetBlockConflict, Un as PresetGroup, Vn as PRESET_GROUPS, Wn as PresetName, _i as PresetFramework, _t as expandPreset, ai as PresetCatalogManifest, bi as PresetValueInfo, bt as PresetConflict, ci as DEFAULT_CONVENTIONS, di as Preset, ei as CORE_BLOCKS, er as APP_COLUMN_FORMATS, fi as PresetAccess, gi as PresetFieldValue, gt as conventionConfig, hi as PresetFieldKey, ht as PresetInput, ii as PresetCatalogBlock, li as PRESET_FRAMEWORKS, mi as PresetField, mt as ExpandedConfig, ni as instancePrefix, oi as PresetGlueItem, pi as PresetConventions, pt as ConfigConventions, qn as namedPreset, ri as PresetCatalog, si as CONVENTION_FIELDS, sr as AppColumnFormat, ti as INSTANCE_NAME, ui as PRESET_TENANT_NAMES, vi as PresetPlatforms, vt as presetConfig, wt as listNames, xi as integrationsForFramework, xt as PresetIntegration, yi as PresetScope, yt as presetOf, zn as NamedPreset } from "../context-BJoHD20l.js";
2
- import { $ as readDesignFile, A as DesignFile, B as designFileSource, C as diffAppTables, D as DESIGN_FILE, E as CreateDesign, F as MAX_DESIGN_CODE_LENGTH, G as isDesignCode, H as designOf, I as createQuery, J as presetApplyCommand, K as parseDesign, L as createUrl, M as DesignParseIssue, N as DesignParseResult, O as DESIGN_FORMAT, P as DesignTooLongError, Q as presetKey, R as decodeDesign, S as DiffOptions, T as CREATE_URL, U as designSchema, V as designFormat, W as encodeDesign, X as presetConfigSource, Y as presetArgumentOf, Z as presetInstallCommand, _ as glueCommand, a as blockRequires, b as DesignChange, c as installedBlocks, d as instancesOf, et as safeDesignFileSource, f as presetInstances, g as PROVIDER_COMMENT, h as withoutInstance, i as blockEntities, it as PRESET_CATALOG, j as DesignParseError, k as DesignErrorCode, l as instanceBlock, m as withInstance, n as BlockInstance, nt as appDefaultError, o as canAddInstance, p as withEntityName, q as presetAndDesignOf, r as PresetInstance, rt as isAppDefault, s as entityName, t as BlockEntity, tt as safeParseDesign, u as instanceNameProblem, v as presetBlocksSource, w as diffDesigns, x as DesignChangeKind, y as presetGlue, z as designConfig } from "../index-Cagz4Z2k.js";
3
- import { i as appReservedColumns, n as appIdentifierError, r as appNameLengthError, t as APP_NAME_MAX } from "../app-tables-xij_MI5H.js";
1
+ import { $n as PRESET_GROUPS, Ai as PresetPlatforms, At as presetConfig, Ci as Preset, Di as PresetFieldKey, Dt as PresetInput, Ei as PresetField, Et as ExpandedConfig, Fi as presetValueLabel, Ft as ResolvedPresetBlock, It as listNames, Jn as presetOfSpec, Kn as PresetSpec, Lt as presetBlockConflict, Mi as PresetValueInfo, Mt as PresetConflict, Ni as integrationsForFramework, Nt as PresetIntegration, Oi as PresetFieldValue, Ot as conventionConfig, Pi as presetField, Pt as ResolvedPreset, Qn as PRESETS, Rt as resolvePreset, Si as PRESET_TENANT_NAMES, Ti as PresetConventions, Tt as ConfigConventions, Xn as DEFAULT_PRESET_NAME, Yn as presetSpec, Zn as NamedPreset, _i as PresetCatalogManifest, ar as namedPreset, bi as DEFAULT_CONVENTIONS, er as PRESET_NAMES, fi as CORE_BLOCKS, fr as APP_COLUMN_FORMATS, gi as PresetCatalogBlock, hi as PresetCatalog, ir as isPresetName, ji as PresetScope, jt as presetOf, ki as PresetFramework, kt as expandPreset, mi as instancePrefix, nr as PresetName, pi as INSTANCE_NAME, qn as presetFromSpec, rr as defaultPreset, tr as PresetGroup, vi as PresetGlueItem, wi as PresetAccess, xi as PRESET_FRAMEWORKS, yi as CONVENTION_FIELDS, yr as AppColumnFormat } from "../context-BFEX0b7H.js";
2
+ import { $ as readDesignFile, A as DesignFile, B as designFileSource, C as diffAppTables, D as DESIGN_FILE, E as CreateDesign, F as MAX_DESIGN_CODE_LENGTH, G as isDesignCode, H as designOf, I as createQuery, J as presetApplyCommand, K as parseDesign, L as createUrl, M as DesignParseIssue, N as DesignParseResult, O as DESIGN_FORMAT, P as DesignTooLongError, Q as presetKey, R as decodeDesign, S as DiffOptions, T as CREATE_URL, U as designSchema, V as designFormat, W as encodeDesign, X as presetConfigSource, Y as presetArgumentOf, Z as presetInstallCommand, _ as glueCommand, a as blockRequires, b as DesignChange, c as installedBlocks, d as instancesOf, et as safeDesignFileSource, f as presetInstances, g as PROVIDER_COMMENT, h as withoutInstance, i as blockEntities, it as PRESET_CATALOG, j as DesignParseError, k as DesignErrorCode, l as instanceBlock, m as withInstance, n as BlockInstance, nt as appDefaultError, o as canAddInstance, p as withEntityName, q as presetAndDesignOf, r as PresetInstance, rt as isAppDefault, s as entityName, t as BlockEntity, tt as safeParseDesign, u as instanceNameProblem, v as presetBlocksSource, w as diffDesigns, x as DesignChangeKind, y as presetGlue, z as designConfig } from "../index-8wOL81rB.js";
3
+ import { i as appReservedColumns, n as appIdentifierError, r as appNameLengthError, t as APP_NAME_MAX } from "../app-tables-62GqZIhd.js";
4
4
  export { APP_COLUMN_FORMATS, APP_NAME_MAX, type AppColumnFormat, type BlockEntity, type BlockInstance, CONVENTION_FIELDS, CREATE_URL, type ConfigConventions, type CreateDesign, DEFAULT_CONVENTIONS, DEFAULT_PRESET_NAME, DESIGN_FILE, DESIGN_FORMAT, type DesignChange, type DesignChangeKind, type DesignErrorCode, type DesignFile, DesignParseError, type DesignParseIssue, type DesignParseResult, DesignTooLongError, type DiffOptions, type ExpandedConfig, INSTANCE_NAME, MAX_DESIGN_CODE_LENGTH, type NamedPreset, PRESETS, PRESET_CATALOG, PRESET_FRAMEWORKS, PRESET_GROUPS, PRESET_NAMES, PRESET_TENANT_NAMES, PROVIDER_COMMENT, type Preset, type PresetAccess, type PresetCatalog, type PresetCatalogBlock, type PresetCatalogManifest, type PresetConflict, type PresetConventions, type PresetField, type PresetFieldKey, type PresetFieldValue, type PresetFramework, type PresetGlueItem, type PresetGroup, type PresetInput, type PresetInstance, type PresetIntegration, type PresetName, type PresetPlatforms, type PresetScope, type PresetSpec, type PresetValueInfo, type ResolvedPreset, type ResolvedPresetBlock, CORE_BLOCKS as SINGLE_INSTANCE_BLOCKS, appDefaultError, appIdentifierError, appNameLengthError, appReservedColumns, blockEntities, blockRequires, canAddInstance, conventionConfig, createQuery, createUrl, decodeDesign, defaultPreset, designConfig, designFileSource, designFormat, designOf, designSchema, diffAppTables, diffDesigns, encodeDesign, entityName, expandPreset, glueCommand, installedBlocks, instanceBlock, instanceNameProblem, instancePrefix, instancesOf, integrationsForFramework, isAppDefault, isDesignCode, isPresetName, listNames, namedPreset, parseDesign, presetAndDesignOf, presetApplyCommand, presetArgumentOf, presetBlockConflict, presetBlocksSource, presetConfig, presetConfigSource, presetField, presetFromSpec, presetGlue, presetInstallCommand, presetInstances, presetKey, presetOf, presetOfSpec, presetSpec, presetValueLabel, readDesignFile, resolvePreset, safeDesignFileSource, safeParseDesign, withEntityName, withInstance, withoutInstance };
@@ -1,4 +1,4 @@
1
- import { C as integrationsForFramework, S as PRESET_TENANT_NAMES, T as presetValueLabel, _ as isPresetName, a as presetOf, b as DEFAULT_CONVENTIONS, c as presetSpec, d as resolvePreset, f as DEFAULT_PRESET_NAME, g as defaultPreset, h as PRESET_NAMES, i as presetConfig, l as listNames, m as PRESET_GROUPS, o as presetFromSpec, p as PRESETS, r as expandPreset, s as presetOfSpec, t as conventionConfig, u as presetBlockConflict, v as namedPreset, w as presetField, x as PRESET_FRAMEWORKS, y as CONVENTION_FIELDS } from "../config-C19McoGo.js";
2
- import { D as APP_COLUMN_FORMATS, M as PRESET_CATALOG, b as isAppDefault, c as APP_NAME_MAX, d as appIdentifierError, f as appNameLengthError, i as instancePrefix, n as INSTANCE_NAME, p as appReservedColumns, t as CORE_BLOCKS, y as appDefaultError } from "../instances-qz2MCMyK.js";
3
- import { A as isDesignCode, B as safeDesignFileSource, C as decodeDesign, D as designOf, E as designFormat, F as presetArgumentOf, G as presetGlue, H as PROVIDER_COMMENT, I as presetConfigSource, L as presetInstallCommand, M as parseDesign, N as presetAndDesignOf, O as designSchema, P as presetApplyCommand, R as presetKey, S as createUrl, T as designFileSource, U as glueCommand, V as safeParseDesign, W as presetBlocksSource, _ as DESIGN_FORMAT, a as installedBlocks, b as MAX_DESIGN_CODE_LENGTH, c as instancesOf, d as withInstance, f as withoutInstance, g as DESIGN_FILE, h as CREATE_URL, i as entityName, k as encodeDesign, l as presetInstances, m as diffDesigns, n as blockRequires, o as instanceBlock, p as diffAppTables, r as canAddInstance, s as instanceNameProblem, t as blockEntities, u as withEntityName, v as DesignParseError, w as designConfig, x as createQuery, y as DesignTooLongError, z as readDesignFile } from "../preset-BbSWLoXM.js";
1
+ import { C as integrationsForFramework, S as PRESET_TENANT_NAMES, T as presetValueLabel, _ as isPresetName, a as presetOf, b as DEFAULT_CONVENTIONS, c as presetSpec, d as resolvePreset, f as DEFAULT_PRESET_NAME, g as defaultPreset, h as PRESET_NAMES, i as presetConfig, l as listNames, m as PRESET_GROUPS, o as presetFromSpec, p as PRESETS, r as expandPreset, s as presetOfSpec, t as conventionConfig, u as presetBlockConflict, v as namedPreset, w as presetField, x as PRESET_FRAMEWORKS, y as CONVENTION_FIELDS } from "../config-CvJHIy5q.js";
2
+ import { D as APP_COLUMN_FORMATS, M as PRESET_CATALOG, b as isAppDefault, c as APP_NAME_MAX, d as appIdentifierError, f as appNameLengthError, i as instancePrefix, n as INSTANCE_NAME, p as appReservedColumns, t as CORE_BLOCKS, y as appDefaultError } from "../instances-C7qUTjhJ.js";
3
+ import { A as isDesignCode, B as safeDesignFileSource, C as decodeDesign, D as designOf, E as designFormat, F as presetArgumentOf, G as presetGlue, H as PROVIDER_COMMENT, I as presetConfigSource, L as presetInstallCommand, M as parseDesign, N as presetAndDesignOf, O as designSchema, P as presetApplyCommand, R as presetKey, S as createUrl, T as designFileSource, U as glueCommand, V as safeParseDesign, W as presetBlocksSource, _ as DESIGN_FORMAT, a as installedBlocks, b as MAX_DESIGN_CODE_LENGTH, c as instancesOf, d as withInstance, f as withoutInstance, g as DESIGN_FILE, h as CREATE_URL, i as entityName, k as encodeDesign, l as presetInstances, m as diffDesigns, n as blockRequires, o as instanceBlock, p as diffAppTables, r as canAddInstance, s as instanceNameProblem, t as blockEntities, u as withEntityName, v as DesignParseError, w as designConfig, x as createQuery, y as DesignTooLongError, z as readDesignFile } from "../preset-DwuWNBip.js";
4
4
  export { APP_COLUMN_FORMATS, APP_NAME_MAX, CONVENTION_FIELDS, CREATE_URL, DEFAULT_CONVENTIONS, DEFAULT_PRESET_NAME, DESIGN_FILE, DESIGN_FORMAT, DesignParseError, DesignTooLongError, INSTANCE_NAME, MAX_DESIGN_CODE_LENGTH, PRESETS, PRESET_CATALOG, PRESET_FRAMEWORKS, PRESET_GROUPS, PRESET_NAMES, PRESET_TENANT_NAMES, PROVIDER_COMMENT, CORE_BLOCKS as SINGLE_INSTANCE_BLOCKS, appDefaultError, appIdentifierError, appNameLengthError, appReservedColumns, blockEntities, blockRequires, canAddInstance, conventionConfig, createQuery, createUrl, decodeDesign, defaultPreset, designConfig, designFileSource, designFormat, designOf, designSchema, diffAppTables, diffDesigns, encodeDesign, entityName, expandPreset, glueCommand, installedBlocks, instanceBlock, instanceNameProblem, instancePrefix, instancesOf, integrationsForFramework, isAppDefault, isDesignCode, isPresetName, listNames, namedPreset, parseDesign, presetAndDesignOf, presetApplyCommand, presetArgumentOf, presetBlockConflict, presetBlocksSource, presetConfig, presetConfigSource, presetField, presetFromSpec, presetGlue, presetInstallCommand, presetInstances, presetKey, presetOf, presetOfSpec, presetSpec, presetValueLabel, readDesignFile, resolvePreset, safeDesignFileSource, safeParseDesign, withEntityName, withInstance, withoutInstance };
@@ -1,5 +1,5 @@
1
- import { M as groupEntries, a as presetOf, c as presetSpec, d as resolvePreset, g as defaultPreset, i as presetConfig, s as presetOfSpec } from "./config-C19McoGo.js";
2
- import { F as asBlocksConfig, M as PRESET_CATALOG, _ as appTablesOf, n as INSTANCE_NAME, t as CORE_BLOCKS } from "./instances-qz2MCMyK.js";
1
+ import { M as groupEntries, a as presetOf, c as presetSpec, d as resolvePreset, g as defaultPreset, i as presetConfig, s as presetOfSpec } from "./config-CvJHIy5q.js";
2
+ import { F as asBlocksConfig, M as PRESET_CATALOG, _ as appTablesOf, n as INSTANCE_NAME, t as CORE_BLOCKS } from "./instances-C7qUTjhJ.js";
3
3
  import { r as FIELD_FORMATS } from "./field-formats-C6QKA3UR.js";
4
4
  import { t as isSqlType } from "./sql-type-iUSZpaUu.js";
5
5
  //#region src/preset/render.ts
@@ -1,8 +1,8 @@
1
- import { a as presetOf, d as resolvePreset } from "./config-C19McoGo.js";
2
- import { M as PRESET_CATALOG, b as isAppDefault, d as appIdentifierError, f as appNameLengthError, p as appReservedColumns, y as appDefaultError } from "./instances-qz2MCMyK.js";
3
- import { c as resolveConfig } from "./config-CP-WaboC.js";
4
- import { D as designOf, M as parseDesign, j as jsonPointer, k as encodeDesign, v as DesignParseError, w as designConfig, y as DesignTooLongError } from "./preset-BbSWLoXM.js";
5
- import { K as SQL_MODULES, T as renderBlocks, f as moduleLayout } from "./sql-Dg3W1ENk.js";
1
+ import { a as presetOf, d as resolvePreset } from "./config-CvJHIy5q.js";
2
+ import { M as PRESET_CATALOG, b as isAppDefault, d as appIdentifierError, f as appNameLengthError, p as appReservedColumns, y as appDefaultError } from "./instances-C7qUTjhJ.js";
3
+ import { c as resolveConfig } from "./config-CTeR7XHK.js";
4
+ import { D as designOf, M as parseDesign, j as jsonPointer, k as encodeDesign, v as DesignParseError, w as designConfig, y as DesignTooLongError } from "./preset-DwuWNBip.js";
5
+ import { F as renderBlocks, S as moduleLayout, nt as SQL_MODULES } from "./sql-B7vBP9g0.js";
6
6
  //#region src/create/column-keys.ts
7
7
  /** The most options a select takes, and the longest option. */
8
8
  const MAX_OPTIONS = 100;
@@ -1,4 +1,4 @@
1
- import { s as PushTokenPort } from "./ports-Bw7uxPd_.js";
1
+ import { s as PushTokenPort } from "./ports-DP0bthUk.js";
2
2
  //#region src/client/native/push-token.d.ts
3
3
  /** The part of `expo-notifications` the push token port uses. */
4
4
  interface ExpoNotificationsLike {
@@ -1,13 +1,13 @@
1
1
  import { t as escapeLike } from "../escape-like-PReMbEEU.js";
2
2
  import { n as Impersonator } from "../impersonation-YTa9dZUv.js";
3
3
  import { i as DataEntry, m as RejectedChange, n as DataEngine, o as DataSyncState } from "../data-engine-BWoz9lED.js";
4
- import { t as tenantOf } from "../tenant-BRmKZ7aq.js";
4
+ import { t as tenantOf } from "../tenant-CyLEXgot.js";
5
5
  import { t as AuthSession } from "../view-BvNA7EOC.js";
6
- import { r as LiveCountSeed } from "../index-CbUCGMqj.js";
7
- import { r as MembershipClaim } from "../entitlements-CsZcfllV.js";
8
- import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, l as BlockEventSource, m as BlockQueryState, o as DataSource, p as BlockQueryOptions, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-6BVg31Yp.js";
6
+ import { r as LiveCountSeed } from "../index-CAY7rIQs.js";
7
+ import { r as MembershipClaim } from "../entitlements-Y-n4RGAd.js";
8
+ import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, l as BlockEventSource, m as BlockQueryState, o as DataSource, p as BlockQueryOptions, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-Btn3czyz.js";
9
9
  import { n as supportOf, t as SupportView } from "../support-view-CIDXF3_H.js";
10
- import { $ as UseActionFormOptions, A as useController, B as RecordListUrl, C as useConflicts, D as defineDataHooks, E as DataView, F as RecordFormState, G as RecordInitial, H as useRecordListState, I as UseRecordFormOptions, J as RecordState, K as RecordProviderKit, L as useRecordForm, M as useBlockEvent, N as useBlockMutation, O as useBlockEnv, P as useBlockQuery, Q as ActionHandle, R as RecordListQueryStates, S as Conflicts, T as DataHooks, U as RecordActionsOf, V as RecordListUrlState, W as RecordContextValue, X as createRecordProvider, Y as RecordWriteHandlers, Z as ActionForm, _ as useRealtimeRelay, a as Upload, at as LiveCount, b as PresenceTopic, c as UseImageOptions, ct as useBroadcast, d as useSignedUrl, dt as useSupabase, et as useAction, f as useUpload, g as UseRealtimeRelayOptions, h as useDebouncedSearch, i as StorageImage, it as BetterSupabaseProviderProps, j as useLatest, k as useBlockTenant, l as UseUploadOptions, lt as useLiveCount, m as DebouncedSearchOptions, n as SignedUrl, nt as BetterHooks, o as UploadStatus, ot as createHooks, p as DebouncedSearch, q as RecordProviderProps, r as SignedUrlSource, rt as BetterSupabaseProvider, s as UploadTarget, st as useAuth, t as ImageSource, tt as useActionForm, u as useImage, ut as useLiveQuery, v as Presence, w as useSyncStatus, x as usePresence, y as PresenceHookOptions, z as RecordListState } from "../index-D01wHGSN.js";
10
+ import { $ as UseActionFormOptions, A as useController, B as RecordListUrl, C as useConflicts, D as defineDataHooks, E as DataView, F as RecordFormState, G as RecordInitial, H as useRecordListState, I as UseRecordFormOptions, J as RecordState, K as RecordProviderKit, L as useRecordForm, M as useBlockEvent, N as useBlockMutation, O as useBlockEnv, P as useBlockQuery, Q as ActionHandle, R as RecordListQueryStates, S as Conflicts, T as DataHooks, U as RecordActionsOf, V as RecordListUrlState, W as RecordContextValue, X as createRecordProvider, Y as RecordWriteHandlers, Z as ActionForm, _ as useRealtimeRelay, a as Upload, at as LiveCount, b as PresenceTopic, c as UseImageOptions, ct as useBroadcast, d as useSignedUrl, dt as useSupabase, et as useAction, f as useUpload, g as UseRealtimeRelayOptions, h as useDebouncedSearch, i as StorageImage, it as BetterSupabaseProviderProps, j as useLatest, k as useBlockTenant, l as UseUploadOptions, lt as useLiveCount, m as DebouncedSearchOptions, n as SignedUrl, nt as BetterHooks, o as UploadStatus, ot as createHooks, p as DebouncedSearch, q as RecordProviderProps, r as SignedUrlSource, rt as BetterSupabaseProvider, s as UploadTarget, st as useAuth, t as ImageSource, tt as useActionForm, u as useImage, ut as useLiveQuery, v as Presence, w as useSyncStatus, x as usePresence, y as PresenceHookOptions, z as RecordListState } from "../index-C0_cweyT.js";
11
11
  import { SessionProvider, SessionProviderProps, useSession, useSupportSession } from "./session.js";
12
12
  import { a as useSignIn, i as SignOut, n as PendingState, o as useSignOut, r as SignIn, t as AuthHookOptions } from "../sign-in-D54FLMQy.js";
13
13
  export { type ActionForm, type ActionHandle, type ActionInputOf, type ActionResultOf, type AuthHookOptions, type AuthSession, type BetterHooks, BetterSupabaseProvider, type BetterSupabaseProviderProps, type BlockEventSource, type BlockMutationActions, type BlockMutationState, type BlockQueryActions, type BlockQueryOptions, type BlockQueryState, type BlockRefetchOn, type BroadcastOptions, type ClaimsOf, type ClientLike, type Conflicts, type DataEngine, type DataEntry, type DataHooks, type DataSource, type DataState, type DataSyncState, type DataView, type DataWrites, type DebouncedSearch, type DebouncedSearchOptions, type ImageSource, type Impersonator, type LiveCount, type LiveCountHookOptions, type LiveCountSeed, type LiveQueryHookOptions, type MembershipClaim, type PendingState, type Presence, type PresenceHookOptions, type PresenceTopic, type ProfileOf, type RecordActionsOf, type RecordContextValue, type RecordFormState, type RecordInitial, type RecordListQueryStates, type RecordListState, type RecordListUrl, type RecordListUrlState, type RecordProviderKit, type RecordProviderProps, type RecordState, type RecordWriteHandlers, type RejectedChange, SessionProvider, type SessionProviderProps, type SignIn, type SignOut, type SignedUrl, type SignedUrlSource, type StorageImage, type SupportView, type Upload, type UploadStatus, type UploadTarget, type UseActionFormOptions, type UseActionOptions, type UseImageOptions, type UseRealtimeRelayOptions, type UseRecordFormOptions, type UseUploadOptions, createHooks, createRecordProvider, defineDataHooks, escapeLike, fieldErrorsOf, supportOf, tenantOf, useAction, useActionForm, useAuth, useBlockEnv, useBlockEvent, useBlockMutation, useBlockQuery, useBlockTenant, useBroadcast, useConflicts, useController, useDebouncedSearch, useImage, useLatest, useLiveCount, useLiveQuery, usePresence, useRealtimeRelay, useRecordForm, useRecordListState, useSession, useSignIn, useSignOut, useSignedUrl, useSupabase, useSupportSession, useSyncStatus, useUpload };
@@ -1,4 +1,4 @@
1
- import { t as AuthSnapshot } from "../../bind-vKDmdu_4.js";
1
+ import { t as AuthSnapshot } from "../../bind-C54jD0r3.js";
2
2
  import { a as OAuthSignInOptions, i as OAuthClient, n as AuthLinkClient, o as WebBrowserLike, r as AuthLinkResult, t as AuthFailure } from "../../auth-link-B4NL84XU.js";
3
3
  import { n as PendingState } from "../../sign-in-D54FLMQy.js";
4
4
  import { Provider } from "@supabase/supabase-js";
@@ -1,13 +1,13 @@
1
1
  import { t as escapeLike } from "../escape-like-PReMbEEU.js";
2
2
  import { mt as QuerySpec } from "../define-BLP6XtoL.js";
3
3
  import { n as Impersonator } from "../impersonation-YTa9dZUv.js";
4
- import { t as tenantOf } from "../tenant-BRmKZ7aq.js";
4
+ import { t as tenantOf } from "../tenant-CyLEXgot.js";
5
5
  import { t as AuthSession } from "../view-BvNA7EOC.js";
6
- import { r as LiveCountSeed } from "../index-CbUCGMqj.js";
7
- import { r as MembershipClaim } from "../entitlements-CsZcfllV.js";
8
- import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, b as ClaimsOf, g as ActionInputOf, t as fieldErrorsOf, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-6BVg31Yp.js";
6
+ import { r as LiveCountSeed } from "../index-CAY7rIQs.js";
7
+ import { r as MembershipClaim } from "../entitlements-Y-n4RGAd.js";
8
+ import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, b as ClaimsOf, g as ActionInputOf, t as fieldErrorsOf, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-Btn3czyz.js";
9
9
  import { n as supportOf, t as SupportView } from "../support-view-CIDXF3_H.js";
10
- import { $ as UseActionFormOptions, A as useController$1, B as RecordListUrl, C as useConflicts$1, D as defineDataHooks$1, F as RecordFormState, G as RecordInitial, H as useRecordListState$1, I as UseRecordFormOptions, J as RecordState, K as RecordProviderKit, L as useRecordForm$1, M as useBlockEvent$1, N as useBlockMutation$1, O as useBlockEnv$1, P as useBlockQuery$1, Q as ActionHandle, R as RecordListQueryStates, U as RecordActionsOf, V as RecordListUrlState, W as RecordContextValue, X as createRecordProvider$1, Y as RecordWriteHandlers, Z as ActionForm, _ as useRealtimeRelay$1, a as Upload, at as LiveCount, b as PresenceTopic, c as UseImageOptions, ct as useBroadcast, d as useSignedUrl$1, dt as useSupabase, f as useUpload$1, g as UseRealtimeRelayOptions, h as useDebouncedSearch$1, i as StorageImage, it as BetterSupabaseProviderProps, j as useLatest$1, k as useBlockTenant$1, l as UseUploadOptions, m as DebouncedSearchOptions, n as SignedUrl, nt as BetterHooks, o as UploadStatus, p as DebouncedSearch, q as RecordProviderProps, r as SignedUrlSource, rt as BetterSupabaseProvider, s as UploadTarget, st as useAuth, t as ImageSource, u as useImage$1, ut as useLiveQuery, v as Presence, w as useSyncStatus$1, x as usePresence$1, y as PresenceHookOptions, z as RecordListState } from "../index-D01wHGSN.js";
10
+ import { $ as UseActionFormOptions, A as useController$1, B as RecordListUrl, C as useConflicts$1, D as defineDataHooks$1, F as RecordFormState, G as RecordInitial, H as useRecordListState$1, I as UseRecordFormOptions, J as RecordState, K as RecordProviderKit, L as useRecordForm$1, M as useBlockEvent$1, N as useBlockMutation$1, O as useBlockEnv$1, P as useBlockQuery$1, Q as ActionHandle, R as RecordListQueryStates, U as RecordActionsOf, V as RecordListUrlState, W as RecordContextValue, X as createRecordProvider$1, Y as RecordWriteHandlers, Z as ActionForm, _ as useRealtimeRelay$1, a as Upload, at as LiveCount, b as PresenceTopic, c as UseImageOptions, ct as useBroadcast, d as useSignedUrl$1, dt as useSupabase, f as useUpload$1, g as UseRealtimeRelayOptions, h as useDebouncedSearch$1, i as StorageImage, it as BetterSupabaseProviderProps, j as useLatest$1, k as useBlockTenant$1, l as UseUploadOptions, m as DebouncedSearchOptions, n as SignedUrl, nt as BetterHooks, o as UploadStatus, p as DebouncedSearch, q as RecordProviderProps, r as SignedUrlSource, rt as BetterSupabaseProvider, s as UploadTarget, st as useAuth, t as ImageSource, u as useImage$1, ut as useLiveQuery, v as Presence, w as useSyncStatus$1, x as usePresence$1, y as PresenceHookOptions, z as RecordListState } from "../index-C0_cweyT.js";
11
11
  import { SessionProvider, SessionProviderProps } from "./session.js";
12
12
  import { a as useSignIn$1, i as SignOut, n as PendingState, o as useSignOut$1, r as SignIn, t as AuthHookOptions } from "../sign-in-D54FLMQy.js";
13
13
  //#region src/react/server.d.ts