better-supabase 0.59.0 → 0.61.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 (757) hide show
  1. package/api/naming.json +1994 -0
  2. package/dist/{account-parts-DxSyD4yi.d.ts → account-parts-DtC5voD1.d.ts} +3 -3
  3. package/dist/{activities-BkfN6cef.d.ts → activities-BMQuBkrQ.d.ts} +8 -8
  4. package/dist/{adapter-base-BAjra5Eb.js → adapter-base-DGiRWzEo.js} +2 -2
  5. package/dist/{agents-CbsEgoLN.d.ts → agents-3wTmHYZr.d.ts} +6 -6
  6. package/dist/{agents-B8kXBfH9.d.ts → agents-NaSREeo_.d.ts} +4 -4
  7. package/dist/{ai-cache-DfbYR_jG.d.ts → ai-cache-CKOJ9cLZ.d.ts} +4 -4
  8. package/dist/{ai-chat-DyffOt16.d.ts → ai-chat-C8FEgeTd.d.ts} +4 -4
  9. package/dist/{ai-guardrails-y6RVvDOH.d.ts → ai-guardrails-fzpJmgzI.d.ts} +3 -3
  10. package/dist/{ai-schedules-BxBsTpji.d.ts → ai-schedules-CtxaSWA1.d.ts} +5 -5
  11. package/dist/ai-sdk/agents/index.d.ts +2 -2
  12. package/dist/ai-sdk/batches/index.d.ts +3 -3
  13. package/dist/ai-sdk/cache/index.d.ts +1 -1
  14. package/dist/ai-sdk/chat/index.d.ts +2 -2
  15. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  16. package/dist/ai-sdk/files/index.d.ts +1 -1
  17. package/dist/ai-sdk/index.d.ts +8 -8
  18. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  19. package/dist/ai-sdk/memory/index.d.ts +3 -3
  20. package/dist/ai-sdk/workflow/index.d.ts +4 -4
  21. package/dist/ai-sdk/workflow/index.js +1 -1
  22. package/dist/{api-DAJJ7N_0.js → api-Q23GAwx1.js} +1 -1
  23. package/dist/{api-keys-BlfwKpXq.d.ts → api-keys-Bfk9mJgz.d.ts} +4 -4
  24. package/dist/{api-wRlj_7so.d.ts → api-pGkHTqH6.d.ts} +5 -5
  25. package/dist/{app-tables-DBmFqdFN.d.ts → app-tables-BHoeMC9w.d.ts} +1 -1
  26. package/dist/{approvals-Bbxeiywy.d.ts → approvals-B1mzlyzk.d.ts} +12 -6
  27. package/dist/{approvals-Clg-7ghA.js → approvals-D7Xhpd52.js} +8 -6
  28. package/dist/{assistant-53zK5w6Q.d.ts → assistant-BQAjAXDe.d.ts} +2 -2
  29. package/dist/astro/index.d.ts +6 -6
  30. package/dist/astro/index.js +4 -4
  31. package/dist/{auth-module-D_RA-X_y.js → auth-module-B19zCsb4.js} +1 -1
  32. package/dist/{authorization-Dq47C4vf.d.ts → authorization-glyinWcf.d.ts} +9 -3
  33. package/dist/{authorization-hooks-DtuVzDBf.d.ts → authorization-hooks-Oe0WJTn2.d.ts} +2 -2
  34. package/dist/{authz-refresh-CNV_LFEh.js → authz-refresh-27sp45FG.js} +1 -1
  35. package/dist/{banking-reads-4m0_lltt.js → banking-reads-Baaatsuj.js} +1 -1
  36. package/dist/{base64-CEBz6-Jj.js → base64-DgNIlSAS.js} +1 -1
  37. package/dist/better-result/index.d.ts +3 -3
  38. package/dist/{bind-Bx0H1vAc.d.ts → bind-B-NW7-Fd.d.ts} +8 -8
  39. package/dist/{block-controller-CHtFwmpj.d.ts → block-controller-Dy-Jyy8A.d.ts} +2 -2
  40. package/dist/{block-env-DUn5reXc.d.ts → block-env-BN4cyqTj.d.ts} +4 -4
  41. package/dist/{block-event-listener-B1JTV_Ca.d.ts → block-event-listener-CQrt2JR-.d.ts} +1 -1
  42. package/dist/{block-events-records-x6GNmg6M.d.ts → block-events-records-CUCsDp0S.d.ts} +2 -2
  43. package/dist/{block-helpers-D0QSs8ss.d.ts → block-helpers-DDotKGAf.d.ts} +1 -1
  44. package/dist/{block-hooks-StmUvtuT.d.ts → block-hooks-b7-RUIxS.d.ts} +2 -2
  45. package/dist/{block-subjects-DzCWFD-t.d.ts → block-subjects-CG1x9djp.d.ts} +1 -1
  46. package/dist/{block-tables-BaLXCQha.d.ts → block-tables-CkbJsNys.d.ts} +1 -1
  47. package/dist/{block-transport-BNMvuuyC.d.ts → block-transport-Bqne7_GN.d.ts} +2 -2
  48. package/dist/blocks/access-requests/index.d.ts +3 -3
  49. package/dist/blocks/accounting/index.d.ts +3 -3
  50. package/dist/blocks/acknowledgements/index.d.ts +2 -2
  51. package/dist/blocks/activities/index.d.ts +6 -6
  52. package/dist/blocks/activities/index.js +1 -1
  53. package/dist/blocks/advisories/index.d.ts +5 -5
  54. package/dist/blocks/agent-checkout/index.d.ts +7 -7
  55. package/dist/blocks/agent-checkout/index.js +2 -2
  56. package/dist/blocks/agents/index.d.ts +5 -5
  57. package/dist/blocks/ai-cache/index.d.ts +3 -3
  58. package/dist/blocks/ai-chat/index.d.ts +4 -4
  59. package/dist/blocks/ai-evals/index.d.ts +4 -4
  60. package/dist/blocks/ai-files/index.d.ts +3 -3
  61. package/dist/blocks/ai-guardrails/index.d.ts +4 -4
  62. package/dist/blocks/ai-keys/index.d.ts +4 -4
  63. package/dist/blocks/ai-schedules/index.d.ts +3 -3
  64. package/dist/blocks/announcements/index.d.ts +8 -8
  65. package/dist/blocks/api-keys/index.d.ts +3 -3
  66. package/dist/blocks/appraisals/index.d.ts +5 -5
  67. package/dist/blocks/approvals/index.d.ts +3 -3
  68. package/dist/blocks/approvals/index.js +2 -2
  69. package/dist/blocks/assets/index.d.ts +4 -4
  70. package/dist/blocks/assignment/index.d.ts +3 -3
  71. package/dist/blocks/attachments/index.d.ts +10 -10
  72. package/dist/blocks/audit/index.d.ts +4 -4
  73. package/dist/blocks/audit/index.js +1 -1
  74. package/dist/blocks/automations/index.d.ts +12 -12
  75. package/dist/blocks/banking/index.d.ts +3 -3
  76. package/dist/blocks/banking/index.js +1 -1
  77. package/dist/blocks/billable-time/index.d.ts +3 -3
  78. package/dist/blocks/billing/index.d.ts +6 -6
  79. package/dist/blocks/billing/index.js +1 -1
  80. package/dist/blocks/bookings/index.d.ts +3 -3
  81. package/dist/blocks/bulk-actions/index.d.ts +5 -5
  82. package/dist/blocks/calendar/index.d.ts +3 -3
  83. package/dist/blocks/care/index.d.ts +30 -30
  84. package/dist/blocks/care/index.js +8 -8
  85. package/dist/blocks/care-plans/index.d.ts +6 -6
  86. package/dist/blocks/care-plans/index.js +2 -2
  87. package/dist/blocks/cases/index.d.ts +5 -5
  88. package/dist/blocks/catalog/index.d.ts +4 -4
  89. package/dist/blocks/channels/index.d.ts +7 -7
  90. package/dist/blocks/clinical-decision-support/index.d.ts +4 -4
  91. package/dist/blocks/cms/index.d.ts +7 -7
  92. package/dist/blocks/cms/index.js +1 -1
  93. package/dist/blocks/collaboration/index.d.ts +8 -8
  94. package/dist/blocks/collections/index.d.ts +15 -12
  95. package/dist/blocks/collections/index.js +1 -1
  96. package/dist/blocks/comments/index.d.ts +4 -4
  97. package/dist/blocks/commerce/index.d.ts +7 -7
  98. package/dist/blocks/commerce/index.js +1 -1
  99. package/dist/blocks/commissions/index.d.ts +5 -5
  100. package/dist/blocks/compliance/index.d.ts +5 -5
  101. package/dist/blocks/connectors/index.d.ts +4 -4
  102. package/dist/blocks/consents/index.d.ts +5 -5
  103. package/dist/blocks/contacts/index.d.ts +5 -5
  104. package/dist/blocks/contacts/index.js +1 -1
  105. package/dist/blocks/content/index.d.ts +4 -4
  106. package/dist/blocks/contracts/index.d.ts +6 -6
  107. package/dist/blocks/courses/index.d.ts +4 -4
  108. package/dist/blocks/courses/index.js +2 -2
  109. package/dist/blocks/created-by/index.d.ts +3 -3
  110. package/dist/blocks/crm/index.d.ts +18 -18
  111. package/dist/blocks/crm/index.js +5 -5
  112. package/dist/blocks/custom-fields/index.d.ts +2 -2
  113. package/dist/blocks/dam/index.d.ts +6 -6
  114. package/dist/blocks/data-lifecycle/index.d.ts +3 -3
  115. package/dist/blocks/deadlines/index.d.ts +5 -5
  116. package/dist/blocks/deals/index.d.ts +3 -3
  117. package/dist/blocks/dispatch/index.d.ts +4 -4
  118. package/dist/blocks/document-templates/index.d.ts +6 -6
  119. package/dist/blocks/documents/index.d.ts +4 -4
  120. package/dist/blocks/documents/index.js +1 -1
  121. package/dist/blocks/domains/index.d.ts +6 -6
  122. package/dist/blocks/donations/index.d.ts +6 -6
  123. package/dist/blocks/drive/index.d.ts +6 -6
  124. package/dist/blocks/drive/index.js +1 -1
  125. package/dist/blocks/e-prescribing/index.d.ts +4 -4
  126. package/dist/blocks/employees/index.d.ts +3 -3
  127. package/dist/blocks/enrichment/index.d.ts +3 -3
  128. package/dist/blocks/enrollments/index.d.ts +4 -4
  129. package/dist/blocks/entitlements/index.d.ts +4 -4
  130. package/dist/blocks/events/index.d.ts +5 -5
  131. package/dist/blocks/events/index.js +1 -1
  132. package/dist/blocks/expenses/index.d.ts +5 -5
  133. package/dist/blocks/field-history/index.d.ts +3 -3
  134. package/dist/blocks/filespace/index.d.ts +9 -9
  135. package/dist/blocks/filespace/index.js +1 -1
  136. package/dist/blocks/finance/index.d.ts +6 -6
  137. package/dist/blocks/finance/index.js +3 -3
  138. package/dist/blocks/flags/index.d.ts +5 -5
  139. package/dist/blocks/forecasts/index.d.ts +3 -3
  140. package/dist/blocks/forms/index.d.ts +4 -4
  141. package/dist/blocks/funding/index.d.ts +5 -5
  142. package/dist/blocks/funding/index.js +1 -1
  143. package/dist/blocks/goals/index.d.ts +3 -3
  144. package/dist/blocks/governance/index.d.ts +5 -5
  145. package/dist/blocks/guests/index.d.ts +3 -3
  146. package/dist/blocks/hiring/index.d.ts +3 -3
  147. package/dist/blocks/hiring/index.js +1 -1
  148. package/dist/blocks/identities/index.d.ts +5 -5
  149. package/dist/blocks/imports/index.d.ts +6 -6
  150. package/dist/blocks/inbox/index.d.ts +10 -10
  151. package/dist/blocks/incidents/index.d.ts +5 -5
  152. package/dist/blocks/index.d.ts +12 -12
  153. package/dist/blocks/index.js +2 -2
  154. package/dist/blocks/inspections/index.d.ts +6 -6
  155. package/dist/blocks/inventory/index.d.ts +3 -3
  156. package/dist/blocks/invoices/index.d.ts +6 -6
  157. package/dist/blocks/invoices/index.js +1 -1
  158. package/dist/blocks/knowledge/index.d.ts +3 -3
  159. package/dist/blocks/lead-scoring/index.d.ts +4 -4
  160. package/dist/blocks/learning/index.d.ts +5 -5
  161. package/dist/blocks/leases/index.d.ts +6 -6
  162. package/dist/blocks/leave/index.d.ts +3 -3
  163. package/dist/blocks/ledger/index.d.ts +6 -6
  164. package/dist/blocks/legal-entities/index.d.ts +6 -6
  165. package/dist/blocks/lims/index.d.ts +6 -6
  166. package/dist/blocks/mail-sync/index.d.ts +5 -5
  167. package/dist/blocks/maintenance/index.d.ts +4 -4
  168. package/dist/blocks/manufacturing/index.d.ts +7 -7
  169. package/dist/blocks/medications/index.d.ts +4 -4
  170. package/dist/blocks/medications/index.js +1 -1
  171. package/dist/blocks/meetings/index.d.ts +5 -5
  172. package/dist/blocks/memberships/index.d.ts +3 -3
  173. package/dist/blocks/memory/index.d.ts +4 -4
  174. package/dist/blocks/messaging/index.d.ts +11 -11
  175. package/dist/blocks/metrics/index.d.ts +6 -6
  176. package/dist/blocks/mfa/index.d.ts +2 -2
  177. package/dist/blocks/moderation/index.d.ts +7 -7
  178. package/dist/blocks/notifications/index.d.ts +10 -10
  179. package/dist/blocks/notifications/index.js +2 -2
  180. package/dist/blocks/numbering/index.d.ts +1 -1
  181. package/dist/blocks/oauth-server/index.d.ts +5 -5
  182. package/dist/blocks/oauth-server/index.js +1 -1
  183. package/dist/blocks/observations/index.d.ts +5 -5
  184. package/dist/blocks/onboarding/index.d.ts +3 -3
  185. package/dist/blocks/option-sets/index.d.ts +6 -6
  186. package/dist/blocks/orders/index.d.ts +4 -4
  187. package/dist/blocks/orders/index.js +1 -1
  188. package/dist/blocks/organizations/index.d.ts +4 -4
  189. package/dist/blocks/outbox/index.d.ts +4 -4
  190. package/dist/blocks/outbox/index.js +1 -1
  191. package/dist/blocks/passes/index.d.ts +4 -4
  192. package/dist/blocks/passes/index.js +1 -1
  193. package/dist/blocks/payroll-export/index.d.ts +4 -4
  194. package/dist/blocks/payroll-export/index.js +1 -1
  195. package/dist/blocks/people/index.d.ts +8 -8
  196. package/dist/blocks/people/index.js +1 -1
  197. package/dist/blocks/periods/index.d.ts +5 -5
  198. package/dist/blocks/permissions/index.d.ts +7 -7
  199. package/dist/blocks/pipelines/index.d.ts +4 -4
  200. package/dist/blocks/posts/index.d.ts +6 -6
  201. package/dist/blocks/procurement/index.d.ts +6 -6
  202. package/dist/blocks/procurement/index.js +2 -2
  203. package/dist/blocks/profiles/index.d.ts +3 -3
  204. package/dist/blocks/projects/index.d.ts +8 -8
  205. package/dist/blocks/projects/index.js +2 -2
  206. package/dist/blocks/promotions/index.d.ts +3 -3
  207. package/dist/blocks/prompts/index.d.ts +4 -4
  208. package/dist/blocks/push/index.d.ts +7 -7
  209. package/dist/blocks/qualifications/index.d.ts +4 -4
  210. package/dist/blocks/queue/index.d.ts +5 -5
  211. package/dist/blocks/queue/index.js +2 -2
  212. package/dist/blocks/quotes/index.d.ts +5 -5
  213. package/dist/blocks/rank/index.d.ts +7 -7
  214. package/dist/blocks/rank/index.js +1 -1
  215. package/dist/blocks/reactions/index.d.ts +6 -6
  216. package/dist/blocks/recruiting/index.d.ts +5 -5
  217. package/dist/blocks/recruiting/index.js +1 -1
  218. package/dist/blocks/referrals/index.d.ts +5 -5
  219. package/dist/blocks/relations/index.d.ts +7 -7
  220. package/dist/blocks/reminders/index.d.ts +1 -1
  221. package/dist/blocks/reminders/index.js +1 -1
  222. package/dist/blocks/reviews/index.d.ts +5 -5
  223. package/dist/blocks/rfqs/index.d.ts +4 -4
  224. package/dist/blocks/risks/index.d.ts +6 -6
  225. package/dist/blocks/saas/index.d.ts +14 -14
  226. package/dist/blocks/saas/index.js +2 -2
  227. package/dist/blocks/sales/index.d.ts +1 -1
  228. package/dist/blocks/sales/index.js +1 -1
  229. package/dist/blocks/saved-views/index.d.ts +6 -6
  230. package/dist/blocks/scheduling/index.d.ts +6 -6
  231. package/dist/blocks/scheduling/index.js +1 -1
  232. package/dist/blocks/scores/index.d.ts +6 -6
  233. package/dist/blocks/search/index.d.ts +5 -5
  234. package/dist/blocks/search/index.js +1 -1
  235. package/dist/blocks/security-events/index.d.ts +7 -7
  236. package/dist/blocks/security-events/index.js +1 -1
  237. package/dist/blocks/segments/index.d.ts +4 -4
  238. package/dist/blocks/sequences/index.d.ts +5 -5
  239. package/dist/blocks/service/index.d.ts +8 -8
  240. package/dist/blocks/service-accounts/index.d.ts +5 -5
  241. package/dist/blocks/sessions/index.d.ts +4 -4
  242. package/dist/blocks/settings/index.d.ts +4 -4
  243. package/dist/blocks/share-links/index.d.ts +1 -1
  244. package/dist/blocks/shifts/index.d.ts +4 -4
  245. package/dist/blocks/shipments/index.d.ts +6 -6
  246. package/dist/blocks/shipments/index.js +1 -1
  247. package/dist/blocks/signatures/index.d.ts +3 -3
  248. package/dist/blocks/signing-keys/index.d.ts +3 -3
  249. package/dist/blocks/signing-keys/index.js +2 -2
  250. package/dist/blocks/sla/index.d.ts +3 -3
  251. package/dist/blocks/sso/index.d.ts +6 -6
  252. package/dist/blocks/state-machine/index.d.ts +2 -2
  253. package/dist/blocks/state-machine/index.js +1 -1
  254. package/dist/blocks/subjects/index.d.ts +7 -7
  255. package/dist/blocks/subjects/index.js +1 -1
  256. package/dist/blocks/support/index.d.ts +6 -6
  257. package/dist/blocks/tags/index.d.ts +3 -3
  258. package/dist/blocks/tasks/index.d.ts +4 -4
  259. package/dist/blocks/tax/index.d.ts +4 -4
  260. package/dist/blocks/tax/index.js +1 -1
  261. package/dist/blocks/teams/index.d.ts +1 -1
  262. package/dist/blocks/templates/index.d.ts +8 -8
  263. package/dist/blocks/tills/index.d.ts +5 -5
  264. package/dist/blocks/time-entries/index.d.ts +3 -3
  265. package/dist/blocks/timeline/index.d.ts +2 -2
  266. package/dist/blocks/trash/index.d.ts +3 -3
  267. package/dist/blocks/undo/index.d.ts +4 -4
  268. package/dist/blocks/updated-at/index.d.ts +3 -3
  269. package/dist/blocks/usage/index.d.ts +4 -4
  270. package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
  271. package/dist/blocks/vercel-marketplace/index.js +3 -3
  272. package/dist/blocks/versions/index.d.ts +2 -2
  273. package/dist/blocks/waitlist/index.d.ts +5 -5
  274. package/dist/blocks/waitlist/index.js +1 -1
  275. package/dist/blocks/warehouse/index.d.ts +5 -5
  276. package/dist/blocks/warranty/index.d.ts +5 -5
  277. package/dist/blocks/webhooks/index.d.ts +15 -15
  278. package/dist/blocks/webhooks/index.js +6 -6
  279. package/dist/blocks/workflow-editor/index.d.ts +9 -9
  280. package/dist/blocks/workflows/index.d.ts +7 -7
  281. package/dist/{blocks-RVd7m590.d.ts → blocks-D4ngpPJ_.d.ts} +17 -7
  282. package/dist/{bookings-sBb-GMK8.d.ts → bookings-6dC83XE6.d.ts} +3 -3
  283. package/dist/{bootstrap-permissions-BOkRVEEh.js → bootstrap-permissions-CulW-R_u.js} +2 -2
  284. package/dist/{bucket-CbRyXRp3.d.ts → bucket-BJ03ZblY.d.ts} +1 -1
  285. package/dist/{build-Rz89mkdS.js → build-CRxrX567.js} +1 -1
  286. package/dist/{cache-tags-BxpxsCtq.d.ts → cache-tags-UWvxDMDO.d.ts} +1 -1
  287. package/dist/{care-plans-BR3TkinL.d.ts → care-plans-q3m4ph4G.d.ts} +2 -2
  288. package/dist/{care-plans-sql-DyB5TB6y.js → care-plans-sql-B__5eEaI.js} +1 -1
  289. package/dist/chat-sdk/index.d.ts +6 -6
  290. package/dist/claims/index.d.ts +7 -7
  291. package/dist/{claims-source-BEVTXHQx.d.ts → claims-source-D-4CztOl.d.ts} +2 -2
  292. package/dist/cli/{add-BJNTq7Ti.js → add-CN5jkEFM.js} +2 -2
  293. package/dist/cli/add-fra98UnY.js +1 -0
  294. package/dist/cli/{add-CnCt2QoB.js → add-ucxskHiv.js} +11 -11
  295. package/dist/cli/{app-table-files-CfB0_NuX.js → app-table-files-FcgTfOf9.js} +4 -4
  296. package/dist/cli/{app-tables-oieRU_sP.js → app-tables-DCpSNfJ3.js} +2 -2
  297. package/dist/cli/{backfill-Cr5jgVi1.js → backfill-DVP_elK_.js} +3 -3
  298. package/dist/cli/bin.js +1 -1
  299. package/dist/cli/{blocks-DLMVaOFG.js → blocks-CFKjKW4s.js} +1 -1
  300. package/dist/cli/{blocks-B-ANsRnH.js → blocks-iSEepN2Y.js} +1 -1
  301. package/dist/cli/{cache-Ba26VW2N.js → cache-CNa3fjK-.js} +1 -1
  302. package/dist/cli/{codemod-x1I7Mjr3.js → codemod-DH-VSZps.js} +6 -6
  303. package/dist/cli/{codemod-naming-CZhndoO7.js → codemod-naming-CuQ0ltfE.js} +1 -1
  304. package/dist/cli/{codes-DNq30BZg.js → codes-D_oa7Aw5.js} +3 -3
  305. package/dist/cli/{column-renames-BEEDF6P6.js → column-renames-CtcG8MR5.js} +2 -2
  306. package/dist/cli/{config-DkjilxeE.js → config-CoW6aoul.js} +1 -1
  307. package/dist/cli/{config-DD_MnPRL.js → config-DX58lDf7.js} +7 -1
  308. package/dist/cli/{content-mapper-z7CrnE1s.js → content-mapper-TATvvrmb.js} +1 -1
  309. package/dist/cli/{db-CEUnv3hK.js → db-CZ9qHsDs.js} +2 -2
  310. package/dist/cli/{dev-D9nn9Gzt.js → dev-BDv1efAy.js} +5 -5
  311. package/dist/cli/{doctor-DCorhlir.js → doctor-CkO1yd7F.js} +242 -109
  312. package/dist/cli/{emit-qQdWBc9e.js → emit-OhupwGNp.js} +3 -3
  313. package/dist/cli/{gen-Bf1ujcTm.js → gen-1lVJoeH1.js} +5 -5
  314. package/dist/cli/{gen-tasks-q9JJSJ6r.js → gen-tasks-BgxoXxuF.js} +11 -11
  315. package/dist/cli/index.d.ts +1 -1
  316. package/dist/cli/index.js +8 -8
  317. package/dist/cli/{init-DLLfL1uL.js → init-Defy7VJ0.js} +9 -9
  318. package/dist/cli/{live-D4giSEyd.js → live-DmvnAvGV.js} +2 -2
  319. package/dist/cli/{mcp-DwjeMbmV.js → mcp-BGKeD-lo.js} +2 -2
  320. package/dist/cli/{memo-backend-DPGMyJvH.js → memo-backend-3u-X51UO.js} +1 -1
  321. package/dist/cli/{metadata-Cft3CW1M.js → metadata-D0UazHyQ.js} +4 -4
  322. package/dist/cli/{migrate-Ci_UUuPv.js → migrate-PshyB8a6.js} +1 -1
  323. package/dist/cli/{migration-safety-D3raBuJx.js → migration-safety-DYgRA8-5.js} +2 -2
  324. package/dist/cli/{module-migration-DZtxNO8A.js → module-migration-CRsIlrig.js} +1 -1
  325. package/dist/cli/{partition-DWJ6icQ5.js → partition-ht8zldUV.js} +3 -3
  326. package/dist/cli/powersync-BztAuUyy.js +1 -0
  327. package/dist/cli/{powersync-BAyDVR-N.js → powersync-r6iL7zEo.js} +4 -4
  328. package/dist/cli/{print-BSy5c62C.js → print-Ca78W5ZF.js} +2 -2
  329. package/dist/cli/{providers-BbFKOale.js → providers-DhMSptuy.js} +1 -1
  330. package/dist/cli/{prune-workflows-VY7C9vhb.js → prune-workflows-DyZx-veL.js} +3 -3
  331. package/dist/cli/{remove-CcBoTjEO.js → remove-37g_SvZW.js} +6 -6
  332. package/dist/cli/{render-CIrcdge6.js → render-Bfh2EtMO.js} +5 -5
  333. package/dist/cli/{render-cache-bbL2UdJ6.js → render-cache-BYkVt264.js} +1 -1
  334. package/dist/cli/round-trips-BHfeIu6I.js +238 -0
  335. package/dist/cli/{run-D_p_WkPh.js → run-CfWFddfH.js} +8 -8
  336. package/dist/cli/{run-qCtE--0z.js → run-DEPt1rAn.js} +37 -36
  337. package/dist/cli/seed-B6_MBFd2.js +1 -0
  338. package/dist/cli/{seed-CvDA1ItH.js → seed-pDWlnzyK.js} +2 -2
  339. package/dist/cli/{shared-CkqZm0Bz.js → shared-BrAtQXmC.js} +1 -1
  340. package/dist/cli/{source-io7b1UpH.js → source-Bt6UAek-.js} +1 -1
  341. package/dist/cli/{source-args-yU6N6JLm.js → source-args-D5BSEgUG.js} +1 -1
  342. package/dist/cli/{spec-QGOfTJvS.js → spec-BJreyth3.js} +1 -1
  343. package/dist/cli/{spec-djAAvGKU.js → spec-DsNayDt2.js} +2 -2
  344. package/dist/cli/{sql-layout-1ASqdR4g.js → sql-layout-Bt7NcWXk.js} +4 -4
  345. package/dist/cli/{squash-DEmB47YZ.js → squash-DmbB7Gx9.js} +1 -1
  346. package/dist/cli/{sync-CUcxtnwa.js → sync-DFAkNjw_.js} +60 -8
  347. package/dist/cli/{upgrade-FWW6hKCv.js → upgrade-D8GOjXrv.js} +5 -5
  348. package/dist/cli/{upgrade-DV9mKpAp.js → upgrade-DP-30QID.js} +9 -7
  349. package/dist/cli/{verify-CrFHs8Lr.js → verify-O5zxWWuE.js} +2 -2
  350. package/dist/cli/{version-CSdXYnhG.js → version-CHVFvh95.js} +1 -1
  351. package/dist/client/index.d.ts +6 -6
  352. package/dist/client/index.js +1 -1
  353. package/dist/client/native/index.d.ts +7 -7
  354. package/dist/client/native/index.js +4 -4
  355. package/dist/{client-D1grRDjj.js → client-CPG7YGP2.js} +1 -1
  356. package/dist/{client-bucket-BLVysX-A.js → client-bucket-DvoYllSB.js} +1 -1
  357. package/dist/{clinical-decision-support-BHRUL6qj.d.ts → clinical-decision-support-D6FWGbEw.d.ts} +3 -3
  358. package/dist/{cloud-event-BtWOKfsx.d.ts → cloud-event-B0AsPtwP.d.ts} +1 -1
  359. package/dist/{codec-Cjquuv8M.js → codec-CJaAdLjG.js} +2 -2
  360. package/dist/commerce/index.js +1 -1
  361. package/dist/{compiler-BwJR_BHq.d.ts → compiler-u6lO9V7r.d.ts} +2 -2
  362. package/dist/{composite-WUO6K2Hu.js → composite-Bxpd7oru.js} +2 -2
  363. package/dist/{composite-CL4zDLjs.d.ts → composite-CxojRRUF.d.ts} +7 -7
  364. package/dist/{composite-reads-BJeDe1yV.js → composite-reads-BJJBI4tL.js} +1 -1
  365. package/dist/{composite-reads-B9psRGqQ.d.ts → composite-reads-CK-Y5b6M.d.ts} +2 -2
  366. package/dist/config/index.d.ts +5 -5
  367. package/dist/config/index.js +2 -2
  368. package/dist/{config-C3yry9U5.js → config-cisS43w5.js} +1 -1
  369. package/dist/{connectors-VX1FIU-t.d.ts → connectors-BCIhimzA.d.ts} +4 -4
  370. package/dist/{consents-OI2OWAfb.d.ts → consents-BuIwU6T3.d.ts} +3 -3
  371. package/dist/{contacts-D9_KMOgs.d.ts → contacts-4xMnNBVk.d.ts} +5 -5
  372. package/dist/{context-DMTfze4z.d.ts → context-m-t6Kr9_.d.ts} +24 -10
  373. package/dist/contract/index.d.ts +9 -9
  374. package/dist/{contributions-Bh-HcHoJ.js → contributions-Ba-C1ueE.js} +6 -6
  375. package/dist/{controller-l9h4TtKg.d.ts → controller-zwQFyrOG.d.ts} +1 -1
  376. package/dist/{conversion-D70FELty.d.ts → conversion-b6htac73.d.ts} +1 -1
  377. package/dist/create/index.d.ts +4 -4
  378. package/dist/create/index.js +2 -2
  379. package/dist/create/lite/index.d.ts +4 -4
  380. package/dist/create/lite/index.js +6 -4
  381. package/dist/credentials/index.d.ts +4 -4
  382. package/dist/credentials/index.js +1 -1
  383. package/dist/{cron-route-Cg1V2MUq.js → cron-route-spE8XDgv.js} +1 -1
  384. package/dist/{data-engine-CQiEEoNx.d.ts → data-engine-nmeUijzR.d.ts} +1 -1
  385. package/dist/{db-blocks-Db3LVXco.d.ts → db-blocks-_jJICfjp.d.ts} +16 -7
  386. package/dist/{define-BDrm9Vl7.d.ts → define-BVBAeKTi.d.ts} +1 -1
  387. package/dist/{define-block-D-Z8xB6y.d.ts → define-block-DQvTGOGv.d.ts} +14 -14
  388. package/dist/{define-runtime-Dv8OYnKW.js → define-runtime-DsFTahQB.js} +2 -2
  389. package/dist/{define-runtime-full-C4eTtJAx.js → define-runtime-full-B_cMkyCk.js} +3 -3
  390. package/dist/{delete-account-BHXzIUIq.d.ts → delete-account-BQDeafVT.d.ts} +4 -4
  391. package/dist/{documents-BHddH30g.d.ts → documents-B8Q_BKha.d.ts} +3 -3
  392. package/dist/{drive-DrD94tWF.d.ts → drive-DaEK5ZxU.d.ts} +5 -5
  393. package/dist/e-invoicing/index.d.ts +2 -2
  394. package/dist/{e-prescribing-DkV1wF9y.d.ts → e-prescribing-CP0lcOje.d.ts} +4 -4
  395. package/dist/edge/index.d.ts +9 -9
  396. package/dist/edge/index.js +5 -5
  397. package/dist/elysia/index.d.ts +1 -1
  398. package/dist/{embeddings-4zY3hhO8.d.ts → embeddings-BriQ4hQ1.d.ts} +2 -2
  399. package/dist/{ended-B1oCwF0v.d.ts → ended-CzWPQkkG.d.ts} +2 -2
  400. package/dist/{entitlements-B6q7TIMP.d.ts → entitlements-D4ob6MfK.d.ts} +3 -3
  401. package/dist/eve/index.d.ts +9 -9
  402. package/dist/eve/index.js +2 -2
  403. package/dist/{eve-BZhRFAWs.d.ts → eve-D-hvUFYE.d.ts} +2 -2
  404. package/dist/events/index.d.ts +5 -5
  405. package/dist/{events-Bk63_mjA.d.ts → events-zz8DwtZi.d.ts} +2 -2
  406. package/dist/{executor-BypvvW56.d.ts → executor-7zo2arIZ.d.ts} +1 -1
  407. package/dist/{executor-BaFzh9pS.d.ts → executor-BLv4T8kT.d.ts} +1 -1
  408. package/dist/{executor-BmcRcw83.js → executor-D24_D6dr.js} +2 -2
  409. package/dist/{executor-Dp4A_McY.d.ts → executor-nx2Q8Xdy.d.ts} +4 -4
  410. package/dist/expo/index.d.ts +6 -6
  411. package/dist/expo/index.js +5 -5
  412. package/dist/{extract-D4QPFB_M.d.ts → extract-W4zb3wIh.d.ts} +5 -5
  413. package/dist/{extras-C0cnpjDP.d.ts → extras-ByEPERCR.d.ts} +2 -2
  414. package/dist/fhir/index.d.ts +5 -5
  415. package/dist/fhir/index.js +1 -1
  416. package/dist/{field-errors-Br3wwgbu.d.ts → field-errors-pj0uOXSg.d.ts} +9 -9
  417. package/dist/{fields-OBEVi7hN.d.ts → fields-BATxzuhy.d.ts} +1 -1
  418. package/dist/{filter-evaluate-CVwpzMX-.d.ts → filter-evaluate-C2JXrZst.d.ts} +1 -1
  419. package/dist/{filter-query-CI5u0oca.d.ts → filter-query-DwJ1iMQ0.d.ts} +1 -1
  420. package/dist/{flags-Du06K0gA.d.ts → flags-CkMvfo73.d.ts} +2 -2
  421. package/dist/flags-sdk/index.d.ts +2 -2
  422. package/dist/{former-permission-keys-BwJW5uc6.js → former-permission-keys-D8FbWktT.js} +2 -2
  423. package/dist/{framework-BUzOnlJN.d.ts → framework-BYx1ke3r.d.ts} +8 -8
  424. package/dist/{framework-CbjS8M33.js → framework-pfJvMQy3.js} +1 -1
  425. package/dist/{funding-DpFfyIiK.d.ts → funding-B4vqlKq2.d.ts} +7 -7
  426. package/dist/{gateway-ChuQD_IL.d.ts → gateway-eFh5pEIu.d.ts} +3 -3
  427. package/dist/generators/factories/index.d.ts +1 -1
  428. package/dist/generators/factories/index.js +1 -1
  429. package/dist/generators/index.d.ts +2 -2
  430. package/dist/generators/json-schema/index.d.ts +2 -2
  431. package/dist/generators/json-schema/index.js +1 -1
  432. package/dist/generators/nuqs/index.d.ts +1 -1
  433. package/dist/generators/nuqs/index.js +1 -1
  434. package/dist/generators/standard-schema/index.d.ts +1 -1
  435. package/dist/generators/standard-schema/index.js +1 -1
  436. package/dist/generators/valibot/index.d.ts +1 -1
  437. package/dist/generators/valibot/index.js +1 -1
  438. package/dist/generators/zod/index.d.ts +1 -1
  439. package/dist/generators/zod/index.js +1 -1
  440. package/dist/h3/index.d.ts +1 -1
  441. package/dist/h3/v1/index.d.ts +1 -1
  442. package/dist/hono/index.d.ts +9 -9
  443. package/dist/hono/index.js +4 -4
  444. package/dist/{inbox-CDGfVOyZ.d.ts → inbox-Cr4WDuhI.d.ts} +5 -5
  445. package/dist/{index-DmoaxGHV.d.ts → index-1FGquKaz.d.ts} +3 -3
  446. package/dist/{index-DG187JM_.d.ts → index-46tesKqa.d.ts} +6 -6
  447. package/dist/{index-BAku12tP.d.ts → index-BHkxtS6f.d.ts} +1 -1
  448. package/dist/{index-BWxcC8ll.d.ts → index-BLPzvJ5v.d.ts} +9 -9
  449. package/dist/{index-BquYRGtV.d.ts → index-BVuN7_fC.d.ts} +8 -8
  450. package/dist/{index-jCKNxp8C.d.ts → index-BYDpdZxq.d.ts} +5 -5
  451. package/dist/{index-BZHDwHGW.d.ts → index-BZCCv04g.d.ts} +4 -4
  452. package/dist/{index-Dyns9a8l.d.ts → index-Bb_il0ub.d.ts} +5 -5
  453. package/dist/{index-CHOeFZUB.d.ts → index-BfnBjZpy.d.ts} +5 -5
  454. package/dist/{index-Cg0lDbXs.d.ts → index-BomyYKtC.d.ts} +6 -6
  455. package/dist/{index-DMyMrXPW.d.ts → index-BpQxfGSO.d.ts} +6 -6
  456. package/dist/{index-DU_gZYuh.d.ts → index-Bu4YwWl0.d.ts} +3 -3
  457. package/dist/{index-DtVZnjKf.d.ts → index-ByCXNZ2j.d.ts} +2 -2
  458. package/dist/{index-D3d7m03L.d.ts → index-C37Wq488.d.ts} +6 -6
  459. package/dist/{index-NNox0BqF.d.ts → index-CDX9U_CH.d.ts} +4 -4
  460. package/dist/{index-WuUhLgMp.d.ts → index-CQGi7Jnn.d.ts} +9 -9
  461. package/dist/{index-CnTxcNyl.d.ts → index-CWTWbIz_.d.ts} +3 -3
  462. package/dist/{index-ClysJ8O-.d.ts → index-CjoB5SrD.d.ts} +5 -5
  463. package/dist/{index-DLlAc0wg.d.ts → index-ClqA-t45.d.ts} +5 -5
  464. package/dist/{index-BfoKErj3.d.ts → index-CriIH7di.d.ts} +5 -5
  465. package/dist/{index-o2y0w9lX.d.ts → index-Crm9IjfQ.d.ts} +7 -7
  466. package/dist/{index-Dg4lbDzI.d.ts → index-CxX_Bgfa.d.ts} +6 -6
  467. package/dist/{index-DK0Hj3pi.d.ts → index-CxZV8RJE.d.ts} +6 -6
  468. package/dist/{index-d2TijvXV.d.ts → index-D2R8Msu5.d.ts} +1 -1
  469. package/dist/{index-B6h9m3ml.d.ts → index-DCqy0ESb.d.ts} +2 -2
  470. package/dist/{index-C7Tcervm.d.ts → index-DW_S9n3h.d.ts} +7 -7
  471. package/dist/{index-DkALeCTq.d.ts → index-DYh76mE_.d.ts} +2 -2
  472. package/dist/{index-DHjZvZWC.d.ts → index-D_0l5hHh.d.ts} +4 -4
  473. package/dist/{index-B4uPo3Sr.d.ts → index-DeI4h1N1.d.ts} +7 -7
  474. package/dist/{index-bkm44ycq.d.ts → index-Dea13gIz.d.ts} +6 -6
  475. package/dist/{index-BbpacfC0.d.ts → index-DlUd0CTA.d.ts} +9 -9
  476. package/dist/{index-BFvj-fNS.d.ts → index-DpoUltRu.d.ts} +2 -2
  477. package/dist/{index-DGszLnec.d.ts → index-DsNwQRWG.d.ts} +3 -3
  478. package/dist/{index-DYX_uL5t.d.ts → index-DyV6z0Q_.d.ts} +8 -8
  479. package/dist/{index-ouiV6zqH.d.ts → index-Dyhkn8FU.d.ts} +5 -5
  480. package/dist/{index-DKuOnwh6.d.ts → index-IrsC8TLH.d.ts} +8 -8
  481. package/dist/{index-D_xJSanv.d.ts → index-SWDnWdWw.d.ts} +3 -3
  482. package/dist/{index-C9p3wiWn.d.ts → index-SZ8qGIVO.d.ts} +15 -15
  483. package/dist/{index-X-ihJBuJ.d.ts → index-WoE9Z_V-.d.ts} +5 -5
  484. package/dist/{index-qzFFTwel.d.ts → index-r_SO6mVm.d.ts} +5 -5
  485. package/dist/index.d.ts +8 -8
  486. package/dist/index.js +2 -2
  487. package/dist/{invoices-CWp9jcI2.d.ts → invoices-L6khZ9kt.d.ts} +10 -5
  488. package/dist/{json-schema-B8f7HdoX.js → json-schema-CU9Mg-_d.js} +1 -1
  489. package/dist/{jwks-cache-C5Bkk8wb.js → jwks-cache-DcfC4DmK.js} +1 -1
  490. package/dist/{jws-D5t4Ylus.js → jws-DChBKezH.js} +1 -1
  491. package/dist/{kit-DN6lGKB6.d.ts → kit-BwlTgitb.d.ts} +4 -4
  492. package/dist/{knowledge-pN-5j-oj.d.ts → knowledge-C7RZqwQu.d.ts} +9 -6
  493. package/dist/lint/index.d.ts +1 -1
  494. package/dist/list/export/index.d.ts +1 -1
  495. package/dist/list/index.d.ts +3 -3
  496. package/dist/list/order/index.d.ts +3 -3
  497. package/dist/{list-query-qCpvTDGH.d.ts → list-query-B6lXbY0T.d.ts} +4 -4
  498. package/dist/{manifest-D80LSWzZ.d.ts → manifest-2sJavyD8.d.ts} +6 -6
  499. package/dist/{manifest-BTR978h8.js → manifest-3XKIMZkJ.js} +1 -1
  500. package/dist/{manifest-Co41j70r.d.ts → manifest-4S1YGIS3.d.ts} +6 -6
  501. package/dist/{manifest-CZoRtSvn.d.ts → manifest-5i2UwyQr.d.ts} +4 -4
  502. package/dist/{manifest-CvncELVO.d.ts → manifest-B0pan6cS.d.ts} +5 -5
  503. package/dist/{manifest-VbHg6E4F.js → manifest-BBcaI1P8.js} +1 -1
  504. package/dist/{manifest-ra7MSo-3.d.ts → manifest-BEQWkGmf.d.ts} +5 -5
  505. package/dist/{manifest-Clzy2rSU.d.ts → manifest-BKiaRgiZ.d.ts} +3 -3
  506. package/dist/{manifest-BESrR9Xp.d.ts → manifest-BMilYLsh.d.ts} +3 -3
  507. package/dist/{manifest-dt25CCQA.js → manifest-BNmYcT7b.js} +1 -1
  508. package/dist/{manifest-BS8p47JO.d.ts → manifest-BRvnB8C0.d.ts} +5 -5
  509. package/dist/{manifest-CNLJLsHB.d.ts → manifest-BZPruG-S.d.ts} +4 -4
  510. package/dist/{manifest-CLG2lmYA.js → manifest-B_qm9fCI.js} +1 -1
  511. package/dist/{manifest-BoUGzBpS.d.ts → manifest-BaIG9QRj.d.ts} +4 -4
  512. package/dist/{manifest-V0QSCEfx.d.ts → manifest-Bf6Rzatq.d.ts} +4 -4
  513. package/dist/{manifest-TvLJWs_L.d.ts → manifest-Bfu-Cu0f.d.ts} +7 -7
  514. package/dist/{manifest-Dp92U_iP.d.ts → manifest-Bj8bumDU.d.ts} +6 -6
  515. package/dist/{manifest-WK23vBlH.js → manifest-Bkm_17rp.js} +2 -2
  516. package/dist/{manifest-CIVhJzKF.d.ts → manifest-BpgNJhYN.d.ts} +2 -2
  517. package/dist/{manifest-VCJSqffq.d.ts → manifest-BxvFH1G_.d.ts} +3 -3
  518. package/dist/{manifest-RitquXSE.d.ts → manifest-BzXqieUD.d.ts} +7 -7
  519. package/dist/{manifest-BGmmK9bZ.d.ts → manifest-C2hpeEBF.d.ts} +3 -3
  520. package/dist/{manifest-BLFyjEv_.js → manifest-C6bwnO77.js} +1 -1
  521. package/dist/{manifest-CKDaQT_5.d.ts → manifest-C95ET4CL.d.ts} +4 -4
  522. package/dist/{manifest-Dvm2mwFy.d.ts → manifest-CA5EhKZ9.d.ts} +3 -3
  523. package/dist/{manifest-CLukD6aB.d.ts → manifest-CF3BUmbe.d.ts} +5 -5
  524. package/dist/{manifest-BTgU8Kcf.js → manifest-CG38X6q2.js} +1 -1
  525. package/dist/{manifest-CXNXmH86.js → manifest-CK1J6NE1.js} +1 -1
  526. package/dist/{manifest-B1lOqNaq.js → manifest-CLw7q0PB.js} +1 -1
  527. package/dist/{manifest-qvMWfrZ-.d.ts → manifest-CMn61uKN.d.ts} +5 -5
  528. package/dist/{manifest-DlLxdk7P.d.ts → manifest-CS8I2fku.d.ts} +3 -3
  529. package/dist/{manifest-D08Cdndm.js → manifest-CSYLcs5d.js} +2 -2
  530. package/dist/{manifest--_00y416.d.ts → manifest-CWFhOuFW.d.ts} +4 -4
  531. package/dist/{manifest-BA-urVob.d.ts → manifest-CXdJUJjX.d.ts} +8 -8
  532. package/dist/{manifest-B_2lEGUS.d.ts → manifest-CYO44YUb.d.ts} +5 -5
  533. package/dist/{manifest-Dpad_5Lw.d.ts → manifest-Ccc0ZZup.d.ts} +6 -6
  534. package/dist/{manifest-QmYmc98q.d.ts → manifest-CiF1Sb29.d.ts} +6 -6
  535. package/dist/{manifest-BAn3lTr4.d.ts → manifest-Cl2U3bic.d.ts} +3 -3
  536. package/dist/{manifest-Ch08RUKa.d.ts → manifest-CnVa_nHw.d.ts} +3 -3
  537. package/dist/{manifest-DBT7GiWE.js → manifest-CoR7UHm9.js} +1 -1
  538. package/dist/{manifest-Dxff277Z.js → manifest-CsJhHOcl.js} +2 -2
  539. package/dist/{manifest-DHTVfgX9.d.ts → manifest-CtL5JmoY.d.ts} +4 -4
  540. package/dist/{manifest-ByNpLQWh.d.ts → manifest-CumC7hH5.d.ts} +4 -4
  541. package/dist/{manifest-CyaHDD_i.d.ts → manifest-Cv7Mji7w.d.ts} +5 -5
  542. package/dist/{manifest-iMnrzuzj.js → manifest-CwvLYm4x.js} +2 -2
  543. package/dist/{manifest-CUtvLTr3.js → manifest-CzDKrwRf.js} +2 -2
  544. package/dist/{manifest-CXYg8gzt.d.ts → manifest-D48Fi0bR.d.ts} +3 -3
  545. package/dist/{manifest-CWwdLMT0.d.ts → manifest-DOtSiMt5.d.ts} +4 -4
  546. package/dist/{manifest-r6DHrB4Q.d.ts → manifest-DUPKC2rO.d.ts} +5 -5
  547. package/dist/{manifest-CCKfdYiH.d.ts → manifest-DZyxhWcb.d.ts} +3 -3
  548. package/dist/{manifest-ByV81mLa.d.ts → manifest-DfC1XBrV.d.ts} +4 -4
  549. package/dist/{manifest-DHulRwzL.d.ts → manifest-DftU8SXo.d.ts} +5 -5
  550. package/dist/{manifest-CxgOFWlh.d.ts → manifest-Dg2BCyzg.d.ts} +4 -4
  551. package/dist/{manifest-CjzlsilW.d.ts → manifest-DiXINLQQ.d.ts} +5 -5
  552. package/dist/{manifest-D_wBteR5.d.ts → manifest-Dim5U8TQ.d.ts} +3 -3
  553. package/dist/{manifest-CQrTRkRh.js → manifest-DkpKjNGT.js} +1 -1
  554. package/dist/{manifest-qOwMTJHI.js → manifest-DlNcTvH_.js} +1 -1
  555. package/dist/{manifest-C0v6IEWk.d.ts → manifest-DoZXpoG_.d.ts} +6 -6
  556. package/dist/{manifest-DofXV9lE.d.ts → manifest-Dp9ZtoFo.d.ts} +7 -7
  557. package/dist/{manifest-DLSzZMXM.d.ts → manifest-DpFy7git.d.ts} +8 -8
  558. package/dist/{manifest-DVZmJvrE.d.ts → manifest-DsINyvTh.d.ts} +6 -6
  559. package/dist/{manifest-C-pVDUC6.d.ts → manifest-DucB6ix_.d.ts} +4 -4
  560. package/dist/{manifest-CKCaFg8y.d.ts → manifest-DwBFwxFo.d.ts} +6 -6
  561. package/dist/{manifest-Cj6lOdW6.js → manifest-DwZwlGaz.js} +1 -1
  562. package/dist/{manifest-C8PUzse6.d.ts → manifest-FVkgBS-K.d.ts} +4 -4
  563. package/dist/{manifest-eUUJnoB5.d.ts → manifest-N5wuAzq4.d.ts} +8 -8
  564. package/dist/{manifest-BvzmDxod.d.ts → manifest-NkuGL5p2.d.ts} +4 -4
  565. package/dist/{manifest-DKnWcgse.d.ts → manifest-NuYSYeQT.d.ts} +5 -5
  566. package/dist/{manifest-D5aZyD1b.js → manifest-OxHBbWrs.js} +1 -1
  567. package/dist/{manifest-BEw6nEKW.d.ts → manifest-TG95ksdH.d.ts} +11 -11
  568. package/dist/{manifest-BMcuCUre.d.ts → manifest-YtnGn7F9.d.ts} +2 -2
  569. package/dist/{manifest-B7lSTuVC.d.ts → manifest-_zu02ImE.d.ts} +5 -5
  570. package/dist/{manifest-DCkeNzPW.d.ts → manifest-cJ3rQXtl.d.ts} +11 -11
  571. package/dist/{manifest-Fapf4NdA.d.ts → manifest-dOFbx7Iv.d.ts} +2 -2
  572. package/dist/{manifest-wbs2VkcB.d.ts → manifest-eaGk_4rq.d.ts} +6 -6
  573. package/dist/{manifest-B94f27dU.js → manifest-icEpY96-.js} +1 -1
  574. package/dist/{manifest-BYv5BqtY.d.ts → manifest-tP62uJrR.d.ts} +4 -4
  575. package/dist/{manifest-BgmY9fuz.d.ts → manifest-ubm80xCr.d.ts} +6 -6
  576. package/dist/{manifest-D0eItVsP.d.ts → manifest-wXk0ZLhO.d.ts} +4 -4
  577. package/dist/{manifest-Djy3wcSo.js → manifest-waO9DHVc.js} +1 -0
  578. package/dist/{manifest-DBfQe19Z.d.ts → manifest-x_fSttX7.d.ts} +4 -4
  579. package/dist/{manifest-C5LxShda.d.ts → manifest-xlpYSpLJ.d.ts} +4 -4
  580. package/dist/mapper/bin.js +6 -6
  581. package/dist/mcp/index.d.ts +3 -3
  582. package/dist/mcp/index.js +1 -1
  583. package/dist/mcp/sdk/index.d.ts +6 -6
  584. package/dist/mcp/sdk/index.js +2 -2
  585. package/dist/{mcp-aMq1fkoe.js → mcp-CULIbS-b.js} +5 -5
  586. package/dist/{medications-Cxvrfid3.d.ts → medications-3mcGOelG.d.ts} +5 -5
  587. package/dist/{messaging-C-PJ2LBY.d.ts → messaging-DasXvQj7.d.ts} +4 -4
  588. package/dist/nestjs/index.d.ts +2 -2
  589. package/dist/next/client/index.d.ts +1 -1
  590. package/dist/next/index.d.ts +20 -20
  591. package/dist/next/index.js +15 -10
  592. package/dist/next/offline/index.d.ts +1 -1
  593. package/dist/next/proxy/index.d.ts +5 -5
  594. package/dist/next/proxy/index.js +2 -2
  595. package/dist/node/index.d.ts +2 -2
  596. package/dist/{observations-BBQZWl54.d.ts → observations-8pt9Lflf.d.ts} +3 -3
  597. package/dist/{operations-nnC3pvwn.d.ts → operations-D4zxY2TL.d.ts} +1 -1
  598. package/dist/{orders-ePaBZDl9.d.ts → orders-BCR5H9Tz.d.ts} +3 -3
  599. package/dist/{orders-reads-CWCAZHgZ.js → orders-reads-BGMu5-Ug.js} +2 -2
  600. package/dist/orpc/index.d.ts +8 -8
  601. package/dist/orpc/index.js +3 -3
  602. package/dist/otel/index.d.ts +2 -2
  603. package/dist/otel/index.js +5 -5
  604. package/dist/{outbox-EXHTONFS.d.ts → outbox-DNyzkxyX.d.ts} +4 -4
  605. package/dist/{payroll-export-CIVukFDd.js → payroll-export-kpVJj_Gj.js} +13 -13
  606. package/dist/{permissions-ZLtxCurD.d.ts → permissions-BkUcXwtV.d.ts} +1 -1
  607. package/dist/{permissions-model-CYfIupG0.js → permissions-model-B7E_f7GV.js} +13 -1
  608. package/dist/{pool-tXlDkx18.d.ts → pool-Dzeln5IJ.d.ts} +3 -3
  609. package/dist/{ports-DfDzwMCR.js → ports-BBowiGiD.js} +4 -4
  610. package/dist/{ports-CfVACwW_.d.ts → ports-DD-pDkHu.d.ts} +1 -1
  611. package/dist/postgres/index.d.ts +4 -4
  612. package/dist/{postgrest-gG_GIWFi.d.ts → postgrest-CgAxVpiW.d.ts} +1 -1
  613. package/dist/powersync/index.d.ts +9 -9
  614. package/dist/powersync/index.js +1 -1
  615. package/dist/preset/index.d.ts +4 -4
  616. package/dist/preset/index.js +1 -1
  617. package/dist/{preset-HzYIrxUS.js → preset-ZZ4H2s92.js} +5 -5
  618. package/dist/{preview-BoJkQw2E.d.ts → preview-GUvVjUxf.d.ts} +6 -6
  619. package/dist/{project-DI09JnXz.js → project-wJ3jYipI.js} +3 -3
  620. package/dist/{provider-r2RjlARm.d.ts → provider-DSokOaUo.d.ts} +1 -1
  621. package/dist/{push-token-Rv1CxW_N.d.ts → push-token-C8MoiM7E.d.ts} +1 -1
  622. package/dist/query/index.d.ts +1 -1
  623. package/dist/rate-limit/index.d.ts +1 -1
  624. package/dist/{rate-limit-CxN-zbLC.d.ts → rate-limit-Ddv4xmsH.d.ts} +5 -5
  625. package/dist/react/index.d.ts +9 -9
  626. package/dist/react/index.js +2 -2
  627. package/dist/react/native/index.d.ts +1 -1
  628. package/dist/react/native/index.js +3 -3
  629. package/dist/react/server.d.ts +8 -8
  630. package/dist/react/server.js +2 -2
  631. package/dist/react/session.d.ts +2 -2
  632. package/dist/{react-CvgCNgo-.js → react-hb2gg5UV.js} +2 -2
  633. package/dist/react-router/index.d.ts +6 -6
  634. package/dist/react-router/index.js +4 -4
  635. package/dist/{read-set-BptYceHc.js → read-set-DfScfSsf.js} +3 -2
  636. package/dist/realtime/index.d.ts +6 -6
  637. package/dist/realtime/index.js +2 -2
  638. package/dist/{record-form-BHUYs5ju.d.ts → record-form-CbFN-AdD.d.ts} +1 -1
  639. package/dist/{recordings-Bdf1OnQS.d.ts → recordings-C1BOyHYu.d.ts} +1 -1
  640. package/dist/records/index.d.ts +9 -9
  641. package/dist/{refusal-DHSRBaS6.d.ts → refusal-6HGi0oY9.d.ts} +3 -3
  642. package/dist/{resolve-oJsHQ9Ib.js → resolve-DP8w5Nl0.js} +2 -2
  643. package/dist/{resolve-Chhtdk4M.d.ts → resolve-Pn7KvQ23.d.ts} +1 -1
  644. package/dist/{resource-BfkM1JZ0.d.ts → resource-DFEtCFTy.d.ts} +1 -1
  645. package/dist/{resource-execute-Bb-zKYUc.d.ts → resource-execute-BQx_Pmeu.d.ts} +2 -2
  646. package/dist/{resource-types-C8kdoZ-J.d.ts → resource-types-lBguZ_8J.d.ts} +4 -4
  647. package/dist/{resources-B9dfA1jH.d.ts → resources-CWfoS1er.d.ts} +2 -2
  648. package/dist/{respond-DNcBzi_Y.d.ts → respond-vxhdVf23.d.ts} +1 -1
  649. package/dist/{runs-CTo9cjAz.js → runs-bv1S-1JM.js} +2 -2
  650. package/dist/{sales-D_yZoFUU.js → sales-Br66jZAO.js} +3 -3
  651. package/dist/{sales-lines-CX-xpQQW.d.ts → sales-lines-DWwWHLJj.d.ts} +1 -1
  652. package/dist/{sandboxes-vO9Yb0Bd.d.ts → sandboxes-BjvFi1Wh.d.ts} +1 -1
  653. package/dist/{scores-C8fy3RXF.d.ts → scores-LZaJOHkr.d.ts} +5 -5
  654. package/dist/server/account/index.d.ts +3 -3
  655. package/dist/server/accounts/index.d.ts +6 -6
  656. package/dist/server/accounts/index.js +1 -1
  657. package/dist/server/index.d.ts +27 -27
  658. package/dist/server/index.js +12 -12
  659. package/dist/{server-Bgugpk3A.js → server-af58-Q51.js} +10 -6
  660. package/dist/{server-types-C8zErBy9.d.ts → server-types-By5oBsDZ.d.ts} +18 -12
  661. package/dist/{session-DRn_URq0.d.ts → session-D5IrTUwv.d.ts} +6 -6
  662. package/dist/{session-status-CywvasN_.d.ts → session-status-m5VN1pW1.d.ts} +2 -2
  663. package/dist/{sessions-Dedk1ubX.js → sessions-w6xril_l.js} +1 -1
  664. package/dist/{settings-CMcdSyT4.d.ts → settings-C_zEVfCy.d.ts} +2 -2
  665. package/dist/{sign-in-DgvuMl59.js → sign-in-CxnkReKM.js} +2 -2
  666. package/dist/{sign-in-BwI5DHy5.js → sign-in-DklEPfDI.js} +2 -2
  667. package/dist/{sign-in-R_Ou2FMR.d.ts → sign-in-Dni-tX9B.d.ts} +1 -1
  668. package/dist/{sign-in-Dp-X2YXo.d.ts → sign-in-TNX4Pj9E.d.ts} +18 -18
  669. package/dist/{signatures-D9_TUapq.js → signatures-BZ10RZbf.js} +1 -1
  670. package/dist/{signers-BnUPoU0u.d.ts → signers-DB0S8YhO.d.ts} +4 -4
  671. package/dist/{signing-keys-DulqHr3n.d.ts → signing-keys-BNwqmUlK.d.ts} +2 -2
  672. package/dist/{signing-keys-BxAcK3ve.js → signing-keys-Cr08qRGc.js} +1 -1
  673. package/dist/solid/index.d.ts +11 -11
  674. package/dist/solid/index.js +1 -1
  675. package/dist/solid-start/index.d.ts +6 -6
  676. package/dist/solid-start/index.js +4 -4
  677. package/dist/spec/index.d.ts +2 -2
  678. package/dist/spec/index.js +2 -2
  679. package/dist/sql/index.d.ts +5 -5
  680. package/dist/sql/index.js +3 -3
  681. package/dist/{sql-BqOBYRvI.js → sql-CP1j2jfo.js} +596 -227
  682. package/dist/sqlite/index.d.ts +3 -3
  683. package/dist/sqlite/index.js +1 -1
  684. package/dist/{sso-DcxycaaP.d.ts → sso-CK6_NPWp.d.ts} +3 -3
  685. package/dist/ssr/index.d.ts +4 -4
  686. package/dist/ssr/index.js +1 -1
  687. package/dist/storage/client/index.d.ts +2 -2
  688. package/dist/storage/client/index.js +1 -1
  689. package/dist/storage/index.d.ts +3 -3
  690. package/dist/storage/index.js +1 -1
  691. package/dist/streams/index.d.ts +1 -1
  692. package/dist/streams/resumable/index.d.ts +1 -1
  693. package/dist/{subject-readers-61Xd5vAQ.js → subject-readers-qnt9P3Tf.js} +2 -2
  694. package/dist/{subject-readers-DNPGHMEg.d.ts → subject-readers-zsCxIZ_1.d.ts} +5 -5
  695. package/dist/{subjects-Bb5-VIcs.d.ts → subjects-Bnhj8AsZ.d.ts} +9 -9
  696. package/dist/{support-N97YzVgD.d.ts → support-8jVUURe-.d.ts} +4 -4
  697. package/dist/{support--EPft3tt.js → support-B9mOOkAy.js} +1 -1
  698. package/dist/{support-view-D0VmaQVg.d.ts → support-view-CfyHFSq4.d.ts} +1 -1
  699. package/dist/{suspend-account-DcQFTDGI.d.ts → suspend-account-Bi-ebizL.d.ts} +2 -2
  700. package/dist/svelte/index.d.ts +10 -10
  701. package/dist/svelte/index.js +1 -1
  702. package/dist/sveltekit/index.d.ts +7 -7
  703. package/dist/sveltekit/index.js +4 -4
  704. package/dist/{tags-Bh4zXrnl.d.ts → tags-Csj8VfA7.d.ts} +1 -1
  705. package/dist/tanstack-db/index.d.ts +3 -3
  706. package/dist/tanstack-start/index.d.ts +6 -6
  707. package/dist/tanstack-start/index.js +4 -4
  708. package/dist/{tax-sql-DrR78UUW.js → tax-sql-sSJTtYtF.js} +1 -1
  709. package/dist/{tenant-BQaG8Hma.d.ts → tenant-CVRFoaDM.d.ts} +1 -1
  710. package/dist/testing/index.d.ts +36 -36
  711. package/dist/testing/index.js +38 -19
  712. package/dist/{timeline-D7T-qrKN.d.ts → timeline-T1qkzVdR.d.ts} +5 -5
  713. package/dist/{topic-CTqz7oYG.js → topic-CZ8FVS1o.js} +1 -1
  714. package/dist/{topic-R7kIJ_xI.d.ts → topic-DytYYyP3.d.ts} +16 -5
  715. package/dist/{types-BQaFrgFr.d.ts → types-BEuYPFta.d.ts} +4 -4
  716. package/dist/{types-BIpCfsXW.d.ts → types-BcBKymdQ.d.ts} +1 -1
  717. package/dist/{types-BME_OjVm.d.ts → types-CID74uQG.d.ts} +5 -5
  718. package/dist/{types-arsKcxoV.d.ts → types-CNE-ybHL.d.ts} +3 -3
  719. package/dist/{types-D9qT7VIV.d.ts → types-CVq6-P5G.d.ts} +7 -7
  720. package/dist/{types-BE6BvLv2.d.ts → types-Cge5o3f5.d.ts} +2 -2
  721. package/dist/{types-BFNVzP1M.d.ts → types-Cikitezb.d.ts} +5 -5
  722. package/dist/{types-BJ4cg51a.d.ts → types-Dizn1liT.d.ts} +12 -2
  723. package/dist/{undo-B_8VpTy2.d.ts → undo-CRejYq21.d.ts} +2 -2
  724. package/dist/{usage-BBR7z7ra.d.ts → usage-CrTrlxoi.d.ts} +4 -4
  725. package/dist/{vault-B2AI88Jz.d.ts → vault-Dyy9I0IE.d.ts} +2 -2
  726. package/dist/vercel-connect/index.d.ts +1 -1
  727. package/dist/vercel-sandbox/index.d.ts +2 -2
  728. package/dist/verifiable-credentials/index.js +2 -2
  729. package/dist/{verify-yUHyGq0u.js → verify-Bu2FKS9o.js} +1 -1
  730. package/dist/{verify-BfcOHiUP.d.ts → verify-dg8Q3iRY.d.ts} +2 -2
  731. package/dist/{version-CkYT3KbT.js → version-B0uw5rOF.js} +1 -1
  732. package/dist/{view-DKo-Koiu.d.ts → view-DwTCw_jZ.d.ts} +1 -1
  733. package/dist/vue/index.d.ts +11 -11
  734. package/dist/vue/index.js +1 -1
  735. package/dist/{watch-topic-D18gT7-K.d.ts → watch-topic-DT31uYqF.d.ts} +1 -1
  736. package/dist/{webhook-inbox-Bn-dV-vF.js → webhook-inbox-DIPjKka6.js} +1 -1
  737. package/dist/webmcp/index.d.ts +2 -2
  738. package/dist/webmcp/index.js +1 -1
  739. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  740. package/dist/workflow-sdk/index.d.ts +1 -1
  741. package/dist/workflow-sdk/index.js +1 -1
  742. package/dist/workflow-sdk/world/index.d.ts +1 -1
  743. package/dist/workflow-sdk/world/index.js +1 -1
  744. package/dist/{workflow-sdk-c025kSHf.js → workflow-sdk-IPsOMGEC.js} +1 -1
  745. package/dist/{workflow-sdk-B_yeWl8N.d.ts → workflow-sdk-Js7efMDi.d.ts} +3 -3
  746. package/dist/{workflows-DR6nJ9vq.d.ts → workflows-CUcK8Axx.d.ts} +4 -4
  747. package/dist/yjs/index.d.ts +2 -2
  748. package/dist/yjs/index.js +2 -2
  749. package/package.json +3 -1
  750. package/schemas/config-v1.json +27 -0
  751. package/schemas/error-codes.json +3 -3
  752. package/skills/better-supabase/SKILL.md +2 -2
  753. package/skills/better-supabase/references/ui-recipes.md +2 -2
  754. package/dist/cli/add-C04PIE9H.js +0 -1
  755. package/dist/cli/powersync-DnKUA1tu.js +0 -1
  756. package/dist/cli/round-trips-n_Dk1iUI.js +0 -54
  757. package/dist/cli/seed-CucH5loT.js +0 -1
@@ -1,6 +1,6 @@
1
- import { N as Casing } from "../types-BJ4cg51a.js";
2
- import { Ft as SubjectTeam, It as SubjectsConfig, Mt as SubjectConfig, Nt as SubjectPermission, Pt 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 } from "../blocks-RVd7m590.js";
3
- import { $r as SkillsAgent, Gr as DoctorConfig, Jr as GenTask, Kr as EnvFileConfig, Qr as PowerSyncGenConfig, Xr as KeysConfig, Yr as IntegrationName, Zr as MigrationSafetyConfig, ai as INTEGRATION_NAMES, cn as FIELD_FORMATS, dn as FieldFormatInput, ei as SkillsConfig, ii as INTEGRATION_INFO, oi as IntegrationInfo, qr as GenConfig, ri as GEN_TASKS, si as SKILLS_AGENTS, un as FieldFormat } from "../define-block-D-Z8xB6y.js";
4
- import { $ as flattenConfig, $n as SeedSampleConfig, $r as AppLookupConfig, Ai as ExtrasTable, Ar as GeneratorModule, At as BlockInput, B as claimPaths, Bi as RpcFunctionArg, Bt as ColumnPrivilege, Ci as CatalogTable, Cr as GeneratorFunction, Ct as ResolvedConfig, Di as ExtrasFunction, Dr as GeneratorInputSchema, Dt as AppTablesInput, Ei as ExtrasDomain, Er as GeneratorInput, Et as AppTableInput, Fi as GeneratorMetadata, Fr as RelationsConfig, Ft as SqlInput, G as blockEventRenames, Gr as APP_COLUMN_TYPES, Gt as ResolvedExpose, H as BlockEntity, Hi as RpcFunctionReturns, Ht as ExposePrivilege, Ii as PostgresColumn, Ir as SourceConfig, It as TenantConfig, J as FormerPermissionKeyError, Jn as RealtimeConfig, Jr as APP_TABLE_EVENT_KINDS, K as blockFormerFunctions, Kr as APP_ON_DELETE_ACTIONS, Li as PostgresFunction, Lr as TableConfig, Lt as ToolingConfig, Mi as Snapshot, Mr as GeneratorTable, Mt as DatabaseConfig, Ni as SnapshotBucket, Nr as JsonSchemaSource, Nt as EnvironmentConfig, Oi as ExtrasHook, Or as GeneratorJsonSchema, Ot as AuthConfig, Pi as SnapshotExtras, Pr as JsonTypeConfig, Pt as GenGroupConfig, Q as blockEntrySource, Qn as SeedDefaultsConfig, Qr as AppColumnType, R as ClaimPaths, Ri as PostgresFunctionArg, Rr as CONFIG_DEFAULTS, Rt as EntitlementPlansSource, Si as CatalogPolicy, Sr as GeneratorField, St as HooksFramework, Ti as CatalogUnique, Tr as GeneratorImports, Tt as ApiConfig, U as blockEntities, Ui as RpcReturnColumn, Ur as APP_COLUMN_ACCESS, Ut as ExposeRole, V as tenantClaimPaths, Vi as RpcFunctionOverload, Vt as ExposeConfig, W as blockEntityRenames, Wi as RpcTypeReference, Wr as APP_COLUMN_FORMATS, Wt as Privilege, X as RENAMED_BLOCK_KEYS, Xn as ResolvedSqlConfig, Xr as AppColumnConfig, Y as CONFIG_GROUPS, Yn as ResolvedSeedConfig, Yr as AppColumnAccess, Z as RENAMED_CONFIG_KEYS, Zn as SeedConfig, Zr as AppColumnFormat, _i as CatalogForeignKey, _r as GeneratorBlockEntity, ai as AppTableConfig, ar as TopicTriggerLookupConfig, at as generatorProblem, bi as CatalogGrant, br as GeneratorConfigView, bt as DataHooksSelect, ci as AppTableEvents, cr as TopicTriggerValueConfig, ct as BucketName, di as AppTablesConfig, dr as resolveJsonSchema, ei as AppOnDeleteAction, er as SeedSampleSize, et as groupConfig, fi as Catalog, fr as ClaimsConfig, ft as ExpandedConfig, gi as CatalogEnum, gr as GeneratorBlock, hi as CatalogColumnGrant, hr as Generator, ii as AppRollupConfig, ir as TopicTriggerConfig, it as defineConfig, ji as ForeignKeyAction, jr as GeneratorNoun, jt as BlocksInput, ki as ExtrasHookFunction, kr as GeneratorModel, kt as BetterSupabaseConfig, li as AppTableSubject, lr as VectorDistance, lt as ConfigReferences, mi as CatalogColumn, mr as GeneratedFile, ni as AppReferenceTarget, nr as SqlConfig, nt as CONFIG_SCHEMA_URL, oi as AppTableEmbedding, or as TopicTriggerPayloadValueConfig, ot as resolveConfig, pi as CatalogCheck, pr as CodecsConfig, q as blockSubjectTypes, qn as BucketConfig, qr as APP_ROLLUP_AGGREGATES, ri as AppRollupAggregate, rr as SqlWorkflow, rt as ResolveInput, si as AppTableEventKind, sr as TopicTriggerTopicConfig, st as BlockTableReference, ti as AppReference, tr as SqlBlockDefaults, tt as groupEntries, ui as AppTableVersions, ur as VectorSearchConfig, ut as RoleNames, vi as CatalogFunction, vr as GeneratorCapability, vt as DataHooksConfig, wi as CatalogTrigger, wr as GeneratorFunctionArg, wt as ResolvedExtensions, xi as CatalogIndex, xr as GeneratorEntitySchemas, xt as FlatConfig, yi as CatalogFunctionArg, yr as GeneratorColumn, yt as DataHooksFramework, z as DEFAULT_CLAIMS, zi as RpcFunction, zt as EntitlementsConfig } from "../context-DMTfze4z.js";
5
- import { _ as resolvePersonas, a as AuthorizationPermission, c as AuthorizationProvider, d as AuthorizationScope, f as AuthorizationTokenHook, g as providerApiProblem, h as permissionLevelKey, i as AuthorizationOperation, l as AuthorizationRequirement, m as PERMISSION_LEVEL_SEPARATOR, n as AuthorizationFunctions, o as AuthorizationPersona, p as AuthorizationVersions, r as AuthorizationMembership, s as AuthorizationPlatformRoles, t as AuthorizationFixtureRole, u as AuthorizationRoleSource, v as splitPermissionLevel } from "../authorization-Dq47C4vf.js";
1
+ import { N as Casing } from "../types-Dizn1liT.js";
2
+ import { Ft as SubjectTeam, It as SubjectsConfig, Mt as SubjectConfig, Nt as SubjectPermission, Pt 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 } from "../blocks-D4ngpPJ_.js";
3
+ import { $r as SkillsAgent, Gr as DoctorConfig, Jr as GenTask, Kr as EnvFileConfig, Qr as PowerSyncGenConfig, Xr as KeysConfig, Yr as IntegrationName, Zr as MigrationSafetyConfig, ai as INTEGRATION_NAMES, cn as FIELD_FORMATS, dn as FieldFormatInput, ei as SkillsConfig, ii as INTEGRATION_INFO, oi as IntegrationInfo, qr as GenConfig, ri as GEN_TASKS, si as SKILLS_AGENTS, un as FieldFormat } from "../define-block-DQvTGOGv.js";
4
+ import { $ as flattenConfig, $n as SeedSampleConfig, $r as AppLookupConfig, Ai as ExtrasTable, Ar as GeneratorModule, At as BlockInput, B as claimPaths, Bi as RpcFunctionArg, Bt as ColumnPrivilege, Ci as CatalogTable, Cr as GeneratorFunction, Ct as ResolvedConfig, Di as ExtrasFunction, Dr as GeneratorInputSchema, Dt as AppTablesInput, Ei as ExtrasDomain, Er as GeneratorInput, Et as AppTableInput, Fi as GeneratorMetadata, Fr as RelationsConfig, Ft as SqlInput, G as blockEventRenames, Gr as APP_COLUMN_TYPES, Gt as ResolvedExpose, H as BlockEntity, Hi as RpcFunctionReturns, Ht as ExposePrivilege, Ii as PostgresColumn, Ir as SourceConfig, It as TenantConfig, J as FormerPermissionKeyError, Jn as RealtimeConfig, Jr as APP_TABLE_EVENT_KINDS, K as blockFormerFunctions, Kr as APP_ON_DELETE_ACTIONS, Li as PostgresFunction, Lr as TableConfig, Lt as ToolingConfig, Mi as Snapshot, Mr as GeneratorTable, Mt as DatabaseConfig, Ni as SnapshotBucket, Nr as JsonSchemaSource, Nt as EnvironmentConfig, Oi as ExtrasHook, Or as GeneratorJsonSchema, Ot as AuthConfig, Pi as SnapshotExtras, Pr as JsonTypeConfig, Pt as GenGroupConfig, Q as blockEntrySource, Qn as SeedDefaultsConfig, Qr as AppColumnType, R as ClaimPaths, Ri as PostgresFunctionArg, Rr as CONFIG_DEFAULTS, Rt as EntitlementPlansSource, Si as CatalogPolicy, Sr as GeneratorField, St as HooksFramework, Ti as CatalogUnique, Tr as GeneratorImports, Tt as ApiConfig, U as blockEntities, Ui as RpcReturnColumn, Ur as APP_COLUMN_ACCESS, Ut as ExposeRole, V as tenantClaimPaths, Vi as RpcFunctionOverload, Vt as ExposeConfig, W as blockEntityRenames, Wi as RpcTypeReference, Wr as APP_COLUMN_FORMATS, Wt as Privilege, X as RENAMED_BLOCK_KEYS, Xn as ResolvedSqlConfig, Xr as AppColumnConfig, Y as CONFIG_GROUPS, Yn as ResolvedSeedConfig, Yr as AppColumnAccess, Z as RENAMED_CONFIG_KEYS, Zn as SeedConfig, Zr as AppColumnFormat, _i as CatalogForeignKey, _r as GeneratorBlockEntity, ai as AppTableConfig, ar as TopicTriggerLookupConfig, at as generatorProblem, bi as CatalogGrant, br as GeneratorConfigView, bt as DataHooksSelect, ci as AppTableEvents, cr as TopicTriggerValueConfig, ct as BucketName, di as AppTablesConfig, dr as resolveJsonSchema, ei as AppOnDeleteAction, er as SeedSampleSize, et as groupConfig, fi as Catalog, fr as ClaimsConfig, ft as ExpandedConfig, gi as CatalogEnum, gr as GeneratorBlock, hi as CatalogColumnGrant, hr as Generator, ii as AppRollupConfig, ir as TopicTriggerConfig, it as defineConfig, ji as ForeignKeyAction, jr as GeneratorNoun, jt as BlocksInput, ki as ExtrasHookFunction, kr as GeneratorModel, kt as BetterSupabaseConfig, li as AppTableSubject, lr as VectorDistance, lt as ConfigReferences, mi as CatalogColumn, mr as GeneratedFile, ni as AppReferenceTarget, nr as SqlConfig, nt as CONFIG_SCHEMA_URL, oi as AppTableEmbedding, or as TopicTriggerPayloadValueConfig, ot as resolveConfig, pi as CatalogCheck, pr as CodecsConfig, q as blockSubjectTypes, qn as BucketConfig, qr as APP_ROLLUP_AGGREGATES, ri as AppRollupAggregate, rr as SqlWorkflow, rt as ResolveInput, si as AppTableEventKind, sr as TopicTriggerTopicConfig, st as BlockTableReference, ti as AppReference, tr as SqlBlockDefaults, tt as groupEntries, ui as AppTableVersions, ur as VectorSearchConfig, ut as RoleNames, vi as CatalogFunction, vr as GeneratorCapability, vt as DataHooksConfig, wi as CatalogTrigger, wr as GeneratorFunctionArg, wt as ResolvedExtensions, xi as CatalogIndex, xr as GeneratorEntitySchemas, xt as FlatConfig, yi as CatalogFunctionArg, yr as GeneratorColumn, yt as DataHooksFramework, z as DEFAULT_CLAIMS, zi as RpcFunction, zt as EntitlementsConfig } from "../context-m-t6Kr9_.js";
5
+ import { _ as resolvePersonas, a as AuthorizationPermission, c as AuthorizationProvider, d as AuthorizationScope, f as AuthorizationTokenHook, g as providerApiProblem, h as permissionLevelKey, i as AuthorizationOperation, l as AuthorizationRequirement, m as PERMISSION_LEVEL_SEPARATOR, n as AuthorizationFunctions, o as AuthorizationPersona, p as AuthorizationVersions, r as AuthorizationMembership, s as AuthorizationPlatformRoles, t as AuthorizationFixtureRole, u as AuthorizationRoleSource, v as splitPermissionLevel } from "../authorization-glyinWcf.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 AuthorizationFixtureRole, 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 FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, FormerPermissionKeyError, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorCapability, type GeneratorColumn, type GeneratorConfigView, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorImports, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorModule, type GeneratorNoun, type GeneratorTable, type HooksFramework, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaSource, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type OwnTablePolicies, PERMISSION_LEVEL_SEPARATOR, 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 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 VectorDistance, type VectorSearchConfig, blockEntities, blockEntityRenames, blockEntrySource, blockEventRenames, blockFormerFunctions, blockSubjectTypes, claimPaths, defineConfig, flattenConfig, generatorProblem, groupConfig, groupEntries, permissionLevelKey, providerApiProblem, resolveConfig, resolveJsonSchema, resolvePersonas, splitPermissionLevel, tenantClaimPaths, tenantNameOf };
@@ -1,7 +1,7 @@
1
- import { _ as CONFIG_DEFAULTS, a as blockEntityRenames, c as blockSubjectTypes, g as resolveJsonSchema, i as blockEntities, o as blockEventRenames, s as blockFormerFunctions, t as FormerPermissionKeyError } from "../former-permission-keys-BwJW5uc6.js";
1
+ import { _ as CONFIG_DEFAULTS, a as blockEntityRenames, c as blockSubjectTypes, g as resolveJsonSchema, i as blockEntities, o as blockEventRenames, s as blockFormerFunctions, t as FormerPermissionKeyError } from "../former-permission-keys-D8FbWktT.js";
2
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-a_CzEbpi.js";
3
3
  import { a as tenantClaimPaths, r as claimPaths, t as DEFAULT_CLAIMS } from "../claims-CX-ar1vt.js";
4
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-07Lopbd1.js";
5
5
  import { i as FIELD_FORMATS } from "../field-formats-sLYMh1ZK.js";
6
- import { a as PERMISSION_LEVEL_SEPARATOR, c as resolvePersonas, i as resolveConfig, l as splitPermissionLevel, n as defineConfig, o as permissionLevelKey, r as generatorProblem, s as providerApiProblem, t as CONFIG_SCHEMA_URL } from "../config-C3yry9U5.js";
6
+ import { a as PERMISSION_LEVEL_SEPARATOR, c as resolvePersonas, i as resolveConfig, l as splitPermissionLevel, n as defineConfig, o as permissionLevelKey, r as generatorProblem, s as providerApiProblem, t as CONFIG_SCHEMA_URL } from "../config-cisS43w5.js";
7
7
  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, FormerPermissionKeyError, GEN_TASKS, INTEGRATION_INFO, INTEGRATION_NAMES, PERMISSION_LEVEL_SEPARATOR, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, SKILLS_AGENTS, blockEntities, blockEntityRenames, blockEntrySource, blockEventRenames, blockFormerFunctions, blockSubjectTypes, claimPaths, defineConfig, flattenConfig, generatorProblem, groupConfig, groupEntries, permissionLevelKey, providerApiProblem, resolveConfig, resolveJsonSchema, resolvePersonas, splitPermissionLevel, tenantClaimPaths, tenantNameOf };
@@ -1,4 +1,4 @@
1
- import { _ as CONFIG_DEFAULTS, u as withBlockSubjects } from "./former-permission-keys-BwJW5uc6.js";
1
+ import { _ as CONFIG_DEFAULTS, u as withBlockSubjects } from "./former-permission-keys-D8FbWktT.js";
2
2
  import { j as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-a_CzEbpi.js";
3
3
  import { t as DEFAULT_CLAIMS } from "./claims-CX-ar1vt.js";
4
4
  import { o as tenantNames } from "./entity-naming-CUsC8bC1.js";
@@ -1,12 +1,12 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { n as ExtraFields, r as FieldsOf } from "./block-fields-go27qquz.js";
3
- import { n as BlockHooks } from "./block-hooks-StmUvtuT.js";
4
- import { t as BlockTransport } from "./block-transport-BNMvuuyC.js";
3
+ import { n as BlockHooks } from "./block-hooks-b7-RUIxS.js";
4
+ import { t as BlockTransport } from "./block-transport-Bqne7_GN.js";
5
5
  import { T as ErrorMapper, t as AsyncResult } from "./result-aun_QZHn.js";
6
6
  import { n as Logger } from "./logger-0LfhvwE4.js";
7
7
  import { t as StandardSchemaV1 } from "./standard-Vmy7ALDX.js";
8
- import { i as CredentialRef, r as CredentialProvider } from "./provider-r2RjlARm.js";
9
- import { r as BlockTemporalOptions } from "./block-helpers-D0QSs8ss.js";
8
+ import { i as CredentialRef, r as CredentialProvider } from "./provider-DSokOaUo.js";
9
+ import { r as BlockTemporalOptions } from "./block-helpers-DDotKGAf.js";
10
10
  type ConnectorTransport = "http" | "sse";
11
11
  /**
12
12
  * `none`, OAuth per user (a grant each), or a header from the server's
@@ -1,9 +1,9 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { n as BlockHooks } from "./block-hooks-StmUvtuT.js";
2
+ import { n as BlockHooks } from "./block-hooks-b7-RUIxS.js";
3
3
  import { n as Logger } from "./logger-0LfhvwE4.js";
4
4
  import { t as AsyncResult } from "./result-aun_QZHn.js";
5
- import { et as RecordRef } from "./types-BJ4cg51a.js";
6
- import { n as BlockOptions } from "./block-helpers-D0QSs8ss.js";
5
+ import { et as RecordRef } from "./types-Dizn1liT.js";
6
+ import { n as BlockOptions } from "./block-helpers-DDotKGAf.js";
7
7
  declare const LEGAL_BASES: readonly ["consent", "contract", "legal_obligation", "vital_interest", "public_task", "legitimate_interest"];
8
8
  declare const STATUSES: readonly ["granted", "refused", "withdrawn", "expired"];
9
9
  declare const GIVEN_BY: readonly ["self", "representative"];
@@ -1,12 +1,12 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { n as Money } from "./money-BgpAd7d3.js";
3
3
  import { i as RowFields, r as FieldsOf } from "./block-fields-go27qquz.js";
4
- import { n as BlockHooks } from "./block-hooks-StmUvtuT.js";
5
- import { t as BlockTransport } from "./block-transport-BNMvuuyC.js";
4
+ import { n as BlockHooks } from "./block-hooks-b7-RUIxS.js";
5
+ import { t as BlockTransport } from "./block-transport-Bqne7_GN.js";
6
6
  import { T as ErrorMapper, t as AsyncResult } from "./result-aun_QZHn.js";
7
7
  import { n as Logger } from "./logger-0LfhvwE4.js";
8
8
  import { t as StandardSchemaV1 } from "./standard-Vmy7ALDX.js";
9
- import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-D0QSs8ss.js";
9
+ import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-DDotKGAf.js";
10
10
  /** The roles `options.roles` falls back to. */
11
11
  declare const PARTY_ROLES: readonly ["customer", "supplier", "funder", "partner"];
12
12
  /** Where a supplier stands on the approved supplier list. */
@@ -422,8 +422,8 @@ interface ContactsOptions<S extends StandardSchemaV1 | undefined = undefined> ex
422
422
  }
423
423
  /**
424
424
  * The parties block: companies and people an organization works with. Register
425
- * them in `config.subjects` with `partiesSubjects()` so comments, tags, files,
426
- * pipelines and deals can point at them.
425
+ * them in `config.recordTypes` with `partiesSubjects()` so comments, tags,
426
+ * files, pipelines and deals can point at them.
427
427
  */
428
428
  declare function createContacts<S extends StandardSchemaV1 | undefined = undefined>(options: ContactsOptions<S>): Contacts<FieldsOf<S>>;
429
429
  export { DeliveryChannel as A, REPRESENTATIVE_AUTHORITIES as C, CREDIT_BLOCKS as D, RepresentativeRole as E, SUPPLIER_STATUSES as M, SupplierStatus as N, CreditBlock as O, PaymentTermInput as S, RepresentativeAuthority as T, RepresentedRecord as _, ContactsOptions as a, DeliveryPreferenceInput as b, PartyListOptions as c, PersonIdentity as d, PersonIdentityInput as f, Representative as g, Representation as h, Contacts as i, PARTY_ROLES as j, DELIVERY_CHANNELS as k, PartyPage as l, PersonMode as m, CompanyInput as n, Party as o, PersonInput as p, CompanyPerson as r, PartyCursor as s, Company as t, Person as u, createContacts as v, REPRESENTATIVE_ROLES as w, PaymentTerm as x, DeliveryPreference as y };
@@ -1,13 +1,13 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { F as ClaimsMeta, M as BucketPolicyName, N as Casing, T as AccessBucketPolicy, st as SchemaMeta, vt as BucketLifecycle } from "./types-BJ4cg51a.js";
3
- import { It as SubjectsConfig, Xt as TablesOf, Zt as BlockNameRegistry, _ as OwnTablePolicies, a as BlockConfigOf, c as BlockScope, d as DisabledRow, g as NamedInstance, h as InstanceOn, i as BlockConfig, jt as RelationKindOptions, l as BlocksConfig, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, s as BlockName, t as AccessBlockConfig, v as ResolvedBlock, y as TenantScopeConfig } from "./blocks-RVd7m590.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, Rr as PresetScope, Sr as EntityNoun, Xr as KeysConfig, Yr as IntegrationName, b as BlockEnvKey, bi as DefaultAutomation, di as ActionDescriptor, ei as SkillsConfig, 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 SpecsConfig, qr as GenConfig, ti as SpecOutputConfig, x as BlockProvider, xr as EntityNames, yi as BlockSchedule } from "./define-block-D-Z8xB6y.js";
2
+ import { F as ClaimsMeta, M as BucketPolicyName, N as Casing, T as AccessBucketPolicy, st as SchemaMeta, vt as BucketLifecycle } from "./types-Dizn1liT.js";
3
+ import { It as SubjectsConfig, Xt as TablesOf, Zt as BlockNameRegistry, _ as OwnTablePolicies, a as BlockConfigOf, c as BlockScope, d as DisabledRow, g as NamedInstance, h as InstanceOn, i as BlockConfig, jt as RelationKindOptions, l as BlocksConfig, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, s as BlockName, t as AccessBlockConfig, v as ResolvedBlock, y as TenantScopeConfig } from "./blocks-D4ngpPJ_.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, Rr as PresetScope, Sr as EntityNoun, Xr as KeysConfig, Yr as IntegrationName, b as BlockEnvKey, bi as DefaultAutomation, di as ActionDescriptor, ei as SkillsConfig, 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 SpecsConfig, qr as GenConfig, ti as SpecOutputConfig, x as BlockProvider, xr as EntityNames, yi as BlockSchedule } from "./define-block-DQvTGOGv.js";
5
5
  import { i as FieldSpec } from "./table-schema-CwXg7oBz.js";
6
6
  import { n as ReadType } from "./read-type-BmF8GOkz.js";
7
7
  import { a as BlockSqlEmit, r as BlockSqlAction } from "./audit-actions-DC-AtyWB.js";
8
8
  import { r as FrameworkBinding } from "./frameworks-BRExUk_W.js";
9
9
  import { t as GuestAction } from "./guest-actions-DfHHp98H.js";
10
- import { c as AuthorizationProvider, i as AuthorizationOperation, n as AuthorizationFunctions, r as AuthorizationMembership, s as AuthorizationPlatformRoles, u as AuthorizationRoleSource } from "./authorization-Dq47C4vf.js";
10
+ import { c as AuthorizationProvider, i as AuthorizationOperation, n as AuthorizationFunctions, r as AuthorizationMembership, s as AuthorizationPlatformRoles, u as AuthorizationRoleSource } from "./authorization-glyinWcf.js";
11
11
  import { StandardSchemaV1 } from "@standard-schema/spec";
12
12
  /**
13
13
  * One declared link from an entity of this module to an entity of another
@@ -387,8 +387,8 @@ interface AcknowledgementContribution {
387
387
  /** The column that holds the current version's id (a `versions` row). */
388
388
  readonly versionColumn: string;
389
389
  /**
390
- * The record's table, for when neither `on` nor `config.subjects` names the
391
- * type: `{ table, idType?, tenant?, permission? }` as in `on.<type>`.
390
+ * The record's table, for when neither `on` nor `config.recordTypes` names
391
+ * the type: `{ table, idType?, tenant?, permission? }` as in `on.<type>`.
392
392
  */
393
393
  readonly record?: {
394
394
  readonly table: string;
@@ -2217,6 +2217,17 @@ interface TopicTriggerConfig {
2217
2217
  readonly payload?: "keys" | "row" | Readonly<Record<string, TopicTriggerPayloadValueConfig>>;
2218
2218
  readonly topics?: readonly TopicTriggerTopicConfig[];
2219
2219
  readonly functionSchema?: string;
2220
+ /**
2221
+ * `"transaction"` sends each message once per transaction: a row whose topic,
2222
+ * event and payload match one already sent in the same transaction is
2223
+ * skipped, so a bulk write sends one message per key.
2224
+ */
2225
+ readonly dedupe?: "transaction";
2226
+ /**
2227
+ * The payload fields that tell two messages apart for `dedupe`, next to the
2228
+ * topic and the event. Defaults to the whole payload.
2229
+ */
2230
+ readonly dedupeKey?: readonly string[];
2220
2231
  /**
2221
2232
  * `{ changed: ["status"] }` sends an UPDATE only when one of these columns
2222
2233
  * changed. Inserts and deletes always send.
@@ -4229,7 +4240,7 @@ interface BlockSqlLayout {
4229
4240
  /** `sql.scope`: the scope of every block that sets none. Defaults to `tenant`. */
4230
4241
  readonly scope?: BlockScope;
4231
4242
  readonly blockTenantColumn?: string;
4232
- /** `config.subjects`: the app-wide subject registry (ADR 0020). */
4243
+ /** `config.recordTypes`: the app-wide subject registry (ADR 0020). */
4233
4244
  readonly subjects?: SubjectsConfig;
4234
4245
  /**
4235
4246
  * `config.appTables`: the tables the app owns, rendered after the blocks (ADR
@@ -4243,6 +4254,8 @@ interface BlockSqlLayout {
4243
4254
  * (with `blocks.permissions.scopes` merged over it).
4244
4255
  */
4245
4256
  readonly delegationScopes?: Readonly<Record<string, readonly string[]>>;
4257
+ /** `authorization.delegation.interactiveOnly`. */
4258
+ readonly delegationInteractiveOnly?: readonly string[];
4246
4259
  /**
4247
4260
  * `authorization.versions`: the provider keeps the authorization versions, so
4248
4261
  * `sessions` reads them through its function and creates no table.
@@ -4561,8 +4574,9 @@ interface BlockSqlTableLifecycle {
4561
4574
  readonly credentialSubject?: "app" | "user";
4562
4575
  }
4563
4576
  /**
4564
- * What makes an entity a `config.subjects` entry when the block is installed.
4565
- * Columns are the table's logical columns; permissions are module actions.
4577
+ * What makes an entity a `config.recordTypes` entry when the block is
4578
+ * installed. Columns are the table's logical columns; permissions are module
4579
+ * actions.
4566
4580
  */
4567
4581
  interface BlockSqlEntitySubject {
4568
4582
  readonly title: string;
@@ -4703,7 +4717,7 @@ interface BlockSqlContext extends BlockSqlValueMethods {
4703
4717
  readonly idType: BlockSqlIdType;
4704
4718
  readonly claims: ClaimsMeta;
4705
4719
  readonly modules: AnyBlocksConfig;
4706
- /** The app-wide subject registry (`config.subjects`). */
4720
+ /** The app-wide subject registry (`config.recordTypes`). */
4707
4721
  readonly subjects: SubjectsConfig;
4708
4722
  /** The provider's `rowsWith` and `rowsWithFor` templates under `provider`. */
4709
4723
  readonly providerRowsWith: string | undefined;
@@ -1,13 +1,13 @@
1
- import { a as AuthorizationPermission, c as AuthorizationProvider, d as AuthorizationScope, f as AuthorizationTokenHook, i as AuthorizationOperation, l as AuthorizationRequirement, n as AuthorizationFunctions, o as AuthorizationPersona, p as AuthorizationVersions, r as AuthorizationMembership, s as AuthorizationPlatformRoles, t as AuthorizationFixtureRole, u as AuthorizationRoleSource } from "../authorization-Dq47C4vf.js";
1
+ import { a as AuthorizationPermission, c as AuthorizationProvider, d as AuthorizationScope, f as AuthorizationTokenHook, i as AuthorizationOperation, l as AuthorizationRequirement, n as AuthorizationFunctions, o as AuthorizationPersona, p as AuthorizationVersions, r as AuthorizationMembership, s as AuthorizationPlatformRoles, t as AuthorizationFixtureRole, u as AuthorizationRoleSource } from "../authorization-glyinWcf.js";
2
2
  import { r as AuthzVersionSource } from "../authz-topic-C7n3kIm_.js";
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-BJ4cg51a.js";
4
- import { _ as SupportAuthorize, g as SubscriberPolicy, i as AuthorizationHooks, v as SupportAuthorizeInput } from "../authorization-hooks-DtuVzDBf.js";
5
- import { s as ApiKeyResolverOptions } from "../api-keys-BlfwKpXq.js";
6
- import { r as CredentialProvider } from "../provider-r2RjlARm.js";
7
- import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-bkm44ycq.js";
8
- import { g as SessionSnapshot } from "../resolve-Chhtdk4M.js";
9
- import { n as ApprovalOptions } from "../server-types-C8zErBy9.js";
10
- import { n as BlockTables, t as BlockTable } from "../block-tables-BaLXCQha.js";
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-Dizn1liT.js";
4
+ import { _ as SupportAuthorize, g as SubscriberPolicy, i as AuthorizationHooks, v as SupportAuthorizeInput } from "../authorization-hooks-Oe0WJTn2.js";
5
+ import { s as ApiKeyResolverOptions } from "../api-keys-Bfk9mJgz.js";
6
+ import { r as CredentialProvider } from "../provider-DSokOaUo.js";
7
+ import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-Dea13gIz.js";
8
+ import { g as SessionSnapshot } from "../resolve-Pn7KvQ23.js";
9
+ import { n as ApprovalOptions } from "../server-types-By5oBsDZ.js";
10
+ import { n as BlockTables, t as BlockTable } from "../block-tables-CkbJsNys.js";
11
11
  import { a as BootstrapPermissionsWire, i as BootstrapPermissionsFull, n as BootstrapPermissions, r as BootstrapPermissionsCompact } from "../bootstrap-permissions-hiWjQ2N7.js";
12
12
  /**
13
13
  * The types an authorization library implements or reads, in one entry with no
@@ -4,13 +4,13 @@ import { a as sqlString, i as sqlIdent } from "./template-CpYN7hZX.js";
4
4
  import { q as splitTable } from "./shared-D-qwk29i.js";
5
5
  import { r as subjectTypeIdent, t as SUBJECT_TYPE_PATTERN } from "./subject-type-BarjdHZV.js";
6
6
  // src/core/subject-permission.ts
7
- /** A `config.subjects.<type>.permissions` entry as its parts. */
7
+ /** A `config.recordTypes.<type>.permissions` entry as its parts. */
8
8
  function subjectPermissionOf(value) {
9
9
  return typeof value === "string" ? { key: value } : value;
10
10
  }
11
11
  /**
12
- * The tenant permission key of a `config.subjects.<type>.permissions` entry, or
13
- * `undefined` when the action is granted only per row or to an owner.
12
+ * The tenant permission key of a `config.recordTypes.<type>.permissions` entry,
13
+ * or `undefined` when the action is granted only per row or to an owner.
14
14
  */
15
15
  function subjectPermissionKey(value) {
16
16
  return subjectPermissionOf(value)?.key;
@@ -108,7 +108,7 @@ function checkAuditReads(where, entry, tenant) {
108
108
  if (typeof auditReads !== "boolean") throw new TypeError(`${where}.auditReads must be true or false`);
109
109
  if (auditReads && tenant === void 0) throw new TypeError(`${where}.auditReads needs a tenant column: read entries belong to the record's tenant`);
110
110
  }
111
- /** Whether some type in `config.subjects` logs its reads. */
111
+ /** Whether some type in `config.recordTypes` logs its reads. */
112
112
  function logsSubjectReads(subjects) {
113
113
  return Object.values(subjects ?? {}).some((subject) => subject.auditReads === true && subject.tenant !== false);
114
114
  }
@@ -121,7 +121,7 @@ function teamActions(subject) {
121
121
  return subject.tenant === void 0 ? [] : subject.config.team?.actions ?? [];
122
122
  }
123
123
  /**
124
- * `config.subjects`, checked: every entry with its table split and quoted. A
124
+ * `config.recordTypes`, checked: every entry with its table split and quoted. A
125
125
  * subject without `tenant` gets the tenant column `naming` names
126
126
  * (`organization_id`, or `workspace_id` for
127
127
  * `blocks.memberships.names.organization: workspace`).
@@ -190,7 +190,7 @@ function registeredSubjects(subjects, naming = tenantNames()) {
190
190
  }
191
191
  /**
192
192
  * The tenant column of `table` (`schema.table`, or a table in `public`): the
193
- * `tenant` of the `config.subjects` entry for that table, else the tenant
193
+ * `tenant` of the `config.recordTypes` entry for that table, else the tenant
194
194
  * column `naming` names. `undefined` when the entry says the table has no
195
195
  * tenant.
196
196
  */
@@ -1,4 +1,4 @@
1
- import { a as ClientAuth } from "./bind-Bx0H1vAc.js";
1
+ import { a as ClientAuth } from "./bind-B-NW7-Fd.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 { ci as Action, li as ActionCall, ui as ActionContext } from "./define-block-D-Z8xB6y.js";
1
+ import { ci as Action, li as ActionCall, ui as ActionContext } from "./define-block-DQvTGOGv.js";
2
2
  import { f as Result } from "./result-aun_QZHn.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 { Kr as APP_ON_DELETE_ACTIONS, Nn as PresetSpec, Qr as AppColumnType, Qt as PresetName, Yr as AppColumnAccess, ei as AppOnDeleteAction, m as BlockSqlAccessProvider, pt as PresetInput, rn as CreateDesign } from "../context-DMTfze4z.js";
3
- import { $ as keyColumnsOf, A as renameTable, B as eventsColumnsEdited, C as freeTableName, Ct as Issue, D as moveTables, E as isEmptyDesign, Et as IssueSource, F as updateTable, G as SchemaComputed, H as subjectColumnsEdited, I as userConnection, J as SchemaOptions, K as SchemaData, L as withDesign, M as setTableId, N as singular, O as referenceFrom, P as tidy, Q as SchemaTarget, R as AppEvents, S as editTable, St as tableWithoutComputed, T as isAppTable, Tt as IssueSeverity, U as subjectTypeError, V as subjectColumns, W as SchemaColumn, X as SchemaSource, Y as SchemaSoftRef, Z as SchemaTable, _ as connect, _t as prunedComputed, a as AppScope, at as AppRollup, b as deleteTable, bt as rollupSources, c as ConnectResult, ct as ROLLUP_AGGREGATES, d as EMPTY_DESIGN, dt as computedRows, et as parseSchema, f as NamedDesign, ft as computedTableRenamed, g as columnError, gt as lookupSources, h as appTableId, ht as isRollupAggregate, i as AppReference, it as AppLookup, j as setColumn, k as renameColumn, l as Connection, lt as RollupAggregate, m as addTable, mt as fittedRollup, n as APP_MODULE, nt as tableStatements, o as AppTable, ot as ComputedRow, p as TablePatch, pt as filterColumns, q as SchemaForeignKey, r as AppColumn, rt as tenantColumnOf, s as AppTableId, st as DraftRollup, t as PresetMigrationFile, tt as schemaRelations, u as Design, ut as computedColumnRenamed, v as defaultError, vt as readableColumns, w as identifierError, wt as IssueCode, x as duplicateTable, xt as tableWithComputed, y as deleteColumn, yt as rollupColumns, z as AppSubject } from "../types-BE6BvLv2.js";
4
- import { kr as Preset } from "../define-block-D-Z8xB6y.js";
2
+ import { Kr as APP_ON_DELETE_ACTIONS, Nn as PresetSpec, Qr as AppColumnType, Qt as PresetName, Yr as AppColumnAccess, ei as AppOnDeleteAction, m as BlockSqlAccessProvider, pt as PresetInput, rn as CreateDesign } from "../context-m-t6Kr9_.js";
3
+ import { $ as keyColumnsOf, A as renameTable, B as eventsColumnsEdited, C as freeTableName, Ct as Issue, D as moveTables, E as isEmptyDesign, Et as IssueSource, F as updateTable, G as SchemaComputed, H as subjectColumnsEdited, I as userConnection, J as SchemaOptions, K as SchemaData, L as withDesign, M as setTableId, N as singular, O as referenceFrom, P as tidy, Q as SchemaTarget, R as AppEvents, S as editTable, St as tableWithoutComputed, T as isAppTable, Tt as IssueSeverity, U as subjectTypeError, V as subjectColumns, W as SchemaColumn, X as SchemaSource, Y as SchemaSoftRef, Z as SchemaTable, _ as connect, _t as prunedComputed, a as AppScope, at as AppRollup, b as deleteTable, bt as rollupSources, c as ConnectResult, ct as ROLLUP_AGGREGATES, d as EMPTY_DESIGN, dt as computedRows, et as parseSchema, f as NamedDesign, ft as computedTableRenamed, g as columnError, gt as lookupSources, h as appTableId, ht as isRollupAggregate, i as AppReference, it as AppLookup, j as setColumn, k as renameColumn, l as Connection, lt as RollupAggregate, m as addTable, mt as fittedRollup, n as APP_MODULE, nt as tableStatements, o as AppTable, ot as ComputedRow, p as TablePatch, pt as filterColumns, q as SchemaForeignKey, r as AppColumn, rt as tenantColumnOf, s as AppTableId, st as DraftRollup, t as PresetMigrationFile, tt as schemaRelations, u as Design, ut as computedColumnRenamed, v as defaultError, vt as readableColumns, w as identifierError, wt as IssueCode, x as duplicateTable, xt as tableWithComputed, y as deleteColumn, yt as rollupColumns, z as AppSubject } from "../types-Cge5o3f5.js";
4
+ import { kr as Preset } from "../define-block-DQvTGOGv.js";
5
5
  import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-DtX4ic1F.js";
6
- import { b as DesignChange } from "../index-B6h9m3ml.js";
6
+ import { b as DesignChange } from "../index-DCqy0ESb.js";
7
7
  /** What `checkDesign` returns. */
8
8
  export type DesignCheck = {
9
9
  readonly ok: true;
@@ -1,6 +1,6 @@
1
1
  import { A as APP_ON_DELETE_ACTIONS } from "../instances-07Lopbd1.js";
2
- import { $ as eventsColumnsEdited, A as renameColumn, B as computedColumnRenamed, C as editTable, D as isEmptyDesign, E as isAppTable, F as tidy, G as isRollupAggregate, H as computedTableRenamed, I as updateTable, J as readableColumns, K as lookupSources, L as userConnection, M as setColumn, N as setTableId, O as moveTables, P as singular, Q as tableWithoutComputed, R as withDesign, S as duplicateTable, T as identifierError, U as filterColumns, V as computedRows, W as fittedRollup, X as rollupSources, Y as rollupColumns, Z as tableWithComputed, _ as columnError, a as parseSchema, at as encryptable, b as deleteColumn, c as tenantColumnOf, ct as optionError, d as previewFiles, et as subjectColumns, f as designIssues, g as appTableId, h as addTable, i as keyColumnsOf, it as columnLabel, j as renameTable, k as referenceFrom, l as schemaData, lt as takesBounds, m as EMPTY_DESIGN, n as loadProject, nt as subjectTypeError, o as schemaRelations, ot as fitted, p as APP_MODULE, q as prunedComputed, r as checkDesign, rt as boundError, s as tableStatements, st as lockedWithoutDefault, t as checkProject, tt as subjectColumnsEdited, u as previewAccessProvider, ut as withBounds, v as connect, w as freeTableName, x as deleteTable, y as defaultError, z as ROLLUP_AGGREGATES } from "../project-DI09JnXz.js";
3
- import { m as diffDesigns } from "../preset-HzYIrxUS.js";
2
+ import { $ as eventsColumnsEdited, A as renameColumn, B as computedColumnRenamed, C as editTable, D as isEmptyDesign, E as isAppTable, F as tidy, G as isRollupAggregate, H as computedTableRenamed, I as updateTable, J as readableColumns, K as lookupSources, L as userConnection, M as setColumn, N as setTableId, O as moveTables, P as singular, Q as tableWithoutComputed, R as withDesign, S as duplicateTable, T as identifierError, U as filterColumns, V as computedRows, W as fittedRollup, X as rollupSources, Y as rollupColumns, Z as tableWithComputed, _ as columnError, a as parseSchema, at as encryptable, b as deleteColumn, c as tenantColumnOf, ct as optionError, d as previewFiles, et as subjectColumns, f as designIssues, g as appTableId, h as addTable, i as keyColumnsOf, it as columnLabel, j as renameTable, k as referenceFrom, l as schemaData, lt as takesBounds, m as EMPTY_DESIGN, n as loadProject, nt as subjectTypeError, o as schemaRelations, ot as fitted, p as APP_MODULE, q as prunedComputed, r as checkDesign, rt as boundError, s as tableStatements, st as lockedWithoutDefault, t as checkProject, tt as subjectColumnsEdited, u as previewAccessProvider, ut as withBounds, v as connect, w as freeTableName, x as deleteTable, y as defaultError, z as ROLLUP_AGGREGATES } from "../project-wJ3jYipI.js";
3
+ import { m as diffDesigns } from "../preset-ZZ4H2s92.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 { Ct as Issue, t as PresetMigrationFile, u as Design } from "../../types-BE6BvLv2.js";
2
- import { pt as PresetInput, rn as CreateDesign } from "../../context-DMTfze4z.js";
3
- import { st as SchemaMeta } from "../../types-BJ4cg51a.js";
1
+ import { Ct as Issue, t as PresetMigrationFile, u as Design } from "../../types-Cge5o3f5.js";
2
+ import { pt as PresetInput, rn as CreateDesign } from "../../context-m-t6Kr9_.js";
3
+ import { st as SchemaMeta } from "../../types-Dizn1liT.js";
4
4
  import { c as SpecDiagnostic } from "../../format-BT0Z3V54.js";
5
- import { c as AuthorizationProvider } from "../../authorization-Dq47C4vf.js";
5
+ import { c as AuthorizationProvider } from "../../authorization-glyinWcf.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,8 +1,8 @@
1
1
  import { n as loadLite, t as LITE_INSTALL } from "../../runtime-sBnEajcK.js";
2
2
  import { b as appDefaultError } from "../../instances-07Lopbd1.js";
3
- import { t as defineApi } from "../../api-DAJJ7N_0.js";
4
- import { n as loadProject } from "../../project-DI09JnXz.js";
5
- import { c as resolvePersonas } from "../../config-C3yry9U5.js";
3
+ import { t as defineApi } from "../../api-Q23GAwx1.js";
4
+ import { n as loadProject } from "../../project-wJ3jYipI.js";
5
+ import { c as resolvePersonas } from "../../config-cisS43w5.js";
6
6
  import { i as fillTemplate } from "../../access-sql-Dvl7BRy0.js";
7
7
  // src/create/lite/apply.ts
8
8
  const MISSING_EXTENSION = /extension "([^"]+)" is not available/u;
@@ -16,7 +16,9 @@ function messageOf$1(error) {
16
16
  async function applyFiles(driver, files) {
17
17
  const issues = [];
18
18
  const skipped = /* @__PURE__ */ new Map();
19
- for (const file of files) {
19
+ const isData = (file) => file.path.includes("/better-supabase-data/");
20
+ const ordered = [...files.filter((file) => !isData(file)), ...files.filter((file) => isData(file))];
21
+ for (const file of ordered) {
20
22
  if (file.path.includes("/tests/") || skipped.has(file.module)) continue;
21
23
  try {
22
24
  await driver.exec(file.contents);
@@ -1,8 +1,8 @@
1
- import { a as CredentialSubject, c as SetCredentialOptions, d as credentialRefInTenant, f as foreignCredentialRef, i as CredentialRef, l as StartAuthorizationOptions, m as tenantCredentialRef, n as CredentialCapabilities, o as CredentialToken, p as subjectFor, r as CredentialProvider, s as GetTokenOptions, t as CompleteAuthorizationOptions, u as StartAuthorizationResult } from "../provider-r2RjlARm.js";
1
+ import { a as CredentialSubject, c as SetCredentialOptions, d as credentialRefInTenant, f as foreignCredentialRef, i as CredentialRef, l as StartAuthorizationOptions, m as tenantCredentialRef, n as CredentialCapabilities, o as CredentialToken, p as subjectFor, r as CredentialProvider, s as GetTokenOptions, t as CompleteAuthorizationOptions, u as StartAuthorizationResult } from "../provider-DSokOaUo.js";
2
2
  import { t as AsyncResult } from "../result-aun_QZHn.js";
3
- import { a as vaultCredentials, i as VaultInboundScheme, n as VaultCredentials, r as VaultCredentialsOptions, t as VaultCredentialRef } from "../vault-B2AI88Jz.js";
4
- import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../block-transport-BNMvuuyC.js";
5
- import { Et as Events, N as CredentialEventData } from "../events-Bk63_mjA.js";
3
+ import { a as vaultCredentials, i as VaultInboundScheme, n as VaultCredentials, r as VaultCredentialsOptions, t as VaultCredentialRef } from "../vault-Dyy9I0IE.js";
4
+ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../block-transport-Bqne7_GN.js";
5
+ import { Et as Events, N as CredentialEventData } from "../events-zz8DwtZi.js";
6
6
  /**
7
7
  * One provider over several: each call goes to the provider whose `name` is the
8
8
  * ref's `provider`. A ref no provider handles fails with `invalid_input`
@@ -3,7 +3,7 @@ import { a as tenantCredentialRef, i as subjectFor, n as credentialRefInTenant,
3
3
  import { o as blockCall } from "../block-helpers-0ISVPxIx.js";
4
4
  import { n as dbError } from "../errors-DK1wGb9z.js";
5
5
  import { a as ok, r as err, t as AsyncResult } from "../result-DijoXEFG.js";
6
- import { o as verifySharedSecret, s as verifyWebhook } from "../signatures-D9_TUapq.js";
6
+ import { o as verifySharedSecret, s as verifyWebhook } from "../signatures-BZ10RZbf.js";
7
7
  import { n as hmacHex, r as timingSafeEqual } from "../hmac-DNcfpmI9.js";
8
8
  import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../block-transport-BZOHz3nW.js";
9
9
  import { n as event, t as defineEvents } from "../event-map-DLajpFiJ.js";
@@ -1,6 +1,6 @@
1
1
  import { n as dbError } from "./errors-DK1wGb9z.js";
2
2
  import { a as methodNotAllowed, o as problemResponse } from "./problem-BwplIuhI.js";
3
- import { o as verifySharedSecret } from "./signatures-D9_TUapq.js";
3
+ import { o as verifySharedSecret } from "./signatures-BZ10RZbf.js";
4
4
  // src/core/cron-route.ts
5
5
  /**
6
6
  * A `GET` or `POST` handler for a cron caller such as Vercel Cron. It throws
@@ -1,5 +1,5 @@
1
1
  import { b as DbError, f as Result, x as DbErrorKind } from "./result-aun_QZHn.js";
2
- import { Vt as Executor } from "./types-BJ4cg51a.js";
2
+ import { Vt as Executor } from "./types-Dizn1liT.js";
3
3
  /** A queued local change: PowerSync's `CrudEntry`. */
4
4
  interface CrudEntryLike {
5
5
  /** `PUT`, `PATCH` or `DELETE` (PowerSync's `UpdateType`). */
@@ -1,12 +1,12 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { c as ClientBucket, j as StorageApi, r as BucketClient } from "./bucket-CbRyXRp3.js";
3
- import { Ct as AnyPlugin, Et as ExtensionOf, It as RequestContext, Lt as WithExtension, O as AnyFunctions, Q as PrimaryKeyValue, Vt as Executor, a as CountMode, at as Row, ct as Simplify, dt as TableKey, ft as TableMeta, gt as Update, ht as UniqueWhere, k as AnyModels, m as Operation, mt as UniqueKeyName, nt as RelationTypes, ot as Schema, q as Insert, rt as Relations, st as SchemaMeta, wt as ApplyExtension } from "./types-BJ4cg51a.js";
4
- import { a as EventHandler, c as MutationNotice, d as RpcNotice, o as EventHub, s as EventName } from "./events-Bk63_mjA.js";
2
+ import { c as ClientBucket, j as StorageApi, r as BucketClient } from "./bucket-BJ03ZblY.js";
3
+ import { Ct as AnyPlugin, Et as ExtensionOf, It as RequestContext, Lt as WithExtension, O as AnyFunctions, Q as PrimaryKeyValue, Vt as Executor, a as CountMode, at as Row, ct as Simplify, dt as TableKey, ft as TableMeta, gt as Update, ht as UniqueWhere, k as AnyModels, m as Operation, mt as UniqueKeyName, nt as RelationTypes, ot as Schema, q as Insert, rt as Relations, st as SchemaMeta, wt as ApplyExtension } from "./types-Dizn1liT.js";
4
+ import { a as EventHandler, c as MutationNotice, d as RpcNotice, o as EventHub, s as EventName } from "./events-zz8DwtZi.js";
5
5
  import { T as ErrorMapper, b as DbError, f as Result, p as ThrowMapper, t as AsyncResult } from "./result-aun_QZHn.js";
6
6
  import { n as Logger } from "./logger-0LfhvwE4.js";
7
7
  import { t as StandardSchemaV1 } from "./standard-Vmy7ALDX.js";
8
- import { a as PostgrestPlan, i as PostgrestCompileOptions } from "./postgrest-gG_GIWFi.js";
9
- import { h as FilterQuery } from "./filter-query-CI5u0oca.js";
8
+ import { a as PostgrestPlan, i as PostgrestCompileOptions } from "./postgrest-CgAxVpiW.js";
9
+ import { h as FilterQuery } from "./filter-query-DwJ1iMQ0.js";
10
10
  import { SupabaseClient } from "@supabase/supabase-js";
11
11
  /** Buckets registered with `betterSupabase.buckets()`, by key. */
12
12
  type BucketRegistry = Readonly<Record<string, ClientBucket<any, any, any>>>;
@@ -614,8 +614,17 @@ interface FunctionSpec<N extends string = string, R = unknown> {
614
614
  /** Type-only: the result of the call. */
615
615
  readonly [functionResultType]?: R;
616
616
  }
617
+ /** The second argument of an `s.$fn` call. */
618
+ interface FunctionSpecOptions {
619
+ /**
620
+ * The tables the function reads. `bsb.tags` and `bsb.cached({ readSet })` tag
621
+ * the cache entry with them, so a mutation of one revalidates the payload.
622
+ * The database cannot tell which tables a function reads.
623
+ */
624
+ readonly tables?: readonly string[];
625
+ }
617
626
  /** The function calls `s.$fn` offers: one per function in the schema. */
618
- type FunctionSpecs<F extends AnyFunctions> = { readonly [N in keyof F & string]: [F[N]["Args"]] extends [never] ? () => FunctionSpec<N, F[N]["Returns"]> : (args: F[N]["Args"]) => FunctionSpec<N, F[N]["Returns"]>; };
627
+ type FunctionSpecs<F extends AnyFunctions> = { readonly [N in keyof F & string]: [F[N]["Args"]] extends [never] ? (args?: undefined, options?: FunctionSpecOptions) => FunctionSpec<N, F[N]["Returns"]> : (args: F[N]["Args"], options?: FunctionSpecOptions) => FunctionSpec<N, F[N]["Returns"]>; };
619
628
  /** What a read set entry holds: a table read or a function call. */
620
629
  type ReadSetEntry = QuerySpec | FunctionSpec;
621
630
  /** The result of a read set entry. */
@@ -1458,4 +1467,4 @@ type ApiOptions = Omit<RpcOptions<unknown>, "schema" | "returns"> | Omit<RawRpcO
1458
1467
  * the generated data hooks read (`DbOf<typeof betterSupabase>`).
1459
1468
  */
1460
1469
  type DbOf<T> = T extends BetterSupabase<infer M, infer _D, infer F, infer E, infer _C, infer _P, infer B> ? Db<M, F, E, SupabaseClient, B> : never;
1461
- export { ReadSetParams as $, RpcDefinition as $t, PageOf as A, IncludeArg as At, UpsertManyOptions as B, Payload as Bt, NoArgName as C, ApiRequestParams as Ct, OverloadOptions as D, CountOptions as Dt, OffsetRangeOptions as E, CountArg as Et, Returned as F, MeasureKey as Ft, TextSearchParams as G, SortSpec as Gt, WriteManyOptions as H, RelationMeasureArg as Ht, RowFilter as I, MutableWhere as It, ReadSetAuth as J, PostgrestClientLike as Jt, InferReadSetParams as K, WhereArg as Kt, RpcOptions as L, NumericMeasureArg as Lt, RawRpcOptions as M, JsonPathOps as Mt, Repository as N, ListParams as Nt, OverloadReturns as O, FieldFilter as Ot, RepositoryOf as P, MeasureArg as Pt, ReadSetParamValue as Q, ConnectOptions as Qt, RpcParams as R, OrderByArg as Rt, ManyWriteOptions as S, AggregateRow as St, OffsetPageOptions as T, ColumnOrderByArg as Tt, WriteOptions as U, SelectArg as Ut, UpsertOptions as V, ReadOptions as Vt, SearchScore as W, SortDirection as Wt, ReadSetParamType as X, explainPostgrest as Xt, ReadSetOptions as Y, PostgrestExecutorOptions as Yt, ReadSetParamTypes as Z, postgrestExecutor as Zt, DeleteOptions as _, specTables as _t, DbExtras as a, CacheAdapter as an, BlockReadMap as at, ManyOutcome as b, AggregateOrderByArg as bt, createSupabase as c, cacheTargetOf as cn, InferResult as ct, CursorPage as d, rpcCacheTargets as dn, ReadSetGate as dt, SupabaseOptions as en, ReadSetResult as et, CursorPageParams as f, BucketRegistry as fn, RecordReadOptions as ft, DeleteExt as g, isQuerySpec as gt, DbHelpers as h, TableSpecs as ht, DbBlockSource as i, recordStats as in, BlockRead as it, PlainName as j, IncludeOptions as jt, OverloadedName as k, GetOptions as kt, ConflictTarget as l, memoryCache as ln, QuerySpec as lt, DbExtraHelpers as m, Specs as mt, BlockInstanceSurface as n, EMPTY_STATS as nn, isReadSet as nt, DbOf as o, CacheTarget as on, BlockReadSpecs as ot, Db as p, BucketsHelper as pn, RecordSummaryRead as pt, ReadSet as q, WhereInput as qt, BlocksHelper as r, StatsRecorder as rn, readSetTables as rt, BetterSupabase as s, MemoryCache as sn, blockRead as st, ApiOptions as t, DbStats as tn, defineReadSet as tt, CoreDb as u, rowKey as un, ReadMethod as ut, FindExt as v, AggregateOptions as vt, OffsetPage as w, ColumnOrderBy as wt, ManyResult as x, AggregateResult as xt, GetKey as y, AggregateOrderBy as yt, UpdateOptions as z, OrderByInput as zt };
1470
+ export { ReadSetParams as $, postgrestExecutor as $t, PageOf as A, FieldFilter as At, UpsertManyOptions as B, OrderByArg as Bt, NoArgName as C, AggregateResult as Ct, OverloadOptions as D, ColumnOrderByArg as Dt, OffsetRangeOptions as E, ColumnOrderBy as Et, Returned as F, ListParams as Ft, TextSearchParams as G, SelectArg as Gt, WriteManyOptions as H, Payload as Ht, RowFilter as I, MeasureArg as It, ReadSetAuth as J, WhereArg as Jt, InferReadSetParams as K, SortDirection as Kt, RpcOptions as L, MeasureKey as Lt, RawRpcOptions as M, IncludeArg as Mt, Repository as N, IncludeOptions as Nt, OverloadReturns as O, CountArg as Ot, RepositoryOf as P, JsonPathOps as Pt, ReadSetParamValue as Q, explainPostgrest as Qt, RpcParams as R, MutableWhere as Rt, ManyWriteOptions as S, AggregateOrderByArg as St, OffsetPageOptions as T, ApiRequestParams as Tt, WriteOptions as U, ReadOptions as Ut, UpsertOptions as V, OrderByInput as Vt, SearchScore as W, RelationMeasureArg as Wt, ReadSetParamType as X, PostgrestClientLike as Xt, ReadSetOptions as Y, WhereInput as Yt, ReadSetParamTypes as Z, PostgrestExecutorOptions as Zt, DeleteOptions as _, TableSpecs as _t, DbExtras as a, StatsRecorder as an, BlockReadMap as at, ManyOutcome as b, AggregateOptions as bt, createSupabase as c, CacheTarget as cn, FunctionSpec as ct, CursorPage as d, memoryCache as dn, QuerySpec as dt, ConnectOptions as en, ReadSetResult as et, CursorPageParams as f, rowKey as fn, ReadMethod as ft, DeleteExt as g, Specs as gt, DbHelpers as h, BucketsHelper as hn, RecordSummaryRead as ht, DbBlockSource as i, EMPTY_STATS as in, BlockRead as it, PlainName as j, GetOptions as jt, OverloadedName as k, CountOptions as kt, ConflictTarget as l, MemoryCache as ln, FunctionSpecOptions as lt, DbExtraHelpers as m, BucketRegistry as mn, RecordReadOptions as mt, BlockInstanceSurface as n, SupabaseOptions as nn, isReadSet as nt, DbOf as o, recordStats as on, BlockReadSpecs as ot, Db as p, rpcCacheTargets as pn, ReadSetGate as pt, ReadSet as q, SortSpec as qt, BlocksHelper as r, DbStats as rn, readSetTables as rt, BetterSupabase as s, CacheAdapter as sn, blockRead as st, ApiOptions as t, RpcDefinition as tn, defineReadSet as tt, CoreDb as u, cacheTargetOf as un, InferResult as ut, FindExt as v, isQuerySpec as vt, OffsetPage as w, AggregateRow as wt, ManyResult as x, AggregateOrderBy as xt, GetKey as y, specTables as yt, UpdateOptions as z, NumericMeasureArg as zt };
@@ -1,4 +1,4 @@
1
- import { Ct as AnyPlugin, O as AnyFunctions, ft as TableMeta, k as AnyModels, ot as Schema, st as SchemaMeta } from "./types-BJ4cg51a.js";
1
+ import { Ct as AnyPlugin, O as AnyFunctions, ft as TableMeta, k as AnyModels, ot as Schema, st as SchemaMeta } from "./types-Dizn1liT.js";
2
2
  /**
3
3
  * Binds generated model types to runtime metadata. Called from the generated
4
4
  * module; apps import the returned `schema`, never call this themselves.
@@ -1,21 +1,21 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "./result-aun_QZHn.js";
3
- import { Ct as EventMap, Dt as MergedEventMap, E as BlockEventPattern, Et as Events, O as BlockEventsMatching, o as EventHub, w as BlockEvent, wt as EventMapOf } from "./events-Bk63_mjA.js";
4
- import { Bt as BlockOptionsSchema, m as InstanceKeys, p as EntityConfig } from "./blocks-RVd7m590.js";
5
- import { c as BlockTenantOptions, n as BlockOptions, r as BlockTemporalOptions } from "./block-helpers-D0QSs8ss.js";
6
- import { a as BlockTransportMiddleware, n as BlockHooks } from "./block-hooks-StmUvtuT.js";
7
- import { i as RpcClient, r as DbTransportSource, t as BlockTransport } from "./block-transport-BNMvuuyC.js";
8
- import { n as BlockInstanceSurface } from "./db-blocks-Db3LVXco.js";
9
- import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-r2RjlARm.js";
10
- import { i as EventSink } from "./cloud-event-BtWOKfsx.js";
11
- import { A as TtlPreset, j as StorageApi, u as ImageTransform, w as TransformOptions } from "./bucket-CbRyXRp3.js";
3
+ import { Ct as EventMap, Dt as MergedEventMap, E as BlockEventPattern, Et as Events, O as BlockEventsMatching, o as EventHub, w as BlockEvent, wt as EventMapOf } from "./events-zz8DwtZi.js";
4
+ import { Bt as BlockOptionsSchema, m as InstanceKeys, p as EntityConfig } from "./blocks-D4ngpPJ_.js";
5
+ import { c as BlockTenantOptions, n as BlockOptions, r as BlockTemporalOptions } from "./block-helpers-DDotKGAf.js";
6
+ import { a as BlockTransportMiddleware, n as BlockHooks } from "./block-hooks-b7-RUIxS.js";
7
+ import { i as RpcClient, r as DbTransportSource, t as BlockTransport } from "./block-transport-Bqne7_GN.js";
8
+ import { n as BlockInstanceSurface } from "./db-blocks-_jJICfjp.js";
9
+ import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-DSokOaUo.js";
10
+ import { i as EventSink } from "./cloud-event-B0AsPtwP.js";
11
+ import { A as TtlPreset, j as StorageApi, u as ImageTransform, w as TransformOptions } from "./bucket-BJ03ZblY.js";
12
12
  import { t as StandardSchemaV1$1 } from "./standard-Vmy7ALDX.js";
13
13
  import { r as FieldsOf } from "./block-fields-go27qquz.js";
14
14
  import { n as Logger } from "./logger-0LfhvwE4.js";
15
- import { f as AiFiles, y as UploadClaimStorage } from "./types-arsKcxoV.js";
15
+ import { f as AiFiles, y as UploadClaimStorage } from "./types-CNE-ybHL.js";
16
16
  import { t as Author } from "./block-authors-BkayxCWo.js";
17
- import { et as RecordRef } from "./types-BJ4cg51a.js";
18
- import { g as Workflows } from "./workflows-DR6nJ9vq.js";
17
+ import { et as RecordRef } from "./types-Dizn1liT.js";
18
+ import { g as Workflows } from "./workflows-CUcK8Axx.js";
19
19
  import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec } from "./table-schema-CwXg7oBz.js";
20
20
  import { StandardSchemaV1 } from "@standard-schema/spec";
21
21
  /**
@@ -797,7 +797,7 @@ interface EmergencyReview {
797
797
  /** A request for access to one record, or an emergency access to it. */
798
798
  interface RecordAccessRequest extends AccessRequestBase {
799
799
  readonly target: "record";
800
- /** A `config.subjects` type with a record team, such as `client`. */
800
+ /** A `config.recordTypes` type with a record team, such as `client`. */
801
801
  readonly subjectType: string;
802
802
  readonly subjectId: string;
803
803
  /** The action asked for, such as `read`; emergency access is `read`. */
@@ -817,7 +817,7 @@ interface AccessRequestInput {
817
817
  readonly duration?: Temporal.Duration;
818
818
  }
819
819
  interface RecordAccessInput {
820
- /** A `config.subjects` type with `team`, such as `client`. */
820
+ /** A `config.recordTypes` type with `team`, such as `client`. */
821
821
  readonly subjectType: string;
822
822
  readonly subjectId: string;
823
823
  /** One of the type's `team.actions`. Default: `read`. */
@@ -1,6 +1,6 @@
1
1
  import { n as invalidRequest, o as installFunctions, r as addLazyTable, t as builderFor } from "./build-ByfDs2ru.js";
2
2
  import { a as encodeArguments, o as encodeValue, r as decodeValue } from "./wire-DDdE6nKn.js";
3
- import { a as encodeBoundCursor, d as deadline, f as invalidTuning, h as decodeRpcReturn, l as postgrestExecutor, n as needsDecoding, p as tuningOf, r as decodeBoundCursor, s as sortKey, t as decodeRows, u as NO_TUNING, y as installConnectionRuntime } from "./codec-Cjquuv8M.js";
3
+ import { a as encodeBoundCursor, d as deadline, f as invalidTuning, h as decodeRpcReturn, l as postgrestExecutor, n as needsDecoding, p as tuningOf, r as decodeBoundCursor, s as sortKey, t as decodeRows, u as NO_TUNING, y as installConnectionRuntime } from "./codec-CJaAdLjG.js";
4
4
  import { n as dbError } from "./errors-DK1wGb9z.js";
5
5
  import { t as DbException } from "./db-exception-Dv18UZ-I.js";
6
6
  import { t as instanceProperty } from "./instance-property-BlH7QSDl.js";
@@ -8,7 +8,7 @@ import { a as ok, c as withErrorMapper, r as err, s as toDbError, t as AsyncResu
8
8
  import { t as isStorageApi } from "./storage-api-COQr77e8.js";
9
9
  import { n as isRecord } from "./guards-CsRa6v57.js";
10
10
  import { r as isPlainObject, t as cloneValue } from "./clone-H_gCsL29.js";
11
- import { p as isQuerySpec, r as containsPlaceholder } from "./read-set-BptYceHc.js";
11
+ import { p as isQuerySpec, r as containsPlaceholder } from "./read-set-DfScfSsf.js";
12
12
  import { n as errorEvent } from "./events-Da482tiF.js";
13
13
  import { t as simplify } from "./simplify-BzThKn5b.js";
14
14
  import { i as or, n as column, r as not, t as and } from "./types-DnrJ_crV.js";
@@ -3,12 +3,12 @@ import { n as dbError } from "./errors-DK1wGb9z.js";
3
3
  import { a as ok, r as err, s as toDbError, t as AsyncResult } from "./result-DijoXEFG.js";
4
4
  import { t as DbException } from "./db-exception-Dv18UZ-I.js";
5
5
  import { t as builderFor } from "./build-ByfDs2ru.js";
6
- import { t as decodeRows } from "./codec-Cjquuv8M.js";
6
+ import { t as decodeRows } from "./codec-CJaAdLjG.js";
7
7
  import { n as isRecord } from "./guards-CsRa6v57.js";
8
8
  import { t as vectorLiteral } from "./search-DtbkD0h0.js";
9
- import { a as runSpec, i as NO_PLUGINS, n as decodeRpcResult, r as rpcFunction, t as provideLeanConnectionRuntime } from "./define-runtime-Dv8OYnKW.js";
9
+ import { a as runSpec, i as NO_PLUGINS, n as decodeRpcResult, r as rpcFunction, t as provideLeanConnectionRuntime } from "./define-runtime-DsFTahQB.js";
10
10
  import { t as EventHub } from "./events-Da482tiF.js";
11
- import { f as isFunctionSpec, n as checkParams, o as isReadSet, p as isQuerySpec, t as bindParams } from "./read-set-BptYceHc.js";
11
+ import { f as isFunctionSpec, n as checkParams, o as isReadSet, p as isQuerySpec, t as bindParams } from "./read-set-DfScfSsf.js";
12
12
  import { n as StatsRecorder, r as recordStats } from "./stats-D2TN2c3B.js";
13
13
  // src/core/batch.ts
14
14
  /**
@@ -1,7 +1,7 @@
1
- import { s as BetterSupabase } from "./db-blocks-Db3LVXco.js";
2
- import { It as RequestContext, O as AnyFunctions, k as AnyModels } from "./types-BJ4cg51a.js";
3
- import { n as SqlClient } from "./executor-BypvvW56.js";
4
- import { T as AnyBucket } from "./index-BAku12tP.js";
1
+ import { s as BetterSupabase } from "./db-blocks-_jJICfjp.js";
2
+ import { It as RequestContext, O as AnyFunctions, k as AnyModels } from "./types-Dizn1liT.js";
3
+ import { n as SqlClient } from "./executor-7zo2arIZ.js";
4
+ import { T as AnyBucket } from "./index-BHkxtS6f.js";
5
5
  import { t as AsyncResult } from "./result-aun_QZHn.js";
6
6
  import { SupabaseClient } from "@supabase/supabase-js";
7
7
  interface DeleteAccountOptions {