better-supabase 0.28.0 → 0.30.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 (405) hide show
  1. package/dist/{agents-CMIB3802.d.ts → agents-CM_cCtcr.d.ts} +4 -4
  2. package/dist/{ai-cache-2LGgaT7F.d.ts → ai-cache-BTGqckta.d.ts} +4 -4
  3. package/dist/{ai-chat-BCaKsvLW.d.ts → ai-chat-B7_vQvxU.d.ts} +4 -4
  4. package/dist/{ai-schedules-yGZH-vQb.d.ts → ai-schedules-CZEfo-_M.d.ts} +5 -5
  5. package/dist/ai-sdk/agents/index.d.ts +6 -6
  6. package/dist/ai-sdk/batches/index.d.ts +3 -3
  7. package/dist/ai-sdk/cache/index.d.ts +1 -1
  8. package/dist/ai-sdk/chat/index.d.ts +1 -1
  9. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  10. package/dist/ai-sdk/files/index.d.ts +1 -1
  11. package/dist/ai-sdk/index.d.ts +5 -5
  12. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  13. package/dist/ai-sdk/memory/index.d.ts +3 -3
  14. package/dist/ai-sdk/workflow/index.d.ts +3 -3
  15. package/dist/{api-B1OkIWdx.d.ts → api-59rv5hL6.d.ts} +5 -5
  16. package/dist/{api-keys-ClhKBDcc.d.ts → api-keys-JE-aykZE.d.ts} +4 -4
  17. package/dist/{app-tables-62GqZIhd.d.ts → app-tables-yyVncXEt.d.ts} +1 -1
  18. package/dist/{approvals-C5fmPLsH.d.ts → approvals-BfEafAzt.d.ts} +5 -5
  19. package/dist/{assistant-ndGdOBax.d.ts → assistant-B49qATbj.d.ts} +2 -2
  20. package/dist/astro/index.d.ts +7 -7
  21. package/dist/{authorization-BCG1v0iC.d.ts → authorization-CDU9tYA_.d.ts} +17 -3
  22. package/dist/{authorization-hooks-DtzreCAq.d.ts → authorization-hooks-BWhkMZfH.d.ts} +2 -2
  23. package/dist/better-result/index.d.ts +3 -3
  24. package/dist/{bind-C54jD0r3.d.ts → bind-p7asfI6H.d.ts} +7 -7
  25. package/dist/{block-env-CM-LFfj4.d.ts → block-env-B8wG3xeh.d.ts} +4 -4
  26. package/dist/{block-helpers-CRpAHrp_.d.ts → block-helpers-D5emQ2O6.d.ts} +1 -1
  27. package/dist/{block-hooks-DZN2w69m.d.ts → block-hooks-B8itxzEE.d.ts} +2 -2
  28. package/dist/{block-subjects-CphkQPxp.d.ts → block-subjects-C1_9DkSA.d.ts} +1 -1
  29. package/dist/{block-transport-DWZSJrwN.d.ts → block-transport-9EUA3q_I.d.ts} +2 -2
  30. package/dist/blocks/access-requests/index.d.ts +5 -5
  31. package/dist/blocks/activities/index.d.ts +10 -10
  32. package/dist/blocks/activities/index.js +1 -1
  33. package/dist/blocks/agents/index.d.ts +4 -4
  34. package/dist/blocks/ai-cache/index.d.ts +3 -3
  35. package/dist/blocks/ai-chat/index.d.ts +7 -7
  36. package/dist/blocks/ai-files/index.d.ts +3 -3
  37. package/dist/blocks/ai-keys/index.d.ts +4 -4
  38. package/dist/blocks/ai-schedules/index.d.ts +3 -3
  39. package/dist/blocks/announcements/index.d.ts +8 -8
  40. package/dist/blocks/api-keys/index.d.ts +6 -6
  41. package/dist/blocks/approvals/index.d.ts +4 -4
  42. package/dist/blocks/assets/index.d.ts +6 -6
  43. package/dist/blocks/assignment/index.d.ts +7 -7
  44. package/dist/blocks/attachments/index.d.ts +4 -4
  45. package/dist/blocks/audit/index.d.ts +13 -13
  46. package/dist/blocks/automations/index.d.ts +12 -12
  47. package/dist/blocks/billable-time/index.d.ts +6 -6
  48. package/dist/blocks/billing/index.d.ts +9 -9
  49. package/dist/blocks/bookings/index.d.ts +4 -4
  50. package/dist/blocks/bulk/index.d.ts +4 -4
  51. package/dist/blocks/calendar/index.d.ts +5 -5
  52. package/dist/blocks/calendar/index.js +1 -1
  53. package/dist/blocks/catalog/index.d.ts +6 -6
  54. package/dist/blocks/channels/index.d.ts +7 -7
  55. package/dist/blocks/collections/index.d.ts +12 -12
  56. package/dist/blocks/collections/index.js +1 -1
  57. package/dist/blocks/comments/index.d.ts +10 -10
  58. package/dist/blocks/compliance/index.d.ts +5 -5
  59. package/dist/blocks/connectors/index.d.ts +4 -4
  60. package/dist/blocks/contacts/index.d.ts +7 -7
  61. package/dist/blocks/contacts/index.js +1 -1
  62. package/dist/blocks/content/index.d.ts +5 -5
  63. package/dist/blocks/contracts/index.d.ts +6 -6
  64. package/dist/blocks/courses/index.d.ts +5 -5
  65. package/dist/blocks/created-by/index.d.ts +2 -2
  66. package/dist/blocks/custom-fields/index.d.ts +6 -6
  67. package/dist/blocks/data-lifecycle/index.d.ts +8 -8
  68. package/dist/blocks/deals/index.d.ts +6 -6
  69. package/dist/blocks/dispatch/index.d.ts +7 -7
  70. package/dist/blocks/documents/index.d.ts +4 -4
  71. package/dist/blocks/domains/index.d.ts +6 -6
  72. package/dist/blocks/donations/index.d.ts +6 -6
  73. package/dist/blocks/drive/index.d.ts +6 -6
  74. package/dist/blocks/employees/index.d.ts +8 -8
  75. package/dist/blocks/enrichment/index.d.ts +6 -6
  76. package/dist/blocks/enrollments/index.d.ts +6 -6
  77. package/dist/blocks/entitlements/index.d.ts +6 -6
  78. package/dist/blocks/expenses/index.d.ts +5 -5
  79. package/dist/blocks/field-history/index.d.ts +4 -4
  80. package/dist/blocks/flags/index.d.ts +5 -5
  81. package/dist/blocks/forecasts/index.d.ts +6 -6
  82. package/dist/blocks/forms/index.d.ts +6 -6
  83. package/dist/blocks/goals/index.d.ts +4 -4
  84. package/dist/blocks/guests/index.d.ts +6 -6
  85. package/dist/blocks/hiring/index.d.ts +7 -7
  86. package/dist/blocks/identities/index.d.ts +5 -5
  87. package/dist/blocks/imports/index.d.ts +5 -5
  88. package/dist/blocks/inbox/index.d.ts +10 -10
  89. package/dist/blocks/incidents/index.d.ts +5 -5
  90. package/dist/blocks/index.d.ts +9 -9
  91. package/dist/blocks/inventory/index.d.ts +7 -7
  92. package/dist/blocks/invoices/index.d.ts +8 -8
  93. package/dist/blocks/knowledge/index.d.ts +3 -3
  94. package/dist/blocks/lead-scoring/index.d.ts +7 -7
  95. package/dist/blocks/leases/index.d.ts +6 -6
  96. package/dist/blocks/leave/index.d.ts +5 -5
  97. package/dist/blocks/ledger/index.d.ts +6 -6
  98. package/dist/blocks/mail-sync/index.d.ts +5 -5
  99. package/dist/blocks/memberships/index.d.ts +2 -2
  100. package/dist/blocks/memory/index.d.ts +4 -4
  101. package/dist/blocks/messaging/index.d.ts +11 -11
  102. package/dist/blocks/metrics/index.d.ts +6 -6
  103. package/dist/blocks/mfa/index.d.ts +2 -2
  104. package/dist/blocks/moderation/index.d.ts +6 -6
  105. package/dist/blocks/notifications/index.d.ts +12 -12
  106. package/dist/blocks/notifications/index.js +1 -1
  107. package/dist/blocks/numbering/index.d.ts +4 -4
  108. package/dist/blocks/oauth-server/index.d.ts +5 -5
  109. package/dist/blocks/onboarding/index.d.ts +5 -5
  110. package/dist/blocks/orders/index.d.ts +7 -7
  111. package/dist/blocks/organizations/index.d.ts +8 -8
  112. package/dist/blocks/outbox/index.d.ts +4 -4
  113. package/dist/blocks/passes/index.d.ts +8 -8
  114. package/dist/blocks/permissions/index.d.ts +6 -6
  115. package/dist/blocks/pipelines/index.d.ts +6 -6
  116. package/dist/blocks/posts/index.d.ts +5 -5
  117. package/dist/blocks/profiles/index.d.ts +4 -4
  118. package/dist/blocks/promotions/index.d.ts +5 -5
  119. package/dist/blocks/push/index.d.ts +6 -6
  120. package/dist/blocks/queue/index.d.ts +6 -6
  121. package/dist/blocks/quotes/index.d.ts +8 -8
  122. package/dist/blocks/rank/index.d.ts +5 -5
  123. package/dist/blocks/reactions/index.d.ts +9 -9
  124. package/dist/blocks/relations/index.d.ts +7 -7
  125. package/dist/blocks/reminders/index.d.ts +8 -8
  126. package/dist/blocks/reminders/index.js +1 -1
  127. package/dist/blocks/reviews/index.d.ts +5 -5
  128. package/dist/blocks/saved-views/index.d.ts +6 -6
  129. package/dist/blocks/scores/index.d.ts +5 -5
  130. package/dist/blocks/search/index.d.ts +8 -8
  131. package/dist/blocks/security-events/index.d.ts +7 -7
  132. package/dist/blocks/segments/index.d.ts +8 -8
  133. package/dist/blocks/sequences/index.d.ts +6 -6
  134. package/dist/blocks/service-accounts/index.d.ts +5 -5
  135. package/dist/blocks/sessions/index.d.ts +2 -2
  136. package/dist/blocks/settings/index.d.ts +6 -6
  137. package/dist/blocks/share-links/index.d.ts +5 -5
  138. package/dist/blocks/shipments/index.d.ts +6 -6
  139. package/dist/blocks/signatures/index.d.ts +5 -5
  140. package/dist/blocks/signing-keys/index.d.ts +4 -4
  141. package/dist/blocks/sla/index.d.ts +7 -7
  142. package/dist/blocks/sso/index.d.ts +6 -6
  143. package/dist/blocks/state-machine/index.d.ts +5 -5
  144. package/dist/blocks/subjects/index.d.ts +6 -6
  145. package/dist/blocks/tags/index.d.ts +6 -6
  146. package/dist/blocks/tasks/index.d.ts +9 -9
  147. package/dist/blocks/teams/index.d.ts +4 -4
  148. package/dist/blocks/templates/index.d.ts +7 -7
  149. package/dist/blocks/time-tracking/index.d.ts +7 -7
  150. package/dist/blocks/timeline/index.d.ts +8 -8
  151. package/dist/blocks/trash/index.d.ts +6 -6
  152. package/dist/blocks/undo/index.d.ts +4 -4
  153. package/dist/blocks/updated-at/index.d.ts +2 -2
  154. package/dist/blocks/usage/index.d.ts +4 -4
  155. package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
  156. package/dist/blocks/versions/index.d.ts +6 -6
  157. package/dist/blocks/waitlist/index.d.ts +5 -5
  158. package/dist/blocks/webhooks/index.d.ts +14 -14
  159. package/dist/blocks/webhooks/index.js +1 -1
  160. package/dist/blocks/workflow-editor/index.d.ts +9 -9
  161. package/dist/blocks/workflows/index.d.ts +7 -7
  162. package/dist/{bookings-CVw5-Q0Z.d.ts → bookings-xsmM2TA_.d.ts} +3 -3
  163. package/dist/{bucket-vc-QRrva.d.ts → bucket-SvRQwYS4.d.ts} +1 -1
  164. package/dist/chat-sdk/index.d.ts +6 -6
  165. package/dist/cli/add-BdhGOwkB.js +1 -0
  166. package/dist/cli/{add-DUyg9qna.js → add-D4w-Axib.js} +27 -85
  167. package/dist/cli/{add-BKcE_g9D.js → add-Dggyehsy.js} +2 -2
  168. package/dist/cli/{migrate-sVs1QYTM.js → app-table-files-CiGuwLkO.js} +90 -50
  169. package/dist/cli/{backfill-r9RELEEh.js → backfill-DjVjXW_P.js} +4 -4
  170. package/dist/cli/bin.js +1 -1
  171. package/dist/cli/{blocks-DTOFdrxL.js → blocks-Bbmb6W_F.js} +1 -1
  172. package/dist/cli/{blocks-k1OG8XDs.js → blocks-jRL9K1R8.js} +2 -2
  173. package/dist/cli/{cache-Czfw7Iow.js → cache-BuoIFlUJ.js} +1 -1
  174. package/dist/cli/{codemod-ClmbiLuL.js → codemod-DRavXBCb.js} +5 -5
  175. package/dist/cli/{command-CVzTJSLp.js → command-DIPmo0wh.js} +6 -1
  176. package/dist/cli/{completion-DxEXxFpz.js → completion-DxPxMtyP.js} +2 -2
  177. package/dist/cli/{completion-CNCqE-Gb.js → completion-DyLMSjOD.js} +1 -1
  178. package/dist/cli/{completion-Dpk6vh0p.js → completion-FUgqm2-N.js} +2 -2
  179. package/dist/cli/{config-EjNj3HfT.js → config-BfapErxs.js} +1 -1
  180. package/dist/cli/{config-KvV-sLZL.js → config-Cskysxp-.js} +38 -7
  181. package/dist/cli/{config-D2YUlzrl.js → config-Df5cXWNN.js} +1 -1
  182. package/dist/cli/{config-group-C8tjut39.js → config-group-CP-B9uRt.js} +2 -3
  183. package/dist/cli/{content-mapper-ez_mT0d4.js → content-mapper-BCtyfKXl.js} +2 -2
  184. package/dist/cli/{db-uYN6O5Eg.js → db-CWvH1_46.js} +3 -3
  185. package/dist/cli/{doctor-BD9oo4MG.js → doctor-Di2ZekfN.js} +57 -24
  186. package/dist/cli/{env-DEAtgGoj.js → env-B2CbnbzD.js} +2 -2
  187. package/dist/cli/env-CynGCICL.js +1 -0
  188. package/dist/cli/{gen-8Ya8n2sA.js → gen-STKC9vkK.js} +16 -16
  189. package/dist/cli/index.d.ts +9 -2
  190. package/dist/cli/index.js +8 -8
  191. package/dist/cli/{init-DgL3sDfQ.js → init-DW6_nIwj.js} +22 -10
  192. package/dist/cli/{keys-CsanNk-2.js → keys-V-HcO-21.js} +1 -1
  193. package/dist/cli/{live-CMMEct_F.js → live-0G4Plw3K.js} +2 -2
  194. package/dist/cli/{mcp-DEHtzAkq.js → mcp-flKS8iU5.js} +6 -14
  195. package/dist/cli/{metadata-BZh-cOzC.js → metadata-VARUbXEe.js} +3 -3
  196. package/dist/cli/migrate-Bkq07XcT.js +46 -0
  197. package/dist/cli/{migration-safety-ClnYNMdq.js → migration-safety-BfVeza5j.js} +2 -2
  198. package/dist/cli/{migrations-DWh38tO9.js → migrations-BCq7Zs2E.js} +2 -2
  199. package/dist/cli/{module-migration-CXfRJIV4.js → module-migration-lbeUrsYv.js} +2 -2
  200. package/dist/cli/{moved-Cnb4fp49.js → moved-DNOtp9LA.js} +1 -1
  201. package/dist/cli/{parse-BWM6IGhF.js → parse-BPf3kGnc.js} +1 -1
  202. package/dist/cli/{powersync-Dnyr-Wy5.js → powersync-B15CfH5Y.js} +4 -4
  203. package/dist/cli/powersync-DnBsDchT.js +1 -0
  204. package/dist/cli/{print-DJrSr56b.js → print-DjxpBRnv.js} +2 -2
  205. package/dist/cli/{providers-CpaISitn.js → providers-dyxcHQY3.js} +1 -1
  206. package/dist/cli/{remove-ChaieK3t.js → remove-BLq5gbal.js} +7 -7
  207. package/dist/cli/{render-DUNJ4Pss.js → render-CizUf3RW.js} +5 -5
  208. package/dist/cli/{run-CxFDjL1Q.js → run-ChEjR7yw.js} +3 -3
  209. package/dist/cli/{run-Cl9COGuy.js → run-ChOY6s4o.js} +9 -9
  210. package/dist/cli/{run-ChCQPYOh.js → run-MwM__teL.js} +41 -41
  211. package/dist/cli/seed-BOun22-k.js +1 -0
  212. package/dist/cli/{seed-BzVLTdRl.js → seed-CDnL4Tnc.js} +3 -3
  213. package/dist/cli/{shared-5uqc1GBj.js → shared-DV5wIv-7.js} +1 -1
  214. package/dist/cli/{skills-0gz_qjVb.js → skills-DM3oeIxY.js} +1 -1
  215. package/dist/cli/{snapshot-DdAP7LWO.js → snapshot-B5LXkVMC.js} +3 -3
  216. package/dist/cli/{source-2irbWSck.js → source-BoLNG_2A.js} +1 -1
  217. package/dist/cli/{source-args-DAcQt-Mh.js → source-args-v8ljFDfc.js} +1 -1
  218. package/dist/cli/{spec-_MS0ym5r.js → spec-D6QeE2Zx.js} +1 -1
  219. package/dist/cli/{spec-B7n4Rthp.js → spec-Dz-PGCaM.js} +3 -3
  220. package/dist/cli/{sql-layout-DYKkQw1k.js → sql-layout-zo02f3Dm.js} +2 -2
  221. package/dist/cli/{stack-CteM33gC.js → stack-ClESAZYf.js} +1 -1
  222. package/dist/cli/{stack-env-6hS-WEmh.js → stack-env-3ziggrU3.js} +1 -1
  223. package/dist/cli/{sync-DnSOrQuA.js → sync-m-oZ_SyI.js} +4 -4
  224. package/dist/cli/{table-DeH8X0qz.js → table-dyKddjwo.js} +1 -1
  225. package/dist/cli/{upgrade-CWdrC-K3.js → upgrade-C9sgVZ5z.js} +5 -5
  226. package/dist/cli/{upgrade-cMy5fKkg.js → upgrade-WwEJaX3i.js} +3 -3
  227. package/dist/cli/{version-C5RAWmrD.js → version-D2BQuqta.js} +1 -1
  228. package/dist/client/index.d.ts +6 -6
  229. package/dist/client/native/index.d.ts +5 -5
  230. package/dist/{cloud-event-DcJwder2.d.ts → cloud-event-0pQ9vFNS.d.ts} +1 -1
  231. package/dist/{compiler-D3UmE7ao.d.ts → compiler-BEeVWXPS.d.ts} +2 -2
  232. package/dist/{composite-CWJvZgni.d.ts → composite-BJ9s-IJJ.d.ts} +7 -7
  233. package/dist/config/index.d.ts +4 -4
  234. package/dist/config/index.js +3 -3
  235. package/dist/{config-CvJHIy5q.js → config-bqKaPjst.js} +6 -27
  236. package/dist/{config-CTeR7XHK.js → config-r7njjNgh.js} +1 -1
  237. package/dist/{connectors-CHGiffYH.d.ts → connectors-uC5baoFV.d.ts} +4 -4
  238. package/dist/{context-BFEX0b7H.d.ts → context-nbYYjv7U.d.ts} +46 -51
  239. package/dist/{controller-Cl6HmMBk.d.ts → controller-TRocodqG.d.ts} +1 -1
  240. package/dist/{conversion-DlfStnln.d.ts → conversion-g8HzH9My.d.ts} +1 -1
  241. package/dist/create/index.d.ts +3 -3
  242. package/dist/create/index.js +2 -2
  243. package/dist/create/lite/index.d.ts +4 -4
  244. package/dist/create/lite/index.js +1 -1
  245. package/dist/credentials/index.d.ts +4 -4
  246. package/dist/{data-engine-BWoz9lED.d.ts → data-engine-rvbR2C4F.d.ts} +1 -1
  247. package/dist/{define-BLP6XtoL.d.ts → define-D8_9X5fZ.d.ts} +5 -5
  248. package/dist/{define-block-DibVN37N.d.ts → define-block-DWVZSZv1.d.ts} +12 -12
  249. package/dist/{documents-Cup1rpjF.d.ts → documents-BbwYyynk.d.ts} +3 -3
  250. package/dist/edge/index.d.ts +9 -9
  251. package/dist/elysia/index.d.ts +1 -1
  252. package/dist/{embeddings-D_RsS6ow.d.ts → embeddings-I3s5sTDt.d.ts} +1 -1
  253. package/dist/{ended-B8RyuUXF.d.ts → ended-EZzN9QTM.d.ts} +2 -2
  254. package/dist/{entitlements-Y-n4RGAd.d.ts → entitlements-B1i1-wfe.d.ts} +2 -2
  255. package/dist/eve/index.d.ts +5 -5
  256. package/dist/{eve-B7jxYPCw.d.ts → eve-BfhVFV33.d.ts} +2 -2
  257. package/dist/events/index.d.ts +3 -3
  258. package/dist/{events-Cc9DDQWH.d.ts → events-B2qbZps6.d.ts} +1 -1
  259. package/dist/{executor-DNPm13a9.d.ts → executor-BfirBzOr.d.ts} +4 -4
  260. package/dist/{executor-C-Ox9eKq.d.ts → executor-BlS0kCrN.d.ts} +1 -1
  261. package/dist/{executor-hGjrop3A.d.ts → executor-DXQIx4sW.d.ts} +1 -1
  262. package/dist/expo/index.d.ts +4 -4
  263. package/dist/{field-errors-Btn3czyz.d.ts → field-errors-tJvehEFc.d.ts} +10 -10
  264. package/dist/{fields-C3q2ypnO.d.ts → fields-snbaZ14h.d.ts} +1 -1
  265. package/dist/{filter-evaluate-CPxeae5X.d.ts → filter-evaluate-BRpNiNPG.d.ts} +1 -1
  266. package/dist/{filter-query-BXLs72G9.d.ts → filter-query-DBt7OKuH.d.ts} +1 -1
  267. package/dist/{flags-C01PLMJ-.d.ts → flags-DDKTThrO.d.ts} +2 -2
  268. package/dist/flags-sdk/index.d.ts +1 -1
  269. package/dist/{framework-GlxXiotm.d.ts → framework-DVYTtQXA.d.ts} +7 -7
  270. package/dist/{gateway-DzI687yd.d.ts → gateway-Ve7cByEr.d.ts} +3 -3
  271. package/dist/h3/index.d.ts +1 -1
  272. package/dist/h3/v1/index.d.ts +1 -1
  273. package/dist/hono/index.d.ts +9 -9
  274. package/dist/{inbox-NDKwSk_H.d.ts → inbox-c8B86Trp.d.ts} +5 -5
  275. package/dist/{index-DPMVWm_Z.d.ts → index-8US7qlvW.d.ts} +5 -5
  276. package/dist/{index-C_qlBJ3k.d.ts → index-B4wttiLh.d.ts} +4 -4
  277. package/dist/{index-CAY7rIQs.d.ts → index-BKrxynq9.d.ts} +5 -5
  278. package/dist/{index-BfYDY6eh.d.ts → index-BM6NmKSc.d.ts} +5 -5
  279. package/dist/{index-8wOL81rB.d.ts → index-BkzXwuIN.d.ts} +4 -3
  280. package/dist/{index-k-SyCzcQ.d.ts → index-CWAQRWY8.d.ts} +4 -4
  281. package/dist/{index-CQhPHHDF.d.ts → index-Cxsnd-OL.d.ts} +1 -1
  282. package/dist/{index-D1ckLbUM.d.ts → index-pZn6S_iq.d.ts} +1 -1
  283. package/dist/{index-C0_cweyT.d.ts → index-zsgNmE8m.d.ts} +14 -14
  284. package/dist/index.d.ts +6 -6
  285. package/dist/{kit-Dxx3MT8m.d.ts → kit-B8yWCRN7.d.ts} +3 -3
  286. package/dist/{knowledge-F1IhRI4Q.d.ts → knowledge-CsLPACGJ.d.ts} +5 -5
  287. package/dist/lint/index.d.ts +1 -1
  288. package/dist/list/index.d.ts +3 -3
  289. package/dist/{list-query-XHoYDlRN.d.ts → list-query-BcU8NnNL.d.ts} +3 -3
  290. package/dist/mapper/bin.js +6 -6
  291. package/dist/mcp/index.d.ts +6 -6
  292. package/dist/mcp/sdk/index.d.ts +6 -6
  293. package/dist/{messaging-C_Pr9tGx.d.ts → messaging-DQP09JsY.d.ts} +4 -4
  294. package/dist/nestjs/index.d.ts +2 -2
  295. package/dist/next/client/index.d.ts +1 -1
  296. package/dist/next/index.d.ts +103 -28
  297. package/dist/next/index.js +189 -49
  298. package/dist/node/index.d.ts +2 -2
  299. package/dist/{operations-DE7SOBw-.d.ts → operations-CB9atU2e.d.ts} +1 -1
  300. package/dist/{options-C4LuqmdG.js → options-BKBy5wM_.js} +2 -1
  301. package/dist/orpc/index.d.ts +8 -8
  302. package/dist/otel/index.d.ts +2 -2
  303. package/dist/otel/index.js +4 -4
  304. package/dist/{outbox-DxZgoKwp.d.ts → outbox-BZ712Z3X.d.ts} +4 -4
  305. package/dist/{pool-wjbAMqc1.d.ts → pool-DDR1ndk7.d.ts} +3 -3
  306. package/dist/{ports-DP0bthUk.d.ts → ports-hpbyMySO.d.ts} +1 -1
  307. package/dist/postgres/index.d.ts +4 -4
  308. package/dist/{postgrest-z-T0l23T.d.ts → postgrest-AJc8hnJU.d.ts} +1 -1
  309. package/dist/powersync/index.d.ts +6 -6
  310. package/dist/preset/index.d.ts +3 -3
  311. package/dist/preset/index.js +2 -2
  312. package/dist/{preset-DwuWNBip.js → preset-DCdEnJj9.js} +8 -13
  313. package/dist/{project-Bo1vZqVs.js → project-B32wb5J6.js} +4 -4
  314. package/dist/{provider-ClrIplXa.d.ts → provider-CWjzAIX9.d.ts} +1 -1
  315. package/dist/{push-token-v3xCcVU7.d.ts → push-token-DQ1ycFPU.d.ts} +1 -1
  316. package/dist/query/index.d.ts +1 -1
  317. package/dist/react/index.d.ts +8 -8
  318. package/dist/react/native/index.d.ts +1 -1
  319. package/dist/react/server.d.ts +8 -8
  320. package/dist/react/session.d.ts +2 -2
  321. package/dist/react-router/index.d.ts +6 -6
  322. package/dist/realtime/index.d.ts +6 -6
  323. package/dist/realtime/index.js +1 -1
  324. package/dist/{record-form-D2-F4IwS.d.ts → record-form-CubgBrtI.d.ts} +1 -1
  325. package/dist/{recordings-BBSJt_YV.d.ts → recordings-DeZYx-Kv.d.ts} +1 -1
  326. package/dist/records/index.d.ts +9 -9
  327. package/dist/{refresh-CCKB1Wa6.d.ts → refresh-D02Pbf5B.d.ts} +1 -1
  328. package/dist/{refusal-D_tklIEb.d.ts → refusal-B0VmlAxF.d.ts} +2 -2
  329. package/dist/{resolve-Bj1qD7Dy.d.ts → resolve-CtX6T0c0.d.ts} +1 -1
  330. package/dist/{resource-D8pzB5Qf.d.ts → resource-WxN0IsvB.d.ts} +1 -1
  331. package/dist/{resource-execute-BSTIfp1D.d.ts → resource-execute-BzqR8DdD.d.ts} +2 -2
  332. package/dist/{resource-types-D5WEvYtV.d.ts → resource-types-BVbHgTPg.d.ts} +4 -4
  333. package/dist/{resources-CsZ7RhZC.d.ts → resources-BSbRa0Ab.d.ts} +2 -2
  334. package/dist/{respond-BzRG-0qc.d.ts → respond-Dzu_-EPH.d.ts} +1 -1
  335. package/dist/{sales-lines-KxxStRzU.d.ts → sales-lines-BsmrNHe9.d.ts} +1 -1
  336. package/dist/{scores-B2BiNuVJ.d.ts → scores-Y8TvyJi1.d.ts} +5 -5
  337. package/dist/server/index.d.ts +24 -24
  338. package/dist/server/index.js +2 -2
  339. package/dist/{server-types-BlDiY-ya.d.ts → server-types-BkTIxW_H.d.ts} +11 -11
  340. package/dist/{session-BGP98Rgj.d.ts → session-BOzx2qHC.d.ts} +6 -6
  341. package/dist/{session-status-C4t7kbSn.d.ts → session-status-BP8eYVnA.d.ts} +2 -2
  342. package/dist/sign-in-BzihC_8k.d.ts +50 -0
  343. package/dist/{sign-in-NO7LWlw4.js → sign-in-Cyj3ZlFX.js} +120 -25
  344. package/dist/{signers-BKgmVh6A.d.ts → signers-ZmxO1I05.d.ts} +4 -4
  345. package/dist/{signing-keys-BNDUxpQL.d.ts → signing-keys-udgP7Aod.d.ts} +2 -2
  346. package/dist/solid/index.d.ts +10 -10
  347. package/dist/solid-start/index.d.ts +6 -6
  348. package/dist/spec/index.d.ts +2 -2
  349. package/dist/sql/index.d.ts +4 -4
  350. package/dist/sql/index.js +2 -2
  351. package/dist/{sql-B7vBP9g0.js → sql-CyeDg3Yh.js} +321 -212
  352. package/dist/sqlite/index.d.ts +3 -3
  353. package/dist/{sso-B0Txid2-.d.ts → sso-CkU_4mtK.d.ts} +3 -3
  354. package/dist/ssr/index.d.ts +5 -5
  355. package/dist/storage/index.d.ts +3 -3
  356. package/dist/streams/index.d.ts +1 -1
  357. package/dist/{subject-readers-DJbzlm8a.d.ts → subject-readers-CB5Te02u.d.ts} +5 -5
  358. package/dist/{subject-readers-CeeJJOQ4.js → subject-readers-VHcrWhmq.js} +2 -2
  359. package/dist/{subjects-BpIEN1MS.d.ts → subjects-CiBNKy2y.d.ts} +4 -4
  360. package/dist/{support-D7CMbhRT.d.ts → support-BxyPOFk4.d.ts} +4 -4
  361. package/dist/{support-view-CIDXF3_H.d.ts → support-view-nqUWKHEs.d.ts} +1 -1
  362. package/dist/svelte/index.d.ts +9 -9
  363. package/dist/sveltekit/index.d.ts +7 -7
  364. package/dist/{tags-Dg4Ywmqp.d.ts → tags-Cm48BsOa.d.ts} +1 -1
  365. package/dist/tanstack-db/index.d.ts +3 -3
  366. package/dist/tanstack-start/index.d.ts +6 -6
  367. package/dist/{tenant-CyLEXgot.d.ts → tenant-C9YE_kqK.d.ts} +2 -2
  368. package/dist/testing/index.d.ts +25 -25
  369. package/dist/testing/index.js +1 -1
  370. package/dist/{timeline-Cjl-1hiA.d.ts → timeline-DvXtXq5q.d.ts} +5 -5
  371. package/dist/{topic-B_DGdAEs.d.ts → topic-breZqx_4.d.ts} +5 -5
  372. package/dist/{types-Dp3UCr1e.d.ts → types-B-D6fYx2.d.ts} +1 -1
  373. package/dist/{types-DF8JYEf5.d.ts → types-C3I7S51U.d.ts} +2 -2
  374. package/dist/{types-Czq9Xtpa.d.ts → types-CK2X2wCB.d.ts} +5 -5
  375. package/dist/{types-DFdg_4yN.d.ts → types-CPl9uJ0G.d.ts} +2 -2
  376. package/dist/{types-DR1MHh7N.d.ts → types-CwQgFo8c.d.ts} +4 -4
  377. package/dist/{types-Dr9wZgNy.d.ts → types-DMihLukJ.d.ts} +3 -3
  378. package/dist/{types-A4yyKEsg.d.ts → types-iCyZ3lMx.d.ts} +4 -4
  379. package/dist/{types-BdaBfYIw.d.ts → types-nspa5I-a.d.ts} +7 -7
  380. package/dist/{undo-B1jwnVyN.d.ts → undo-0HkWXASn.d.ts} +2 -2
  381. package/dist/{usage-Dp45V42p.d.ts → usage-BkWAPkg2.d.ts} +4 -4
  382. package/dist/{vault-BghaujrZ.d.ts → vault-BkdPmL7f.d.ts} +2 -2
  383. package/dist/vercel-connect/index.d.ts +1 -1
  384. package/dist/{verify-CI8LgSpv.d.ts → verify-41mZmspj.d.ts} +2 -2
  385. package/dist/{view-BvNA7EOC.d.ts → view-C8_xvD-j.d.ts} +1 -1
  386. package/dist/vue/index.d.ts +10 -10
  387. package/dist/{watch-topic-1zIAtiNM.d.ts → watch-topic-ItO3dz8m.d.ts} +1 -1
  388. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  389. package/dist/workflow-sdk/index.d.ts +1 -1
  390. package/dist/workflow-sdk/world/index.d.ts +1 -1
  391. package/dist/workflow-sdk/world/index.js +1 -1
  392. package/dist/{workflow-sdk-CaEw822d.js → workflow-sdk-BWPsdzVK.js} +36 -8
  393. package/dist/{workflow-sdk-BNsZrcVg.d.ts → workflow-sdk-rg3IbCZC.d.ts} +3 -3
  394. package/dist/{workflows-B0ZPAQu0.d.ts → workflows-xL6t0TXx.d.ts} +7 -4
  395. package/dist/yjs/index.d.ts +2 -2
  396. package/package.json +1 -2
  397. package/schemas/config-v1.json +5 -352
  398. package/schemas/doctor-report-v1.json +1 -0
  399. package/skills/better-supabase/references/ui-recipes.md +5 -5
  400. package/skills/better-supabase-auth/SKILL.md +8 -1
  401. package/dist/cli/add-pDOlqWUa.js +0 -1
  402. package/dist/cli/env-Cy2lWBRC.js +0 -1
  403. package/dist/cli/powersync-DURhWDVc.js +0 -1
  404. package/dist/cli/seed-BJ7c-ktX.js +0 -1
  405. package/dist/sign-in-CAadgm33.d.ts +0 -24
@@ -1,4 +1,4 @@
1
- import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-B_DGdAEs.js";
1
+ import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-breZqx_4.js";
2
2
  //#region src/realtime/watch-topic.d.ts
3
3
  interface TopicWatch {
4
4
  readonly onMessage: (event: string, payload: unknown) => void;
@@ -1,6 +1,6 @@
1
- import { L as WorkflowGraph, i as BuilderStarter, l as NodeRunRecord } from "../../types-BdaBfYIw.js";
2
- import { a as GraphSubject, i as GraphStepCall, o as approvalToken, r as GraphRuntime, s as executeGraph, t as GraphApprovalCall } from "../../executor-C-Ox9eKq.js";
3
- import { s as WorkflowFn } from "../../workflow-sdk-BNsZrcVg.js";
1
+ import { L as WorkflowGraph, i as BuilderStarter, l as NodeRunRecord } from "../../types-nspa5I-a.js";
2
+ import { a as GraphSubject, i as GraphStepCall, o as approvalToken, r as GraphRuntime, s as executeGraph, t as GraphApprovalCall } from "../../executor-BlS0kCrN.js";
3
+ import { s as WorkflowFn } from "../../workflow-sdk-rg3IbCZC.js";
4
4
  import { World } from "@workflow/world";
5
5
  //#region src/workflow-sdk/builder/builder.d.ts
6
6
  /** The env flag the Workflow SDK reads before it starts or runs dynamic source. */
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { _ as workflowContext, a as StartOnEventOptions, c as WorkflowRunAs, d as authorizeHook, f as contextAttributes, g as startOnEvent, h as startFor, i as StartForOptions, l as WorkflowRunAsFor, m as protectWebHandler, n as HookForbiddenError, o as WorkflowContextOptions, p as hookMetadata, r as ProtectWebHandlerOptions, s as WorkflowFn, t as AuthorizeHookOptions, u as WorkflowStarterOptions, v as workflowStarter } from "../workflow-sdk-BNsZrcVg.js";
2
+ import { _ as workflowContext, a as StartOnEventOptions, c as WorkflowRunAs, d as authorizeHook, f as contextAttributes, g as startOnEvent, h as startFor, i as StartForOptions, l as WorkflowRunAsFor, m as protectWebHandler, n as HookForbiddenError, o as WorkflowContextOptions, p as hookMetadata, r as ProtectWebHandlerOptions, s as WorkflowFn, t as AuthorizeHookOptions, u as WorkflowStarterOptions, v as workflowStarter } from "../workflow-sdk-rg3IbCZC.js";
3
3
  //#region src/workflow-sdk/approval-waiter.d.ts
4
4
  /** How `approvalWaiter.wait` ended. */
5
5
  type ApprovalWaitResult<P> = {
@@ -1,4 +1,4 @@
1
- import { o as EventHub } from "../../events-Cc9DDQWH.js";
1
+ import { o as EventHub } from "../../events-B2qbZps6.js";
2
2
  import { n as Logger } from "../../logger-DWVYUmwi.js";
3
3
  import { Pool } from "pg";
4
4
  import { World } from "@workflow/world";
@@ -1,7 +1,7 @@
1
1
  import { n as dbError } from "../../errors-BVFgt8BZ.js";
2
2
  import { o as problemResponse } from "../../problem-Bf0cJ7tk.js";
3
3
  import { i as sqlIdent } from "../../template-Drgg3v2J.js";
4
- import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-CaEw822d.js";
4
+ import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-BWPsdzVK.js";
5
5
  import { n as hmacHex, r as timingSafeEqual } from "../../hmac-B3CTTlfv.js";
6
6
  import { t as watchPoolErrors } from "../../pool-errors-JUBcGrre.js";
7
7
  import { n as memoized } from "../../optional-peer-C1NbBRJm.js";
@@ -32,17 +32,45 @@ const writeExtraColumns = (table, extras, source, where, into) => extras.length
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
34
  /**
35
- * The extra columns an insert sets itself: those whose type is `not null`
36
- * without a `default`, which the update `writeExtraColumns` runs after the
37
- * insert would set too late. `columns` and `values` are `, a, b` lists for the
38
- * insert, reading `source` (a `jsonb` object keyed by column name); both are
39
- * empty when no extra column needs it, so the insert is unchanged.
35
+ * The `default` expression of an `extraColumns` type, such as `'en'` in `text
36
+ * not null default 'en'`, or undefined without one.
37
+ */
38
+ function extraColumnDefault(type) {
39
+ let quoted = false;
40
+ let depth = 0;
41
+ let start;
42
+ for (let index = 0; index < type.length; index += 1) {
43
+ const char = type.charAt(index);
44
+ if (char === "'") quoted = !quoted;
45
+ if (quoted) continue;
46
+ depth += char === "(" ? 1 : char === ")" ? -1 : 0;
47
+ if (depth !== 0 || !/\s/u.test(type.charAt(index - 1) || " ")) continue;
48
+ const rest = type.slice(index);
49
+ if (start === void 0) {
50
+ const match = /^default\s+/iu.exec(rest);
51
+ start = match === null ? void 0 : index + match[0].length;
52
+ } else if (CONSTRAINT_WORD.test(rest)) return type.slice(start, index).trim();
53
+ }
54
+ return start === void 0 ? void 0 : type.slice(start).trim();
55
+ }
56
+ const CONSTRAINT_WORD = /^(?:not\s+null|null|check|references|unique|primary\s+key|constraint|generated|collate)\b/iu;
57
+ /**
58
+ * The extra columns an insert sets itself: every one, read from `source` (a
59
+ * `jsonb` object keyed by column name), and the column's `default` when
60
+ * `source` leaves its key out. Writing them in the insert keeps a check across
61
+ * columns, or a `not null` column without a default, from failing before the
62
+ * update `writeExtraColumns` runs. `columns` and `values` are `, a, b` lists
63
+ * for the insert; both are empty without extra columns.
40
64
  */
41
65
  const insertExtraColumns = (table, extras, source) => {
42
- const required = extras.filter((extra) => /\bnot\s+null\b/iu.test(extra.type) && !/\bdefault\b/iu.test(extra.type));
66
+ const value = (extra) => {
67
+ const read = `(jsonb_populate_record(null::${table}, coalesce(${source}, '{}'::jsonb))).${extra.ident}`;
68
+ const fallback = extraColumnDefault(extra.type);
69
+ return fallback === void 0 ? read : `case when ${source} ? ${sqlString(extra.name)} then ${read} else ${fallback} end`;
70
+ };
43
71
  return {
44
- columns: required.map((extra) => `, ${extra.ident}`).join(""),
45
- values: required.map((extra) => `, (jsonb_populate_record(null::${table}, coalesce(${source}, '{}'::jsonb))).${extra.ident}`).join("")
72
+ columns: extras.map((extra) => `, ${extra.ident}`).join(""),
73
+ values: extras.map((extra) => `, ${value(extra)}`).join("")
46
74
  };
47
75
  };
48
76
  /**
@@ -1,6 +1,6 @@
1
- import { Ft as RequestContext } from "./types-DFdg_4yN.js";
2
- import { f as WorkflowStarter, l as WorkflowStartCall, p as WorkflowSubject, t as WorkflowPrincipalKind } from "./workflows-B0ZPAQu0.js";
3
- import { a as OutboxEvent, o as OutboxHandler } from "./outbox-DxZgoKwp.js";
1
+ import { Ft as RequestContext } from "./types-CPl9uJ0G.js";
2
+ import { f as WorkflowStarter, l as WorkflowStartCall, p as WorkflowSubject, t as WorkflowPrincipalKind } from "./workflows-xL6t0TXx.js";
3
+ import { a as OutboxEvent, o as OutboxHandler } from "./outbox-BZ712Z3X.js";
4
4
  import { Hook, Run } from "workflow/api";
5
5
  import { World } from "@workflow/world";
6
6
  //#region src/workflow-sdk/workflow-sdk.d.ts
@@ -1,14 +1,17 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, t as AsyncResult } from "./result-DZeA5KS6.js";
3
3
  import { n as Logger } from "./logger-DWVYUmwi.js";
4
- import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-CRpAHrp_.js";
5
- import { t as BlockTransport } from "./block-transport-DWZSJrwN.js";
6
- import { n as BlockHooks } from "./block-hooks-DZN2w69m.js";
4
+ import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-D5emQ2O6.js";
5
+ import { t as BlockTransport } from "./block-transport-9EUA3q_I.js";
6
+ import { n as BlockHooks } from "./block-hooks-B8itxzEE.js";
7
7
  import { r as RunState } from "./run-state-BMCD_1Lt.js";
8
8
  //#region src/blocks/workflows/workflows.d.ts
9
9
  /** A workflow run's state, in the words ai-chat and ai-schedules runs share. */
10
10
  type WorkflowRunStatus = Exclude<RunState, "cancel_requested">;
11
- /** The record a run belongs to: a subject type from `config.records` and its id. */
11
+ /**
12
+ * The record a run belongs to: a subject type from `config.subjects` and its
13
+ * id.
14
+ */
12
15
  interface WorkflowSubject {
13
16
  readonly type: string;
14
17
  readonly id: string;
@@ -1,6 +1,6 @@
1
1
  import { t as AsyncResult } from "../result-DZeA5KS6.js";
2
- import { c as RealtimeClient, r as PresenceMember } from "../topic-B_DGdAEs.js";
3
- import { a as DocumentSuggestion, d as OpenedDocument, l as Documents, r as DocumentRef, t as DecidedSuggestion } from "../documents-Cup1rpjF.js";
2
+ import { c as RealtimeClient, r as PresenceMember } from "../topic-breZqx_4.js";
3
+ import { a as DocumentSuggestion, d as OpenedDocument, l as Documents, r as DocumentRef, t as DecidedSuggestion } from "../documents-BbwYyynk.js";
4
4
  //#region src/yjs/yjs.d.ts
5
5
  type PresenceState = Readonly<Record<string, unknown>>;
6
6
  /** 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.28.0",
3
+ "version": "0.30.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",
@@ -1225,7 +1225,6 @@
1225
1225
  "gen:fixtures": "node scripts/gen-fixtures.ts",
1226
1226
  "lint": "oxlint",
1227
1227
  "test": "vitest run --project unit --coverage",
1228
- "transit": "true",
1229
1228
  "typecheck": "tsc --noEmit"
1230
1229
  }
1231
1230
  }
@@ -1340,7 +1340,7 @@
1340
1340
  },
1341
1341
  "additionalProperties": false
1342
1342
  },
1343
- "records": {
1343
+ "subjects": {
1344
1344
  "type": "object",
1345
1345
  "propertyNames": {
1346
1346
  "type": "string",
@@ -1529,351 +1529,6 @@
1529
1529
  },
1530
1530
  "description": "The app's subject types, keyed by type name: the entities blocks attach tags, comments, fields and ranks to. Subject-bound SQL modules read this registry, and the `subjects` module writes `subject_title`, `subject_url` and `can_subject` from it."
1531
1531
  },
1532
- "tables": {
1533
- "type": "object",
1534
- "additionalProperties": {
1535
- "type": "object",
1536
- "properties": {
1537
- "columns": {
1538
- "type": "object",
1539
- "additionalProperties": {
1540
- "type": "object",
1541
- "properties": {
1542
- "type": {
1543
- "enum": [
1544
- "text",
1545
- "uuid",
1546
- "integer",
1547
- "bigint",
1548
- "numeric",
1549
- "boolean",
1550
- "timestamptz",
1551
- "date",
1552
- "jsonb",
1553
- "text[]"
1554
- ],
1555
- "type": "string"
1556
- },
1557
- "nullable": {
1558
- "type": "boolean",
1559
- "default": true
1560
- },
1561
- "default": {
1562
- "type": "string",
1563
- "description": "now(), gen_random_uuid(), auth.uid(), true, false, a number, a 'quoted' literal, '{}' or '[]'."
1564
- },
1565
- "unique": {
1566
- "type": "boolean"
1567
- },
1568
- "references": {
1569
- "anyOf": [
1570
- {
1571
- "type": "object",
1572
- "properties": {
1573
- "table": {
1574
- "type": "string"
1575
- },
1576
- "onDelete": {
1577
- "enum": [
1578
- "cascade",
1579
- "restrict",
1580
- "set null",
1581
- "no action"
1582
- ],
1583
- "type": "string"
1584
- }
1585
- },
1586
- "required": ["table"],
1587
- "additionalProperties": false
1588
- },
1589
- {
1590
- "type": "object",
1591
- "properties": {
1592
- "block": {
1593
- "type": "string"
1594
- },
1595
- "table": {
1596
- "type": "string"
1597
- },
1598
- "onDelete": {
1599
- "enum": [
1600
- "cascade",
1601
- "restrict",
1602
- "set null",
1603
- "no action"
1604
- ],
1605
- "type": "string"
1606
- }
1607
- },
1608
- "required": ["block", "table"],
1609
- "additionalProperties": false
1610
- }
1611
- ],
1612
- "description": "Another app table, auth.users, or a logical table of an installed block ({ block, table })."
1613
- },
1614
- "format": {
1615
- "enum": [
1616
- "email",
1617
- "url",
1618
- "phone",
1619
- "long_text",
1620
- "color",
1621
- "rating",
1622
- "percent",
1623
- "currency"
1624
- ],
1625
- "type": "string",
1626
- "description": "What the column holds. email, url, rating and percent add a check; phone, long_text, color and currency are hints for the UI and gen. ADR 0042."
1627
- },
1628
- "options": {
1629
- "type": "array",
1630
- "items": {
1631
- "type": "string"
1632
- },
1633
- "description": "The values of a text column (single select) or of each element of a text[] column (multi-select), checked by the database."
1634
- },
1635
- "min": {
1636
- "type": "number",
1637
- "description": "The smallest value of a number column, or the shortest text."
1638
- },
1639
- "max": {
1640
- "type": "number",
1641
- "description": "The largest value of a number column, or the longest text."
1642
- },
1643
- "comment": {
1644
- "type": "string"
1645
- },
1646
- "identity": {
1647
- "type": "boolean",
1648
- "description": "An integer or bigint the database numbers (generated by default as identity)."
1649
- },
1650
- "access": {
1651
- "enum": ["read", "server"],
1652
- "type": "string"
1653
- },
1654
- "encrypted": {
1655
- "type": "boolean"
1656
- }
1657
- },
1658
- "required": ["type"],
1659
- "additionalProperties": false
1660
- },
1661
- "description": "The table's own columns, keyed by lower snake name. id, created_at, updated_at, user_id and the tenant column are reserved."
1662
- },
1663
- "timestamps": {
1664
- "type": "boolean",
1665
- "default": true
1666
- },
1667
- "id": {
1668
- "enum": ["uuid", "bigint"],
1669
- "type": "string",
1670
- "description": "The id's type. A reference to the table needs a column of the same type.",
1671
- "default": "uuid"
1672
- },
1673
- "unique": {
1674
- "type": "array",
1675
- "items": {
1676
- "type": "array",
1677
- "items": {
1678
- "type": "string"
1679
- }
1680
- },
1681
- "description": "Sets of columns that are unique together."
1682
- },
1683
- "indexes": {
1684
- "type": "array",
1685
- "items": {
1686
- "type": "array",
1687
- "items": {
1688
- "type": "string"
1689
- }
1690
- },
1691
- "description": "Sets of columns to index, in order."
1692
- },
1693
- "comment": {
1694
- "type": "string"
1695
- },
1696
- "auditReads": {
1697
- "type": "boolean"
1698
- },
1699
- "subject": {
1700
- "type": "object",
1701
- "properties": {
1702
- "type": {
1703
- "type": "string"
1704
- },
1705
- "title": {
1706
- "type": "string"
1707
- },
1708
- "url": {
1709
- "type": "string"
1710
- },
1711
- "search": {
1712
- "type": "object",
1713
- "properties": {
1714
- "title": {
1715
- "type": "string"
1716
- },
1717
- "body": {
1718
- "type": "array",
1719
- "items": {
1720
- "type": "string"
1721
- }
1722
- }
1723
- },
1724
- "additionalProperties": false
1725
- },
1726
- "permissions": {
1727
- "type": "object",
1728
- "additionalProperties": {
1729
- "type": "string"
1730
- }
1731
- },
1732
- "rank": {
1733
- "anyOf": [
1734
- {
1735
- "const": true
1736
- },
1737
- {
1738
- "type": "object",
1739
- "properties": {
1740
- "group": {
1741
- "type": "string"
1742
- }
1743
- },
1744
- "additionalProperties": false
1745
- }
1746
- ],
1747
- "description": "Adds a rank text column for move(), ordered within group when set."
1748
- },
1749
- "softDelete": {
1750
- "type": "boolean",
1751
- "description": "Adds a deleted_at column that blocks treat as the soft-delete time."
1752
- },
1753
- "versions": {
1754
- "anyOf": [
1755
- {
1756
- "const": true
1757
- },
1758
- {
1759
- "type": "object",
1760
- "properties": {
1761
- "columns": {
1762
- "type": "array",
1763
- "items": {
1764
- "type": "string"
1765
- }
1766
- },
1767
- "auto": {
1768
- "type": "boolean"
1769
- }
1770
- },
1771
- "additionalProperties": false
1772
- }
1773
- ]
1774
- }
1775
- },
1776
- "required": ["type"],
1777
- "additionalProperties": false,
1778
- "description": "Registers the table as a subject, so comments, attachments, tags, versions, search and other blocks reach its rows (ADR 0043)."
1779
- },
1780
- "rollups": {
1781
- "type": "object",
1782
- "additionalProperties": {
1783
- "type": "object",
1784
- "properties": {
1785
- "table": {
1786
- "type": "string",
1787
- "description": "The app table to aggregate."
1788
- },
1789
- "via": {
1790
- "type": "string",
1791
- "description": "The column of that table that references this one."
1792
- },
1793
- "aggregate": {
1794
- "enum": ["count", "sum", "min", "max", "avg"],
1795
- "type": "string"
1796
- },
1797
- "column": {
1798
- "type": "string",
1799
- "description": "The column to aggregate; count takes none."
1800
- },
1801
- "where": {
1802
- "type": "object",
1803
- "properties": {
1804
- "column": {
1805
- "type": "string"
1806
- },
1807
- "equals": {
1808
- "type": "string"
1809
- }
1810
- },
1811
- "required": ["column", "equals"],
1812
- "additionalProperties": false,
1813
- "description": "Counts only the rows whose select column equals one option."
1814
- }
1815
- },
1816
- "required": ["table", "via", "aggregate"],
1817
- "additionalProperties": false
1818
- },
1819
- "description": "Columns of public.<table>_view that aggregate a child table through its reference to this table (ADR 0044)."
1820
- },
1821
- "lookups": {
1822
- "type": "object",
1823
- "additionalProperties": {
1824
- "type": "object",
1825
- "properties": {
1826
- "via": {
1827
- "type": "string",
1828
- "description": "The column of this table that references another app table."
1829
- },
1830
- "column": {
1831
- "type": "string",
1832
- "description": "The column of the referenced row to read."
1833
- }
1834
- },
1835
- "required": ["via", "column"],
1836
- "additionalProperties": false
1837
- },
1838
- "description": "Columns of public.<table>_view read from the row a reference points at (ADR 0044)."
1839
- },
1840
- "events": {
1841
- "anyOf": [
1842
- {
1843
- "const": true
1844
- },
1845
- {
1846
- "type": "object",
1847
- "properties": {
1848
- "on": {
1849
- "type": "array",
1850
- "items": {
1851
- "enum": ["created", "updated", "deleted"],
1852
- "type": "string"
1853
- }
1854
- },
1855
- "include": {
1856
- "type": "array",
1857
- "items": {
1858
- "type": "string"
1859
- }
1860
- }
1861
- },
1862
- "additionalProperties": false
1863
- }
1864
- ]
1865
- },
1866
- "owner": {
1867
- "enum": ["inherit", "user", "none"],
1868
- "type": "string",
1869
- "description": "inherit follows sql.scope; user keeps rows per user; none lets signed-in users read and only the service role write.",
1870
- "default": "inherit"
1871
- }
1872
- },
1873
- "additionalProperties": false
1874
- },
1875
- "description": "Tables the app owns, keyed by name, created in public by `better-supabase upgrade` with an id, the scope column, created_at and updated_at, row level security and policies for the scope. Money is a bigint of minor units next to a text currency column. ADR 0040."
1876
- },
1877
1532
  "blocks": {
1878
1533
  "description": "The blocks to install and keep in sync: a list of names, or an object keyed by block name whose values set the block's mode, names, permission keys and options. The foundation blocks (tenant, access, updated-at, rls-guard, ...) are configured here too.",
1879
1534
  "oneOf": [
@@ -3086,11 +2741,8 @@
3086
2741
  "auth": {
3087
2742
  "$ref": "#/properties/auth"
3088
2743
  },
3089
- "records": {
3090
- "$ref": "#/properties/records"
3091
- },
3092
- "tables": {
3093
- "$ref": "#/properties/tables"
2744
+ "subjects": {
2745
+ "$ref": "#/properties/subjects"
3094
2746
  },
3095
2747
  "blocks": {
3096
2748
  "$ref": "#/properties/blocks"
@@ -4343,7 +3995,8 @@
4343
3995
  "calendarDetails": {
4344
3996
  "type": "boolean",
4345
3997
  "default": false
4346
- }
3998
+ },
3999
+ "ruleDialect": {}
4347
4000
  }
4348
4001
  }
4349
4002
  }
@@ -160,6 +160,7 @@
160
160
  "BS503",
161
161
  "BS504",
162
162
  "BS505",
163
+ "BS506",
163
164
  "BS601",
164
165
  "BS602",
165
166
  "BS700",
@@ -802,7 +802,7 @@ import { useErrorMessage } from "@/lib/use-error-message";
802
802
 
803
803
  /**
804
804
  * A record's comments, oldest first, through the browser client. `subject` is
805
- * any type in `config.records`, such as a customer or a project.
805
+ * any type in `config.subjects`, such as a customer or a project.
806
806
  */
807
807
  export function CommentThread({
808
808
  subject,
@@ -9163,7 +9163,7 @@ import { useSubject } from "@/hooks/use-subjects";
9163
9163
  import { Link } from "@/i18n/navigation";
9164
9164
 
9165
9165
  /**
9166
- * A link to any subject in `config.records`, titled and routed by
9166
+ * A link to any subject in `config.subjects`, titled and routed by
9167
9167
  * `subject_titles`. The links rendered in one pass share one round trip, and a
9168
9168
  * subject the caller can't read shows as plain text.
9169
9169
  */
@@ -22062,7 +22062,7 @@ export function StatusPageSkeleton() {
22062
22062
 
22063
22063
  ## Record grid
22064
22064
 
22065
- An app table as a data grid with search, filters, saved views and bulk actions on the selected rows, including Set field through `appTables.set`. It loads its data on the server through the block's client; the [saved-views block](https://bettersupabase.com/blocks/saved-views) must be installed (`npx better-supabase add saved-views`). Page: https://bettersupabase.com/recipes/record-grid.
22065
+ An app table as a data grid with search, filters, saved views and bulk actions on the selected rows, including a Set field action. It loads its data on the server through the block's client; the [saved-views block](https://bettersupabase.com/blocks/saved-views) must be installed (`npx better-supabase add saved-views`). Page: https://bettersupabase.com/recipes/record-grid.
22066
22066
 
22067
22067
  Web, with shadcn components:
22068
22068
 
@@ -22339,8 +22339,8 @@ const UNASSIGNED = "unassigned";
22339
22339
  type SetField = "due_on" | "assignee_id";
22340
22340
 
22341
22341
  /**
22342
- * Sets one field on the selected tasks with the bulk block's `appTables.set`.
22343
- * An empty value clears the field.
22342
+ * Sets one field on the selected tasks through the typed repository. An empty
22343
+ * value clears the field.
22344
22344
  */
22345
22345
  function SetFieldDialog({
22346
22346
  ids,
@@ -169,7 +169,13 @@ membership lasts until the next refresh. When that window matters:
169
169
  - `bsb.invalidateSession(userId)` reaches the server caches and the caller's
170
170
  router only; another user's browser keeps its private entries until they
171
171
  go stale.
172
- - After signing in or out: `useSessionChange(sessionChanged)` from
172
+ - Sign in and out from a Server Action with `bsb.signIn`, `verifyOtp`,
173
+ `authorizeUrl` and `exchangeCode`, `verifyMfa` or `signOut`, then
174
+ `redirect(result.data.redirectTo)`. The result is plain data
175
+ (`redirectTo`, `mfa`); reads later in the action (`bsb.context()`,
176
+ `bsb.getRequestSession()`) see the new session, so build the landing
177
+ context from them.
178
+ - After signing in or out in the browser client: `useSessionChange(sessionChanged)` from
173
179
  `better-supabase/next/client`. After switching the active organization:
174
180
  `useSessionChange(sessionChanged, router, { refreshToken: supabase })`, so
175
181
  the new token reaches the server before it renders.
@@ -206,6 +212,7 @@ before touching the hook, claims, tenant or entitlements.
206
212
 
207
213
  https://bettersupabase.com/docs/auth.md,
208
214
  https://bettersupabase.com/docs/frameworks/next.md (bearer callers),
215
+ https://bettersupabase.com/docs/frameworks/next-auth.md (sign-in and sign-out),
209
216
  https://bettersupabase.com/docs/auth/account-deletion.md,
210
217
  https://bettersupabase.com/docs/frameworks/next-cache-components.md and
211
218
  https://bettersupabase.com/docs/extending/authorization-providers.md.
@@ -1 +0,0 @@
1
- export { t as addCommand } from "./add-DUyg9qna.js";
@@ -1 +0,0 @@
1
- export { n as envCommand } from "./env-DEAtgGoj.js";
@@ -1 +0,0 @@
1
- export { t as powersyncStreamsCommand } from "./powersync-Dnyr-Wy5.js";
@@ -1 +0,0 @@
1
- export { n as seedCommand } from "./seed-BzVLTdRl.js";
@@ -1,24 +0,0 @@
1
- import { f as Result } from "./result-DZeA5KS6.js";
2
- import { _ as StoredSession } from "./resolve-Bj1qD7Dy.js";
3
- import { t as RefreshOptions } from "./refresh-CCKB1Wa6.js";
4
- //#region src/auth/sign-in.d.ts
5
- /**
6
- * `next` when it is a same-origin path (`/dashboard?tab=1`), else `fallback`.
7
- * Use it on any `?next=` or `redirectTo` value a request carries, so the value
8
- * can't send the user to another origin.
9
- */
10
- declare function safeRedirectPath(next: string | null | undefined, fallback: string): string;
11
- type PasswordGrantOptions = Omit<RefreshOptions, "now"> & {
12
- readonly now?: () => number;
13
- };
14
- /**
15
- * Signs in with an email and a password against the Auth server's password
16
- * grant, without a supabase-js client. Returns the session to write as
17
- * cookies.
18
- */
19
- declare function passwordGrant(credentials: {
20
- readonly email: string;
21
- readonly password: string;
22
- }, options: PasswordGrantOptions): Promise<Result<StoredSession>>;
23
- //#endregion
24
- export { passwordGrant as n, safeRedirectPath as r, PasswordGrantOptions as t };