better-supabase 0.38.0 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/ai-sdk/agents/index.d.ts +2 -2
  2. package/dist/{app-tables-D2c0i05-.d.ts → app-tables-jaQmdgAM.d.ts} +1 -1
  3. package/dist/{authorization-D8CaAdqU.d.ts → authorization-Ul_ApMYW.d.ts} +41 -2
  4. package/dist/{bind-5vOwNouG.d.ts → bind-B2GlypM6.d.ts} +1 -1
  5. package/dist/{block-env-hco8BLjC.d.ts → block-env-Bcr-jEA1.d.ts} +3 -3
  6. package/dist/{block-subjects-CINiJW1R.js → block-subjects-BumEsEYb.js} +17 -6
  7. package/dist/{block-tables-BsgdB6VG.d.ts → block-tables-nkIjJ1ly.d.ts} +1 -1
  8. package/dist/blocks/ai-chat/index.d.ts +3 -3
  9. package/dist/blocks/announcements/index.d.ts +3 -3
  10. package/dist/blocks/api-keys/index.d.ts +1 -1
  11. package/dist/blocks/attachments/index.d.ts +1 -1
  12. package/dist/blocks/audit/index.d.ts +2 -2
  13. package/dist/blocks/automations/index.d.ts +1 -1
  14. package/dist/blocks/billing/index.d.ts +1 -1
  15. package/dist/blocks/bookings/index.d.ts +1 -1
  16. package/dist/blocks/calendar/index.d.ts +1 -1
  17. package/dist/blocks/catalog/index.d.ts +25 -5
  18. package/dist/blocks/catalog/index.js +32 -9
  19. package/dist/blocks/comments/index.d.ts +4 -4
  20. package/dist/blocks/entitlements/index.d.ts +2 -2
  21. package/dist/blocks/expenses/index.js +1 -1
  22. package/dist/blocks/forms/index.d.ts +1 -1
  23. package/dist/blocks/inbox/index.d.ts +4 -4
  24. package/dist/blocks/index.d.ts +1 -1
  25. package/dist/blocks/invoices/index.d.ts +1 -0
  26. package/dist/blocks/invoices/index.js +18 -10
  27. package/dist/blocks/leave/index.d.ts +35 -1
  28. package/dist/blocks/leave/index.js +17 -2
  29. package/dist/blocks/ledger/index.d.ts +1 -0
  30. package/dist/blocks/ledger/index.js +2 -1
  31. package/dist/blocks/messaging/index.d.ts +4 -4
  32. package/dist/blocks/mfa/index.d.ts +1 -1
  33. package/dist/blocks/notifications/index.d.ts +3 -3
  34. package/dist/blocks/onboarding/index.d.ts +1 -1
  35. package/dist/blocks/organizations/index.d.ts +2 -2
  36. package/dist/blocks/permissions/index.d.ts +1 -1
  37. package/dist/blocks/push/index.d.ts +1 -1
  38. package/dist/blocks/reactions/index.d.ts +3 -3
  39. package/dist/blocks/saved-views/index.d.ts +1 -1
  40. package/dist/blocks/search/index.d.ts +2 -2
  41. package/dist/blocks/sessions/index.d.ts +1 -1
  42. package/dist/blocks/settings/index.d.ts +1 -1
  43. package/dist/blocks/subjects/index.d.ts +1 -1
  44. package/dist/blocks/tags/index.d.ts +1 -1
  45. package/dist/blocks/undo/index.d.ts +1 -1
  46. package/dist/blocks/usage/index.d.ts +1 -1
  47. package/dist/blocks/workflow-editor/index.d.ts +3 -3
  48. package/dist/blocks/workflows/index.d.ts +3 -3
  49. package/dist/claims/index.d.ts +3 -3
  50. package/dist/cli/{add-7nCSDmpt.js → add-BVs8Ym-K.js} +10 -10
  51. package/dist/cli/{add-B4tQpnXP.js → add-DP1ct-7e.js} +2 -2
  52. package/dist/cli/add-DrwQvDYD.js +1 -0
  53. package/dist/cli/{app-table-files-CtO-zxpO.js → app-table-files-gjMyFqH4.js} +2 -2
  54. package/dist/cli/{app-tables-B7UzcJ_g.js → app-tables-B26PHK75.js} +2 -2
  55. package/dist/cli/{backfill-B2nFDXaS.js → backfill-CP_LpTK2.js} +1 -1
  56. package/dist/cli/bin.js +1 -1
  57. package/dist/cli/{blocks-DU4iDrYS.js → blocks-CpBLp57s.js} +1 -1
  58. package/dist/cli/{blocks-BX_6HUQT.js → blocks-Ewp49Kbm.js} +1 -1
  59. package/dist/cli/{cache-bS5bAoF-.js → cache-BxxtUXVN.js} +1 -1
  60. package/dist/cli/{codemod-B1sSIE2p.js → codemod-CGCxMEyD.js} +1 -1
  61. package/dist/cli/{content-mapper-CW6V6VRq.js → content-mapper-DngBJv4r.js} +2 -2
  62. package/dist/cli/{doctor-Dw2pAf1b.js → doctor-3dcMraMn.js} +17 -17
  63. package/dist/cli/{gen-BtoSx3go.js → gen-DrXxFwUU.js} +11 -11
  64. package/dist/cli/index.d.ts +1 -1
  65. package/dist/cli/index.js +6 -6
  66. package/dist/cli/{init-DZXbrKuJ.js → init-bVKQ4Onb.js} +8 -8
  67. package/dist/cli/{live-CDFfJcdR.js → live-CHTbAqdS.js} +2 -2
  68. package/dist/cli/{mcp-BukxvITV.js → mcp-BbmhntrR.js} +2 -2
  69. package/dist/cli/{metadata-iZizGVuY.js → metadata-BS56R_eb.js} +3 -3
  70. package/dist/cli/{migrate-DPnnGLzw.js → migrate-DV6a9-jI.js} +1 -1
  71. package/dist/cli/{migration-safety-COcnZbMO.js → migration-safety-Ce9IQwmJ.js} +1 -1
  72. package/dist/cli/{migrations-BBt9fmiV.js → migrations-CCCnMhmM.js} +2 -2
  73. package/dist/cli/{module-migration-tCmPLhQp.js → module-migration-C0cAzpNa.js} +2 -2
  74. package/dist/cli/powersync-Cxd3a_v_.js +1 -0
  75. package/dist/cli/{powersync-BRmUJ-uR.js → powersync-OIIpG-y_.js} +3 -3
  76. package/dist/cli/{print-DdwQNG_e.js → print-BGF3d6O2.js} +2 -2
  77. package/dist/cli/{providers-CaNg6Ayz.js → providers-fEzlYSLs.js} +1 -1
  78. package/dist/cli/{prune-workflows-BQQrI3tU.js → prune-workflows-Bx7J5T3a.js} +1 -1
  79. package/dist/cli/{remove-BEj9YEON.js → remove-Ds4N6WvD.js} +5 -5
  80. package/dist/cli/{render-UBqU9r44.js → render-BeZToAp-.js} +3 -3
  81. package/dist/cli/{run-3E_IuJzS.js → run-DR0sTyNQ.js} +9 -9
  82. package/dist/cli/{run-BXlX9YdD.js → run-iUmtksq5.js} +27 -27
  83. package/dist/cli/{shared-agrqD28l.js → shared-BCWYvKeR.js} +1 -1
  84. package/dist/cli/{snapshot-DOXmozSq.js → snapshot-CfgRxTQq.js} +2 -2
  85. package/dist/cli/{source-BfJprU-6.js → source-Ct3ZCy6p.js} +1 -1
  86. package/dist/cli/{spec-CgtIHFsl.js → spec-1eEq2P4T.js} +1 -1
  87. package/dist/cli/{spec-DRpSQGOW.js → spec-9vb-or-k.js} +2 -2
  88. package/dist/cli/{sql-layout-Cs3FMWcY.js → sql-layout-cYsnyjRf.js} +2 -2
  89. package/dist/cli/{sync-C_YGIDjk.js → sync-XpcpINnx.js} +4 -4
  90. package/dist/cli/{upgrade-OG9vaBeX.js → upgrade-A18FY5Iy.js} +2 -2
  91. package/dist/cli/{upgrade-ByQeJRGU.js → upgrade-DXhyb2jV.js} +5 -5
  92. package/dist/cli/{version-CF6Yzah0.js → version-PcwPOm4G.js} +1 -1
  93. package/dist/client/index.d.ts +5 -5
  94. package/dist/client/native/index.d.ts +4 -4
  95. package/dist/config/index.d.ts +2 -2
  96. package/dist/config/index.js +4 -4
  97. package/dist/{config-1-UmQczM.js → config-BRGMUEE2.js} +1 -1
  98. package/dist/{config-AEB5iNEO.js → config-qqAfS_1_.js} +4 -4
  99. package/dist/{context-CH5FYnVk.d.ts → context-dHluCmud.d.ts} +1 -1
  100. package/dist/contract/index.d.ts +3 -3
  101. package/dist/{controller-CJ6rLnpS.d.ts → controller-BQXgMwWN.d.ts} +1 -1
  102. package/dist/create/index.d.ts +3 -3
  103. package/dist/create/index.js +3 -3
  104. package/dist/create/lite/index.d.ts +3 -3
  105. package/dist/create/lite/index.js +2 -2
  106. package/dist/{entitlements-6gODwBSz.d.ts → entitlements-Jh_w-PgX.d.ts} +1 -1
  107. package/dist/{field-errors-CdSjV9Zo.d.ts → field-errors-DIDkgzFA.d.ts} +4 -4
  108. package/dist/{index-DnEJVKQ2.d.ts → index-BKz-E3Mv.d.ts} +6 -6
  109. package/dist/{index-DzLLMmUB.d.ts → index-CpZ4WDDJ.d.ts} +1 -1
  110. package/dist/{index-vkd2LTt2.d.ts → index-DhcLJAtX.d.ts} +1 -1
  111. package/dist/{index-BgRl484n.d.ts → index-IrJQqPeQ.d.ts} +1 -1
  112. package/dist/{index-CrOeAgSh.d.ts → index-g_eFnFqo.d.ts} +2 -2
  113. package/dist/{index-CgKieWlO.d.ts → index-xmb6YGTg.d.ts} +2 -2
  114. package/dist/{index-B5awu2SP.d.ts → index-y70eTezB.d.ts} +2 -2
  115. package/dist/{instances-Bycf_aus.js → instances-DqEZrffE.js} +5 -1
  116. package/dist/mapper/bin.js +5 -5
  117. package/dist/mcp/index.d.ts +1 -1
  118. package/dist/next/index.d.ts +4 -4
  119. package/dist/{operations-knMnfzgm.d.ts → operations-Sza7UQKP.d.ts} +1 -1
  120. package/dist/{options-X61tvckX.js → options-C5cLEJEa.js} +4 -1
  121. package/dist/{options-CS1DA8q9.js → options-CYZH9uxU.js} +2 -1
  122. package/dist/{options-CEwoGUk_.js → options-DiEoDCtf.js} +4 -1
  123. package/dist/otel/index.js +4 -4
  124. package/dist/{permissions-Ed8WvLgQ.d.ts → permissions-COamTJYz.d.ts} +1 -1
  125. package/dist/{ports-Bnwy2mlR.d.ts → ports-1M1E_r2n.d.ts} +1 -1
  126. package/dist/powersync/index.d.ts +2 -2
  127. package/dist/preset/index.d.ts +3 -3
  128. package/dist/preset/index.js +3 -3
  129. package/dist/{preset-DkeXFh7e.js → preset-Byz43PrL.js} +2 -2
  130. package/dist/{project-By0R8ioI.js → project-Y2wW_nr_.js} +5 -5
  131. package/dist/{push-token-CJbEvwjI.d.ts → push-token-DKImhAca.d.ts} +1 -1
  132. package/dist/react/index.d.ts +5 -5
  133. package/dist/react/native/index.d.ts +1 -1
  134. package/dist/react/server.d.ts +5 -5
  135. package/dist/realtime/index.d.ts +3 -3
  136. package/dist/records/index.d.ts +3 -3
  137. package/dist/server/index.d.ts +3 -3
  138. package/dist/solid/index.d.ts +5 -5
  139. package/dist/sql/index.d.ts +5 -5
  140. package/dist/sql/index.js +2 -2
  141. package/dist/{sql-B2cMvGnZ.js → sql-B1FA8jTx.js} +265 -84
  142. package/dist/ssr/index.d.ts +1 -1
  143. package/dist/svelte/index.d.ts +5 -5
  144. package/dist/{tenant-eZNRWTRJ.d.ts → tenant-DflHpV32.d.ts} +1 -1
  145. package/dist/testing/index.d.ts +3 -3
  146. package/dist/testing/index.js +1 -1
  147. package/dist/{topic-D7F2FBNp.d.ts → topic-CekU96q7.d.ts} +1 -1
  148. package/dist/{types-bqvFoBhf.d.ts → types-B42S7qfO.d.ts} +2 -2
  149. package/dist/vue/index.d.ts +5 -5
  150. package/dist/{watch-topic-BIEaSN0Y.d.ts → watch-topic-DBw411Mq.d.ts} +1 -1
  151. package/dist/yjs/index.d.ts +1 -1
  152. package/package.json +1 -1
  153. package/schemas/config-v1.json +13 -0
  154. package/skills/better-supabase/SKILL.md +26 -8
  155. package/dist/cli/add-CdDneXMN.js +0 -1
  156. package/dist/cli/powersync-CYLPcJ9G.js +0 -1
@@ -1,8 +1,8 @@
1
- import { a as withBlockSubjects, c as CONFIG_DEFAULTS } from "./block-subjects-CINiJW1R.js";
2
- import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-1-UmQczM.js";
1
+ import { a as withBlockSubjects, l as CONFIG_DEFAULTS } from "./block-subjects-BumEsEYb.js";
2
+ import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-BRGMUEE2.js";
3
3
  import { t as DEFAULT_CLAIMS } from "./claims-CqTr_N1n.js";
4
4
  import { o as tenantNames } from "./entity-naming-BES3pkQI.js";
5
- import { L as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-Bycf_aus.js";
5
+ import { L as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-DqEZrffE.js";
6
6
  import { C as variantsFor, S as variantTitle, _ as schemaName, a as extraSchemas, b as tableEntries, c as resultType, d as fieldSpec, f as fieldsFor, g as rowType, h as propertyKey, i as extraKinds, l as HEADER, m as parseImport, o as fieldMetaLines, p as optionalLine, s as objectType, u as fieldDocs, v as siblingPath, x as temporalGuardImport, y as tableDocs } from "./json-schema-D9eVL_xi.js";
7
7
  // src/config/authorization.ts
8
8
  /**
@@ -233,7 +233,7 @@ function resolveConfig(input, root) {
233
233
  entitlements: entitlementsOf(config.entitlements, config.authorization !== void 0),
234
234
  ...config.authorization === void 0 ? {} : { authorization: authorizationOf(config.authorization) },
235
235
  vectorSearch: vectorSearchOf(config.vectorSearch),
236
- subjects: withBlockSubjects(withAppTableSubjects(config.subjects ?? {}, appTables, config.sql?.scope, tenantName), blocks.blockNames, blocks.blocks),
236
+ subjects: withBlockSubjects(withAppTableSubjects(config.subjects ?? {}, appTables, config.sql?.scope, tenantName), blocks.blockNames, blocks.blocks, config.sql?.tenantColumn),
237
237
  sql: {
238
238
  ...config.sql?.workflow === void 0 ? {} : { workflow: config.sql.workflow },
239
239
  dir: config.sql?.dir ?? CONFIG_DEFAULTS.sql.dir,
@@ -1,6 +1,6 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { F as ClaimsMeta, M as BucketPolicyName, N as Casing, T as AccessBucketPolicy, st as SchemaMeta, vt as BucketLifecycle } from "./types-BzIYSSWK.js";
3
- import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-D8CaAdqU.js";
3
+ import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-Ul_ApMYW.js";
4
4
  import { Mn as EntityNames, Nn as EntityNoun, Pn as EntityRename, R as PortName, Ut as ActionDescriptor, Xt as BlockSchedule, Zt as DefaultAutomation, _ as BlockProvider, g as BlockEnvKey, i as BlockCategory, y as BlockWorker } from "./define-block-CDw9YGVh.js";
5
5
  import { a as ScalarKind, i as FieldSpec } from "./table-schema-CwXg7oBz.js";
6
6
  import { i as SubjectsConfig } from "./subjects-BGwLJ3IB.js";
@@ -1,12 +1,12 @@
1
1
  import { $t as AuthorizationSubject, D as AccessTopicPolicy, E as AccessPolicySql, Gt as AuthorizationChange, Jt as AuthorizationOutcome, Kt as AuthorizationContext, Qt as AuthorizationResourceSource, T as AccessBucketPolicy, Ut as AnyAuthorizer, Wt as AuthorizationCallKind, Xt as AuthorizationRequest, Yt as AuthorizationPurpose, Zt as AuthorizationResource, en as Authorizer, in as RequestMemo, nn as AuthzVersionCache, qt as AuthorizationIntent, rn as PermissionRef, tn as AuthorizerRuntime } from "../types-BzIYSSWK.js";
2
2
  import { m as SessionSnapshot } from "../resolve-XlMQRUeG.js";
3
3
  import { r as CredentialProvider } from "../provider-CVlXXbda.js";
4
- import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "../authorization-D8CaAdqU.js";
4
+ import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "../authorization-Ul_ApMYW.js";
5
5
  import { _ as SupportAuthorize, g as SubscriberPolicy, i as AuthorizationHooks, v as SupportAuthorizeInput } from "../authorization-hooks-CR8TVvqo.js";
6
6
  import { n as ApprovalOptions } from "../server-types-DpI82uNq.js";
7
7
  import { s as ApiKeyResolverOptions } from "../api-keys-BncNDlWG.js";
8
- import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-DzLLMmUB.js";
9
- import { n as BlockTables, t as BlockTable } from "../block-tables-BsgdB6VG.js";
8
+ import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-CpZ4WDDJ.js";
9
+ import { n as BlockTables, t as BlockTable } from "../block-tables-nkIjJ1ly.js";
10
10
  /**
11
11
  * The types an authorization library implements or reads, in one entry with no
12
12
  * runtime code. Every slot is versioned `apiVersion: 1`; a breaking change to
@@ -1,4 +1,4 @@
1
- import { a as ClientAuth } from "./bind-5vOwNouG.js";
1
+ import { a as ClientAuth } from "./bind-B2GlypM6.js";
2
2
  /**
3
3
  * A block's client state, framework-agnostic. `subscribe` and `getSnapshot`
4
4
  * follow the external-store contract, so React's `useSyncExternalStore`, a Vue
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-CH5FYnVk.js";
3
- import { E as CreateDesign, b as DesignChange } from "../index-vkd2LTt2.js";
4
- import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-bqvFoBhf.js";
2
+ import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-dHluCmud.js";
3
+ import { E as CreateDesign, b as DesignChange } from "../index-DhcLJAtX.js";
4
+ import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-B42S7qfO.js";
5
5
  import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-DtX4ic1F.js";
6
6
  /** What `checkDesign` returns. */
7
7
  export type DesignCheck = {
@@ -1,6 +1,6 @@
1
- import { k as APP_ON_DELETE_ACTIONS } from "../instances-Bycf_aus.js";
2
- import { m as diffDesigns } from "../preset-DkeXFh7e.js";
3
- import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-By0R8ioI.js";
1
+ import { k as APP_ON_DELETE_ACTIONS } from "../instances-DqEZrffE.js";
2
+ import { m as diffDesigns } from "../preset-Byz43PrL.js";
3
+ import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-Y2wW_nr_.js";
4
4
  // src/create/column-kinds.ts
5
5
  /** The groups of the column type picker, in the order it shows them. */
6
6
  const KIND_GROUPS = [
@@ -1,7 +1,7 @@
1
1
  import { st as SchemaMeta } from "../../types-BzIYSSWK.js";
2
- import { Tt as PresetInput } from "../../context-CH5FYnVk.js";
3
- import { E as CreateDesign } from "../../index-vkd2LTt2.js";
4
- import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-bqvFoBhf.js";
2
+ import { Tt as PresetInput } from "../../context-dHluCmud.js";
3
+ import { E as CreateDesign } from "../../index-DhcLJAtX.js";
4
+ import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-B42S7qfO.js";
5
5
  import { c as SpecDiagnostic } from "../../format-BT0Z3V54.js";
6
6
  /**
7
7
  * The parts of `@supabase/lite` that `liteStack()` uses, typed structurally so
@@ -1,5 +1,5 @@
1
- import { y as appDefaultError } from "../../instances-Bycf_aus.js";
2
- import { n as loadProject } from "../../project-By0R8ioI.js";
1
+ import { y as appDefaultError } from "../../instances-DqEZrffE.js";
2
+ import { n as loadProject } from "../../project-Y2wW_nr_.js";
3
3
  import { n as loadLite, t as LITE_INSTALL } from "../../runtime-qslVrC9l.js";
4
4
  import { t as defineApi } from "../../api-wwix_K5c.js";
5
5
  // src/create/lite/apply.ts
@@ -1,4 +1,4 @@
1
- import { t as AuthSnapshot } from "./bind-5vOwNouG.js";
1
+ import { t as AuthSnapshot } from "./bind-B2GlypM6.js";
2
2
  import { n as AuthSession } from "./view-eHgOOyRS.js";
3
3
  /** Verified claims, read by name. */
4
4
  type ClaimsRecord = Readonly<Record<string, unknown>>;
@@ -5,10 +5,10 @@ import { mt as QuerySpec } from "./define-C_He1bQO.js";
5
5
  import { tt as TemplateValues } from "./bucket-CrsJNHzi.js";
6
6
  import { n as DataEngine } from "./data-engine-CX1oYDZl.js";
7
7
  import { Dn as GeneratedBlocks } from "./define-block-CDw9YGVh.js";
8
- import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-D7F2FBNp.js";
9
- import { t as ClientPorts } from "./ports-Bnwy2mlR.js";
10
- import { a as ClientAuth } from "./bind-5vOwNouG.js";
11
- import { a as LiveSource, r as LiveCountSeed } from "./index-B5awu2SP.js";
8
+ import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-CekU96q7.js";
9
+ import { t as ClientPorts } from "./ports-1M1E_r2n.js";
10
+ import { a as ClientAuth } from "./bind-B2GlypM6.js";
11
+ import { a as LiveSource, r as LiveCountSeed } from "./index-y70eTezB.js";
12
12
  import { SupabaseClient } from "@supabase/supabase-js";
13
13
  import { QueryClient } from "@tanstack/query-core";
14
14
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -5,13 +5,13 @@ import { mt as QuerySpec } from "./define-C_He1bQO.js";
5
5
  import { A as TtlPreset, C as TransformOptions, E as UrlOptions, T as UploadOptions, l as ImageTransform, tt as TemplateValues, w as UploadBody } from "./bucket-CrsJNHzi.js";
6
6
  import { m as RejectedChange, o as DataSyncState } from "./data-engine-CX1oYDZl.js";
7
7
  import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-DAS_5OfK.js";
8
- import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-D7F2FBNp.js";
9
- import { t as AuthSnapshot } from "./bind-5vOwNouG.js";
8
+ import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-CekU96q7.js";
9
+ import { t as AuthSnapshot } from "./bind-B2GlypM6.js";
10
10
  import { n as AuthSession } from "./view-eHgOOyRS.js";
11
- import { r as LiveCountSeed, v as RelayClientOptions } from "./index-B5awu2SP.js";
12
- import { n as Controller } from "./controller-CJ6rLnpS.js";
13
- import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-CdSjV9Zo.js";
14
- import { t as BlockEnv } from "./block-env-hco8BLjC.js";
11
+ import { r as LiveCountSeed, v as RelayClientOptions } from "./index-y70eTezB.js";
12
+ import { n as Controller } from "./controller-BQXgMwWN.js";
13
+ import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-DIDkgzFA.js";
14
+ import { t as BlockEnv } from "./block-env-Bcr-jEA1.js";
15
15
  import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "./block-method-QSaPsL2P.js";
16
16
  import { s as RecordFormValues, t as RecordForm } from "./record-form-C-gIxGXe.js";
17
17
  import { SupabaseClient } from "@supabase/supabase-js";
@@ -1,5 +1,5 @@
1
1
  import { O as AnyFunctions, Ut as AnyAuthorizer, dt as TableKey, k as AnyModels, nn as AuthzVersionCache, rn as PermissionRef } from "./types-BzIYSSWK.js";
2
- import { t as OperationTable } from "./operations-knMnfzgm.js";
2
+ import { t as OperationTable } from "./operations-Sza7UQKP.js";
3
3
  import { t as BetterSupabase } from "./define-C_He1bQO.js";
4
4
  import { l as ServerOptions, o as ServerContext, r as BetterServer } from "./server-types-DpI82uNq.js";
5
5
  import { r as GuardOptions } from "./respond-D7kUatjc.js";
@@ -1,4 +1,4 @@
1
- import { Ar as AppTablesConfig, Mt as ResolvedPreset, Ot as presetConfig, Tr as AppTableConfig, Wn as PresetSpec, er as PresetName, gi as PresetGlueItem, gr as AppColumnConfig, pi as PresetCatalog, vr as AppColumnType, xi as Preset } from "./context-CH5FYnVk.js";
1
+ import { Ar as AppTablesConfig, Mt as ResolvedPreset, Ot as presetConfig, Tr as AppTableConfig, Wn as PresetSpec, er as PresetName, gi as PresetGlueItem, gr as AppColumnConfig, pi as PresetCatalog, vr as AppColumnType, xi as Preset } from "./context-dHluCmud.js";
2
2
  import { StandardSchemaV1 } from "@standard-schema/spec";
3
3
  declare const PRESET_CATALOG: PresetCatalog;
4
4
  /**
@@ -3,7 +3,7 @@ import { Ct as Events, v as ApiKeyEventData } from "./events-DddDlibJ.js";
3
3
  import { r as AuthState } from "./resolve-XlMQRUeG.js";
4
4
  import { t as BlockProblemOptions } from "./problem-NGBjN-TO.js";
5
5
  import { c as BlockOf } from "./define-block-CDw9YGVh.js";
6
- import { n as Controller, t as AuthPort } from "./controller-CJ6rLnpS.js";
6
+ import { n as Controller, t as AuthPort } from "./controller-BQXgMwWN.js";
7
7
  import { _ as createApiKeys, d as CreateApiKeyInput, f as CreatedApiKey, l as ApiKeys, s as ApiKeyResolverOptions, t as ApiKey } from "./api-keys-BncNDlWG.js";
8
8
  import { Entry } from "@supabase/middleware";
9
9
  import { AuthMode, JWTClaims, UserClaims } from "@supabase/server";
@@ -3,8 +3,8 @@ import { O as AnyFunctions, k as AnyModels } from "./types-BzIYSSWK.js";
3
3
  import { l as PublicEnv } from "./index-F6lsRlsr.js";
4
4
  import { T as SessionEncoding } from "./resolve-XlMQRUeG.js";
5
5
  import { t as BetterSupabase } from "./define-C_He1bQO.js";
6
- import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-Bnwy2mlR.js";
7
- import { i as BindClientOptions, r as BetterClient } from "./bind-5vOwNouG.js";
6
+ import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-1M1E_r2n.js";
7
+ import { i as BindClientOptions, r as BetterClient } from "./bind-B2GlypM6.js";
8
8
  import { n as FunctionContract } from "./function-contract-DgDBYbXu.js";
9
9
  import { FunctionInvokeOptions, SupabaseClient, SupabaseClientOptions } from "@supabase/supabase-js";
10
10
  /**
@@ -1,7 +1,7 @@
1
1
  import { E as AccessPolicySql } from "./types-BzIYSSWK.js";
2
- import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-D8CaAdqU.js";
2
+ import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-Ul_ApMYW.js";
3
3
  import { nt as ReadSet } from "./define-C_He1bQO.js";
4
- import { R as TableGrant, Tr as AppTableConfig, Vr as CatalogPolicy, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, cn as ResolvedConfig, g as BlockSqlAccessProvider, h as BlockSql, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-CH5FYnVk.js";
4
+ import { R as TableGrant, Tr as AppTableConfig, Vr as CatalogPolicy, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, cn as ResolvedConfig, g as BlockSqlAccessProvider, h as BlockSql, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-dHluCmud.js";
5
5
  import { t as SubjectConfig } from "./subjects-BGwLJ3IB.js";
6
6
  /** A module's SQL for `layout`, without header; `undefined` in custom mode. */
7
7
  declare function moduleBody(name: string, layout?: BlockSqlLayout): string | undefined;
@@ -2,8 +2,8 @@ import { b as DbError, f as Result } from "./result-DTOQRyGY.js";
2
2
  import { et as RecordRef, st as SchemaMeta } from "./types-BzIYSSWK.js";
3
3
  import { mt as QuerySpec } from "./define-C_He1bQO.js";
4
4
  import { t as DataChanges } from "./data-engine-CX1oYDZl.js";
5
- import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-D7F2FBNp.js";
6
- import { n as TopicPort } from "./watch-topic-BIEaSN0Y.js";
5
+ import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-CekU96q7.js";
6
+ import { n as TopicPort } from "./watch-topic-DBw411Mq.js";
7
7
  import { StandardSchemaV1 } from "@standard-schema/spec";
8
8
  /** The `EventSource` the relay client reads with; the browser's fits. */
9
9
  interface RelayEventSource {
@@ -3853,7 +3853,11 @@ const PRESET_CATALOG = {
3853
3853
  "title": "Ledger",
3854
3854
  "category": "commerce",
3855
3855
  "requires": ["memberships", "permissions"],
3856
- "integrates": ["outbox", "audit"],
3856
+ "integrates": [
3857
+ "outbox",
3858
+ "audit",
3859
+ "data-lifecycle"
3860
+ ],
3857
3861
  "manifest": "ledger",
3858
3862
  "scopes": ["tenant"],
3859
3863
  "entities": {
@@ -1,10 +1,10 @@
1
- import { t as VERSION } from "../cli/version-CF6Yzah0.js";
2
- import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-bS5bAoF-.js";
3
- import { t as loadSnapshot } from "../cli/snapshot-DOXmozSq.js";
4
- import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-UBqU9r44.js";
1
+ import { t as VERSION } from "../cli/version-PcwPOm4G.js";
2
+ import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-BxxtUXVN.js";
3
+ import { t as loadSnapshot } from "../cli/snapshot-CfgRxTQq.js";
4
+ import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-BeZToAp-.js";
5
5
  import { i as discoverConfig, s as loadConfig } from "../cli/config-DrrkMihk.js";
6
6
  import { i as parseEnv, n as configEnvironment } from "../cli/env-BCuUsWOh.js";
7
- import { s as schemaStampPath } from "../cli/content-mapper-CW6V6VRq.js";
7
+ import { s as schemaStampPath } from "../cli/content-mapper-DngBJv4r.js";
8
8
  import { existsSync, realpathSync } from "node:fs";
9
9
  import { basename, dirname, join, resolve } from "node:path";
10
10
  import { createHash } from "node:crypto";
@@ -1,4 +1,4 @@
1
1
  import { r as GuardOptions } from "../respond-D7kUatjc.js";
2
2
  import { l as ResourceRouteOptions } from "../resource-types-CF3Uc6OW.js";
3
- import { _ as ToolResult, a as ToolDecision, c as ToolResourceOptions, d as defineTool, f as MCP_PROTOCOL_VERSION, g as ToolInfo, h as ToolAnnotations, i as ToolContext, l as ToolResources, m as ServerDescription, n as McpOptions, o as ToolDefinition, p as ProtocolServer, r as McpTool, s as ToolRef, t as BetterMcp, u as createMcp, v as answerLine, y as answerMessage } from "../index-DzLLMmUB.js";
3
+ import { _ as ToolResult, a as ToolDecision, c as ToolResourceOptions, d as defineTool, f as MCP_PROTOCOL_VERSION, g as ToolInfo, h as ToolAnnotations, i as ToolContext, l as ToolResources, m as ServerDescription, n as McpOptions, o as ToolDefinition, p as ProtocolServer, r as McpTool, s as ToolRef, t as BetterMcp, u as createMcp, v as answerLine, y as answerMessage } from "../index-CpZ4WDDJ.js";
4
4
  export { type BetterMcp, type GuardOptions, MCP_PROTOCOL_VERSION, type McpOptions, type McpTool, type ProtocolServer, type ResourceRouteOptions, type ServerDescription, type ToolAnnotations, type ToolContext, type ToolDecision, type ToolDefinition, type ToolInfo, type ToolRef, type ToolResourceOptions, type ToolResources, type ToolResult, answerLine, answerMessage, createMcp, defineTool };
@@ -6,9 +6,9 @@ import { n as Impersonator } from "../impersonation-BOCJcsmS.js";
6
6
  import { n as AmrEntry, t as Aal } from "../mfa-CM5r904M.js";
7
7
  import { S as BlockClientSource, on as RecordBindingOptions } from "../define-block-CDw9YGVh.js";
8
8
  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-DAS_5OfK.js";
9
- import { r as MembershipClaim } from "../entitlements-6gODwBSz.js";
10
- import { t as tenantOf } from "../tenant-eZNRWTRJ.js";
11
- import { r as permissionsOf, t as PermissionsOfOptions } from "../permissions-Ed8WvLgQ.js";
9
+ import { r as MembershipClaim } from "../entitlements-Jh_w-PgX.js";
10
+ import { t as tenantOf } from "../tenant-DflHpV32.js";
11
+ import { r as permissionsOf, t as PermissionsOfOptions } from "../permissions-COamTJYz.js";
12
12
  import { n as AuthSession, o as toSession } from "../view-eHgOOyRS.js";
13
13
  import { i as ContextOptions, l as ServerOptions, o as ServerContext, r as BetterServer, u as SharedServer } from "../server-types-DpI82uNq.js";
14
14
  import { a as SupportPolicy, c as supportSessions, i as SupportOptions, o as SupportSessions, s as SupportStartRequest, t as ActiveSupport } from "../support-Dj5V2WTs.js";
@@ -16,7 +16,7 @@ import { t as AuthOutageHook } from "../session-s-mUZ8RQ.js";
16
16
  import { n as AuthKind, r as GuardOptions } from "../respond-D7kUatjc.js";
17
17
  import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, r as ActionResult, t as ActionInput } from "../kit-lHFpu2_1.js";
18
18
  import { c as ListParseOptions, m as ListSearchParams } from "../list-query-BkbLV-Yc.js";
19
- import { r as LiveCountSeed, t as CountRunner } from "../index-B5awu2SP.js";
19
+ import { r as LiveCountSeed, t as CountRunner } from "../index-y70eTezB.js";
20
20
  import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-CF3Uc6OW.js";
21
21
  import { t as Validated } from "../shared-DsBcvj6q.js";
22
22
  import { t as ResourceMap } from "../resources-DnHSmJIM.js";
@@ -1,4 +1,4 @@
1
- import { r as AuthorizationOperation } from "./authorization-D8CaAdqU.js";
1
+ import { r as AuthorizationOperation } from "./authorization-Ul_ApMYW.js";
2
2
  /** Operations by name, as `authorization.operations` or a module's own defaults. */
3
3
  type OperationTable = Readonly<Record<string, AuthorizationOperation>>;
4
4
  export { OperationTable as t };
@@ -11,6 +11,9 @@ const invoicesSqlOptions = blockOptions({
11
11
  lineRates: option.string({ default: "bps" }),
12
12
  chargeExtraColumns: option.extraColumns(),
13
13
  totals: option.string({ default: "block" }),
14
- providerPaymentMethods: option.strings({ default: ["stripe", "order"] })
14
+ providerPaymentMethods: option.strings({ default: ["stripe", "order"] }),
15
+ uniqueNumber: option.unknown(),
16
+ linePositionKey: option.boolean({ default: true }),
17
+ paymentsAfterWriteOff: option.boolean({ default: false })
15
18
  });
16
19
  export { invoicesSqlOptions as t };
@@ -5,6 +5,7 @@ const expensesSqlOptions = blockOptions({
5
5
  categoryExtraColumns: option.extraColumns(),
6
6
  approvals: option.boolean({ default: true }),
7
7
  owner: option.string({ default: "user" }),
8
- companyExpenses: option.boolean({ default: false })
8
+ companyExpenses: option.boolean({ default: false }),
9
+ withdrawApproved: option.boolean({ default: false })
9
10
  });
10
11
  export { expensesSqlOptions as t };
@@ -6,7 +6,10 @@ const catalogSqlOptions = blockOptions({
6
6
  variantExtraColumns: option.extraColumns(),
7
7
  categoryExtraColumns: option.extraColumns(),
8
8
  locales: option.strings({ default: ["en"] }),
9
- rankType: option.string({ default: "text" }),
9
+ rankType: option.string({
10
+ default: "text",
11
+ client: true
12
+ }),
10
13
  variantInUse: option.string(),
11
14
  maxVariants: option.number({ default: 100 })
12
15
  });
@@ -39,9 +39,9 @@ function systemOf(executor) {
39
39
  * ```
40
40
  */
41
41
  function otel(options = {}) {
42
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.38.0");
42
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.40.0");
43
43
  let histogram;
44
- if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.38.0")).createHistogram("db.client.operation.duration", {
44
+ if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.40.0")).createHistogram("db.client.operation.duration", {
45
45
  unit: "s",
46
46
  description: "Duration of database client operations.",
47
47
  advice: { explicitBucketBoundaries: [
@@ -218,7 +218,7 @@ function otel(options = {}) {
218
218
  * `betterSupabase.events`. Returns a function that stops listening.
219
219
  */
220
220
  function traceAuth(betterSupabase, options = {}) {
221
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.38.0");
221
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.40.0");
222
222
  const offAuth = betterSupabase.events.on("auth", (event) => {
223
223
  const span = tracer.startSpan("auth.resolve", {
224
224
  kind: SpanKind.INTERNAL,
@@ -256,7 +256,7 @@ function traceAuth(betterSupabase, options = {}) {
256
256
  * an error status. Returns a function that stops listening.
257
257
  */
258
258
  function traceBlockEvents(betterSupabase, options = {}) {
259
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.38.0");
259
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.40.0");
260
260
  return betterSupabase.events.on("block", (event) => {
261
261
  const attributes = {
262
262
  ...options.attributes,
@@ -1,4 +1,4 @@
1
- import { o as ClaimsRecord, s as ClaimsSource } from "./entitlements-6gODwBSz.js";
1
+ import { o as ClaimsRecord, s as ClaimsSource } from "./entitlements-Jh_w-PgX.js";
2
2
  interface PermissionsOfOptions {
3
3
  /**
4
4
  * The claim holding `{ [tenantId]: string[] }`, as
@@ -1,5 +1,5 @@
1
1
  import { t as AsyncResult } from "./result-DTOQRyGY.js";
2
- import { n as TopicPort } from "./watch-topic-BIEaSN0Y.js";
2
+ import { n as TopicPort } from "./watch-topic-DBw411Mq.js";
3
3
  import { SupabaseClient } from "@supabase/supabase-js";
4
4
  /**
5
5
  * A string store: `localStorage` on the web (`webStorage()`), AsyncStorage,
@@ -2,8 +2,8 @@ import { f as Result } from "../result-DTOQRyGY.js";
2
2
  import { Vt as Executor } from "../types-BzIYSSWK.js";
3
3
  import { t as BlockTransport } from "../block-transport-CDmOUuLZ.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-CX1oYDZl.js";
5
- import { n as TopicPort } from "../watch-topic-BIEaSN0Y.js";
6
- import { t as AuthSnapshot } from "../bind-5vOwNouG.js";
5
+ import { n as TopicPort } from "../watch-topic-DBw411Mq.js";
6
+ import { t as AuthSnapshot } from "../bind-B2GlypM6.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-CxMHiDp_.js";
8
8
  /** The part of PowerSync's `SyncStatus` the engine reads. */
9
9
  interface SyncStatusLike {
@@ -1,4 +1,4 @@
1
- import { $n as PresetGroup, Ai as PresetValueInfo, At as PresetConflict, Ci as PresetConventions, Ct as ConfigConventions, Di as PresetFramework, Dt as expandPreset, Ei as PresetFieldValue, Et as conventionConfig, Ft as presetBlockConflict, Gn as presetFromSpec, It as resolvePreset, Jn as DEFAULT_PRESET_NAME, Kn as presetOfSpec, Mi as presetField, Mt as ResolvedPreset, Ni as presetValueLabel, Nt as ResolvedPresetBlock, Oi as PresetPlatforms, Ot as presetConfig, Pt as listNames, Qn as PRESET_NAMES, Si as PresetAccess, Ti as PresetFieldKey, Tt as PresetInput, Wn as PresetSpec, Xn as PRESETS, Yn as NamedPreset, Zn as PRESET_GROUPS, _i as CONVENTION_FIELDS, _r as AppColumnFormat, bi as PRESET_TENANT_NAMES, di as INSTANCE_NAME, er as PresetName, fi as instancePrefix, gi as PresetGlueItem, hi as PresetCatalogManifest, ji as integrationsForFramework, jt as PresetIntegration, ki as PresetScope, kt as presetOf, mi as PresetCatalogBlock, nr as isPresetName, pi as PresetCatalog, qn as presetSpec, rr as namedPreset, tr as defaultPreset, ui as CORE_BLOCKS, ur as APP_COLUMN_FORMATS, vi as DEFAULT_CONVENTIONS, wi as PresetField, wt as ExpandedConfig, xi as Preset, yi as PRESET_FRAMEWORKS } from "../context-CH5FYnVk.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-vkd2LTt2.js";
3
- import { i as appReservedColumns, n as appIdentifierError, r as appNameLengthError, t as APP_NAME_MAX } from "../app-tables-D2c0i05-.js";
1
+ import { $n as PresetGroup, Ai as PresetValueInfo, At as PresetConflict, Ci as PresetConventions, Ct as ConfigConventions, Di as PresetFramework, Dt as expandPreset, Ei as PresetFieldValue, Et as conventionConfig, Ft as presetBlockConflict, Gn as presetFromSpec, It as resolvePreset, Jn as DEFAULT_PRESET_NAME, Kn as presetOfSpec, Mi as presetField, Mt as ResolvedPreset, Ni as presetValueLabel, Nt as ResolvedPresetBlock, Oi as PresetPlatforms, Ot as presetConfig, Pt as listNames, Qn as PRESET_NAMES, Si as PresetAccess, Ti as PresetFieldKey, Tt as PresetInput, Wn as PresetSpec, Xn as PRESETS, Yn as NamedPreset, Zn as PRESET_GROUPS, _i as CONVENTION_FIELDS, _r as AppColumnFormat, bi as PRESET_TENANT_NAMES, di as INSTANCE_NAME, er as PresetName, fi as instancePrefix, gi as PresetGlueItem, hi as PresetCatalogManifest, ji as integrationsForFramework, jt as PresetIntegration, ki as PresetScope, kt as presetOf, mi as PresetCatalogBlock, nr as isPresetName, pi as PresetCatalog, qn as presetSpec, rr as namedPreset, tr as defaultPreset, ui as CORE_BLOCKS, ur as APP_COLUMN_FORMATS, vi as DEFAULT_CONVENTIONS, wi as PresetField, wt as ExpandedConfig, xi as Preset, yi as PRESET_FRAMEWORKS } from "../context-dHluCmud.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-DhcLJAtX.js";
3
+ import { i as appReservedColumns, n as appIdentifierError, r as appNameLengthError, t as APP_NAME_MAX } from "../app-tables-jaQmdgAM.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-1-UmQczM.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-Bycf_aus.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-DkeXFh7e.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-BRGMUEE2.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-DqEZrffE.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-Byz43PrL.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-1-UmQczM.js";
2
- import { F as asBlocksConfig, M as PRESET_CATALOG, _ as appTablesOf, n as INSTANCE_NAME, t as CORE_BLOCKS } from "./instances-Bycf_aus.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-BRGMUEE2.js";
2
+ import { F as asBlocksConfig, M as PRESET_CATALOG, _ as appTablesOf, n as INSTANCE_NAME, t as CORE_BLOCKS } from "./instances-DqEZrffE.js";
3
3
  import { r as FIELD_FORMATS } from "./field-formats-Cap-V7UP.js";
4
4
  import { t as isSqlType } from "./sql-type-XWMeZRAl.js";
5
5
  // src/preset/render.ts
@@ -1,8 +1,8 @@
1
- import { a as presetOf, d as resolvePreset } from "./config-1-UmQczM.js";
2
- import { M as PRESET_CATALOG, b as isAppDefault, d as appIdentifierError, f as appNameLengthError, p as appReservedColumns, y as appDefaultError } from "./instances-Bycf_aus.js";
3
- import { c as resolveConfig } from "./config-AEB5iNEO.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-DkeXFh7e.js";
5
- import { I as renderBlocks, j as moduleLayout, rt as SQL_MODULES } from "./sql-B2cMvGnZ.js";
1
+ import { a as presetOf, d as resolvePreset } from "./config-BRGMUEE2.js";
2
+ import { M as PRESET_CATALOG, b as isAppDefault, d as appIdentifierError, f as appNameLengthError, p as appReservedColumns, y as appDefaultError } from "./instances-DqEZrffE.js";
3
+ import { c as resolveConfig } from "./config-qqAfS_1_.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-Byz43PrL.js";
5
+ import { I as renderBlocks, j as moduleLayout, rt as SQL_MODULES } from "./sql-B1FA8jTx.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,4 +1,4 @@
1
- import { s as PushTokenPort } from "./ports-Bnwy2mlR.js";
1
+ import { s as PushTokenPort } from "./ports-1M1E_r2n.js";
2
2
  /** The part of `expo-notifications` the push token port uses. */
3
3
  interface ExpoNotificationsLike {
4
4
  getPermissionsAsync(): Promise<{
@@ -1,13 +1,13 @@
1
1
  import { t as escapeLike } from "../escape-like-CK6L7gkj.js";
2
2
  import { n as Impersonator } from "../impersonation-BOCJcsmS.js";
3
3
  import { i as DataEntry, m as RejectedChange, n as DataEngine, o as DataSyncState } from "../data-engine-CX1oYDZl.js";
4
- import { r as MembershipClaim } from "../entitlements-6gODwBSz.js";
5
- import { t as tenantOf } from "../tenant-eZNRWTRJ.js";
4
+ import { r as MembershipClaim } from "../entitlements-Jh_w-PgX.js";
5
+ import { t as tenantOf } from "../tenant-DflHpV32.js";
6
6
  import { n as AuthSession } from "../view-eHgOOyRS.js";
7
- import { r as LiveCountSeed } from "../index-B5awu2SP.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-CdSjV9Zo.js";
7
+ import { r as LiveCountSeed } from "../index-y70eTezB.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-DIDkgzFA.js";
9
9
  import { n as supportOf, t as SupportView } from "../support-view-DKZkZeM5.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-DnEJVKQ2.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-BKz-E3Mv.js";
11
11
  import { a as useSupportSession, i as useSession, n as SessionProviderProps, t as SessionProvider } from "../session-JV1z0kxa.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-C9pZE1kM.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-5vOwNouG.js";
1
+ import { t as AuthSnapshot } from "../../bind-B2GlypM6.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-DRjtI1Ky.js";
3
3
  import { n as PendingState } from "../../sign-in-C9pZE1kM.js";
4
4
  import { Provider } from "@supabase/supabase-js";
@@ -1,13 +1,13 @@
1
1
  import { t as escapeLike } from "../escape-like-CK6L7gkj.js";
2
2
  import { mt as QuerySpec } from "../define-C_He1bQO.js";
3
3
  import { n as Impersonator } from "../impersonation-BOCJcsmS.js";
4
- import { r as MembershipClaim } from "../entitlements-6gODwBSz.js";
5
- import { t as tenantOf } from "../tenant-eZNRWTRJ.js";
4
+ import { r as MembershipClaim } from "../entitlements-Jh_w-PgX.js";
5
+ import { t as tenantOf } from "../tenant-DflHpV32.js";
6
6
  import { n as AuthSession } from "../view-eHgOOyRS.js";
7
- import { r as LiveCountSeed } from "../index-B5awu2SP.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-CdSjV9Zo.js";
7
+ import { r as LiveCountSeed } from "../index-y70eTezB.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-DIDkgzFA.js";
9
9
  import { n as supportOf, t as SupportView } from "../support-view-DKZkZeM5.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-DnEJVKQ2.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-BKz-E3Mv.js";
11
11
  import { n as SessionProviderProps, t as SessionProvider } from "../session-JV1z0kxa.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-C9pZE1kM.js";
13
13
  /** The `react-server` build of `useSession`: await `bsb.claims()` instead. */
@@ -1,8 +1,8 @@
1
1
  import { D as AccessTopicPolicy, E as AccessPolicySql } from "../types-BzIYSSWK.js";
2
2
  import { et as TemplateParams, tt as TemplateValues } from "../bucket-CrsJNHzi.js";
3
3
  import { t as RealtimeStatus } from "../realtime-status-D3oUx3o4.js";
4
- import { A as TriggerTopic, C as TopicSubscription, D as TriggerLookup, E as TopicTriggerValue, F as FanOutResult, I as TopicFanOutOptions, M as defineTopic, N as rowChange, O as TriggerOptions, P as rowKeys, S as TopicSubscribeOptions, T as TopicTriggerOptions, _ as TopicMessage, a as PresenceOutput, b as TopicPermission, c as RealtimeClient, d as SubscribeOptions, f as Subscription, g as TopicHandlers, h as TopicEvent, i as PresenceOptions, j as TriggerValue, k as TriggerPayloadMode, l as RowChange, m as Topic, n as PresenceInput, o as PresenceSchema, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas, u as RowKeys, v as TopicOptions, w as TopicTriggerLookup, x as TopicSqlOptions, y as TopicPayload } from "../topic-D7F2FBNp.js";
5
- import { a as watchTopic, i as topicPort, n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-BIEaSN0Y.js";
6
- import { S as relayTopicPort, _ as subjectPresenceValues, a as LiveSource, b as RelayEventSourceConstructor, c as liveCount, d as realtimeChanges, f as SUBJECT_PRESENCE_TEMPLATE, g as subjectPresenceTopic, h as subjectPresence, i as LiveQueryOptions, l as liveQuery, m as SubjectPresenceValues, n as LiveCountOptions, o as LiveSubscription, p as SubjectPresenceTopic, r as LiveCountSeed, s as RealtimeChangesOptions, t as CountRunner, u as liveTopic, v as RelayClientOptions, x as relayRealtimeClient, y as RelayEventSource } from "../index-B5awu2SP.js";
4
+ import { A as TriggerTopic, C as TopicSubscription, D as TriggerLookup, E as TopicTriggerValue, F as FanOutResult, I as TopicFanOutOptions, M as defineTopic, N as rowChange, O as TriggerOptions, P as rowKeys, S as TopicSubscribeOptions, T as TopicTriggerOptions, _ as TopicMessage, a as PresenceOutput, b as TopicPermission, c as RealtimeClient, d as SubscribeOptions, f as Subscription, g as TopicHandlers, h as TopicEvent, i as PresenceOptions, j as TriggerValue, k as TriggerPayloadMode, l as RowChange, m as Topic, n as PresenceInput, o as PresenceSchema, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas, u as RowKeys, v as TopicOptions, w as TopicTriggerLookup, x as TopicSqlOptions, y as TopicPayload } from "../topic-CekU96q7.js";
5
+ import { a as watchTopic, i as topicPort, n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-DBw411Mq.js";
6
+ import { S as relayTopicPort, _ as subjectPresenceValues, a as LiveSource, b as RelayEventSourceConstructor, c as liveCount, d as realtimeChanges, f as SUBJECT_PRESENCE_TEMPLATE, g as subjectPresenceTopic, h as subjectPresence, i as LiveQueryOptions, l as liveQuery, m as SubjectPresenceValues, n as LiveCountOptions, o as LiveSubscription, p as SubjectPresenceTopic, r as LiveCountSeed, s as RealtimeChangesOptions, t as CountRunner, u as liveTopic, v as RelayClientOptions, x as relayRealtimeClient, y as RelayEventSource } from "../index-y70eTezB.js";
7
7
  import { n as subjectReaders, t as SubjectReadersOptions } from "../subject-readers-D1Km_Q42.js";
8
8
  export { type AccessPolicySql, type AccessTopicPolicy, type CountRunner, type EventSchemas, type FanOutResult, type LiveCountOptions, type LiveCountSeed, type LiveQueryOptions, type LiveSource, type LiveSubscription, type PresenceInput, type PresenceMember, type PresenceOptions, type PresenceOutput, type PresenceSchema, type PresenceSubscription, type RealtimeChangesOptions, type RealtimeClient, type RealtimeStatus, type RelayClientOptions, type RelayEventSource, type RelayEventSourceConstructor, type RowChange, type RowKeys, SUBJECT_PRESENCE_TEMPLATE, type SubjectPresenceTopic, type SubjectPresenceValues, type SubjectReadersOptions, type SubscribeOptions, type Subscription, type SubscriptionStatus, type TemplateParams, type TemplateValues, type Topic, type TopicEvent, type TopicFanOutOptions, type TopicHandle, type TopicHandlers, type TopicMessage, type TopicOptions, type TopicPayload, type TopicPermission, type TopicPort, type TopicSqlOptions, type TopicSubscribeOptions, type TopicSubscription, type TopicTriggerLookup, type TopicTriggerOptions, type TopicTriggerValue, type TopicWatch, type TriggerLookup, type TriggerOptions, type TriggerPayloadMode, type TriggerTopic, type TriggerValue, defineTopic, liveCount, liveQuery, liveTopic, realtimeChanges, relayRealtimeClient, relayTopicPort, rowChange, rowKeys, subjectPresence, subjectPresenceTopic, subjectPresenceValues, subjectReaders, topicPort, watchTopic };
@@ -2,9 +2,9 @@ import { b as DbError, t as AsyncResult } from "../result-DTOQRyGY.js";
2
2
  import { et as RecordRef } from "../types-BzIYSSWK.js";
3
3
  import { _n as recordBindingWrite, an as RecordBindingDefinition, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, gn as defineRecordBinding, hn as TimelineItem, in as RecordBindingData, ln as RecordBindingWrite, mn as RecordRowInput, nn as AnyRecordBindingWrite, on as RecordBindingOptions, pn as RecordBindingWrites, rn as RecordBinding, sn as RecordBindingPermissions, tn as AnyRecordBinding, un as RecordBindingWriteInput, vn as recordEventMatches, yn as recordRowInput } from "../define-block-CDw9YGVh.js";
4
4
  import { A as BindingBlocks, B as PermissionFlags, C as defineRecordType, D as recordPermissionKeys, E as recordCan, F as LoadBindingsOptions, H as can, I as LoadedBindings, L as bindingCan, M as BindingName, N as BindingOf, O as recordSubject, P as BindingSource, R as countBinding, S as RecordWriteInput, T as plainData, U as permissionFlags, V as PermissionSet, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, j as BindingCheck, k as recordWriteInput, m as PlainBindings, p as PlainBinding, v as RecordTypePermissions, w as findBindingWrite, x as RecordTypeWriteOutput, y as RecordTypeSpec, z as loadBindings } from "../index-DAS_5OfK.js";
5
- import { p as SubscriptionStatus } from "../topic-D7F2FBNp.js";
6
- import { n as TopicPort } from "../watch-topic-BIEaSN0Y.js";
7
- import { n as Controller, t as AuthPort } from "../controller-CJ6rLnpS.js";
5
+ import { p as SubscriptionStatus } from "../topic-CekU96q7.js";
6
+ import { n as TopicPort } from "../watch-topic-DBw411Mq.js";
7
+ import { n as Controller, t as AuthPort } from "../controller-BQXgMwWN.js";
8
8
  import { a as RecordSummaryOptions, c as Subjects, f as MyWorkKind, i as RecordSummary, n as MyWorkItem, r as MyWorkOptions } from "../subjects-CVjAE7nz.js";
9
9
  import { a as timelineBindings, c as RecordListCells, d as RecordListQuery, f as RecordListRow, h as defineRecordList, i as loadTimeline, l as RecordListColumn, m as RecordListSpec, n as Timeline, o as RecordList, p as RecordListSource, r as TimelineEntry, s as RecordListCell, t as LoadTimelineOptions, u as RecordListPage } from "../timeline-c6I3uxya.js";
10
10
  import { a as RecordFormOptions, c as recordForm, i as RecordFormInput, n as RecordFormCustomField, o as RecordFormResult, r as RecordFormField, s as RecordFormValues, t as RecordForm } from "../record-form-C-gIxGXe.js";