better-supabase 0.36.0 → 0.38.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 (366) hide show
  1. package/dist/{ai-schedules-BZPmySUa.d.ts → ai-schedules-ChJkI2jo.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-XEaCJbgv.d.ts → api-CbY2qdzT.d.ts} +3 -3
  7. package/dist/{api-keys-C82fMru4.d.ts → api-keys-BncNDlWG.d.ts} +1 -1
  8. package/dist/{app-tables-C0XVpQEJ.d.ts → app-tables-D2c0i05-.d.ts} +1 -1
  9. package/dist/{approvals-DqCv7f-G.d.ts → approvals-CXW3yFWZ.d.ts} +1 -1
  10. package/dist/astro/index.d.ts +5 -5
  11. package/dist/{authorization-2Rv1AJQJ.d.ts → authorization-D8CaAdqU.d.ts} +48 -20
  12. package/dist/{authorization-hooks-C0GfMvFm.d.ts → authorization-hooks-CR8TVvqo.d.ts} +1 -1
  13. package/dist/better-result/index.d.ts +2 -2
  14. package/dist/{bind-C2XvMlfg.d.ts → bind-5vOwNouG.d.ts} +4 -4
  15. package/dist/{block-env-BQrtLPyc.d.ts → block-env-hco8BLjC.d.ts} +4 -4
  16. package/dist/block-subjects-CINiJW1R.js +253 -0
  17. package/dist/{block-tables-DPOgnT3y.d.ts → block-tables-BsgdB6VG.d.ts} +1 -1
  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 +2 -2
  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 +3 -3
  37. package/dist/blocks/bulk/index.d.ts +2 -2
  38. package/dist/blocks/calendar/index.d.ts +3 -3
  39. package/dist/blocks/catalog/index.d.ts +26 -3
  40. package/dist/blocks/catalog/index.js +41 -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 +4 -4
  60. package/dist/blocks/enrichment/index.d.ts +3 -3
  61. package/dist/blocks/enrollments/index.d.ts +2 -2
  62. package/dist/blocks/entitlements/index.d.ts +3 -3
  63. package/dist/blocks/expenses/index.d.ts +4 -2
  64. package/dist/blocks/expenses/index.js +10 -3
  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 +3 -3
  72. package/dist/blocks/identities/index.d.ts +2 -2
  73. package/dist/blocks/imports/index.d.ts +2 -2
  74. package/dist/blocks/inbox/index.d.ts +6 -6
  75. package/dist/blocks/incidents/index.d.ts +2 -2
  76. package/dist/blocks/index.d.ts +4 -4
  77. package/dist/blocks/inventory/index.d.ts +171 -10
  78. package/dist/blocks/inventory/index.js +206 -13
  79. package/dist/blocks/invoices/index.d.ts +18 -4
  80. package/dist/blocks/invoices/index.js +13 -0
  81. package/dist/blocks/knowledge/index.d.ts +1 -1
  82. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  83. package/dist/blocks/leases/index.d.ts +2 -2
  84. package/dist/blocks/leave/index.d.ts +2 -2
  85. package/dist/blocks/leave/index.js +1 -1
  86. package/dist/blocks/ledger/index.d.ts +2 -2
  87. package/dist/blocks/mail-sync/index.d.ts +3 -3
  88. package/dist/blocks/memberships/index.d.ts +1 -1
  89. package/dist/blocks/memory/index.d.ts +1 -1
  90. package/dist/blocks/messaging/index.d.ts +7 -7
  91. package/dist/blocks/metrics/index.d.ts +2 -2
  92. package/dist/blocks/mfa/index.d.ts +2 -2
  93. package/dist/blocks/moderation/index.d.ts +2 -2
  94. package/dist/blocks/notifications/index.d.ts +7 -7
  95. package/dist/blocks/numbering/index.d.ts +2 -2
  96. package/dist/blocks/oauth-server/index.d.ts +2 -2
  97. package/dist/blocks/onboarding/index.d.ts +2 -2
  98. package/dist/blocks/orders/index.d.ts +80 -13
  99. package/dist/blocks/orders/index.js +63 -4
  100. package/dist/blocks/organizations/index.d.ts +4 -4
  101. package/dist/blocks/outbox/index.d.ts +2 -2
  102. package/dist/blocks/passes/index.d.ts +2 -2
  103. package/dist/blocks/permissions/index.d.ts +3 -3
  104. package/dist/blocks/pipelines/index.d.ts +3 -3
  105. package/dist/blocks/posts/index.d.ts +2 -2
  106. package/dist/blocks/profiles/index.d.ts +1 -1
  107. package/dist/blocks/promotions/index.d.ts +3 -3
  108. package/dist/blocks/promotions/index.js +1 -1
  109. package/dist/blocks/push/index.d.ts +3 -3
  110. package/dist/blocks/queue/index.d.ts +1 -1
  111. package/dist/blocks/quotes/index.d.ts +3 -3
  112. package/dist/blocks/rank/index.d.ts +1 -1
  113. package/dist/blocks/reactions/index.d.ts +5 -5
  114. package/dist/blocks/relations/index.d.ts +2 -2
  115. package/dist/blocks/reminders/index.d.ts +3 -3
  116. package/dist/blocks/reviews/index.d.ts +2 -2
  117. package/dist/blocks/saved-views/index.d.ts +4 -4
  118. package/dist/blocks/scores/index.d.ts +2 -2
  119. package/dist/blocks/search/index.d.ts +4 -4
  120. package/dist/blocks/security-events/index.d.ts +3 -3
  121. package/dist/blocks/segments/index.d.ts +3 -3
  122. package/dist/blocks/sequences/index.d.ts +2 -2
  123. package/dist/blocks/service-accounts/index.d.ts +2 -2
  124. package/dist/blocks/sessions/index.d.ts +2 -2
  125. package/dist/blocks/settings/index.d.ts +3 -3
  126. package/dist/blocks/share-links/index.d.ts +2 -2
  127. package/dist/blocks/shipments/index.d.ts +73 -4
  128. package/dist/blocks/shipments/index.js +57 -4
  129. package/dist/blocks/signatures/index.d.ts +2 -2
  130. package/dist/blocks/signing-keys/index.d.ts +2 -2
  131. package/dist/blocks/sla/index.d.ts +3 -3
  132. package/dist/blocks/sso/index.d.ts +3 -3
  133. package/dist/blocks/state-machine/index.d.ts +9 -2
  134. package/dist/blocks/state-machine/index.js +2 -0
  135. package/dist/blocks/subjects/index.d.ts +2 -2
  136. package/dist/blocks/tags/index.d.ts +3 -3
  137. package/dist/blocks/tasks/index.d.ts +5 -5
  138. package/dist/blocks/teams/index.d.ts +2 -2
  139. package/dist/blocks/templates/index.d.ts +122 -9
  140. package/dist/blocks/templates/index.js +157 -7
  141. package/dist/blocks/time-tracking/index.d.ts +3 -3
  142. package/dist/blocks/timeline/index.d.ts +9 -7
  143. package/dist/blocks/timeline/index.js +3 -1
  144. package/dist/blocks/trash/index.d.ts +2 -2
  145. package/dist/blocks/undo/index.d.ts +2 -2
  146. package/dist/blocks/updated-at/index.d.ts +1 -1
  147. package/dist/blocks/usage/index.d.ts +2 -2
  148. package/dist/blocks/vercel-marketplace/index.d.ts +2 -2
  149. package/dist/blocks/versions/index.d.ts +2 -2
  150. package/dist/blocks/waitlist/index.d.ts +2 -2
  151. package/dist/blocks/webhooks/index.d.ts +6 -6
  152. package/dist/blocks/workflow-editor/index.d.ts +7 -7
  153. package/dist/blocks/workflows/index.d.ts +5 -5
  154. package/dist/{carrier-D2b_028L.d.ts → carrier-B2eytEjR.d.ts} +10 -1
  155. package/dist/chat-sdk/index.d.ts +2 -2
  156. package/dist/claims/index.d.ts +5 -5
  157. package/dist/cli/{add-Duf1-19E.js → add-7nCSDmpt.js} +11 -11
  158. package/dist/cli/{add-D2CH8t_B.js → add-B4tQpnXP.js} +2 -2
  159. package/dist/cli/add-CdDneXMN.js +1 -0
  160. package/dist/cli/{app-table-files-ha8X0rRE.js → app-table-files-CtO-zxpO.js} +2 -2
  161. package/dist/cli/{app-tables-BIyQcsHH.js → app-tables-B7UzcJ_g.js} +2 -2
  162. package/dist/cli/{backfill-CLgA6-ll.js → backfill-B2nFDXaS.js} +2 -2
  163. package/dist/cli/bin.js +1 -1
  164. package/dist/cli/{blocks-9AeouX4h.js → blocks-BX_6HUQT.js} +2 -2
  165. package/dist/cli/{blocks-BVB1fMMj.js → blocks-DU4iDrYS.js} +1 -1
  166. package/dist/cli/{cache-aMk9vF1_.js → cache-bS5bAoF-.js} +1 -1
  167. package/dist/cli/{codemod-B5wrcnF2.js → codemod-B1sSIE2p.js} +88 -62
  168. package/dist/cli/{command-DM_x_yzZ.js → command-67WobzTC.js} +7 -1
  169. package/dist/cli/{completion-DbYb3N8e.js → completion-C3nMZgUZ.js} +2 -2
  170. package/dist/cli/{completion-CusuUJNn.js → completion-DSrus7H1.js} +1 -1
  171. package/dist/cli/{completion-Cx2UYd-y.js → completion-Dm0S3ub0.js} +2 -2
  172. package/dist/cli/{config-BeuImpav.js → config-cbK-wiNs.js} +1 -1
  173. package/dist/cli/{content-mapper-CEtdbshU.js → content-mapper-CW6V6VRq.js} +2 -2
  174. package/dist/cli/{db-CeiQzhPq.js → db-bK5eCLaE.js} +1 -1
  175. package/dist/cli/{doctor-DaOUWfRN.js → doctor-Dw2pAf1b.js} +16 -16
  176. package/dist/cli/env-AFfMXxWw.js +1 -0
  177. package/dist/cli/{env-DVV10l_r.js → env-CCT-dMFm.js} +1 -1
  178. package/dist/cli/{gen-BO-2NF-G.js → gen-BtoSx3go.js} +14 -14
  179. package/dist/cli/index.d.ts +1 -1
  180. package/dist/cli/index.js +7 -7
  181. package/dist/cli/{init-Xit9Hnbb.js → init-DZXbrKuJ.js} +9 -9
  182. package/dist/cli/{keys-DJTN2Avl.js → keys-Dj5sJNj7.js} +1 -1
  183. package/dist/cli/{live-CuMpyRjF.js → live-CDFfJcdR.js} +2 -2
  184. package/dist/cli/{mcp-C7d4j5cq.js → mcp-BukxvITV.js} +3 -3
  185. package/dist/cli/{metadata-D2YvkY2D.js → metadata-iZizGVuY.js} +3 -3
  186. package/dist/cli/{migrate-BCXxyTKt.js → migrate-DPnnGLzw.js} +2 -2
  187. package/dist/cli/{migration-safety-DfwTOBQ4.js → migration-safety-COcnZbMO.js} +1 -1
  188. package/dist/cli/{migrations-nomh4TBo.js → migrations-BBt9fmiV.js} +2 -2
  189. package/dist/cli/{module-migration--9T_T-zt.js → module-migration-tCmPLhQp.js} +2 -2
  190. package/dist/cli/{moved-CT6i1csY.js → moved-CY0yDtAr.js} +1 -1
  191. package/dist/cli/{parse-qgJylE_A.js → parse-yAC-NFMq.js} +1 -1
  192. package/dist/cli/{powersync-DB9WZsIv.js → powersync-BRmUJ-uR.js} +4 -4
  193. package/dist/cli/powersync-CYLPcJ9G.js +1 -0
  194. package/dist/cli/{print-S6IF5rZm.js → print-DdwQNG_e.js} +2 -2
  195. package/dist/cli/{providers-BDTcal71.js → providers-CaNg6Ayz.js} +1 -1
  196. package/dist/cli/{prune-workflows-Zr2DjByi.js → prune-workflows-BQQrI3tU.js} +2 -2
  197. package/dist/cli/{remove-CPX5Tg5s.js → remove-BEj9YEON.js} +6 -6
  198. package/dist/cli/{render-Bp7a7XQ9.js → render-UBqU9r44.js} +3 -3
  199. package/dist/cli/{run-BclCFEyP.js → run-3E_IuJzS.js} +9 -9
  200. package/dist/cli/{run-kgG50x_Z.js → run-BXlX9YdD.js} +44 -43
  201. package/dist/cli/{run-BlVaLnt_.js → run-DX4X7xqV.js} +2 -2
  202. package/dist/cli/seed-CLlvrV8I.js +1 -0
  203. package/dist/cli/{seed-Cn2R91cd.js → seed-DSC6f0oh.js} +1 -1
  204. package/dist/cli/{shared-D60W9NS-.js → shared-agrqD28l.js} +1 -1
  205. package/dist/cli/{skills-DH-yPDny.js → skills-B5p6bDwe.js} +1 -1
  206. package/dist/cli/{snapshot-C3_eQUgY.js → snapshot-DOXmozSq.js} +2 -2
  207. package/dist/cli/{source-Bk6XwIAK.js → source-BfJprU-6.js} +1 -1
  208. package/dist/cli/{spec-BDTpcBns.js → spec-CgtIHFsl.js} +1 -1
  209. package/dist/cli/{spec-C8ydQwZC.js → spec-DRpSQGOW.js} +3 -3
  210. package/dist/cli/{sql-layout-DVQ20UMi.js → sql-layout-Cs3FMWcY.js} +2 -2
  211. package/dist/cli/{stack-CmhSfY5V.js → stack-CQXLe5j0.js} +1 -1
  212. package/dist/cli/{sync-D-WO4Yvl.js → sync-C_YGIDjk.js} +4 -4
  213. package/dist/cli/{table-k5OABwy3.js → table-BIQA9Hdt.js} +1 -1
  214. package/dist/cli/{upgrade-DGe5Pv6v.js → upgrade-ByQeJRGU.js} +5 -5
  215. package/dist/cli/{upgrade-XdhMuHAu.js → upgrade-OG9vaBeX.js} +3 -3
  216. package/dist/cli/{version-DKfeme2I.js → version-CF6Yzah0.js} +1 -1
  217. package/dist/client/index.d.ts +5 -5
  218. package/dist/client/native/index.d.ts +4 -4
  219. package/dist/{cloud-event-BEmAUdl1.d.ts → cloud-event-BjgxkfJJ.d.ts} +1 -1
  220. package/dist/{codecs-B9v5Y5HH.js → codecs-D_pOvjvD.js} +1 -0
  221. package/dist/{codecs-B1VO2BGL.d.ts → codecs-DaP45ETv.d.ts} +1 -1
  222. package/dist/{composite-B-oAH16L.d.ts → composite-DPN4SFud.d.ts} +6 -6
  223. package/dist/config/index.d.ts +2 -2
  224. package/dist/config/index.js +4 -4
  225. package/dist/{config-BrRlSxhx.js → config-1-UmQczM.js} +1 -1
  226. package/dist/{config-BKxjItQ-.js → config-AEB5iNEO.js} +4 -123
  227. package/dist/{connectors-CrLRW4Ol.d.ts → connectors-DDsdz-cn.d.ts} +1 -1
  228. package/dist/{context-yfOlyAqb.d.ts → context-CH5FYnVk.d.ts} +2 -2
  229. package/dist/contract/index.d.ts +8 -8
  230. package/dist/{controller-CAcLEndc.d.ts → controller-CJ6rLnpS.d.ts} +1 -1
  231. package/dist/{conversion-s1NtB6S-.d.ts → conversion-CLBBITW5.d.ts} +1 -1
  232. package/dist/create/index.d.ts +3 -3
  233. package/dist/create/index.js +3 -3
  234. package/dist/create/lite/index.d.ts +3 -3
  235. package/dist/create/lite/index.js +2 -2
  236. package/dist/credentials/index.d.ts +3 -3
  237. package/dist/{define-BvkaC3Oh.d.ts → define-C_He1bQO.d.ts} +1 -1
  238. package/dist/{define-block-Ds3aLZwz.d.ts → define-block-CDw9YGVh.d.ts} +4 -4
  239. package/dist/edge/index.d.ts +8 -8
  240. package/dist/elysia/index.d.ts +1 -1
  241. package/dist/{ended-iq2wp8fc.d.ts → ended-BwpmNC5k.d.ts} +1 -1
  242. package/dist/{entitlements-Dhu-4vlH.d.ts → entitlements-6gODwBSz.d.ts} +2 -2
  243. package/dist/eve/index.d.ts +3 -3
  244. package/dist/events/index.d.ts +3 -3
  245. package/dist/{events-DCw3c6pj.d.ts → events-DddDlibJ.d.ts} +8 -0
  246. package/dist/{executor-H8ZLkeHj.d.ts → executor-CxMHiDp_.d.ts} +2 -2
  247. package/dist/{executor-B-o7QMPp.d.ts → executor-uNDJBzT8.d.ts} +1 -1
  248. package/dist/expo/index.d.ts +3 -3
  249. package/dist/{field-errors-DXZk9Qjt.d.ts → field-errors-CdSjV9Zo.d.ts} +7 -7
  250. package/dist/flags-sdk/index.d.ts +1 -1
  251. package/dist/{framework-Byr_j8G-.d.ts → framework-B6JAPr1i.d.ts} +7 -7
  252. package/dist/h3/index.d.ts +1 -1
  253. package/dist/h3/v1/index.d.ts +1 -1
  254. package/dist/hono/index.d.ts +8 -8
  255. package/dist/{index-lMApFSAd.d.ts → index-B5awu2SP.d.ts} +3 -3
  256. package/dist/{index-CnzGRpeH.d.ts → index-BgRl484n.d.ts} +5 -5
  257. package/dist/{index-6H-8Ib1w.d.ts → index-CgKieWlO.d.ts} +3 -3
  258. package/dist/{index-kkZwp5M1.d.ts → index-CrOeAgSh.d.ts} +4 -4
  259. package/dist/{index-Ag-T51Jl.d.ts → index-CvLTqmdq.d.ts} +1 -1
  260. package/dist/{index-Dbd1E5Au.d.ts → index-DAS_5OfK.d.ts} +3 -3
  261. package/dist/{index-CY612vAg.d.ts → index-DjJUamhw.d.ts} +2 -2
  262. package/dist/{index-Dv6lfL5p.d.ts → index-DnEJVKQ2.d.ts} +11 -11
  263. package/dist/{index-BUluRi0b.d.ts → index-DzLLMmUB.d.ts} +5 -5
  264. package/dist/{index-C78VPlXW.d.ts → index-vkd2LTt2.d.ts} +1 -1
  265. package/dist/index.d.ts +2 -2
  266. package/dist/{instances-xQ2lupVE.js → instances-Bycf_aus.js} +86 -7
  267. package/dist/{kit-DCuO1ZhB.d.ts → kit-lHFpu2_1.d.ts} +3 -3
  268. package/dist/list/index.d.ts +1 -1
  269. package/dist/{list-query-D1h3Dmnk.d.ts → list-query-BkbLV-Yc.d.ts} +1 -1
  270. package/dist/mapper/bin.js +5 -5
  271. package/dist/mcp/index.d.ts +3 -3
  272. package/dist/mcp/sdk/index.d.ts +5 -5
  273. package/dist/nestjs/index.d.ts +2 -2
  274. package/dist/next/client/index.d.ts +1 -1
  275. package/dist/next/index.d.ts +22 -22
  276. package/dist/node/index.d.ts +2 -2
  277. package/dist/{operations-SWpzGC_K.d.ts → operations-knMnfzgm.d.ts} +1 -1
  278. package/dist/{options-DqmTs2nv.js → options-CEwoGUk_.js} +2 -1
  279. package/dist/{options-yRwYr4up.js → options-CGQC7Wue.js} +4 -1
  280. package/dist/{options-RYbyaVhv.js → options-CS1DA8q9.js} +1 -0
  281. package/dist/{options-ScQ6Hnxo.js → options-zsLpIqBA.js} +2 -1
  282. package/dist/orpc/index.d.ts +7 -7
  283. package/dist/otel/index.d.ts +1 -1
  284. package/dist/otel/index.js +4 -4
  285. package/dist/{outbox-BFZS6Kvz.d.ts → outbox-DikdzUKf.d.ts} +2 -2
  286. package/dist/{permissions-2UlVQDzY.d.ts → permissions-Ed8WvLgQ.d.ts} +1 -1
  287. package/dist/{pool-yO-LzZAd.d.ts → pool-BJAjQcrJ.d.ts} +1 -1
  288. package/dist/{ports-prqYrReN.d.ts → ports-Bnwy2mlR.d.ts} +1 -1
  289. package/dist/postgres/index.d.ts +1 -1
  290. package/dist/powersync/index.d.ts +3 -3
  291. package/dist/preset/index.d.ts +3 -3
  292. package/dist/preset/index.js +3 -3
  293. package/dist/{preset-BvHNleCo.js → preset-DkeXFh7e.js} +2 -2
  294. package/dist/{project-CBvowdKY.js → project-By0R8ioI.js} +5 -5
  295. package/dist/{provider-bIAzxVMB.d.ts → provider-CVlXXbda.d.ts} +1 -1
  296. package/dist/{push-token-DtqJeg8w.d.ts → push-token-CJbEvwjI.d.ts} +1 -1
  297. package/dist/query/index.d.ts +1 -1
  298. package/dist/react/index.d.ts +8 -8
  299. package/dist/react/native/index.d.ts +1 -1
  300. package/dist/react/server.d.ts +9 -9
  301. package/dist/react/session.d.ts +1 -1
  302. package/dist/react-router/index.d.ts +5 -5
  303. package/dist/realtime/index.d.ts +4 -4
  304. package/dist/{record-form-BQA-lawE.d.ts → record-form-C-gIxGXe.d.ts} +1 -1
  305. package/dist/records/index.d.ts +7 -7
  306. package/dist/{refusal-BX1EvmpJ.d.ts → refusal-CjUUBfhY.d.ts} +2 -2
  307. package/dist/{resolve-BIpQRhvF.d.ts → resolve-XlMQRUeG.d.ts} +1 -1
  308. package/dist/{resource-execute-A1NbR-sd.d.ts → resource-execute-B7-QaS6R.d.ts} +1 -1
  309. package/dist/{resource-types-CTcc37WL.d.ts → resource-types-CF3Uc6OW.d.ts} +2 -2
  310. package/dist/{resources-13ZFX1G6.d.ts → resources-DnHSmJIM.d.ts} +1 -1
  311. package/dist/{respond-CAxhkwAi.d.ts → respond-D7kUatjc.d.ts} +1 -1
  312. package/dist/server/index.d.ts +21 -21
  313. package/dist/{server-types-DEjva0MW.d.ts → server-types-DpI82uNq.d.ts} +8 -8
  314. package/dist/{session-CeYL3EPm.d.ts → session-JV1z0kxa.d.ts} +2 -2
  315. package/dist/{session-BA0YDmjt.d.ts → session-s-mUZ8RQ.d.ts} +5 -5
  316. package/dist/{session-status-Df6tuKY9.d.ts → session-status-CJjTuFtA.d.ts} +2 -2
  317. package/dist/{sign-in-4u4vLtXG.d.ts → sign-in-D5Bg7R47.d.ts} +1 -1
  318. package/dist/solid/index.d.ts +9 -9
  319. package/dist/solid-start/index.d.ts +5 -5
  320. package/dist/spec/index.d.ts +1 -1
  321. package/dist/sql/index.d.ts +5 -5
  322. package/dist/sql/index.js +3 -3
  323. package/dist/{sql-BChN3Hxv.js → sql-B2cMvGnZ.js} +4207 -756
  324. package/dist/sqlite/index.d.ts +1 -1
  325. package/dist/ssr/index.d.ts +4 -4
  326. package/dist/{statuses-BTrQ5H4S.js → statuses-Qqpzda35.js} +12 -1
  327. package/dist/stock-detail-BMqvwq1q.js +12 -0
  328. package/dist/stock-detail-BRIt7CjU.d.ts +19 -0
  329. package/dist/{subject-readers-YL8H9G8X.d.ts → subject-readers-D1Km_Q42.d.ts} +1 -1
  330. package/dist/{support-BwtMgjVg.d.ts → support-Dj5V2WTs.d.ts} +4 -4
  331. package/dist/{support-view-GykHOIQ2.d.ts → support-view-DKZkZeM5.d.ts} +1 -1
  332. package/dist/svelte/index.d.ts +8 -8
  333. package/dist/sveltekit/index.d.ts +6 -6
  334. package/dist/{tags-CAfvzA1U.d.ts → tags-BihwKkTT.d.ts} +1 -1
  335. package/dist/tanstack-db/index.d.ts +1 -1
  336. package/dist/tanstack-start/index.d.ts +5 -5
  337. package/dist/{tenant-lBgoqg9T.d.ts → tenant-eZNRWTRJ.d.ts} +1 -1
  338. package/dist/testing/index.d.ts +17 -17
  339. package/dist/testing/index.js +2 -2
  340. package/dist/{timeline-CrO48Qa6.d.ts → timeline-c6I3uxya.d.ts} +3 -3
  341. package/dist/{topic-x-mrN_Ff.d.ts → topic-D7F2FBNp.d.ts} +3 -3
  342. package/dist/{types-auvHrNWC.d.ts → types-BXLiM6VM.d.ts} +1 -1
  343. package/dist/{types-C9XfFGmA.d.ts → types-DtiDatvu.d.ts} +2 -2
  344. package/dist/{types-CJqNGQKb.d.ts → types-bqvFoBhf.d.ts} +2 -2
  345. package/dist/{vault-DjbG4XQS.d.ts → vault-CbhvnoVC.d.ts} +1 -1
  346. package/dist/vercel-connect/index.d.ts +1 -1
  347. package/dist/vercel-sandbox/index.d.ts +1 -1
  348. package/dist/{verify-HOiu3lRR.d.ts → verify-Cpc1upDA.d.ts} +1 -1
  349. package/dist/{view-DdDY88SC.d.ts → view-eHgOOyRS.d.ts} +1 -1
  350. package/dist/vue/index.d.ts +9 -9
  351. package/dist/{watch-topic-D6bcqOrJ.d.ts → watch-topic-BIEaSN0Y.d.ts} +1 -1
  352. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  353. package/dist/workflow-sdk/index.d.ts +1 -1
  354. package/dist/workflow-sdk/world/index.d.ts +1 -1
  355. package/dist/workflow-sdk/world/index.js +1 -1
  356. package/dist/{workflow-sdk-CBS8L2Ku.js → workflow-sdk-6psRpDIo.js} +2 -50
  357. package/dist/{workflow-sdk-D3H10W5h.d.ts → workflow-sdk-CUt0E4v6.d.ts} +1 -1
  358. package/dist/yjs/index.d.ts +1 -1
  359. package/package.json +1 -1
  360. package/schemas/config-v1.json +15 -0
  361. package/skills/better-supabase-auth/SKILL.md +1 -1
  362. package/dist/cli/add-De73Ghlh.js +0 -1
  363. package/dist/cli/env-BfWbheiC.js +0 -1
  364. package/dist/cli/powersync-IBM_v_eJ.js +0 -1
  365. package/dist/cli/seed-DGGjReq4.js +0 -1
  366. package/dist/resolved-names-b6P2--jK.js +0 -130
@@ -1,6 +1,6 @@
1
1
  import { Vt as Executor } from "../types-BzIYSSWK.js";
2
2
  import { c as LocalTablesOption, n as DataEngine, s as LiveEngineOptions } from "../data-engine-CX1oYDZl.js";
3
- import { i as fromSqliteError, n as SqliteDatabaseLike, o as CheckSqliteOptions, r as SqliteExecutorOptions, s as checkSqlite, t as SqliteContextLike } from "../executor-H8ZLkeHj.js";
3
+ import { i as fromSqliteError, n as SqliteDatabaseLike, o as CheckSqliteOptions, r as SqliteExecutorOptions, s as checkSqlite, t as SqliteContextLike } from "../executor-CxMHiDp_.js";
4
4
  /** A SQLite database that may report which tables changed. */
5
5
  interface ChangingSqliteDatabase extends SqliteDatabaseLike {
6
6
  onChange?(handler: {
@@ -1,5 +1,5 @@
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-BIpQRhvF.js";
2
- import { r as MembershipClaim } from "../entitlements-Dhu-4vlH.js";
3
- import { n as AuthSession, o as toSession } from "../view-DdDY88SC.js";
4
- import { a as sessionStatus, i as clearSessionCookies, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-iq2wp8fc.js";
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-6gODwBSz.js";
3
+ import { n as AuthSession, o as toSession } from "../view-eHgOOyRS.js";
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 };
@@ -24,4 +24,15 @@ const SHIPMENT_STATUSES = [
24
24
  "returned",
25
25
  "cancelled"
26
26
  ];
27
- export { SHIPMENT_STATUSES as n, TRACKING_STATUSES as r, LABEL_FORMATS as t };
27
+ /** Where a line's stock goes: out to the recipient, or back from them. */
28
+ const LINE_DIRECTIONS = ["outbound", "return"];
29
+ /**
30
+ * What happens to returned stock: `restock` puts it back in sellable stock,
31
+ * `hold` puts it in a hold bin for inspection and `scrap` writes it off.
32
+ */
33
+ const RETURN_DISPOSITIONS = [
34
+ "restock",
35
+ "hold",
36
+ "scrap"
37
+ ];
38
+ export { TRACKING_STATUSES as a, SHIPMENT_STATUSES as i, LINE_DIRECTIONS as n, RETURN_DISPOSITIONS as r, LABEL_FORMATS as t };
@@ -0,0 +1,12 @@
1
+ // src/commerce/stock-detail.ts
2
+ /** `detail` as the SQL functions take it. */
3
+ function detailArg(detail) {
4
+ if (detail === void 0) return null;
5
+ return {
6
+ ...detail.binId === void 0 ? {} : { binId: detail.binId },
7
+ ...detail.lotId === void 0 ? {} : { lotId: detail.lotId },
8
+ ...detail.lot === void 0 ? {} : { lot: { ...detail.lot } },
9
+ ...detail.serials === void 0 ? {} : { serials: [...detail.serials] }
10
+ };
11
+ }
12
+ export { detailArg as t };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Where a movement's stock sits: a bin, a lot (by id, or by code with an expiry
3
+ * date to create it) and the serial numbers it moves.
4
+ */
5
+ interface StockDetail {
6
+ readonly binId?: string;
7
+ readonly lotId?: string;
8
+ /**
9
+ * A lot by code, created when it doesn't exist yet; `expiresOn` is
10
+ * `YYYY-MM-DD`.
11
+ */
12
+ readonly lot?: {
13
+ readonly code: string;
14
+ readonly expiresOn?: string;
15
+ };
16
+ /** One per unit, for a variant tracked by serial. */
17
+ readonly serials?: readonly string[];
18
+ }
19
+ export { StockDetail as t };
@@ -1,5 +1,5 @@
1
1
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
2
- import { g as SubscriberPolicy } from "./authorization-hooks-C0GfMvFm.js";
2
+ import { g as SubscriberPolicy } from "./authorization-hooks-CR8TVvqo.js";
3
3
  interface SubjectReadersOptions {
4
4
  /** The schema of the `subjects` module. Default `better_supabase`. */
5
5
  readonly schema?: string;
@@ -1,10 +1,10 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { t as AsyncResult } from "./result-DTOQRyGY.js";
3
- import { o as EventHub } from "./events-DCw3c6pj.js";
4
- import { r as AuthState } from "./resolve-BIpQRhvF.js";
3
+ import { o as EventHub } from "./events-DddDlibJ.js";
4
+ import { r as AuthState } from "./resolve-XlMQRUeG.js";
5
5
  import { a as ProblemFormat } from "./problem-NGBjN-TO.js";
6
- import { _ as SupportAuthorize, i as AuthorizationHooks } from "./authorization-hooks-C0GfMvFm.js";
7
- import { t as BetterPostgres } from "./pool-yO-LzZAd.js";
6
+ import { _ as SupportAuthorize, i as AuthorizationHooks } from "./authorization-hooks-CR8TVvqo.js";
7
+ import { t as BetterPostgres } from "./pool-BJAjQcrJ.js";
8
8
  import { StandardSchemaV1 } from "@standard-schema/spec";
9
9
  type SupportEndedBy = "admin" | "expired" | "revoked";
10
10
  /** A support session: a platform admin viewing the app as `targetUserId`. */
@@ -1,4 +1,4 @@
1
- import { n as AuthSession } from "./view-DdDY88SC.js";
1
+ import { n as AuthSession } from "./view-eHgOOyRS.js";
2
2
  /** A running support session as the target's view shows it, for a banner. */
3
3
  interface SupportView {
4
4
  readonly sessionId: string;
@@ -1,13 +1,13 @@
1
1
  import { b as DbError } from "../result-DTOQRyGY.js";
2
- import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-DCw3c6pj.js";
3
- import { mt as QuerySpec } from "../define-BvkaC3Oh.js";
2
+ import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-DddDlibJ.js";
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-x-mrN_Ff.js";
6
- import { t as AuthSnapshot } from "../bind-C2XvMlfg.js";
7
- import { n as AuthSession } from "../view-DdDY88SC.js";
8
- import { n as Controller } from "../controller-CAcLEndc.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-DXZk9Qjt.js";
10
- import { n as BlockOptions } from "../block-env-BQrtLPyc.js";
5
+ import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-D7F2FBNp.js";
6
+ import { t as AuthSnapshot } from "../bind-5vOwNouG.js";
7
+ import { n as AuthSession } from "../view-eHgOOyRS.js";
8
+ import { n as Controller } from "../controller-CJ6rLnpS.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-CdSjV9Zo.js";
10
+ import { n as BlockOptions } from "../block-env-hco8BLjC.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,11 +1,11 @@
1
1
  import { O as AnyFunctions, Ut as AnyAuthorizer, k as AnyModels, rn as PermissionRef } from "../types-BzIYSSWK.js";
2
- import { t as BetterSupabase } from "../define-BvkaC3Oh.js";
3
- import { r as BetterServer } from "../server-types-DEjva0MW.js";
4
- import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-DCuO1ZhB.js";
5
- import { t as RefusalRedirects } from "../refusal-BX1EvmpJ.js";
6
- import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-Byr_j8G-.js";
2
+ import { t as BetterSupabase } from "../define-C_He1bQO.js";
3
+ import { r as BetterServer } from "../server-types-DpI82uNq.js";
4
+ import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-lHFpu2_1.js";
5
+ import { t as RefusalRedirects } from "../refusal-CjUUBfhY.js";
6
+ import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-B6JAPr1i.js";
7
7
  import { t as Validated } from "../shared-DsBcvj6q.js";
8
- import { i as tagFor } from "../tags-CAfvzA1U.js";
8
+ import { i as tagFor } from "../tags-BihwKkTT.js";
9
9
  import { AnyEntry, Contributions } from "@supabase/middleware";
10
10
  import { StandardSchemaV1 } from "@standard-schema/spec";
11
11
  /** The part of SvelteKit's `RequestEvent` the bridge reads and writes. */
@@ -1,4 +1,4 @@
1
- import { $t as CacheTarget, Qt as CacheAdapter } from "./define-BvkaC3Oh.js";
1
+ import { $t as CacheTarget, Qt as CacheAdapter } from "./define-C_He1bQO.js";
2
2
  interface TagOptions {
3
3
  /** The tenant the read is scoped to; `"*"` is every tenant's reads. */
4
4
  readonly tenant?: string;
@@ -1,5 +1,5 @@
1
1
  import { O as AnyFunctions, dt as TableKey, k as AnyModels } from "../types-BzIYSSWK.js";
2
- import { t as BetterSupabase, y as Db } from "../define-BvkaC3Oh.js";
2
+ import { t as BetterSupabase, y as Db } from "../define-C_He1bQO.js";
3
3
  import { n as DataEngine } from "../data-engine-CX1oYDZl.js";
4
4
  import { t as BetterQueryMeta } from "../invalidate-DAB9CaPm.js";
5
5
  import { QueryClient, SkipToken } from "@tanstack/query-core";
@@ -1,9 +1,9 @@
1
1
  import { O as AnyFunctions, Ut as AnyAuthorizer, k as AnyModels, rn as PermissionRef } from "../types-BzIYSSWK.js";
2
- import { t as BetterSupabase } from "../define-BvkaC3Oh.js";
3
- import { r as BetterServer } from "../server-types-DEjva0MW.js";
4
- import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-DCuO1ZhB.js";
5
- import { t as RefusalRedirects } from "../refusal-BX1EvmpJ.js";
6
- import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-Byr_j8G-.js";
2
+ import { t as BetterSupabase } from "../define-C_He1bQO.js";
3
+ import { r as BetterServer } from "../server-types-DpI82uNq.js";
4
+ import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-lHFpu2_1.js";
5
+ import { t as RefusalRedirects } from "../refusal-CjUUBfhY.js";
6
+ import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-B6JAPr1i.js";
7
7
  import { t as Validated } from "../shared-DsBcvj6q.js";
8
8
  import { AnyEntry, Contributions } from "@supabase/middleware";
9
9
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -1,4 +1,4 @@
1
- import { s as ClaimsSource } from "./entitlements-Dhu-4vlH.js";
1
+ import { s as ClaimsSource } from "./entitlements-6gODwBSz.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
@@ -1,39 +1,39 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { Ct as AnyPlugin, It as RequestContext, O as AnyFunctions, St as Actor, Vt as Executor, Xt as AuthorizationRequest, Yt as AuthorizationPurpose, Zt as AuthorizationResource, at as Row, dt as TableKey, en as Authorizer, et as RecordRef, gt as Update, k as AnyModels, q as Insert, st as SchemaMeta } from "../types-BzIYSSWK.js";
3
- import { o as EventHub } from "../events-DCw3c6pj.js";
3
+ import { o as EventHub } from "../events-DddDlibJ.js";
4
4
  import { c as InlineJwks, t as BetterSupabaseEnv } from "../index-F6lsRlsr.js";
5
- import { m as SessionSnapshot, n as AuthResolver } from "../resolve-BIpQRhvF.js";
6
- import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../provider-bIAzxVMB.js";
5
+ import { m as SessionSnapshot, n as AuthResolver } from "../resolve-XlMQRUeG.js";
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
8
  import { a as BlockTransportMiddleware } from "../block-hooks-CtMsgLQr.js";
9
9
  import { a as SessionActor, o as SessionDelegation } from "../actor-DseNR02I.js";
10
10
  import { L as QueueProvider } from "../types-BdhE7I8Z.js";
11
11
  import { n as Embedder } from "../knowledge-DWXAxvkN.js";
12
- import { a as AuthorizationProvider } from "../authorization-2Rv1AJQJ.js";
12
+ import { a as AuthorizationProvider } from "../authorization-D8CaAdqU.js";
13
13
  import { o as StreamStore } from "../store-c7QxUHX-.js";
14
- import { Qt as CacheAdapter, Y as DbStats, t as BetterSupabase, y as Db } from "../define-BvkaC3Oh.js";
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-Ds3aLZwz.js";
17
+ import { tn as AnyRecordBinding } from "../define-block-CDw9YGVh.js";
18
18
  import { n as Money } from "../money-BgpAd7d3.js";
19
- import { i as EventSink, t as CloudEvent } from "../cloud-event-BEmAUdl1.js";
20
- import { i as AuthorizationHooks } from "../authorization-hooks-C0GfMvFm.js";
21
- import { s as SqlClaims, t as BetterPostgres } from "../pool-yO-LzZAd.js";
22
- import { l as ServerOptions, o as ServerContext } from "../server-types-DEjva0MW.js";
23
- import { C as SupportSessionStore } from "../support-BwtMgjVg.js";
24
- import { r as GuardOptions } from "../respond-CAxhkwAi.js";
19
+ import { i as EventSink, t as CloudEvent } from "../cloud-event-BjgxkfJJ.js";
20
+ import { i as AuthorizationHooks } from "../authorization-hooks-CR8TVvqo.js";
21
+ import { s as SqlClaims, t as BetterPostgres } from "../pool-BJAjQcrJ.js";
22
+ import { l as ServerOptions, o as ServerContext } from "../server-types-DpI82uNq.js";
23
+ import { C as SupportSessionStore } from "../support-Dj5V2WTs.js";
24
+ import { r as GuardOptions } from "../respond-D7kUatjc.js";
25
25
  import { l as Transcriber, s as NoteTaker, u as TranscriberInput } from "../recordings-Bw5LoocX.js";
26
- import { n as Controller } from "../controller-CAcLEndc.js";
27
- import { c as AiTaskRunner, o as AiTaskRun, r as AiTask } from "../ai-schedules-BZPmySUa.js";
28
- import { Qt as GeneratorModel, Vt as Generator, Yt as GeneratorInput, cn as ResolvedConfig } from "../context-yfOlyAqb.js";
26
+ import { n as Controller } from "../controller-CJ6rLnpS.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-CH5FYnVk.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
31
  import { y as FlagValue } from "../flags-Cuew4tGx.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
- import { p as ShippingProvider, s as ShipmentAddress } from "../carrier-D2b_028L.js";
36
- import { G as WorkflowGraph, c as GraphCompiler, i as BuilderStarter, r as BuilderStartCall } from "../types-C9XfFGmA.js";
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
37
  import { O as IncomingDestination, f as WebhookSecretStore, o as WebhookSigner, v as WebhookTransport } from "../signers-Dw9DBZjJ.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";
@@ -7,9 +7,9 @@ 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-BKxjItQ-.js";
10
+ import { c as resolveConfig } from "../config-AEB5iNEO.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
- import { r as TRACKING_STATUSES, t as LABEL_FORMATS } from "../statuses-BTrQ5H4S.js";
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";
14
14
  import { i as seedLite, n as loadLite, r as migrateLite, t as LITE_INSTALL } from "../runtime-qslVrC9l.js";
15
15
  import { t as buildApiModel } from "../build-Ckxct2EX.js";
@@ -1,9 +1,9 @@
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-Ds3aLZwz.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-Dbd1E5Au.js";
6
- import { c as ListParseOptions, m as ListSearchParams } from "./list-query-D1h3Dmnk.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";
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
9
9
  * binding's `count`, one query for the page), `data` its rows (its `column`, or
@@ -1,9 +1,9 @@
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-2Rv1AJQJ.js";
4
- import { t as BetterSupabase } from "./define-BvkaC3Oh.js";
3
+ import { t as AuthorizationFunctions } from "./authorization-D8CaAdqU.js";
4
+ import { t as BetterSupabase } from "./define-C_He1bQO.js";
5
5
  import { et as TemplateParams, tt as TemplateValues } from "./bucket-CrsJNHzi.js";
6
- import { g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, m as Subscriber } from "./authorization-hooks-C0GfMvFm.js";
6
+ import { g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, m as Subscriber } from "./authorization-hooks-CR8TVvqo.js";
7
7
  import { t as RealtimeStatus } from "./realtime-status-D3oUx3o4.js";
8
8
  import { RealtimeChannel, SupabaseClient } from "@supabase/supabase-js";
9
9
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -1,7 +1,7 @@
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 CredentialRef, r as CredentialProvider } from "./provider-bIAzxVMB.js";
4
+ import { i as CredentialRef, r as CredentialProvider } from "./provider-CVlXXbda.js";
5
5
  import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
6
6
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
7
7
  import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
@@ -3,13 +3,13 @@ import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
3
3
  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
- import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-bIAzxVMB.js";
6
+ import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-CVlXXbda.js";
7
7
  import { r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
8
8
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
9
9
  import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
10
10
  import { h as FilterQuery, l as FilterFieldType } from "./filter-query-Xj40B5KT.js";
11
11
  import { f as WorkflowStarter, g as Workflows, p as WorkflowSubject, r as WorkflowRunMode, s as WorkflowSchedule } from "./workflows-BI4yKqFh.js";
12
- import { i as AuthorizationHooks } from "./authorization-hooks-C0GfMvFm.js";
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";
15
15
  /** A built-in kind, or the app's own kind from `defineNodeKind`. */
@@ -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-yfOlyAqb.js";
2
- import { k as DesignErrorCode } from "./index-C78VPlXW.js";
1
+ import { _r as AppColumnFormat, br as AppOnDeleteAction, hr as AppColumnAccess, kr as AppTableVersions, vr as AppColumnType, xi as Preset } from "./context-CH5FYnVk.js";
2
+ import { k as DesignErrorCode } from "./index-vkd2LTt2.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";
@@ -1,5 +1,5 @@
1
1
  import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
2
- import { c as SetCredentialOptions, i as CredentialRef, r as CredentialProvider } from "./provider-bIAzxVMB.js";
2
+ import { c as SetCredentialOptions, i as CredentialRef, r as CredentialProvider } from "./provider-CVlXXbda.js";
3
3
  import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
4
4
  /** How a request the third party sends is signed with the stored secret. */
5
5
  type VaultInboundScheme = "standard-webhooks" | "hmac-sha256" | "shared-secret";
@@ -1,5 +1,5 @@
1
1
  import { f as Result, t as AsyncResult } from "../result-DTOQRyGY.js";
2
- import { a as CredentialSubject, i as CredentialRef, o as CredentialToken, r as CredentialProvider, s as GetTokenOptions } from "../provider-bIAzxVMB.js";
2
+ import { a as CredentialSubject, i as CredentialRef, o as CredentialToken, r as CredentialProvider, s as GetTokenOptions } from "../provider-CVlXXbda.js";
3
3
  /** An RFC 9396 authorization detail; `type` names its kind. */
4
4
  interface VercelConnectAuthorizationDetail {
5
5
  type: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { b as DbError, t as AsyncResult } from "../result-DTOQRyGY.js";
3
- import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../provider-bIAzxVMB.js";
3
+ import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../provider-CVlXXbda.js";
4
4
  import { i as AiSandboxes, t as AiSandbox } from "../sandboxes-BF9RxxCU.js";
5
5
  import { Experimental_SandboxSession } from "ai";
6
6
  /** The `provider` an adapter's rows carry in `ai_sandboxes`. */
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { f as Result } from "./result-DTOQRyGY.js";
3
3
  import { O as AnyFunctions, at as Row, dt as TableKey, k as AnyModels } from "./types-BzIYSSWK.js";
4
- import { t as BetterSupabase } from "./define-BvkaC3Oh.js";
4
+ import { t as BetterSupabase } from "./define-C_He1bQO.js";
5
5
  import { n as VerifyOptions, r as WebhookInput, t as VerifiedWebhook } from "./signatures-jPr9JXyw.js";
6
6
  /** The `Stripe-Signature` header for `body`, for tests and local replays. */
7
7
  declare function signStripeWebhook(secret: string, body: string, timestamp?: Temporal.Instant): Promise<string>;
@@ -1,5 +1,5 @@
1
1
  import { b as DbError } from "./result-DTOQRyGY.js";
2
- import { i as InvalidReason, r as AuthState } from "./resolve-BIpQRhvF.js";
2
+ import { i as InvalidReason, r as AuthState } from "./resolve-XlMQRUeG.js";
3
3
  import { a as SessionActor, o as SessionDelegation } from "./actor-DseNR02I.js";
4
4
  import { n as Impersonator } from "./impersonation-BOCJcsmS.js";
5
5
  import { n as AmrEntry, t as Aal } from "./mfa-CM5r904M.js";
@@ -1,15 +1,15 @@
1
1
  import { b as DbError } from "../result-DTOQRyGY.js";
2
- import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-DCw3c6pj.js";
3
- import { mt as QuerySpec } from "../define-BvkaC3Oh.js";
2
+ import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-DddDlibJ.js";
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-x-mrN_Ff.js";
6
- import { t as AuthSnapshot } from "../bind-C2XvMlfg.js";
7
- import { n as AuthSession } from "../view-DdDY88SC.js";
8
- import { n as Controller } from "../controller-CAcLEndc.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-DXZk9Qjt.js";
10
- import { n as BlockOptions } from "../block-env-BQrtLPyc.js";
5
+ import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-D7F2FBNp.js";
6
+ import { t as AuthSnapshot } from "../bind-5vOwNouG.js";
7
+ import { n as AuthSession } from "../view-eHgOOyRS.js";
8
+ import { n as Controller } from "../controller-CJ6rLnpS.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-CdSjV9Zo.js";
10
+ import { n as BlockOptions } from "../block-env-hco8BLjC.js";
11
11
  import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-QSaPsL2P.js";
12
- import { t as SupportView } from "../support-view-GykHOIQ2.js";
12
+ import { t as SupportView } from "../support-view-DKZkZeM5.js";
13
13
  import { SupabaseClient } from "@supabase/supabase-js";
14
14
  import { QueryClient } from "@tanstack/query-core";
15
15
  import { App, ComputedRef, MaybeRefOrGetter, Ref, ShallowRef } from "vue";
@@ -1,4 +1,4 @@
1
- import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-x-mrN_Ff.js";
1
+ import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-D7F2FBNp.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-C9XfFGmA.js";
2
- import { a as GraphStepCall, i as GraphRuntime, n as GraphNodeCall, o as GraphSubject, s as executeGraph, t as GraphApprovalCall } from "../../executor-B-o7QMPp.js";
3
- import { c as WorkflowFn } from "../../workflow-sdk-D3H10W5h.js";
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";
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-D3H10W5h.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";
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. */
@@ -1,4 +1,4 @@
1
- import { o as EventHub } from "../../events-DCw3c6pj.js";
1
+ import { o as EventHub } from "../../events-DddDlibJ.js";
2
2
  import { n as Logger } from "../../logger-0LfhvwE4.js";
3
3
  import { a as WorkflowMaintenance } from "../../run-keys-BnzqxtYc.js";
4
4
  import { Pool } from "pg";
@@ -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-CBS8L2Ku.js";
5
+ import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-6psRpDIo.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";
@@ -31,6 +31,7 @@ const writeExtraColumns = (table, extras, source, where, into) => extras.length
31
31
  update ${table} x set ${extras.map((extra) => `${extra.ident} = case when ${source} ? ${sqlString(extra.name)} then r.${extra.ident} else x.${extra.ident} end`).join(", ")}
32
32
  from jsonb_populate_record(null::${table}, (select coalesce(jsonb_object_agg(e.key, e.value), '{}') from jsonb_each(${source}) e where e.key in (${extras.map((extra) => sqlString(extra.name)).join(", ")}))) r
33
33
  where ${where}${into === void 0 ? "" : `\n returning x.* into ${into}`};`;
34
+ const updateExtraColumns = (table, extras, source, alias = "x") => extras.map((extra) => `, ${extra.ident} = case when ${source} ? ${sqlString(extra.name)} then (jsonb_populate_record(null::${table}, jsonb_build_object(${sqlString(extra.name)}, ${source} -> ${sqlString(extra.name)}))).${extra.ident} else ${alias === "" ? "" : `${alias}.`}${extra.ident} end`).join("");
34
35
  /**
35
36
  * The `default` expression of an `extraColumns` type, such as `'en'` in `text
36
37
  * not null default 'en'`, or undefined without one.
@@ -1060,55 +1061,6 @@ const DEFAULT_ROLES = {
1060
1061
  ],
1061
1062
  viewer: ["organization.read"]
1062
1063
  };
1063
- /** Actions a module checks only when `blocks.<module>.permissions` names a key. */
1064
- const OPTIONAL_MODULE_PERMISSIONS = {
1065
- organizations: {
1066
- create: "platform",
1067
- updatePlatform: "platform",
1068
- deletePlatform: "platform",
1069
- updateRolePlatform: "platform",
1070
- removeMemberPlatform: "platform"
1071
- },
1072
- audit: { reveal: "tenant" },
1073
- "data-lifecycle": { deletePlatform: "platform" },
1074
- tags: {
1075
- create: "tenant",
1076
- update: "tenant",
1077
- delete: "tenant"
1078
- },
1079
- tasks: {
1080
- create: "tenant",
1081
- delete: "tenant"
1082
- },
1083
- calendar: {
1084
- create: "tenant",
1085
- update: "tenant",
1086
- delete: "tenant"
1087
- },
1088
- employees: {
1089
- create: "tenant",
1090
- contractsRead: "tenant",
1091
- contractsWrite: "tenant",
1092
- privateDetailsWrite: "tenant"
1093
- },
1094
- hiring: {
1095
- create: "tenant",
1096
- jobsCreate: "tenant",
1097
- jobsUpdate: "tenant",
1098
- score: "tenant"
1099
- },
1100
- teams: {
1101
- create: "tenant",
1102
- update: "tenant",
1103
- delete: "tenant",
1104
- members: "tenant"
1105
- },
1106
- catalog: {
1107
- create: "tenant",
1108
- update: "tenant",
1109
- delete: "tenant"
1110
- }
1111
- };
1112
1064
  /**
1113
1065
  * The permission key each operation checks by default, keyed
1114
1066
  * `<module>.<action>`. `blocks.<name>.permissions` renames a key per module,
@@ -2751,4 +2703,4 @@ const WORKFLOW_SDK_WORLD = {
2751
2703
  build,
2752
2704
  data
2753
2705
  };
2754
- export { ownRowPolicies as $, addForeignKey as A, ensureCheck as B, PARTITION_VARIABLES as C, activeMembership as D, accessDefinesDisabledHelpers as E, defaultPartition as F, jsonSchemaChecks as G, extraFieldsJson as H, defaultPartitionName as I, memberAddedRecord as J, jwtClaim as K, disabledHelpers as L, batchFunction as M, columnRef as N, addCheck as O, columnsObject as P, organizationMissing as Q, disabledHelpersNeedLaterTables as R, NOTHING as S, SERVICE_CALLER as T, fail as U, extraFieldsArg as V, insertExtraColumns as W, membershipSuspended as X, membershipDisabledAt as Y, notNullCheckName as Z, roleScopeIs as _, withExtraFields as _t, DEFAULT_ROLES as a, renameSql as at, EQUIVALENT_TRIGGERS as b, OPTIONAL_MODULE_PERMISSIONS as c, schemaPreamble as ct, isOperationModule as d, sha256Hex as dt, pageSize as et, moduleOperations as f, shortHash as ft, roleNames as g, userGrant as gt, providerPlatformRoles as h, updatedAt as ht, WORLD_POSTGRES_VERSION as i, registerPartitions as it, addNotNullCheck as j, addExtraColumns as k, accessModel as l, serviceGrant as lt, modulePermissionKey as m, triggerGrant as mt, WORKFLOW_SDK_WORLD as n, raise as nt, MODULE_PERMISSION_SCOPES as o, replaceColumnCheck as ot, modulePermission as p, splitTable as pt, lockTable as q, WORKFLOW_VAULT_SECRETS as r, recordTrigger as rt, OPERATIONS as s, revokeTable as st, WORKFLOW_DELIVERY_QUEUE as t, quotedTable as tt, hasPlatformRoles as u, serviceOnly as ut, rolesOf as v, writeExtraColumns as vt, SCHEMA as w, MONTHLY_PARTITIONS as x, tenantScope as y, dropExpiredPartitions as z };
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 };
@@ -1,6 +1,6 @@
1
1
  import { It as RequestContext } from "./types-BzIYSSWK.js";
2
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-BFZS6Kvz.js";
3
+ import { a as OutboxEvent, o as OutboxHandler } from "./outbox-DikdzUKf.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,5 +1,5 @@
1
1
  import { t as AsyncResult } from "../result-DTOQRyGY.js";
2
- import { c as RealtimeClient, r as PresenceMember } from "../topic-x-mrN_Ff.js";
2
+ import { c as RealtimeClient, r as PresenceMember } from "../topic-D7F2FBNp.js";
3
3
  import { a as DocumentSuggestion, d as OpenedDocument, l as Documents, r as DocumentRef, t as DecidedSuggestion } from "../documents-Btk0MhC0.js";
4
4
  type PresenceState = Readonly<Record<string, unknown>>;
5
5
  /** The part of a `Y.Doc` the provider uses. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-supabase",
3
- "version": "0.36.0",
3
+ "version": "0.38.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",
@@ -4155,6 +4155,10 @@
4155
4155
  },
4156
4156
  "variantInUse": {
4157
4157
  "type": "string"
4158
+ },
4159
+ "maxVariants": {
4160
+ "type": "number",
4161
+ "default": 100
4158
4162
  }
4159
4163
  }
4160
4164
  }
@@ -4771,6 +4775,12 @@
4771
4775
  "type": "string"
4772
4776
  }
4773
4777
  },
4778
+ "categoryExtraColumns": {
4779
+ "type": "object",
4780
+ "additionalProperties": {
4781
+ "type": "string"
4782
+ }
4783
+ },
4774
4784
  "approvals": {
4775
4785
  "type": "boolean",
4776
4786
  "default": true
@@ -5302,6 +5312,10 @@
5302
5312
  "owner": {
5303
5313
  "type": "string",
5304
5314
  "default": "user"
5315
+ },
5316
+ "reapprove": {
5317
+ "type": "boolean",
5318
+ "default": false
5305
5319
  }
5306
5320
  }
5307
5321
  }
@@ -6584,6 +6598,7 @@
6584
6598
  "type": "object",
6585
6599
  "additionalProperties": false,
6586
6600
  "properties": {
6601
+ "brand": {},
6587
6602
  "extraColumns": {
6588
6603
  "type": "object",
6589
6604
  "additionalProperties": {