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
@@ -2,13 +2,13 @@
2
2
  import { 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
- import { Ct as Events, j as CommerceEventData } from "../../events-DCw3c6pj.js";
5
+ import { Ct as Events, j as CommerceEventData } from "../../events-DddDlibJ.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
7
  import { i as CursorPageOptions, n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
8
8
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
9
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
10
10
  import { h as FilterQuery } from "../../filter-query-Xj40B5KT.js";
11
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-Ds3aLZwz.js";
11
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
12
12
  import { n as Money } from "../../money-BgpAd7d3.js";
13
13
  import { t as RankNeighbors } from "../../rank-result-B_xLQCBV.js";
14
14
  export declare const PRODUCT_KINDS: readonly ["physical", "digital", "service"];
@@ -87,6 +87,24 @@ interface SavedOption {
87
87
  readonly id: string;
88
88
  readonly values: readonly OptionValue[];
89
89
  }
90
+ interface OptionMatrixInput {
91
+ readonly name: string;
92
+ readonly values: readonly string[];
93
+ }
94
+ interface OptionMatrixOptions {
95
+ readonly titleSeparator?: string | null;
96
+ }
97
+ interface MatrixVariant {
98
+ readonly id: string;
99
+ readonly sku?: string;
100
+ readonly optionValueIds: readonly string[];
101
+ }
102
+ interface OptionMatrix {
103
+ readonly options: readonly (SavedOption & {
104
+ readonly name: string;
105
+ })[];
106
+ readonly variants: readonly MatrixVariant[];
107
+ }
90
108
  /**
91
109
  * On `updateVariant`, a key left out keeps its value and `null` clears `sku`,
92
110
  * `title`, `barcode` or `weightGrams`.
@@ -273,10 +291,15 @@ interface Catalog<F extends object = Record<never, never>> {
273
291
  deleteOption(optionId: string): AsyncResult<boolean>;
274
292
  /** Puts the product's options in this order; it names each one once. */
275
293
  reorderOptions(productId: string, optionIds: readonly string[]): AsyncResult<boolean>;
294
+ setOptions(productId: string, options: readonly OptionMatrixInput[], settings?: OptionMatrixOptions): AsyncResult<OptionMatrix>;
276
295
  createVariant(productId: string, input: VariantInput): AsyncResult<SavedVariant>;
277
296
  updateVariant(productId: string, variantId: string, input: VariantInput): AsyncResult<SavedVariant>;
278
297
  /** Moves a variant between the variants with rank keys `previous` and `next`. */
279
298
  reorderVariant(variantId: string, neighbors: RankNeighbors): AsyncResult<string>;
299
+ setVariantStatus(variantId: string, status: "active" | "archived" | (string & {})): AsyncResult<{
300
+ readonly status: string;
301
+ readonly from: string;
302
+ }>;
280
303
  deleteVariant(variantId: string): AsyncResult<boolean>;
281
304
  savePriceList(organizationId: string, input: PriceListInput): AsyncResult<{
282
305
  readonly id: string;
@@ -377,4 +400,4 @@ export declare const catalogBlock: BlockOf<"catalog", typeof createCatalog, Cata
377
400
  * checks.
378
401
  */
379
402
  export declare const productInputSchema: EntitySchema<ProductInput>;
380
- export { type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type Catalog, type CatalogEvents, type CatalogOptions, type CategoryInput, type ChannelInput, type ChannelProduct, type ChannelProductsOptions, type CollectionInput, type LocaleOptions, type LocalizedProduct, type LocalizedVariant, type OptionInput, type OptionValue, type Price, type PriceInput, type PriceListInput, type ProductInput, type ProductKind, type ProductMedia, type ProductMediaInput, type ProductPatch, type ProductStatus, type ProductTranslation, type RpcClient, type SavedCategory, type SavedChannel, type SavedCollection, type SavedOption, type SavedPrice, type SavedProduct, type SavedProductMedia, type SavedVariant, type StatusChange, type VariantInput, type VariantPriceOptions, dbTransport, extendBlock, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
403
+ export { type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type Catalog, type CatalogEvents, type CatalogOptions, type CategoryInput, type ChannelInput, type ChannelProduct, type ChannelProductsOptions, type CollectionInput, type LocaleOptions, type LocalizedProduct, type LocalizedVariant, type MatrixVariant, type OptionInput, type OptionMatrix, type OptionMatrixInput, type OptionMatrixOptions, type OptionValue, type Price, type PriceInput, type PriceListInput, type ProductInput, type ProductKind, type ProductMedia, type ProductMediaInput, type ProductPatch, type ProductStatus, type ProductTranslation, type RpcClient, type SavedCategory, type SavedChannel, type SavedCollection, type SavedOption, type SavedPrice, type SavedProduct, type SavedProductMedia, type SavedVariant, type StatusChange, type VariantInput, type VariantPriceOptions, dbTransport, extendBlock, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -1,9 +1,9 @@
1
1
  import { n as dbError } from "../../errors-B7tCfCvX.js";
2
2
  import { n as isRecord } from "../../guards-CsRa6v57.js";
3
3
  import { t as AsyncResult } from "../../result-8xza7w5W.js";
4
- import { t as catalogSqlOptions } from "../../options-DqmTs2nv.js";
4
+ import { t as catalogSqlOptions } from "../../options-CEwoGUk_.js";
5
5
  import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
6
- import { A as recordsOf, L as textOf, O as recordOf, T as pageOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, h as instantOf, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-I7UzjNEf.js";
6
+ import { A as recordsOf, I as stringsOf, L as textOf, O as recordOf, T as pageOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, h as instantOf, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-I7UzjNEf.js";
7
7
  import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-CadxQ9-_.js";
8
8
  import { n as entitySchema, r as moneyField } from "../../entity-schema-DEIz0I8i.js";
9
9
  import { c as withFields, n as blockFields, r as extraFieldsArg } from "../../block-fields-Bjcv6_zc.js";
@@ -40,6 +40,27 @@ function variantOf(value) {
40
40
  ...isRecord(row["fields"]) ? { fields: row["fields"] } : {}
41
41
  };
42
42
  }
43
+ function matrixOf(value) {
44
+ const row = recordOf(value, "set_product_options");
45
+ return {
46
+ options: recordsOf(row["options"], "set_product_options").map((entry) => ({
47
+ id: textOf(entry["id"]),
48
+ name: textOf(entry["name"]),
49
+ values: recordsOf(entry["values"], "set_product_options").map((item) => ({
50
+ id: textOf(item["id"]),
51
+ value: textOf(item["value"])
52
+ }))
53
+ })),
54
+ variants: recordsOf(row["variants"], "set_product_options").map((entry) => {
55
+ const sku = optionalText(entry["sku"]);
56
+ return {
57
+ id: textOf(entry["id"]),
58
+ ...sku === void 0 ? {} : { sku },
59
+ optionValueIds: stringsOf(entry["optionValueIds"])
60
+ };
61
+ })
62
+ };
63
+ }
43
64
  function priceOf(value) {
44
65
  if (!isRecord(value)) return null;
45
66
  const currency = textOf(value["currency"]);
@@ -169,6 +190,16 @@ function createCatalog(options) {
169
190
  from: enumOrThrow(row["from"], PRODUCT_STATUSES, "status")
170
191
  };
171
192
  }),
193
+ setVariantStatus: (variantId, status) => call("set_variant_status", {
194
+ variant: variantId,
195
+ status
196
+ }, (value) => {
197
+ const row = recordOf(value, "set_variant_status");
198
+ return {
199
+ status: textOf(row["status"]),
200
+ from: textOf(row["from"])
201
+ };
202
+ }),
172
203
  deleteProduct: (productId) => call("delete_product", { product: productId }, (value) => value === true),
173
204
  saveOption: (productId, input) => call("save_product_option", {
174
205
  product: productId,
@@ -190,6 +221,14 @@ function createCatalog(options) {
190
221
  product: productId,
191
222
  options: optionIds
192
223
  }, (value) => value === true),
224
+ setOptions: (productId, options, settings) => call("set_product_options", {
225
+ product: productId,
226
+ options: options.map((entry) => ({
227
+ name: entry.name,
228
+ values: entry.values
229
+ })),
230
+ ...settings?.titleSeparator === void 0 ? {} : { title_separator: settings.titleSeparator }
231
+ }, matrixOf),
193
232
  createVariant: (productId, input) => call("save_variant", variantArgs(productId, null, input), variantOf),
194
233
  updateVariant: (productId, variantId, input) => call("save_variant", variantArgs(productId, variantId, input), variantOf),
195
234
  reorderVariant: (variantId, neighbors) => {
@@ -1,13 +1,13 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
4
- import { Ct as Events } from "../../events-DCw3c6pj.js";
5
- import { m as ChannelEventData } from "../../index-CY612vAg.js";
4
+ import { Ct as Events } from "../../events-DddDlibJ.js";
5
+ import { m as ChannelEventData } from "../../index-DjJUamhw.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
7
  import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
8
8
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
9
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
10
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-Ds3aLZwz.js";
10
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
11
11
  /** Who reads a channel: the tenant, or its members. */
12
12
  type ChannelVisibility = "public" | "private";
13
13
  /** A channel. Its `id` is also its conversation's id in `messaging`. */
@@ -2,13 +2,13 @@
2
2
  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
- import { Ct as Events } from "../../events-DCw3c6pj.js";
6
- import { P as SavedItemEventData, g as CollectionEventData, h as CollectionEntryEventData } from "../../index-CY612vAg.js";
5
+ import { Ct as Events } from "../../events-DddDlibJ.js";
6
+ import { P as SavedItemEventData, g as CollectionEventData, h as CollectionEntryEventData } from "../../index-DjJUamhw.js";
7
7
  import { n as Logger } from "../../logger-0LfhvwE4.js";
8
8
  import { i as CursorPageOptions } from "../../block-helpers-BNtM1tqy.js";
9
9
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
10
10
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
11
- import { I as Notifier, c as BlockOf } from "../../define-block-Ds3aLZwz.js";
11
+ import { I as Notifier, c as BlockOf } from "../../define-block-CDw9YGVh.js";
12
12
  import { t as RankNeighbors } from "../../rank-result-B_xLQCBV.js";
13
13
  /** Who sees a collection: its owner, a team, or the whole organization. */
14
14
  export declare const COLLECTION_SCOPES: readonly ["user", "team", "tenant"];
@@ -7,14 +7,14 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
7
7
  import { a as BlockTenantOptions, i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
8
8
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
9
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
10
- import { F as CommentsSqlOptions } from "../../authorization-2Rv1AJQJ.js";
10
+ import { F as CommentsSqlOptions } from "../../authorization-D8CaAdqU.js";
11
11
  import { t as Author } from "../../block-authors-C5z3tGVu.js";
12
12
  import { a as isFileAnchor, i as fileAnchor, n as FileAnchor, o as conversationTopic, r as FileAnchorAt, t as AnchorRegion } from "../../anchors-sCLvYj-8.js";
13
13
  import { c as MessageEdit, l as MessageEdition, o as Message } from "../../messaging-Bfe4p9Pm.js";
14
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-Ds3aLZwz.js";
15
- import { p as SubscriptionStatus } from "../../topic-x-mrN_Ff.js";
16
- import { n as TopicPort } from "../../watch-topic-D6bcqOrJ.js";
17
- import { n as Controller, t as AuthPort } from "../../controller-CAcLEndc.js";
14
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
15
+ import { p as SubscriptionStatus } from "../../topic-D7F2FBNp.js";
16
+ import { n as TopicPort } from "../../watch-topic-BIEaSN0Y.js";
17
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
18
18
  interface CommentsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions, BlockTenantOptions {
19
19
  /**
20
20
  * A Standard Schema for the message extra columns
@@ -2,12 +2,12 @@
2
2
  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
- import { Ct as Events } from "../../events-DCw3c6pj.js";
5
+ import { Ct as Events } from "../../events-DddDlibJ.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
7
  import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
8
8
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
9
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
10
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-Ds3aLZwz.js";
10
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
11
11
  interface ComplianceOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
12
12
  readonly transport: BlockTransport;
13
13
  /**
@@ -1,7 +1,7 @@
1
- import { Ct as Events, N as ConnectorEventData } from "../../events-DCw3c6pj.js";
1
+ import { Ct as Events, N as ConnectorEventData } from "../../events-DddDlibJ.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
3
- import { a as ConnectorSession, c as ConnectorsOptions, i as ConnectorServerFields, l as FingerprintStatus, n as ConnectorGrant, o as ConnectorTransport, r as ConnectorServer, s as Connectors, t as ConnectorAuth, u as createConnectors } from "../../connectors-CrLRW4Ol.js";
4
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
3
+ import { a as ConnectorSession, c as ConnectorsOptions, i as ConnectorServerFields, l as FingerprintStatus, n as ConnectorGrant, o as ConnectorTransport, r as ConnectorServer, s as Connectors, t as ConnectorAuth, u as createConnectors } from "../../connectors-DDsdz-cn.js";
4
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
5
5
  /** The events of the `connectors` block: type to data. */
6
6
  type ConnectorsEvents = {
7
7
  readonly "connector.saved": ConnectorEventData;
@@ -1,13 +1,13 @@
1
1
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
2
2
  import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
3
3
  import { i as RowFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
4
- import { Ct as Events } from "../../events-DCw3c6pj.js";
5
- import { A as PartyEventData } from "../../index-CY612vAg.js";
4
+ import { Ct as Events } from "../../events-DddDlibJ.js";
5
+ import { A as PartyEventData } from "../../index-DjJUamhw.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
7
  import { i as CursorPageOptions } from "../../block-helpers-BNtM1tqy.js";
8
8
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
9
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
10
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-Ds3aLZwz.js";
10
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
11
11
  /** Where a page of a list stops: the last row's name and id. */
12
12
  interface PartyCursor {
13
13
  readonly name: string;
@@ -1,12 +1,12 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { t as AsyncResult } from "../../result-DTOQRyGY.js";
3
- import { Ct as Events } from "../../events-DCw3c6pj.js";
3
+ import { Ct as Events } from "../../events-DddDlibJ.js";
4
4
  import { n as Logger } from "../../logger-0LfhvwE4.js";
5
5
  import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
6
6
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
7
7
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
8
8
  import { n as contentSqlOptions, t as ContentSqlOptions } from "../../options-Lh6uxepF.js";
9
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-Ds3aLZwz.js";
9
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
10
10
  declare const STATUSES: readonly ["draft", "scheduled", "published", "archived"];
11
11
  declare const APPROVAL_STATUSES: readonly ["pending", "approved", "rejected", "cancelled", "expired"];
12
12
  /** Where an entry stands. Only published entries reach the public reads. */
@@ -3,12 +3,12 @@ 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 { et as RecordRef } from "../../types-BzIYSSWK.js";
6
- import { Ct as Events } from "../../events-DCw3c6pj.js";
6
+ import { Ct as Events } from "../../events-DddDlibJ.js";
7
7
  import { n as Logger } from "../../logger-0LfhvwE4.js";
8
8
  import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
9
9
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
10
10
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
11
- import { Sn as EntitySchema, c as BlockOf, rn as RecordBinding } from "../../define-block-Ds3aLZwz.js";
11
+ import { Sn as EntitySchema, c as BlockOf, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
12
12
  import { n as Money } from "../../money-BgpAd7d3.js";
13
13
  interface ContractsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
14
14
  readonly transport: BlockTransport;
@@ -2,13 +2,13 @@
2
2
  import { 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
- import { Ct as Events } from "../../events-DCw3c6pj.js";
5
+ import { Ct as Events } from "../../events-DddDlibJ.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
7
  import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
8
8
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
9
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
10
10
  import { n as coursesSqlOptions, t as CoursesSqlOptions } from "../../options-Dg7eK-_J.js";
11
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-Ds3aLZwz.js";
11
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
12
12
  import { a as FormDefinition, l as FormJsonSchema } from "../../form-definition-BN8shngm.js";
13
13
  declare const COURSE_STATUSES: readonly ["draft", "published", "archived"];
14
14
  declare const LESSON_KINDS: readonly ["content", "video", "quiz"];
@@ -1,6 +1,6 @@
1
1
  import { It as RequestContext, Nt as Plugin } from "../../types-BzIYSSWK.js";
2
2
  import { t as CreatedBySqlOptions } from "../../options-DeamnVOY.js";
3
- import { r as Block } from "../../define-block-Ds3aLZwz.js";
3
+ import { r as Block } from "../../define-block-CDw9YGVh.js";
4
4
  interface CreatedByExtensionOptions {
5
5
  /**
6
6
  * Custom actor id resolution. Defaults to `context.actor.id` for users and
@@ -1,11 +1,11 @@
1
1
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
2
2
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
3
- import { $ as SaasEventData, Ct as Events, et as SaasSubjectEventData } from "../../events-DCw3c6pj.js";
3
+ import { $ as SaasEventData, Ct as Events, et as SaasSubjectEventData } from "../../events-DddDlibJ.js";
4
4
  import { n as Logger } from "../../logger-0LfhvwE4.js";
5
5
  import { a as BlockTenantOptions } 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";
8
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
8
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
9
9
  import { n as CustomFieldType, t as CUSTOM_FIELD_TYPES } from "../../field-formats-DVukMbRa.js";
10
10
  import { t as RankNeighbors } from "../../rank-result-B_xLQCBV.js";
11
11
  interface CustomFieldsOptions extends BlockTenantOptions {
@@ -1,14 +1,14 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
- import { Ct as Events, F as DataExportEventData, K as LegalHoldEventData, Y as OrganizationDeletionEventData } from "../../events-DCw3c6pj.js";
3
+ import { Ct as Events, F as DataExportEventData, K as LegalHoldEventData, Y as OrganizationDeletionEventData } from "../../events-DddDlibJ.js";
4
4
  import { n as Logger } from "../../logger-0LfhvwE4.js";
5
- import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../../provider-bIAzxVMB.js";
5
+ import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../../provider-CVlXXbda.js";
6
6
  import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
7
7
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
8
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
9
9
  import { _ as JobHandler } from "../../types-BdhE7I8Z.js";
10
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
11
- import { i as EventSink } from "../../cloud-event-BEmAUdl1.js";
10
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
11
+ import { i as EventSink } from "../../cloud-event-BjgxkfJJ.js";
12
12
  interface StorageReply<T> {
13
13
  readonly data: T | null;
14
14
  readonly error: unknown;
@@ -2,13 +2,13 @@
2
2
  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
- import { Ct as Events } from "../../events-DCw3c6pj.js";
6
- import { v as DealEventData } from "../../index-CY612vAg.js";
5
+ import { Ct as Events } from "../../events-DddDlibJ.js";
6
+ import { v as DealEventData } from "../../index-DjJUamhw.js";
7
7
  import { n as Logger } from "../../logger-0LfhvwE4.js";
8
8
  import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
9
9
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
10
10
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
11
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-Ds3aLZwz.js";
11
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
12
12
  import { n as Money } from "../../money-BgpAd7d3.js";
13
13
  import { t as DealForecast } from "../../deal-forecast-CN_BEy9s.js";
14
14
  /** How a rep calls a deal for the period. `undefined` is "not called". */
@@ -3,13 +3,13 @@ import { 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 { et as RecordRef } from "../../types-BzIYSSWK.js";
6
- import { Ct as Events } from "../../events-DCw3c6pj.js";
6
+ import { Ct as Events } from "../../events-DddDlibJ.js";
7
7
  import { n as Logger } from "../../logger-0LfhvwE4.js";
8
8
  import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
9
9
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
10
10
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
11
11
  import { n as dispatchSqlOptions, t as DispatchSqlOptions } from "../../options-BamaRO-q.js";
12
- import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-Ds3aLZwz.js";
12
+ import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
13
13
  /** Where a work order is in its life. */
14
14
  export declare const WORK_ORDER_STATUSES: readonly ["unscheduled", "scheduled", "en_route", "on_site", "done", "cancelled"];
15
15
  type WorkOrderStatus = (typeof WORK_ORDER_STATUSES)[number];
@@ -1,6 +1,6 @@
1
- import { Ct as Events, I as DocumentEventData, L as DocumentSuggestionEventData } from "../../events-DCw3c6pj.js";
1
+ import { Ct as Events, I as DocumentEventData, L as DocumentSuggestionEventData } from "../../events-DddDlibJ.js";
2
2
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
3
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
3
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
4
4
  import { a as DocumentSuggestion, c as DocumentVersion, d as OpenedDocument, f as SuggestionDecision, i as DocumentState, l as Documents, n as DocumentInfo, o as DocumentSuggestionStatus, p as createDocuments, r as DocumentRef, s as DocumentUpdate, t as DecidedSuggestion, u as DocumentsOptions } from "../../documents-Btk0MhC0.js";
5
5
  /** The events of the `documents` block: type to data. */
6
6
  type DocumentsEvents = {
@@ -1,11 +1,11 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
- import { Ct as Events } from "../../events-DCw3c6pj.js";
3
+ import { Ct as Events } from "../../events-DddDlibJ.js";
4
4
  import { n as Logger } from "../../logger-0LfhvwE4.js";
5
5
  import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
6
6
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
7
7
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
8
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
8
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
9
9
  import { _ as dohResolver, m as TxtResolver, t as DohResolverOptions } from "../../sso-B7w7h8RJ.js";
10
10
  /** The DNS record that proves a custom domain belongs to the organization. */
11
11
  interface HostnameRecord {
@@ -3,12 +3,12 @@ import { b as DbError, 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 { et as RecordRef } from "../../types-BzIYSSWK.js";
6
- import { Ct as Events } from "../../events-DCw3c6pj.js";
6
+ import { Ct as Events } from "../../events-DddDlibJ.js";
7
7
  import { n as Logger } from "../../logger-0LfhvwE4.js";
8
8
  import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
9
9
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
10
10
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
11
- import { Sn as EntitySchema, c as BlockOf, rn as RecordBinding } from "../../define-block-Ds3aLZwz.js";
11
+ import { Sn as EntitySchema, c as BlockOf, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
12
12
  import { n as Money } from "../../money-BgpAd7d3.js";
13
13
  import { r as WebhookInput } from "../../signatures-jPr9JXyw.js";
14
14
  import { i as PaymentEvent, n as Payment, o as PaymentProvider } from "../../payments-BBGSGRQ7.js";
@@ -2,13 +2,13 @@
2
2
  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
- import { Ct as Events, R as DriveEventData } from "../../events-DCw3c6pj.js";
5
+ import { Ct as Events, R as DriveEventData } from "../../events-DddDlibJ.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
7
  import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
8
8
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
9
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
10
- import { Ot as Attachments, Tt as AttachmentStorage, _t as AttachmentDownload, c as BlockOf, ht as Attachment } from "../../define-block-Ds3aLZwz.js";
11
- import { u as ApprovalStatus } from "../../approvals-DqCv7f-G.js";
10
+ import { Ot as Attachments, Tt as AttachmentStorage, _t as AttachmentDownload, c as BlockOf, ht as Attachment } from "../../define-block-CDw9YGVh.js";
11
+ import { u as ApprovalStatus } from "../../approvals-CXW3yFWZ.js";
12
12
  import { t as SubjectConfig } from "../../subjects-BGwLJ3IB.js";
13
13
  interface DriveOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
14
14
  /** The caller's transport (`rpcTransport(supabase)`), so grants apply. */
@@ -3,15 +3,15 @@ import { T as ErrorMapper, f as Result, t as AsyncResult } from "../../result-DT
3
3
  import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
4
4
  import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
5
5
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
6
- import { Ct as Events } from "../../events-DCw3c6pj.js";
7
- import { y as EmployeeEventData } from "../../index-CY612vAg.js";
6
+ import { Ct as Events } from "../../events-DddDlibJ.js";
7
+ import { y as EmployeeEventData } from "../../index-DjJUamhw.js";
8
8
  import { n as Logger } from "../../logger-0LfhvwE4.js";
9
9
  import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
10
10
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
11
11
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
12
- import { Bt as Action, Sn as EntitySchema, c as BlockOf } from "../../define-block-Ds3aLZwz.js";
12
+ import { Bt as Action, Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
13
13
  import { n as Money } from "../../money-BgpAd7d3.js";
14
- import { n as ConversionContext, t as ConversionClients } from "../../conversion-s1NtB6S-.js";
14
+ import { n as ConversionContext, t as ConversionClients } from "../../conversion-CLBBITW5.js";
15
15
  type EmployeeStatus = "preboarding" | "active" | "on_leave" | "offboarded";
16
16
  type SalaryPeriod = "hour" | "week" | "month" | "year";
17
17
  /** An employee. `F` types the extra columns the `fields` schema describes. */
@@ -1,12 +1,12 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
- import { Ct as Events } from "../../events-DCw3c6pj.js";
4
- import { S as EnrichmentEventData } from "../../index-CY612vAg.js";
3
+ import { Ct as Events } from "../../events-DddDlibJ.js";
4
+ import { S as EnrichmentEventData } from "../../index-DjJUamhw.js";
5
5
  import { n as Logger } from "../../logger-0LfhvwE4.js";
6
6
  import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
7
7
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
8
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
9
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
9
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
10
10
  /** What a provider looks up a company by. */
11
11
  interface CompanyLookup {
12
12
  readonly name: string;
@@ -1,13 +1,13 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
3
3
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
4
- import { Ct as Events } from "../../events-DCw3c6pj.js";
4
+ import { Ct as Events } from "../../events-DddDlibJ.js";
5
5
  import { n as Logger } from "../../logger-0LfhvwE4.js";
6
6
  import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
7
7
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
8
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
9
9
  import { t as EnrollmentsSqlOptions } from "../../options-Dk6D88Zx.js";
10
- import { c as BlockOf, rn as RecordBinding } from "../../define-block-Ds3aLZwz.js";
10
+ import { c as BlockOf, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
11
11
  interface EnrollmentsOptions extends BlockTemporalOptions, BlockTenantOptions {
12
12
  readonly transport: BlockTransport;
13
13
  /**
@@ -3,9 +3,9 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
3
3
  import { n as SqlClient } from "../../executor-DoSNec_H.js";
4
4
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
5
5
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
6
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
7
- import { a as hasEntitlement, n as EntitlementKey, t as EntitlementClaimOptions } from "../../entitlements-Dhu-4vlH.js";
8
- import { n as Controller, t as AuthPort } from "../../controller-CAcLEndc.js";
6
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
7
+ import { a as hasEntitlement, n as EntitlementKey, t as EntitlementClaimOptions } from "../../entitlements-6gODwBSz.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
9
9
  /** The Stripe event sent when a customer's active entitlements change. */
10
10
  export declare const ENTITLEMENTS_UPDATED = "entitlements.active_entitlement_summary.updated";
11
11
  /**
@@ -2,12 +2,12 @@
2
2
  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
- import { Ct as Events } from "../../events-DCw3c6pj.js";
5
+ import { Ct as Events } from "../../events-DddDlibJ.js";
6
6
  import { n as Logger } from "../../logger-0LfhvwE4.js";
7
7
  import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
8
8
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
9
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
10
- import { Sn as EntitySchema, c as BlockOf } from "../../define-block-Ds3aLZwz.js";
10
+ import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
11
11
  import { n as Money } from "../../money-BgpAd7d3.js";
12
12
  type ExpenseReportStatus = "draft" | "submitted" | "approved" | "rejected" | "reimbursed" | "cancelled";
13
13
  interface ExpensesOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions, BlockTenantOptions {
@@ -42,6 +42,7 @@ interface ExpenseCategory {
42
42
  readonly archivedAt?: Temporal.Instant;
43
43
  readonly createdAt: Temporal.Instant;
44
44
  readonly updatedAt: Temporal.Instant;
45
+ readonly fields?: Readonly<Record<string, unknown>>;
45
46
  }
46
47
  interface ExpenseCategoryInput {
47
48
  readonly key: string;
@@ -49,6 +50,7 @@ interface ExpenseCategoryInput {
49
50
  readonly limit?: Money;
50
51
  /** Needs the attachments block, where receipts live. */
51
52
  readonly receiptOver?: Money;
53
+ readonly fields?: Readonly<Record<string, unknown>>;
52
54
  }
53
55
  interface ExpenseLine {
54
56
  readonly id: string;
@@ -2,7 +2,7 @@ import { n as dbError } from "../../errors-B7tCfCvX.js";
2
2
  import { n as isRecord } from "../../guards-CsRa6v57.js";
3
3
  import { t as temporal } from "../../temporal-required-w_2u4EDp.js";
4
4
  import { t as AsyncResult } from "../../result-8xza7w5W.js";
5
- import { t as expensesSqlOptions } from "../../options-RYbyaVhv.js";
5
+ import { t as expensesSqlOptions } from "../../options-CS1DA8q9.js";
6
6
  import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
7
7
  import { A as recordsOf, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-I7UzjNEf.js";
8
8
  import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-CadxQ9-_.js";
@@ -33,7 +33,8 @@ function categoryOf(value, fn) {
33
33
  updatedAt: requiredInstant(row["updatedAt"], "updatedAt"),
34
34
  ...optional("limit", optionalMoney(row["limitAmount"], currency, "limit")),
35
35
  ...optional("receiptOver", optionalMoney(row["receiptOver"], currency, "receiptOver")),
36
- ...optional("archivedAt", optionalInstant(row["archivedAt"], "archivedAt"))
36
+ ...optional("archivedAt", optionalInstant(row["archivedAt"], "archivedAt")),
37
+ ...optional("fields", isRecord(row["fields"]) ? row["fields"] : void 0)
37
38
  };
38
39
  }
39
40
  function lineOf(value, fn) {
@@ -153,7 +154,8 @@ function createExpenses(options) {
153
154
  name: input.name,
154
155
  currency: currency ?? null,
155
156
  limit_amount: input.limit ? amountText(input.limit) : null,
156
- receipt_over: input.receiptOver ? amountText(input.receiptOver) : null
157
+ receipt_over: input.receiptOver ? amountText(input.receiptOver) : null,
158
+ ...input.fields === void 0 ? {} : { fields: input.fields }
157
159
  }, category("save_expense_category")));
158
160
  },
159
161
  archiveCategory: (categoryId) => call("archive_expense_category", { category_id: categoryId }, category("archive_expense_category")),
@@ -351,6 +353,11 @@ const expenseCategoryInputSchema = entitySchema({
351
353
  receiptOver: {
352
354
  ...moneyField,
353
355
  optional: true
356
+ },
357
+ fields: {
358
+ kind: "json",
359
+ optional: true,
360
+ description: "The extra columns to set."
354
361
  }
355
362
  }
356
363
  });
@@ -4,7 +4,7 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
4
4
  import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
5
5
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
6
6
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
7
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
7
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
8
8
  /** One column's change on one record. */
9
9
  interface FieldChange {
10
10
  /** Increases with every change; pass it as `before` for the next page. */