better-supabase 0.40.0 → 0.42.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 (308) hide show
  1. package/dist/{agents-BwUHtvD6.d.ts → agents-BAiLeoR-.d.ts} +3 -3
  2. package/dist/{ai-cache-CPOP2PYz.d.ts → ai-cache-B94R1da7.d.ts} +3 -3
  3. package/dist/{ai-chat-BZhfCHHr.d.ts → ai-chat-rQ7Ftq9W.d.ts} +3 -3
  4. package/dist/{ai-schedules-ChJkI2jo.d.ts → ai-schedules-DIiPmFgn.d.ts} +4 -4
  5. package/dist/ai-sdk/agents/index.d.ts +6 -6
  6. package/dist/ai-sdk/batches/index.d.ts +3 -3
  7. package/dist/ai-sdk/cache/index.d.ts +1 -1
  8. package/dist/ai-sdk/chat/index.d.ts +2 -2
  9. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  10. package/dist/ai-sdk/files/index.d.ts +1 -1
  11. package/dist/ai-sdk/index.d.ts +5 -5
  12. package/dist/ai-sdk/mcp/index.d.ts +1 -1
  13. package/dist/ai-sdk/memory/index.d.ts +3 -3
  14. package/dist/ai-sdk/workflow/index.d.ts +3 -3
  15. package/dist/{api-keys-BncNDlWG.d.ts → api-keys-U3JQ8IlM.d.ts} +2 -2
  16. package/dist/{app-tables-jaQmdgAM.d.ts → app-tables-DGgCgRwq.d.ts} +1 -1
  17. package/dist/{approvals-CXW3yFWZ.d.ts → approvals-CYbTzQ7v.d.ts} +112 -13
  18. package/dist/{approvals-D8gR1R8R.js → approvals-cyL5CmU7.js} +49 -19
  19. package/dist/{assistant-5heV2GeR.d.ts → assistant-B1p5mYaM.d.ts} +2 -2
  20. package/dist/{authorization-Ul_ApMYW.d.ts → authorization-CcvJbvr1.d.ts} +62 -8
  21. package/dist/{automations-D4QTP8nI.js → automations-CJhRmPmq.js} +3 -1
  22. package/dist/{bind-B2GlypM6.d.ts → bind-B71jMEGG.d.ts} +4 -4
  23. package/dist/{block-env-Bcr-jEA1.d.ts → block-env-DzYTC9d1.d.ts} +4 -4
  24. package/dist/{block-helpers-BNtM1tqy.d.ts → block-helpers-Sj-efEhC.d.ts} +15 -1
  25. package/dist/{block-hooks-CtMsgLQr.d.ts → block-hooks-VW4knarE.d.ts} +1 -1
  26. package/dist/{block-subjects-BumEsEYb.js → block-subjects-a_ECM9o0.js} +1 -1
  27. package/dist/{block-tables-nkIjJ1ly.d.ts → block-tables-B92SBFqM.d.ts} +1 -1
  28. package/dist/blocks/access-requests/index.d.ts +3 -3
  29. package/dist/blocks/activities/index.d.ts +6 -6
  30. package/dist/blocks/agents/index.d.ts +2 -2
  31. package/dist/blocks/ai-cache/index.d.ts +2 -2
  32. package/dist/blocks/ai-chat/index.d.ts +6 -6
  33. package/dist/blocks/ai-files/index.d.ts +2 -2
  34. package/dist/blocks/ai-keys/index.d.ts +2 -2
  35. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  36. package/dist/blocks/announcements/index.d.ts +6 -6
  37. package/dist/blocks/api-keys/index.d.ts +2 -2
  38. package/dist/blocks/approvals/index.d.ts +4 -3
  39. package/dist/blocks/approvals/index.js +3 -2
  40. package/dist/blocks/assets/index.d.ts +3 -3
  41. package/dist/blocks/assignment/index.d.ts +3 -3
  42. package/dist/blocks/attachments/index.d.ts +2 -2
  43. package/dist/blocks/audit/index.d.ts +6 -6
  44. package/dist/blocks/automations/index.d.ts +6 -6
  45. package/dist/blocks/billable-time/index.d.ts +3 -3
  46. package/dist/blocks/billing/index.d.ts +4 -4
  47. package/dist/blocks/bookings/index.d.ts +3 -3
  48. package/dist/blocks/bulk/index.d.ts +2 -2
  49. package/dist/blocks/calendar/index.d.ts +3 -3
  50. package/dist/blocks/catalog/index.d.ts +3 -3
  51. package/dist/blocks/channels/index.d.ts +3 -3
  52. package/dist/blocks/collections/index.d.ts +3 -3
  53. package/dist/blocks/comments/index.d.ts +8 -8
  54. package/dist/blocks/compliance/index.d.ts +3 -3
  55. package/dist/blocks/connectors/index.d.ts +2 -2
  56. package/dist/blocks/contacts/index.d.ts +3 -3
  57. package/dist/blocks/content/index.d.ts +3 -3
  58. package/dist/blocks/contracts/index.d.ts +3 -3
  59. package/dist/blocks/courses/index.d.ts +3 -3
  60. package/dist/blocks/created-by/index.d.ts +1 -1
  61. package/dist/blocks/custom-fields/index.d.ts +3 -3
  62. package/dist/blocks/data-lifecycle/index.d.ts +4 -4
  63. package/dist/blocks/deals/index.d.ts +3 -3
  64. package/dist/blocks/dispatch/index.d.ts +3 -3
  65. package/dist/blocks/documents/index.d.ts +2 -2
  66. package/dist/blocks/domains/index.d.ts +4 -4
  67. package/dist/blocks/donations/index.d.ts +3 -3
  68. package/dist/blocks/drive/index.d.ts +4 -4
  69. package/dist/blocks/employees/index.d.ts +4 -4
  70. package/dist/blocks/enrichment/index.d.ts +3 -3
  71. package/dist/blocks/enrollments/index.d.ts +3 -3
  72. package/dist/blocks/entitlements/index.d.ts +4 -4
  73. package/dist/blocks/expenses/index.d.ts +7 -3
  74. package/dist/blocks/expenses/index.js +5 -3
  75. package/dist/blocks/field-history/index.d.ts +3 -3
  76. package/dist/blocks/flags/index.d.ts +3 -3
  77. package/dist/blocks/forecasts/index.d.ts +3 -3
  78. package/dist/blocks/forms/index.d.ts +4 -4
  79. package/dist/blocks/goals/index.d.ts +3 -3
  80. package/dist/blocks/guests/index.d.ts +3 -3
  81. package/dist/blocks/hiring/index.d.ts +3 -3
  82. package/dist/blocks/identities/index.d.ts +3 -3
  83. package/dist/blocks/imports/index.d.ts +2 -2
  84. package/dist/blocks/inbox/index.d.ts +8 -8
  85. package/dist/blocks/incidents/index.d.ts +3 -3
  86. package/dist/blocks/index.d.ts +4 -4
  87. package/dist/blocks/inventory/index.d.ts +4 -4
  88. package/dist/blocks/invoices/index.d.ts +21 -8
  89. package/dist/blocks/invoices/index.js +20 -10
  90. package/dist/blocks/knowledge/index.d.ts +2 -2
  91. package/dist/blocks/lead-scoring/index.d.ts +4 -4
  92. package/dist/blocks/leases/index.d.ts +3 -3
  93. package/dist/blocks/leave/index.d.ts +5 -3
  94. package/dist/blocks/leave/index.js +3 -2
  95. package/dist/blocks/ledger/index.d.ts +3 -3
  96. package/dist/blocks/mail-sync/index.d.ts +2 -2
  97. package/dist/blocks/memberships/index.d.ts +1 -1
  98. package/dist/blocks/memory/index.d.ts +3 -3
  99. package/dist/blocks/messaging/index.d.ts +7 -7
  100. package/dist/blocks/metrics/index.d.ts +4 -4
  101. package/dist/blocks/mfa/index.d.ts +2 -2
  102. package/dist/blocks/moderation/index.d.ts +3 -3
  103. package/dist/blocks/notifications/index.d.ts +6 -6
  104. package/dist/blocks/numbering/index.d.ts +2 -2
  105. package/dist/blocks/oauth-server/index.d.ts +3 -3
  106. package/dist/blocks/onboarding/index.d.ts +4 -4
  107. package/dist/blocks/orders/index.d.ts +5 -5
  108. package/dist/blocks/organizations/index.d.ts +5 -5
  109. package/dist/blocks/outbox/index.d.ts +2 -2
  110. package/dist/blocks/passes/index.d.ts +5 -5
  111. package/dist/blocks/permissions/index.d.ts +5 -5
  112. package/dist/blocks/pipelines/index.d.ts +3 -3
  113. package/dist/blocks/posts/index.d.ts +3 -3
  114. package/dist/blocks/profiles/index.d.ts +3 -3
  115. package/dist/blocks/promotions/index.d.ts +3 -3
  116. package/dist/blocks/push/index.d.ts +4 -4
  117. package/dist/blocks/queue/index.d.ts +4 -4
  118. package/dist/blocks/quotes/index.d.ts +57 -12
  119. package/dist/blocks/quotes/index.js +35 -7
  120. package/dist/blocks/rank/index.d.ts +4 -4
  121. package/dist/blocks/reactions/index.d.ts +6 -6
  122. package/dist/blocks/relations/index.d.ts +4 -4
  123. package/dist/blocks/reminders/index.d.ts +4 -4
  124. package/dist/blocks/reviews/index.d.ts +3 -3
  125. package/dist/blocks/saved-views/index.d.ts +3 -3
  126. package/dist/blocks/scores/index.d.ts +3 -3
  127. package/dist/blocks/search/index.d.ts +5 -5
  128. package/dist/blocks/security-events/index.d.ts +4 -4
  129. package/dist/blocks/segments/index.d.ts +3 -3
  130. package/dist/blocks/sequences/index.d.ts +3 -3
  131. package/dist/blocks/service-accounts/index.d.ts +3 -3
  132. package/dist/blocks/sessions/index.d.ts +2 -2
  133. package/dist/blocks/settings/index.d.ts +4 -4
  134. package/dist/blocks/share-links/index.d.ts +3 -3
  135. package/dist/blocks/shipments/index.d.ts +3 -3
  136. package/dist/blocks/signatures/index.d.ts +3 -3
  137. package/dist/blocks/signing-keys/index.d.ts +2 -2
  138. package/dist/blocks/sla/index.d.ts +3 -3
  139. package/dist/blocks/sso/index.d.ts +4 -4
  140. package/dist/blocks/state-machine/index.d.ts +3 -14
  141. package/dist/blocks/subjects/index.d.ts +3 -3
  142. package/dist/blocks/tags/index.d.ts +4 -4
  143. package/dist/blocks/tasks/index.d.ts +5 -5
  144. package/dist/blocks/teams/index.d.ts +3 -3
  145. package/dist/blocks/templates/index.d.ts +6 -6
  146. package/dist/blocks/time-tracking/index.d.ts +3 -3
  147. package/dist/blocks/timeline/index.d.ts +3 -3
  148. package/dist/blocks/trash/index.d.ts +3 -3
  149. package/dist/blocks/undo/index.d.ts +3 -3
  150. package/dist/blocks/updated-at/index.d.ts +1 -1
  151. package/dist/blocks/usage/index.d.ts +3 -3
  152. package/dist/blocks/vercel-marketplace/index.d.ts +3 -3
  153. package/dist/blocks/versions/index.d.ts +3 -3
  154. package/dist/blocks/waitlist/index.d.ts +3 -3
  155. package/dist/blocks/webhooks/index.d.ts +5 -5
  156. package/dist/blocks/workflow-editor/index.d.ts +7 -7
  157. package/dist/blocks/workflows/index.d.ts +5 -5
  158. package/dist/{bookings-Dj5cvXKv.d.ts → bookings-CHUzFwOI.d.ts} +3 -3
  159. package/dist/chat-sdk/index.d.ts +3 -3
  160. package/dist/claims/index.d.ts +4 -4
  161. package/dist/cli/add-BbhRYaFe.js +1 -0
  162. package/dist/cli/{add-BVs8Ym-K.js → add-NosuEQn1.js} +10 -10
  163. package/dist/cli/{add-DP1ct-7e.js → add-U0pyhIyx.js} +2 -2
  164. package/dist/cli/{app-table-files-gjMyFqH4.js → app-table-files-DUi898lB.js} +2 -2
  165. package/dist/cli/{app-tables-B26PHK75.js → app-tables-BINtREbx.js} +2 -2
  166. package/dist/cli/{backfill-CP_LpTK2.js → backfill-VfqI5GqN.js} +1 -1
  167. package/dist/cli/bin.js +1 -1
  168. package/dist/cli/{blocks-Ewp49Kbm.js → blocks-Bo2Lw2UO.js} +1 -1
  169. package/dist/cli/{blocks-CpBLp57s.js → blocks-DsEaPf6J.js} +1 -1
  170. package/dist/cli/{cache-BxxtUXVN.js → cache-CNJD8OdR.js} +1 -1
  171. package/dist/cli/{codemod-CGCxMEyD.js → codemod-BWa3Bte6.js} +1 -1
  172. package/dist/cli/{content-mapper-DngBJv4r.js → content-mapper-Dl50Ny6a.js} +2 -2
  173. package/dist/cli/{doctor-3dcMraMn.js → doctor-B9GtOGSa.js} +15 -15
  174. package/dist/cli/{gen-DrXxFwUU.js → gen-CIUD1sgB.js} +11 -11
  175. package/dist/cli/index.d.ts +1 -1
  176. package/dist/cli/index.js +6 -6
  177. package/dist/cli/{init-bVKQ4Onb.js → init-wl5jk5vX.js} +8 -8
  178. package/dist/cli/{live-CHTbAqdS.js → live-B0f_X3rI.js} +2 -2
  179. package/dist/cli/{mcp-BbmhntrR.js → mcp-CZWaBkXY.js} +2 -2
  180. package/dist/cli/{metadata-BS56R_eb.js → metadata-Bi5eQP4w.js} +3 -3
  181. package/dist/cli/{migrate-DV6a9-jI.js → migrate-DMITLPEu.js} +1 -1
  182. package/dist/cli/{migration-safety-Ce9IQwmJ.js → migration-safety-2n8e8njJ.js} +1 -1
  183. package/dist/cli/{migrations-CCCnMhmM.js → migrations-C5k9hNOo.js} +2 -2
  184. package/dist/cli/{module-migration-C0cAzpNa.js → module-migration-BFchEhAJ.js} +2 -2
  185. package/dist/cli/{powersync-OIIpG-y_.js → powersync-DViexv6m.js} +3 -3
  186. package/dist/cli/powersync-i7KJcTtM.js +1 -0
  187. package/dist/cli/{print-BGF3d6O2.js → print-ChX1vQhO.js} +2 -2
  188. package/dist/cli/{providers-fEzlYSLs.js → providers-lwK2lplZ.js} +1 -1
  189. package/dist/cli/{prune-workflows-Bx7J5T3a.js → prune-workflows-DO3nRZFF.js} +1 -1
  190. package/dist/cli/{remove-Ds4N6WvD.js → remove-WB9dFyNn.js} +5 -5
  191. package/dist/cli/{render-BeZToAp-.js → render-B0MMWWZE.js} +3 -3
  192. package/dist/cli/{run-iUmtksq5.js → run-CMvwtBX9.js} +27 -27
  193. package/dist/cli/{run-DR0sTyNQ.js → run-CmJbNG2-.js} +9 -9
  194. package/dist/cli/{shared-BCWYvKeR.js → shared-BL5kcRdz.js} +1 -1
  195. package/dist/cli/{snapshot-CfgRxTQq.js → snapshot-CVB9Ri2a.js} +2 -2
  196. package/dist/cli/{source-Ct3ZCy6p.js → source-COGgsYiV.js} +1 -1
  197. package/dist/cli/{spec-1eEq2P4T.js → spec-002zD_9Z.js} +1 -1
  198. package/dist/cli/{spec-9vb-or-k.js → spec-CH6Qd2LE.js} +2 -2
  199. package/dist/cli/{sql-layout-cYsnyjRf.js → sql-layout-jZOzCj-S.js} +2 -2
  200. package/dist/cli/{sync-XpcpINnx.js → sync-I4x-1aVx.js} +4 -4
  201. package/dist/cli/{upgrade-A18FY5Iy.js → upgrade-BRp5AxAY.js} +2 -2
  202. package/dist/cli/{upgrade-DXhyb2jV.js → upgrade-C60BZggI.js} +5 -5
  203. package/dist/cli/{version-PcwPOm4G.js → version-CRCAxS2s.js} +1 -1
  204. package/dist/client/index.d.ts +5 -5
  205. package/dist/client/native/index.d.ts +4 -4
  206. package/dist/config/index.d.ts +2 -2
  207. package/dist/config/index.js +4 -4
  208. package/dist/{config-qqAfS_1_.js → config-2SwAe0Im.js} +3 -3
  209. package/dist/{config-BRGMUEE2.js → config-BND2PFGs.js} +1 -1
  210. package/dist/{connectors-DDsdz-cn.d.ts → connectors-OMJkoAP6.d.ts} +2 -2
  211. package/dist/{context-dHluCmud.d.ts → context-DXWyPNzr.d.ts} +4 -2
  212. package/dist/contract/index.d.ts +4 -4
  213. package/dist/{controller-BQXgMwWN.d.ts → controller-D3MPVovD.d.ts} +1 -1
  214. package/dist/{conversion-CLBBITW5.d.ts → conversion-BShzA-u-.d.ts} +1 -1
  215. package/dist/create/index.d.ts +3 -3
  216. package/dist/create/index.js +3 -3
  217. package/dist/create/lite/index.d.ts +3 -3
  218. package/dist/create/lite/index.js +2 -2
  219. package/dist/{define-block-CDw9YGVh.d.ts → define-block-DBD7yhQg.d.ts} +5 -5
  220. package/dist/{documents-Btk0MhC0.d.ts → documents-CNVPrE_0.d.ts} +2 -2
  221. package/dist/{embeddings-CI6P_mtD.d.ts → embeddings-C2PBJ2Lx.d.ts} +1 -1
  222. package/dist/{entitlements-Jh_w-PgX.d.ts → entitlements-CljrSoWD.d.ts} +1 -1
  223. package/dist/eve/index.d.ts +5 -5
  224. package/dist/eve/index.js +1 -1
  225. package/dist/{eve-DleYrhwj.d.ts → eve-CtQd4iaO.d.ts} +2 -2
  226. package/dist/{executor-uNDJBzT8.d.ts → executor-DL7cZ-3T.d.ts} +1 -1
  227. package/dist/{field-errors-DIDkgzFA.d.ts → field-errors-C4NOUBpu.d.ts} +6 -6
  228. package/dist/{flags-Cuew4tGx.d.ts → flags-BrXfCmGB.d.ts} +1 -1
  229. package/dist/flags-sdk/index.d.ts +1 -1
  230. package/dist/{gateway-B9k89AC4.d.ts → gateway-DJX-XUWl.d.ts} +3 -3
  231. package/dist/{inbox-yGfUVQr2.d.ts → inbox-DiQ8KhG8.d.ts} +4 -4
  232. package/dist/{index-DAS_5OfK.d.ts → index-1_-lg9Gc.d.ts} +1 -1
  233. package/dist/{index-DhcLJAtX.d.ts → index-Bjj-GNhd.d.ts} +1 -1
  234. package/dist/{index-y70eTezB.d.ts → index-BrGOE0c2.d.ts} +2 -2
  235. package/dist/{index-g_eFnFqo.d.ts → index-CUxdZYSi.d.ts} +2 -2
  236. package/dist/{index-xmb6YGTg.d.ts → index-D5qW2cRD.d.ts} +2 -2
  237. package/dist/{index-CpZ4WDDJ.d.ts → index-DWVDKVYA.d.ts} +1 -1
  238. package/dist/{index-IrJQqPeQ.d.ts → index-DhHtsi-q.d.ts} +3 -3
  239. package/dist/{index-BKz-E3Mv.d.ts → index-DmSDAFkF.d.ts} +8 -8
  240. package/dist/{instances-DqEZrffE.js → instances-DwrdFwKq.js} +10 -1
  241. package/dist/{knowledge-DWXAxvkN.d.ts → knowledge-DtECa_QW.d.ts} +4 -4
  242. package/dist/mapper/bin.js +5 -5
  243. package/dist/mcp/index.d.ts +1 -1
  244. package/dist/{messaging-Bfe4p9Pm.d.ts → messaging-CpQIhkFi.d.ts} +2 -2
  245. package/dist/next/index.d.ts +7 -7
  246. package/dist/{operations-Sza7UQKP.d.ts → operations-DFmuxaxW.d.ts} +1 -1
  247. package/dist/{options-zsLpIqBA.js → options-B1oSaIZ4.js} +2 -1
  248. package/dist/{options-CYZH9uxU.js → options-BXiUftgG.js} +3 -1
  249. package/dist/{options-Bgnm4pTD.js → options-DLJTiX29.js} +6 -1
  250. package/dist/otel/index.js +4 -4
  251. package/dist/{outbox-DikdzUKf.d.ts → outbox-Cpxpzcue.d.ts} +2 -2
  252. package/dist/{permissions-COamTJYz.d.ts → permissions-Bsd4mEEZ.d.ts} +1 -1
  253. package/dist/{ports-1M1E_r2n.d.ts → ports-BKdt_9Oe.d.ts} +1 -1
  254. package/dist/powersync/index.d.ts +2 -2
  255. package/dist/preset/index.d.ts +3 -3
  256. package/dist/preset/index.js +3 -3
  257. package/dist/{preset-Byz43PrL.js → preset-CenE7f1G.js} +2 -2
  258. package/dist/{project-Y2wW_nr_.js → project-Ceh2yTSv.js} +5 -5
  259. package/dist/{push-token-DKImhAca.d.ts → push-token-DRcEl9Ce.d.ts} +1 -1
  260. package/dist/query/index.d.ts +1 -1
  261. package/dist/react/index.d.ts +5 -5
  262. package/dist/react/native/index.d.ts +1 -1
  263. package/dist/react/server.d.ts +5 -5
  264. package/dist/realtime/index.d.ts +3 -3
  265. package/dist/{record-form-C-gIxGXe.d.ts → record-form-C-1TPtMG.d.ts} +1 -1
  266. package/dist/{recordings-Bw5LoocX.d.ts → recordings-BVuri85k.d.ts} +1 -1
  267. package/dist/records/index.d.ts +8 -8
  268. package/dist/{sandboxes-BF9RxxCU.d.ts → sandboxes-DKgJZYUZ.d.ts} +1 -1
  269. package/dist/{scores-Ce8MxQX9.d.ts → scores-BXuSVczw.d.ts} +2 -2
  270. package/dist/server/index.d.ts +4 -4
  271. package/dist/{signers-Dw9DBZjJ.d.ts → signers-UANxMfH-.d.ts} +2 -2
  272. package/dist/{signing-keys-FglIQ6iL.d.ts → signing-keys-DhBSWFy_.d.ts} +2 -2
  273. package/dist/solid/index.d.ts +5 -5
  274. package/dist/sql/index.d.ts +5 -5
  275. package/dist/sql/index.js +3 -3
  276. package/dist/{sql-B1FA8jTx.js → sql-BIniB45X.js} +1558 -502
  277. package/dist/{sso-B7w7h8RJ.d.ts → sso-Frh3sbJ1.d.ts} +2 -2
  278. package/dist/ssr/index.d.ts +1 -1
  279. package/dist/{subjects-CVjAE7nz.d.ts → subjects-DNFE2rMl.d.ts} +2 -2
  280. package/dist/svelte/index.d.ts +5 -5
  281. package/dist/{tenant-DflHpV32.d.ts → tenant--Hm8mlPy.d.ts} +1 -1
  282. package/dist/testing/index.d.ts +13 -13
  283. package/dist/testing/index.js +1 -1
  284. package/dist/{timeline-c6I3uxya.d.ts → timeline-BB9fKT_r.d.ts} +2 -2
  285. package/dist/{topic-CekU96q7.d.ts → topic-BYF-GTW9.d.ts} +1 -1
  286. package/dist/{types-B42S7qfO.d.ts → types-B8h0reJ4.d.ts} +2 -2
  287. package/dist/{types-DtiDatvu.d.ts → types-D--4dv5K.d.ts} +3 -3
  288. package/dist/{types-BXLiM6VM.d.ts → types-DCzgSAlU.d.ts} +2 -2
  289. package/dist/{types-6PMaLIyw.d.ts → types-DU_nNO7U.d.ts} +2 -2
  290. package/dist/{types-BdhE7I8Z.d.ts → types-LLCyr-xs.d.ts} +2 -2
  291. package/dist/{types-D5uf0l4_.d.ts → types-kq8S5HVE.d.ts} +1 -1
  292. package/dist/{types-C7K8mu9B.d.ts → types-z31g0-5T.d.ts} +3 -3
  293. package/dist/{undo-CdKp5_2X.d.ts → undo-BCQMqIQN.d.ts} +1 -1
  294. package/dist/{usage-DZ8j5Tm_.d.ts → usage-CJDj5j15.d.ts} +3 -3
  295. package/dist/vercel-sandbox/index.d.ts +1 -1
  296. package/dist/vue/index.d.ts +5 -5
  297. package/dist/{watch-topic-DBw411Mq.d.ts → watch-topic-tfTxgEGc.d.ts} +1 -1
  298. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  299. package/dist/workflow-sdk/index.d.ts +1 -1
  300. package/dist/workflow-sdk/world/index.js +1 -1
  301. package/dist/{workflow-sdk-6psRpDIo.js → workflow-sdk-Bps7tpOv.js} +26 -1
  302. package/dist/{workflow-sdk-CUt0E4v6.d.ts → workflow-sdk-DzKQo265.d.ts} +2 -2
  303. package/dist/{workflows-BI4yKqFh.d.ts → workflows-D7HvWeNu.d.ts} +2 -2
  304. package/dist/yjs/index.d.ts +2 -2
  305. package/package.json +1 -1
  306. package/schemas/config-v1.json +42 -1
  307. package/dist/cli/add-DrwQvDYD.js +0 -1
  308. package/dist/cli/powersync-Cxd3a_v_.js +0 -1
@@ -1,9 +1,9 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  import { n as Logger } from "./logger-0LfhvwE4.js";
4
- import { r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
4
+ import { r as BlockTemporalOptions } from "./block-helpers-Sj-efEhC.js";
5
5
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
6
- import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
6
+ import { n as BlockHooks } from "./block-hooks-VW4knarE.js";
7
7
  /** The DNS record that proves a domain belongs to the organization. */
8
8
  interface DomainRecord {
9
9
  readonly type: "TXT";
@@ -1,5 +1,5 @@
1
1
  import { A as serializeCookie, C as CookieScope, D as applyCookieWrites, E as StoredSession, O as parseCookies, S as CookieRecord, T as SessionEncoding, a as ResolveAuthOptions, j as sessionCookieName, k as readSession, n as AuthResolver, r as AuthState, t as AuthResolution, u as resolveAuth, w as CookieWrite, x as CookieOptions } from "../resolve-XlMQRUeG.js";
2
- import { r as MembershipClaim } from "../entitlements-Jh_w-PgX.js";
2
+ import { r as MembershipClaim } from "../entitlements-CljrSoWD.js";
3
3
  import { n as AuthSession, o as toSession } from "../view-eHgOOyRS.js";
4
4
  import { a as sessionStatus, i as clearSessionCookies, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-BwpmNC5k.js";
5
5
  export { type AuthResolution, type AuthResolver, type AuthSession, type AuthState, type ClearSessionCookiesOptions, type CookieOptions, type CookieRecord, type CookieScope, type CookieWrite, type MembershipClaim, type ResolveAuthOptions, type SessionEncoding, type SessionStatus, type SessionStatusOptions, type StoredSession, applyCookieWrites, authContext, clearSessionCookies, parseCookies, readSession, resolveAuth, serializeCookie, sessionCookieName, sessionStatus, toSession };
@@ -2,8 +2,8 @@
2
2
  import { t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  import { et as RecordRef } from "./types-BzIYSSWK.js";
4
4
  import { n as Logger } from "./logger-0LfhvwE4.js";
5
- import { n as BlockOptions } from "./block-helpers-BNtM1tqy.js";
6
- import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
5
+ import { n as BlockOptions } from "./block-helpers-Sj-efEhC.js";
6
+ import { n as BlockHooks } from "./block-hooks-VW4knarE.js";
7
7
  /** What a `my_work` item waits on. */
8
8
  type MyWorkKind = "assigned" | "approval" | "reminder" | "mention" | "sla";
9
9
  /** The kinds `my_work` returns, in the order the docs list them. */
@@ -2,12 +2,12 @@ import { b as DbError } from "../result-DTOQRyGY.js";
2
2
  import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-DddDlibJ.js";
3
3
  import { mt as QuerySpec } from "../define-C_He1bQO.js";
4
4
  import { tt as TemplateValues } from "../bucket-CrsJNHzi.js";
5
- import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-CekU96q7.js";
6
- import { t as AuthSnapshot } from "../bind-B2GlypM6.js";
5
+ import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-BYF-GTW9.js";
6
+ import { t as AuthSnapshot } from "../bind-B71jMEGG.js";
7
7
  import { n as AuthSession } from "../view-eHgOOyRS.js";
8
- import { n as Controller } from "../controller-BQXgMwWN.js";
9
- import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-DIDkgzFA.js";
10
- import { n as BlockOptions } from "../block-env-Bcr-jEA1.js";
8
+ import { n as Controller } from "../controller-D3MPVovD.js";
9
+ import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-C4NOUBpu.js";
10
+ import { n as BlockOptions } from "../block-env-DzYTC9d1.js";
11
11
  import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-QSaPsL2P.js";
12
12
  import { SupabaseClient } from "@supabase/supabase-js";
13
13
  import { QueryClient } from "@tanstack/query-core";
@@ -1,4 +1,4 @@
1
- import { s as ClaimsSource } from "./entitlements-Jh_w-PgX.js";
1
+ import { s as ClaimsSource } from "./entitlements-CljrSoWD.js";
2
2
  /**
3
3
  * The active tenant of a user session: the `claim` claim (`tenant_id` by
4
4
  * default, as `config.claims.tenant`) at the top level of the token, then in
@@ -5,16 +5,16 @@ import { c as InlineJwks, t as BetterSupabaseEnv } from "../index-F6lsRlsr.js";
5
5
  import { m as SessionSnapshot, n as AuthResolver } from "../resolve-XlMQRUeG.js";
6
6
  import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../provider-CVlXXbda.js";
7
7
  import { n as SqlClient } from "../executor-DoSNec_H.js";
8
- import { a as BlockTransportMiddleware } from "../block-hooks-CtMsgLQr.js";
8
+ import { a as BlockTransportMiddleware } from "../block-hooks-VW4knarE.js";
9
9
  import { a as SessionActor, o as SessionDelegation } from "../actor-DseNR02I.js";
10
- import { L as QueueProvider } from "../types-BdhE7I8Z.js";
11
- import { n as Embedder } from "../knowledge-DWXAxvkN.js";
12
- import { a as AuthorizationProvider } from "../authorization-Ul_ApMYW.js";
10
+ import { L as QueueProvider } from "../types-LLCyr-xs.js";
11
+ import { n as Embedder } from "../knowledge-DtECa_QW.js";
12
+ import { a as AuthorizationProvider } from "../authorization-CcvJbvr1.js";
13
13
  import { o as StreamStore } from "../store-c7QxUHX-.js";
14
14
  import { Qt as CacheAdapter, Y as DbStats, t as BetterSupabase, y as Db } from "../define-C_He1bQO.js";
15
15
  import { Q as StoragePath } from "../bucket-CrsJNHzi.js";
16
16
  import { n as Impersonator } from "../impersonation-BOCJcsmS.js";
17
- import { tn as AnyRecordBinding } from "../define-block-CDw9YGVh.js";
17
+ import { tn as AnyRecordBinding } from "../define-block-DBD7yhQg.js";
18
18
  import { n as Money } from "../money-BgpAd7d3.js";
19
19
  import { i as EventSink, t as CloudEvent } from "../cloud-event-BjgxkfJJ.js";
20
20
  import { i as AuthorizationHooks } from "../authorization-hooks-CR8TVvqo.js";
@@ -22,22 +22,22 @@ import { s as SqlClaims, t as BetterPostgres } from "../pool-BJAjQcrJ.js";
22
22
  import { l as ServerOptions, o as ServerContext } from "../server-types-DpI82uNq.js";
23
23
  import { C as SupportSessionStore } from "../support-Dj5V2WTs.js";
24
24
  import { r as GuardOptions } from "../respond-D7kUatjc.js";
25
- import { l as Transcriber, s as NoteTaker, u as TranscriberInput } from "../recordings-Bw5LoocX.js";
26
- import { n as Controller } from "../controller-BQXgMwWN.js";
27
- import { c as AiTaskRunner, o as AiTaskRun, r as AiTask } from "../ai-schedules-ChJkI2jo.js";
28
- import { Qt as GeneratorModel, Vt as Generator, Yt as GeneratorInput, cn as ResolvedConfig } from "../context-dHluCmud.js";
25
+ import { l as Transcriber, s as NoteTaker, u as TranscriberInput } from "../recordings-BVuri85k.js";
26
+ import { n as Controller } from "../controller-D3MPVovD.js";
27
+ import { c as AiTaskRunner, o as AiTaskRun, r as AiTask } from "../ai-schedules-DIiPmFgn.js";
28
+ import { Qt as GeneratorModel, Vt as Generator, Yt as GeneratorInput, cn as ResolvedConfig } from "../context-DXWyPNzr.js";
29
29
  import { r as WebhookInput } from "../signatures-jPr9JXyw.js";
30
30
  import { n as Payment, o as PaymentProvider } from "../payments-BBGSGRQ7.js";
31
- import { y as FlagValue } from "../flags-Cuew4tGx.js";
31
+ import { y as FlagValue } from "../flags-BrXfCmGB.js";
32
32
  import { t as NotificationChannel } from "../channel-B_kufDZy.js";
33
33
  import { a as DeliveryTransport } from "../delivery-CWcbh87x.js";
34
34
  import { l as TaxProvider, r as TaxAddress } from "../tax-BD9dN1rx.js";
35
35
  import { p as ShippingProvider, s as ShipmentAddress } from "../carrier-B2eytEjR.js";
36
- import { G as WorkflowGraph, c as GraphCompiler, i as BuilderStarter, r as BuilderStartCall } from "../types-DtiDatvu.js";
37
- import { O as IncomingDestination, f as WebhookSecretStore, o as WebhookSigner, v as WebhookTransport } from "../signers-Dw9DBZjJ.js";
36
+ import { G as WorkflowGraph, c as GraphCompiler, i as BuilderStarter, r as BuilderStartCall } from "../types-D--4dv5K.js";
37
+ import { O as IncomingDestination, f as WebhookSecretStore, o as WebhookSigner, v as WebhookTransport } from "../signers-UANxMfH-.js";
38
38
  import { t as ApiModel } from "../model-Lxa_mOzB.js";
39
39
  import { l as VersionOf, t as AnyDocumentFormat } from "../format-BT0Z3V54.js";
40
- import { t as EveDocumentBackend } from "../eve-DleYrhwj.js";
40
+ import { t as EveDocumentBackend } from "../eve-CtQd4iaO.js";
41
41
  import { t as FLAG_OVERRIDES_COOKIE } from "../cookie-DDkqvqe4.js";
42
42
  import { SupabaseClient } from "@supabase/supabase-js";
43
43
  import { Adapter, Message, StateAdapter } from "chat";
@@ -7,7 +7,7 @@ import { a as ok } from "../result-8xza7w5W.js";
7
7
  import { t as BetterSupabase } from "../define-Duh2mMYk.js";
8
8
  import { i as fromBase64, o as toBase64Url, t as base64ToText } from "../base64-CEBz6-Jj.js";
9
9
  import "../claim-names-BKig1LOk.js";
10
- import { c as resolveConfig } from "../config-qqAfS_1_.js";
10
+ import { c as resolveConfig } from "../config-2SwAe0Im.js";
11
11
  import { a as isScopeName, c as templateFunctions, l as templatePlaceholders, n as TEMPLATE_PLACEHOLDERS, s as scopeProblems, u as templateProblems } from "../access-sql-Dao1C0fz.js";
12
12
  import { a as TRACKING_STATUSES, t as LABEL_FORMATS } from "../statuses-Qqpzda35.js";
13
13
  import { t as importOptionalPeer } from "../optional-peer-5SOYr3lL.js";
@@ -1,8 +1,8 @@
1
1
  import { D as ValidationIssue, t as AsyncResult } from "./result-DTOQRyGY.js";
2
2
  import { et as RecordRef } from "./types-BzIYSSWK.js";
3
3
  import { o as FilterField } from "./filter-query-Xj40B5KT.js";
4
- import { cn as RecordBindingResult, hn as TimelineItem, in as RecordBindingData } from "./define-block-CDw9YGVh.js";
5
- import { A as BindingBlocks, F as LoadBindingsOptions, M as BindingName, N as BindingOf, P as BindingSource, V as PermissionSet, _ as RecordTypeBlocks, g as RecordType, h as RecordCan } from "./index-DAS_5OfK.js";
4
+ import { cn as RecordBindingResult, hn as TimelineItem, in as RecordBindingData } from "./define-block-DBD7yhQg.js";
5
+ import { A as BindingBlocks, F as LoadBindingsOptions, M as BindingName, N as BindingOf, P as BindingSource, V as PermissionSet, _ as RecordTypeBlocks, g as RecordType, h as RecordCan } from "./index-1_-lg9Gc.js";
6
6
  import { c as ListParseOptions, m as ListSearchParams } from "./list-query-BkbLV-Yc.js";
7
7
  /**
8
8
  * How a binding fills a list column: `count` is how many rows it has (the
@@ -1,6 +1,6 @@
1
1
  import { D as ValidationIssue, b as DbError, t as AsyncResult } from "./result-DTOQRyGY.js";
2
2
  import { D as AccessTopicPolicy, O as AnyFunctions, at as Row, dt as TableKey, k as AnyModels } from "./types-BzIYSSWK.js";
3
- import { t as AuthorizationFunctions } from "./authorization-Ul_ApMYW.js";
3
+ import { t as AuthorizationFunctions } from "./authorization-CcvJbvr1.js";
4
4
  import { t as BetterSupabase } from "./define-C_He1bQO.js";
5
5
  import { et as TemplateParams, tt as TemplateValues } from "./bucket-CrsJNHzi.js";
6
6
  import { g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, m as Subscriber } from "./authorization-hooks-CR8TVvqo.js";
@@ -1,5 +1,5 @@
1
- import { _r as AppColumnFormat, br as AppOnDeleteAction, hr as AppColumnAccess, kr as AppTableVersions, vr as AppColumnType, xi as Preset } from "./context-dHluCmud.js";
2
- import { k as DesignErrorCode } from "./index-DhcLJAtX.js";
1
+ import { _r as AppColumnFormat, br as AppOnDeleteAction, hr as AppColumnAccess, kr as AppTableVersions, vr as AppColumnType, xi as Preset } from "./context-DXWyPNzr.js";
2
+ import { k as DesignErrorCode } from "./index-Bjj-GNhd.js";
3
3
  /** Where in the project pipeline an issue came from. */
4
4
  type IssueSource = "design" | "rules" | "sql" | "verifier" | "plan";
5
5
  type IssueSeverity = "error" | "warning" | "info";
@@ -4,11 +4,11 @@ import { t as StandardSchemaV1 } from "./standard-DRX6Ch1j.js";
4
4
  import { n as ExtraFields, r as FieldsOf } from "./block-fields-Puv5m5D3.js";
5
5
  import { n as Logger } from "./logger-0LfhvwE4.js";
6
6
  import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-CVlXXbda.js";
7
- import { r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
7
+ import { r as BlockTemporalOptions } from "./block-helpers-Sj-efEhC.js";
8
8
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
9
- import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
9
+ import { n as BlockHooks } from "./block-hooks-VW4knarE.js";
10
10
  import { h as FilterQuery, l as FilterFieldType } from "./filter-query-Xj40B5KT.js";
11
- import { f as WorkflowStarter, g as Workflows, p as WorkflowSubject, r as WorkflowRunMode, s as WorkflowSchedule } from "./workflows-BI4yKqFh.js";
11
+ import { f as WorkflowStarter, g as Workflows, p as WorkflowSubject, r as WorkflowRunMode, s as WorkflowSchedule } from "./workflows-D7HvWeNu.js";
12
12
  import { i as AuthorizationHooks } from "./authorization-hooks-CR8TVvqo.js";
13
13
  /** The node kinds every graph may use. */
14
14
  type WorkflowBuiltinNodeKind = "trigger" | "step" | "sleep" | "approval" | "condition";
@@ -2,9 +2,9 @@
2
2
  import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  import { n as Logger } from "./logger-0LfhvwE4.js";
4
4
  import { i as CredentialRef, r as CredentialProvider } from "./provider-CVlXXbda.js";
5
- import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
5
+ import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-Sj-efEhC.js";
6
6
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
7
- import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
7
+ import { n as BlockHooks } from "./block-hooks-VW4knarE.js";
8
8
  /**
9
9
  * A tenant's own key for a provider. The key itself stays in the credential
10
10
  * provider.
@@ -3,9 +3,9 @@ import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  import { t as StandardSchemaV1 } from "./standard-DRX6Ch1j.js";
4
4
  import { r as FieldsOf } from "./block-fields-Puv5m5D3.js";
5
5
  import { n as Logger } from "./logger-0LfhvwE4.js";
6
- import { r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
6
+ import { r as BlockTemporalOptions } from "./block-helpers-Sj-efEhC.js";
7
7
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
8
- import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
8
+ import { n as BlockHooks } from "./block-hooks-VW4knarE.js";
9
9
  import { i as AiMessage } from "./message-Cc4bkdNw.js";
10
10
  /** The claim step of a Storage API, such as the one `supportStorage` returns. */
11
11
  interface UploadClaimStorage {
@@ -2,10 +2,10 @@
2
2
  import { T as ErrorMapper, b as DbError, t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  import { It as RequestContext, St as Actor } from "./types-BzIYSSWK.js";
4
4
  import { n as Logger } from "./logger-0LfhvwE4.js";
5
- import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
5
+ import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-Sj-efEhC.js";
6
6
  import { n as SqlClient } from "./executor-DoSNec_H.js";
7
7
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
8
- import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
8
+ import { n as BlockHooks } from "./block-hooks-VW4knarE.js";
9
9
  import { t as BlockProblemOptions } from "./problem-NGBjN-TO.js";
10
10
  import { StandardSchemaV1 } from "@standard-schema/spec";
11
11
  /** One RFC 9396 `authorization_details` entry. */
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { o as Message } from "./messaging-Bfe4p9Pm.js";
2
+ import { o as Message } from "./messaging-CpQIhkFi.js";
3
3
  /** The channels an inbox can sit on. */
4
4
  type InboxChannel = "in_app" | "email" | "slack" | "teams" | "discord" | "telegram" | "whatsapp" | "messenger" | "instagram" | "sms" | "github" | "linear" | "other";
5
5
  /** `bot`: the bot answers; `human`: staff answer; `paused`: nobody answers. */
@@ -2,10 +2,10 @@
2
2
  import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  import { et as RecordRef } from "./types-BzIYSSWK.js";
4
4
  import { n as Logger } from "./logger-0LfhvwE4.js";
5
- import { r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
5
+ import { r as BlockTemporalOptions } from "./block-helpers-Sj-efEhC.js";
6
6
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
7
- import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
8
- import { n as Embedder } from "./knowledge-DWXAxvkN.js";
7
+ import { n as BlockHooks } from "./block-hooks-VW4knarE.js";
8
+ import { n as Embedder } from "./knowledge-DtECa_QW.js";
9
9
  type MemoryScope = "user" | "agent" | "chat" | "project" | "organization" | "record";
10
10
  type MemoryKind = "core" | "archival";
11
11
  /**
@@ -1,7 +1,7 @@
1
1
  import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
2
2
  import { n as Logger } from "./logger-0LfhvwE4.js";
3
3
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
4
- import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
4
+ import { n as BlockHooks } from "./block-hooks-VW4knarE.js";
5
5
  /** One call that reverses part of a change. */
6
6
  interface UndoCall {
7
7
  readonly fn: string;
@@ -1,10 +1,10 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  import { n as Logger } from "./logger-0LfhvwE4.js";
4
- import { i as CursorPageOptions, n as BlockOptions } from "./block-helpers-BNtM1tqy.js";
4
+ import { i as CursorPageOptions, n as BlockOptions } from "./block-helpers-Sj-efEhC.js";
5
5
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
6
- import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
7
- import { _ as JobHandler } from "./types-BdhE7I8Z.js";
6
+ import { n as BlockHooks } from "./block-hooks-VW4knarE.js";
7
+ import { _ as JobHandler } from "./types-LLCyr-xs.js";
8
8
  import { n as StripeSource } from "./stripe-Bl-sjnl6.js";
9
9
  interface UsageOptions extends BlockOptions {
10
10
  /**
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { b as DbError, t as AsyncResult } from "../result-DTOQRyGY.js";
3
3
  import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../provider-CVlXXbda.js";
4
- import { i as AiSandboxes, t as AiSandbox } from "../sandboxes-BF9RxxCU.js";
4
+ import { i as AiSandboxes, t as AiSandbox } from "../sandboxes-DKgJZYUZ.js";
5
5
  import { Experimental_SandboxSession } from "ai";
6
6
  /** The `provider` an adapter's rows carry in `ai_sandboxes`. */
7
7
  export declare const VERCEL_SANDBOX_PROVIDER = "vercel";
@@ -2,12 +2,12 @@ import { b as DbError } from "../result-DTOQRyGY.js";
2
2
  import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-DddDlibJ.js";
3
3
  import { mt as QuerySpec } from "../define-C_He1bQO.js";
4
4
  import { tt as TemplateValues } from "../bucket-CrsJNHzi.js";
5
- import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-CekU96q7.js";
6
- import { t as AuthSnapshot } from "../bind-B2GlypM6.js";
5
+ import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-BYF-GTW9.js";
6
+ import { t as AuthSnapshot } from "../bind-B71jMEGG.js";
7
7
  import { n as AuthSession } from "../view-eHgOOyRS.js";
8
- import { n as Controller } from "../controller-BQXgMwWN.js";
9
- import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-DIDkgzFA.js";
10
- import { n as BlockOptions } from "../block-env-Bcr-jEA1.js";
8
+ import { n as Controller } from "../controller-D3MPVovD.js";
9
+ import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-C4NOUBpu.js";
10
+ import { n as BlockOptions } from "../block-env-DzYTC9d1.js";
11
11
  import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-QSaPsL2P.js";
12
12
  import { t as SupportView } from "../support-view-DKZkZeM5.js";
13
13
  import { SupabaseClient } from "@supabase/supabase-js";
@@ -1,4 +1,4 @@
1
- import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-CekU96q7.js";
1
+ import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-BYF-GTW9.js";
2
2
  interface TopicWatch {
3
3
  readonly onMessage: (event: string, payload: unknown) => void;
4
4
  readonly onRejoin: () => void;
@@ -1,6 +1,6 @@
1
- import { G as WorkflowGraph, Z as WorkflowNodeKindInfo, i as BuilderStarter, l as NodeRunRecord } from "../../types-DtiDatvu.js";
2
- import { a as GraphStepCall, i as GraphRuntime, n as GraphNodeCall, o as GraphSubject, s as executeGraph, t as GraphApprovalCall } from "../../executor-uNDJBzT8.js";
3
- import { c as WorkflowFn } from "../../workflow-sdk-CUt0E4v6.js";
1
+ import { G as WorkflowGraph, Z as WorkflowNodeKindInfo, i as BuilderStarter, l as NodeRunRecord } from "../../types-D--4dv5K.js";
2
+ import { a as GraphStepCall, i as GraphRuntime, n as GraphNodeCall, o as GraphSubject, s as executeGraph, t as GraphApprovalCall } from "../../executor-DL7cZ-3T.js";
3
+ import { c as WorkflowFn } from "../../workflow-sdk-DzKQo265.js";
4
4
  import { World } from "@workflow/world";
5
5
  /** The env flag the Workflow SDK reads before it starts or runs dynamic source. */
6
6
  export declare const DYNAMIC_WORKFLOWS_ENV = "WORKFLOW_EXPERIMENTAL_DYNAMIC_WORKFLOWS";
@@ -1,6 +1,6 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { n as VerifyOptions, r as WebhookInput } from "../signatures-jPr9JXyw.js";
3
- import { _ as startOnEvent, a as StartOnEventOptions, b as workflowStarter, c as WorkflowFn, d as WorkflowStarterOptions, f as authorizeHook, g as startFor, h as protectWebHandler, i as StartForOptions, l as WorkflowRunAs, m as hookMetadata, n as HookForbiddenError, o as StartOnceOptions, p as contextAttributes, r as ProtectWebHandlerOptions, s as WorkflowContextOptions, t as AuthorizeHookOptions, u as WorkflowRunAsFor, v as startOnce, y as workflowContext } from "../workflow-sdk-CUt0E4v6.js";
3
+ import { _ as startOnEvent, a as StartOnEventOptions, b as workflowStarter, c as WorkflowFn, d as WorkflowStarterOptions, f as authorizeHook, g as startFor, h as protectWebHandler, i as StartForOptions, l as WorkflowRunAs, m as hookMetadata, n as HookForbiddenError, o as StartOnceOptions, p as contextAttributes, r as ProtectWebHandlerOptions, s as WorkflowContextOptions, t as AuthorizeHookOptions, u as WorkflowRunAsFor, v as startOnce, y as workflowContext } from "../workflow-sdk-DzKQo265.js";
4
4
  import { a as WorkflowMaintenance, i as RunKeyClaim, n as OpenWorkflowHook, o as WorkflowRunKeys, r as PurgeRunsOptions, s as WorkflowTerminalStatus, t as OpenHooksOptions } from "../run-keys-BnzqxtYc.js";
5
5
  import { Run } from "workflow/api";
6
6
  /** How `approvalWaiter.wait` ended. */
@@ -2,7 +2,7 @@ import { n as dbError } from "../../errors-B7tCfCvX.js";
2
2
  import { c as optionalTemporal, t as TEMPORAL_MISSING } from "../../temporal-DKTdGK9i.js";
3
3
  import { o as problemResponse } from "../../problem-C0SVHhd3.js";
4
4
  import { i as sqlIdent } from "../../template-CNq9xcfx.js";
5
- import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-6psRpDIo.js";
5
+ import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-Bps7tpOv.js";
6
6
  import { n as memoized } from "../../optional-peer-5SOYr3lL.js";
7
7
  import { n as hmacHex, r as timingSafeEqual } from "../../hmac-DNcfpmI9.js";
8
8
  import { t as watchPoolErrors } from "../../pool-errors-JrZie6u3.js";
@@ -852,6 +852,31 @@ drop trigger if exists ${trigger} on ${options.table};
852
852
  create trigger ${trigger} after insert or update or delete on ${options.table}
853
853
  for each row execute function ${fn}();`;
854
854
  }
855
+ /**
856
+ * PL/pgSQL that hands `reason` (a text SQL expression) to the state machine's
857
+ * history for the status changes that follow, or without one clears it, so
858
+ * later changes in the transaction don't inherit it.
859
+ */
860
+ const transitionReasonSql = (reason) => `perform set_config('better_supabase.transition_reason', ${reason === void 0 ? "''" : `coalesce(nullif(trim(${reason}), ''), '')`}, true);`;
861
+ /**
862
+ * PL/pgSQL that hands `actor` (a jsonb SQL expression of `id`, `name`, `email`,
863
+ * `ip` and `userAgent`) to the state machine's history trigger for the status
864
+ * changes that follow in the transaction. `id` stands in for the acting user
865
+ * only when there is no signed-in user, as for the service role.
866
+ */
867
+ function transitionActorSql(actor, code, indent = " ") {
868
+ return `if ${actor} is not null then
869
+ ${indent} if jsonb_typeof(${actor}) <> 'object' then
870
+ ${indent} ${fail(code, "actor must be an object of id, name, email, ip and userAgent", "22023")}
871
+ ${indent} end if;
872
+ ${indent} begin
873
+ ${indent} perform nullif(${actor} ->> 'ip', '')::inet, nullif(${actor} ->> 'id', '')::uuid;
874
+ ${indent} exception when invalid_text_representation then
875
+ ${indent} ${fail(code, "actor.ip must be an IP address and actor.id a user id", "22023")}
876
+ ${indent} end;
877
+ ${indent}end if;
878
+ ${indent}perform set_config('better_supabase.transition_actor', coalesce(${actor}::text, ''), true);`;
879
+ }
855
880
  // src/sql/modules/permissions-model.ts
856
881
  /**
857
882
  * The `roles` model's defaults. Module actions name these keys (see
@@ -2703,4 +2728,4 @@ const WORKFLOW_SDK_WORLD = {
2703
2728
  build,
2704
2729
  data
2705
2730
  };
2706
- export { pageSize as $, addNotNullCheck as A, extraFieldsArg as B, SCHEMA as C, addCheck as D, activeMembership as E, defaultPartitionName as F, jwtClaim as G, fail as H, disabledHelpers as I, membershipDisabledAt as J, lockTable as K, disabledHelpersNeedLaterTables as L, columnRef as M, columnsObject as N, addExtraColumns as O, defaultPartition as P, ownRowPolicies as Q, dropExpiredPartitions as R, PARTITION_VARIABLES as S, accessDefinesDisabledHelpers as T, insertExtraColumns as U, extraFieldsJson as V, jsonSchemaChecks as W, notNullCheckName as X, membershipSuspended as Y, organizationMissing as Z, rolesOf as _, withExtraFields as _t, DEFAULT_ROLES as a, replaceColumnCheck as at, MONTHLY_PARTITIONS as b, accessModel as c, serviceGrant as ct, moduleOperations as d, shortHash as dt, quotedTable as et, modulePermission as f, splitTable as ft, roleScopeIs as g, userGrant as gt, roleNames as h, updatedAt as ht, WORLD_POSTGRES_VERSION as i, renameSql as it, batchFunction as j, addForeignKey as k, hasPlatformRoles as l, serviceOnly as lt, providerPlatformRoles as m, updateExtraColumns as mt, WORKFLOW_SDK_WORLD as n, recordTrigger as nt, MODULE_PERMISSION_SCOPES as o, revokeTable as ot, modulePermissionKey as p, triggerGrant as pt, memberAddedRecord as q, WORKFLOW_VAULT_SECRETS as r, registerPartitions as rt, OPERATIONS as s, schemaPreamble as st, WORKFLOW_DELIVERY_QUEUE as t, raise as tt, isOperationModule as u, sha256Hex as ut, tenantScope as v, writeExtraColumns as vt, SERVICE_CALLER as w, NOTHING as x, EQUIVALENT_TRIGGERS as y, ensureCheck as z };
2731
+ export { pageSize as $, addNotNullCheck as A, extraFieldsArg as B, SCHEMA as C, addCheck as D, activeMembership as E, defaultPartitionName as F, jwtClaim as G, fail as H, disabledHelpers as I, membershipDisabledAt as J, lockTable as K, disabledHelpersNeedLaterTables as L, columnRef as M, columnsObject as N, addExtraColumns as O, defaultPartition as P, ownRowPolicies as Q, dropExpiredPartitions as R, PARTITION_VARIABLES as S, accessDefinesDisabledHelpers as T, insertExtraColumns as U, extraFieldsJson as V, jsonSchemaChecks as W, notNullCheckName as X, membershipSuspended as Y, organizationMissing as Z, rolesOf as _, updatedAt as _t, DEFAULT_ROLES as a, replaceColumnCheck as at, MONTHLY_PARTITIONS as b, writeExtraColumns as bt, accessModel as c, serviceGrant as ct, moduleOperations as d, shortHash as dt, quotedTable as et, modulePermission as f, splitTable as ft, roleScopeIs as g, updateExtraColumns as gt, roleNames as h, triggerGrant as ht, WORLD_POSTGRES_VERSION as i, renameSql as it, batchFunction as j, addForeignKey as k, hasPlatformRoles as l, serviceOnly as lt, providerPlatformRoles as m, transitionReasonSql as mt, WORKFLOW_SDK_WORLD as n, recordTrigger as nt, MODULE_PERMISSION_SCOPES as o, revokeTable as ot, modulePermissionKey as p, transitionActorSql as pt, memberAddedRecord as q, WORKFLOW_VAULT_SECRETS as r, registerPartitions as rt, OPERATIONS as s, schemaPreamble as st, WORKFLOW_DELIVERY_QUEUE as t, raise as tt, isOperationModule as u, sha256Hex as ut, tenantScope as v, userGrant as vt, SERVICE_CALLER as w, NOTHING as x, EQUIVALENT_TRIGGERS as y, withExtraFields as yt, ensureCheck as z };
@@ -1,6 +1,6 @@
1
1
  import { It as RequestContext } from "./types-BzIYSSWK.js";
2
- import { f as WorkflowStarter, l as WorkflowStartCall, p as WorkflowSubject, t as WorkflowPrincipalKind } from "./workflows-BI4yKqFh.js";
3
- import { a as OutboxEvent, o as OutboxHandler } from "./outbox-DikdzUKf.js";
2
+ import { f as WorkflowStarter, l as WorkflowStartCall, p as WorkflowSubject, t as WorkflowPrincipalKind } from "./workflows-D7HvWeNu.js";
3
+ import { a as OutboxEvent, o as OutboxHandler } from "./outbox-Cpxpzcue.js";
4
4
  import { Hook, Run } from "workflow/api";
5
5
  import { World } from "@workflow/world";
6
6
  /** A workflow function (a `"use workflow"` export), typed structurally. */
@@ -1,9 +1,9 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  import { n as Logger } from "./logger-0LfhvwE4.js";
4
- import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
4
+ import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-Sj-efEhC.js";
5
5
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
6
- import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
6
+ import { n as BlockHooks } from "./block-hooks-VW4knarE.js";
7
7
  import { r as RunState } from "./run-state-D0Tbl-nM.js";
8
8
  /** A workflow run's state, in the words ai-chat and ai-schedules runs share. */
9
9
  type WorkflowRunStatus = Exclude<RunState, "cancel_requested">;
@@ -1,6 +1,6 @@
1
1
  import { t as AsyncResult } from "../result-DTOQRyGY.js";
2
- import { c as RealtimeClient, r as PresenceMember } from "../topic-CekU96q7.js";
3
- import { a as DocumentSuggestion, d as OpenedDocument, l as Documents, r as DocumentRef, t as DecidedSuggestion } from "../documents-Btk0MhC0.js";
2
+ import { c as RealtimeClient, r as PresenceMember } from "../topic-BYF-GTW9.js";
3
+ import { a as DocumentSuggestion, d as OpenedDocument, l as Documents, r as DocumentRef, t as DecidedSuggestion } from "../documents-CNVPrE_0.js";
4
4
  type PresenceState = Readonly<Record<string, unknown>>;
5
5
  /** The part of a `Y.Doc` the provider uses. */
6
6
  interface YDocLike {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-supabase",
3
- "version": "0.40.0",
3
+ "version": "0.42.0",
4
4
  "description": "Strongly typed Supabase: generated schema, typed repositories, plugins, auth glue, framework integrations and the better-supabase CLI.",
5
5
  "keywords": [
6
6
  "cli",
@@ -3769,11 +3769,35 @@
3769
3769
  "type": "boolean",
3770
3770
  "default": false
3771
3771
  },
3772
+ "platformPolicies": {
3773
+ "type": "boolean",
3774
+ "default": false
3775
+ },
3776
+ "conditions": {
3777
+ "type": "string",
3778
+ "default": "rules"
3779
+ },
3780
+ "tenantless": {
3781
+ "type": "array",
3782
+ "items": {
3783
+ "type": "string"
3784
+ }
3785
+ },
3772
3786
  "extraColumns": {
3773
3787
  "type": "object",
3774
3788
  "additionalProperties": {
3775
3789
  "type": "string"
3776
3790
  }
3791
+ },
3792
+ "notifications": {
3793
+ "type": "boolean",
3794
+ "default": true
3795
+ },
3796
+ "policyExtraColumns": {
3797
+ "type": "object",
3798
+ "additionalProperties": {
3799
+ "type": "string"
3800
+ }
3777
3801
  }
3778
3802
  }
3779
3803
  }
@@ -4796,7 +4820,12 @@
4796
4820
  "withdrawApproved": {
4797
4821
  "type": "boolean",
4798
4822
  "default": false
4799
- }
4823
+ },
4824
+ "standaloneApprovals": {
4825
+ "type": "boolean",
4826
+ "default": false
4827
+ },
4828
+ "policy": {}
4800
4829
  }
4801
4830
  }
4802
4831
  }
@@ -5329,6 +5358,10 @@
5329
5358
  "reapprove": {
5330
5359
  "type": "boolean",
5331
5360
  "default": false
5361
+ },
5362
+ "approvalOwner": {
5363
+ "type": "string",
5364
+ "default": "filer"
5332
5365
  }
5333
5366
  }
5334
5367
  }
@@ -5994,6 +6027,14 @@
5994
6027
  "lineRates": {
5995
6028
  "type": "string",
5996
6029
  "default": "bps"
6030
+ },
6031
+ "workingCopy": {
6032
+ "type": "boolean",
6033
+ "default": false
6034
+ },
6035
+ "versionLines": {
6036
+ "type": "boolean",
6037
+ "default": false
5997
6038
  }
5998
6039
  }
5999
6040
  }
@@ -1 +0,0 @@
1
- export { t as addCommand } from "./add-BVs8Ym-K.js";
@@ -1 +0,0 @@
1
- export { t as powersyncStreamsCommand } from "./powersync-OIIpG-y_.js";