better-supabase 0.48.0 → 0.49.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 (708) hide show
  1. package/dist/{activities-D39qA-Af.d.ts → activities-C2v_Sq4w.d.ts} +1 -1
  2. package/dist/{ai-schedules-g-uKxgU2.d.ts → ai-schedules-BOiaFIva.d.ts} +1 -1
  3. package/dist/ai-sdk/agents/index.d.ts +2 -2
  4. package/dist/{app-tables-C7zbYd0g.d.ts → app-tables-D6Na4nwb.d.ts} +1 -1
  5. package/dist/audit-files/index.js +5 -8
  6. package/dist/{authorization-BjOM8pzj.d.ts → authorization-N4bh4KQS.d.ts} +1 -1
  7. package/dist/{automations-ByU4cU9J.js → automations-Ce0jNNIe.js} +1 -1
  8. package/dist/{banking-reads-Cj4f6_eG.js → banking-reads-D4Yuz4uX.js} +1 -1
  9. package/dist/{bind-DR7RV4WY.d.ts → bind-ChYzUApb.d.ts} +3 -3
  10. package/dist/{block-env-CxI_lxyr.d.ts → block-env-buLS8m9m.d.ts} +4 -4
  11. package/dist/{block-subjects-BLcM5e4I.js → block-subjects-rv7V0R6O.js} +7 -4
  12. package/dist/{block-tables-CSLUgF1o.d.ts → block-tables-Pd7nOPv3.d.ts} +1 -1
  13. package/dist/blocks/access-requests/index.d.ts +1 -1
  14. package/dist/blocks/access-requests/index.js +2 -1
  15. package/dist/blocks/accounting/index.d.ts +1 -1
  16. package/dist/blocks/accounting/index.js +1 -1
  17. package/dist/blocks/acknowledgements/index.d.ts +1 -1
  18. package/dist/blocks/acknowledgements/index.js +1 -1
  19. package/dist/blocks/activities/index.d.ts +4 -4
  20. package/dist/blocks/activities/index.js +1 -1
  21. package/dist/blocks/advisories/index.d.ts +1 -1
  22. package/dist/blocks/advisories/index.js +2 -1
  23. package/dist/blocks/agent-checkout/index.d.ts +1 -1
  24. package/dist/blocks/agent-checkout/index.js +4 -3
  25. package/dist/blocks/agents/index.d.ts +1 -1
  26. package/dist/blocks/agents/index.js +2 -1
  27. package/dist/blocks/ai-cache/index.d.ts +1 -1
  28. package/dist/blocks/ai-cache/index.js +3 -2
  29. package/dist/blocks/ai-chat/index.d.ts +1 -1
  30. package/dist/blocks/ai-chat/index.js +2 -1
  31. package/dist/blocks/ai-evals/index.d.ts +1 -1
  32. package/dist/blocks/ai-evals/index.js +3 -2
  33. package/dist/blocks/ai-files/index.d.ts +1 -1
  34. package/dist/blocks/ai-files/index.js +3 -2
  35. package/dist/blocks/ai-guardrails/index.d.ts +1 -1
  36. package/dist/blocks/ai-guardrails/index.js +3 -2
  37. package/dist/blocks/ai-keys/index.d.ts +1 -1
  38. package/dist/blocks/ai-keys/index.js +2 -1
  39. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  40. package/dist/blocks/ai-schedules/index.js +2 -1
  41. package/dist/blocks/announcements/index.d.ts +4 -4
  42. package/dist/blocks/announcements/index.js +2 -1
  43. package/dist/blocks/api-keys/index.d.ts +1 -1
  44. package/dist/blocks/api-keys/index.js +1 -1
  45. package/dist/blocks/appraisals/index.d.ts +1 -1
  46. package/dist/blocks/appraisals/index.js +3 -2
  47. package/dist/blocks/approvals/index.d.ts +1 -1
  48. package/dist/blocks/approvals/index.js +1 -1
  49. package/dist/blocks/assets/index.d.ts +2 -2
  50. package/dist/blocks/assets/index.js +1 -1
  51. package/dist/blocks/assignment/index.d.ts +1 -1
  52. package/dist/blocks/assignment/index.js +1 -1
  53. package/dist/blocks/attachments/index.d.ts +5 -5
  54. package/dist/blocks/attachments/index.js +1 -1
  55. package/dist/blocks/audit/index.d.ts +2 -2
  56. package/dist/blocks/audit/index.js +1 -1
  57. package/dist/blocks/automations/index.d.ts +3 -3
  58. package/dist/blocks/automations/index.js +3 -2
  59. package/dist/blocks/banking/index.d.ts +1 -2
  60. package/dist/blocks/banking/index.js +2 -2
  61. package/dist/blocks/billable-time/index.d.ts +1 -1
  62. package/dist/blocks/billable-time/index.js +1 -1
  63. package/dist/blocks/billing/index.d.ts +61 -4
  64. package/dist/blocks/billing/index.js +52 -3
  65. package/dist/blocks/bookings/index.d.ts +2 -2
  66. package/dist/blocks/bookings/index.js +1 -1
  67. package/dist/blocks/bulk/index.d.ts +1 -1
  68. package/dist/blocks/bulk/index.js +2 -1
  69. package/dist/blocks/calendar/index.d.ts +3 -3
  70. package/dist/blocks/calendar/index.js +1 -1
  71. package/dist/blocks/care/index.d.ts +27 -27
  72. package/dist/blocks/care/index.js +31 -29
  73. package/dist/blocks/care-plans/index.d.ts +3 -3
  74. package/dist/blocks/care-plans/index.js +2 -2
  75. package/dist/blocks/cases/index.d.ts +3 -3
  76. package/dist/blocks/cases/index.js +1 -1
  77. package/dist/blocks/catalog/index.d.ts +2 -2
  78. package/dist/blocks/catalog/index.js +1 -1
  79. package/dist/blocks/channels/index.d.ts +1 -1
  80. package/dist/blocks/channels/index.js +2 -1
  81. package/dist/blocks/clinical-decision-support/index.d.ts +1 -1
  82. package/dist/blocks/clinical-decision-support/index.js +3 -2
  83. package/dist/blocks/cms/index.d.ts +5 -5
  84. package/dist/blocks/cms/index.js +7 -6
  85. package/dist/blocks/collaboration/index.d.ts +6 -6
  86. package/dist/blocks/collaboration/index.js +8 -7
  87. package/dist/blocks/collections/index.d.ts +1 -1
  88. package/dist/blocks/collections/index.js +3 -2
  89. package/dist/blocks/comments/index.d.ts +2 -2
  90. package/dist/blocks/comments/index.js +1 -1
  91. package/dist/blocks/commerce/index.d.ts +5 -5
  92. package/dist/blocks/commerce/index.js +7 -6
  93. package/dist/blocks/commissions/index.d.ts +254 -0
  94. package/dist/blocks/commissions/index.js +231 -0
  95. package/dist/blocks/compliance/index.d.ts +1 -1
  96. package/dist/blocks/compliance/index.js +3 -2
  97. package/dist/blocks/connectors/index.d.ts +1 -1
  98. package/dist/blocks/connectors/index.js +2 -1
  99. package/dist/blocks/consents/index.d.ts +2 -2
  100. package/dist/blocks/consents/index.js +1 -1
  101. package/dist/blocks/contacts/index.d.ts +2 -2
  102. package/dist/blocks/contacts/index.js +1 -1
  103. package/dist/blocks/content/index.d.ts +2 -2
  104. package/dist/blocks/content/index.js +1 -1
  105. package/dist/blocks/contracts/index.d.ts +1 -1
  106. package/dist/blocks/contracts/index.js +4 -3
  107. package/dist/blocks/courses/index.d.ts +3 -3
  108. package/dist/blocks/courses/index.js +1 -1
  109. package/dist/blocks/created-by/index.d.ts +2 -2
  110. package/dist/blocks/created-by/index.js +2 -1
  111. package/dist/blocks/crm/index.d.ts +16 -16
  112. package/dist/blocks/crm/index.js +18 -17
  113. package/dist/blocks/custom-fields/index.d.ts +1 -1
  114. package/dist/blocks/custom-fields/index.js +2 -1
  115. package/dist/blocks/dam/index.d.ts +2 -2
  116. package/dist/blocks/dam/index.js +3 -2
  117. package/dist/blocks/data-lifecycle/index.d.ts +2 -2
  118. package/dist/blocks/data-lifecycle/index.js +1 -1
  119. package/dist/blocks/deals/index.d.ts +1 -1
  120. package/dist/blocks/deals/index.js +1 -1
  121. package/dist/blocks/dispatch/index.d.ts +2 -2
  122. package/dist/blocks/dispatch/index.js +1 -1
  123. package/dist/blocks/document-templates/index.d.ts +1 -1
  124. package/dist/blocks/document-templates/index.js +3 -2
  125. package/dist/blocks/documents/index.d.ts +1 -1
  126. package/dist/blocks/documents/index.js +2 -1
  127. package/dist/blocks/domains/index.d.ts +1 -1
  128. package/dist/blocks/domains/index.js +3 -2
  129. package/dist/blocks/donations/index.d.ts +1 -1
  130. package/dist/blocks/donations/index.js +4 -3
  131. package/dist/blocks/drive/index.d.ts +5 -5
  132. package/dist/blocks/drive/index.js +1 -1
  133. package/dist/blocks/e-prescribing/index.d.ts +1 -1
  134. package/dist/blocks/e-prescribing/index.js +3 -2
  135. package/dist/blocks/employees/index.d.ts +1 -1
  136. package/dist/blocks/employees/index.js +1 -1
  137. package/dist/blocks/enrichment/index.d.ts +1 -1
  138. package/dist/blocks/enrichment/index.js +1 -1
  139. package/dist/blocks/enrollments/index.d.ts +2 -2
  140. package/dist/blocks/enrollments/index.js +1 -1
  141. package/dist/blocks/entitlements/index.d.ts +3 -3
  142. package/dist/blocks/entitlements/index.js +1 -1
  143. package/dist/blocks/events/index.d.ts +3 -3
  144. package/dist/blocks/events/index.js +5 -4
  145. package/dist/blocks/expenses/index.d.ts +1 -1
  146. package/dist/blocks/expenses/index.js +4 -3
  147. package/dist/blocks/field-history/index.d.ts +1 -1
  148. package/dist/blocks/field-history/index.js +1 -1
  149. package/dist/blocks/filespace/index.d.ts +8 -8
  150. package/dist/blocks/filespace/index.js +9 -8
  151. package/dist/blocks/finance/index.d.ts +31 -6
  152. package/dist/blocks/finance/index.js +48 -15
  153. package/dist/blocks/flags/index.d.ts +1 -1
  154. package/dist/blocks/flags/index.js +2 -1
  155. package/dist/blocks/forecasts/index.d.ts +1 -1
  156. package/dist/blocks/forecasts/index.js +1 -1
  157. package/dist/blocks/forms/index.d.ts +3 -3
  158. package/dist/blocks/forms/index.js +1 -1
  159. package/dist/blocks/funding/index.d.ts +2 -2
  160. package/dist/blocks/funding/index.js +1 -1
  161. package/dist/blocks/goals/index.d.ts +1 -1
  162. package/dist/blocks/goals/index.js +1 -1
  163. package/dist/blocks/governance/index.d.ts +4 -4
  164. package/dist/blocks/governance/index.js +6 -5
  165. package/dist/blocks/guests/index.d.ts +1 -1
  166. package/dist/blocks/guests/index.js +1 -1
  167. package/dist/blocks/hiring/index.d.ts +1 -1
  168. package/dist/blocks/hiring/index.js +1 -1
  169. package/dist/blocks/identities/index.d.ts +1 -1
  170. package/dist/blocks/identities/index.js +3 -2
  171. package/dist/blocks/imports/index.d.ts +2 -2
  172. package/dist/blocks/imports/index.js +2 -1
  173. package/dist/blocks/inbox/index.d.ts +6 -6
  174. package/dist/blocks/inbox/index.js +1 -1
  175. package/dist/blocks/incidents/index.d.ts +1 -1
  176. package/dist/blocks/incidents/index.js +3 -2
  177. package/dist/blocks/index.d.ts +8 -6
  178. package/dist/blocks/index.js +1 -1
  179. package/dist/blocks/inspections/index.d.ts +2 -2
  180. package/dist/blocks/inspections/index.js +2 -1
  181. package/dist/blocks/inventory/index.d.ts +1 -1
  182. package/dist/blocks/inventory/index.js +1 -1
  183. package/dist/blocks/invoices/index.d.ts +2 -2
  184. package/dist/blocks/invoices/index.js +1 -1
  185. package/dist/blocks/knowledge/index.d.ts +1 -1
  186. package/dist/blocks/knowledge/index.js +1 -1
  187. package/dist/blocks/lead-scoring/index.d.ts +2 -2
  188. package/dist/blocks/lead-scoring/index.js +1 -1
  189. package/dist/blocks/learning/index.d.ts +3 -3
  190. package/dist/blocks/learning/index.js +5 -4
  191. package/dist/blocks/leases/index.d.ts +1 -1
  192. package/dist/blocks/leases/index.js +4 -3
  193. package/dist/blocks/leave/index.d.ts +1 -1
  194. package/dist/blocks/leave/index.js +1 -1
  195. package/dist/blocks/ledger/index.d.ts +1 -1
  196. package/dist/blocks/ledger/index.js +4 -3
  197. package/dist/blocks/legal-entities/index.d.ts +2 -2
  198. package/dist/blocks/legal-entities/index.js +3 -2
  199. package/dist/blocks/lims/index.d.ts +2 -2
  200. package/dist/blocks/lims/index.js +3 -2
  201. package/dist/blocks/mail-sync/index.d.ts +3 -3
  202. package/dist/blocks/mail-sync/index.js +1 -1
  203. package/dist/blocks/maintenance/index.d.ts +2 -2
  204. package/dist/blocks/maintenance/index.js +1 -1
  205. package/dist/blocks/manufacturing/index.d.ts +2 -2
  206. package/dist/blocks/manufacturing/index.js +4 -3
  207. package/dist/blocks/medications/index.d.ts +1 -1
  208. package/dist/blocks/medications/index.js +1 -1
  209. package/dist/blocks/meetings/index.d.ts +3 -3
  210. package/dist/blocks/meetings/index.js +1 -1
  211. package/dist/blocks/memberships/index.d.ts +2 -2
  212. package/dist/blocks/memberships/index.js +2 -1
  213. package/dist/blocks/memory/index.d.ts +1 -1
  214. package/dist/blocks/memory/index.js +3 -2
  215. package/dist/blocks/messaging/index.d.ts +5 -5
  216. package/dist/blocks/messaging/index.js +2 -1
  217. package/dist/blocks/metrics/index.d.ts +1 -1
  218. package/dist/blocks/metrics/index.js +2 -1
  219. package/dist/blocks/mfa/index.d.ts +2 -2
  220. package/dist/blocks/mfa/index.js +2 -1
  221. package/dist/blocks/moderation/index.d.ts +2 -2
  222. package/dist/blocks/moderation/index.js +3 -2
  223. package/dist/blocks/notifications/index.d.ts +56 -5
  224. package/dist/blocks/notifications/index.js +83 -3
  225. package/dist/blocks/numbering/index.d.ts +1 -1
  226. package/dist/blocks/numbering/index.js +1 -1
  227. package/dist/blocks/oauth-server/index.d.ts +1 -1
  228. package/dist/blocks/oauth-server/index.js +3 -2
  229. package/dist/blocks/observations/index.d.ts +2 -2
  230. package/dist/blocks/observations/index.js +1 -1
  231. package/dist/blocks/onboarding/index.d.ts +2 -2
  232. package/dist/blocks/onboarding/index.js +1 -1
  233. package/dist/blocks/orders/index.d.ts +1 -1
  234. package/dist/blocks/orders/index.js +2 -2
  235. package/dist/blocks/organizations/index.d.ts +2 -2
  236. package/dist/blocks/organizations/index.js +1 -1
  237. package/dist/blocks/outbox/index.d.ts +1 -1
  238. package/dist/blocks/outbox/index.js +1 -1
  239. package/dist/blocks/passes/index.d.ts +2 -2
  240. package/dist/blocks/passes/index.js +1 -1
  241. package/dist/blocks/payroll-export/index.d.ts +2 -2
  242. package/dist/blocks/payroll-export/index.js +1 -1
  243. package/dist/blocks/people/index.d.ts +7 -7
  244. package/dist/blocks/people/index.js +9 -8
  245. package/dist/blocks/periods/index.d.ts +1 -1
  246. package/dist/blocks/periods/index.js +3 -2
  247. package/dist/blocks/permissions/index.d.ts +3 -3
  248. package/dist/blocks/permissions/index.js +4 -3
  249. package/dist/blocks/pipelines/index.d.ts +1 -1
  250. package/dist/blocks/pipelines/index.js +1 -1
  251. package/dist/blocks/posts/index.d.ts +2 -2
  252. package/dist/blocks/posts/index.js +2 -1
  253. package/dist/blocks/procurement/index.d.ts +5 -5
  254. package/dist/blocks/procurement/index.js +7 -6
  255. package/dist/blocks/profiles/index.d.ts +1 -1
  256. package/dist/blocks/profiles/index.js +1 -1
  257. package/dist/blocks/projects/index.d.ts +7 -7
  258. package/dist/blocks/projects/index.js +10 -9
  259. package/dist/blocks/promotions/index.d.ts +1 -1
  260. package/dist/blocks/promotions/index.js +2 -2
  261. package/dist/blocks/prompts/index.d.ts +1 -1
  262. package/dist/blocks/prompts/index.js +3 -2
  263. package/dist/blocks/push/index.d.ts +2 -2
  264. package/dist/blocks/push/index.js +2 -1
  265. package/dist/blocks/qualifications/index.d.ts +2 -2
  266. package/dist/blocks/qualifications/index.js +1 -1
  267. package/dist/blocks/queue/index.d.ts +35 -3
  268. package/dist/blocks/queue/index.js +46 -2
  269. package/dist/blocks/quotes/index.d.ts +1 -1
  270. package/dist/blocks/quotes/index.js +1 -1
  271. package/dist/blocks/rank/index.d.ts +1 -1
  272. package/dist/blocks/rank/index.js +2 -1
  273. package/dist/blocks/reactions/index.d.ts +4 -4
  274. package/dist/blocks/reactions/index.js +1 -1
  275. package/dist/blocks/recruiting/index.d.ts +4 -4
  276. package/dist/blocks/recruiting/index.js +6 -5
  277. package/dist/blocks/referrals/index.d.ts +149 -0
  278. package/dist/blocks/referrals/index.js +146 -0
  279. package/dist/blocks/relations/index.d.ts +1 -1
  280. package/dist/blocks/relations/index.js +2 -1
  281. package/dist/blocks/reminders/index.d.ts +1 -1
  282. package/dist/blocks/reminders/index.js +1 -1
  283. package/dist/blocks/reviews/index.d.ts +1 -1
  284. package/dist/blocks/reviews/index.js +3 -2
  285. package/dist/blocks/rfqs/index.d.ts +2 -2
  286. package/dist/blocks/rfqs/index.js +1 -1
  287. package/dist/blocks/risks/index.d.ts +2 -2
  288. package/dist/blocks/risks/index.js +2 -1
  289. package/dist/blocks/saas/index.d.ts +12 -12
  290. package/dist/blocks/saas/index.js +14 -13
  291. package/dist/blocks/sales/index.d.ts +1 -1
  292. package/dist/blocks/sales/index.js +1 -1
  293. package/dist/blocks/saved-views/index.d.ts +2 -2
  294. package/dist/blocks/saved-views/index.js +2 -1
  295. package/dist/blocks/scheduling/index.d.ts +4 -4
  296. package/dist/blocks/scheduling/index.js +6 -5
  297. package/dist/blocks/scores/index.d.ts +2 -2
  298. package/dist/blocks/scores/index.js +3 -2
  299. package/dist/blocks/search/index.d.ts +3 -3
  300. package/dist/blocks/search/index.js +1 -1
  301. package/dist/blocks/security-events/index.d.ts +1 -1
  302. package/dist/blocks/security-events/index.js +3 -2
  303. package/dist/blocks/segments/index.d.ts +2 -2
  304. package/dist/blocks/segments/index.js +1 -1
  305. package/dist/blocks/sequences/index.d.ts +3 -3
  306. package/dist/blocks/sequences/index.js +1 -1
  307. package/dist/blocks/service/index.d.ts +7 -7
  308. package/dist/blocks/service/index.js +9 -8
  309. package/dist/blocks/service-accounts/index.d.ts +1 -1
  310. package/dist/blocks/service-accounts/index.js +2 -1
  311. package/dist/blocks/sessions/index.d.ts +2 -2
  312. package/dist/blocks/sessions/index.js +2 -1
  313. package/dist/blocks/settings/index.d.ts +2 -2
  314. package/dist/blocks/settings/index.js +1 -1
  315. package/dist/blocks/share-links/index.d.ts +1 -1
  316. package/dist/blocks/share-links/index.js +1 -1
  317. package/dist/blocks/shifts/index.d.ts +2 -2
  318. package/dist/blocks/shifts/index.js +1 -1
  319. package/dist/blocks/shipments/index.d.ts +2 -2
  320. package/dist/blocks/shipments/index.js +4 -3
  321. package/dist/blocks/signatures/index.d.ts +2 -2
  322. package/dist/blocks/signatures/index.js +1 -1
  323. package/dist/blocks/signing-keys/index.d.ts +1 -1
  324. package/dist/blocks/signing-keys/index.js +2 -1
  325. package/dist/blocks/sla/index.d.ts +1 -1
  326. package/dist/blocks/sla/index.js +1 -1
  327. package/dist/blocks/sso/index.d.ts +1 -1
  328. package/dist/blocks/sso/index.js +2 -1
  329. package/dist/blocks/state-machine/index.d.ts +1 -1
  330. package/dist/blocks/state-machine/index.js +1 -1
  331. package/dist/blocks/subjects/index.d.ts +2 -2
  332. package/dist/blocks/subjects/index.js +1 -1
  333. package/dist/blocks/support/index.d.ts +5 -5
  334. package/dist/blocks/support/index.js +7 -6
  335. package/dist/blocks/tags/index.d.ts +2 -2
  336. package/dist/blocks/tags/index.js +1 -1
  337. package/dist/blocks/tasks/index.d.ts +2 -2
  338. package/dist/blocks/tasks/index.js +1 -1
  339. package/dist/blocks/tax/index.d.ts +2 -2
  340. package/dist/blocks/tax/index.js +1 -1
  341. package/dist/blocks/teams/index.d.ts +1 -1
  342. package/dist/blocks/teams/index.js +1 -1
  343. package/dist/blocks/templates/index.d.ts +1 -1
  344. package/dist/blocks/templates/index.js +2 -1
  345. package/dist/blocks/tills/index.d.ts +1 -1
  346. package/dist/blocks/tills/index.js +4 -3
  347. package/dist/blocks/time-tracking/index.d.ts +2 -2
  348. package/dist/blocks/time-tracking/index.js +1 -1
  349. package/dist/blocks/timeline/index.d.ts +1 -1
  350. package/dist/blocks/timeline/index.js +1 -1
  351. package/dist/blocks/trash/index.d.ts +1 -1
  352. package/dist/blocks/trash/index.js +1 -1
  353. package/dist/blocks/undo/index.d.ts +2 -2
  354. package/dist/blocks/undo/index.js +3 -2
  355. package/dist/blocks/updated-at/index.d.ts +2 -2
  356. package/dist/blocks/updated-at/index.js +2 -1
  357. package/dist/blocks/usage/index.d.ts +2 -2
  358. package/dist/blocks/usage/index.js +3 -2
  359. package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
  360. package/dist/blocks/vercel-marketplace/index.js +3 -2
  361. package/dist/blocks/versions/index.d.ts +1 -1
  362. package/dist/blocks/versions/index.js +1 -1
  363. package/dist/blocks/waitlist/index.d.ts +1 -1
  364. package/dist/blocks/waitlist/index.js +2 -1
  365. package/dist/blocks/warehouse/index.d.ts +1 -1
  366. package/dist/blocks/warehouse/index.js +3 -2
  367. package/dist/blocks/webhooks/index.d.ts +1 -1
  368. package/dist/blocks/webhooks/index.js +4 -2
  369. package/dist/blocks/workflow-editor/index.d.ts +4 -4
  370. package/dist/blocks/workflow-editor/index.js +2 -1
  371. package/dist/blocks/workflows/index.d.ts +4 -4
  372. package/dist/blocks/workflows/index.js +2 -1
  373. package/dist/{blocks-SAugFNo4.d.ts → blocks-ERs7xZ7E.d.ts} +93 -18
  374. package/dist/{care-plans-sql-BrhEfxVx.js → care-plans-sql-DOfShX0z.js} +1 -1
  375. package/dist/claims/index.d.ts +3 -3
  376. package/dist/cli/add-4-omCrbh.js +1 -0
  377. package/dist/cli/{add-BiX01SYs.js → add-BXfK7N0H.js} +2 -2
  378. package/dist/cli/{add-BfnDHlvk.js → add-Ca3FNbhm.js} +37 -17
  379. package/dist/cli/{app-table-files-k2OIuQXL.js → app-table-files-BR0zwJ7T.js} +3 -3
  380. package/dist/cli/{app-tables-CB9PQrKi.js → app-tables-DAHcDTFh.js} +2 -2
  381. package/dist/cli/{backfill-CpZgv1A6.js → backfill-DHD9e6XO.js} +3 -3
  382. package/dist/cli/bin.js +1 -1
  383. package/dist/cli/{blocks-CGGPe0K4.js → blocks-C4J4d_Jx.js} +1 -1
  384. package/dist/cli/{blocks-DE0qZ1Yz.js → blocks-DtEsw6CG.js} +1 -1
  385. package/dist/cli/{cache-XYhIgXzI.js → cache-DyhfGbUV.js} +1 -1
  386. package/dist/cli/{codemod-BWmvfKSo.js → codemod-B7EdR7Fu.js} +1 -1
  387. package/dist/cli/{config-Ci9vE9Cp.js → config-C-DXllAX.js} +9 -1
  388. package/dist/cli/{config-BbnenK6U.js → config-DyGupd-1.js} +1 -1
  389. package/dist/cli/{content-mapper-M1H8j6CJ.js → content-mapper-BM9asZuL.js} +2 -2
  390. package/dist/cli/{db-BV4gtLuC.js → db-CVoN3aLl.js} +2 -2
  391. package/dist/cli/{doctor-Be05oUmw.js → doctor-BuE0Ry7T.js} +134 -19
  392. package/dist/cli/{gen-z-_Dpjmo.js → gen-DMAd__D1.js} +14 -14
  393. package/dist/cli/index.d.ts +1 -1
  394. package/dist/cli/index.js +7 -7
  395. package/dist/cli/{init-ifBOh5bq.js → init-BfpkhVgY.js} +9 -9
  396. package/dist/cli/{live-J-In94dl.js → live-XBM0kzT3.js} +2 -2
  397. package/dist/cli/{mcp-C7mf6KH9.js → mcp-C9HqqPIV.js} +2 -2
  398. package/dist/cli/{metadata-CYDEPSi_.js → metadata-dYoVRApT.js} +3 -3
  399. package/dist/cli/{migrate-rQRFctMv.js → migrate-DLWnaHNN.js} +1 -1
  400. package/dist/cli/{migration-safety-B2AVPCUM.js → migration-safety-Bh7VzARh.js} +2 -2
  401. package/dist/cli/{migrations-ClUStdUL.js → migrations-Cq5hkJsa.js} +2 -2
  402. package/dist/cli/{module-migration-BsnMUveg.js → module-migration-BUd_MAbE.js} +2 -2
  403. package/dist/cli/{powersync-BwNqqNym.js → powersync-Cb8xtLDc.js} +3 -3
  404. package/dist/cli/powersync-ZBM_emZL.js +1 -0
  405. package/dist/cli/{print-YW7AmWMX.js → print-BVeE5vr_.js} +2 -2
  406. package/dist/cli/{providers-BsjqZkxi.js → providers-xmyaROnG.js} +1 -1
  407. package/dist/cli/{prune-workflows-CO0e6RBk.js → prune-workflows-DUOBOuHp.js} +3 -3
  408. package/dist/cli/{remove-BA8niaOg.js → remove-BuasHmdF.js} +6 -6
  409. package/dist/cli/{render-Bn_Tmgd6.js → render-Hvu_ZKtr.js} +4 -4
  410. package/dist/cli/{run-DT8Mga9C.js → run-DMZQUy5b.js} +33 -33
  411. package/dist/cli/{run-DF3mWO-N.js → run-KdsUN7Qj.js} +9 -9
  412. package/dist/cli/{seed-B-YNTxgm.js → seed-C7eiVpBy.js} +2 -2
  413. package/dist/cli/seed-Ki7TgmY1.js +1 -0
  414. package/dist/cli/{shared-BnQS0aaB.js → shared-3cetvs_N.js} +1 -1
  415. package/dist/cli/{snapshot-CcduGETT.js → snapshot-D7h2oWfS.js} +3 -3
  416. package/dist/cli/{source-D5-MimKN.js → source-ENOc1zZ9.js} +1 -1
  417. package/dist/cli/{source-args-jRFa0bN2.js → source-args-Deg53QHe.js} +1 -1
  418. package/dist/cli/{spec-Bhcub30h.js → spec-CfKQ2Xxd.js} +1 -1
  419. package/dist/cli/{spec-CabrFVxG.js → spec-DGaKqtfR.js} +2 -2
  420. package/dist/cli/{sql-layout-BNeDrYab.js → sql-layout-CGlyhvQ1.js} +2 -2
  421. package/dist/cli/{sync-CMnEdcF7.js → sync-DFJfT7dH.js} +4 -4
  422. package/dist/cli/{upgrade-DWNNxAoj.js → upgrade-C2Kdvrj-.js} +5 -5
  423. package/dist/cli/{upgrade-CQiB_nLU.js → upgrade-DSi7r0MG.js} +2 -2
  424. package/dist/cli/{version-PZu75_DM.js → version-AGe2VWGm.js} +1 -1
  425. package/dist/client/index.d.ts +5 -5
  426. package/dist/client/native/index.d.ts +4 -4
  427. package/dist/{codecs-hCAYRsL2.js → codecs-jdyv13IU.js} +2 -2
  428. package/dist/commerce/index.js +3 -3
  429. package/dist/commissions-values-BrfR5JCS.js +17 -0
  430. package/dist/config/index.d.ts +4 -4
  431. package/dist/config/index.js +4 -4
  432. package/dist/{config-loQV70qq.js → config-DYtSlwsi.js} +3 -3
  433. package/dist/{config-ClmKXrmI.js → config-gJ9FX0jc.js} +47 -4
  434. package/dist/{context-oS96_5av.d.ts → context-DNwBlpKo.d.ts} +40 -5
  435. package/dist/contract/index.d.ts +3 -3
  436. package/dist/{controller-BES51lfW.d.ts → controller-DfgxFNFx.d.ts} +1 -1
  437. package/dist/{controller-8a5AvYC-.js → controller-IWNfCm-Y.js} +1 -1
  438. package/dist/{conversion-DK-9E21e.d.ts → conversion-BzVxeYqk.d.ts} +1 -1
  439. package/dist/{copy-CPMVxt7Y.js → copy-D0kQ1zJy.js} +1 -1
  440. package/dist/create/index.d.ts +4 -4
  441. package/dist/create/index.js +3 -3
  442. package/dist/create/lite/index.d.ts +2 -2
  443. package/dist/create/lite/index.js +2 -2
  444. package/dist/{deal-forecast-CRj39Mqw.js → deal-forecast-CgzuxYtf.js} +1 -1
  445. package/dist/{define-block-B00AycyT.d.ts → define-block-DiW9g10_.d.ts} +7 -1
  446. package/dist/{define-block-CCnA8LbO.js → define-block-DyZiZQrx.js} +1 -0
  447. package/dist/{drive-BRl5srH7.d.ts → drive-CvgLTJA9.d.ts} +1 -1
  448. package/dist/e-invoicing/index.d.ts +1 -1
  449. package/dist/e-invoicing/index.js +1 -1
  450. package/dist/{entitlements-Def4tw1y.d.ts → entitlements-5nbdIitJ.d.ts} +1 -1
  451. package/dist/{extract-6-eperTu.d.ts → extract-DpiLKlbp.d.ts} +1 -1
  452. package/dist/{field-errors-_5ma7dOu.d.ts → field-errors-BCX7RCEc.d.ts} +5 -5
  453. package/dist/{manifest-CReD46Ml.d.ts → index-1001GtVL.d.ts} +114 -2
  454. package/dist/{index-CJDZP8D_.d.ts → index-7UV0pNYj.d.ts} +2 -2
  455. package/dist/{index-llgHOU63.d.ts → index-B1NcZsVD.d.ts} +8 -8
  456. package/dist/{index-CLfgO2tI.d.ts → index-B2C1NczA.d.ts} +4 -4
  457. package/dist/{index-DQcBzMPc.d.ts → index-B8Mjb-KA.d.ts} +1 -1
  458. package/dist/{index-DcMBM8KN.d.ts → index-BB5n8R_s.d.ts} +1 -1
  459. package/dist/{index-D3z1ulT9.d.ts → index-BGgGwWcn.d.ts} +1 -1
  460. package/dist/{index-DDsGsDpo.d.ts → index-BK8zPigx.d.ts} +1 -1
  461. package/dist/{index-DlHpkeH6.d.ts → index-BLL45v55.d.ts} +1 -1
  462. package/dist/{index-CoTCj9tb.d.ts → index-BMYIwvDA.d.ts} +1 -1
  463. package/dist/{index-DgtoDNfn.d.ts → index-BNBFiyOR.d.ts} +1 -1
  464. package/dist/{index-BS8EG1sv.d.ts → index-BW0aDURc.d.ts} +1 -1
  465. package/dist/{index-OrSSX49l.d.ts → index-BZ1Akcrg.d.ts} +1 -1
  466. package/dist/{index-DZ7AyHGe.d.ts → index-Bdg6ee4m.d.ts} +1 -1
  467. package/dist/{index-4XXy4RAc.d.ts → index-Bn5v6soX.d.ts} +1 -1
  468. package/dist/{index-ByfxpFB2.d.ts → index-BolFrOMw.d.ts} +2 -2
  469. package/dist/{index-BRDlC3VX.d.ts → index-Bopuqb8z.d.ts} +3 -3
  470. package/dist/{index-CdzulKV8.d.ts → index-CFT7e_HH.d.ts} +2 -2
  471. package/dist/{index-9lj_xmJ3.d.ts → index-CRSNN2v9.d.ts} +8 -8
  472. package/dist/{index-D8AUz50D.d.ts → index-CakXRuAZ.d.ts} +2 -2
  473. package/dist/{index-CIjwxSMw.d.ts → index-CurH6bgW.d.ts} +2 -2
  474. package/dist/{index-DnUv0ft8.d.ts → index-D25Ry5R9.d.ts} +1 -1
  475. package/dist/{index-U2HTpZhD.d.ts → index-D48wVmDj.d.ts} +1 -1
  476. package/dist/{index-a4XujbCp.d.ts → index-D5LnplxJ.d.ts} +4 -4
  477. package/dist/{index-B0sgM96O.d.ts → index-D6y6ojUX.d.ts} +2 -2
  478. package/dist/{index-trDWOpUD.d.ts → index-DHwPGqLY.d.ts} +2 -2
  479. package/dist/{index-B3X8Yz54.d.ts → index-DMlTXcWp.d.ts} +2 -2
  480. package/dist/{index-BzP3aXZD.d.ts → index-DZTavebO.d.ts} +1 -1
  481. package/dist/{index-BclA8VxQ.d.ts → index-DkWXofPH.d.ts} +1 -1
  482. package/dist/{index-BA_vuNkT.d.ts → index-DplKvjCs.d.ts} +1 -1
  483. package/dist/{index-B79YuD2v.d.ts → index-EHczIYa7.d.ts} +3 -3
  484. package/dist/{index-BFrhLaf5.d.ts → index-IKK8zWTN.d.ts} +2 -2
  485. package/dist/{index-Ddi2Xhg8.d.ts → index-S6axmDQL.d.ts} +2 -2
  486. package/dist/{index-CIJgMT3P.d.ts → index-ZI4sMVPT.d.ts} +2 -2
  487. package/dist/{index-C_3tUs3G.d.ts → index-iaMOudmP.d.ts} +1 -1
  488. package/dist/{index-BB3U1ds5.d.ts → index-kidoYhB8.d.ts} +1 -1
  489. package/dist/index.js +1 -1
  490. package/dist/{instances-ceZ-orgq.js → instances-ukDFg8oN.js} +342 -23
  491. package/dist/{invoices-BmVemfWS.d.ts → invoices-C-Fh07qA.d.ts} +1 -1
  492. package/dist/{manifest-BXSsp-Cl.d.ts → manifest--M7GmEPg.d.ts} +1 -1
  493. package/dist/{manifest-C_S0cz7X.js → manifest--eIzr9Tj.js} +2 -1
  494. package/dist/{manifest-DJllrEQG.js → manifest--qnXa2lK.js} +2 -1
  495. package/dist/{manifest-Dwe06yil.js → manifest-0PDfKdtc.js} +3 -2
  496. package/dist/{manifest-BhnrsEa1.d.ts → manifest-0vrTq9Uf.d.ts} +1 -1
  497. package/dist/{manifest-DP5NczoE.js → manifest-1Xiu6zqs.js} +3 -2
  498. package/dist/{manifest-ByyHf3rr.d.ts → manifest-1lzhOO0z.d.ts} +1 -1
  499. package/dist/{manifest-BOGvvspH.js → manifest-6MuVEQnP.js} +8 -4
  500. package/dist/{manifest-DG7YDnDd.js → manifest-A_VPz6fq.js} +3 -2
  501. package/dist/{manifest-DV8KMolR.js → manifest-B3QwQDTx.js} +2 -1
  502. package/dist/{manifest-Cf9QTxjI.js → manifest-B4CVN-Kx.js} +3 -2
  503. package/dist/{manifest-DhYoxy6k.js → manifest-B709eXLx.js} +2 -1
  504. package/dist/{manifest-BQmucr5m.d.ts → manifest-B7MpuCmz.d.ts} +1 -1
  505. package/dist/{manifest-Bbu-ubW6.d.ts → manifest-B83YpMlz.d.ts} +1 -1
  506. package/dist/{manifest-CqJjxStv.d.ts → manifest-B9KmOzmT.d.ts} +1 -1
  507. package/dist/{manifest-C4UBDE_L.js → manifest-BAgqRR7p.js} +2 -1
  508. package/dist/{manifest-bDyJmTlO.js → manifest-BDGVge5o.js} +3 -2
  509. package/dist/{manifest-wUaP6BQ7.js → manifest-BEZ8HltH.js} +2 -1
  510. package/dist/{manifest-DaeYdl46.js → manifest-BFJvys4-.js} +4 -3
  511. package/dist/{manifest-DS1kvnEv.d.ts → manifest-BHNrIQ8X.d.ts} +1 -1
  512. package/dist/{manifest-BC9t0sdd.js → manifest-BHhBqtFw.js} +2 -1
  513. package/dist/{manifest-Cq2DUdkJ.js → manifest-BKD8DbQT.js} +6 -5
  514. package/dist/{manifest-BID85FTD.d.ts → manifest-BKDSuS3x.d.ts} +2 -2
  515. package/dist/{manifest-DUQxpNRM.d.ts → manifest-BKegpJgn.d.ts} +1 -1
  516. package/dist/{manifest-DSj2RpBr.js → manifest-BQJV63RV.js} +2 -1
  517. package/dist/{manifest-K4gZCLhk.js → manifest-BQwqV6dQ.js} +3 -1
  518. package/dist/{manifest-Cnh_IP2z.js → manifest-BR_uGpTd.js} +2 -1
  519. package/dist/{manifest-DOyy6Xsw.d.ts → manifest-BRd1q660.d.ts} +1 -1
  520. package/dist/{manifest-Bno8pGBC.js → manifest-BSQh5dw2.js} +2 -1
  521. package/dist/{manifest-i7N-wK8c.d.ts → manifest-BTC6dWdq.d.ts} +1 -1
  522. package/dist/{manifest-BLIdN5a_.js → manifest-BW7wdKXA.js} +5 -4
  523. package/dist/{manifest-CgvFWT2u.js → manifest-BXNDl7bx.js} +2 -1
  524. package/dist/{manifest-kMa4r3fv.js → manifest-BZP0wKpE.js} +4 -3
  525. package/dist/{manifest-DuQWeue6.js → manifest-B_3_99xa.js} +3 -2
  526. package/dist/{manifest-BnxuDY97.d.ts → manifest-Bbtt8mb1.d.ts} +1 -1
  527. package/dist/{manifest-CZGGddOA.d.ts → manifest-BcdRITPc.d.ts} +1 -1
  528. package/dist/{manifest-CddtUQsB.js → manifest-BdmDmQtx.js} +2 -1
  529. package/dist/{manifest-CklVzHZN.d.ts → manifest-BfAXsd-X.d.ts} +1 -1
  530. package/dist/{manifest-DumCddiN.js → manifest-BfOHwSNK.js} +7 -6
  531. package/dist/{manifest-BxyGSQDf.js → manifest-BgMjraZw.js} +2 -1
  532. package/dist/{manifest-Du41K-0_.d.ts → manifest-BhBqFYV4.d.ts} +1 -1
  533. package/dist/{manifest-Bg5gjjDP.d.ts → manifest-BkS073Py.d.ts} +1 -1
  534. package/dist/{manifest-X_aLkNvq.js → manifest-BoSzgLUl.js} +4 -3
  535. package/dist/{manifest-CfBqObZ5.js → manifest-Bpzxyvxc.js} +4 -3
  536. package/dist/{manifest-D1YoxzeP.js → manifest-Bx_0qkBP.js} +3 -2
  537. package/dist/{manifest-BZ5IAL8q.d.ts → manifest-Bz3xNPJL.d.ts} +6 -1
  538. package/dist/{manifest-CFPH94A1.d.ts → manifest-C-_0WkGx.d.ts} +1 -1
  539. package/dist/{manifest-ConxGWQ-.d.ts → manifest-C0f5YJ7x.d.ts} +1 -1
  540. package/dist/{manifest-B4PaYDC2.d.ts → manifest-C3RDEoAr.d.ts} +2 -2
  541. package/dist/{manifest-DR6N0LUt.d.ts → manifest-C3VB7-hM.d.ts} +1 -1
  542. package/dist/{manifest-DJz-jKBy.js → manifest-C8Boo7Ps.js} +4 -3
  543. package/dist/{manifest-W1SbwKSj.js → manifest-C95-cClh.js} +2 -1
  544. package/dist/{manifest-C-sGHHvr.d.ts → manifest-CCXaDWdN.d.ts} +1 -1
  545. package/dist/{manifest-C6j7vH4c.d.ts → manifest-CHsjS47_.d.ts} +1 -1
  546. package/dist/{manifest-D67fd79e.d.ts → manifest-CIJTIKo3.d.ts} +1 -1
  547. package/dist/{manifest-BbsL9igY.d.ts → manifest-CJByGKJ_.d.ts} +1 -1
  548. package/dist/{manifest-DbnCNIbZ.d.ts → manifest-CJb0PtMj.d.ts} +1 -1
  549. package/dist/{manifest-CfcytxHT.d.ts → manifest-CKxnGCVY.d.ts} +1 -1
  550. package/dist/{manifest-Gj3MS6k9.d.ts → manifest-CLphqjtj.d.ts} +1 -1
  551. package/dist/{manifest-DVwB6GGL.js → manifest-COZUTRxz.js} +3 -2
  552. package/dist/{manifest-B2Pp7SEu.js → manifest-CPYEEX6u.js} +2 -1
  553. package/dist/{manifest-DD7MK9BW.d.ts → manifest-CQFlAwfU.d.ts} +2 -2
  554. package/dist/{manifest-Ceokse8n.d.ts → manifest-CR-6QDLZ.d.ts} +1 -1
  555. package/dist/{manifest-vNLet6F5.js → manifest-CRXxYu5L.js} +2 -1
  556. package/dist/{manifest-Q4aEEHjj.js → manifest-CWaCXYgf.js} +3 -2
  557. package/dist/{manifest-Bpzb2m6F.js → manifest-CX8DVTzn.js} +4 -3
  558. package/dist/{manifest-155HuVi4.js → manifest-CYNC6a1d.js} +2 -1
  559. package/dist/{manifest-B5LbGYS4.js → manifest-C_hIU5kk.js} +3 -2
  560. package/dist/{manifest-D4MO5Cw0.js → manifest-CbxMRPGY.js} +2 -1
  561. package/dist/{manifest-CxhnJ0HS.js → manifest-Cfvr-BhF.js} +2 -1
  562. package/dist/manifest-Cj5IjsCB.js +16 -0
  563. package/dist/{manifest-DaArvOLq.js → manifest-Cj_ZnW6k.js} +2 -1
  564. package/dist/{manifest-D6iuF7tg.js → manifest-CkYNs6PX.js} +3 -2
  565. package/dist/{manifest-DIc0gnqc.js → manifest-ClbUuESE.js} +3 -2
  566. package/dist/{manifest-CuIl6RP_.js → manifest-CtOwRTvP.js} +2 -1
  567. package/dist/{manifest-Cxp20EUq.js → manifest-Cu_4X5Rm.js} +2 -1
  568. package/dist/{manifest-Do5KE-U_.d.ts → manifest-Cxz4_mWy.d.ts} +7 -1
  569. package/dist/{manifest-Xb13Wzgf.js → manifest-Czv_oJ77.js} +4 -2
  570. package/dist/{manifest-DRwJ4vk4.d.ts → manifest-D2qeEjrC.d.ts} +1 -1
  571. package/dist/{manifest-BDJIiEya.d.ts → manifest-D3HTgmR3.d.ts} +1 -1
  572. package/dist/{manifest-Zznk8MMo.d.ts → manifest-D7R4sM8L.d.ts} +1 -1
  573. package/dist/{manifest-D3YlwpBi.d.ts → manifest-D7slgR5H.d.ts} +1 -1
  574. package/dist/{manifest-B0nH6lH0.d.ts → manifest-D7y9_k5i.d.ts} +1 -1
  575. package/dist/{manifest-z3KH7lcy.d.ts → manifest-D7yeYU0f.d.ts} +1 -1
  576. package/dist/{manifest-C8QX2UDq.js → manifest-D84UV5p6.js} +5 -8
  577. package/dist/{manifest-CBBM0qqj.js → manifest-D8JpSvuE.js} +4 -3
  578. package/dist/{manifest-CJXhUvZ1.d.ts → manifest-DBJ5nBG9.d.ts} +1 -1
  579. package/dist/{manifest-ChSYx5eW.js → manifest-DBsPHetA.js} +5 -3
  580. package/dist/{manifest-CGVCmsBO.js → manifest-DCC3phPq.js} +2 -1
  581. package/dist/{manifest-CRbgI4Qg.d.ts → manifest-DDkncgRB.d.ts} +1 -1
  582. package/dist/{manifest-DSr5imkP.js → manifest-DHYr9yD1.js} +3 -2
  583. package/dist/{manifest-BuHnJDCN.js → manifest-DHt1h5GN.js} +3 -2
  584. package/dist/{manifest-CHwfjKUw.d.ts → manifest-DI_Vz152.d.ts} +1 -1
  585. package/dist/{manifest-D6UCPVG4.js → manifest-DJ5nCW5K.js} +2 -1
  586. package/dist/{manifest-CMRaUAXu.js → manifest-DJRHzb6v.js} +7 -2
  587. package/dist/{manifest-BYrW9Uem.js → manifest-DKY9HGin.js} +2 -1
  588. package/dist/{manifest-nSgX7nL1.d.ts → manifest-DLv_WaSF.d.ts} +1 -1
  589. package/dist/{manifest-DBdpyUu_.js → manifest-DM2T_dN2.js} +5 -4
  590. package/dist/{manifest-CNEDhbqI.js → manifest-DNaSpmZ3.js} +3 -2
  591. package/dist/{manifest-BMcbaFBU.d.ts → manifest-DPFn2x18.d.ts} +1 -1
  592. package/dist/{manifest-DEl9UiYb.js → manifest-DS2PjAgW.js} +2 -1
  593. package/dist/{manifest-BfTf2V6E.js → manifest-DVnOUxy4.js} +4 -3
  594. package/dist/{manifest-Dexf6I0e.js → manifest-DW2_P6AT.js} +4 -3
  595. package/dist/{manifest-C7dc_j0u.d.ts → manifest-D_iJU__f.d.ts} +1 -1
  596. package/dist/{manifest-CyAlixZk.d.ts → manifest-Dagm1cVO.d.ts} +1 -1
  597. package/dist/{manifest-BP5R93We.d.ts → manifest-Db-GUsLH.d.ts} +1 -1
  598. package/dist/{manifest-CA2p9Zga.js → manifest-DbjDYuCE.js} +3 -2
  599. package/dist/{manifest-B0C85KCk.d.ts → manifest-Dbq6t-bI.d.ts} +1 -1
  600. package/dist/{manifest-D1Yyn2dQ.d.ts → manifest-DdFl3BYM.d.ts} +1 -1
  601. package/dist/{manifest-DYEKxUXY.js → manifest-DeCjklgV.js} +2 -1
  602. package/dist/{manifest-Bj1dFsWc.js → manifest-DemyeI_z.js} +2 -1
  603. package/dist/{manifest-DRU-64iu.d.ts → manifest-Di0UrbTw.d.ts} +1 -1
  604. package/dist/{manifest-DIGjwpba.d.ts → manifest-Dj9AIgTy.d.ts} +1 -1
  605. package/dist/{manifest-Dfpxslwm.d.ts → manifest-DjVqN_iK.d.ts} +1 -1
  606. package/dist/{manifest-CLekLziu.js → manifest-Dm_5DTyx.js} +2 -1
  607. package/dist/{manifest-BhxbjEKX.js → manifest-DnZw4JWP.js} +4 -3
  608. package/dist/{manifest-B9BrBGxf.js → manifest-DpwaOTir.js} +3 -2
  609. package/dist/{manifest-DzjzA7JV.js → manifest-Dqgqm1Zo.js} +2 -1
  610. package/dist/{manifest-BIuELzCj.js → manifest-DqwQmPZb.js} +2 -1
  611. package/dist/{manifest-CfcTrYyH.js → manifest-DsYIWD--.js} +2 -1
  612. package/dist/{manifest-BoSqQtc_.d.ts → manifest-DwVl4YC4.d.ts} +1 -1
  613. package/dist/{manifest-CsjUuK3b.d.ts → manifest-Dz2IkqqY.d.ts} +1 -1
  614. package/dist/{manifest-DKICxHyD.js → manifest-FAVN8Bg9.js} +2 -1
  615. package/dist/{manifest-UclKhPQb.js → manifest-FJi1pYoB.js} +10 -9
  616. package/dist/{manifest-Cj2S4RR-.js → manifest-FkY_rpfH.js} +6 -5
  617. package/dist/{manifest-BbH87MG5.js → manifest-Hx3FBHKX.js} +2 -1
  618. package/dist/{manifest-CRJXdgOx.js → manifest-ITF-BpEi.js} +2 -1
  619. package/dist/{manifest-C_epqyiP.js → manifest-J6kJX8YL.js} +2 -1
  620. package/dist/{manifest-C5ItHs20.js → manifest-JvgqqKRq.js} +3 -2
  621. package/dist/{manifest-CuLahaTy.d.ts → manifest-K_42e50M.d.ts} +1 -1
  622. package/dist/{manifest-BVy_iYaK.d.ts → manifest-OS0pwPRn.d.ts} +1 -1
  623. package/dist/{manifest-h-rpCQ8y.d.ts → manifest-UbBXSkXn.d.ts} +1 -1
  624. package/dist/{manifest-BSlz5VjY.js → manifest-_qzN4kUG.js} +2 -1
  625. package/dist/{manifest-BgMzFL4H.js → manifest-cqfeLW8g.js} +2 -1
  626. package/dist/{manifest-CCLJTMsY.js → manifest-gCNbUW-X.js} +3 -2
  627. package/dist/{manifest-Ci26ea5h.d.ts → manifest-gGOpzRmJ.d.ts} +1 -1
  628. package/dist/{manifest-DuQVJ36p.d.ts → manifest-mu_UflgB.d.ts} +1 -1
  629. package/dist/{manifest-BTjTE68V.d.ts → manifest-n9XQtQXA.d.ts} +1 -1
  630. package/dist/{manifest-CIgakSwf.js → manifest-o-EzlFwZ.js} +2 -1
  631. package/dist/{manifest-1vQFNg_j.d.ts → manifest-ppItbSA5.d.ts} +1 -1
  632. package/dist/{manifest-DurhFGmh.js → manifest-qb_YXiWK.js} +3 -2
  633. package/dist/{manifest-CcMQg8U2.d.ts → manifest-roKO06Ko.d.ts} +1 -1
  634. package/dist/{manifest-6X7L3UX7.js → manifest-xD290bNh.js} +2 -1
  635. package/dist/{manifest-CJJEgRi-.d.ts → manifest-yPcrAK5N.d.ts} +1 -1
  636. package/dist/{manifest-DugL8A5q.d.ts → manifest-ycsWja2O.d.ts} +1 -1
  637. package/dist/mapper/bin.js +6 -6
  638. package/dist/mcp/index.d.ts +1 -1
  639. package/dist/{money-codec-DNhD4iy-.js → money-codec-CvUy3_Ep.js} +1 -1
  640. package/dist/{money-DH--bbYr.js → money-hWAOR9jq.js} +5 -7
  641. package/dist/next/index.d.ts +7 -7
  642. package/dist/next/index.js +4 -4
  643. package/dist/{operations-wexZqk3S.d.ts → operations-Di203azT.d.ts} +1 -1
  644. package/dist/{options-Dp1VR9Jk.js → options-C3FFnaE-.js} +2 -1
  645. package/dist/otel/index.js +4 -4
  646. package/dist/{payments-D7GPsu-r.js → payments-D89SVEgj.js} +1 -1
  647. package/dist/{payroll-export-Dxl1-7NV.js → payroll-export-BJNe4-XZ.js} +1 -1
  648. package/dist/{permissions-hc26hFC7.d.ts → permissions-C7GgjgTA.d.ts} +1 -1
  649. package/dist/{permissions-controller-BYGsjLdD.js → permissions-controller-YLyW9i7T.js} +1 -1
  650. package/dist/{permissions-model-Dk-gaZiy.js → permissions-model-COgjsFbE.js} +27 -19
  651. package/dist/{ports-DxX6NGHt.d.ts → ports-6EMtxwGE.d.ts} +1 -1
  652. package/dist/powersync/index.d.ts +3 -3
  653. package/dist/preset/index.d.ts +4 -4
  654. package/dist/preset/index.js +3 -3
  655. package/dist/{preset-DZBi6G6G.js → preset-Be8m6-PH.js} +239 -68
  656. package/dist/{preview-Cnx-eBFM.d.ts → preview-Dlc_7tMK.d.ts} +2 -2
  657. package/dist/{project-yulopQiw.js → project-CwZtBezd.js} +7 -7
  658. package/dist/{push-token-Da8q6hZJ.d.ts → push-token-CQnqTZrb.d.ts} +1 -1
  659. package/dist/query/index.d.ts +1 -1
  660. package/dist/query/index.js +1 -1
  661. package/dist/react/index.d.ts +5 -5
  662. package/dist/react/index.js +1 -1
  663. package/dist/react/native/index.d.ts +1 -1
  664. package/dist/react/server.d.ts +5 -5
  665. package/dist/react/server.js +1 -1
  666. package/dist/{react-CWCEsvZt.js → react-CsgcTKRk.js} +2 -2
  667. package/dist/realtime/index.d.ts +3 -3
  668. package/dist/{record-form-bXNjpTar.d.ts → record-form-DqGcUu0C.d.ts} +1 -1
  669. package/dist/{record-type-DvIobORB.js → record-type-SZywJ0Rp.js} +1 -1
  670. package/dist/{recordings-B-eiiYGA.d.ts → recordings-CiYHdFPa.d.ts} +3 -2
  671. package/dist/records/index.d.ts +7 -7
  672. package/dist/records/index.js +4 -4
  673. package/dist/referrals-values-EXlMZA7X.js +12 -0
  674. package/dist/{renames-BBwigNjY.js → renames-PnqMkqit.js} +32 -1
  675. package/dist/{sales-BG4bqW2M.js → sales-C8o3E5U3.js} +9 -8
  676. package/dist/{sales-lines-Bd8g7q9G.js → sales-lines-COFwijz1.js} +1 -1
  677. package/dist/scaled-CyfvEWZ6.js +18 -0
  678. package/dist/server/index.d.ts +3 -3
  679. package/dist/solid/index.d.ts +5 -5
  680. package/dist/sql/index.d.ts +5 -5
  681. package/dist/sql/index.js +3 -3
  682. package/dist/{sql-CwBIyfvf.js → sql-BPU70zf9.js} +5334 -1266
  683. package/dist/ssr/index.d.ts +1 -1
  684. package/dist/svelte/index.d.ts +5 -5
  685. package/dist/{tax-l1cp5Rg8.js → tax-D_M90sFh.js} +1 -1
  686. package/dist/{tax-sql-CdSPknff.js → tax-sql-B9CeB0jG.js} +1 -1
  687. package/dist/{tenant-Dd8cwx17.d.ts → tenant-DHLx2ZkL.d.ts} +1 -1
  688. package/dist/testing/index.d.ts +8 -8
  689. package/dist/testing/index.js +3 -3
  690. package/dist/{timeline-B2rcgQTF.d.ts → timeline-9mP3m30L.d.ts} +2 -2
  691. package/dist/{topic-DybM_LFL.d.ts → topic-BKsRT4gu.d.ts} +1 -1
  692. package/dist/{types-CWMsjQl4.d.ts → types-D9r3axee.d.ts} +2 -2
  693. package/dist/vue/index.d.ts +5 -5
  694. package/dist/{watch-topic-x9vTgTzq.d.ts → watch-topic-M1yL9NiW.d.ts} +1 -1
  695. package/dist/webmcp/index.d.ts +1 -1
  696. package/dist/workflow-sdk/world/index.js +1 -1
  697. package/dist/{workflow-sdk-BJlx0ANA.js → workflow-sdk-CcoFSLFn.js} +1 -1
  698. package/dist/yjs/index.d.ts +1 -1
  699. package/package.json +9 -1
  700. package/schemas/config-v1.json +60 -0
  701. package/schemas/design-v1.json +15 -0
  702. package/schemas/doctor-report-v1.json +4 -0
  703. package/skills/better-supabase/references/e-invoicing-and-audit-files.md +3 -3
  704. package/dist/cli/add-C89zg0l9.js +0 -1
  705. package/dist/cli/powersync-CiHEx435.js +0 -1
  706. package/dist/cli/seed-CYX1MRFK.js +0 -1
  707. package/dist/index-B8TJqIoS.d.ts +0 -117
  708. package/dist/manifest-DxhdqsLf.js +0 -15
@@ -5,7 +5,7 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
5
5
  import { n as BlockOptions } from "../../block-helpers-gyK33E0Z.js";
6
6
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
7
7
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DOK9DyaZ.js";
8
- import { c as BlockOf } from "../../define-block-B00AycyT.js";
8
+ import { c as BlockOf } from "../../define-block-DiW9g10_.js";
9
9
  /** Where a period stands: writes into it stop at `locked` and `closed`. */
10
10
  declare const PERIOD_STATUSES: readonly ["open", "locked", "closed"];
11
11
  /** Where a period stands: writes into it stop at `locked` and `closed`. */
@@ -3,7 +3,7 @@ import { t as PERIOD_STATUSES } from "../../periods-values-DeeudWL4.js";
3
3
  import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
4
4
  import { B as textOf, C as optionalInstant, D as plainDateOf, K as rpcTransport, N as recordsOf, W as dbTransport, d as enumOrThrow, j as recordOf, n as applyTemporal, o as blockCall, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
5
5
  import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
6
- import { n as defineBlock } from "../../define-block-CCnA8LbO.js";
6
+ import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
7
7
  import { t as requireTenant } from "../../block-tenant-DHvDBWgF.js";
8
8
  // src/blocks/periods/periods.ts
9
9
  function periodOf(value, fn) {
@@ -81,6 +81,7 @@ const periodsBlock = defineBlock({
81
81
  schemas: {},
82
82
  create: createPeriods,
83
83
  recipes: [],
84
- category: "commerce"
84
+ category: "commerce",
85
+ description: "Dated periods per kind with open, locked and closed states, a lookup by date and a close protocol where blocks contribute close blockers and an on-close step."
85
86
  });
86
87
  export { createPeriods, dbTransport, extendBlock, periodsBlock, periodsEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -4,9 +4,9 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
4
4
  import { c as BlockTenant, n as BlockOptions } from "../../block-helpers-gyK33E0Z.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
6
6
  import { n as BlockHooks } from "../../block-hooks-DOK9DyaZ.js";
7
- import { c as BlockOf } from "../../define-block-B00AycyT.js";
8
- import { B as PermissionFlags, H as can, U as permissionFlags, V as PermissionSet, W as permissionMatches } from "../../index-DcMBM8KN.js";
9
- import { n as Controller, t as AuthPort } from "../../controller-BES51lfW.js";
7
+ import { c as BlockOf } from "../../define-block-DiW9g10_.js";
8
+ import { B as PermissionFlags, H as can, U as permissionFlags, V as PermissionSet, W as permissionMatches } from "../../index-BB5n8R_s.js";
9
+ import { n as Controller, t as AuthPort } from "../../controller-DfgxFNFx.js";
10
10
  import { a as PERMISSION_KEY_RENAMES, c as RENAMES_CODEMOD, f as currentPermissionKeys, m as isOldPermissionKey, o as PERMISSION_KEY_SPLITS } from "../../renames-BTcp8P3f.js";
11
11
  interface PermissionsOptions extends BlockOptions {
12
12
  /** `withBlockHooks` hooks around the client's methods. */
@@ -1,14 +1,14 @@
1
1
  import { a as ok, t as AsyncResult } from "../../result-DrBaeIVt.js";
2
- import { a as PERMISSION_KEY_RENAMES, c as RENAMES_CODEMOD, f as currentPermissionKeys, m as isOldPermissionKey, o as PERMISSION_KEY_SPLITS } from "../../renames-BBwigNjY.js";
2
+ import { g as isOldPermissionKey, l as RENAMES_CODEMOD, m as currentPermissionKeys, o as PERMISSION_KEY_RENAMES, s as PERMISSION_KEY_SPLITS } from "../../renames-PnqMkqit.js";
3
3
  import { t as DEFAULT_CLAIMS } from "../../claims-CqTr_N1n.js";
4
4
  import { t as permissionsSqlOptions } from "../../options-CLy7CcMn.js";
5
5
  import { t as currentTenant } from "../../tenant-source-46lMuMEn.js";
6
6
  import { n as whileSignedIn, t as defineController } from "../../controller-BJmh7gFm.js";
7
7
  import { B as textOf, K as rpcTransport, N as recordsOf, W as dbTransport, j as recordOf, o as blockCall, q as sqlTransport, z as stringsOf } from "../../block-helpers-CCl3V9ku.js";
8
8
  import { r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
9
- import { n as permissionFlags, r as permissionMatches, t as can } from "../../permissions-controller-BYGsjLdD.js";
9
+ import { n as permissionFlags, r as permissionMatches, t as can } from "../../permissions-controller-YLyW9i7T.js";
10
10
  import { n as keysFromClaims } from "../../permissions-BDt27oYF.js";
11
- import { n as defineBlock } from "../../define-block-CCnA8LbO.js";
11
+ import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
12
12
  import { t as requireTenant } from "../../block-tenant-DHvDBWgF.js";
13
13
  // src/blocks/permissions/permissions.ts
14
14
  const keysOf = (value) => Array.isArray(value) ? value.filter((key) => typeof key === "string") : [];
@@ -66,6 +66,7 @@ const permissionsBlock = defineBlock({
66
66
  options: { permissions: permissionsSqlOptions },
67
67
  create: createPermissions,
68
68
  category: "identity",
69
+ description: "can(), tenant_ids_with() and is_platform(): one permission contract for policies and SQL modules, over a roles list, a role and permission catalog, an authorization provider or the app's own functions (blocks.permissions.model).",
69
70
  recipes: ["can"]
70
71
  });
71
72
  // src/blocks/permissions/authorizer.ts
@@ -1,4 +1,4 @@
1
1
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
2
2
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DOK9DyaZ.js";
3
- import { a as PipelineInput, c as PipelineStageInput, d as PipelineTransition, f as Pipelines, g as pipelinesEvents, h as PipelinesEvents, i as PipelineHealth, l as PipelineStats, m as createPipelines, n as Pipeline, o as PipelineOutcome, p as PipelinesOptions, r as PipelineColumn, s as PipelineStage, t as pipelinesBlock, u as PipelineTotal } from "../../manifest-D67fd79e.js";
3
+ import { a as PipelineInput, c as PipelineStageInput, d as PipelineTransition, f as Pipelines, g as pipelinesEvents, h as PipelinesEvents, i as PipelineHealth, l as PipelineStats, m as createPipelines, n as Pipeline, o as PipelineOutcome, p as PipelinesOptions, r as PipelineColumn, s as PipelineStage, t as pipelinesBlock, u as PipelineTotal } from "../../manifest-CIJTIKo3.js";
4
4
  export { type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type Pipeline, type PipelineColumn, type PipelineHealth, type PipelineInput, type PipelineOutcome, type PipelineStage, type PipelineStageInput, type PipelineStats, type PipelineTotal, type PipelineTransition, type Pipelines, type PipelinesEvents, type PipelinesOptions, type RpcClient, createPipelines, dbTransport, extendBlock, pipelinesBlock, pipelinesEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -1,4 +1,4 @@
1
1
  import { K as rpcTransport, W as dbTransport, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
2
2
  import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
3
- import { n as createPipelines, r as pipelinesEvents, t as pipelinesBlock } from "../../manifest-B5LbGYS4.js";
3
+ import { n as createPipelines, r as pipelinesEvents, t as pipelinesBlock } from "../../manifest-C_hIU5kk.js";
4
4
  export { createPipelines, dbTransport, extendBlock, pipelinesBlock, pipelinesEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -7,8 +7,8 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
7
7
  import { n as BlockOptions } from "../../block-helpers-gyK33E0Z.js";
8
8
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
9
9
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DOK9DyaZ.js";
10
- import { L as PostsSqlOptions, R as postsSqlOptions } from "../../blocks-SAugFNo4.js";
11
- import { G as EntitySchema, c as BlockOf } from "../../define-block-B00AycyT.js";
10
+ import { L as PostsSqlOptions, R as postsSqlOptions } from "../../blocks-ERs7xZ7E.js";
11
+ import { G as EntitySchema, c as BlockOf } from "../../define-block-DiW9g10_.js";
12
12
  declare const BOARD_KINDS: readonly ["forum", "feedback"];
13
13
  declare const POST_STATUSES: readonly ["open", "under_review", "planned", "in_progress", "done", "closed"];
14
14
  declare const MODERATION: readonly ["visible", "pending", "hidden", "removed"];
@@ -5,7 +5,7 @@ import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
5
5
  import { B as textOf, C as optionalInstant, K as rpcTransport, N as recordsOf, P as requiredInstant, T as optionalText, W as dbTransport, d as enumOrThrow, j as recordOf, n as applyTemporal, o as blockCall, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
6
6
  import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
7
7
  import { n as entitySchema } from "../../entity-schema-DEIz0I8i.js";
8
- import { n as defineBlock } from "../../define-block-CCnA8LbO.js";
8
+ import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
9
9
  import { n as blockFields } from "../../block-fields-B6_zYPTF.js";
10
10
  import { t as requireTenant } from "../../block-tenant-DHvDBWgF.js";
11
11
  // src/blocks/posts/posts.ts
@@ -222,6 +222,7 @@ const postsBlock = defineBlock({
222
222
  },
223
223
  create: createPosts,
224
224
  category: "collaboration",
225
+ description: "Forum threads and feedback posts on boards. Replies are comments on the messaging core, votes are reactions, and each post is a moderation item members can report. Feedback posts move through a status from open to done.",
225
226
  recipes: ["post-board"]
226
227
  });
227
228
  export { createPosts, dbTransport, extendBlock, postBoardInputSchema, postInputSchema, postsBlock, postsEvents, postsSqlOptions, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -1,11 +1,11 @@
1
1
  import { t as AsyncResult } from "../../result-CMqlHv82.js";
2
2
  import { n as Logger } from "../../logger-0LfhvwE4.js";
3
3
  import { n as BlockHooks } from "../../block-hooks-DOK9DyaZ.js";
4
- import { Q as BlockContext, c as BlockOf, p as CompositeOptions } from "../../define-block-B00AycyT.js";
5
- import { D as PaymentBatch, N as SepaExportOptions, k as PaymentBatchInput, t as bankingBlock } from "../../manifest-CReD46Ml.js";
6
- import { t as inventoryBlock } from "../../manifest-C-sGHHvr.js";
7
- import { t as invoicesBlock } from "../../manifest-B4PaYDC2.js";
8
- import { t as rfqsBlock } from "../../manifest-CRbgI4Qg.js";
4
+ import { Q as BlockContext, c as BlockOf, p as CompositeOptions } from "../../define-block-DiW9g10_.js";
5
+ import { B as PaymentBatch, H as PaymentBatchInput, K as SepaExportOptions, m as bankingBlock } from "../../index-1001GtVL.js";
6
+ import { t as inventoryBlock } from "../../manifest-CCXaDWdN.js";
7
+ import { t as invoicesBlock } from "../../manifest-C3RDEoAr.js";
8
+ import { t as rfqsBlock } from "../../manifest-DDkncgRB.js";
9
9
  /** What `procurement.payDueBills` returns. */
10
10
  interface PaidBills {
11
11
  readonly batch: PaymentBatch;
@@ -1,10 +1,10 @@
1
1
  import { t as AsyncResult } from "../../result-DrBaeIVt.js";
2
2
  import { r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
3
- import { n as defineBlock } from "../../define-block-CCnA8LbO.js";
4
- import { t as rfqsBlock } from "../../manifest-X_aLkNvq.js";
5
- import { t as invoicesBlock } from "../../manifest-UclKhPQb.js";
6
- import { t as inventoryBlock } from "../../manifest-DVwB6GGL.js";
7
- import { t as bankingBlock } from "../../manifest-Cq2DUdkJ.js";
3
+ import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
4
+ import { t as rfqsBlock } from "../../manifest-BoSzgLUl.js";
5
+ import { t as invoicesBlock } from "../../manifest-FJi1pYoB.js";
6
+ import { t as inventoryBlock } from "../../manifest-COZUTRxz.js";
7
+ import { t as bankingBlock } from "../../manifest-BKD8DbQT.js";
8
8
  // src/blocks/procurement/procurement.ts
9
9
  /** Creates the `procurement` helpers over the clients of its parts. */
10
10
  function createProcurement(options) {
@@ -40,6 +40,7 @@ const procurementBlock = defineBlock({
40
40
  name: "procurement",
41
41
  composes: procurementParts,
42
42
  create: createProcurement,
43
- category: "commerce"
43
+ category: "commerce",
44
+ description: "Requests for quotation, inventory, invoices and banking installed together for buying."
44
45
  });
45
46
  export { createProcurement, procurementBlock, procurementParts };
@@ -1,4 +1,4 @@
1
1
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
2
2
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DOK9DyaZ.js";
3
- import { a as Profiles, i as Profile, n as AvatarUpload, o as ProfilesOptions, r as AvatarUploader, s as createProfiles, t as profilesBlock } from "../../manifest-DS1kvnEv.js";
3
+ import { a as Profiles, i as Profile, n as AvatarUpload, o as ProfilesOptions, r as AvatarUploader, s as createProfiles, t as profilesBlock } from "../../manifest-BHNrIQ8X.js";
4
4
  export { type AvatarUpload, type AvatarUploader, type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type Profile, type Profiles, type ProfilesOptions, type RpcClient, createProfiles, dbTransport, extendBlock, profilesBlock, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -1,4 +1,4 @@
1
1
  import { K as rpcTransport, W as dbTransport, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
2
2
  import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
3
- import { n as createProfiles, t as profilesBlock } from "../../manifest-CLekLziu.js";
3
+ import { n as createProfiles, t as profilesBlock } from "../../manifest-Dm_5DTyx.js";
4
4
  export { createProfiles, dbTransport, extendBlock, profilesBlock, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -2,14 +2,14 @@
2
2
  import { t as AsyncResult } from "../../result-CMqlHv82.js";
3
3
  import { n as Logger } from "../../logger-0LfhvwE4.js";
4
4
  import { n as BlockHooks } from "../../block-hooks-DOK9DyaZ.js";
5
- import { Q as BlockContext, c as BlockOf, p as CompositeOptions } from "../../define-block-B00AycyT.js";
5
+ import { Q as BlockContext, c as BlockOf, p as CompositeOptions } from "../../define-block-DiW9g10_.js";
6
6
  import { n as Money } from "../../money-BgpAd7d3.js";
7
- import { t as approvalsBlock } from "../../manifest-CHwfjKUw.js";
8
- import { b as TimeInvoice, t as billableTimeBlock, v as InvoiceFromTimeInput } from "../../index-BA_vuNkT.js";
9
- import { l as Timesheet, t as timeTrackingBlock } from "../../manifest-D3YlwpBi.js";
10
- import { t as invoicesBlock } from "../../manifest-B4PaYDC2.js";
11
- import { t as meetingsBlock } from "../../manifest-Zznk8MMo.js";
12
- import { t as tasksBlock } from "../../manifest-DuQVJ36p.js";
7
+ import { t as approvalsBlock } from "../../manifest-DI_Vz152.js";
8
+ import { b as TimeInvoice, t as billableTimeBlock, v as InvoiceFromTimeInput } from "../../index-DplKvjCs.js";
9
+ import { l as Timesheet, t as timeTrackingBlock } from "../../manifest-D7slgR5H.js";
10
+ import { t as invoicesBlock } from "../../manifest-C3RDEoAr.js";
11
+ import { t as meetingsBlock } from "../../manifest-D7R4sM8L.js";
12
+ import { t as tasksBlock } from "../../manifest-mu_UflgB.js";
13
13
  /** The blocks `projects` is made of, by block name. */
14
14
  export declare const projectsParts: {
15
15
  readonly tasks: typeof tasksBlock;
@@ -1,14 +1,14 @@
1
1
  import { t as temporal } from "../../temporal-required-DK3ImZW6.js";
2
2
  import { a as ok, t as AsyncResult } from "../../result-DrBaeIVt.js";
3
3
  import { r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
4
- import { n as defineBlock } from "../../define-block-CCnA8LbO.js";
5
- import { _ as roundHalfEven, d as money } from "../../money-DH--bbYr.js";
6
- import { t as billableTimeBlock } from "../../manifest-DaeYdl46.js";
7
- import { t as meetingsBlock } from "../../manifest-Q4aEEHjj.js";
8
- import { t as invoicesBlock } from "../../manifest-UclKhPQb.js";
9
- import { t as tasksBlock } from "../../manifest-B9BrBGxf.js";
10
- import { t as approvalsBlock } from "../../manifest-W1SbwKSj.js";
11
- import { t as timeTrackingBlock } from "../../manifest-DJz-jKBy.js";
4
+ import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
5
+ import { _ as roundHalfEven, d as money } from "../../money-hWAOR9jq.js";
6
+ import { t as billableTimeBlock } from "../../manifest-BFJvys4-.js";
7
+ import { t as meetingsBlock } from "../../manifest-CWaCXYgf.js";
8
+ import { t as invoicesBlock } from "../../manifest-FJi1pYoB.js";
9
+ import { t as tasksBlock } from "../../manifest-DpwaOTir.js";
10
+ import { t as approvalsBlock } from "../../manifest-C95-cClh.js";
11
+ import { t as timeTrackingBlock } from "../../manifest-C8Boo7Ps.js";
12
12
  // src/blocks/projects/projects.ts
13
13
  const HOUR_SECONDS = 3600n;
14
14
  /** The value of `seconds` at an hourly `rate`. */
@@ -139,6 +139,7 @@ const projectsBlock = defineBlock({
139
139
  name: "projects",
140
140
  composes: projectsParts,
141
141
  create: createProjects,
142
- category: "work"
142
+ category: "work",
143
+ description: "Tasks, time tracking, billable time, approvals, invoices and meetings installed together for project work."
143
144
  });
144
145
  export { createProjects, projectsBlock, projectsParts };
@@ -1,5 +1,5 @@
1
1
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
2
2
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DOK9DyaZ.js";
3
3
  import { g as PROMOTION_KINDS } from "../../codecs-Dkwi5ELX.js";
4
- import { a as PromotionCode, c as PromotionKind, d as PromotionsOptions, f as SavedPromotion, h as promotionsEvents, i as PROMOTION_SCOPES, l as PromotionScope, m as PromotionsEvents, n as AppliedCode, o as PromotionDiscount, p as createPromotions, r as CodesInput, s as PromotionInput, t as promotionsBlock, u as Promotions } from "../../manifest-z3KH7lcy.js";
4
+ import { a as PromotionCode, c as PromotionKind, d as PromotionsOptions, f as SavedPromotion, h as promotionsEvents, i as PROMOTION_SCOPES, l as PromotionScope, m as PromotionsEvents, n as AppliedCode, o as PromotionDiscount, p as createPromotions, r as CodesInput, s as PromotionInput, t as promotionsBlock, u as Promotions } from "../../manifest-D7yeYU0f.js";
5
5
  export { type AppliedCode, type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type CodesInput, PROMOTION_KINDS, PROMOTION_SCOPES, type PromotionCode, type PromotionDiscount, type PromotionInput, type PromotionKind, type PromotionScope, type Promotions, type PromotionsEvents, type PromotionsOptions, type RpcClient, type SavedPromotion, createPromotions, dbTransport, extendBlock, promotionsBlock, promotionsEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -1,5 +1,5 @@
1
1
  import { K as rpcTransport, W as dbTransport, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
2
2
  import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
3
- import { r as PROMOTION_KINDS } from "../../codecs-hCAYRsL2.js";
4
- import { i as promotionsEvents, n as PROMOTION_SCOPES, r as createPromotions, t as promotionsBlock } from "../../manifest-CIgakSwf.js";
3
+ import { r as PROMOTION_KINDS } from "../../codecs-jdyv13IU.js";
4
+ import { i as promotionsEvents, n as PROMOTION_SCOPES, r as createPromotions, t as promotionsBlock } from "../../manifest-o-EzlFwZ.js";
5
5
  export { PROMOTION_KINDS, PROMOTION_SCOPES, createPromotions, dbTransport, extendBlock, promotionsBlock, promotionsEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -4,7 +4,7 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
4
4
  import { r as BlockTemporalOptions } from "../../block-helpers-gyK33E0Z.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
6
6
  import { n as BlockHooks } from "../../block-hooks-DOK9DyaZ.js";
7
- import { c as BlockOf } from "../../define-block-B00AycyT.js";
7
+ import { c as BlockOf } from "../../define-block-DiW9g10_.js";
8
8
  /** One saved, immutable version of a named prompt template. */
9
9
  interface PromptVersion {
10
10
  readonly id: string;
@@ -1,7 +1,7 @@
1
1
  import { t as promptsSqlOptions } from "../../options-qsL6D-7s.js";
2
2
  import { B as textOf, K as rpcTransport, T as optionalText, W as dbTransport, h as instantOf, j as recordOf, n as applyTemporal, o as blockCall, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
3
3
  import { r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
4
- import { n as defineBlock } from "../../define-block-CCnA8LbO.js";
4
+ import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
5
5
  // src/blocks/prompts/prompts.ts
6
6
  const PLACEHOLDER = /\{\{\s*([A-Za-z_][A-Za-z0-9_]*)\s*\}\}/g;
7
7
  function placeholders(template) {
@@ -84,6 +84,7 @@ const promptsBlock = defineBlock({
84
84
  sql: ["prompts"],
85
85
  options: { prompts: promptsSqlOptions },
86
86
  create: createPrompts,
87
- category: "ai"
87
+ category: "ai",
88
+ description: "Versioned prompt templates by name, per tenant or for the whole system, with labels such as production that point at one version; only the service role reads and writes them."
88
89
  });
89
90
  export { createPrompts, dbTransport, promptsBlock, renderPrompt, rpcTransport, sqlTransport };
@@ -8,9 +8,9 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
8
8
  import { r as BlockTemporalOptions } from "../../block-helpers-gyK33E0Z.js";
9
9
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
10
10
  import { n as BlockHooks } from "../../block-hooks-DOK9DyaZ.js";
11
- import { c as BlockOf } from "../../define-block-B00AycyT.js";
11
+ import { c as BlockOf } from "../../define-block-DiW9g10_.js";
12
12
  import { i as NotificationMessage, r as NotificationChannel } from "../../channel-C38FUnW3.js";
13
- import { t as ExpoNotificationsLike } from "../../push-token-Da8q6hZJ.js";
13
+ import { t as ExpoNotificationsLike } from "../../push-token-CQnqTZrb.js";
14
14
  type PushPlatform = "ios" | "android" | "web";
15
15
  type PushProvider = "expo" | "fcm" | "apns" | "webpush";
16
16
  /**
@@ -5,7 +5,7 @@ import { r as blockEmitter } from "../../block-events-Bp6GPIBN.js";
5
5
  import { t as expoPushToken } from "../../push-token-CO28k46S.js";
6
6
  import { B as textOf, F as run, K as rpcTransport, M as recordOrEmpty, N as recordsOf, W as dbTransport, b as nullableText, n as applyTemporal, o as blockCall, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
7
7
  import { r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
8
- import { n as defineBlock } from "../../define-block-CCnA8LbO.js";
8
+ import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
9
9
  import { a as readAllFields, l as writeFields, n as blockFields, s as rowFields } from "../../block-fields-B6_zYPTF.js";
10
10
  import { n as emitDeliveryEvent, r as recordedDeliveryEventOf } from "../../delivery-events-DUiTctdo.js";
11
11
  // src/blocks/push/push.ts
@@ -426,6 +426,7 @@ const pushBlock = defineBlock({
426
426
  events: pushEvents,
427
427
  create: createPush,
428
428
  category: "messaging",
429
+ description: "The push tokens of each user's devices (Expo, FCM, APNs or Web Push) with RLS, behind register_push_device and unregister_push_device for the user and push_tokens_for and prune_push_tokens for the service role. With notifications, push_tickets keeps Expo's tickets per delivery for the receipt check. better-supabase/blocks/push registers Expo devices and sends through the Expo Push API.",
429
430
  recipes: ["push-opt-in"]
430
431
  });
431
432
  export { EXPO_REQUEST_FAILED, createPush, dbTransport, expoPush, expoPushChannel, pushBlock, pushEvents, registerDevice, rpcTransport, sqlTransport, unregisterOnSignOut };
@@ -1,7 +1,7 @@
1
1
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
2
2
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DOK9DyaZ.js";
3
- import { G as EntitySchema } from "../../define-block-B00AycyT.js";
4
- import { C as QualificationsEvents, S as QualificationTypeSavedEventData, _ as createQualifications, a as QualificationGapStatus, b as QualificationRevokedEventData, c as QualificationRequirement, d as QualificationTargetType, f as QualificationType, g as QualifiedHoldersOptions, h as QualificationsOptions, i as QualificationGapOptions, l as QualificationSource, m as Qualifications, n as Qualification, o as QualificationGrantInput, p as QualificationTypeInput, r as QualificationGap, s as QualificationHolderType, t as qualificationsBlock, u as QualificationStatus, v as QualificationExpiryEventData, w as qualificationsEvents, x as QualificationTypeArchivedEventData, y as QualificationGrantedEventData } from "../../manifest-BDJIiEya.js";
3
+ import { G as EntitySchema } from "../../define-block-DiW9g10_.js";
4
+ import { C as QualificationsEvents, S as QualificationTypeSavedEventData, _ as createQualifications, a as QualificationGapStatus, b as QualificationRevokedEventData, c as QualificationRequirement, d as QualificationTargetType, f as QualificationType, g as QualifiedHoldersOptions, h as QualificationsOptions, i as QualificationGapOptions, l as QualificationSource, m as Qualifications, n as Qualification, o as QualificationGrantInput, p as QualificationTypeInput, r as QualificationGap, s as QualificationHolderType, t as qualificationsBlock, u as QualificationStatus, v as QualificationExpiryEventData, w as qualificationsEvents, x as QualificationTypeArchivedEventData, y as QualificationGrantedEventData } from "../../manifest-D3HTgmR3.js";
5
5
  /** What `saveType` takes. */
6
6
  export declare const qualificationTypeInputSchema: EntitySchema<QualificationTypeInput>;
7
7
  /** What `grant` takes. */
@@ -1,4 +1,4 @@
1
1
  import { K as rpcTransport, W as dbTransport, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
2
2
  import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
3
- import { a as createQualifications, i as qualificationsEvents, n as qualificationGrantInputSchema, r as qualificationTypeInputSchema, t as qualificationsBlock } from "../../manifest-bDyJmTlO.js";
3
+ import { a as createQualifications, i as qualificationsEvents, n as qualificationGrantInputSchema, r as qualificationTypeInputSchema, t as qualificationsBlock } from "../../manifest-BDGVge5o.js";
4
4
  export { createQualifications, dbTransport, extendBlock, qualificationGrantInputSchema, qualificationTypeInputSchema, qualificationsBlock, qualificationsEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -3,8 +3,8 @@ import { b as DbError, f as Result, t as AsyncResult } from "../../result-CMqlHv
3
3
  import { n as SqlClient } from "../../executor-1m05kt7Y.js";
4
4
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
5
5
  import { A as ScheduleInfo, B as QueueStats, C as QueueSchemas, D as ScheduleDefinition, E as RunSchedulesOptions, F as QueueMessageBody, H as pgmqPublicBackend, I as QueueMessageRow, L as QueueProvider, M as WorkOptions, N as DeadJobRow, O as ScheduleDefinitions, P as DueSchedule, R as QueuePurgeArgs, S as QueueOptions, T as RunJobOptions, U as sqlQueueProvider, V as TransportQueueProviderOptions, W as transportQueueProvider, _ as JobHandler, a as DrainResult, b as PurgeJobsOptions, c as EnqueueOnceOptions, d as EnsureSchedulesOptions, f as EnsureSchedulesResult, g as JobDelivery, h as JobContext, i as DrainOptions, j as ScheduleOptions, k as ScheduleFilter, l as EnqueueOnceResult, m as Job, n as DeadJob, o as DrainRouteOptions, p as FailOptions, r as DrainMonitor, s as DrainRouteResult, t as ClaimOptions, u as EnqueueOptions, v as ListDeadOptions, w as RetryDeadOptions, x as Queue, y as PayloadOut, z as QueueRpcClient } from "../../types-Dwzaxp9p.js";
6
- import { hi as BlockSchedule } from "../../define-block-B00AycyT.js";
7
- import { S as createIdempotency, _ as Idempotency, a as WebhookInbox, b as IdempotencySource, c as WebhookInboxListOptions, d as WebhookInboxProcessOptions, f as WebhookInboxPurgeOptions, g as createQueue, h as JobsSource, i as webhookInboxBlock, l as WebhookInboxMessage, m as purgeWebhookInbox, n as queueBlock, o as WebhookInboxEntry, p as createWebhookInbox, r as rateLimitBlock, s as WebhookInboxEvent, t as idempotencyBlock, u as WebhookInboxOptions, v as IdempotencyOptions, x as IdempotencyState, y as IdempotencySettings } from "../../manifest-CFPH94A1.js";
6
+ import { hi as BlockSchedule } from "../../define-block-DiW9g10_.js";
7
+ import { S as createIdempotency, _ as Idempotency, a as WebhookInbox, b as IdempotencySource, c as WebhookInboxListOptions, d as WebhookInboxProcessOptions, f as WebhookInboxPurgeOptions, g as createQueue, h as JobsSource, i as webhookInboxBlock, l as WebhookInboxMessage, m as purgeWebhookInbox, n as queueBlock, o as WebhookInboxEntry, p as createWebhookInbox, r as rateLimitBlock, s as WebhookInboxEvent, t as idempotencyBlock, u as WebhookInboxOptions, v as IdempotencyOptions, x as IdempotencyState, y as IdempotencySettings } from "../../manifest-C-_0WkGx.js";
8
8
  import { StandardSchemaV1 } from "@standard-schema/spec";
9
9
  /**
10
10
  * Throws a `TypeError` unless `expression` is a schedule `nextCronRun`
@@ -58,6 +58,38 @@ type BlockTickRun = () => PromiseLike<Result<unknown>>;
58
58
  * failed run, throws so the queue retries it and the dead letter shows it.
59
59
  */
60
60
  export declare function blockTickHandler(handlers: Readonly<Record<string, BlockTickRun>>): (payload: BlockTick) => Promise<void>;
61
+ /** The block name of the maintenance timer in `blockTickHandler` keys. */
62
+ export declare const MAINTENANCE_TIMER_BLOCK = "housekeeping";
63
+ /**
64
+ * The timer that runs `better_supabase.maintenance()` from the `block_ticks`
65
+ * queue. Add it to the list you pass to `blockSchedules` when pg_cron is not
66
+ * available, and register `"housekeeping.maintenance": maintenanceTick(...)` in
67
+ * `blockTickHandler`.
68
+ */
69
+ export declare const maintenanceTimer: ScheduledBlock & {
70
+ readonly schedules: readonly BlockSchedule[];
71
+ };
72
+ /** What `maintenanceTick` returns when it ran. */
73
+ interface MaintenanceTickResult {
74
+ /** `pg_cron` when pg_cron already runs the dispatcher, so the tick skipped. */
75
+ readonly scheduler: "pg_cron" | "none";
76
+ /** The jobs that ran, as `maintenance()` returned them. */
77
+ readonly jobs: readonly unknown[];
78
+ }
79
+ /** Options for `maintenanceTick`. */
80
+ interface MaintenanceTickOptions {
81
+ /** The schema of the `housekeeping` module. Defaults to `better_supabase`. */
82
+ readonly schema?: string;
83
+ /** Run the tick even when pg_cron has the dispatcher registered. */
84
+ readonly force?: boolean;
85
+ }
86
+ /**
87
+ * The `block_ticks` handler that runs `maintenance()` when pg_cron does not. It
88
+ * asks `maintenance_scheduler()` first and skips the run when pg_cron is
89
+ * registered, so a database with both never runs the jobs twice. Call it with a
90
+ * service-role transport, such as `rpcTransport(admin)`.
91
+ */
92
+ export declare function maintenanceTick(transport: BlockTransport, options?: MaintenanceTickOptions): BlockTickRun;
61
93
  interface DevDrainOptions {
62
94
  readonly url: string | URL;
63
95
  readonly secret: string;
@@ -325,4 +357,4 @@ export declare function vercelQueueRoute<Q extends QueueSchemas>(jobs: Queue<Q>,
325
357
  * body (Express, the Next.js Pages Router), over `handleNodeCallback`.
326
358
  */
327
359
  export declare function vercelQueueNodeRoute<Q extends QueueSchemas>(jobs: Queue<Q>, options: VercelQueueRouteOptions<Q, VercelQueueNodeCallbackClient>): (request: VercelNodeRequest, response: VercelNodeResponse) => Promise<void>;
328
- export { type BlockScheduleDefinition, type BlockTick, type BlockTickRun, type BlockTransport, type ClaimOptions, type DeadJob, type DeadJobRow, type DeadLetterSink, type DevDrain, type DevDrainOptions, type DrainMonitor, type DrainOptions, type DrainResult, type DrainRouteOptions, type DrainRouteResult, type DueSchedule, type EnqueueOnceOptions, type EnqueueOnceResult, type EnqueueOptions, type EnsureSchedulesOptions, type EnsureSchedulesResult, type FailOptions, type Idempotency, type IdempotencyOptions, type IdempotencySettings, type IdempotencySource, type IdempotencyState, type Job, type JobContext, type JobDelivery, type JobHandler, type JobsSource, type Lease, type LeaseOptions, type LeaseOutcome, type ListDeadOptions, type PurgeJobsOptions, type Queue, type QueueMessageBody, type QueueMessageRow, type QueueOptions, type QueueProvider, type QueuePurgeArgs, type QueueRpcClient, type QueueSchemas, type QueueStats, type RetryDeadOptions, type RunJobOptions, type RunSchedulesOptions, type ScheduleDefinition, type ScheduleDefinitions, type ScheduleFilter, type ScheduleInfo, type ScheduleOptions, type ScheduledBlock, type SqlClient, type TransportQueueProviderOptions, type VercelNodeRequest, type VercelNodeResponse, type VercelQueueCallbackClient, type VercelQueueClient, type VercelQueueMetadata, type VercelQueueNodeCallbackClient, type VercelQueueProviderOptions, type VercelQueueRouteOptions, type VercelQueueTrigger, type VercelReceiveResult, type VercelRetryDirective, type VercelSendOptions, type WebhookInbox, type WebhookInboxEntry, type WebhookInboxEvent, type WebhookInboxListOptions, type WebhookInboxMessage, type WebhookInboxOptions, type WebhookInboxProcessOptions, type WebhookInboxPurgeOptions, type WorkOptions, createIdempotency, createQueue, createWebhookInbox, dbTransport, idempotencyBlock, pgmqPublicBackend, purgeWebhookInbox, queueBlock, rateLimitBlock, rpcTransport, sqlQueueProvider, sqlTransport, transportQueueProvider, webhookInboxBlock };
360
+ export { type BlockScheduleDefinition, type BlockTick, type BlockTickRun, type BlockTransport, type ClaimOptions, type DeadJob, type DeadJobRow, type DeadLetterSink, type DevDrain, type DevDrainOptions, type DrainMonitor, type DrainOptions, type DrainResult, type DrainRouteOptions, type DrainRouteResult, type DueSchedule, type EnqueueOnceOptions, type EnqueueOnceResult, type EnqueueOptions, type EnsureSchedulesOptions, type EnsureSchedulesResult, type FailOptions, type Idempotency, type IdempotencyOptions, type IdempotencySettings, type IdempotencySource, type IdempotencyState, type Job, type JobContext, type JobDelivery, type JobHandler, type JobsSource, type Lease, type LeaseOptions, type LeaseOutcome, type ListDeadOptions, type MaintenanceTickOptions, type MaintenanceTickResult, type PurgeJobsOptions, type Queue, type QueueMessageBody, type QueueMessageRow, type QueueOptions, type QueueProvider, type QueuePurgeArgs, type QueueRpcClient, type QueueSchemas, type QueueStats, type RetryDeadOptions, type RunJobOptions, type RunSchedulesOptions, type ScheduleDefinition, type ScheduleDefinitions, type ScheduleFilter, type ScheduleInfo, type ScheduleOptions, type ScheduledBlock, type SqlClient, type TransportQueueProviderOptions, type VercelNodeRequest, type VercelNodeResponse, type VercelQueueCallbackClient, type VercelQueueClient, type VercelQueueMetadata, type VercelQueueNodeCallbackClient, type VercelQueueProviderOptions, type VercelQueueRouteOptions, type VercelQueueTrigger, type VercelReceiveResult, type VercelRetryDirective, type VercelSendOptions, type WebhookInbox, type WebhookInboxEntry, type WebhookInboxEvent, type WebhookInboxListOptions, type WebhookInboxMessage, type WebhookInboxOptions, type WebhookInboxProcessOptions, type WebhookInboxPurgeOptions, type WorkOptions, createIdempotency, createQueue, createWebhookInbox, dbTransport, idempotencyBlock, pgmqPublicBackend, purgeWebhookInbox, queueBlock, rateLimitBlock, rpcTransport, sqlQueueProvider, sqlTransport, transportQueueProvider, webhookInboxBlock };
@@ -1,8 +1,9 @@
1
1
  import { t as DbException } from "../../db-exception-Dv18UZ-I.js";
2
2
  import { n as dbError } from "../../errors-CXPerGIl.js";
3
+ import { a as ok, r as err, s as toDbError } from "../../result-DrBaeIVt.js";
3
4
  import { F as run, K as rpcTransport, W as dbTransport, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
4
5
  import { n as nextCronRun, t as assertCron } from "../../cron-DOV5bOp2.js";
5
- import { a as createQueue, c as sqlOnly, i as webhookInboxBlock, l as sqlQueueProvider, n as queueBlock, o as createIdempotency, r as rateLimitBlock, s as pgmqPublicBackend, t as idempotencyBlock, u as transportQueueProvider } from "../../manifest-BOGvvspH.js";
6
+ import { a as createQueue, c as sqlOnly, i as webhookInboxBlock, l as sqlQueueProvider, n as queueBlock, o as createIdempotency, r as rateLimitBlock, s as pgmqPublicBackend, t as idempotencyBlock, u as transportQueueProvider } from "../../manifest-6MuVEQnP.js";
6
7
  import { n as purgeWebhookInbox, t as createWebhookInbox } from "../../webhook-inbox-BamK2_Vw.js";
7
8
  // src/blocks/queue/block-schedules.ts
8
9
  /** The queue every block timer enqueues on. */
@@ -53,6 +54,49 @@ function blockTickHandler(handlers) {
53
54
  if (!outcome.ok) throw new Error(`${key}: ${outcome.error.message}`);
54
55
  };
55
56
  }
57
+ // src/blocks/queue/maintenance-tick.ts
58
+ /** The block name of the maintenance timer in `blockTickHandler` keys. */
59
+ const MAINTENANCE_TIMER_BLOCK = "housekeeping";
60
+ /**
61
+ * The timer that runs `better_supabase.maintenance()` from the `block_ticks`
62
+ * queue. Add it to the list you pass to `blockSchedules` when pg_cron is not
63
+ * available, and register `"housekeeping.maintenance": maintenanceTick(...)` in
64
+ * `blockTickHandler`.
65
+ */
66
+ const maintenanceTimer = {
67
+ name: MAINTENANCE_TIMER_BLOCK,
68
+ schedules: [{
69
+ name: "maintenance",
70
+ cron: "*/5 * * * *",
71
+ runs: "maintenance()",
72
+ description: "Runs the due purges and expiries when pg_cron does not run them."
73
+ }]
74
+ };
75
+ /**
76
+ * The `block_ticks` handler that runs `maintenance()` when pg_cron does not. It
77
+ * asks `maintenance_scheduler()` first and skips the run when pg_cron is
78
+ * registered, so a database with both never runs the jobs twice. Call it with a
79
+ * service-role transport, such as `rpcTransport(admin)`.
80
+ */
81
+ function maintenanceTick(transport, options = {}) {
82
+ const schema = options.schema ?? "better_supabase";
83
+ return async () => {
84
+ try {
85
+ const scheduler = await transport.call(schema, "maintenance_scheduler", {}) === "pg_cron" ? "pg_cron" : "none";
86
+ if (scheduler === "pg_cron" && options.force !== true) return ok({
87
+ scheduler,
88
+ jobs: []
89
+ });
90
+ const jobs = await transport.call(schema, "maintenance", {});
91
+ return ok({
92
+ scheduler,
93
+ jobs: Array.isArray(jobs) ? jobs : []
94
+ });
95
+ } catch (error) {
96
+ return err(toDbError(error));
97
+ }
98
+ };
99
+ }
56
100
  // src/blocks/queue/dev.ts
57
101
  function devDrainSecret(env, name = "CRON_SECRET") {
58
102
  const current = env[name];
@@ -447,4 +491,4 @@ function consumerOf(jobs, options) {
447
491
  }
448
492
  };
449
493
  }
450
- export { BLOCK_SCHEDULE_PREFIX, BLOCK_TICKS_QUEUE, assertCron, blockSchedules, blockTickHandler, blockTickSchema, createIdempotency, createQueue, createWebhookInbox, dbTransport, devDrain, devDrainSecret, idempotencyBlock, nextCronRun, pgmqPublicBackend, purgeWebhookInbox, queueBlock, rateLimitBlock, rpcTransport, sqlQueueProvider, sqlTransport, transportQueueProvider, vercelIdempotencyKey, vercelQueueNodeRoute, vercelQueueProvider, vercelQueueRoute, vercelQueueTriggers, vercelRetentionSeconds, vercelSendOptionsOf, vercelTopicOf, webhookInboxBlock, withDeadLetters, withLease };
494
+ export { BLOCK_SCHEDULE_PREFIX, BLOCK_TICKS_QUEUE, MAINTENANCE_TIMER_BLOCK, assertCron, blockSchedules, blockTickHandler, blockTickSchema, createIdempotency, createQueue, createWebhookInbox, dbTransport, devDrain, devDrainSecret, idempotencyBlock, maintenanceTick, maintenanceTimer, nextCronRun, pgmqPublicBackend, purgeWebhookInbox, queueBlock, rateLimitBlock, rpcTransport, sqlQueueProvider, sqlTransport, transportQueueProvider, vercelIdempotencyKey, vercelQueueNodeRoute, vercelQueueProvider, vercelQueueRoute, vercelQueueTriggers, vercelRetentionSeconds, vercelSendOptionsOf, vercelTopicOf, webhookInboxBlock, withDeadLetters, withLease };
@@ -2,6 +2,6 @@ import { et as RecordRef } from "../../types-CaYa549m.js";
2
2
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
3
3
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DOK9DyaZ.js";
4
4
  import { i as QuoteVariants, r as QuoteVariantSelection, t as DocumentVariant } from "../../sales-variants-uaXwbWQ9.js";
5
- import { C as QuotesOptions, E as quotesEvents, S as Quotes, T as QuotesEvents, _ as QuoteResponse, a as QuoteFromDealOptions, b as QuoteVersion, c as quotesBlock, d as QuoteAnswer, f as QuoteDecision, g as QuotePricing, h as QuoteLineInput, i as QuoteFromDealClients, l as PublicQuote, m as QuoteLine, n as QUOTES_AUTOMATIONS, o as quoteFromDealAction, p as QuoteInput, r as QUOTE_TO_ORDER, s as quoteFromDealFactory, t as DEAL_TO_QUOTE, u as Quote, v as QuoteStatus, w as createQuotes, x as QuoteVersionSummary, y as QuoteTaxLine } from "../../index-ByfxpFB2.js";
5
+ import { C as QuotesOptions, E as quotesEvents, S as Quotes, T as QuotesEvents, _ as QuoteResponse, a as QuoteFromDealOptions, b as QuoteVersion, c as quotesBlock, d as QuoteAnswer, f as QuoteDecision, g as QuotePricing, h as QuoteLineInput, i as QuoteFromDealClients, l as PublicQuote, m as QuoteLine, n as QUOTES_AUTOMATIONS, o as quoteFromDealAction, p as QuoteInput, r as QUOTE_TO_ORDER, s as quoteFromDealFactory, t as DEAL_TO_QUOTE, u as Quote, v as QuoteStatus, w as createQuotes, x as QuoteVersionSummary, y as QuoteTaxLine } from "../../index-BolFrOMw.js";
6
6
  import { i as Totals, n as Line, r as LineInput, t as CatalogLineInput } from "../../sales-lines-CWKOVa0B.js";
7
7
  export { type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type CatalogLineInput, DEAL_TO_QUOTE, type DocumentVariant, type Line, type LineInput, type PublicQuote, QUOTES_AUTOMATIONS, QUOTE_TO_ORDER, type Quote, type QuoteAnswer, type QuoteDecision, type QuoteFromDealClients, type QuoteFromDealOptions, type QuoteInput, type QuoteLine, type QuoteLineInput, type QuotePricing, type QuoteResponse, type QuoteStatus, type QuoteTaxLine, type QuoteVariantSelection, type QuoteVariants, type QuoteVersion, type QuoteVersionSummary, type Quotes, type QuotesEvents, type QuotesOptions, type RecordRef, type RpcClient, type Totals, createQuotes, dbTransport, extendBlock, quoteFromDealAction, quoteFromDealFactory, quotesBlock, quotesEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -1,5 +1,5 @@
1
1
  import { n as QUOTES_AUTOMATIONS, r as QUOTE_TO_ORDER, t as DEAL_TO_QUOTE } from "../../automations-CjKWYzIu.js";
2
2
  import { K as rpcTransport, W as dbTransport, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
3
3
  import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
4
- import { a as quoteFromDealFactory, i as quoteFromDealAction, n as createQuotes, r as quotesEvents, t as quotesBlock } from "../../manifest-BfTf2V6E.js";
4
+ import { a as quoteFromDealFactory, i as quoteFromDealAction, n as createQuotes, r as quotesEvents, t as quotesBlock } from "../../manifest-DVnOUxy4.js";
5
5
  export { DEAL_TO_QUOTE, QUOTES_AUTOMATIONS, QUOTE_TO_ORDER, createQuotes, dbTransport, extendBlock, quoteFromDealAction, quoteFromDealFactory, quotesBlock, quotesEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -3,7 +3,7 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
3
3
  import { n as BlockOptions } from "../../block-helpers-gyK33E0Z.js";
4
4
  import { n as BlockHooks } from "../../block-hooks-DOK9DyaZ.js";
5
5
  import { _ as JobHandler } from "../../types-Dwzaxp9p.js";
6
- import { c as BlockOf, in as rankBetweenResult, rn as RankNeighbors } from "../../define-block-B00AycyT.js";
6
+ import { c as BlockOf, in as rankBetweenResult, rn as RankNeighbors } from "../../define-block-DiW9g10_.js";
7
7
  /** The queue `move()` enqueues on when a key grows past 24 digits. */
8
8
  export declare const RANK_REBALANCE_QUEUE = "rank.rebalance";
9
9
  /** The digits, in byte order. */
@@ -3,7 +3,7 @@ import { t as AsyncResult } from "../../result-DrBaeIVt.js";
3
3
  import { a as rankKeys, i as rankBetween, n as RANK_REBALANCE_QUEUE, r as isRankKey, t as RANK_ALPHABET } from "../../rank-keys-CEBzd9Xa.js";
4
4
  import { B as textOf, T as optionalText, o as blockCall } from "../../block-helpers-CCl3V9ku.js";
5
5
  import { r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
6
- import { n as defineBlock } from "../../define-block-CCnA8LbO.js";
6
+ import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
7
7
  import { n as rankBetweenResult } from "../../rank-result-5Se-KHhE.js";
8
8
  // src/blocks/rank/rank.ts
9
9
  function payloadOf(value) {
@@ -52,6 +52,7 @@ const rankBlock = defineBlock({
52
52
  sql: ["rank"],
53
53
  create: createRank,
54
54
  category: "database",
55
+ description: "Fractional rank keys: rank_between, move() for every config.subjects entry with a rank column (through the caller's policies and any state-machine trigger), and a rebalance job.",
55
56
  recipes: ["record-board", "work-item-board"]
56
57
  });
57
58
  export { RANK_ALPHABET, RANK_REBALANCE_QUEUE, createRank, isRankKey, rankBetween, rankBetweenResult, rankBlock, rankKeys };
@@ -1,10 +1,10 @@
1
1
  import { b as DbError } from "../../result-CMqlHv82.js";
2
2
  import { et as RecordRef } from "../../types-CaYa549m.js";
3
3
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
4
- import { p as SubscriptionStatus } from "../../topic-DybM_LFL.js";
5
- import { n as TopicPort } from "../../watch-topic-x9vTgTzq.js";
6
- import { n as Controller, t as AuthPort } from "../../controller-BES51lfW.js";
7
- import { a as ReactionActors, c as ReactionsOptions, d as VoteValue, f as createReactions, h as reactionsEvents, i as ReactOptions, l as VoteOptions, m as ReactionsEvents, n as CustomEmoji, o as ReactionCount, p as reactionsTopic, r as CustomEmojiInput, s as Reactions, t as reactionsBlock, u as VoteTally } from "../../manifest-Dfpxslwm.js";
4
+ import { p as SubscriptionStatus } from "../../topic-BKsRT4gu.js";
5
+ import { n as TopicPort } from "../../watch-topic-M1yL9NiW.js";
6
+ import { n as Controller, t as AuthPort } from "../../controller-DfgxFNFx.js";
7
+ import { a as ReactionActors, c as ReactionsOptions, d as VoteValue, f as createReactions, h as reactionsEvents, i as ReactOptions, l as VoteOptions, m as ReactionsEvents, n as CustomEmoji, o as ReactionCount, p as reactionsTopic, r as CustomEmojiInput, s as Reactions, t as reactionsBlock, u as VoteTally } from "../../manifest-DjVqN_iK.js";
8
8
  interface ReactionsControllerOptions {
9
9
  readonly client: Pick<Reactions, "summary" | "react">;
10
10
  readonly auth: AuthPort;
@@ -1,7 +1,7 @@
1
1
  import { n as whileSignedIn, t as defineController } from "../../controller-BJmh7gFm.js";
2
2
  import { K as rpcTransport, W as dbTransport, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
3
3
  import { r as subjectKey } from "../../block-subjects-ok-uZ1UU.js";
4
- import { i as reactionsEvents, n as createReactions, r as reactionsTopic, t as reactionsBlock } from "../../manifest-DzjzA7JV.js";
4
+ import { i as reactionsEvents, n as createReactions, r as reactionsTopic, t as reactionsBlock } from "../../manifest-Dqgqm1Zo.js";
5
5
  // src/blocks/reactions/client.ts
6
6
  const sameSubjects = (a, b) => a.length === b.length && a.every((subject, index) => {
7
7
  const other = b[index];
@@ -1,10 +1,10 @@
1
1
  import { t as AsyncResult } from "../../result-CMqlHv82.js";
2
2
  import { n as Logger } from "../../logger-0LfhvwE4.js";
3
3
  import { n as BlockHooks } from "../../block-hooks-DOK9DyaZ.js";
4
- import { Q as BlockContext, c as BlockOf, p as CompositeOptions } from "../../define-block-B00AycyT.js";
5
- import { t as calendarBlock } from "../../manifest-CcMQg8U2.js";
6
- import { _ as EmployeeInput, o as employeesBlock, p as Employee } from "../../index-CIJgMT3P.js";
7
- import { o as Application, r as hiringBlock } from "../../index-DDsGsDpo.js";
4
+ import { Q as BlockContext, c as BlockOf, p as CompositeOptions } from "../../define-block-DiW9g10_.js";
5
+ import { t as calendarBlock } from "../../manifest-roKO06Ko.js";
6
+ import { _ as EmployeeInput, o as employeesBlock, p as Employee } from "../../index-ZI4sMVPT.js";
7
+ import { o as Application, r as hiringBlock } from "../../index-BK8zPigx.js";
8
8
  /** What `recruiting.hire` returns. */
9
9
  interface Hired {
10
10
  readonly application: Application;
@@ -1,8 +1,8 @@
1
1
  import { r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
2
- import { n as defineBlock } from "../../define-block-CCnA8LbO.js";
3
- import { t as employeesBlock } from "../../manifest-D6iuF7tg.js";
4
- import { t as calendarBlock } from "../../manifest-Cxp20EUq.js";
5
- import { t as hiringBlock } from "../../manifest-DEl9UiYb.js";
2
+ import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
3
+ import { t as employeesBlock } from "../../manifest-CkYNs6PX.js";
4
+ import { t as calendarBlock } from "../../manifest-Cu_4X5Rm.js";
5
+ import { t as hiringBlock } from "../../manifest-DS2PjAgW.js";
6
6
  // src/blocks/recruiting/recruiting.ts
7
7
  /** Creates the `recruiting` helpers over the clients of its parts. */
8
8
  function createRecruiting(options) {
@@ -34,6 +34,7 @@ const recruitingBlock = defineBlock({
34
34
  name: "recruiting",
35
35
  composes: recruitingParts,
36
36
  create: createRecruiting,
37
- category: "people"
37
+ category: "people",
38
+ description: "Hiring, employees and a calendar installed together for recruiting."
38
39
  });
39
40
  export { createRecruiting, recruitingBlock, recruitingParts };