better-supabase 0.54.0 → 0.56.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 (445) hide show
  1. package/dist/{agents-DcZk8HBB.d.ts → agents-DJChYmXn.d.ts} +2 -2
  2. package/dist/{ai-schedules-b-uWaxba.d.ts → ai-schedules-5fxfEOWM.d.ts} +1 -1
  3. package/dist/ai-sdk/agents/index.d.ts +1 -1
  4. package/dist/ai-sdk/workflow/index.d.ts +1 -1
  5. package/dist/{app-tables-B2xNMyLA.d.ts → app-tables-CWnf7wpo.d.ts} +1 -1
  6. package/dist/{audit-actions-Dni5Y4wV.d.ts → audit-actions-DC-AtyWB.d.ts} +6 -0
  7. package/dist/{authorization-Bk6cLL5f.d.ts → authorization-Hh9xUm0r.d.ts} +1 -1
  8. package/dist/{automations-CjKWYzIu.js → automations-Cu1KdCvL.js} +3 -1
  9. package/dist/{bind-DWElQa6I.d.ts → bind-CC5-eBT-.d.ts} +4 -4
  10. package/dist/{block-env-CQQUMPYZ.d.ts → block-env-CzT1OAiI.d.ts} +4 -4
  11. package/dist/{block-subjects-9KU6Q6-3.js → block-subjects-B9hb1LLk.js} +4 -3
  12. package/dist/{block-tables-JC1dMLaA.d.ts → block-tables-DOGtmm0m.d.ts} +1 -1
  13. package/dist/blocks/access-requests/index.d.ts +1 -1
  14. package/dist/blocks/accounting/index.d.ts +1 -1
  15. package/dist/blocks/acknowledgements/index.d.ts +1 -1
  16. package/dist/blocks/activities/index.d.ts +2 -2
  17. package/dist/blocks/advisories/index.d.ts +1 -1
  18. package/dist/blocks/agent-checkout/index.d.ts +1 -1
  19. package/dist/blocks/agents/index.d.ts +1 -1
  20. package/dist/blocks/ai-cache/index.d.ts +1 -1
  21. package/dist/blocks/ai-chat/index.d.ts +1 -1
  22. package/dist/blocks/ai-evals/index.d.ts +1 -1
  23. package/dist/blocks/ai-files/index.d.ts +1 -1
  24. package/dist/blocks/ai-guardrails/index.d.ts +1 -1
  25. package/dist/blocks/ai-keys/index.d.ts +1 -1
  26. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  27. package/dist/blocks/announcements/index.d.ts +4 -4
  28. package/dist/blocks/api-keys/index.d.ts +1 -1
  29. package/dist/blocks/appraisals/index.d.ts +1 -1
  30. package/dist/blocks/approvals/index.d.ts +1 -1
  31. package/dist/blocks/assets/index.d.ts +2 -2
  32. package/dist/blocks/assignment/index.d.ts +1 -1
  33. package/dist/blocks/attachments/index.d.ts +5 -5
  34. package/dist/blocks/audit/index.d.ts +2 -2
  35. package/dist/blocks/automations/index.d.ts +3 -3
  36. package/dist/blocks/banking/index.d.ts +1 -1
  37. package/dist/blocks/billable-time/index.d.ts +1 -1
  38. package/dist/blocks/billing/index.d.ts +2 -2
  39. package/dist/blocks/bookings/index.d.ts +2 -2
  40. package/dist/blocks/bulk/index.d.ts +1 -1
  41. package/dist/blocks/calendar/index.d.ts +3 -3
  42. package/dist/blocks/care/index.d.ts +27 -27
  43. package/dist/blocks/care-plans/index.d.ts +3 -3
  44. package/dist/blocks/cases/index.d.ts +3 -3
  45. package/dist/blocks/catalog/index.d.ts +2 -2
  46. package/dist/blocks/channels/index.d.ts +1 -1
  47. package/dist/blocks/clinical-decision-support/index.d.ts +1 -1
  48. package/dist/blocks/cms/index.d.ts +5 -5
  49. package/dist/blocks/collaboration/index.d.ts +6 -6
  50. package/dist/blocks/collections/index.d.ts +1 -1
  51. package/dist/blocks/comments/index.d.ts +2 -2
  52. package/dist/blocks/commerce/index.d.ts +5 -5
  53. package/dist/blocks/commerce/index.js +2 -2
  54. package/dist/blocks/commissions/index.d.ts +1 -1
  55. package/dist/blocks/compliance/index.d.ts +1 -1
  56. package/dist/blocks/connectors/index.d.ts +1 -1
  57. package/dist/blocks/consents/index.d.ts +2 -2
  58. package/dist/blocks/contacts/index.d.ts +2 -2
  59. package/dist/blocks/content/index.d.ts +2 -2
  60. package/dist/blocks/contracts/index.d.ts +1 -1
  61. package/dist/blocks/courses/index.d.ts +3 -3
  62. package/dist/blocks/created-by/index.d.ts +2 -2
  63. package/dist/blocks/crm/index.d.ts +16 -16
  64. package/dist/blocks/crm/index.js +2 -2
  65. package/dist/blocks/custom-fields/index.d.ts +1 -1
  66. package/dist/blocks/dam/index.d.ts +2 -2
  67. package/dist/blocks/data-lifecycle/index.d.ts +2 -2
  68. package/dist/blocks/deadlines/index.d.ts +249 -43
  69. package/dist/blocks/deadlines/index.js +862 -20
  70. package/dist/blocks/deals/index.d.ts +1 -1
  71. package/dist/blocks/dispatch/index.d.ts +2 -2
  72. package/dist/blocks/document-templates/index.d.ts +2 -2
  73. package/dist/blocks/documents/index.d.ts +1 -1
  74. package/dist/blocks/domains/index.d.ts +1 -1
  75. package/dist/blocks/donations/index.d.ts +1 -1
  76. package/dist/blocks/drive/index.d.ts +5 -5
  77. package/dist/blocks/e-prescribing/index.d.ts +1 -1
  78. package/dist/blocks/employees/index.d.ts +1 -1
  79. package/dist/blocks/enrichment/index.d.ts +1 -1
  80. package/dist/blocks/enrollments/index.d.ts +2 -2
  81. package/dist/blocks/entitlements/index.d.ts +3 -3
  82. package/dist/blocks/events/index.d.ts +3 -3
  83. package/dist/blocks/expenses/index.d.ts +1 -1
  84. package/dist/blocks/field-history/index.d.ts +1 -1
  85. package/dist/blocks/filespace/index.d.ts +8 -8
  86. package/dist/blocks/finance/index.d.ts +5 -5
  87. package/dist/blocks/finance/index.js +1 -1
  88. package/dist/blocks/flags/index.d.ts +1 -1
  89. package/dist/blocks/forecasts/index.d.ts +1 -1
  90. package/dist/blocks/forms/index.d.ts +3 -3
  91. package/dist/blocks/funding/index.d.ts +2 -2
  92. package/dist/blocks/goals/index.d.ts +1 -1
  93. package/dist/blocks/governance/index.d.ts +4 -4
  94. package/dist/blocks/guests/index.d.ts +1 -1
  95. package/dist/blocks/hiring/index.d.ts +1 -1
  96. package/dist/blocks/identities/index.d.ts +1 -1
  97. package/dist/blocks/imports/index.d.ts +2 -2
  98. package/dist/blocks/inbox/index.d.ts +6 -6
  99. package/dist/blocks/incidents/index.d.ts +1 -1
  100. package/dist/blocks/index.d.ts +4 -4
  101. package/dist/blocks/inspections/index.d.ts +2 -2
  102. package/dist/blocks/inventory/index.d.ts +1 -1
  103. package/dist/blocks/inventory/index.js +1 -1
  104. package/dist/blocks/invoices/index.d.ts +1 -1
  105. package/dist/blocks/invoices/index.js +1 -1
  106. package/dist/blocks/knowledge/index.d.ts +1 -1
  107. package/dist/blocks/lead-scoring/index.d.ts +2 -2
  108. package/dist/blocks/learning/index.d.ts +3 -3
  109. package/dist/blocks/leases/index.d.ts +1 -1
  110. package/dist/blocks/leave/index.d.ts +1 -1
  111. package/dist/blocks/ledger/index.d.ts +1 -1
  112. package/dist/blocks/legal-entities/index.d.ts +2 -2
  113. package/dist/blocks/lims/index.d.ts +2 -2
  114. package/dist/blocks/mail-sync/index.d.ts +3 -3
  115. package/dist/blocks/maintenance/index.d.ts +2 -2
  116. package/dist/blocks/manufacturing/index.d.ts +2 -2
  117. package/dist/blocks/medications/index.d.ts +1 -1
  118. package/dist/blocks/meetings/index.d.ts +3 -3
  119. package/dist/blocks/memberships/index.d.ts +2 -2
  120. package/dist/blocks/memory/index.d.ts +1 -1
  121. package/dist/blocks/messaging/index.d.ts +5 -5
  122. package/dist/blocks/metrics/index.d.ts +1 -1
  123. package/dist/blocks/mfa/index.d.ts +2 -2
  124. package/dist/blocks/moderation/index.d.ts +2 -2
  125. package/dist/blocks/notifications/index.d.ts +5 -5
  126. package/dist/blocks/numbering/index.d.ts +1 -1
  127. package/dist/blocks/oauth-server/index.d.ts +1 -1
  128. package/dist/blocks/observations/index.d.ts +2 -2
  129. package/dist/blocks/onboarding/index.d.ts +2 -2
  130. package/dist/blocks/option-sets/index.d.ts +2 -2
  131. package/dist/blocks/orders/index.d.ts +1 -1
  132. package/dist/blocks/orders/index.js +1 -1
  133. package/dist/blocks/organizations/index.d.ts +2 -2
  134. package/dist/blocks/outbox/index.d.ts +1 -1
  135. package/dist/blocks/passes/index.d.ts +2 -2
  136. package/dist/blocks/payroll-export/index.d.ts +2 -2
  137. package/dist/blocks/payroll-export/index.js +1 -1
  138. package/dist/blocks/people/index.d.ts +7 -7
  139. package/dist/blocks/people/index.js +1 -1
  140. package/dist/blocks/periods/index.d.ts +1 -1
  141. package/dist/blocks/permissions/index.d.ts +3 -3
  142. package/dist/blocks/pipelines/index.d.ts +1 -1
  143. package/dist/blocks/posts/index.d.ts +2 -2
  144. package/dist/blocks/procurement/index.d.ts +5 -5
  145. package/dist/blocks/procurement/index.js +2 -2
  146. package/dist/blocks/profiles/index.d.ts +1 -1
  147. package/dist/blocks/projects/index.d.ts +7 -7
  148. package/dist/blocks/projects/index.js +2 -2
  149. package/dist/blocks/promotions/index.d.ts +1 -1
  150. package/dist/blocks/prompts/index.d.ts +1 -1
  151. package/dist/blocks/push/index.d.ts +2 -2
  152. package/dist/blocks/qualifications/index.d.ts +2 -2
  153. package/dist/blocks/queue/index.d.ts +2 -2
  154. package/dist/blocks/quotes/index.d.ts +1 -1
  155. package/dist/blocks/quotes/index.js +2 -2
  156. package/dist/blocks/rank/index.d.ts +1 -1
  157. package/dist/blocks/reactions/index.d.ts +4 -4
  158. package/dist/blocks/recruiting/index.d.ts +4 -4
  159. package/dist/blocks/referrals/index.d.ts +1 -1
  160. package/dist/blocks/relations/index.d.ts +1 -1
  161. package/dist/blocks/reminders/index.d.ts +1 -1
  162. package/dist/blocks/reviews/index.d.ts +1 -1
  163. package/dist/blocks/rfqs/index.d.ts +2 -2
  164. package/dist/blocks/risks/index.d.ts +2 -2
  165. package/dist/blocks/saas/index.d.ts +12 -12
  166. package/dist/blocks/sales/index.d.ts +1 -1
  167. package/dist/blocks/sales/index.js +1 -1
  168. package/dist/blocks/saved-views/index.d.ts +2 -2
  169. package/dist/blocks/scheduling/index.d.ts +4 -4
  170. package/dist/blocks/scores/index.d.ts +2 -2
  171. package/dist/blocks/search/index.d.ts +3 -3
  172. package/dist/blocks/security-events/index.d.ts +1 -1
  173. package/dist/blocks/segments/index.d.ts +2 -2
  174. package/dist/blocks/sequences/index.d.ts +3 -3
  175. package/dist/blocks/service/index.d.ts +7 -7
  176. package/dist/blocks/service/index.js +1 -1
  177. package/dist/blocks/service-accounts/index.d.ts +1 -1
  178. package/dist/blocks/sessions/index.d.ts +2 -2
  179. package/dist/blocks/settings/index.d.ts +2 -2
  180. package/dist/blocks/share-links/index.d.ts +1 -1
  181. package/dist/blocks/shifts/index.d.ts +2 -2
  182. package/dist/blocks/shipments/index.d.ts +2 -2
  183. package/dist/blocks/signatures/index.d.ts +2 -2
  184. package/dist/blocks/signing-keys/index.d.ts +1 -1
  185. package/dist/blocks/sla/index.d.ts +1 -1
  186. package/dist/blocks/sso/index.d.ts +1 -1
  187. package/dist/blocks/state-machine/index.d.ts +1 -1
  188. package/dist/blocks/subjects/index.d.ts +2 -2
  189. package/dist/blocks/support/index.d.ts +5 -5
  190. package/dist/blocks/support/index.js +1 -1
  191. package/dist/blocks/tags/index.d.ts +2 -2
  192. package/dist/blocks/tasks/index.d.ts +2 -2
  193. package/dist/blocks/tasks/index.js +1 -1
  194. package/dist/blocks/tax/index.d.ts +2 -2
  195. package/dist/blocks/teams/index.d.ts +1 -1
  196. package/dist/blocks/templates/index.d.ts +11 -1
  197. package/dist/blocks/templates/index.js +6 -1
  198. package/dist/blocks/tills/index.d.ts +1 -1
  199. package/dist/blocks/time-tracking/index.d.ts +2 -2
  200. package/dist/blocks/timeline/index.d.ts +1 -1
  201. package/dist/blocks/trash/index.d.ts +1 -1
  202. package/dist/blocks/undo/index.d.ts +2 -2
  203. package/dist/blocks/updated-at/index.d.ts +2 -2
  204. package/dist/blocks/usage/index.d.ts +2 -2
  205. package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
  206. package/dist/blocks/versions/index.d.ts +1 -1
  207. package/dist/blocks/waitlist/index.d.ts +1 -1
  208. package/dist/blocks/warehouse/index.d.ts +1 -1
  209. package/dist/blocks/webhooks/index.d.ts +1 -1
  210. package/dist/blocks/workflow-editor/index.d.ts +4 -4
  211. package/dist/blocks/workflows/index.d.ts +4 -4
  212. package/dist/{blocks-LZklPzC5.d.ts → blocks-DvWEz8mQ.d.ts} +56 -21
  213. package/dist/claims/index.d.ts +3 -3
  214. package/dist/cli/{add-BQZbFEAP.js → add--O_HFhs0.js} +2 -2
  215. package/dist/cli/add-CUAchifS.js +1 -0
  216. package/dist/cli/{add-DK38-F2F.js → add-DT2QsJB0.js} +12 -12
  217. package/dist/cli/{app-table-files-C5Sx2Qao.js → app-table-files-BjMDa_7_.js} +3 -3
  218. package/dist/cli/{app-tables-ChZE8Z_L.js → app-tables-D34g1ASz.js} +2 -2
  219. package/dist/cli/{backfill-COnv2tOL.js → backfill-DWD5chCd.js} +3 -3
  220. package/dist/cli/bin.js +1 -1
  221. package/dist/cli/{blocks-Dea_Z5Ps.js → blocks-BduQcXFb.js} +1 -1
  222. package/dist/cli/{blocks-Csu6lLqC.js → blocks-DKs7Qj8R.js} +1 -1
  223. package/dist/cli/{cache-C1nAFZNW.js → cache-EFwNdKib.js} +1 -1
  224. package/dist/cli/{codemod-DHULUpez.js → codemod-CuaWRwst.js} +1 -1
  225. package/dist/cli/{config-FN5Cp861.js → config-DdkxiGjH.js} +7 -0
  226. package/dist/cli/{config-U32Vo0h6.js → config-DmjFp8jY.js} +1 -1
  227. package/dist/cli/{content-mapper-QVJJto5U.js → content-mapper-BlOMmIM2.js} +2 -2
  228. package/dist/cli/{db-T8u160uM.js → db-B54TQ_iX.js} +2 -2
  229. package/dist/cli/{doctor-Du2zwLUG.js → doctor-JdxWuscJ.js} +17 -17
  230. package/dist/cli/{gen-CQ2ubqjB.js → gen-n6l6AMLo.js} +14 -14
  231. package/dist/cli/index.d.ts +1 -1
  232. package/dist/cli/index.js +7 -7
  233. package/dist/cli/{init-CTt0aQn1.js → init-BLMHN_2A.js} +10 -10
  234. package/dist/cli/{live-DMNuAml9.js → live-C4uCg3ME.js} +2 -2
  235. package/dist/cli/{mcp-C63ulwyU.js → mcp-CFLvzFKH.js} +2 -2
  236. package/dist/cli/{metadata-CylES-9Y.js → metadata-CRp8JQTE.js} +3 -3
  237. package/dist/cli/{migrate-BezKva56.js → migrate-BjDf0moD.js} +1 -1
  238. package/dist/cli/{migration-safety-DQtpMu-g.js → migration-safety-D-QnV2BW.js} +2 -2
  239. package/dist/cli/{migrations-DGJJ1rHt.js → migrations-8dDFF8SW.js} +2 -2
  240. package/dist/cli/{module-migration-CxbEDfSF.js → module-migration-DuwIX8MO.js} +2 -2
  241. package/dist/cli/powersync-ByqoHJwp.js +1 -0
  242. package/dist/cli/{powersync-FUYFuZSw.js → powersync-CHVlZIqs.js} +3 -3
  243. package/dist/cli/{print-DAwLAC-7.js → print-orgMiDzp.js} +2 -2
  244. package/dist/cli/{providers-hrxX3YKU.js → providers-DWZVnoDw.js} +1 -1
  245. package/dist/cli/{prune-workflows-DLhKu_UJ.js → prune-workflows-DelKs-zD.js} +3 -3
  246. package/dist/cli/{remove-DSC6Fvwo.js → remove-BH6Zwjhs.js} +6 -6
  247. package/dist/cli/{render-647qdnrX.js → render-DyWVslCM.js} +4 -4
  248. package/dist/cli/{run--qaDaqfL.js → run-BYX5n5rt.js} +9 -9
  249. package/dist/cli/{run-BcI6KXV3.js → run-GcSBgXCH.js} +35 -35
  250. package/dist/cli/seed-BxjjQ3OO.js +1 -0
  251. package/dist/cli/{seed-BgpovbwF.js → seed-kCLEYSOH.js} +2 -2
  252. package/dist/cli/{shared-D_DZ9MfG.js → shared-BoVOOrpJ.js} +1 -1
  253. package/dist/cli/{snapshot-B-1tPbV4.js → snapshot-BZGZ9pB-.js} +3 -3
  254. package/dist/cli/{source-BgFNrRcl.js → source-Buw7eODS.js} +1 -1
  255. package/dist/cli/{source-args-DC8snM7e.js → source-args-C3_mMci3.js} +1 -1
  256. package/dist/cli/{spec-CV0FdW18.js → spec-CUWMpL3f.js} +2 -2
  257. package/dist/cli/{spec-C88dtkj4.js → spec-CnRC9FcX.js} +1 -1
  258. package/dist/cli/{sql-layout-byUur5FC.js → sql-layout-BZ-NhhTI.js} +2 -2
  259. package/dist/cli/{sync-BtM7o-sI.js → sync-CFzA4xdr.js} +4 -4
  260. package/dist/cli/{upgrade-CKDeHkyy.js → upgrade-D1szGysi.js} +5 -5
  261. package/dist/cli/{upgrade-B_HEJvRX.js → upgrade-ukOP0GXf.js} +2 -2
  262. package/dist/cli/{version-DWDoiP5_.js → version-D1sJX6_6.js} +1 -1
  263. package/dist/client/index.d.ts +6 -6
  264. package/dist/client/native/index.d.ts +4 -4
  265. package/dist/config/index.d.ts +4 -4
  266. package/dist/config/index.js +4 -4
  267. package/dist/{config-LOwFAFpo.js → config-Bx3UYp8b.js} +3 -3
  268. package/dist/{config-ekflaCnS.js → config-CAjlOSQY.js} +1 -1
  269. package/dist/{context-iduX3Fsn.d.ts → context-BIBqUjVz.d.ts} +47 -4
  270. package/dist/contract/index.d.ts +3 -3
  271. package/dist/{contributions-DPjEWWpE.js → contributions-olp7tVYC.js} +11 -0
  272. package/dist/{controller-DFGNChQL.d.ts → controller-DBD6WWDa.d.ts} +1 -1
  273. package/dist/{conversion-DTBB0Zgt.d.ts → conversion-DLkof9_y.d.ts} +1 -1
  274. package/dist/create/index.d.ts +4 -4
  275. package/dist/create/index.js +3 -3
  276. package/dist/create/lite/index.d.ts +3 -3
  277. package/dist/create/lite/index.js +2 -2
  278. package/dist/{data-engine-BKO5EAzN.d.ts → data-engine-0uVsKWaB.d.ts} +7 -3
  279. package/dist/deadlines-values-vmaCCdGl.js +92 -0
  280. package/dist/{define-block-By-LUpM_.d.ts → define-block-zK3QnPyG.d.ts} +1 -1
  281. package/dist/{drive-CuNG4qB8.d.ts → drive-Keqe8dIg.d.ts} +1 -1
  282. package/dist/{entitlements-Go8BHqhr.d.ts → entitlements-QwMag409.d.ts} +1 -1
  283. package/dist/{extract-DQKHxiiq.d.ts → extract-CJWS6MMG.d.ts} +1 -1
  284. package/dist/{field-errors-B4SMTk2e.d.ts → field-errors-BlyD3if3.d.ts} +6 -6
  285. package/dist/{index-DQVQYEhP.d.ts → index-0AVn1Dcr.d.ts} +1 -1
  286. package/dist/{index-20EPlFXG.d.ts → index-9rajR8Ti.d.ts} +1 -1
  287. package/dist/{index-DlXgoerO.d.ts → index-B5rQ9MEl.d.ts} +1 -1
  288. package/dist/{index-DkNMN5uU.d.ts → index-B7_Mq8Qm.d.ts} +1 -1
  289. package/dist/{index-DkJtM-9e.d.ts → index-BGqvP9dE.d.ts} +9 -9
  290. package/dist/{index-szXZSILq.d.ts → index-BIClMq6S.d.ts} +7 -7
  291. package/dist/{index-YZ-_hzdR.d.ts → index-BOI3eLz0.d.ts} +1 -1
  292. package/dist/{index-B8axasMg.d.ts → index-BSdDLEA-.d.ts} +1 -1
  293. package/dist/{index-ROumUag2.d.ts → index-BTC40rxx.d.ts} +1 -1
  294. package/dist/{index-C1kImKZg.d.ts → index-BxdldeGx.d.ts} +1 -1
  295. package/dist/{index-DXoS8BnK.d.ts → index-C7tmYYB5.d.ts} +3 -3
  296. package/dist/{index-BoKvWo8t.d.ts → index-CJB2uCFk.d.ts} +1 -1
  297. package/dist/{index-DkNLdcX_.d.ts → index-COLMIEk0.d.ts} +1 -1
  298. package/dist/{index-BmKtYKwN.d.ts → index-CPRQdNHc.d.ts} +2 -2
  299. package/dist/{index-NqLuAXG3.d.ts → index-CSdjm0Kn.d.ts} +2 -2
  300. package/dist/{index-D4ke5U0m.d.ts → index-CT0OjCk1.d.ts} +1 -1
  301. package/dist/{index-D7FXhn2i.d.ts → index-CocISf2h.d.ts} +1 -1
  302. package/dist/{index-9zNFFq6E.d.ts → index-Cvd24Ybb.d.ts} +1 -1
  303. package/dist/{index-CTHuTJtf.d.ts → index-DASeimpy.d.ts} +1 -1
  304. package/dist/{index-Dg35ugqv.d.ts → index-DBqRH5cj.d.ts} +4 -4
  305. package/dist/{index-abVPYQE3.d.ts → index-DCeA3cFQ.d.ts} +1 -1
  306. package/dist/{index-bJVAgXxw.d.ts → index-DD3Ldome.d.ts} +2 -2
  307. package/dist/{index-DJyt9j86.d.ts → index-DEDIPDaW.d.ts} +2 -2
  308. package/dist/{index-D9Sb8Ju5.d.ts → index-DNitLhgU.d.ts} +3 -3
  309. package/dist/{index-BKWnyAWN.d.ts → index-D_OEwOaE.d.ts} +2 -2
  310. package/dist/{index-DzjugbCf.d.ts → index-D_g2loq-.d.ts} +2 -2
  311. package/dist/{index-DfJFbsVp.d.ts → index-DaTxv1aA.d.ts} +1 -1
  312. package/dist/{index-D337YzjX.d.ts → index-DcihkEQo.d.ts} +1 -1
  313. package/dist/{index-DeE-Xuv7.d.ts → index-Do6ZAvXT.d.ts} +1 -1
  314. package/dist/{index-DgRK-iM3.d.ts → index-DpwRuDBy.d.ts} +4 -4
  315. package/dist/{index-pRdO2XnG.d.ts → index-HANt6RDT.d.ts} +1 -1
  316. package/dist/{index-Bsd8P1iQ.d.ts → index-QpKsKUbn.d.ts} +2 -2
  317. package/dist/{index-DFdqVxv6.d.ts → index-WXVYfOHr.d.ts} +4 -4
  318. package/dist/{index-BkBNirhK.d.ts → index-XjhYgGhk.d.ts} +2 -2
  319. package/dist/{index-BvwlIGwY.d.ts → index-_rOaXPbx.d.ts} +1 -1
  320. package/dist/{index-BXRyr3ey.d.ts → index-n-7IwvYP.d.ts} +2 -2
  321. package/dist/{index-D-bMFoGs.d.ts → index-urOSlPMc.d.ts} +2 -2
  322. package/dist/{instances-DJxWRqXk.js → instances-z6DJn2Gr.js} +52 -8
  323. package/dist/{inventory-reads-BNDSYnuG.js → inventory-reads-DEw2Kbff.js} +2 -1
  324. package/dist/{manifest-DjAdsSs4.d.ts → manifest-B4SF4ieN.d.ts} +1 -1
  325. package/dist/{manifest-BeW5LlW1.d.ts → manifest-B9D-PHpo.d.ts} +1 -1
  326. package/dist/{manifest-H6lz9xQm.d.ts → manifest-BBIs-5xy.d.ts} +1 -1
  327. package/dist/{manifest-BfIYKrNe.d.ts → manifest-BE6JGlFP.d.ts} +1 -1
  328. package/dist/{manifest-BCOBkYvY.d.ts → manifest-BExilPWu.d.ts} +2 -2
  329. package/dist/{manifest-uL5fzXsx.d.ts → manifest-BNhdYakH.d.ts} +1 -1
  330. package/dist/{manifest-DZLr6Cbr.js → manifest-BV1YxozT.js} +1 -1
  331. package/dist/{manifest-DweZMH-F.d.ts → manifest-BVkjX2t-.d.ts} +1 -1
  332. package/dist/{manifest-RUmJ5H6p.d.ts → manifest-BVnfLMPU.d.ts} +2 -2
  333. package/dist/{manifest-BxuSAdYu.d.ts → manifest-BX7vyeYr.d.ts} +1 -1
  334. package/dist/{manifest-DBmuiJ91.d.ts → manifest-BYxKYFcH.d.ts} +1 -1
  335. package/dist/{manifest-BRFen7mE.js → manifest-Bb8S2tcs.js} +1 -1
  336. package/dist/{manifest-CfQ0nD_7.d.ts → manifest-Bcx4GSo0.d.ts} +1 -1
  337. package/dist/{manifest-fviCqeHj.d.ts → manifest-BeupHUUC.d.ts} +1 -1
  338. package/dist/{manifest-BAgvJODg.d.ts → manifest-BmI85ooO.d.ts} +1 -1
  339. package/dist/{manifest-Dh4AJeLl.d.ts → manifest-BoKnFQJK.d.ts} +1 -1
  340. package/dist/{manifest-DxPMUjhY.js → manifest-BvcIe5z_.js} +1 -1
  341. package/dist/{manifest-DWQaegX6.d.ts → manifest-BwwWlxof.d.ts} +1 -1
  342. package/dist/{manifest-BGD8cD6S.d.ts → manifest-Bx62hgMv.d.ts} +1 -1
  343. package/dist/{manifest-o-S9bj6i.d.ts → manifest-C1plIFth.d.ts} +1 -1
  344. package/dist/{manifest-upfKO7JJ.d.ts → manifest-C8-zVlM4.d.ts} +1 -1
  345. package/dist/{manifest-BCyCm0Z3.d.ts → manifest-CANbbLyM.d.ts} +1 -1
  346. package/dist/{manifest-DdxfAXvG.d.ts → manifest-CCQYjt7L.d.ts} +1 -1
  347. package/dist/{manifest-CAPSAozN.d.ts → manifest-CDIvE9Po.d.ts} +1 -1
  348. package/dist/{manifest-CDcaLpwB.d.ts → manifest-CJEzfFKP.d.ts} +1 -1
  349. package/dist/{manifest-BgVQ8xd3.d.ts → manifest-CLSlmLnn.d.ts} +1 -1
  350. package/dist/{manifest-KHudP5T5.d.ts → manifest-CV-9uzTU.d.ts} +1 -1
  351. package/dist/{manifest-Dc1eHEJV.d.ts → manifest-CYDtm5Yz.d.ts} +1 -1
  352. package/dist/{manifest-CcDqfRee.d.ts → manifest-Cb0BCYmS.d.ts} +1 -1
  353. package/dist/{manifest-BJs6pHI0.d.ts → manifest-Cc1r_IME.d.ts} +1 -1
  354. package/dist/{manifest-DGgFeLwd.d.ts → manifest-CeFiTTOx.d.ts} +1 -1
  355. package/dist/{manifest-CszjCxVJ.d.ts → manifest-Ch8G8wad.d.ts} +1 -1
  356. package/dist/{manifest-qs_U2rx3.d.ts → manifest-Ciu7htmT.d.ts} +1 -1
  357. package/dist/{manifest-H65OlXiB.js → manifest-CqJkmxrA.js} +1 -1
  358. package/dist/{manifest-xRlf8RQk.d.ts → manifest-CtvRTQoq.d.ts} +1 -1
  359. package/dist/{manifest-B24Ymu8p.d.ts → manifest-CxJtO760.d.ts} +1 -1
  360. package/dist/{manifest-BSkYvne3.d.ts → manifest-D2mvuqCe.d.ts} +1 -1
  361. package/dist/{manifest-B6EkxzC0.d.ts → manifest-D8o7ivPa.d.ts} +1 -1
  362. package/dist/{manifest-Cko_ySTe.d.ts → manifest-DAQAHnHf.d.ts} +1 -1
  363. package/dist/{manifest-2jLTjnVh.d.ts → manifest-DBUE3KbP.d.ts} +1 -1
  364. package/dist/{manifest-DCPKfwsh.d.ts → manifest-DElW3hfs.d.ts} +1 -1
  365. package/dist/{manifest-BrOXXz7k.d.ts → manifest-DFGW17h3.d.ts} +1 -1
  366. package/dist/{manifest-CL5QEu5B.d.ts → manifest-DGXOQgh3.d.ts} +1 -1
  367. package/dist/{manifest-BqBVKNjy.d.ts → manifest-DHV0zxVj.d.ts} +1 -1
  368. package/dist/{manifest-BHZEsuzC.d.ts → manifest-DKCc24tm.d.ts} +1 -1
  369. package/dist/{manifest-BxujRhsY.d.ts → manifest-DKk12W7u.d.ts} +1 -1
  370. package/dist/{manifest-BbC83cJB.d.ts → manifest-DOUGC7xP.d.ts} +1 -1
  371. package/dist/{manifest-BmLU5HtO.d.ts → manifest-DPQpIRCO.d.ts} +1 -1
  372. package/dist/{manifest-Csw2tVut.d.ts → manifest-DPXd-wZG.d.ts} +1 -1
  373. package/dist/{manifest-Ct6mHhg4.d.ts → manifest-D_tuEFvt.d.ts} +1 -1
  374. package/dist/{manifest-BtlEwVU4.d.ts → manifest-DbzB7NQP.d.ts} +1 -1
  375. package/dist/{manifest-Bg5Znp_u.d.ts → manifest-Dd0bmqd-.d.ts} +1 -1
  376. package/dist/{manifest-jSOZl7qT.d.ts → manifest-DebHyEiN.d.ts} +1 -1
  377. package/dist/{manifest-vG5iHhA5.d.ts → manifest-Doxj-elq.d.ts} +1 -1
  378. package/dist/{manifest-Oo7PegXK.d.ts → manifest-DujUV7Cu.d.ts} +1 -1
  379. package/dist/{manifest-DnGgZ9_F.d.ts → manifest-Duj_AN2H.d.ts} +1 -1
  380. package/dist/{manifest-CeoUoZDs.d.ts → manifest-DzN5YdbZ.d.ts} +1 -1
  381. package/dist/{manifest-Da1QZDY4.d.ts → manifest-P2Pzb1Jo.d.ts} +1 -1
  382. package/dist/{manifest-DPGJ2otk.d.ts → manifest-SEhx1LFs.d.ts} +1 -1
  383. package/dist/{manifest-DpF5bliV.d.ts → manifest-Se6qEw03.d.ts} +1 -1
  384. package/dist/{manifest-8JvRt8LB.d.ts → manifest-UHESrKBI.d.ts} +1 -1
  385. package/dist/{manifest-dXPq0ubY.d.ts → manifest-Ul7Uq35H.d.ts} +1 -1
  386. package/dist/{manifest-CH7g3uI3.d.ts → manifest-XpSrCsAV.d.ts} +1 -1
  387. package/dist/{manifest-2ZgzNTbP.d.ts → manifest-iRX3gQ3g.d.ts} +10 -1
  388. package/dist/{manifest-BUktyXMR.js → manifest-ok1ge1bM.js} +1 -1
  389. package/dist/{manifest-BHlKJbN2.d.ts → manifest-uRsVzPOJ.d.ts} +1 -1
  390. package/dist/{manifest-DevURQJj.js → manifest-vBvsSefP.js} +5 -1
  391. package/dist/{manifest-Bj5hfBA_.d.ts → manifest-x50nYF_4.d.ts} +1 -1
  392. package/dist/mapper/bin.js +6 -6
  393. package/dist/mcp/index.d.ts +1 -1
  394. package/dist/next/index.d.ts +7 -7
  395. package/dist/{operations-IzVAIMvs.d.ts → operations-Ce53BGJ0.d.ts} +1 -1
  396. package/dist/{options-CGQC7Wue.js → options-C1N8cOQU.js} +2 -1
  397. package/dist/{options-BTuDJ2RC.js → options-Cu6IqZ_n.js} +3 -1
  398. package/dist/{options-wBw_6uhd.js → options-Oo46IzNk.js} +2 -1
  399. package/dist/{orders-reads-Yo9GGjdv.js → orders-reads-2ozdZx1l.js} +108 -13
  400. package/dist/otel/index.js +4 -4
  401. package/dist/{payroll-export-T754eWz8.js → payroll-export-ChZY6W3w.js} +1 -1
  402. package/dist/{permissions-DxXor_NY.d.ts → permissions-Bi4WvjnM.d.ts} +1 -1
  403. package/dist/{ports-C5BEHQi6.d.ts → ports-TvLRuWgJ.d.ts} +1 -1
  404. package/dist/powersync/index.d.ts +3 -3
  405. package/dist/powersync/index.js +11 -3
  406. package/dist/preset/index.d.ts +4 -4
  407. package/dist/preset/index.js +3 -3
  408. package/dist/{preset-8Xh21Uyw.js → preset-CPUA9haY.js} +9 -3
  409. package/dist/{preview-B-mtB1ka.d.ts → preview-DvpfbcDY.d.ts} +2 -2
  410. package/dist/{project-C6JAWCnH.js → project-CkGGYXKd.js} +5 -5
  411. package/dist/{push-token-TWXWra8i.d.ts → push-token-GJUUE_6j.d.ts} +1 -1
  412. package/dist/query/index.d.ts +1 -1
  413. package/dist/react/index.d.ts +6 -6
  414. package/dist/react/native/index.d.ts +1 -1
  415. package/dist/react/server.d.ts +5 -5
  416. package/dist/realtime/index.d.ts +3 -3
  417. package/dist/{record-form-B9-7RhYz.d.ts → record-form-DhpdYw5e.d.ts} +1 -1
  418. package/dist/records/index.d.ts +7 -7
  419. package/dist/{sales-CLHrvNDm.js → sales-BhOckhix.js} +3 -3
  420. package/dist/server/index.d.ts +3 -3
  421. package/dist/solid/index.d.ts +5 -5
  422. package/dist/sql/index.d.ts +6 -6
  423. package/dist/sql/index.js +3 -3
  424. package/dist/{sql-Bam07JIf.js → sql-CFsIpR4t.js} +2515 -474
  425. package/dist/sqlite/index.d.ts +1 -1
  426. package/dist/ssr/index.d.ts +1 -1
  427. package/dist/svelte/index.d.ts +5 -5
  428. package/dist/tanstack-db/index.d.ts +1 -1
  429. package/dist/{tenant-BpJ2F2b_.d.ts → tenant-BTxVWIN6.d.ts} +1 -1
  430. package/dist/testing/index.d.ts +6 -6
  431. package/dist/testing/index.js +1 -1
  432. package/dist/{timeline-LHtdAJnM.d.ts → timeline-9r4mx0A2.d.ts} +2 -2
  433. package/dist/{topic-4KYLvvTB.d.ts → topic-_7QKu4b5.d.ts} +1 -1
  434. package/dist/{types-Dfa7b0KI.d.ts → types-C2qXUXjK.d.ts} +2 -2
  435. package/dist/vue/index.d.ts +5 -5
  436. package/dist/{watch-topic-C9DIO476.d.ts → watch-topic-Do0x41n3.d.ts} +1 -1
  437. package/dist/webmcp/index.d.ts +1 -1
  438. package/dist/yjs/index.d.ts +1 -1
  439. package/package.json +1 -1
  440. package/schemas/config-v1.json +64 -1
  441. package/skills/better-supabase-api/references/powersync.md +1 -0
  442. package/dist/cli/add-3L9NVEA3.js +0 -1
  443. package/dist/cli/powersync-COHj6FT8.js +0 -1
  444. package/dist/cli/seed-CRD1tYPA.js +0 -1
  445. package/dist/deadlines-values-B7ArpVJU.js +0 -127
@@ -1,13 +1,13 @@
1
1
  import { d as fileDiff, i as changeLines, l as keepHandEdit, o as handEditedError, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-DQayErI8.js";
2
2
  import { t as display } from "./io-CQzy8PEZ.js";
3
- import { n as migrationsDir, o as sqlPlan } from "./sql-layout-byUur5FC.js";
3
+ import { n as migrationsDir, o as sqlPlan } from "./sql-layout-BZ-NhhTI.js";
4
4
  import { n as CliError } from "./errors-DcJ_PayO.js";
5
5
  import { t as loadTopics } from "./topics-Cdg0V7Tt.js";
6
- import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-CxbEDfSF.js";
6
+ import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-DuwIX8MO.js";
7
7
  import { t as orphanedBlockFiles } from "./orphans-ByB0gKOp.js";
8
- import { r as layoutFor } from "./providers-hrxX3YKU.js";
8
+ import { r as layoutFor } from "./providers-DWZVnoDw.js";
9
9
  import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, o as findSupabaseRoot, p as sqlWorkflow, t as PGDELTA_TABLE } from "./supabase-toml-B6-eEV5p.js";
10
- import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-DGJJ1rHt.js";
10
+ import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-8dDFF8SW.js";
11
11
  import { dirname, join, resolve } from "node:path";
12
12
  import { readFile, readdir } from "node:fs/promises";
13
13
  import { APP_TABLES_MARKER, APP_TABLES_MODULE, currentBlockName, moduleTopics, renderBlocks, resolveBlocks, sameBlockFile } from "better-supabase/sql";
@@ -1,11 +1,11 @@
1
1
  import { d as fileDiff, i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
2
2
  import { t as display } from "./io-CQzy8PEZ.js";
3
- import { n as migrationsDir, o as sqlPlan } from "./sql-layout-byUur5FC.js";
4
- import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-BtM7o-sI.js";
3
+ import { n as migrationsDir, o as sqlPlan } from "./sql-layout-BZ-NhhTI.js";
4
+ import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-CFzA4xdr.js";
5
5
  import { a as legacyPrefixSql, i as legacyPrefixNames, r as legacyBlocksTableSql } from "./legacy-prefix-D8Jfku6I.js";
6
- import { r as migrationStamp } from "./migrations-DGJJ1rHt.js";
7
- import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-CxbEDfSF.js";
8
- import { r as layoutFor } from "./providers-hrxX3YKU.js";
6
+ import { r as migrationStamp } from "./migrations-8dDFF8SW.js";
7
+ import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-DuwIX8MO.js";
8
+ import { r as layoutFor } from "./providers-DWZVnoDw.js";
9
9
  import { resolve } from "node:path";
10
10
  import { readFile } from "node:fs/promises";
11
11
  import { BLOCK_RENAMES, SQL_MODULES, currentBlockName, entityRenamePlan, formerBlockName, moduleFileVersion, moduleTopics, renderBlocks, sameBlockFile, upgradePlan } from "better-supabase/sql";
@@ -1,7 +1,7 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-CLvgELKk.js";
2
2
  import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
3
- import { t as syncModules } from "./sync-BtM7o-sI.js";
4
- import { t as upgrade } from "./upgrade-CKDeHkyy.js";
3
+ import { t as syncModules } from "./sync-CFzA4xdr.js";
4
+ import { t as upgrade } from "./upgrade-D1szGysi.js";
5
5
  import { i as plain } from "./style-B5-nByxb.js";
6
6
  // src/cli/commands/upgrade.ts
7
7
  const UPGRADE_ARGS = {
@@ -1,3 +1,3 @@
1
1
  // src/cli/version.ts
2
- const VERSION = "0.54.0";
2
+ const VERSION = "0.56.0";
3
3
  export { VERSION as t };
@@ -1,9 +1,9 @@
1
- import { a as DataSync, c as LocalTablesOption, i as DataEntry, l as liveEngine, n as DataEngine, o as DataSyncState, r as DataEngineOptions, s as LiveEngineOptions, t as DataChanges, u as memoryEngine } from "../data-engine-BKO5EAzN.js";
2
- import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-C9DIO476.js";
3
- import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-C5BEHQi6.js";
4
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-DWElQa6I.js";
5
- import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-DFGNChQL.js";
1
+ import { a as DataSync, c as LocalTablesOption, i as DataEntry, l as liveEngine, n as DataEngine, o as DataSyncState, r as DataEngineOptions, s as LiveEngineOptions, t as DataChanges, u as memoryEngine } from "../data-engine-0uVsKWaB.js";
2
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-Do0x41n3.js";
3
+ import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-TvLRuWgJ.js";
4
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-CC5-eBT-.js";
5
+ import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-DBD6WWDa.js";
6
6
  import { i as authzUserTopic, r as AuthzVersionSource, t as AUTHZ_EVENT } from "../authz-topic-C7n3kIm_.js";
7
7
  import { n as FunctionContract } from "../function-contract-CMJR3nYl.js";
8
- import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-DJyt9j86.js";
8
+ import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-DEDIPDaW.js";
9
9
  export { AUTHZ_EVENT, type AuthPort, type AuthSnapshot, type AuthUser, type AuthzVersionSource, type BetterClient, type BindClientOptions, type ClientAuth, ClientOptions, type ClientPorts, type Controller, type ControllerParts, type ControllerState, type DataChanges, type DataEngine, type DataEngineOptions, type DataEntry, type DataSync, type DataSyncState, type DeepLinkPort, type FilePickerPort, type FunctionContract, type FunctionContracts, type FunctionsHost, type InvokeOptions, type KeyboardPort, type LiveEngineOptions, type LocalTablesOption, type PickFilesOptions, type PickedFile, type PushRegistrationLike, type PushTokenPort, type Shortcut, type StoragePort, type TopicHandle, type TopicPort, type TopicWatch, type TypedFunctions, type UploadDestination, type UploadPort, type WebPushTokenOptions, authzUserTopic, bindClient, createClient, defineController, functions, liveEngine, memoryEngine, memoryStorage, storageUpload, webDeepLinks, webFilePicker, webKeyboard, webPorts, webPushToken, webStorage, whileSignedIn };
@@ -1,10 +1,10 @@
1
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-DWElQa6I.js";
1
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-CC5-eBT-.js";
2
2
  import { a as OAuthSignInOptions, c as linkParams, i as OAuthClient, l as signInWithOAuthBrowser, n as AuthLinkClient, o as WebBrowserLike, r as AuthLinkResult, s as handleAuthDeepLink, t as AuthFailure } from "../../auth-link-DRjtI1Ky.js";
3
- import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-C9DIO476.js";
3
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-Do0x41n3.js";
4
4
  import { i as authzUserTopic, r as AuthzVersionSource, t as AUTHZ_EVENT } from "../../authz-topic-C7n3kIm_.js";
5
5
  import { a as AppStateLike, i as startNativeAuthzRefresh, n as NativeAuthzRefreshOptions, o as AutoRefreshClient, r as PowerSyncReconnect, s as autoRefreshOnForeground, t as NativeAuthzRefreshClient } from "../../authz-refresh-DIqPTJZe.js";
6
- import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-C5BEHQi6.js";
7
- import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-TWXWra8i.js";
6
+ import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-TvLRuWgJ.js";
7
+ import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-GJUUE_6j.js";
8
8
  import { T as UploadOptions, w as UploadBody } from "../../bucket-DJu58KBb.js";
9
9
  import { t as AsyncResult } from "../../result-CMqlHv82.js";
10
10
  import { SupabaseClient } from "@supabase/supabase-js";
@@ -1,6 +1,6 @@
1
1
  import { N as Casing } from "../types-BlBju7Wa.js";
2
- import { Bt as SubjectsConfig, It as SubjectConfig, Lt as SubjectPermission, Rt as SubjectSearch, _ as OwnTablePolicies, c as BlockScope, d as DisabledRow, f as EntitiesConfig, i as BlockConfig, l as BlocksConfig, n as ActiveTenantSource, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, t as AccessBlockConfig, u as DEFAULT_ACTIVE_TENANT, x as tenantNameOf, zt as SubjectTeam } from "../blocks-LZklPzC5.js";
3
- import { $r as PowerSyncGenConfig, Gr as DoctorConfig, Jr as GenTask, Kr as EnvFileConfig, Qr as OpenApiConfig, Xr as KeysConfig, Yr as IntegrationName, Zr as MigrationSafetyConfig, ai as INTEGRATION_INFO, ci as SKILLS_AGENTS, cn as FIELD_FORMATS, dn as FieldFormatInput, ei as SkillsAgent, ii as GEN_TASKS, oi as INTEGRATION_NAMES, qr as GenConfig, si as IntegrationInfo, ti as SkillsConfig, un as FieldFormat } from "../define-block-By-LUpM_.js";
4
- import { $ as ClaimPaths, $r as APP_COLUMN_TYPES, $t as ApiConfig, Ai as CatalogPolicy, Ar as ResolvedSeedConfig, At as GeneratorBlockEntity, B as zod, Bi as Snapshot, Br as TopicTriggerLookupConfig, Bt as GeneratorNoun, Ci as CatalogColumnGrant, Ct as RoleNames, Di as CatalogFunctionArg, Dt as GeneratedFile, Ei as CatalogFunction, Et as CodecsConfig, Fi as ExtrasFunction, Fr as SeedSampleSize, Ft as GeneratorFunctionArg, G as NuqsGeneratorOptions, Gi as PostgresFunction, Gr as VectorSearchConfig, Gt as SourceConfig, H as valibot, Hi as SnapshotExtras, Hr as TopicTriggerTopicConfig, Ht as JsonSchemaSource, Ii as ExtrasHook, Ir as SqlBlockDefaults, It as GeneratorInput, J as factories, Ji as RpcFunctionArg, Jt as DataHooksFramework, K as nuqs, Ki as PostgresFunctionArg, Kr as CONFIG_DEFAULTS, Kt as TableConfig, Li as ExtrasHookFunction, Lr as SqlConfig, Lt as GeneratorInputSchema, Mi as CatalogTrigger, Mr as SeedConfig, Mt as GeneratorEntitySchemas, Ni as CatalogUnique, Nr as SeedDefaultsConfig, Nt as GeneratorField, Oi as CatalogGrant, Or as BucketConfig, Ot as Generator, Pi as ExtrasDomain, Pr as SeedSampleConfig, Pt as GeneratorFunction, Q as JsonSchemaTarget, Qi as RpcTypeReference, Qr as APP_COLUMN_FORMATS, Qt as ResolvedExtensions, R as ZodFlavor, Ri as ExtrasTable, Rr as SqlWorkflow, Rt as GeneratorJsonSchema, Si as CatalogColumn, St as ConfigReferences, Ti as CatalogForeignKey, Tt as ClaimsConfig, U as StandardSchemaGeneratorOptions, Ui as GeneratorMetadata, Ur as TopicTriggerValueConfig, Ut as JsonTypeConfig, V as ValibotGeneratorOptions, Vi as SnapshotBucket, Vr as TopicTriggerPayloadValueConfig, Vt as GeneratorTable, W as standardSchema, Wi as PostgresColumn, Wr as VectorDistance, Wt as RelationsConfig, X as buildJsonSchema, Xi as RpcFunctionReturns, Xt as FlatConfig, Y as JsonSchemaGeneratorOptions, Yi as RpcFunctionOverload, Yt as DataHooksSelect, Z as jsonSchema, Zi as RpcReturnColumn, Zr as APP_COLUMN_ACCESS, Zt as ResolvedConfig, _i as AppTableSubject, _n as ExposeRole, _t as ResolveInput, ai as AppColumnFormat, an as BlocksInput, at as blockEntityRenames, bi as Catalog, bt as BlockTableReference, ci as AppOnDeleteAction, cn as GenGroupConfig, cr as ExpandedConfig, ct as blockSubjectTypes, di as AppRollupAggregate, dn as ToolingConfig, dt as RENAMED_CONFIG_KEYS, ei as APP_ON_DELETE_ACTIONS, en as AppTableInput, et as DEFAULT_CLAIMS, fi as AppRollupConfig, fn as EntitlementPlansSource, ft as blockEntrySource, gi as AppTableEvents, gn as ExposePrivilege, gt as CONFIG_SCHEMA_URL, hi as AppTableEventKind, hn as ExposeConfig, ht as groupEntries, ii as AppColumnConfig, in as BlockInput, it as blockEntities, ji as CatalogTable, jr as ResolvedSqlConfig, jt as GeneratorColumn, ki as CatalogIndex, kr as RealtimeConfig, kt as GeneratorBlock, li as AppReference, ln as SqlInput, lt as CONFIG_GROUPS, mi as AppTableEmbedding, mn as ColumnPrivilege, mt as groupConfig, ni as APP_TABLE_EVENT_KINDS, nn as AuthConfig, nt as tenantClaimPaths, oi as AppColumnType, on as DatabaseConfig, ot as blockEventRenames, pi as AppTableConfig, pn as EntitlementsConfig, pt as flattenConfig, q as FactoriesGeneratorOptions, qi as RpcFunction, qt as DataHooksConfig, ri as AppColumnAccess, rn as BetterSupabaseConfig, rt as BlockEntity, si as AppLookupConfig, sn as EnvironmentConfig, st as blockFormerFunctions, ti as APP_ROLLUP_AGGREGATES, tn as AppTablesInput, tt as claimPaths, ui as AppReferenceTarget, un as TenantConfig, ut as RENAMED_BLOCK_KEYS, vi as AppTableVersions, vn as Privilege, vt as defineConfig, wi as CatalogEnum, wt as resolveJsonSchema, xi as CatalogCheck, xt as BucketName, yi as AppTablesConfig, yn as ResolvedExpose, yt as resolveConfig, z as ZodGeneratorOptions, zi as ForeignKeyAction, zr as TopicTriggerConfig, zt as GeneratorModel } from "../context-iduX3Fsn.js";
5
- import { a as AuthorizationPersona, c as AuthorizationRequirement, d as AuthorizationTokenHook, f as AuthorizationVersions, i as AuthorizationPermission, l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, p as providerApiProblem, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions, u as AuthorizationScope } from "../authorization-Bk6cLL5f.js";
2
+ import { Bt as SubjectsConfig, It as SubjectConfig, Lt as SubjectPermission, Rt as SubjectSearch, _ as OwnTablePolicies, c as BlockScope, d as DisabledRow, f as EntitiesConfig, i as BlockConfig, l as BlocksConfig, n as ActiveTenantSource, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, t as AccessBlockConfig, u as DEFAULT_ACTIVE_TENANT, x as tenantNameOf, zt as SubjectTeam } from "../blocks-DvWEz8mQ.js";
3
+ import { $r as PowerSyncGenConfig, Gr as DoctorConfig, Jr as GenTask, Kr as EnvFileConfig, Qr as OpenApiConfig, Xr as KeysConfig, Yr as IntegrationName, Zr as MigrationSafetyConfig, ai as INTEGRATION_INFO, ci as SKILLS_AGENTS, cn as FIELD_FORMATS, dn as FieldFormatInput, ei as SkillsAgent, ii as GEN_TASKS, oi as INTEGRATION_NAMES, qr as GenConfig, si as IntegrationInfo, ti as SkillsConfig, un as FieldFormat } from "../define-block-zK3QnPyG.js";
4
+ import { $ as ClaimPaths, $r as APP_COLUMN_TYPES, $t as ApiConfig, Ai as CatalogPolicy, Ar as ResolvedSeedConfig, At as GeneratorBlockEntity, B as zod, Bi as Snapshot, Br as TopicTriggerLookupConfig, Bt as GeneratorNoun, Ci as CatalogColumnGrant, Ct as RoleNames, Di as CatalogFunctionArg, Dt as GeneratedFile, Ei as CatalogFunction, Et as CodecsConfig, Fi as ExtrasFunction, Fr as SeedSampleSize, Ft as GeneratorFunctionArg, G as NuqsGeneratorOptions, Gi as PostgresFunction, Gr as VectorSearchConfig, Gt as SourceConfig, H as valibot, Hi as SnapshotExtras, Hr as TopicTriggerTopicConfig, Ht as JsonSchemaSource, Ii as ExtrasHook, Ir as SqlBlockDefaults, It as GeneratorInput, J as factories, Ji as RpcFunctionArg, Jt as DataHooksFramework, K as nuqs, Ki as PostgresFunctionArg, Kr as CONFIG_DEFAULTS, Kt as TableConfig, Li as ExtrasHookFunction, Lr as SqlConfig, Lt as GeneratorInputSchema, Mi as CatalogTrigger, Mr as SeedConfig, Mt as GeneratorEntitySchemas, Ni as CatalogUnique, Nr as SeedDefaultsConfig, Nt as GeneratorField, Oi as CatalogGrant, Or as BucketConfig, Ot as Generator, Pi as ExtrasDomain, Pr as SeedSampleConfig, Pt as GeneratorFunction, Q as JsonSchemaTarget, Qi as RpcTypeReference, Qr as APP_COLUMN_FORMATS, Qt as ResolvedExtensions, R as ZodFlavor, Ri as ExtrasTable, Rr as SqlWorkflow, Rt as GeneratorJsonSchema, Si as CatalogColumn, St as ConfigReferences, Ti as CatalogForeignKey, Tt as ClaimsConfig, U as StandardSchemaGeneratorOptions, Ui as GeneratorMetadata, Ur as TopicTriggerValueConfig, Ut as JsonTypeConfig, V as ValibotGeneratorOptions, Vi as SnapshotBucket, Vr as TopicTriggerPayloadValueConfig, Vt as GeneratorTable, W as standardSchema, Wi as PostgresColumn, Wr as VectorDistance, Wt as RelationsConfig, X as buildJsonSchema, Xi as RpcFunctionReturns, Xt as FlatConfig, Y as JsonSchemaGeneratorOptions, Yi as RpcFunctionOverload, Yt as DataHooksSelect, Z as jsonSchema, Zi as RpcReturnColumn, Zr as APP_COLUMN_ACCESS, Zt as ResolvedConfig, _i as AppTableSubject, _n as ExposeRole, _t as ResolveInput, ai as AppColumnFormat, an as BlocksInput, at as blockEntityRenames, bi as Catalog, bt as BlockTableReference, ci as AppOnDeleteAction, cn as GenGroupConfig, cr as ExpandedConfig, ct as blockSubjectTypes, di as AppRollupAggregate, dn as ToolingConfig, dt as RENAMED_CONFIG_KEYS, ei as APP_ON_DELETE_ACTIONS, en as AppTableInput, et as DEFAULT_CLAIMS, fi as AppRollupConfig, fn as EntitlementPlansSource, ft as blockEntrySource, gi as AppTableEvents, gn as ExposePrivilege, gt as CONFIG_SCHEMA_URL, hi as AppTableEventKind, hn as ExposeConfig, ht as groupEntries, ii as AppColumnConfig, in as BlockInput, it as blockEntities, ji as CatalogTable, jr as ResolvedSqlConfig, jt as GeneratorColumn, ki as CatalogIndex, kr as RealtimeConfig, kt as GeneratorBlock, li as AppReference, ln as SqlInput, lt as CONFIG_GROUPS, mi as AppTableEmbedding, mn as ColumnPrivilege, mt as groupConfig, ni as APP_TABLE_EVENT_KINDS, nn as AuthConfig, nt as tenantClaimPaths, oi as AppColumnType, on as DatabaseConfig, ot as blockEventRenames, pi as AppTableConfig, pn as EntitlementsConfig, pt as flattenConfig, q as FactoriesGeneratorOptions, qi as RpcFunction, qt as DataHooksConfig, ri as AppColumnAccess, rn as BetterSupabaseConfig, rt as BlockEntity, si as AppLookupConfig, sn as EnvironmentConfig, st as blockFormerFunctions, ti as APP_ROLLUP_AGGREGATES, tn as AppTablesInput, tt as claimPaths, ui as AppReferenceTarget, un as TenantConfig, ut as RENAMED_BLOCK_KEYS, vi as AppTableVersions, vn as Privilege, vt as defineConfig, wi as CatalogEnum, wt as resolveJsonSchema, xi as CatalogCheck, xt as BucketName, yi as AppTablesConfig, yn as ResolvedExpose, yt as resolveConfig, z as ZodGeneratorOptions, zi as ForeignKeyAction, zr as TopicTriggerConfig, zt as GeneratorModel } from "../context-BIBqUjVz.js";
5
+ import { a as AuthorizationPersona, c as AuthorizationRequirement, d as AuthorizationTokenHook, f as AuthorizationVersions, i as AuthorizationPermission, l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, p as providerApiProblem, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions, u as AuthorizationScope } from "../authorization-Hh9xUm0r.js";
6
6
  export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEmbedding, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationPersona, type AuthorizationPlatformRoles, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type AuthorizationVersions, type BetterSupabaseConfig, type BlockConfig, type BlockEntity, type BlockInput, type BlockMode, type BlockScope, type BlockTableReference, type BlocksConfig, type BlocksInput, type BucketConfig, type BucketName, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, type Casing, type Catalog, type CatalogCheck, type CatalogColumn, type CatalogColumnGrant, type CatalogEnum, type CatalogForeignKey, type CatalogFunction, type CatalogFunctionArg, type CatalogGrant, type CatalogIndex, type CatalogPolicy, type CatalogTable, type CatalogTrigger, type CatalogUnique, type ClaimPaths, type ClaimsConfig, type CodecsConfig, type ColumnPrivilege, type ConfigReferences, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, type DataHooksConfig, type DataHooksFramework, type DataHooksSelect, type DatabaseConfig, type DisabledRow, type DoctorConfig, type EntitiesConfig, type EntitlementPlansSource, type EntitlementsConfig, type EntityConfig, type EnvFileConfig, type EnvironmentConfig, type ExpandedConfig, type ExposeConfig, type ExposePrivilege, type ExposeRole, type ExtrasDomain, type ExtrasFunction, type ExtrasHook, type ExtrasHookFunction, type ExtrasTable, FIELD_FORMATS, type FactoriesGeneratorOptions, type FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorColumn, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorNoun, type GeneratorTable, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaGeneratorOptions, type JsonSchemaSource, type JsonSchemaTarget, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type NuqsGeneratorOptions, type OpenApiConfig, type OwnTablePolicies, type PostgresColumn, type PostgresFunction, type PostgresFunctionArg, type PowerSyncGenConfig, type Privilege, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, type RealtimeConfig, type RelationsConfig, type ResolveInput, type ResolvedConfig, type ResolvedExpose, type ResolvedExtensions, type ResolvedSeedConfig, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SeedDefaultsConfig, type SeedSampleConfig, type SeedSampleSize, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlBlockDefaults, type SqlConfig, type SqlInput, type SqlWorkflow, type StandardSchemaGeneratorOptions, type SubjectConfig, type SubjectPermission, type SubjectSearch, type SubjectTeam, type SubjectsConfig, type TableConfig, type TenantConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type ValibotGeneratorOptions, type VectorDistance, type VectorSearchConfig, type ZodFlavor, type ZodGeneratorOptions, blockEntities, blockEntityRenames, blockEntrySource, blockEventRenames, blockFormerFunctions, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
@@ -1,8 +1,8 @@
1
- import { _ as resolveJsonSchema, i as blockFormerFunctions, n as blockEntityRenames, o as blockSubjectTypes, r as blockEventRenames, t as blockEntities, v as CONFIG_DEFAULTS } from "../block-subjects-9KU6Q6-3.js";
2
- import { A as blockEntrySource, D as CONFIG_GROUPS, F as INTEGRATION_INFO, I as INTEGRATION_NAMES, L as SKILLS_AGENTS, M as groupConfig, N as groupEntries, O as RENAMED_BLOCK_KEYS, P as GEN_TASKS, j as flattenConfig, k as RENAMED_CONFIG_KEYS } from "../config-ekflaCnS.js";
1
+ import { _ as resolveJsonSchema, i as blockFormerFunctions, n as blockEntityRenames, o as blockSubjectTypes, r as blockEventRenames, t as blockEntities, v as CONFIG_DEFAULTS } from "../block-subjects-B9hb1LLk.js";
2
+ import { A as blockEntrySource, D as CONFIG_GROUPS, F as INTEGRATION_INFO, I as INTEGRATION_NAMES, L as SKILLS_AGENTS, M as groupConfig, N as groupEntries, O as RENAMED_BLOCK_KEYS, P as GEN_TASKS, j as flattenConfig, k as RENAMED_CONFIG_KEYS } from "../config-CAjlOSQY.js";
3
3
  import { a as tenantClaimPaths, r as claimPaths, t as DEFAULT_CLAIMS } from "../claims-CqTr_N1n.js";
4
- import { A as APP_ON_DELETE_ACTIONS, D as APP_COLUMN_ACCESS, M as APP_TABLE_EVENT_KINDS, O as APP_COLUMN_FORMATS, R as DEFAULT_ACTIVE_TENANT, V as tenantNameOf, j as APP_ROLLUP_AGGREGATES, k as APP_COLUMN_TYPES } from "../instances-DJxWRqXk.js";
4
+ import { A as APP_ON_DELETE_ACTIONS, D as APP_COLUMN_ACCESS, M as APP_TABLE_EVENT_KINDS, O as APP_COLUMN_FORMATS, R as DEFAULT_ACTIVE_TENANT, V as tenantNameOf, j as APP_ROLLUP_AGGREGATES, k as APP_COLUMN_TYPES } from "../instances-z6DJn2Gr.js";
5
5
  import { i as FIELD_FORMATS } from "../field-formats-sLYMh1ZK.js";
6
- import { a as factories, c as resolveConfig, i as nuqs, l as providerApiProblem, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod } from "../config-LOwFAFpo.js";
6
+ import { a as factories, c as resolveConfig, i as nuqs, l as providerApiProblem, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod } from "../config-Bx3UYp8b.js";
7
7
  import { n as jsonSchema, t as buildJsonSchema } from "../json-schema-COU-5CpW.js";
8
8
  export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, FIELD_FORMATS, GEN_TASKS, INTEGRATION_INFO, INTEGRATION_NAMES, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, SKILLS_AGENTS, blockEntities, blockEntityRenames, blockEntrySource, blockEventRenames, blockFormerFunctions, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
@@ -1,8 +1,8 @@
1
- import { c as withBlockSubjects, v as CONFIG_DEFAULTS } from "./block-subjects-9KU6Q6-3.js";
2
- import { j as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-ekflaCnS.js";
1
+ import { c as withBlockSubjects, v as CONFIG_DEFAULTS } from "./block-subjects-B9hb1LLk.js";
2
+ import { j as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-CAjlOSQY.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 { V as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-DJxWRqXk.js";
5
+ import { V as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-z6DJn2Gr.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-COU-5CpW.js";
7
7
  // src/config/authorization.ts
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { F as linkNeedsRelations, I as PRESET_CATALOG, z as asBlocksConfig } from "./instances-DJxWRqXk.js";
1
+ import { F as linkNeedsRelations, I as PRESET_CATALOG, z as asBlocksConfig } from "./instances-z6DJn2Gr.js";
2
2
  import { t as DEFAULT_TENANT } from "./entity-naming-BES3pkQI.js";
3
3
  import { a as QUALITY, c as SAAS_LINKED, i as PUBLIC_MEDIA, l as TICKETS, n as CONTROLLED_DOCUMENTS, o as QUOTE_TO_ORDER, r as ERP, s as SAAS } from "./preset-blocks-C0y2C2k5.js";
4
4
  import { t as canonicalJson } from "./canonical-json-CTT9fC4F.js";
@@ -1,12 +1,12 @@
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-BlBju7Wa.js";
3
- import { Bt as SubjectsConfig, Ft as RelationKindOptions, _ as OwnTablePolicies, a as BlockConfigOf, c as BlockScope, d as DisabledRow, g as NamedInstance, h as InstanceOn, i as BlockConfig, l as BlocksConfig, nn as BlockNameRegistry, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, s as BlockName, t as AccessBlockConfig, tn as TablesOf, v as ResolvedBlock, y as TenantScopeConfig } from "./blocks-LZklPzC5.js";
4
- import { Ar as PresetAccess, Br as PresetTenantName, C as BlockWorker, Cr as EntityRename, Gr as DoctorConfig, Ir as PresetInstance, Kr as EnvFileConfig, Nr as PresetFieldKey, Qr as OpenApiConfig, Rr as PresetScope, Sr as EntityNoun, Xr as KeysConfig, Yr as IntegrationName, b as BlockEnvKey, bi as BlockSchedule, fi as ActionDescriptor, fn as FieldFormatName, g as PartDefaults, i as BlockCategory, jr as PresetConventions, kr as Preset, ln as FIELD_FORMAT_NAMES, mt as PortName, ni as SpecOutputConfig, qr as GenConfig, ri as SpecsConfig, ti as SkillsConfig, x as BlockProvider, xi as DefaultAutomation, xr as EntityNames } from "./define-block-By-LUpM_.js";
3
+ import { Bt as SubjectsConfig, Ft as RelationKindOptions, _ as OwnTablePolicies, a as BlockConfigOf, c as BlockScope, d as DisabledRow, g as NamedInstance, h as InstanceOn, i as BlockConfig, l as BlocksConfig, nn as BlockNameRegistry, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, s as BlockName, t as AccessBlockConfig, tn as TablesOf, v as ResolvedBlock, y as TenantScopeConfig } from "./blocks-DvWEz8mQ.js";
4
+ import { Ar as PresetAccess, Br as PresetTenantName, C as BlockWorker, Cr as EntityRename, Gr as DoctorConfig, Ir as PresetInstance, Kr as EnvFileConfig, Nr as PresetFieldKey, Qr as OpenApiConfig, Rr as PresetScope, Sr as EntityNoun, Xr as KeysConfig, Yr as IntegrationName, b as BlockEnvKey, bi as BlockSchedule, fi as ActionDescriptor, fn as FieldFormatName, g as PartDefaults, i as BlockCategory, jr as PresetConventions, kr as Preset, ln as FIELD_FORMAT_NAMES, mt as PortName, ni as SpecOutputConfig, qr as GenConfig, ri as SpecsConfig, ti as SkillsConfig, x as BlockProvider, xi as DefaultAutomation, xr as EntityNames } from "./define-block-zK3QnPyG.js";
5
5
  import { a as ScalarKind, i as FieldSpec } from "./table-schema-CwXg7oBz.js";
6
6
  import { n as ReadType } from "./read-type-BmF8GOkz.js";
7
- import { a as BlockSqlEmit, r as BlockSqlAction } from "./audit-actions-Dni5Y4wV.js";
7
+ import { a as BlockSqlEmit, r as BlockSqlAction } from "./audit-actions-DC-AtyWB.js";
8
8
  import { t as GuestAction } from "./guest-actions-DfHHp98H.js";
9
- import { l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions } from "./authorization-Bk6cLL5f.js";
9
+ import { l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions } from "./authorization-Hh9xUm0r.js";
10
10
  import { StandardSchemaV1 } from "@standard-schema/spec";
11
11
  /**
12
12
  * One declared link from an entity of this module to an entity of another
@@ -326,6 +326,7 @@ interface BlockContributions {
326
326
  readonly "share-links": ShareLinkContribution;
327
327
  readonly "state-machine": StateMachineContribution;
328
328
  readonly subjects: SubjectContribution;
329
+ readonly templates: TemplateContribution;
329
330
  }
330
331
  /** `BlockSql.contributes`: one function per generic block it adds to. */
331
332
  type BlockContributes = { readonly [K in keyof BlockContributions]?: (own: BlockSqlContext, target: BlockSqlContext) => readonly BlockContributions[K][]; };
@@ -615,6 +616,47 @@ interface SummarySection {
615
616
  */
616
617
  readonly readAt?: string;
617
618
  }
619
+ /**
620
+ * A template type the contributing block owns. `storage: "rows"` keeps the
621
+ * content as rows of `table` whose template column points at `templates`. ADR 0244.
622
+ */
623
+ interface TemplateContribution {
624
+ readonly type: string;
625
+ readonly storage: "body" | "rows";
626
+ readonly subject?: string;
627
+ /** Qualified `clone(source uuid, overrides jsonb) returns jsonb`. */
628
+ readonly clone?: string;
629
+ /** Qualified table of the root row, for `rows`. */
630
+ readonly table?: string;
631
+ /** The template column of `table`, unquoted. */
632
+ readonly templateColumn?: string;
633
+ /** The id column of `table`. Defaults to `id`. */
634
+ readonly idColumn?: string;
635
+ /** `schema.table` of a 1:1 extension keyed by `template_id`. */
636
+ readonly extension?: string;
637
+ /** JSON Schema for `templates.settings` of this type. */
638
+ readonly settings?: Readonly<Record<string, unknown>>;
639
+ readonly rules?: TemplateRules;
640
+ /** Child tables a pack copies, each referencing the root by `parent`. */
641
+ readonly children?: readonly TemplateChildTable[];
642
+ }
643
+ /** A child table packed and unpacked with a rows template. */
644
+ interface TemplateChildTable {
645
+ readonly table: string;
646
+ /** The column that references the root row. */
647
+ readonly parent: string;
648
+ }
649
+ /** Dates and `{{variables}}` applied when a template becomes a live record. */
650
+ interface TemplateRules {
651
+ readonly dates?: readonly {
652
+ readonly column: string;
653
+ /** `"now"`, or the name of another column on the new row. */
654
+ readonly from: string;
655
+ readonly days: string;
656
+ }[];
657
+ /** Text columns whose `{{name}}` placeholders `overrides.variables` fills. */
658
+ readonly variables?: readonly string[];
659
+ }
618
660
  /** What the contributing block adds to the subject functions. */
619
661
  interface SubjectContribution {
620
662
  /** A section `record_summary` counts. */
@@ -4605,6 +4647,7 @@ interface BlockSqlEntitySubject {
4605
4647
  * when it is installed, without an entry in `blocks.field-history.on`.
4606
4648
  */
4607
4649
  readonly history?: readonly string[];
4650
+ readonly template?: string;
4608
4651
  }
4609
4652
  /**
4610
4653
  * A noun the module names its tables, functions, events, permissions and hooks
@@ -1,13 +1,13 @@
1
- import { a as AuthorizationPersona, c as AuthorizationRequirement, d as AuthorizationTokenHook, f as AuthorizationVersions, i as AuthorizationPermission, l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions, u as AuthorizationScope } from "../authorization-Bk6cLL5f.js";
1
+ import { a as AuthorizationPersona, c as AuthorizationRequirement, d as AuthorizationTokenHook, f as AuthorizationVersions, i as AuthorizationPermission, l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions, u as AuthorizationScope } from "../authorization-Hh9xUm0r.js";
2
2
  import { r as AuthzVersionSource } from "../authz-topic-C7n3kIm_.js";
3
3
  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, an as RequestMemo, en as Authorizer, in as PermissionRef, qt as AuthorizationIntent, rn as AuthzVersionCache, tn as AuthorizerRuntime } from "../types-BlBju7Wa.js";
4
4
  import { _ as SupportAuthorize, g as SubscriberPolicy, i as AuthorizationHooks, v as SupportAuthorizeInput } from "../authorization-hooks-DM_ijJsD.js";
5
5
  import { s as ApiKeyResolverOptions } from "../api-keys-Dqif78kM.js";
6
6
  import { r as CredentialProvider } from "../provider-ChtwfkqL.js";
7
- import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-D7FXhn2i.js";
7
+ import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-CocISf2h.js";
8
8
  import { m as SessionSnapshot } from "../resolve-B9Rn2M5c.js";
9
9
  import { n as ApprovalOptions } from "../server-types-Cf4eX4kr.js";
10
- import { n as BlockTables, t as BlockTable } from "../block-tables-JC1dMLaA.js";
10
+ import { n as BlockTables, t as BlockTable } from "../block-tables-DOGtmm0m.js";
11
11
  /**
12
12
  * The types an authorization library implements or reads, in one entry with no
13
13
  * runtime code. Every slot is versioned `apiVersion: 1`; a breaking change to
@@ -149,6 +149,15 @@ function registeredSubjects(subjects, naming = tenantNames()) {
149
149
  const tenant = entry.tenant === false ? void 0 : column(`${where}.tenant`, entry.tenant ?? naming.rename("organization_id"));
150
150
  if (entry.title !== void 0) column(`${where}.title`, entry.title);
151
151
  if (entry.deletedAt !== void 0) column(`${where}.deletedAt`, entry.deletedAt);
152
+ const template = entry.template;
153
+ if (typeof template === "string") column(`${where}.template`, template);
154
+ else if (template !== void 0) {
155
+ column(`${where}.template.column`, template.column);
156
+ for (const [index, child] of (template.children ?? []).entries()) {
157
+ column(`${where}.template.children[${String(index)}].column`, child.column);
158
+ if (typeof child.table !== "string" || !/^[a-z_][a-z0-9_]{0,62}(\.[a-z_][a-z0-9_]{0,62})?$/.test(child.table)) throw new TypeError(`${where}.template.children[${String(index)}].table must be "table" or "schema.table"`);
159
+ }
160
+ }
152
161
  if (entry.url !== void 0) for (const [, name] of entry.url.matchAll(PLACEHOLDER)) column(`${where}.url {${name ?? ""}}`, name);
153
162
  for (const [action, value] of Object.entries(entry.permissions ?? {})) checkPermission(`${where}.permissions.${action}`, action, value);
154
163
  const readAccess = entry.readAccess;
@@ -200,6 +209,8 @@ function subjectColumns(entry, tenant) {
200
209
  if (entry.tenant !== false) columns.push(["tenant", entry.tenant ?? tenantNames(tenant).rename("organization_id")]);
201
210
  if (entry.title !== void 0) columns.push(["title", entry.title]);
202
211
  if (entry.deletedAt !== void 0) columns.push(["deletedAt", entry.deletedAt]);
212
+ if (typeof entry.template === "string") columns.push(["template", entry.template]);
213
+ else if (entry.template !== void 0) columns.push(["template.column", entry.template.column]);
203
214
  for (const [, name] of entry.url?.matchAll(PLACEHOLDER) ?? []) if (name !== void 0) columns.push([`url {${name}}`, name]);
204
215
  if (entry.rank !== void 0) {
205
216
  columns.push(["rank.column", entry.rank.column]);
@@ -1,4 +1,4 @@
1
- import { a as ClientAuth } from "./bind-DWElQa6I.js";
1
+ import { a as ClientAuth } from "./bind-CC5-eBT-.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,4 +1,4 @@
1
- import { di as ActionContext, li as Action, ui as ActionCall } from "./define-block-By-LUpM_.js";
1
+ import { di as ActionContext, li as Action, ui as ActionCall } from "./define-block-zK3QnPyG.js";
2
2
  import { f as Result } from "./result-CMqlHv82.js";
3
3
  import { StandardSchemaV1 } from "@standard-schema/spec";
4
4
  /** A record a conversion reads from or creates: its subject type and id. */
@@ -1,9 +1,9 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { En as PresetName, ci as AppOnDeleteAction, ei as APP_ON_DELETE_ACTIONS, jn as CreateDesign, lr as PresetInput, m as BlockSqlAccessProvider, mr as PresetSpec, oi as AppColumnType, ri as AppColumnAccess } from "../context-iduX3Fsn.js";
3
- 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-Dfa7b0KI.js";
4
- import { kr as Preset } from "../define-block-By-LUpM_.js";
2
+ import { En as PresetName, ci as AppOnDeleteAction, ei as APP_ON_DELETE_ACTIONS, jn as CreateDesign, lr as PresetInput, m as BlockSqlAccessProvider, mr as PresetSpec, oi as AppColumnType, ri as AppColumnAccess } from "../context-BIBqUjVz.js";
3
+ 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-C2qXUXjK.js";
4
+ import { kr as Preset } from "../define-block-zK3QnPyG.js";
5
5
  import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-DtX4ic1F.js";
6
- import { b as DesignChange } from "../index-Bsd8P1iQ.js";
6
+ import { b as DesignChange } from "../index-QpKsKUbn.js";
7
7
  /** What `checkDesign` returns. */
8
8
  export type DesignCheck = {
9
9
  readonly ok: true;
@@ -1,6 +1,6 @@
1
- import { A as APP_ON_DELETE_ACTIONS } from "../instances-DJxWRqXk.js";
2
- 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-C6JAWCnH.js";
3
- import { m as diffDesigns } from "../preset-8Xh21Uyw.js";
1
+ import { A as APP_ON_DELETE_ACTIONS } from "../instances-z6DJn2Gr.js";
2
+ 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-CkGGYXKd.js";
3
+ import { m as diffDesigns } from "../preset-CPUA9haY.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,8 +1,8 @@
1
- import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-Dfa7b0KI.js";
2
- import { jn as CreateDesign, lr as PresetInput } from "../../context-iduX3Fsn.js";
1
+ import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-C2qXUXjK.js";
2
+ import { jn as CreateDesign, lr as PresetInput } from "../../context-BIBqUjVz.js";
3
3
  import { st as SchemaMeta } from "../../types-BlBju7Wa.js";
4
4
  import { c as SpecDiagnostic } from "../../format-BT0Z3V54.js";
5
- import { s as AuthorizationProvider } from "../../authorization-Bk6cLL5f.js";
5
+ import { s as AuthorizationProvider } from "../../authorization-Hh9xUm0r.js";
6
6
  /**
7
7
  * The parts of `@supabase/lite` that `liteStack()` uses, typed structurally so
8
8
  * the optional peer stays out of the published types.
@@ -1,7 +1,7 @@
1
1
  import { n as loadLite, t as LITE_INSTALL } from "../../runtime-qslVrC9l.js";
2
- import { b as appDefaultError } from "../../instances-DJxWRqXk.js";
2
+ import { b as appDefaultError } from "../../instances-z6DJn2Gr.js";
3
3
  import { t as defineApi } from "../../api-CSUt1Mfm.js";
4
- import { n as loadProject } from "../../project-C6JAWCnH.js";
4
+ import { n as loadProject } from "../../project-CkGGYXKd.js";
5
5
  import { i as fillTemplate } from "../../access-sql-DH2LbcQe.js";
6
6
  // src/create/lite/apply.ts
7
7
  const MISSING_EXTENSION = /extension "([^"]+)" is not available/u;
@@ -20,9 +20,13 @@ interface CrudQueueLike {
20
20
  * plugins and validation run as they do online. `I` is the table's insert type
21
21
  * and `K` its primary key; every generated repository fits.
22
22
  */
23
+ /** The write option a replay passes: keep the values the device recorded. */
24
+ interface UploadWriteArgs {
25
+ readonly override: true;
26
+ }
23
27
  interface UploadRepository<I = Record<string, unknown>, K = string> {
24
- upsert(data: I): PromiseLike<Result<unknown>>;
25
- update(id: K, patch: Partial<I>): PromiseLike<Result<unknown>>;
28
+ upsert(data: I, args?: UploadWriteArgs): PromiseLike<Result<unknown>>;
29
+ update(id: K, patch: Partial<I>, args?: UploadWriteArgs): PromiseLike<Result<unknown>>;
26
30
  delete(id: K): PromiseLike<Result<unknown>>;
27
31
  }
28
32
  /**
@@ -30,7 +34,7 @@ interface UploadRepository<I = Record<string, unknown>, K = string> {
30
34
  * `PUT` inserts with `create`, and a `DELETE` calls `delete`.
31
35
  */
32
36
  interface CreateUploadRepository<I = Record<string, unknown>, K = string> {
33
- create(data: I): PromiseLike<Result<unknown>>;
37
+ create(data: I, args?: UploadWriteArgs): PromiseLike<Result<unknown>>;
34
38
  delete(id: K): PromiseLike<Result<unknown>>;
35
39
  }
36
40
  /** Replays one queued change. */
@@ -0,0 +1,92 @@
1
+ // src/sql/modules/deadlines-values.ts
2
+ /** The states of a version of a rule set. */
3
+ const RULE_VERSION_STATUSES = ["draft", "approved"];
4
+ /** What one group of a rule set version yields for a subject. */
5
+ const DEADLINE_RESULTS = [
6
+ "due",
7
+ "unknown",
8
+ "pending",
9
+ "undated",
10
+ "not_covered",
11
+ "not_applicable",
12
+ "not_required",
13
+ "barred"
14
+ ];
15
+ /** Where a deadline stands: pending until an action satisfies it. */
16
+ const DEADLINE_STATES = ["pending", "satisfied"];
17
+ const OFFSET_UNITS = [
18
+ "days",
19
+ "business_days",
20
+ "months"
21
+ ];
22
+ /** How a date that lands on a non-business day moves after the roll. */
23
+ const DEADLINE_ADJUSTMENTS = [
24
+ "none",
25
+ "next_business_day",
26
+ "previous_business_day"
27
+ ];
28
+ /** The largest count a rule may carry, in its unit. */
29
+ const OFFSET_LIMIT = 3650;
30
+ /** The approval state of a rule, an exception or a counting block. */
31
+ const PART_STATUSES = [
32
+ "approved",
33
+ "draft",
34
+ "review_required"
35
+ ];
36
+ /** What a settled exception decides; `review_required` never decides. */
37
+ const EXCEPTION_RESULTS = [
38
+ "barred",
39
+ "not_applicable",
40
+ "not_required",
41
+ "review_required"
42
+ ];
43
+ /** The days a counting block can roll a last day past. */
44
+ const ROLL_DAYS = [
45
+ "saturday",
46
+ "sunday",
47
+ "holiday"
48
+ ];
49
+ const WEEKDAYS = [
50
+ "monday",
51
+ "tuesday",
52
+ "wednesday",
53
+ "thursday",
54
+ "friday",
55
+ "saturday",
56
+ "sunday"
57
+ ];
58
+ /** The listed day an observed shift reads. */
59
+ const OBSERVED_FALLS_ON = [
60
+ "saturday",
61
+ "sunday",
62
+ "other_than_sunday"
63
+ ];
64
+ /** Where an observed shift moves a holiday, strictly before or after it. */
65
+ const OBSERVED_MOVES = [
66
+ "preceding_friday",
67
+ "following_monday",
68
+ "preceding_sunday",
69
+ "following_sunday"
70
+ ];
71
+ /** The largest `meta` object, in bytes of its jsonb text. */
72
+ const META_LIMIT = 32768;
73
+ /** The fact a monthly count reads its first furnishing month from. */
74
+ const FIRST_FURNISHING_FACT = "first_furnishing_date";
75
+ /** The fact that ends a monthly count's months. */
76
+ const LAST_FURNISHING_FACT = "last_furnishing_date";
77
+ /** A name of a fact, a group or an exception. */
78
+ const DEADLINE_NAME = /^[a-z][a-z0-9_]{0,62}$/u;
79
+ /** A rule key, long enough for `<group>__<cell>`. */
80
+ const RULE_KEY = /^[a-z][a-z0-9_]{0,127}$/u;
81
+ /** The longest exception note. */
82
+ const NOTE_LIMIT = 2e3;
83
+ const ISO_DATE = /^(\d{4})-(\d{2})-(\d{2})$/u;
84
+ /** A plain object, not an array or null. */
85
+ function isRecord(value) {
86
+ return typeof value === "object" && value !== null && !Array.isArray(value);
87
+ }
88
+ /** Whether an object has its own key. */
89
+ function has(value, key) {
90
+ return Object.hasOwn(value, key);
91
+ }
92
+ export { RULE_KEY as _, EXCEPTION_RESULTS as a, has as b, LAST_FURNISHING_FACT as c, OBSERVED_FALLS_ON as d, OBSERVED_MOVES as f, ROLL_DAYS as g, PART_STATUSES as h, DEADLINE_STATES as i, META_LIMIT as l, OFFSET_UNITS as m, DEADLINE_NAME as n, FIRST_FURNISHING_FACT as o, OFFSET_LIMIT as p, DEADLINE_RESULTS as r, ISO_DATE as s, DEADLINE_ADJUSTMENTS as t, NOTE_LIMIT as u, RULE_VERSION_STATUSES as v, isRecord as x, WEEKDAYS as y };
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "./result-CMqlHv82.js";
3
3
  import { D as BlockEventPattern, Dt as Events, Ot as MergedEventMap, T as BlockEvent, Tt as EventMapOf, k as BlockEventsMatching, o as EventHub, wt as EventMap } from "./events-DN9PAcjq.js";
4
- import { Wt as BlockOptionsSchema, m as InstanceKeys, p as EntityConfig } from "./blocks-LZklPzC5.js";
4
+ import { Wt as BlockOptionsSchema, m as InstanceKeys, p as EntityConfig } from "./blocks-DvWEz8mQ.js";
5
5
  import { n as BlockOptions, r as BlockTemporalOptions, s as BlockTenantOptions } from "./block-helpers-rTsuHt6v.js";
6
6
  import { a as BlockTransportMiddleware, n as BlockHooks } from "./block-hooks-FM9t7ol_.js";
7
7
  import { i as RpcClient, r as DbTransportSource, t as BlockTransport } from "./block-transport-CP4wAHU-.js";
@@ -5,7 +5,7 @@ import { t as BlockTransport } from "./block-transport-CP4wAHU-.js";
5
5
  import { T as ErrorMapper, t as AsyncResult } from "./result-CMqlHv82.js";
6
6
  import { n as Logger } from "./logger-0LfhvwE4.js";
7
7
  import { t as StandardSchemaV1 } from "./standard-CiOWpeZL.js";
8
- import { An as Attachment, Ln as AttachmentStorage, Mn as AttachmentDownload, Vn as Attachments, cr as RecordRequestListOptions, er as AccessRequests, sr as RecordAccessRequest } from "./define-block-By-LUpM_.js";
8
+ import { An as Attachment, Ln as AttachmentStorage, Mn as AttachmentDownload, Vn as Attachments, cr as RecordRequestListOptions, er as AccessRequests, sr as RecordAccessRequest } from "./define-block-zK3QnPyG.js";
9
9
  import { p as ApprovalStatus } from "./approvals-DnabEGo2.js";
10
10
  import { r as BlockTemporalOptions } from "./block-helpers-rTsuHt6v.js";
11
11
  /**
@@ -1,4 +1,4 @@
1
- import { t as AuthSnapshot } from "./bind-DWElQa6I.js";
1
+ import { t as AuthSnapshot } from "./bind-CC5-eBT-.js";
2
2
  import { n as AuthSession } from "./view-CVXHgadI.js";
3
3
  /** Verified claims, read by name. */
4
4
  type ClaimsRecord = Readonly<Record<string, unknown>>;
@@ -1,6 +1,6 @@
1
1
  import { t as BlockTransport } from "./block-transport-CP4wAHU-.js";
2
2
  import { i as EventSink } from "./cloud-event-Dj2V1lQw.js";
3
- import { jn as AttachmentBucket } from "./define-block-By-LUpM_.js";
3
+ import { jn as AttachmentBucket } from "./define-block-zK3QnPyG.js";
4
4
  import { o as Knowledge } from "./knowledge-vrO4Poa5.js";
5
5
  import { _ as JobHandler } from "./types-CTb0Uroz.js";
6
6
  import { t as AsyncResult } from "./result-CMqlHv82.js";
@@ -1,14 +1,14 @@
1
1
  import { b as DbError, f as Result } from "./result-CMqlHv82.js";
2
2
  import { o as EventHub } from "./events-DN9PAcjq.js";
3
3
  import { c as BlockTenant } from "./block-helpers-rTsuHt6v.js";
4
- import { fr as GeneratedBlocks } from "./define-block-By-LUpM_.js";
4
+ import { fr as GeneratedBlocks } from "./define-block-zK3QnPyG.js";
5
5
  import { tt as TemplateValues } from "./bucket-DJu58KBb.js";
6
6
  import { st as QuerySpec } from "./db-blocks-CzhzWfvR.js";
7
- import { n as DataEngine } from "./data-engine-BKO5EAzN.js";
8
- import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-4KYLvvTB.js";
9
- import { t as ClientPorts } from "./ports-C5BEHQi6.js";
10
- import { a as ClientAuth } from "./bind-DWElQa6I.js";
11
- import { a as LiveSource, r as LiveCountSeed } from "./index-D9Sb8Ju5.js";
7
+ import { n as DataEngine } from "./data-engine-0uVsKWaB.js";
8
+ import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-_7QKu4b5.js";
9
+ import { t as ClientPorts } from "./ports-TvLRuWgJ.js";
10
+ import { a as ClientAuth } from "./bind-CC5-eBT-.js";
11
+ import { a as LiveSource, r as LiveCountSeed } from "./index-DNitLhgU.js";
12
12
  import { SupabaseClient } from "@supabase/supabase-js";
13
13
  import { QueryClient } from "@tanstack/query-core";
14
14
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -1,7 +1,7 @@
1
1
  import { f as Bookings, m as PlacedBooking, n as Booking, r as BookingCustomer, u as BookingSlot } from "./bookings-CBRjx_ZD.js";
2
2
  import { t as EventCalendarEvent } from "./event-calendar-aJSOUoNM.js";
3
3
  import { b as DbError } from "./result-CMqlHv82.js";
4
- import { n as Controller } from "./controller-DFGNChQL.js";
4
+ import { n as Controller } from "./controller-DBD6WWDa.js";
5
5
  import { t as VisibleRange } from "./range-BN3kpJAE.js";
6
6
  /** A booking row as `hold_booking`, `list_bookings` and the others return it. */
7
7
  declare function bookingOf(value: unknown): Booking;
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { r as TimeEntry } from "./manifest-BbC83cJB.js";
2
+ import { r as TimeEntry } from "./manifest-DOUGC7xP.js";
3
3
  import { n as MetricDefinition } from "./metric-definition-2KQYeUZ1.js";
4
4
  import { t as CloudEvent } from "./cloud-event-Dj2V1lQw.js";
5
5
  import { et as RecordRef } from "./types-BlBju7Wa.js";
@@ -7,7 +7,7 @@ import { t as StandardSchemaV1 } from "./standard-CiOWpeZL.js";
7
7
  import { et as RecordRef } from "./types-BlBju7Wa.js";
8
8
  import { n as BlockOptions } from "./block-helpers-rTsuHt6v.js";
9
9
  import { t as AsyncResult } from "./result-CMqlHv82.js";
10
- import { E as RecordBinding, G as EntitySchema, L as RecordRowInput, M as RecordBindingWrite, c as BlockOf } from "./define-block-By-LUpM_.js";
10
+ import { E as RecordBinding, G as EntitySchema, L as RecordRowInput, M as RecordBindingWrite, c as BlockOf } from "./define-block-zK3QnPyG.js";
11
11
  import { Dt as Events } from "./events-DN9PAcjq.js";
12
12
  /** Where a work order is in its life. */
13
13
  declare const WORK_ORDER_STATUSES: readonly ["unscheduled", "scheduled", "en_route", "on_site", "done", "cancelled"];
@@ -5,7 +5,7 @@ import { T as ErrorMapper, t as AsyncResult } from "./result-CMqlHv82.js";
5
5
  import { n as Logger } from "./logger-0LfhvwE4.js";
6
6
  import { h as FilterQuery } from "./filter-query-CJ3wcwqH.js";
7
7
  import { r as BlockTemporalOptions } from "./block-helpers-rTsuHt6v.js";
8
- import { G as EntitySchema, c as BlockOf } from "./define-block-By-LUpM_.js";
8
+ import { G as EntitySchema, c as BlockOf } from "./define-block-zK3QnPyG.js";
9
9
  import { n as AssignmentEventData } from "./block-events-records-BhqpDl-4.js";
10
10
  import { Dt as Events } from "./events-DN9PAcjq.js";
11
11
  /** How a queue picks the next owner. */