better-supabase 0.21.0 → 0.23.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 (306) hide show
  1. package/dist/{access-sql-CNIgUqWf.js → access-sql-bjWFUWlk.js} +11 -0
  2. package/dist/{adapter-DZJZTY6g.js → adapter-D4aNBxhm.js} +2 -2
  3. package/dist/ai-sdk/agents/index.d.ts +2 -2
  4. package/dist/api-3C0AWFeP.js +696 -0
  5. package/dist/{api-Cj4W_pqT.d.ts → api-CHObZL7m.d.ts} +1 -1
  6. package/dist/{app-tables-C5HjXs2k.d.ts → app-tables-CJO6pWwy.d.ts} +1 -1
  7. package/dist/astro/index.js +5 -5
  8. package/dist/{authorization-DhoA7dsD.d.ts → authorization-Dtwpjeuz.d.ts} +91 -13
  9. package/dist/{bind-CFsctoFJ.d.ts → bind-DaoTunvE.d.ts} +1 -1
  10. package/dist/{block-env-BrUNeuJ_.d.ts → block-env-DUyo2I5O.d.ts} +3 -3
  11. package/dist/blocks/access-requests/index.js +1 -1
  12. package/dist/blocks/activities/index.js +1 -1
  13. package/dist/blocks/agents/index.js +1 -1
  14. package/dist/blocks/ai-chat/index.d.ts +3 -3
  15. package/dist/blocks/ai-chat/index.js +1 -1
  16. package/dist/blocks/ai-keys/index.js +1 -1
  17. package/dist/blocks/announcements/index.d.ts +3 -3
  18. package/dist/blocks/announcements/index.js +1 -1
  19. package/dist/blocks/api-keys/index.d.ts +1 -1
  20. package/dist/blocks/api-keys/index.js +1 -1
  21. package/dist/blocks/approvals/index.js +1 -1
  22. package/dist/blocks/assets/index.js +1 -1
  23. package/dist/blocks/assignment/index.js +1 -1
  24. package/dist/blocks/attachments/index.d.ts +1 -1
  25. package/dist/blocks/attachments/index.js +1 -1
  26. package/dist/blocks/audit/index.d.ts +2 -2
  27. package/dist/blocks/audit/index.js +1 -1
  28. package/dist/blocks/automations/index.d.ts +1 -1
  29. package/dist/blocks/automations/index.js +1 -1
  30. package/dist/blocks/billable-time/index.js +1 -1
  31. package/dist/blocks/billing/index.d.ts +1 -1
  32. package/dist/blocks/billing/index.js +2 -2
  33. package/dist/blocks/bookings/index.d.ts +1 -1
  34. package/dist/blocks/bookings/index.js +1 -1
  35. package/dist/blocks/bulk/index.js +1 -1
  36. package/dist/blocks/calendar/index.d.ts +5 -1
  37. package/dist/blocks/calendar/index.js +7 -4
  38. package/dist/blocks/catalog/index.js +1 -1
  39. package/dist/blocks/channels/index.js +1 -1
  40. package/dist/blocks/collections/index.js +1 -1
  41. package/dist/blocks/comments/index.d.ts +4 -4
  42. package/dist/blocks/compliance/index.js +1 -1
  43. package/dist/blocks/connectors/index.js +1 -1
  44. package/dist/blocks/contacts/index.js +1 -1
  45. package/dist/blocks/content/index.js +1 -1
  46. package/dist/blocks/contracts/index.js +1 -1
  47. package/dist/blocks/courses/index.js +1 -1
  48. package/dist/blocks/custom-fields/index.d.ts +43 -1
  49. package/dist/blocks/custom-fields/index.js +41 -2
  50. package/dist/blocks/data-lifecycle/index.js +1 -1
  51. package/dist/blocks/deals/index.js +1 -1
  52. package/dist/blocks/dispatch/index.js +1 -1
  53. package/dist/blocks/documents/index.js +1 -1
  54. package/dist/blocks/domains/index.js +1 -1
  55. package/dist/blocks/donations/index.js +1 -1
  56. package/dist/blocks/drive/index.d.ts +1 -1
  57. package/dist/blocks/drive/index.js +1 -1
  58. package/dist/blocks/employees/index.d.ts +4 -0
  59. package/dist/blocks/employees/index.js +2 -2
  60. package/dist/blocks/enrichment/index.js +1 -1
  61. package/dist/blocks/enrollments/index.js +1 -1
  62. package/dist/blocks/entitlements/index.d.ts +2 -2
  63. package/dist/blocks/expenses/index.js +1 -1
  64. package/dist/blocks/flags/index.js +1 -1
  65. package/dist/blocks/forecasts/index.js +1 -1
  66. package/dist/blocks/forms/index.d.ts +1 -1
  67. package/dist/blocks/forms/index.js +1 -1
  68. package/dist/blocks/guests/index.js +1 -1
  69. package/dist/blocks/hiring/index.js +1 -1
  70. package/dist/blocks/imports/index.js +1 -1
  71. package/dist/blocks/inbox/index.d.ts +4 -4
  72. package/dist/blocks/inbox/index.js +1 -1
  73. package/dist/blocks/incidents/index.js +1 -1
  74. package/dist/blocks/index.d.ts +1 -1
  75. package/dist/blocks/index.js +2 -2
  76. package/dist/blocks/inventory/index.js +1 -1
  77. package/dist/blocks/invoices/index.js +1 -1
  78. package/dist/blocks/leases/index.js +1 -1
  79. package/dist/blocks/leave/index.js +1 -1
  80. package/dist/blocks/ledger/index.js +1 -1
  81. package/dist/blocks/mail-sync/index.js +1 -1
  82. package/dist/blocks/messaging/index.d.ts +4 -4
  83. package/dist/blocks/messaging/index.js +1 -1
  84. package/dist/blocks/metrics/index.js +1 -1
  85. package/dist/blocks/mfa/index.d.ts +1 -1
  86. package/dist/blocks/moderation/index.js +1 -1
  87. package/dist/blocks/notifications/index.d.ts +3 -3
  88. package/dist/blocks/notifications/index.js +3 -3
  89. package/dist/blocks/numbering/index.js +1 -1
  90. package/dist/blocks/oauth-server/index.js +1 -1
  91. package/dist/blocks/onboarding/index.d.ts +1 -1
  92. package/dist/blocks/orders/index.js +1 -1
  93. package/dist/blocks/organizations/index.d.ts +2 -2
  94. package/dist/blocks/organizations/index.js +1 -1
  95. package/dist/blocks/outbox/index.js +1 -1
  96. package/dist/blocks/passes/index.js +1 -1
  97. package/dist/blocks/permissions/index.d.ts +1 -1
  98. package/dist/blocks/pipelines/index.js +1 -1
  99. package/dist/blocks/posts/index.js +1 -1
  100. package/dist/blocks/promotions/index.js +1 -1
  101. package/dist/blocks/push/index.d.ts +1 -1
  102. package/dist/blocks/push/index.js +1 -1
  103. package/dist/blocks/quotes/index.js +1 -1
  104. package/dist/blocks/reactions/index.d.ts +3 -3
  105. package/dist/blocks/reactions/index.js +1 -1
  106. package/dist/blocks/relations/index.js +1 -1
  107. package/dist/blocks/reminders/index.js +1 -1
  108. package/dist/blocks/reviews/index.js +1 -1
  109. package/dist/blocks/saved-views/index.d.ts +1 -1
  110. package/dist/blocks/saved-views/index.js +1 -1
  111. package/dist/blocks/scores/index.js +1 -1
  112. package/dist/blocks/search/index.d.ts +4 -2
  113. package/dist/blocks/search/index.js +3 -1
  114. package/dist/blocks/security-events/index.js +1 -1
  115. package/dist/blocks/segments/index.js +1 -1
  116. package/dist/blocks/sequences/index.js +1 -1
  117. package/dist/blocks/service-accounts/index.js +1 -1
  118. package/dist/blocks/sessions/index.d.ts +1 -1
  119. package/dist/blocks/settings/index.d.ts +1 -1
  120. package/dist/blocks/settings/index.js +1 -1
  121. package/dist/blocks/share-links/index.d.ts +28 -3
  122. package/dist/blocks/share-links/index.js +59 -23
  123. package/dist/blocks/shipments/index.js +1 -1
  124. package/dist/blocks/signatures/index.js +1 -1
  125. package/dist/blocks/signing-keys/index.js +1 -1
  126. package/dist/blocks/sla/index.js +1 -1
  127. package/dist/blocks/sso/index.js +1 -1
  128. package/dist/blocks/state-machine/index.js +1 -1
  129. package/dist/blocks/subjects/index.d.ts +1 -1
  130. package/dist/blocks/tags/index.d.ts +18 -3
  131. package/dist/blocks/tags/index.js +16 -3
  132. package/dist/blocks/tasks/index.js +2 -2
  133. package/dist/blocks/teams/index.d.ts +26 -4
  134. package/dist/blocks/teams/index.js +11 -4
  135. package/dist/blocks/templates/index.js +1 -1
  136. package/dist/blocks/time-tracking/index.d.ts +18 -0
  137. package/dist/blocks/time-tracking/index.js +13 -4
  138. package/dist/blocks/timeline/index.js +1 -1
  139. package/dist/blocks/trash/index.js +1 -1
  140. package/dist/blocks/undo/index.d.ts +1 -1
  141. package/dist/blocks/usage/index.d.ts +1 -1
  142. package/dist/blocks/vercel-marketplace/index.js +1 -1
  143. package/dist/blocks/versions/index.js +1 -1
  144. package/dist/blocks/waitlist/index.js +1 -1
  145. package/dist/blocks/webhooks/index.js +4 -4
  146. package/dist/blocks/workflow-editor/index.d.ts +3 -3
  147. package/dist/blocks/workflow-editor/index.js +1 -1
  148. package/dist/blocks/workflows/index.d.ts +3 -3
  149. package/dist/blocks/workflows/index.js +1 -1
  150. package/dist/cli/{add-BTDPjVGC.js → add-C7lKQNBL.js} +11 -11
  151. package/dist/cli/{add-C0w-mVTQ.js → add-DVHniZOO.js} +2 -2
  152. package/dist/cli/add-vZRn-uH0.js +1 -0
  153. package/dist/cli/{backfill-BDdBs6Ne.js → backfill-Lrn-Qp5X.js} +3 -3
  154. package/dist/cli/bin.js +1 -1
  155. package/dist/cli/{blocks-Bs-lA-U_.js → blocks-2Yw9t-_U.js} +1 -1
  156. package/dist/cli/{blocks-CQLME-HQ.js → blocks-BKNd886C.js} +1 -1
  157. package/dist/cli/{cache-DDKao2Va.js → cache-ByhPVMo-.js} +1 -1
  158. package/dist/cli/{codemod-Bjl998Do.js → codemod-C0eXpzFu.js} +1 -1
  159. package/dist/cli/{config-BH0goim0.js → config-BVfeG3A5.js} +37 -5
  160. package/dist/cli/{config-CTRzkX0H.js → config-CeaQMrvS.js} +1 -1
  161. package/dist/cli/{content-mapper-DgSTl-DL.js → content-mapper-qH-_YQ8H.js} +2 -2
  162. package/dist/cli/{db-DCeyHS1y.js → db-DwjyUbAh.js} +2 -2
  163. package/dist/cli/{doctor-CMLWbt44.js → doctor-BnxkqXGA.js} +21 -19
  164. package/dist/cli/{gen-D3VX8WdV.js → gen-aERmP3Sw.js} +14 -14
  165. package/dist/cli/index.d.ts +1 -1
  166. package/dist/cli/index.js +7 -7
  167. package/dist/cli/{init-D6D6eWze.js → init-DWUqVSVW.js} +6 -6
  168. package/dist/cli/{live-C_xgTOfD.js → live-KcdTBUij.js} +2 -2
  169. package/dist/cli/{mcp-B0Irjbes.js → mcp-Dsjjo-LT.js} +2 -2
  170. package/dist/cli/{metadata-cLXra-XB.js → metadata-DWQSIZ59.js} +3 -3
  171. package/dist/cli/{migration-safety-OUK-Afbb.js → migration-safety-Cy7xlU4G.js} +2 -2
  172. package/dist/cli/{migrations-CHenMvl_.js → migrations-CUjNXokR.js} +1 -1
  173. package/dist/cli/{module-migration-6V7vXWUK.js → module-migration-C6NLY9iZ.js} +2 -2
  174. package/dist/cli/powersync-BOhjVQCb.js +1 -0
  175. package/dist/cli/{powersync-D83yAFbl.js → powersync-CE_hQdgc.js} +2 -2
  176. package/dist/cli/{print-C0OmQyTu.js → print-Cy_ram9N.js} +2 -2
  177. package/dist/cli/{remove-BWlOngNT.js → remove-DmwjzqaW.js} +5 -5
  178. package/dist/cli/{render-9m70qveo.js → render-CF09FCra.js} +7 -4
  179. package/dist/cli/{run-He3M-ZRq.js → run-BYpZ8FjF.js} +25 -25
  180. package/dist/cli/{run-gE4eAazR.js → run-lh-chAJW.js} +8 -8
  181. package/dist/cli/{seed-CdSxunFT.js → seed-BMynpMPy.js} +2 -2
  182. package/dist/cli/seed-CO3j_bly.js +1 -0
  183. package/dist/cli/{shared-Cx2WFVWq.js → shared-D05A6t1e.js} +1 -1
  184. package/dist/cli/{snapshot-CZb3uVKE.js → snapshot-BITNbA5V.js} +3 -3
  185. package/dist/cli/{source-CrYSCdPZ.js → source-GGJHuzpH.js} +1 -1
  186. package/dist/cli/{source-args-z-jkabmO.js → source-args-CDmmFmFG.js} +1 -1
  187. package/dist/cli/{spec-Cn5RhuQc.js → spec-BGcRdlhN.js} +2 -2
  188. package/dist/cli/{spec-D4b9ePuQ.js → spec-BjxXWaNQ.js} +1 -1
  189. package/dist/cli/{sql-layout-CLJ67h3L.js → sql-layout-BoD5ynN9.js} +2 -2
  190. package/dist/cli/{sync-B8VGiaHk.js → sync-_QlsTmqu.js} +3 -3
  191. package/dist/cli/{upgrade-BvBWK3Fo.js → upgrade-Cwhb1M7O.js} +4 -4
  192. package/dist/cli/{upgrade-DMiYx1C8.js → upgrade-n9ar1kc4.js} +2 -2
  193. package/dist/cli/{version-BVg2Z6yv.js → version-RSpJIWDd.js} +1 -1
  194. package/dist/client/index.d.ts +5 -5
  195. package/dist/client/native/index.d.ts +4 -4
  196. package/dist/{composite-Dw5ofSF_.js → composite-CBRbvn5j.js} +2 -2
  197. package/dist/config/index.d.ts +4 -4
  198. package/dist/config/index.js +4 -4
  199. package/dist/{config-BOt5T6Vs.js → config-RwpFcPq8.js} +3 -3
  200. package/dist/{config-CD2OGfCG.js → config-vHLJ8SKf.js} +1 -1
  201. package/dist/{context-sgrUjA3U.d.ts → context-CMf4OKpN.d.ts} +72 -16
  202. package/dist/{controller-B6vWdKSa.d.ts → controller-BGto_kYM.d.ts} +1 -1
  203. package/dist/create/index.d.ts +72 -451
  204. package/dist/create/index.js +15 -1687
  205. package/dist/create/lite/index.d.ts +250 -13
  206. package/dist/create/lite/index.js +1007 -24
  207. package/dist/credentials/index.js +1 -1
  208. package/dist/edge/index.js +7 -7
  209. package/dist/elysia/index.js +1 -1
  210. package/dist/{entitlements-BPaPd3MD.d.ts → entitlements-CIhVQ-0u.d.ts} +1 -1
  211. package/dist/events/index.js +1 -1
  212. package/dist/expo/index.js +3 -3
  213. package/dist/{field-errors-DBgDCITw.d.ts → field-errors-BDhPaO0a.d.ts} +4 -4
  214. package/dist/{framework-DXM1vNcV.js → framework-DYEUraqt.js} +1 -1
  215. package/dist/h3/index.js +1 -1
  216. package/dist/h3/v1/index.js +1 -1
  217. package/dist/hono/index.js +6 -6
  218. package/dist/{index-ByF22_C6.d.ts → index--OhYKouV.d.ts} +2 -2
  219. package/dist/{index-Bt7_mxn0.d.ts → index-4MStWaeF.d.ts} +185 -7
  220. package/dist/{index-5JSxY1MG.d.ts → index-CFWlHuVY.d.ts} +77 -2
  221. package/dist/{index-CdMZQCYR.d.ts → index-lV43eM34.d.ts} +2 -2
  222. package/dist/{index-C4sjewrr.d.ts → index-ujNqgZ6B.d.ts} +6 -6
  223. package/dist/{app-tables-DyswUg6J.js → instances-BPJSESPx.js} +176 -11
  224. package/dist/{kit-DhlB-vv_.js → kit-Bcd9wYCV.js} +1 -1
  225. package/dist/mapper/bin.js +6 -6
  226. package/dist/mcp/index.d.ts +1 -1
  227. package/dist/mcp/index.js +6 -6
  228. package/dist/mcp/sdk/index.js +2 -2
  229. package/dist/nestjs/index.js +1 -1
  230. package/dist/next/index.d.ts +3 -3
  231. package/dist/next/index.js +7 -7
  232. package/dist/node/index.js +1 -1
  233. package/dist/{operations-DC3wU3Sy.d.ts → operations-qSBBV5vl.d.ts} +1 -1
  234. package/dist/{options-fMxhtuVR.js → options-BJtdsK7b.js} +4 -1
  235. package/dist/{options-DhdazgTZ.js → options-BPp2zzsz.js} +3 -1
  236. package/dist/options-BSsYXjhC.js +9 -0
  237. package/dist/{options-ChiL-4ZS.js → options-D4ADKTKo.js} +3 -1
  238. package/dist/{options-C1-pwEqm.js → options-DztCKw_f.js} +4 -1
  239. package/dist/{options-BfFC4iFE.js → options-jsOCvLUz.js} +3 -1
  240. package/dist/orpc/index.d.ts +1 -1
  241. package/dist/orpc/index.js +5 -5
  242. package/dist/otel/index.js +4 -4
  243. package/dist/{ports-BbBJVyS0.d.ts → ports-DbHiNSAa.d.ts} +1 -1
  244. package/dist/powersync/index.d.ts +2 -2
  245. package/dist/preset/index.d.ts +4 -4
  246. package/dist/preset/index.js +4 -4
  247. package/dist/{preset-B3CukUhu.js → preset-B1xXOJ0T.js} +179 -7
  248. package/dist/project-BM6QMtzV.js +1760 -0
  249. package/dist/{push-token-CPJfPFa2.d.ts → push-token-BwF1fyjA.d.ts} +1 -1
  250. package/dist/react/index.d.ts +5 -5
  251. package/dist/react/index.js +2 -2
  252. package/dist/react/native/index.d.ts +1 -1
  253. package/dist/react/server.d.ts +5 -5
  254. package/dist/react/server.js +2 -2
  255. package/dist/{react-_D_CeZMk.js → react-CcrQQl0_.js} +2 -2
  256. package/dist/react-router/index.js +5 -5
  257. package/dist/realtime/index.d.ts +3 -3
  258. package/dist/realtime/index.js +1 -1
  259. package/dist/records/index.d.ts +3 -3
  260. package/dist/{refusal-D48CMqpQ.js → refusal-DDlInPff.js} +2 -2
  261. package/dist/{instances-DDt7NdVl.js → resolved-names-WzRYhUez.js} +2 -146
  262. package/dist/{resource-R3KToNze.js → resource-BUJcZKiW.js} +2 -2
  263. package/dist/{resources-DqIwoQsP.js → resources-jb3R6rEa.js} +1 -1
  264. package/dist/server/index.d.ts +1 -1
  265. package/dist/server/index.js +7 -7
  266. package/dist/{sign-in-1FJiXXyG.js → sign-in-NO7LWlw4.js} +2 -2
  267. package/dist/solid/index.d.ts +5 -5
  268. package/dist/solid/index.js +1 -1
  269. package/dist/solid-start/index.js +5 -5
  270. package/dist/spec/index.d.ts +2 -2
  271. package/dist/spec/index.js +2 -693
  272. package/dist/sql/index.d.ts +5 -5
  273. package/dist/sql/index.js +5 -5
  274. package/dist/{sql-BjjgwJKg.js → sql-CNH8kjLS.js} +2727 -955
  275. package/dist/ssr/index.d.ts +1 -1
  276. package/dist/storage/index.js +1 -1
  277. package/dist/subjects-NomQg6Eg.d.ts +131 -0
  278. package/dist/svelte/index.d.ts +5 -5
  279. package/dist/svelte/index.js +1 -1
  280. package/dist/sveltekit/index.js +5 -5
  281. package/dist/tanstack-start/index.js +5 -5
  282. package/dist/{tenant-BHvMFNXl.d.ts → tenant-D4BA7XQ-.d.ts} +1 -1
  283. package/dist/testing/index.d.ts +4 -4
  284. package/dist/testing/index.js +5 -5
  285. package/dist/{topic-J9I3yu6f.js → topic-F0FKzJyQ.js} +2 -2
  286. package/dist/{topic-gTVjLGTk.d.ts → topic-utZqhw96.d.ts} +1 -1
  287. package/dist/types-DLnBJ3ST.d.ts +461 -0
  288. package/dist/vue/index.d.ts +5 -5
  289. package/dist/vue/index.js +1 -1
  290. package/dist/{watch-topic-C6HhbnVz.d.ts → watch-topic-B1UCoQfz.d.ts} +1 -1
  291. package/dist/workflow-sdk/world/index.js +1 -1
  292. package/dist/{workflow-sdk-DELaQEp3.js → workflow-sdk-CE8sEK57.js} +38 -1
  293. package/dist/yjs/index.d.ts +1 -1
  294. package/dist/yjs/index.js +1 -1
  295. package/package.json +1 -1
  296. package/schemas/config-v1.json +166 -2
  297. package/dist/cli/add-CspY9jKT.js +0 -1
  298. package/dist/cli/powersync-DwhCH0gs.js +0 -1
  299. package/dist/cli/seed-CXJvTU5D.js +0 -1
  300. package/dist/options-CTv-xmbA.js +0 -5
  301. package/dist/subjects-DvmQeF_F.d.ts +0 -79
  302. package/dist/types-DGHfTW8_.d.ts +0 -9
  303. package/dist/{build-CM8PJqwW.js → build-CH2N3Yf0.js} +3 -3
  304. package/dist/{create-blocks-CUS28FfS.js → create-blocks-BfrDUSM6.js} +1 -1
  305. package/dist/{data-hooks-tgF1Ct0F.js → data-hooks-CdcZfVS1.js} +1 -1
  306. package/dist/{respond-3RKp6VgU.js → respond-CZMWbUs3.js} +1 -1
@@ -108,6 +108,12 @@ interface Timesheet {
108
108
  readonly note?: string;
109
109
  readonly submittedAt?: Temporal.Instant;
110
110
  readonly approvedAt?: Temporal.Instant;
111
+ /** With `options.approvals: false`: who decided the week. */
112
+ readonly decidedBy?: string;
113
+ /** With `options.approvals: false`: when the week was decided. */
114
+ readonly decidedAt?: Temporal.Instant;
115
+ /** With `options.approvals: false`: the note of a rejection. */
116
+ readonly decisionNote?: string;
111
117
  }
112
118
  interface TimesheetTotals {
113
119
  /** Every entry, running ones up to now. */
@@ -157,6 +163,16 @@ interface TimeTracking<F extends object = Record<never, never>> {
157
163
  submit(week: Temporal.PlainDate, note?: string): AsyncResult<Timesheet>;
158
164
  /** Unlocks an approved week; needs `time_tracking.manage`. */
159
165
  reopen(timesheetId: string): AsyncResult<Timesheet>;
166
+ /**
167
+ * With `options.approvals: false`: approves a submitted week; needs
168
+ * `time_tracking.approve`, and nobody approves their own.
169
+ */
170
+ approve(timesheetId: string): AsyncResult<Timesheet>;
171
+ /**
172
+ * With `options.approvals: false`: sends a submitted week back with a note,
173
+ * which unlocks it.
174
+ */
175
+ reject(timesheetId: string, note?: string): AsyncResult<Timesheet>;
160
176
  /** Newest week first. */
161
177
  timesheets(options?: TimesheetListOptions): AsyncResult<readonly Timesheet[]>;
162
178
  }
@@ -264,6 +280,8 @@ type TimeTrackingEvents = {
264
280
  readonly "timesheet.submitted": TimesheetEventData;
265
281
  readonly "timesheet.approved": TimesheetEventData;
266
282
  readonly "timesheet.reopened": TimesheetEventData;
283
+ /** With `options.approvals: false`: an approver rejected the week. */
284
+ readonly "timesheet.rejected": TimesheetEventData;
267
285
  };
268
286
  /** The `time-tracking` block's event types, for its manifest and `onBlockEvent`. */
269
287
  export declare const timeTrackingEvents: Events<TimeTrackingEvents>;
@@ -2,11 +2,11 @@ import { n as isRecord } from "../../guards-6F2bCtQR.js";
2
2
  import { s as nowInstant } from "../../temporal-Dbo0fLzc.js";
3
3
  import { t as temporal } from "../../temporal-required-DcLhnDhQ.js";
4
4
  import { t as AsyncResult } from "../../result-ntFBW2p2.js";
5
- import { t as timeTrackingSqlOptions } from "../../options-DhdazgTZ.js";
5
+ import { t as timeTrackingSqlOptions } from "../../options-BPp2zzsz.js";
6
6
  import { r as defineMetric } from "../../metric-definition-BjxVn4R5.js";
7
+ import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
7
8
  import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
8
9
  import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
9
- import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
10
10
  import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
11
11
  import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
12
12
  import { n as optionalRecordRefOf } from "../../block-subjects-DFSuFY1a.js";
@@ -53,7 +53,10 @@ function timesheetOf(value, fn) {
53
53
  ...optional("approvalId", optionalText(row["approvalId"])),
54
54
  ...optional("note", optionalText(row["note"])),
55
55
  ...optional("submittedAt", optionalInstant(row["submittedAt"])),
56
- ...optional("approvedAt", optionalInstant(row["approvedAt"]))
56
+ ...optional("approvedAt", optionalInstant(row["approvedAt"])),
57
+ ...optional("decidedBy", optionalText(row["decidedBy"])),
58
+ ...optional("decidedAt", optionalInstant(row["decidedAt"])),
59
+ ...optional("decisionNote", optionalText(row["decisionNote"]))
57
60
  };
58
61
  }
59
62
  function totalsOf(value) {
@@ -167,6 +170,11 @@ function createTimeTracking(options) {
167
170
  week: week.toString(),
168
171
  note: note ?? null
169
172
  }, (value) => timesheetOf(value, "submit_timesheet"))),
173
+ approve: (timesheetId) => call("approve_timesheet", { timesheet_id: timesheetId }, (value) => timesheetOf(value, "approve_timesheet")),
174
+ reject: (timesheetId, note) => call("reject_timesheet", {
175
+ timesheet_id: timesheetId,
176
+ note: note ?? null
177
+ }, (value) => timesheetOf(value, "reject_timesheet")),
170
178
  reopen: (timesheetId) => call("reopen_timesheet", { timesheet_id: timesheetId }, (value) => timesheetOf(value, "reopen_timesheet")),
171
179
  timesheets: (list = {}) => tenant().andThen((organizationId) => call("list_timesheets", {
172
180
  tenant: organizationId,
@@ -302,7 +310,8 @@ const timeTrackingEvents = defineEvents({
302
310
  "time_entry.deleted": event(),
303
311
  "timesheet.submitted": event(),
304
312
  "timesheet.approved": event(),
305
- "timesheet.reopened": event()
313
+ "timesheet.reopened": event(),
314
+ "timesheet.rejected": event()
306
315
  });
307
316
  //#endregion
308
317
  //#region src/blocks/time-tracking/manifest.ts
@@ -1,7 +1,7 @@
1
1
  import { n as isRecord } from "../../guards-6F2bCtQR.js";
2
+ import { a as stripTypePrefix } from "../../cloud-event-XsM53POL.js";
2
3
  import { A as recordsOf, L as textOf, O as recordOf, T as pageOf, U as rpcTransport, V as dbTransport, W as sqlTransport, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText, z as toInstant } from "../../block-helpers-B0f0ZVb5.js";
3
4
  import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
4
- import { a as stripTypePrefix } from "../../cloud-event-XsM53POL.js";
5
5
  import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
6
6
  import { n as optionalRecordRefOf } from "../../block-subjects-DFSuFY1a.js";
7
7
  import { n as defineListQuery } from "../../list-query-BnpA2BDg.js";
@@ -1,8 +1,8 @@
1
1
  import { n as isRecord } from "../../guards-6F2bCtQR.js";
2
2
  import { t as trashSqlOptions } from "../../options-B692WoK6.js";
3
+ import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
3
4
  import { A as recordsOf, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, j as requiredInstant, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
4
5
  import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
5
- import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
6
6
  import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
7
7
  import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
8
8
  import { t as trashExtension } from "../../extension-DzCc0IOd.js";
@@ -1,6 +1,6 @@
1
1
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
2
2
  import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
3
- import { n as Controller } from "../../controller-B6vWdKSa.js";
3
+ import { n as Controller } from "../../controller-BGto_kYM.js";
4
4
  import { a as UndoToken, c as undoToken, i as UndoOptions, n as Undo, o as createUndo, r as UndoCall, s as isUndoToken, t as UNDO_FUNCTIONS } from "../../undo-B1jwnVyN.js";
5
5
  //#region src/blocks/undo/client.d.ts
6
6
  interface UndoEntry {
@@ -3,7 +3,7 @@ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTrans
3
3
  import { n as StripeSource, t as StripeClient } from "../../stripe-X22LjuH-.js";
4
4
  import { _ as reportUsageToStripe, a as Usage, c as UsageEntry, d as UsageMeterInfo, f as UsageOptions, g as createUsage, h as UsageStatus, i as ReportUsageResult, l as UsageHistoryEntry, m as UsageRecorded, n as RecordUsageOptions, o as UsageBatchRecorded, p as UsagePeriod, r as ReportUsageOptions, s as UsageBreakdownEntry, t as PurgeUsageOptions, u as UsageHistoryOptions } from "../../usage-Dp45V42p.js";
5
5
  import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
6
- import { n as Controller, t as AuthPort } from "../../controller-B6vWdKSa.js";
6
+ import { n as Controller, t as AuthPort } from "../../controller-BGto_kYM.js";
7
7
  //#region src/blocks/usage/manifest.d.ts
8
8
  /** The `usage` block's manifest (ADR 0029). */
9
9
  export declare const usageBlock: BlockOf<"usage", typeof createUsage>;
@@ -3,9 +3,9 @@ import { n as isRecord } from "../../guards-6F2bCtQR.js";
3
3
  import { a as ok, r as err, t as AsyncResult } from "../../result-ntFBW2p2.js";
4
4
  import { a as methodNotAllowed, o as problemResponse } from "../../problem-Bf0cJ7tk.js";
5
5
  import { t as vercelMarketplaceSqlOptions } from "../../options-DZRpXKQE.js";
6
+ import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
6
7
  import { A as recordsOf, L as textOf, O as recordOf, W as sqlTransport, f as errorText, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
7
8
  import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
8
- import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
9
9
  import { r as timingSafeEqual } from "../../hmac-B3CTTlfv.js";
10
10
  import { t as cronRoute } from "../../cron-route-FjKgRvTY.js";
11
11
  import { c as verifyCompact, t as JwsError } from "../../jws-DOgHJKHb.js";
@@ -1,10 +1,10 @@
1
1
  import { n as isRecord } from "../../guards-6F2bCtQR.js";
2
2
  import { t as versionsSqlOptions } from "../../options-DZLkeqWn.js";
3
+ import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
3
4
  import { A as recordsOf, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
4
5
  import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
5
6
  import { n as entitySchema } from "../../entity-schema-B1YmMtP8.js";
6
7
  import { i as recordRowInput, t as defineRecordBinding } from "../../record-bindings-Z51mGfhB.js";
7
- import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
8
8
  import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
9
9
  import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
10
10
  import { i as subjectRefOf } from "../../block-subjects-DFSuFY1a.js";
@@ -1,8 +1,8 @@
1
1
  import { n as isRecord } from "../../guards-6F2bCtQR.js";
2
2
  import { t as waitlistSqlOptions } from "../../options-DKoQoRCy.js";
3
+ import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
3
4
  import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText, z as toInstant } from "../../block-helpers-B0f0ZVb5.js";
4
5
  import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
5
- import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
6
6
  import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
7
7
  import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
8
8
  import { r as hookError, t as authHook } from "../../verify-7EucfCnv.js";
@@ -7,12 +7,13 @@ import { i as toBase64, r as fromBase64 } from "../../base64-B9Wlsdj7.js";
7
7
  import { a as methodNotAllowed, o as problemResponse } from "../../problem-Bf0cJ7tk.js";
8
8
  import { t as MAX_BATCH } from "../../batch-limit-DKVQDz4o.js";
9
9
  import { n as webhooksOutSqlOptions, t as webhooksInSqlOptions } from "../../options-D96dScev.js";
10
- import { A as recordsOf, D as readBodyCapped, N as seconds, O as recordOf, R as toBlockError, U as rpcTransport, V as dbTransport, W as sqlTransport, c as chunksOf, f as errorText, h as instantOf, i as batchResultsOf, n as applyTemporal, o as blockCall, r as asDbError, s as budget, w as optionalText, y as nullableInstant, z as toInstant } from "../../block-helpers-B0f0ZVb5.js";
11
- import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
12
10
  import { a as stripTypePrefix } from "../../cloud-event-XsM53POL.js";
13
- import { n as credentialRefInTenant, r as foreignCredentialRef } from "../../provider-B6g7rBZX.js";
14
11
  import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
15
12
  import { r as blockEmitter } from "../../block-events-IWAyafO3.js";
13
+ import { toHttp } from "../../events/index.js";
14
+ import { A as recordsOf, D as readBodyCapped, N as seconds, O as recordOf, R as toBlockError, U as rpcTransport, V as dbTransport, W as sqlTransport, c as chunksOf, f as errorText, h as instantOf, i as batchResultsOf, n as applyTemporal, o as blockCall, r as asDbError, s as budget, w as optionalText, y as nullableInstant, z as toInstant } from "../../block-helpers-B0f0ZVb5.js";
15
+ import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
16
+ import { n as credentialRefInTenant, r as foreignCredentialRef } from "../../provider-B6g7rBZX.js";
16
17
  import { n as hmacHex, r as timingSafeEqual } from "../../hmac-B3CTTlfv.js";
17
18
  import { i as signWebhook, o as verifySharedSecret, s as verifyWebhook, t as PUBLIC_KEY_PREFIX } from "../../signatures-CX1b4WHa.js";
18
19
  import { t as cronRoute } from "../../cron-route-FjKgRvTY.js";
@@ -20,7 +21,6 @@ import { t as subjectReaders } from "../../subject-readers-CeeJJOQ4.js";
20
21
  import { n as hitRateLimit, o as receiveWebhook } from "../../rate-limit-fZ_d8gSE.js";
21
22
  import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
22
23
  import { a as signStripeWebhook, i as isDatabaseWebhook, n as databaseChange, o as stripeInboxVerify, r as hookError, s as verifyStripeWebhook, t as authHook } from "../../verify-7EucfCnv.js";
23
- import { toHttp } from "../../events/index.js";
24
24
  //#region src/blocks/webhooks/destinations.ts
25
25
  /**
26
26
  * Stores deliveries in the webhook inbox under `source` (the delivery's source
@@ -5,9 +5,9 @@ import { Ct as Events, gt as WorkflowEventData } from "../../events-vcqenSYU.js"
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
6
6
  import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
7
7
  import { g as Workflows, n as WorkflowRun } from "../../workflows-B0ZPAQu0.js";
8
- import { p as SubscriptionStatus } from "../../topic-gTVjLGTk.js";
9
- import { n as TopicPort } from "../../watch-topic-C6HhbnVz.js";
10
- import { n as Controller, t as AuthPort } from "../../controller-B6vWdKSa.js";
8
+ import { p as SubscriptionStatus } from "../../topic-utZqhw96.js";
9
+ import { n as TopicPort } from "../../watch-topic-B1UCoQfz.js";
10
+ import { n as Controller, t as AuthPort } from "../../controller-BGto_kYM.js";
11
11
  import { A as WorkflowVersionOwner, B as WorkflowGraphNode, C as WorkflowGrantPrincipal, D as WorkflowTrigger, E as WorkflowStepInfo, F as WorkflowFilterCondition, G as durationMs, H as WorkflowNodeKind, I as WorkflowFilterField, J as matchesFilter, K as evaluateCondition, L as WorkflowGraph, M as GraphScope, N as WorkflowCondition, O as WorkflowTriggerKind, P as WorkflowConditionOperator, R as WorkflowGraphDiff, S as WorkflowGrantAction, T as WorkflowNodeRunStatus, U as approved, V as WorkflowNodeCondition, W as diffGraphs, X as validateGraph, Y as topologicalOrder, _ as WorkflowCredential, a as CredentialInput, b as WorkflowDefinitionScope, c as GraphCompiler, d as RunInput, f as TestRunInput, g as WorkflowBuilderHooks, h as WorkflowAlert, i as BuilderStarter, j as WorkflowVersionStatus, k as WorkflowVersion, l as NodeRunRecord, m as VersionSaveOptions, n as BuilderOptions, o as DefinitionInput, p as TriggerInput, q as filterConditionOf, r as BuilderStartCall, s as GrantInput, t as AlertInput, u as PublishOptions, v as WorkflowDefinition, w as WorkflowNodeRun, x as WorkflowEditor, y as WorkflowDefinitionGrant, z as WorkflowGraphEdge } from "../../types-yj8VF4oY.js";
12
12
  import { a as GraphSubject, c as graphRunFields, i as GraphStepCall, l as startNodeOf, n as GraphRunFields, o as approvalToken, r as GraphRuntime, s as executeGraph, t as GraphApprovalCall } from "../../executor-DNK401lZ.js";
13
13
  //#region src/blocks/workflow-editor/workflow-editor.d.ts
@@ -2,12 +2,12 @@ import { n as dbError } from "../../errors-BVFgt8BZ.js";
2
2
  import { n as isRecord } from "../../guards-6F2bCtQR.js";
3
3
  import { a as ok, r as err, t as AsyncResult } from "../../result-ntFBW2p2.js";
4
4
  import { t as workflowEditorSqlOptions } from "../../options-DFpyP1bg.js";
5
+ import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
5
6
  import { n as whileSignedIn, t as defineController } from "../../controller-BEliOBOv.js";
6
7
  import { A as recordsOf, C as optionalInstant, E as randomToken, I as stringsOf, L as textOf, N as seconds, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, k as recordOrEmpty, n as applyTemporal, o as blockCall, p as injectableOf, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
7
8
  import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
8
9
  import { n as LEGACY_PERMISSION_CAP_CLAIM, r as PERMISSION_CAP_CLAIM } from "../../delegation-DGOIiT8k.js";
9
10
  import { n as credentialRefInTenant, r as foreignCredentialRef } from "../../provider-B6g7rBZX.js";
10
- import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
11
11
  import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
12
12
  import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
13
13
  import { n as watchRun, t as firstError } from "../../run-watch-B-LoK5m1.js";
@@ -3,9 +3,9 @@ import { Ct as Events, _t as WorkflowRunEventData } from "../../events-vcqenSYU.
3
3
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
4
4
  import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
5
5
  import { _ as WorkflowsHooks, a as WorkflowRunStatus, c as WorkflowScheduleInput, d as WorkflowStartTicket, f as WorkflowStarter, g as Workflows, h as WorkflowTickResult, i as WorkflowRunRecord, l as WorkflowStartCall, m as WorkflowTickOptions, n as WorkflowRun, o as WorkflowRunsQuery, s as WorkflowSchedule, u as WorkflowStartRequest, v as WorkflowsOptions, y as createWorkflows } from "../../workflows-B0ZPAQu0.js";
6
- import { p as SubscriptionStatus } from "../../topic-gTVjLGTk.js";
7
- import { n as TopicPort } from "../../watch-topic-C6HhbnVz.js";
8
- import { n as Controller, t as AuthPort } from "../../controller-B6vWdKSa.js";
6
+ import { p as SubscriptionStatus } from "../../topic-utZqhw96.js";
7
+ import { n as TopicPort } from "../../watch-topic-B1UCoQfz.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-BGto_kYM.js";
9
9
  //#region src/blocks/workflows/client.d.ts
10
10
  interface WorkflowRunsControllerOptions {
11
11
  readonly client: {
@@ -1,10 +1,10 @@
1
1
  import { n as isRecord } from "../../guards-6F2bCtQR.js";
2
2
  import { t as temporal } from "../../temporal-required-DcLhnDhQ.js";
3
3
  import { a as ok, r as err } from "../../result-ntFBW2p2.js";
4
+ import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
4
5
  import { n as whileSignedIn, t as defineController } from "../../controller-BEliOBOv.js";
5
6
  import { A as recordsOf, C as optionalInstant, L as textOf, N as seconds, O as recordOf, T as pageOf, U as rpcTransport, V as dbTransport, W as sqlTransport, f as errorText, j as requiredInstant, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
6
7
  import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
7
- import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
8
8
  import { n as nextCronRun, t as assertCron } from "../../cron-DdT4ti8a.js";
9
9
  import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
10
10
  import { n as watchRun } from "../../run-watch-B-LoK5m1.js";
@@ -1,22 +1,22 @@
1
1
  import { a as list, p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
- import { t as VERSION } from "./version-BVg2Z6yv.js";
3
+ import { t as VERSION } from "./version-RSpJIWDd.js";
4
4
  import { a as parseNames, n as CliError } from "./errors-BTe6A15O.js";
5
5
  import { r as readIfExists, t as display } from "./io-DH1kcmmP.js";
6
- import { t as loadSnapshot } from "./snapshot-CZb3uVKE.js";
6
+ import { t as loadSnapshot } from "./snapshot-BITNbA5V.js";
7
7
  import { t as isRecord } from "./guards-CUlDNYZs.js";
8
- import { a as toCatalog } from "./source-CrYSCdPZ.js";
9
- import { n as dataMigration } from "./migrations-CHenMvl_.js";
10
- import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-BH0goim0.js";
8
+ import { a as toCatalog } from "./source-GGJHuzpH.js";
9
+ import { n as dataMigration } from "./migrations-CUjNXokR.js";
10
+ import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-BVfeG3A5.js";
11
11
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
12
- import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-OUK-Afbb.js";
12
+ import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-Cy7xlU4G.js";
13
13
  import { n as installCommand, t as detectProject } from "./detect-D9JaAX20.js";
14
14
  import { d as setBlockInJson, f as setPathInConfig, h as setPresetInJson, m as setPresetInConfig, n as addBlocksToJson, p as setPathInJson, r as addBlocksToWiring, t as addBlocksToConfig, u as setBlockInConfig } from "./config-edit-CrWfk8s3.js";
15
- import { t as syncModules } from "./sync-B8VGiaHk.js";
16
- import { t as addModules } from "./add-C0w-mVTQ.js";
17
- import { n as ident } from "./live-C_xgTOfD.js";
18
- import { t as blockNames } from "./blocks-Bs-lA-U_.js";
19
- import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-z-jkabmO.js";
15
+ import { t as syncModules } from "./sync-_QlsTmqu.js";
16
+ import { t as addModules } from "./add-DVHniZOO.js";
17
+ import { n as ident } from "./live-KcdTBUij.js";
18
+ import { t as blockNames } from "./blocks-2Yw9t-_U.js";
19
+ import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-CDmmFmFG.js";
20
20
  import { existsSync } from "node:fs";
21
21
  import { dirname, join, posix, resolve } from "node:path";
22
22
  import { readFile } from "node:fs/promises";
@@ -1,8 +1,8 @@
1
1
  import { n as CliError } from "./errors-BTe6A15O.js";
2
- import { c as layoutFor, g as providerLabel, l as providerOwnsMemberships, o as MEMBERSHIP_CLAIM_MODULES } from "./migrations-CHenMvl_.js";
2
+ import { c as layoutFor, g as providerLabel, l as providerOwnsMemberships, o as MEMBERSHIP_CLAIM_MODULES } from "./migrations-CUjNXokR.js";
3
3
  import { r as applyPlan } from "./files-CX71yBm8.js";
4
4
  import { n as addBlocksToJson, s as keyText, t as addBlocksToConfig } from "./config-edit-CrWfk8s3.js";
5
- import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-B8VGiaHk.js";
5
+ import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-_QlsTmqu.js";
6
6
  import { basename, dirname } from "node:path";
7
7
  import { readFile } from "node:fs/promises";
8
8
  import { SQL_MODULES, resolveBlocks } from "better-supabase/sql";
@@ -0,0 +1 @@
1
+ export { t as addCommand } from "./add-C7lKQNBL.js";
@@ -1,10 +1,10 @@
1
1
  import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
3
3
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CbuPvI2x.js";
4
- import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-BH0goim0.js";
4
+ import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-BVfeG3A5.js";
5
5
  import { t as connect } from "./db-CQCLx7cx.js";
6
- import { n as ident } from "./live-C_xgTOfD.js";
7
- import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-z-jkabmO.js";
6
+ import { n as ident } from "./live-KcdTBUij.js";
7
+ import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-CDmmFmFG.js";
8
8
  //#region src/cli/commands/backfill.ts
9
9
  const DEFAULT_BATCH = 1e3;
10
10
  const ARGS = {
package/dist/cli/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as run } from "./run-He3M-ZRq.js";
2
+ import { i as run } from "./run-BYpZ8FjF.js";
3
3
  import { t as colorEnabled } from "./style-Bm2X5JrN.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { basename } from "node:path";
@@ -1,7 +1,7 @@
1
1
  import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { n as CliError } from "./errors-BTe6A15O.js";
3
3
  import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
4
- import { n as listModules, t as printModule } from "./print-C0OmQyTu.js";
4
+ import { n as listModules, t as printModule } from "./print-Cy_ram9N.js";
5
5
  import { t as decodePresetInput } from "./preset-BwmIfFnh.js";
6
6
  import { BLOCK_CATEGORIES } from "better-supabase/blocks";
7
7
  import { PRESET_CATALOG, PRESET_NAMES, glueCommand } from "better-supabase/preset";
@@ -1 +1 @@
1
- export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-Bs-lA-U_.js";
1
+ export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-2Yw9t-_U.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-BVg2Z6yv.js";
1
+ import { t as VERSION } from "./version-RSpJIWDd.js";
2
2
  import { dirname, resolve } from "node:path";
3
3
  import { createHash } from "node:crypto";
4
4
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
@@ -4,7 +4,7 @@ import { n as CliError } from "./errors-BTe6A15O.js";
4
4
  import { t as migrateCliCall } from "./moved-DVwgE8lV.js";
5
5
  import { t as isRecord$1 } from "./guards-CUlDNYZs.js";
6
6
  import { a as changedFiles, i as changeLines, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
7
- import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-CLJ67h3L.js";
7
+ import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-BoD5ynN9.js";
8
8
  import { a as configObject, c as mask, f as setPathInConfig, g as skipSpace, h as setPresetInJson, i as closingIndex, l as properties, m as setPresetInConfig, o as indentAt, p as setPathInJson, t as addBlocksToConfig, v as codeRanges } from "./config-edit-CrWfk8s3.js";
9
9
  import { i as legacyPrefixNames, n as LEGACY_PREFIXES, t as LEGACY_CLAIMS } from "./legacy-prefix-R7UChFFl.js";
10
10
  import { a as REVIEW_0_15, c as renameSubpaths, r as PLUGIN_IMPORT_RENAMES, s as SUBPATH_RENAMES_0_15, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-BuSaTE_G.js";
@@ -686,6 +686,38 @@ function _isDirectory(path) {
686
686
  }
687
687
  }
688
688
  //#endregion
689
+ //#region src/cli/block-config-schema.ts
690
+ /**
691
+ * `blocks.<name>.values`: table to column to label to an app value, a list of
692
+ * app values, or `null`. The module context checks the names.
693
+ */
694
+ const valueMapsSchema = record(string(), record(string(), record(string(), nullable(union([string(), array(string())])))));
695
+ /**
696
+ * `records.<type>.permissions`: action to a key, or to `{ key, rows, owner }`.
697
+ * The subject registry checks the names.
698
+ */
699
+ const subjectPermissionsSchema = record(string(), union([string(), strictObject({
700
+ key: optional(string()),
701
+ rows: optional(string()),
702
+ owner: optional(string())
703
+ })]));
704
+ /** `records.<type>.search`. The subject registry checks the names. */
705
+ const subjectSearchSchema = strictObject({
706
+ title: optional(string()),
707
+ body: optional(array(string())),
708
+ description: optional(string()),
709
+ exclude: optional(string()),
710
+ from: optional(strictObject({
711
+ view: string(),
712
+ key: string()
713
+ })),
714
+ watch: optional(array(strictObject({
715
+ table: string(),
716
+ key: string(),
717
+ via: optional(string())
718
+ })))
719
+ });
720
+ //#endregion
689
721
  //#region src/cli/config-moved.ts
690
722
  /** Where each top-level key of a 0.14 config moved in 0.15. */
691
723
  const MOVED_KEYS = new Map([...Object.entries(CONFIG_GROUPS).flatMap(([group, keys]) => keys.filter((key) => key !== "tables").map((key) => [key, `${group}.${key}`])), ...RENAMED_CONFIG_KEYS.map(([grouped, flat]) => [flat, grouped])]);
@@ -780,6 +812,7 @@ const blockEntries = {
780
812
  ownership: optional(picklist(["managed", "custom"], (issue) => issue.input === "adopt" ? ADOPT_REMOVED : issue.message)),
781
813
  schema: optional(string()),
782
814
  columns: optional(record(string(), record(string(), nullable(string())))),
815
+ values: optional(valueMapsSchema),
783
816
  idType: optional(string()),
784
817
  owner: optional(picklist([
785
818
  "tenant",
@@ -882,6 +915,8 @@ const authorization = strictObject({
882
915
  holdersOf: optional(string()),
883
916
  actorMayWrite: optional(string()),
884
917
  permitted: optional(string()),
918
+ rowsWith: optional(string()),
919
+ rowsWithFor: optional(string()),
885
920
  portalSubjects: optional(string()),
886
921
  portalParties: optional(string())
887
922
  }),
@@ -1239,14 +1274,11 @@ const FLAT = {
1239
1274
  tenant: optional(union([string(), literal(false)])),
1240
1275
  title: optional(string()),
1241
1276
  url: optional(string()),
1242
- permissions: optional(record(string(), string())),
1277
+ permissions: optional(subjectPermissionsSchema),
1243
1278
  scope: optional(string()),
1244
1279
  cascade: optional(boolean()),
1245
1280
  deletedAt: optional(string()),
1246
- search: optional(strictObject({
1247
- title: optional(string()),
1248
- body: optional(strings)
1249
- })),
1281
+ search: optional(subjectSearchSchema),
1250
1282
  rank: optional(strictObject({
1251
1283
  column: string(),
1252
1284
  group: optional(string())
@@ -1 +1 @@
1
- export { t as applyEnvironment, n as databaseUrl, r as defaultConfig, i as discoverConfig, a as findConfig, o as importExport, s as loadConfig, c as readSupabasePort, l as stdinDatabaseUrl } from "./config-BH0goim0.js";
1
+ export { t as applyEnvironment, n as databaseUrl, r as defaultConfig, i as discoverConfig, a as findConfig, o as importExport, s as loadConfig, c as readSupabasePort, l as stdinDatabaseUrl } from "./config-BVfeG3A5.js";
@@ -1,6 +1,6 @@
1
1
  import { r as readIfExists } from "./io-DH1kcmmP.js";
2
- import { t as CACHE_DIR } from "./cache-DDKao2Va.js";
3
- import { x as installedVersion } from "./snapshot-CZb3uVKE.js";
2
+ import { t as CACHE_DIR } from "./cache-ByhPVMo-.js";
3
+ import { x as installedVersion } from "./snapshot-BITNbA5V.js";
4
4
  import { t as i } from "./jsonc-D5Fu67jw.js";
5
5
  import { resolve } from "node:path";
6
6
  import { createHash } from "node:crypto";
@@ -2,11 +2,11 @@ import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
3
3
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CbuPvI2x.js";
4
4
  import { t as display } from "./io-DH1kcmmP.js";
5
- import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-BH0goim0.js";
5
+ import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-BVfeG3A5.js";
6
6
  import { d as readSupabaseToml, f as schemaPaths, n as declarativeSchemasDir, p as sqlWorkflow } from "./supabase-toml-CncmQbO0.js";
7
7
  import { r as supabaseCli } from "./exec--Q1ZEWUW.js";
8
8
  import { t as connect } from "./db-CQCLx7cx.js";
9
- import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-z-jkabmO.js";
9
+ import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-CDmmFmFG.js";
10
10
  import { a as migrationFiles, i as isShadowFailure, o as migrationVersion, r as inStackDiff, t as MIGRATION_HEADER } from "./in-stack-diff-DQTW53Vf.js";
11
11
  import { dirname, join, resolve } from "node:path";
12
12
  import { mkdir, readFile, writeFile } from "node:fs/promises";
@@ -1,36 +1,36 @@
1
1
  import { a as list, p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
- import { t as VERSION } from "./version-BVg2Z6yv.js";
3
+ import { t as VERSION } from "./version-RSpJIWDd.js";
4
4
  import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
5
5
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CbuPvI2x.js";
6
6
  import { a as sameText, t as display } from "./io-DH1kcmmP.js";
7
- import { t as CACHE_DIR } from "./cache-DDKao2Va.js";
7
+ import { t as CACHE_DIR } from "./cache-ByhPVMo-.js";
8
8
  import { t as byCodePoint } from "./compare-BmIWVEui.js";
9
- import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError } from "./snapshot-CZb3uVKE.js";
10
- import { d as configFor, r as renderFiles, u as notNullTag } from "./render-9m70qveo.js";
9
+ import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError } from "./snapshot-BITNbA5V.js";
10
+ import { d as configFor, r as renderFiles, u as notNullTag } from "./render-CF09FCra.js";
11
11
  import { t as isRecord } from "./guards-CUlDNYZs.js";
12
- import { i as request } from "./source-CrYSCdPZ.js";
13
- import { g as providerLabel, u as compiledReadSets } from "./migrations-CHenMvl_.js";
14
- import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-BH0goim0.js";
12
+ import { i as request } from "./source-GGJHuzpH.js";
13
+ import { g as providerLabel, u as compiledReadSets } from "./migrations-CUjNXokR.js";
14
+ import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-BVfeG3A5.js";
15
15
  import { a as findRepoRoot, c as httpHooks, d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, n as declarativeSchemasDir, p as sqlWorkflow, u as pgFunctionHooks } from "./supabase-toml-CncmQbO0.js";
16
16
  import { t as PROCESS_ENV } from "./env-DMgjB_4y.js";
17
17
  import { n as readStackStatus } from "./stack-status-B_Ipd_-z.js";
18
18
  import { t as connect } from "./db-CQCLx7cx.js";
19
- import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-DgSTl-DL.js";
19
+ import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-qH-_YQ8H.js";
20
20
  import { c as insideRoot, i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
21
- import { C as splinterTables, S as advisorRule, _ as withoutStrings, a as METADATA_GAPS_TEXT, b as appTablesOf, c as accessModule, d as RLS_RULES, f as appliesTo, g as policyHelpers, h as functionObject, l as entitlementsModule, m as functionBody, p as escape$2, s as AUTHORIZATION_RULES, u as COMMANDS$2, v as BLOCK_PREFIX, x as appViewsOf, y as blockTargets } from "./run-gE4eAazR.js";
22
- import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-CLJ67h3L.js";
23
- import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-Cx2WFVWq.js";
24
- import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-6V7vXWUK.js";
25
- import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-OUK-Afbb.js";
21
+ import { C as splinterTables, S as advisorRule, _ as withoutStrings, a as METADATA_GAPS_TEXT, b as appTablesOf, c as accessModule, d as RLS_RULES, f as appliesTo, g as policyHelpers, h as functionObject, l as entitlementsModule, m as functionBody, p as escape$2, s as AUTHORIZATION_RULES, u as COMMANDS$2, v as BLOCK_PREFIX, x as appViewsOf, y as blockTargets } from "./run-lh-chAJW.js";
22
+ import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-BoD5ynN9.js";
23
+ import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-D05A6t1e.js";
24
+ import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-C6NLY9iZ.js";
25
+ import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-Cy7xlU4G.js";
26
26
  import { t as orphanedBlockFiles } from "./orphans-BAboqyVM.js";
27
- import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-C_xgTOfD.js";
28
- import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-z-jkabmO.js";
27
+ import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-KcdTBUij.js";
28
+ import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-CDmmFmFG.js";
29
29
  import { i as PLUGIN_SUBPATH_RENAMES, n as BLOCK_SUBPATH_RENAMES, o as SPEC_SUBPATH_RENAMES, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-BuSaTE_G.js";
30
30
  import { n as PLATFORM_SCHEMAS } from "./in-stack-diff-DQTW53Vf.js";
31
31
  import { i as staleVariables, r as stackEnvValues, t as PREFIX_NAMES } from "./stack-env-6hS-WEmh.js";
32
32
  import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-BYlQ96WS.js";
33
- import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-cLXra-XB.js";
33
+ import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-DWQSIZ59.js";
34
34
  import { existsSync } from "node:fs";
35
35
  import { dirname, resolve } from "node:path";
36
36
  import { createHash } from "node:crypto";
@@ -1409,8 +1409,9 @@ function attachmentSubjects(context) {
1409
1409
  * Whether `expression` only checks that the caller is a member of the row's
1410
1410
  * tenant: `current_tenant_id()`, a `*_ids_with` or `*member_*ids` function in
1411
1411
  * any schema (the provider's own helpers included), `can('tenant', ...)` or
1412
- * `member_can`, joined by `and`, with a soft-delete `is null` allowed. A
1413
- * permission call passes only with one of `keys`.
1412
+ * `member_can`, joined by `and`, with a soft-delete `is null` and the
1413
+ * support-session `actor_may_write()` guard allowed. A permission call passes
1414
+ * only with one of `keys`.
1414
1415
  */
1415
1416
  function tenantOnly(expression, column, keys) {
1416
1417
  const col = `(?:"?\\w+"?\\.)?"?${escape$2(column)}"?(?:::\\w+)?`;
@@ -1421,7 +1422,8 @@ function tenantOnly(expression, column, keys) {
1421
1422
  `${col}\\s+in\\s+\\(\\s*select\\s+(?:\\w+\\.)?\\w*member_\\w*ids\\(\\s*\\)(?:\\s+as\\s+\\w+)?\\s*\\)`,
1422
1423
  `better_supabase\\.can\\(\\s*'tenant'(?:::text)?\\s*,\\s*${col}\\s*,\\s*${key}\\s*\\)`,
1423
1424
  `better_supabase\\.member_can\\(\\s*${col}\\s*,\\s*${key}\\s*\\)`,
1424
- `(?:"?\\w+"?\\.)?"?\\w+"?\\s+is\\s+null`
1425
+ `(?:"?\\w+"?\\.)?"?\\w+"?\\s+is\\s+null`,
1426
+ `\\(?\\s*(?:select\\s+)?better_supabase\\.actor_may_write\\(\\)(?:\\s+as\\s+\\w+)?\\s*\\)?`
1425
1427
  ];
1426
1428
  const used = [];
1427
1429
  let rest = expression;
@@ -1,22 +1,22 @@
1
1
  import { a as list, p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
3
  import { a as parseNames, i as failedResult, n as CliError } from "./errors-BTe6A15O.js";
4
- import { u as catalogFingerprint } from "./cache-DDKao2Va.js";
5
- import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-CZb3uVKE.js";
6
- import { n as dataMigration } from "./migrations-CHenMvl_.js";
7
- import { d as GEN_TASKS, p as isGenTask } from "./config-BH0goim0.js";
4
+ import { u as catalogFingerprint } from "./cache-ByhPVMo-.js";
5
+ import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-BITNbA5V.js";
6
+ import { n as dataMigration } from "./migrations-CUjNXokR.js";
7
+ import { d as GEN_TASKS, p as isGenTask } from "./config-BVfeG3A5.js";
8
8
  import { c as insideRoot, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
9
- import { n as runGen } from "./run-gE4eAazR.js";
10
- import { t as syncModules } from "./sync-B8VGiaHk.js";
11
- import { t as addModules } from "./add-C0w-mVTQ.js";
12
- import { n as listModules, t as printModule } from "./print-C0OmQyTu.js";
13
- import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-z-jkabmO.js";
14
- import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-cLXra-XB.js";
9
+ import { n as runGen } from "./run-lh-chAJW.js";
10
+ import { t as syncModules } from "./sync-_QlsTmqu.js";
11
+ import { t as addModules } from "./add-DVHniZOO.js";
12
+ import { n as listModules, t as printModule } from "./print-Cy_ram9N.js";
13
+ import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-CDmmFmFG.js";
14
+ import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-DWQSIZ59.js";
15
15
  import { a as runEnv } from "./env-BCgVZkcb.js";
16
- import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-Cn5RhuQc.js";
17
- import { n as runPowerSync } from "./powersync-D83yAFbl.js";
18
- import { t as runSeed } from "./seed-CdSxunFT.js";
19
- import { t as upgrade } from "./upgrade-BvBWK3Fo.js";
16
+ import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-BGcRdlhN.js";
17
+ import { n as runPowerSync } from "./powersync-CE_hQdgc.js";
18
+ import { t as runSeed } from "./seed-BMynpMPy.js";
19
+ import { t as upgrade } from "./upgrade-Cwhb1M7O.js";
20
20
  import { existsSync } from "node:fs";
21
21
  import { resolve } from "node:path";
22
22
  //#region src/cli/commands/sql.ts
@@ -798,6 +798,6 @@ export declare function emitModule(model: Model, options: EmitOptions): string;
798
798
  export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined): Promise<ResolvedConfig>;
799
799
  //#endregion
800
800
  //#region src/cli/version.d.ts
801
- export declare const VERSION = "0.21.0";
801
+ export declare const VERSION = "0.23.0";
802
802
  //#endregion
803
803
  export type { Catalog, CatalogCheck, CatalogColumn, CatalogColumnGrant, CatalogEnum, CatalogForeignKey, CatalogFunction, CatalogFunctionArg, CatalogGrant, CatalogIndex, CatalogPolicy, CatalogTable, CatalogTrigger, CatalogUnique, Choice, Cli, CliArgs, CliCommand, CliCommandDef, CliContext, CliEnv, CliErrorCode, CliErrorOptions, CliIo, CliLog, CliProblem, CliProblemExtensions, CommandResult, CreateCliOptions, ExitCode, ExtrasFunction, ExtrasHook, ExtrasHookFunction, ExtrasTable, ForeignKeyAction, Format, GeneratorMetadata, IntrospectionSource, ManagementSourceOptions, NextStep, Paint, Prompter, Queryable, RunOptions, RunResult, Snapshot, SnapshotBucket, SnapshotExtras };