better-supabase 0.23.0 → 0.25.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 (321) hide show
  1. package/dist/{ai-schedules-7uQNMXve.d.ts → ai-schedules-yGZH-vQb.d.ts} +1 -1
  2. package/dist/ai-sdk/agents/index.d.ts +2 -2
  3. package/dist/ai-sdk/batches/index.d.ts +1 -1
  4. package/dist/ai-sdk/index.d.ts +1 -1
  5. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  6. package/dist/{api-CHObZL7m.d.ts → api-B1OkIWdx.d.ts} +3 -3
  7. package/dist/{api-keys-D5k63K6y.d.ts → api-keys-ClhKBDcc.d.ts} +1 -1
  8. package/dist/{app-tables-CJO6pWwy.d.ts → app-tables-xij_MI5H.d.ts} +1 -1
  9. package/dist/{approvals-Dh9dUXrN.d.ts → approvals-C5fmPLsH.d.ts} +1 -1
  10. package/dist/astro/index.d.ts +5 -5
  11. package/dist/{authorization-Dtwpjeuz.d.ts → authorization-BJV2i8xB.d.ts} +49 -12
  12. package/dist/{authorization-hooks-D_pwXlBs.d.ts → authorization-hooks-DtzreCAq.d.ts} +1 -1
  13. package/dist/{automations-FCnWy387.js → automations-8L3NEuoq.js} +4 -1
  14. package/dist/{availability-vguUvEK2.d.ts → availability-BdeKCHpl.d.ts} +10 -0
  15. package/dist/better-result/index.d.ts +2 -2
  16. package/dist/{bind-DaoTunvE.d.ts → bind-vKDmdu_4.d.ts} +4 -4
  17. package/dist/{block-env-DUyo2I5O.d.ts → block-env-wVLz0KMV.d.ts} +4 -4
  18. package/dist/blocks/access-requests/index.d.ts +2 -2
  19. package/dist/blocks/activities/index.d.ts +3 -3
  20. package/dist/blocks/agents/index.d.ts +2 -2
  21. package/dist/blocks/ai-cache/index.d.ts +1 -1
  22. package/dist/blocks/ai-chat/index.d.ts +5 -5
  23. package/dist/blocks/ai-files/index.d.ts +1 -1
  24. package/dist/blocks/ai-keys/index.d.ts +3 -3
  25. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  26. package/dist/blocks/announcements/index.d.ts +5 -5
  27. package/dist/blocks/api-keys/index.d.ts +5 -5
  28. package/dist/blocks/approvals/index.d.ts +3 -3
  29. package/dist/blocks/assets/index.d.ts +2 -2
  30. package/dist/blocks/assignment/index.d.ts +3 -3
  31. package/dist/blocks/attachments/index.d.ts +3 -3
  32. package/dist/blocks/audit/index.d.ts +7 -7
  33. package/dist/blocks/automations/index.d.ts +5 -5
  34. package/dist/blocks/billable-time/index.d.ts +2 -2
  35. package/dist/blocks/billing/index.d.ts +5 -5
  36. package/dist/blocks/bookings/index.d.ts +6 -6
  37. package/dist/blocks/bulk/index.d.ts +2 -2
  38. package/dist/blocks/calendar/index.d.ts +46 -13
  39. package/dist/blocks/calendar/index.js +130 -30
  40. package/dist/blocks/catalog/index.d.ts +2 -2
  41. package/dist/blocks/channels/index.d.ts +3 -3
  42. package/dist/blocks/collections/index.d.ts +3 -3
  43. package/dist/blocks/comments/index.d.ts +5 -5
  44. package/dist/blocks/compliance/index.d.ts +2 -2
  45. package/dist/blocks/connectors/index.d.ts +3 -3
  46. package/dist/blocks/contacts/index.d.ts +3 -3
  47. package/dist/blocks/content/index.d.ts +2 -2
  48. package/dist/blocks/contracts/index.d.ts +2 -2
  49. package/dist/blocks/courses/index.d.ts +2 -2
  50. package/dist/blocks/created-by/index.d.ts +1 -1
  51. package/dist/blocks/custom-fields/index.d.ts +2 -2
  52. package/dist/blocks/data-lifecycle/index.d.ts +4 -4
  53. package/dist/blocks/deals/index.d.ts +3 -3
  54. package/dist/blocks/dispatch/index.d.ts +2 -2
  55. package/dist/blocks/documents/index.d.ts +2 -2
  56. package/dist/blocks/domains/index.d.ts +2 -2
  57. package/dist/blocks/donations/index.d.ts +2 -2
  58. package/dist/blocks/drive/index.d.ts +3 -3
  59. package/dist/blocks/employees/index.d.ts +21 -6
  60. package/dist/blocks/employees/index.js +37 -2
  61. package/dist/blocks/enrichment/index.d.ts +3 -3
  62. package/dist/blocks/enrollments/index.d.ts +2 -2
  63. package/dist/blocks/entitlements/index.d.ts +3 -3
  64. package/dist/blocks/expenses/index.d.ts +2 -2
  65. package/dist/blocks/field-history/index.d.ts +1 -1
  66. package/dist/blocks/flags/index.d.ts +2 -2
  67. package/dist/blocks/forecasts/index.d.ts +3 -3
  68. package/dist/blocks/forms/index.d.ts +3 -3
  69. package/dist/blocks/goals/index.d.ts +1 -1
  70. package/dist/blocks/guests/index.d.ts +2 -2
  71. package/dist/blocks/hiring/index.d.ts +13 -6
  72. package/dist/blocks/hiring/index.js +15 -4
  73. package/dist/blocks/identities/index.d.ts +2 -2
  74. package/dist/blocks/imports/index.d.ts +2 -2
  75. package/dist/blocks/inbox/index.d.ts +6 -6
  76. package/dist/blocks/incidents/index.d.ts +2 -2
  77. package/dist/blocks/index.d.ts +4 -4
  78. package/dist/blocks/inventory/index.d.ts +2 -2
  79. package/dist/blocks/invoices/index.d.ts +3 -3
  80. package/dist/blocks/knowledge/index.d.ts +1 -1
  81. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  82. package/dist/blocks/leases/index.d.ts +2 -2
  83. package/dist/blocks/leave/index.d.ts +2 -2
  84. package/dist/blocks/ledger/index.d.ts +2 -2
  85. package/dist/blocks/mail-sync/index.d.ts +3 -3
  86. package/dist/blocks/memberships/index.d.ts +1 -1
  87. package/dist/blocks/memory/index.d.ts +1 -1
  88. package/dist/blocks/messaging/index.d.ts +7 -7
  89. package/dist/blocks/metrics/index.d.ts +2 -2
  90. package/dist/blocks/mfa/index.d.ts +2 -2
  91. package/dist/blocks/moderation/index.d.ts +2 -2
  92. package/dist/blocks/notifications/index.d.ts +7 -7
  93. package/dist/blocks/numbering/index.d.ts +2 -2
  94. package/dist/blocks/oauth-server/index.d.ts +2 -2
  95. package/dist/blocks/onboarding/index.d.ts +2 -2
  96. package/dist/blocks/orders/index.d.ts +3 -3
  97. package/dist/blocks/organizations/index.d.ts +4 -4
  98. package/dist/blocks/outbox/index.d.ts +2 -2
  99. package/dist/blocks/passes/index.d.ts +3 -3
  100. package/dist/blocks/permissions/index.d.ts +3 -3
  101. package/dist/blocks/pipelines/index.d.ts +3 -3
  102. package/dist/blocks/posts/index.d.ts +2 -2
  103. package/dist/blocks/profiles/index.d.ts +1 -1
  104. package/dist/blocks/promotions/index.d.ts +2 -2
  105. package/dist/blocks/push/index.d.ts +3 -3
  106. package/dist/blocks/queue/index.d.ts +1 -1
  107. package/dist/blocks/quotes/index.d.ts +3 -3
  108. package/dist/blocks/rank/index.d.ts +1 -1
  109. package/dist/blocks/reactions/index.d.ts +5 -5
  110. package/dist/blocks/relations/index.d.ts +2 -2
  111. package/dist/blocks/reminders/index.d.ts +3 -3
  112. package/dist/blocks/reviews/index.d.ts +2 -2
  113. package/dist/blocks/saved-views/index.d.ts +4 -4
  114. package/dist/blocks/scores/index.d.ts +2 -2
  115. package/dist/blocks/search/index.d.ts +4 -4
  116. package/dist/blocks/security-events/index.d.ts +3 -3
  117. package/dist/blocks/segments/index.d.ts +3 -3
  118. package/dist/blocks/sequences/index.d.ts +2 -2
  119. package/dist/blocks/service-accounts/index.d.ts +2 -2
  120. package/dist/blocks/sessions/index.d.ts +2 -2
  121. package/dist/blocks/settings/index.d.ts +3 -3
  122. package/dist/blocks/share-links/index.d.ts +2 -2
  123. package/dist/blocks/shipments/index.d.ts +2 -2
  124. package/dist/blocks/signatures/index.d.ts +2 -2
  125. package/dist/blocks/signing-keys/index.d.ts +2 -2
  126. package/dist/blocks/sla/index.d.ts +3 -3
  127. package/dist/blocks/sso/index.d.ts +3 -3
  128. package/dist/blocks/state-machine/index.d.ts +2 -2
  129. package/dist/blocks/subjects/index.d.ts +2 -2
  130. package/dist/blocks/tags/index.d.ts +3 -3
  131. package/dist/blocks/tasks/index.d.ts +5 -5
  132. package/dist/blocks/teams/index.d.ts +2 -2
  133. package/dist/blocks/templates/index.d.ts +4 -4
  134. package/dist/blocks/time-tracking/index.d.ts +10 -5
  135. package/dist/blocks/time-tracking/index.js +16 -9
  136. package/dist/blocks/timeline/index.d.ts +4 -4
  137. package/dist/blocks/trash/index.d.ts +2 -2
  138. package/dist/blocks/undo/index.d.ts +2 -2
  139. package/dist/blocks/updated-at/index.d.ts +1 -1
  140. package/dist/blocks/usage/index.d.ts +2 -2
  141. package/dist/blocks/vercel-marketplace/index.d.ts +2 -2
  142. package/dist/blocks/versions/index.d.ts +2 -2
  143. package/dist/blocks/waitlist/index.d.ts +2 -2
  144. package/dist/blocks/webhooks/index.d.ts +6 -6
  145. package/dist/blocks/workflow-editor/index.d.ts +7 -7
  146. package/dist/blocks/workflows/index.d.ts +5 -5
  147. package/dist/{bookings-BpCNphYp.d.ts → bookings-CVw5-Q0Z.d.ts} +1 -1
  148. package/dist/chat-sdk/index.d.ts +2 -2
  149. package/dist/cli/{add-C7lKQNBL.js → add-BTVrOGJF.js} +9 -9
  150. package/dist/cli/add-Bf1fyCWm.js +1 -0
  151. package/dist/cli/{add-DVHniZOO.js → add-C2pNvVpu.js} +2 -2
  152. package/dist/cli/{backfill-Lrn-Qp5X.js → backfill-BicVPugb.js} +1 -1
  153. package/dist/cli/bin.js +1 -1
  154. package/dist/cli/{blocks-2Yw9t-_U.js → blocks-BmYOH4T-.js} +1 -1
  155. package/dist/cli/{blocks-BKNd886C.js → blocks-sScN-ik-.js} +1 -1
  156. package/dist/cli/{cache-ByhPVMo-.js → cache-1TfBy2K4.js} +1 -1
  157. package/dist/cli/{codemod-C0eXpzFu.js → codemod-ylE6wGLo.js} +1 -1
  158. package/dist/cli/{content-mapper-qH-_YQ8H.js → content-mapper-hUW2nb92.js} +2 -2
  159. package/dist/cli/{doctor-BnxkqXGA.js → doctor-D3WKFBSv.js} +14 -14
  160. package/dist/cli/{gen-aERmP3Sw.js → gen-CqsUdsB2.js} +11 -11
  161. package/dist/cli/index.d.ts +1 -1
  162. package/dist/cli/index.js +6 -6
  163. package/dist/cli/{init-DWUqVSVW.js → init-DryZ5Mp1.js} +5 -5
  164. package/dist/cli/{live-KcdTBUij.js → live-Di45imoV.js} +2 -2
  165. package/dist/cli/{mcp-Dsjjo-LT.js → mcp-BklC-3eK.js} +2 -2
  166. package/dist/cli/{metadata-DWQSIZ59.js → metadata-7PsBF5Xw.js} +3 -3
  167. package/dist/cli/{migration-safety-Cy7xlU4G.js → migration-safety-Doy9qYO8.js} +1 -1
  168. package/dist/cli/{migrations-CUjNXokR.js → migrations-JtsPYv8g.js} +1 -1
  169. package/dist/cli/{module-migration-C6NLY9iZ.js → module-migration-ZIn1NCMi.js} +2 -2
  170. package/dist/cli/{powersync-CE_hQdgc.js → powersync-BRGXOCJ0.js} +2 -2
  171. package/dist/cli/powersync-Dq-txa0_.js +1 -0
  172. package/dist/cli/{print-Cy_ram9N.js → print-Dfqd4DB-.js} +2 -2
  173. package/dist/cli/{remove-DmwjzqaW.js → remove-CQzSCYTu.js} +5 -5
  174. package/dist/cli/{render-CF09FCra.js → render-DWRz-uPQ.js} +3 -3
  175. package/dist/cli/{run-BYpZ8FjF.js → run-DPLedqTF.js} +21 -21
  176. package/dist/cli/{run-lh-chAJW.js → run-j54rk2w-.js} +8 -8
  177. package/dist/cli/{shared-D05A6t1e.js → shared-CslNcs-R.js} +1 -1
  178. package/dist/cli/{snapshot-BITNbA5V.js → snapshot-DdN5GlhH.js} +2 -2
  179. package/dist/cli/{source-GGJHuzpH.js → source-COARbqch.js} +1 -1
  180. package/dist/cli/{spec-BGcRdlhN.js → spec-CgLNZc_C.js} +2 -2
  181. package/dist/cli/{spec-BjxXWaNQ.js → spec-DIhBQlBF.js} +1 -1
  182. package/dist/cli/{sql-layout-BoD5ynN9.js → sql-layout-8jrP5gIa.js} +2 -2
  183. package/dist/cli/{sync-_QlsTmqu.js → sync-SqyVHRSJ.js} +3 -3
  184. package/dist/cli/{upgrade-Cwhb1M7O.js → upgrade-CY-vj_qh.js} +4 -4
  185. package/dist/cli/{upgrade-n9ar1kc4.js → upgrade-D0aLhluU.js} +2 -2
  186. package/dist/cli/{version-RSpJIWDd.js → version-Bhca9D6q.js} +1 -1
  187. package/dist/client/index.d.ts +5 -5
  188. package/dist/client/native/index.d.ts +4 -4
  189. package/dist/{cloud-event-CzZTJkXv.d.ts → cloud-event-DcJwder2.d.ts} +1 -1
  190. package/dist/{composite-ChzHhSB0.d.ts → composite-CWJvZgni.d.ts} +6 -6
  191. package/dist/config/index.d.ts +2 -2
  192. package/dist/config/index.js +4 -4
  193. package/dist/{config-vHLJ8SKf.js → config-C19McoGo.js} +4 -3
  194. package/dist/{config-RwpFcPq8.js → config-CP-WaboC.js} +6 -5
  195. package/dist/{connectors-Fud4amxp.d.ts → connectors-CHGiffYH.d.ts} +1 -1
  196. package/dist/{context-CMf4OKpN.d.ts → context-BJoHD20l.d.ts} +4 -2
  197. package/dist/{controller-BGto_kYM.d.ts → controller-CwGXms17.d.ts} +1 -1
  198. package/dist/{conversion-DBgMck5U.d.ts → conversion-DlfStnln.d.ts} +1 -1
  199. package/dist/create/index.d.ts +3 -3
  200. package/dist/create/index.js +3 -3
  201. package/dist/create/lite/index.d.ts +3 -3
  202. package/dist/create/lite/index.js +2 -2
  203. package/dist/credentials/index.d.ts +3 -3
  204. package/dist/{define-Lf6rI2QN.d.ts → define-BLP6XtoL.d.ts} +1 -1
  205. package/dist/{define-block-DCAiOrNX.d.ts → define-block-DibVN37N.d.ts} +4 -4
  206. package/dist/edge/index.d.ts +8 -8
  207. package/dist/elysia/index.d.ts +1 -1
  208. package/dist/{ended-gUsMZVNg.d.ts → ended-B8RyuUXF.d.ts} +1 -1
  209. package/dist/{entitlements-CIhVQ-0u.d.ts → entitlements-CsZcfllV.d.ts} +2 -2
  210. package/dist/eve/index.d.ts +2 -2
  211. package/dist/{event-calendar-DCufbihU.d.ts → event-calendar-DVLs2wUO.d.ts} +1 -1
  212. package/dist/events/index.d.ts +3 -3
  213. package/dist/{events-vcqenSYU.d.ts → events-Cc9DDQWH.d.ts} +2 -0
  214. package/dist/{executor-DNK401lZ.d.ts → executor-C-Ox9eKq.d.ts} +1 -1
  215. package/dist/{executor-aFV7nEBs.d.ts → executor-DNPm13a9.d.ts} +2 -2
  216. package/dist/expo/index.d.ts +3 -3
  217. package/dist/{field-errors-BDhPaO0a.d.ts → field-errors-6BVg31Yp.d.ts} +7 -7
  218. package/dist/{framework-DKA3fTHl.d.ts → framework-GlxXiotm.d.ts} +6 -6
  219. package/dist/h3/index.d.ts +1 -1
  220. package/dist/h3/v1/index.d.ts +1 -1
  221. package/dist/hono/index.d.ts +8 -8
  222. package/dist/{index-ClvuSZEz.d.ts → index-BfYDY6eh.d.ts} +3 -3
  223. package/dist/{index-4MStWaeF.d.ts → index-C0QuN9_P.d.ts} +3 -3
  224. package/dist/{index-CG9rA8H8.d.ts → index-C_qlBJ3k.d.ts} +2 -2
  225. package/dist/{index-CFWlHuVY.d.ts → index-Cagz4Z2k.d.ts} +1 -1
  226. package/dist/{index--OhYKouV.d.ts → index-CbUCGMqj.d.ts} +3 -3
  227. package/dist/{index-ujNqgZ6B.d.ts → index-D01wHGSN.d.ts} +11 -11
  228. package/dist/{index-iRkFvJ7J.d.ts → index-D1ckLbUM.d.ts} +1 -1
  229. package/dist/{index-lV43eM34.d.ts → index-DOHx3JuB.d.ts} +4 -4
  230. package/dist/index.d.ts +2 -2
  231. package/dist/{instances-BPJSESPx.js → instances-qz2MCMyK.js} +84 -5
  232. package/dist/{kit-CVgQCIBO.d.ts → kit-Dxx3MT8m.d.ts} +3 -3
  233. package/dist/list/index.d.ts +1 -1
  234. package/dist/{list-query-XYfUZb0j.d.ts → list-query-XHoYDlRN.d.ts} +1 -1
  235. package/dist/mapper/bin.js +5 -5
  236. package/dist/mcp/index.d.ts +5 -5
  237. package/dist/mcp/sdk/index.d.ts +5 -5
  238. package/dist/nestjs/index.d.ts +2 -2
  239. package/dist/next/client/index.d.ts +1 -1
  240. package/dist/next/index.d.ts +21 -21
  241. package/dist/node/index.d.ts +2 -2
  242. package/dist/{operations-qSBBV5vl.d.ts → operations-CPhOcuzl.d.ts} +1 -1
  243. package/dist/{options-D4ADKTKo.js → options-BOGo1qCA.js} +4 -1
  244. package/dist/options-C4LuqmdG.js +15 -0
  245. package/dist/{options-BPp2zzsz.js → options-eTepQ1rZ.js} +2 -1
  246. package/dist/orpc/index.d.ts +7 -7
  247. package/dist/otel/index.d.ts +1 -1
  248. package/dist/otel/index.js +4 -4
  249. package/dist/{outbox-HxjZTfF6.d.ts → outbox-DxZgoKwp.d.ts} +2 -2
  250. package/dist/{pool-CrtT4dg-.d.ts → pool-wjbAMqc1.d.ts} +1 -1
  251. package/dist/{ports-DbHiNSAa.d.ts → ports-Bw7uxPd_.d.ts} +1 -1
  252. package/dist/postgres/index.d.ts +1 -1
  253. package/dist/powersync/index.d.ts +3 -3
  254. package/dist/preset/index.d.ts +3 -3
  255. package/dist/preset/index.js +3 -3
  256. package/dist/{preset-B1xXOJ0T.js → preset-BbSWLoXM.js} +2 -2
  257. package/dist/{project-BM6QMtzV.js → project-TN03XDsA.js} +5 -5
  258. package/dist/{provider-CqwEOLCA.d.ts → provider-ClrIplXa.d.ts} +1 -1
  259. package/dist/{push-token-BwF1fyjA.d.ts → push-token-vykw2JXT.d.ts} +1 -1
  260. package/dist/query/index.d.ts +1 -1
  261. package/dist/react/index.d.ts +7 -7
  262. package/dist/react/native/index.d.ts +1 -1
  263. package/dist/react/server.d.ts +8 -8
  264. package/dist/react/session.d.ts +2 -2
  265. package/dist/react-router/index.d.ts +5 -5
  266. package/dist/realtime/index.d.ts +4 -4
  267. package/dist/{record-form-BbZpwsEi.d.ts → record-form-D2-F4IwS.d.ts} +1 -1
  268. package/dist/records/index.d.ts +7 -7
  269. package/dist/{refresh-DT_ICaK-.d.ts → refresh-CCKB1Wa6.d.ts} +1 -1
  270. package/dist/{refusal-OrlI3g4H.d.ts → refusal-D_tklIEb.d.ts} +2 -2
  271. package/dist/{resolve-CXX6DHv3.d.ts → resolve-Bj1qD7Dy.d.ts} +1 -1
  272. package/dist/{resolved-names-WzRYhUez.js → resolved-names-Dsf28_Dr.js} +1 -1
  273. package/dist/{resource-execute-CUG6xUuh.d.ts → resource-execute-BSTIfp1D.d.ts} +1 -1
  274. package/dist/{resource-types-DjZ91WKA.d.ts → resource-types-D5WEvYtV.d.ts} +2 -2
  275. package/dist/{resources-6Ncdt9XT.d.ts → resources-CsZ7RhZC.d.ts} +1 -1
  276. package/dist/{respond-oZeJ342J.d.ts → respond-BzRG-0qc.d.ts} +1 -1
  277. package/dist/server/index.d.ts +20 -20
  278. package/dist/{server-types-BH6AjDBN.d.ts → server-types-BlDiY-ya.d.ts} +8 -8
  279. package/dist/{session-Y5SSYO2C.d.ts → session-BGP98Rgj.d.ts} +5 -5
  280. package/dist/{session-status-qQLm7jzh.d.ts → session-status-C4t7kbSn.d.ts} +2 -2
  281. package/dist/{sign-in-BAjR49fq.d.ts → sign-in-CAadgm33.d.ts} +2 -2
  282. package/dist/solid/index.d.ts +9 -9
  283. package/dist/solid-start/index.d.ts +5 -5
  284. package/dist/spec/index.d.ts +1 -1
  285. package/dist/sql/index.d.ts +4 -4
  286. package/dist/sql/index.js +2 -2
  287. package/dist/{sql-CNH8kjLS.js → sql-Dg3W1ENk.js} +2889 -1064
  288. package/dist/sqlite/index.d.ts +1 -1
  289. package/dist/ssr/index.d.ts +5 -5
  290. package/dist/{subject-readers-8GySC9Z8.d.ts → subject-readers-DJbzlm8a.d.ts} +1 -1
  291. package/dist/{support-B4ZBVxt3.d.ts → support-D7CMbhRT.d.ts} +4 -4
  292. package/dist/{support-view-BYOgwXsJ.d.ts → support-view-CIDXF3_H.d.ts} +1 -1
  293. package/dist/svelte/index.d.ts +8 -8
  294. package/dist/sveltekit/index.d.ts +6 -6
  295. package/dist/{tags-Cjtcp5cN.d.ts → tags-Dg4Ywmqp.d.ts} +1 -1
  296. package/dist/tanstack-db/index.d.ts +1 -1
  297. package/dist/tanstack-start/index.d.ts +5 -5
  298. package/dist/{tenant-D4BA7XQ-.d.ts → tenant-BRmKZ7aq.d.ts} +2 -2
  299. package/dist/testing/index.d.ts +16 -16
  300. package/dist/testing/index.js +1 -1
  301. package/dist/{timeline-CEzj9v1z.d.ts → timeline-Cjl-1hiA.d.ts} +3 -3
  302. package/dist/{topic-utZqhw96.d.ts → topic-CpsKVBot.d.ts} +3 -3
  303. package/dist/{types-yj8VF4oY.d.ts → types-BdaBfYIw.d.ts} +2 -2
  304. package/dist/{types-DLnBJ3ST.d.ts → types-CjRwmCRP.d.ts} +2 -2
  305. package/dist/{types-EO2crSX_.d.ts → types-DR1MHh7N.d.ts} +1 -1
  306. package/dist/{vault-O-YlAyHb.d.ts → vault-BghaujrZ.d.ts} +1 -1
  307. package/dist/vercel-connect/index.d.ts +1 -1
  308. package/dist/{verify-B0KLBb3j.d.ts → verify-CI8LgSpv.d.ts} +1 -1
  309. package/dist/{view-DyFdMCqg.d.ts → view-BvNA7EOC.d.ts} +1 -1
  310. package/dist/vue/index.d.ts +9 -9
  311. package/dist/{watch-topic-B1UCoQfz.d.ts → watch-topic-BaMZX139.d.ts} +1 -1
  312. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  313. package/dist/workflow-sdk/index.d.ts +1 -1
  314. package/dist/workflow-sdk/world/index.d.ts +1 -1
  315. package/dist/{workflow-sdk-B3Ss55Fy.d.ts → workflow-sdk-BNsZrcVg.d.ts} +1 -1
  316. package/dist/yjs/index.d.ts +1 -1
  317. package/package.json +1 -1
  318. package/schemas/config-v1.json +53 -1
  319. package/dist/cli/add-vZRn-uH0.js +0 -1
  320. package/dist/cli/powersync-BOhjVQCb.js +0 -1
  321. package/dist/options-DztCKw_f.js +0 -8
@@ -3,14 +3,14 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
5
  import { $ as RecordRef } from "../../types-DFdg_4yN.js";
6
- import { Ct as Events, ft as TimeEntryEventData, pt as TimesheetEventData } from "../../events-vcqenSYU.js";
6
+ import { Ct as Events, ft as TimeEntryEventData, pt as TimesheetEventData } from "../../events-Cc9DDQWH.js";
7
7
  import { n as Logger } from "../../logger-DWVYUmwi.js";
8
8
  import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
9
9
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
10
10
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
11
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
11
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
12
12
  import { n as Money } from "../../money-BNRdJQzA.js";
13
- import { t as CloudEvent } from "../../cloud-event-CzZTJkXv.js";
13
+ import { t as CloudEvent } from "../../cloud-event-DcJwder2.js";
14
14
  import { n as MetricDefinition } from "../../metric-definition-EAYI1r2n.js";
15
15
  //#region src/blocks/time-tracking/time-tracking.d.ts
16
16
  interface TimeTrackingOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions, BlockTenantOptions {
@@ -38,6 +38,7 @@ interface TimeEntry<F extends object = Record<never, never>> {
38
38
  readonly id: string;
39
39
  readonly organizationId: string;
40
40
  readonly userId: string;
41
+ readonly employeeId?: string;
41
42
  /** The record the time is tracked on; `undefined` for an unattached entry. */
42
43
  readonly subject: RecordRef | undefined;
43
44
  readonly startedAt: Temporal.Instant;
@@ -70,6 +71,7 @@ interface LogTimeInput<F extends object = Record<never, never>> extends TimeEntr
70
71
  readonly endedAt: Temporal.Instant;
71
72
  /** Another member; needs `time_tracking.manage`. Default: the caller. */
72
73
  readonly userId?: string;
74
+ readonly employeeId?: string;
73
75
  }
74
76
  /** The fields to change. `null` clears the subject, rate or note. */
75
77
  interface TimeEntryPatch<F extends object = Record<never, never>> {
@@ -85,6 +87,7 @@ interface TimeEntryPatch<F extends object = Record<never, never>> {
85
87
  interface TimeEntryListOptions {
86
88
  /** Another member's entries; needs `time_tracking.read`. Default: the caller. */
87
89
  readonly userId?: string;
90
+ readonly employeeId?: string;
88
91
  /** Every member's entries; needs `time_tracking.read`. */
89
92
  readonly everyone?: boolean;
90
93
  /** Entries that end after this instant. */
@@ -101,6 +104,7 @@ interface Timesheet {
101
104
  readonly id?: string;
102
105
  readonly organizationId: string;
103
106
  readonly userId: string;
107
+ readonly employeeId?: string;
104
108
  /** The Monday the week starts on. */
105
109
  readonly week: Temporal.PlainDate;
106
110
  readonly status: TimesheetStatus;
@@ -133,6 +137,7 @@ interface TimesheetDetail<F extends object = Record<never, never>> extends Times
133
137
  interface TimesheetListOptions {
134
138
  /** Another member's timesheets; needs `time_tracking.read`. */
135
139
  readonly userId?: string;
140
+ readonly employeeId?: string;
136
141
  readonly status?: TimesheetStatus;
137
142
  readonly pageSize?: number;
138
143
  /** Weeks before this one, for the next page. */
@@ -158,9 +163,9 @@ interface TimeTracking<F extends object = Record<never, never>> {
158
163
  /** Newest first. */
159
164
  list(options?: TimeEntryListOptions): AsyncResult<readonly TimeEntry<F>[]>;
160
165
  /** A member's week (the caller's by default) with its entries and totals. */
161
- timesheet(week: Temporal.PlainDate, userId?: string): AsyncResult<TimesheetDetail<F>>;
166
+ timesheet(week: Temporal.PlainDate, userId?: string, employeeId?: string): AsyncResult<TimesheetDetail<F>>;
162
167
  /** Sends the caller's week for approval; it locks until a rejection. */
163
- submit(week: Temporal.PlainDate, note?: string): AsyncResult<Timesheet>;
168
+ submit(week: Temporal.PlainDate, note?: string, employeeId?: string): AsyncResult<Timesheet>;
164
169
  /** Unlocks an approved week; needs `time_tracking.manage`. */
165
170
  reopen(timesheetId: string): AsyncResult<Timesheet>;
166
171
  /**
@@ -2,7 +2,7 @@ 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-BPp2zzsz.js";
5
+ import { t as timeTrackingSqlOptions } from "../../options-eTepQ1rZ.js";
6
6
  import { r as defineMetric } from "../../metric-definition-BjxVn4R5.js";
7
7
  import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
8
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";
@@ -29,7 +29,8 @@ function entryOf(value, fn) {
29
29
  return {
30
30
  id: textOf(row["id"]),
31
31
  organizationId: textOf(row["organizationId"]),
32
- userId: textOf(row["userId"]),
32
+ userId: optionalText(row["userId"]) ?? "",
33
+ ...optional("employeeId", optionalText(row["employeeId"])),
33
34
  subject: optionalRecordRefOf(row["subjectType"], row["subjectId"]),
34
35
  startedAt: requiredInstant(row["startedAt"], "startedAt"),
35
36
  billable: row["billable"] === true,
@@ -46,7 +47,8 @@ function timesheetOf(value, fn) {
46
47
  const row = recordOf(value, fn);
47
48
  return {
48
49
  organizationId: textOf(row["organizationId"]),
49
- userId: textOf(row["userId"]),
50
+ userId: optionalText(row["userId"]) ?? "",
51
+ ...optional("employeeId", optionalText(row["employeeId"])),
50
52
  week: temporal().PlainDate.from(textOf(row["week"])),
51
53
  status: enumOrThrow(row["status"], STATUSES, "timesheet status"),
52
54
  ...optional("id", optionalText(row["id"])),
@@ -125,6 +127,7 @@ function createTimeTracking(options) {
125
127
  rate_currency: input.rate?.currency ?? null,
126
128
  note: input.note ?? null,
127
129
  user_id: input.userId ?? null,
130
+ ...optional("employee_id", input.employeeId),
128
131
  fields: checked
129
132
  }, (value) => entryOf(value, "log_time")).andThen(fields.row)));
130
133
  },
@@ -148,12 +151,14 @@ function createTimeTracking(options) {
148
151
  subject_type: list.subject?.type ?? null,
149
152
  subject_id: list.subject?.id ?? null,
150
153
  everyone: list.everyone ?? false,
151
- page_size: list.pageSize ?? null
154
+ page_size: list.pageSize ?? null,
155
+ ...optional("employee_id", list.employeeId)
152
156
  }, (value) => recordsOf(value, "list_time_entries").map((row) => entryOf(row, "list_time_entries"))).andThen(fields.rows)),
153
- timesheet: (week, userId) => tenant().andThen((organizationId) => call("get_timesheet", {
157
+ timesheet: (week, userId, employeeId) => tenant().andThen((organizationId) => call("get_timesheet", {
154
158
  tenant: organizationId,
155
159
  week: week.toString(),
156
- user_id: userId ?? null
160
+ user_id: userId ?? null,
161
+ ...optional("employee_id", employeeId)
157
162
  }, (value) => {
158
163
  const row = recordOf(value, "get_timesheet");
159
164
  return {
@@ -165,10 +170,11 @@ function createTimeTracking(options) {
165
170
  ...detail,
166
171
  entries
167
172
  })))),
168
- submit: (week, note) => tenant().andThen((organizationId) => call("submit_timesheet", {
173
+ submit: (week, note, employeeId) => tenant().andThen((organizationId) => call("submit_timesheet", {
169
174
  tenant: organizationId,
170
175
  week: week.toString(),
171
- note: note ?? null
176
+ note: note ?? null,
177
+ ...optional("employee_id", employeeId)
172
178
  }, (value) => timesheetOf(value, "submit_timesheet"))),
173
179
  approve: (timesheetId) => call("approve_timesheet", { timesheet_id: timesheetId }, (value) => timesheetOf(value, "approve_timesheet")),
174
180
  reject: (timesheetId, note) => call("reject_timesheet", {
@@ -181,7 +187,8 @@ function createTimeTracking(options) {
181
187
  user_id: list.userId ?? null,
182
188
  status: list.status ?? null,
183
189
  page_size: list.pageSize ?? null,
184
- before: list.before?.toString() ?? null
190
+ before: list.before?.toString() ?? null,
191
+ ...optional("employee_id", list.employeeId)
185
192
  }, (value) => recordsOf(value, "list_timesheets").map((row) => timesheetOf(row, "list_timesheets"))))
186
193
  }, options.hooks, {
187
194
  block: "time-tracking",
@@ -5,10 +5,10 @@ import { n as Logger } from "../../logger-DWVYUmwi.js";
5
5
  import { a as BlockTenantOptions, i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
6
6
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
7
7
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
8
- import { t as BetterSupabase } from "../../define-Lf6rI2QN.js";
9
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
10
- import { i as EventSink, t as CloudEvent } from "../../cloud-event-CzZTJkXv.js";
11
- import { i as ListDefinition } from "../../list-query-XYfUZb0j.js";
8
+ import { t as BetterSupabase } from "../../define-BLP6XtoL.js";
9
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
10
+ import { i as EventSink, t as CloudEvent } from "../../cloud-event-DcJwder2.js";
11
+ import { i as ListDefinition } from "../../list-query-XHoYDlRN.js";
12
12
  //#region src/blocks/timeline/timeline.d.ts
13
13
  /**
14
14
  * Where a timeline entry comes from: `event` for an `activity_entries` row that
@@ -3,12 +3,12 @@ import { t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
5
  import { Dt as HasFlag, Mt as Plugin, Pt as RepositoryExtension, Z as PrimaryKeyValue } from "../../types-DFdg_4yN.js";
6
- import { A as CollaborationEventData, Ct as Events } from "../../events-vcqenSYU.js";
6
+ import { A as CollaborationEventData, Ct as Events } from "../../events-Cc9DDQWH.js";
7
7
  import { n as Logger } from "../../logger-DWVYUmwi.js";
8
8
  import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
9
9
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
10
10
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
11
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
11
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
12
12
  //#region src/blocks/trash/trash.d.ts
13
13
  interface TrashOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
14
14
  /**
@@ -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
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
3
- import { n as Controller } from "../../controller-BGto_kYM.js";
2
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
3
+ import { n as Controller } from "../../controller-CwGXms17.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 {
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { Mt as Plugin } from "../../types-DFdg_4yN.js";
3
3
  import { t as UpdatedAtSqlOptions } from "../../options-B_NrjVDt.js";
4
- import { r as Block } from "../../define-block-DCAiOrNX.js";
4
+ import { r as Block } from "../../define-block-DibVN37N.js";
5
5
  //#region src/blocks/updated-at/extension.d.ts
6
6
  /**
7
7
  * The `updated-at` block's repository extension. Stamps the columns generated
@@ -2,8 +2,8 @@ import { b as DbError } from "../../result-DZeA5KS6.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
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
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
6
- import { n as Controller, t as AuthPort } from "../../controller-BGto_kYM.js";
5
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
6
+ import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.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>;
@@ -1,12 +1,12 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
- import { Ct as Events } from "../../events-vcqenSYU.js";
3
+ import { Ct as Events } from "../../events-Cc9DDQWH.js";
4
4
  import { n as Logger } from "../../logger-DWVYUmwi.js";
5
5
  import { r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
6
6
  import { s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
7
7
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
8
8
  import { a as ProblemFormat, t as BlockProblemOptions } from "../../problem-DNwN8iGz.js";
9
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
9
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
10
10
  import { n as Jwks } from "../../jws-D0toeQlA.js";
11
11
  //#region src/blocks/vercel-marketplace/partner-api.d.ts
12
12
  /** The Vercel environments a resource's secrets reach. */
@@ -3,12 +3,12 @@ import { t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
5
  import { $ as RecordRef } from "../../types-DFdg_4yN.js";
6
- import { A as CollaborationEventData, Ct as Events } from "../../events-vcqenSYU.js";
6
+ import { A as CollaborationEventData, Ct as Events } from "../../events-Cc9DDQWH.js";
7
7
  import { n as Logger } from "../../logger-DWVYUmwi.js";
8
8
  import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
9
9
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
10
10
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
11
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-DCAiOrNX.js";
11
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-DibVN37N.js";
12
12
  //#region src/blocks/versions/json-patch.d.ts
13
13
  /** A JSON value, as a version's content holds it. */
14
14
  type JsonValue = null | boolean | number | string | readonly JsonValue[] | {
@@ -2,12 +2,12 @@
2
2
  import { t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
5
- import { Ct as Events, G as InviteCodeEventData, Z as OrganizationEventData, mt as WaitlistEventData } from "../../events-vcqenSYU.js";
5
+ import { Ct as Events, G as InviteCodeEventData, Z as OrganizationEventData, mt as WaitlistEventData } from "../../events-Cc9DDQWH.js";
6
6
  import { n as Logger } from "../../logger-DWVYUmwi.js";
7
7
  import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
8
8
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
9
9
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
10
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
10
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
11
11
  import { n as VerifyOptions } from "../../signatures-Dkx9OE8j.js";
12
12
  //#region src/blocks/waitlist/waitlist.d.ts
13
13
  type WaitlistStatus = "waiting" | "approved" | "rejected" | "joined";
@@ -1,19 +1,19 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, f as Result, t as AsyncResult } from "../../result-DZeA5KS6.js";
3
3
  import { Ft as RequestContext } from "../../types-DFdg_4yN.js";
4
- import { Ct as Events, U as IncomingWebhookEventData, ht as WebhookEventData, o as EventHub } from "../../events-vcqenSYU.js";
5
- import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "../../provider-CqwEOLCA.js";
4
+ import { Ct as Events, U as IncomingWebhookEventData, ht as WebhookEventData, o as EventHub } from "../../events-Cc9DDQWH.js";
5
+ import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "../../provider-ClrIplXa.js";
6
6
  import { r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
7
7
  import { n as SqlClient } from "../../executor-hGjrop3A.js";
8
8
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
9
9
  import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
10
10
  import { t as BlockProblemOptions } from "../../problem-DNwN8iGz.js";
11
11
  import { g as JobHandler, x as QueueSchemas, y as Queue } from "../../types-Czq9Xtpa.js";
12
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
13
- import { i as EventSink, t as CloudEvent } from "../../cloud-event-CzZTJkXv.js";
14
- import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-D_pwXlBs.js";
12
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
13
+ import { i as EventSink, t as CloudEvent } from "../../cloud-event-DcJwder2.js";
14
+ import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-DtzreCAq.js";
15
15
  import { a as verifySharedSecret, i as signWebhook, n as VerifyOptions, o as verifyWebhook, r as WebhookInput, t as VerifiedWebhook } from "../../signatures-Dkx9OE8j.js";
16
- import { a as DatabaseWebhookPayload, c as hookError, d as stripeInboxVerify, f as verifyStripeWebhook, i as DatabaseChange, l as isDatabaseWebhook, n as AuthHookKind, o as authHook, r as AuthHooks, s as databaseChange, t as AuthHookError, u as signStripeWebhook } from "../../verify-B0KLBb3j.js";
16
+ import { a as DatabaseWebhookPayload, c as hookError, d as stripeInboxVerify, f as verifyStripeWebhook, i as DatabaseChange, l as isDatabaseWebhook, n as AuthHookKind, o as authHook, r as AuthHooks, s as databaseChange, t as AuthHookError, u as signStripeWebhook } from "../../verify-CI8LgSpv.js";
17
17
  import { A as IncomingVerify, C as isPublicAddress, D as IncomingDelivery, E as CreatedIncomingWebhook, F as UpdateIncomingWebhookInput, I as UpdatedIncomingWebhook, M as IncomingWebhooks, N as IncomingWebhooksOptions, O as IncomingDestination, P as RotatedIncomingSecret, S as ResolveHost, T as CreateIncomingWebhookInput, _ as WebhookResponse, a as WebhookSignInput, b as AllowUrl, c as standardWebhooks, d as RotateSecretOptions, f as WebhookSecretStore, g as WebhookRequest, h as WebhookPolicyError, i as StandardWebhooksOptions, j as IncomingWebhook, k as IncomingDestinationResult, l as standardWebhooksAsymmetric, m as FetchTransportOptions, n as HmacSignerOptions, o as WebhookSigner, p as sqlSecretStore, r as RawSigner, s as hmacSigner, t as AsymmetricWebhooksOptions, u as webhookPublicKey, v as WebhookTransport, w as publicUrl, x as PublicUrlOptions, y as fetchTransport } from "../../signers-BKgmVh6A.js";
18
18
  import { StandardSchemaV1 } from "@standard-schema/spec";
19
19
  //#region src/core/hmac.d.ts
@@ -1,15 +1,15 @@
1
1
  import { b as DbError } from "../../result-DZeA5KS6.js";
2
2
  import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
3
3
  import { r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
4
- import { Ct as Events, gt as WorkflowEventData } from "../../events-vcqenSYU.js";
4
+ import { Ct as Events, gt as WorkflowEventData } from "../../events-Cc9DDQWH.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
6
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
6
+ import { c as BlockOf } from "../../define-block-DibVN37N.js";
7
7
  import { g as Workflows, n as WorkflowRun } from "../../workflows-B0ZPAQu0.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
- 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
- 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";
8
+ import { p as SubscriptionStatus } from "../../topic-CpsKVBot.js";
9
+ import { n as TopicPort } from "../../watch-topic-BaMZX139.js";
10
+ import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.js";
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-BdaBfYIw.js";
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-C-Ox9eKq.js";
13
13
  //#region src/blocks/workflow-editor/workflow-editor.d.ts
14
14
  /**
15
15
  * The `workflow-editor` module's definitions, versions, triggers, credentials,
@@ -1,11 +1,11 @@
1
1
  import { b as DbError } from "../../result-DZeA5KS6.js";
2
- import { Ct as Events, _t as WorkflowRunEventData } from "../../events-vcqenSYU.js";
2
+ import { Ct as Events, _t as WorkflowRunEventData } from "../../events-Cc9DDQWH.js";
3
3
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
4
- import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
4
+ import { c as BlockOf } from "../../define-block-DibVN37N.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-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";
6
+ import { p as SubscriptionStatus } from "../../topic-CpsKVBot.js";
7
+ import { n as TopicPort } from "../../watch-topic-BaMZX139.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.js";
9
9
  //#region src/blocks/workflows/client.d.ts
10
10
  interface WorkflowRunsControllerOptions {
11
11
  readonly client: {
@@ -6,7 +6,7 @@ import { n as Logger } from "./logger-DWVYUmwi.js";
6
6
  import { n as BlockOptions } from "./block-helpers-CRpAHrp_.js";
7
7
  import { n as BlockHooks } from "./block-hooks-DZN2w69m.js";
8
8
  import { g as JobHandler } from "./types-Czq9Xtpa.js";
9
- import { o as WeeklyHours } from "./availability-vguUvEK2.js";
9
+ import { o as WeeklyHours } from "./availability-BdeKCHpl.js";
10
10
  //#region src/blocks/bookings/series.d.ts
11
11
  /** An ISO weekday: 1 is Monday, 7 is Sunday. */
12
12
  type BookingWeekday = 1 | 2 | 3 | 4 | 5 | 6 | 7;
@@ -1,10 +1,10 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../result-DZeA5KS6.js";
3
- import { a as CredentialSubject, i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "../provider-CqwEOLCA.js";
3
+ import { a as CredentialSubject, i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "../provider-ClrIplXa.js";
4
4
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../block-transport-DWZSJrwN.js";
5
5
  import { o as StreamStore } from "../store-CpheI-lN.js";
6
6
  import { u as MessageFile } from "../messaging-C_Pr9tGx.js";
7
- import { c as ChatActionHook, d as IdentityRef, f as IdentityTarget, i as AuthorizationHooks, p as PrincipalByIdentity, s as ChatAction, t as ApprovalRequestRef } from "../authorization-hooks-D_pwXlBs.js";
7
+ import { c as ChatActionHook, d as IdentityRef, f as IdentityTarget, i as AuthorizationHooks, p as PrincipalByIdentity, s as ChatAction, t as ApprovalRequestRef } from "../authorization-hooks-DtzreCAq.js";
8
8
  import { S as StoredInboundEvent, c as DeliveryStatus, f as InboxFileSource, i as Conversation, l as InboundResult, p as InboxMessage, y as PendingInboxFile } from "../types-Dp3UCr1e.js";
9
9
  import { a as Inbox } from "../inbox-NDKwSk_H.js";
10
10
  import { Adapter, AdapterPostableMessage, Attachment, Author, Message, RawMessage, StateAdapter, WebhookOptions } from "chat";
@@ -1,21 +1,21 @@
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-RSpJIWDd.js";
3
+ import { t as VERSION } from "./version-Bhca9D6q.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-BITNbA5V.js";
6
+ import { t as loadSnapshot } from "./snapshot-DdN5GlhH.js";
7
7
  import { t as isRecord } from "./guards-CUlDNYZs.js";
8
- import { a as toCatalog } from "./source-GGJHuzpH.js";
9
- import { n as dataMigration } from "./migrations-CUjNXokR.js";
8
+ import { a as toCatalog } from "./source-COARbqch.js";
9
+ import { n as dataMigration } from "./migrations-JtsPYv8g.js";
10
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-Cy7xlU4G.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-Doy9qYO8.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-_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";
15
+ import { t as syncModules } from "./sync-SqyVHRSJ.js";
16
+ import { t as addModules } from "./add-C2pNvVpu.js";
17
+ import { n as ident } from "./live-Di45imoV.js";
18
+ import { t as blockNames } from "./blocks-BmYOH4T-.js";
19
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";
@@ -0,0 +1 @@
1
+ export { t as addCommand } from "./add-BTVrOGJF.js";
@@ -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-CUjNXokR.js";
2
+ import { c as layoutFor, g as providerLabel, l as providerOwnsMemberships, o as MEMBERSHIP_CLAIM_MODULES } from "./migrations-JtsPYv8g.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-_QlsTmqu.js";
5
+ import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-SqyVHRSJ.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";
@@ -3,7 +3,7 @@ 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 { 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-KcdTBUij.js";
6
+ import { n as ident } from "./live-Di45imoV.js";
7
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;
package/dist/cli/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as run } from "./run-BYpZ8FjF.js";
2
+ import { i as run } from "./run-DPLedqTF.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-Cy_ram9N.js";
4
+ import { n as listModules, t as printModule } from "./print-Dfqd4DB-.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-2Yw9t-_U.js";
1
+ export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-BmYOH4T-.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-RSpJIWDd.js";
1
+ import { t as VERSION } from "./version-Bhca9D6q.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-BoD5ynN9.js";
7
+ import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-8jrP5gIa.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";
@@ -1,6 +1,6 @@
1
1
  import { r as readIfExists } from "./io-DH1kcmmP.js";
2
- import { t as CACHE_DIR } from "./cache-ByhPVMo-.js";
3
- import { x as installedVersion } from "./snapshot-BITNbA5V.js";
2
+ import { t as CACHE_DIR } from "./cache-1TfBy2K4.js";
3
+ import { x as installedVersion } from "./snapshot-DdN5GlhH.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";
@@ -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-RSpJIWDd.js";
3
+ import { t as VERSION } from "./version-Bhca9D6q.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-ByhPVMo-.js";
7
+ import { t as CACHE_DIR } from "./cache-1TfBy2K4.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-BITNbA5V.js";
10
- import { d as configFor, r as renderFiles, u as notNullTag } from "./render-CF09FCra.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-DdN5GlhH.js";
10
+ import { d as configFor, r as renderFiles, u as notNullTag } from "./render-DWRz-uPQ.js";
11
11
  import { t as isRecord } from "./guards-CUlDNYZs.js";
12
- import { i as request } from "./source-GGJHuzpH.js";
13
- import { g as providerLabel, u as compiledReadSets } from "./migrations-CUjNXokR.js";
12
+ import { i as request } from "./source-COARbqch.js";
13
+ import { g as providerLabel, u as compiledReadSets } from "./migrations-JtsPYv8g.js";
14
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-qH-_YQ8H.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-hUW2nb92.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-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";
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-j54rk2w-.js";
22
+ import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-8jrP5gIa.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-CslNcs-R.js";
24
+ import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-ZIn1NCMi.js";
25
+ import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-Doy9qYO8.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-KcdTBUij.js";
27
+ import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-Di45imoV.js";
28
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-DWQSIZ59.js";
33
+ import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-7PsBF5Xw.js";
34
34
  import { existsSync } from "node:fs";
35
35
  import { dirname, resolve } from "node:path";
36
36
  import { createHash } from "node:crypto";
@@ -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-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";
4
+ import { u as catalogFingerprint } from "./cache-1TfBy2K4.js";
5
+ import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-DdN5GlhH.js";
6
+ import { n as dataMigration } from "./migrations-JtsPYv8g.js";
7
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-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";
9
+ import { n as runGen } from "./run-j54rk2w-.js";
10
+ import { t as syncModules } from "./sync-SqyVHRSJ.js";
11
+ import { t as addModules } from "./add-C2pNvVpu.js";
12
+ import { n as listModules, t as printModule } from "./print-Dfqd4DB-.js";
13
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";
14
+ import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-7PsBF5Xw.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-BGcRdlhN.js";
17
- import { n as runPowerSync } from "./powersync-CE_hQdgc.js";
16
+ import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-CgLNZc_C.js";
17
+ import { n as runPowerSync } from "./powersync-BRGXOCJ0.js";
18
18
  import { t as runSeed } from "./seed-BMynpMPy.js";
19
- import { t as upgrade } from "./upgrade-Cwhb1M7O.js";
19
+ import { t as upgrade } from "./upgrade-CY-vj_qh.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.23.0";
801
+ export declare const VERSION = "0.25.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 };
package/dist/cli/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { a as list, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
- import { i as run, n as createCli, r as help, t as commandNames } from "./run-BYpZ8FjF.js";
3
- import { t as VERSION } from "./version-RSpJIWDd.js";
2
+ import { i as run, n as createCli, r as help, t as commandNames } from "./run-DPLedqTF.js";
3
+ import { t as VERSION } from "./version-Bhca9D6q.js";
4
4
  import { n as CliError, t as CLI_ERRORS_URL } from "./errors-BTe6A15O.js";
5
- import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-BITNbA5V.js";
6
- import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-CF09FCra.js";
7
- import { a as toCatalog, n as managementSource, r as pgSource } from "./source-GGJHuzpH.js";
5
+ import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-DdN5GlhH.js";
6
+ import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-DWRz-uPQ.js";
7
+ import { a as toCatalog, n as managementSource, r as pgSource } from "./source-COARbqch.js";
8
8
  import { s as loadConfig } from "./config-BVfeG3A5.js";
9
- import { n as runGen } from "./run-lh-chAJW.js";
9
+ import { n as runGen } from "./run-j54rk2w-.js";
10
10
  //#region src/cli/introspect/from-catalog.ts
11
11
  /**
12
12
  * Builds a snapshot from catalog records: the inverse of `toCatalog`. Tests and