better-supabase 0.23.0 → 0.28.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 (364) hide show
  1. package/dist/{access-sql-bjWFUWlk.js → access-sql-CTDNuxRv.js} +177 -12
  2. package/dist/{ai-schedules-7uQNMXve.d.ts → ai-schedules-yGZH-vQb.d.ts} +1 -1
  3. package/dist/ai-sdk/agents/index.d.ts +2 -2
  4. package/dist/ai-sdk/batches/index.d.ts +1 -1
  5. package/dist/ai-sdk/index.d.ts +1 -1
  6. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  7. package/dist/{api-CHObZL7m.d.ts → api-B1OkIWdx.d.ts} +3 -3
  8. package/dist/{api-keys-D5k63K6y.d.ts → api-keys-ClhKBDcc.d.ts} +1 -1
  9. package/dist/{app-tables-CJO6pWwy.d.ts → app-tables-62GqZIhd.d.ts} +1 -1
  10. package/dist/{approvals-Dh9dUXrN.d.ts → approvals-C5fmPLsH.d.ts} +1 -1
  11. package/dist/astro/index.d.ts +5 -5
  12. package/dist/{authorization-Dtwpjeuz.d.ts → authorization-BCG1v0iC.d.ts} +73 -15
  13. package/dist/{authorization-hooks-D_pwXlBs.d.ts → authorization-hooks-DtzreCAq.d.ts} +1 -1
  14. package/dist/{automations-FCnWy387.js → automations-8L3NEuoq.js} +4 -1
  15. package/dist/{availability-vguUvEK2.d.ts → availability-BdeKCHpl.d.ts} +10 -0
  16. package/dist/better-result/index.d.ts +2 -2
  17. package/dist/{bind-DaoTunvE.d.ts → bind-C54jD0r3.d.ts} +4 -4
  18. package/dist/{block-env-DUyo2I5O.d.ts → block-env-CM-LFfj4.d.ts} +4 -4
  19. package/dist/blocks/access-requests/index.d.ts +2 -2
  20. package/dist/blocks/activities/index.d.ts +3 -3
  21. package/dist/blocks/agents/index.d.ts +2 -2
  22. package/dist/blocks/ai-cache/index.d.ts +1 -1
  23. package/dist/blocks/ai-chat/index.d.ts +5 -5
  24. package/dist/blocks/ai-files/index.d.ts +1 -1
  25. package/dist/blocks/ai-keys/index.d.ts +3 -3
  26. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  27. package/dist/blocks/announcements/index.d.ts +5 -5
  28. package/dist/blocks/api-keys/index.d.ts +5 -5
  29. package/dist/blocks/approvals/index.d.ts +3 -3
  30. package/dist/blocks/assets/index.d.ts +2 -2
  31. package/dist/blocks/assignment/index.d.ts +3 -3
  32. package/dist/blocks/attachments/index.d.ts +3 -3
  33. package/dist/blocks/audit/index.d.ts +7 -7
  34. package/dist/blocks/automations/index.d.ts +5 -5
  35. package/dist/blocks/billable-time/index.d.ts +2 -2
  36. package/dist/blocks/billing/index.d.ts +5 -5
  37. package/dist/blocks/bookings/index.d.ts +6 -6
  38. package/dist/blocks/bulk/index.d.ts +2 -2
  39. package/dist/blocks/calendar/index.d.ts +46 -13
  40. package/dist/blocks/calendar/index.js +130 -30
  41. package/dist/blocks/catalog/index.d.ts +2 -2
  42. package/dist/blocks/channels/index.d.ts +3 -3
  43. package/dist/blocks/collections/index.d.ts +3 -3
  44. package/dist/blocks/comments/index.d.ts +5 -5
  45. package/dist/blocks/compliance/index.d.ts +2 -2
  46. package/dist/blocks/connectors/index.d.ts +3 -3
  47. package/dist/blocks/contacts/index.d.ts +3 -3
  48. package/dist/blocks/content/index.d.ts +2 -2
  49. package/dist/blocks/contracts/index.d.ts +2 -2
  50. package/dist/blocks/courses/index.d.ts +2 -2
  51. package/dist/blocks/created-by/index.d.ts +1 -1
  52. package/dist/blocks/custom-fields/index.d.ts +2 -2
  53. package/dist/blocks/custom-fields/index.js +1 -1
  54. package/dist/blocks/data-lifecycle/index.d.ts +4 -4
  55. package/dist/blocks/deals/index.d.ts +3 -3
  56. package/dist/blocks/dispatch/index.d.ts +2 -2
  57. package/dist/blocks/documents/index.d.ts +2 -2
  58. package/dist/blocks/domains/index.d.ts +2 -2
  59. package/dist/blocks/donations/index.d.ts +2 -2
  60. package/dist/blocks/drive/index.d.ts +4 -4
  61. package/dist/blocks/employees/index.d.ts +21 -6
  62. package/dist/blocks/employees/index.js +37 -2
  63. package/dist/blocks/enrichment/index.d.ts +3 -3
  64. package/dist/blocks/enrollments/index.d.ts +2 -2
  65. package/dist/blocks/entitlements/index.d.ts +3 -3
  66. package/dist/blocks/expenses/index.d.ts +2 -2
  67. package/dist/blocks/field-history/index.d.ts +1 -1
  68. package/dist/blocks/flags/index.d.ts +2 -2
  69. package/dist/blocks/forecasts/index.d.ts +3 -3
  70. package/dist/blocks/forms/index.d.ts +3 -3
  71. package/dist/blocks/goals/index.d.ts +1 -1
  72. package/dist/blocks/guests/index.d.ts +2 -2
  73. package/dist/blocks/hiring/index.d.ts +13 -6
  74. package/dist/blocks/hiring/index.js +15 -4
  75. package/dist/blocks/identities/index.d.ts +2 -2
  76. package/dist/blocks/imports/index.d.ts +2 -2
  77. package/dist/blocks/inbox/index.d.ts +6 -6
  78. package/dist/blocks/incidents/index.d.ts +2 -2
  79. package/dist/blocks/index.d.ts +4 -4
  80. package/dist/blocks/inventory/index.d.ts +2 -2
  81. package/dist/blocks/invoices/index.d.ts +3 -3
  82. package/dist/blocks/knowledge/index.d.ts +1 -1
  83. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  84. package/dist/blocks/leases/index.d.ts +2 -2
  85. package/dist/blocks/leave/index.d.ts +2 -2
  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 +3 -3
  99. package/dist/blocks/organizations/index.d.ts +4 -4
  100. package/dist/blocks/outbox/index.d.ts +2 -2
  101. package/dist/blocks/passes/index.d.ts +3 -3
  102. package/dist/blocks/permissions/index.d.ts +3 -3
  103. package/dist/blocks/pipelines/index.d.ts +3 -3
  104. package/dist/blocks/posts/index.d.ts +2 -2
  105. package/dist/blocks/profiles/index.d.ts +1 -1
  106. package/dist/blocks/promotions/index.d.ts +2 -2
  107. package/dist/blocks/push/index.d.ts +3 -3
  108. package/dist/blocks/queue/index.d.ts +1 -1
  109. package/dist/blocks/quotes/index.d.ts +3 -3
  110. package/dist/blocks/rank/index.d.ts +1 -1
  111. package/dist/blocks/reactions/index.d.ts +5 -5
  112. package/dist/blocks/relations/index.d.ts +2 -2
  113. package/dist/blocks/reminders/index.d.ts +4 -4
  114. package/dist/blocks/reviews/index.d.ts +2 -2
  115. package/dist/blocks/saved-views/index.d.ts +4 -4
  116. package/dist/blocks/scores/index.d.ts +2 -2
  117. package/dist/blocks/search/index.d.ts +4 -4
  118. package/dist/blocks/security-events/index.d.ts +3 -3
  119. package/dist/blocks/segments/index.d.ts +3 -3
  120. package/dist/blocks/sequences/index.d.ts +2 -2
  121. package/dist/blocks/service-accounts/index.d.ts +2 -2
  122. package/dist/blocks/sessions/index.d.ts +2 -2
  123. package/dist/blocks/settings/index.d.ts +3 -3
  124. package/dist/blocks/share-links/index.d.ts +2 -2
  125. package/dist/blocks/shipments/index.d.ts +2 -2
  126. package/dist/blocks/signatures/index.d.ts +2 -2
  127. package/dist/blocks/signing-keys/index.d.ts +2 -2
  128. package/dist/blocks/sla/index.d.ts +3 -3
  129. package/dist/blocks/sso/index.d.ts +3 -3
  130. package/dist/blocks/state-machine/index.d.ts +2 -2
  131. package/dist/blocks/subjects/index.d.ts +2 -2
  132. package/dist/blocks/tags/index.d.ts +3 -3
  133. package/dist/blocks/tasks/index.d.ts +6 -6
  134. package/dist/blocks/tasks/index.js +1 -1
  135. package/dist/blocks/teams/index.d.ts +2 -2
  136. package/dist/blocks/templates/index.d.ts +4 -4
  137. package/dist/blocks/time-tracking/index.d.ts +10 -5
  138. package/dist/blocks/time-tracking/index.js +16 -9
  139. package/dist/blocks/timeline/index.d.ts +4 -4
  140. package/dist/blocks/trash/index.d.ts +2 -2
  141. package/dist/blocks/undo/index.d.ts +2 -2
  142. package/dist/blocks/updated-at/index.d.ts +1 -1
  143. package/dist/blocks/usage/index.d.ts +2 -2
  144. package/dist/blocks/vercel-marketplace/index.d.ts +2 -2
  145. package/dist/blocks/versions/index.d.ts +2 -2
  146. package/dist/blocks/waitlist/index.d.ts +2 -2
  147. package/dist/blocks/webhooks/index.d.ts +6 -6
  148. package/dist/blocks/workflow-editor/index.d.ts +7 -7
  149. package/dist/blocks/workflows/index.d.ts +5 -5
  150. package/dist/{bookings-BpCNphYp.d.ts → bookings-CVw5-Q0Z.d.ts} +1 -1
  151. package/dist/chat-sdk/index.d.ts +2 -2
  152. package/dist/cli/{add-DVHniZOO.js → add-BKcE_g9D.js} +2 -2
  153. package/dist/cli/{add-C7lKQNBL.js → add-DUyg9qna.js} +40 -15
  154. package/dist/cli/add-pDOlqWUa.js +1 -0
  155. package/dist/cli/{backfill-Lrn-Qp5X.js → backfill-r9RELEEh.js} +4 -4
  156. package/dist/cli/bin.js +1 -1
  157. package/dist/cli/{blocks-BKNd886C.js → blocks-DTOFdrxL.js} +1 -1
  158. package/dist/cli/{blocks-2Yw9t-_U.js → blocks-k1OG8XDs.js} +2 -2
  159. package/dist/cli/{cache-ByhPVMo-.js → cache-Czfw7Iow.js} +1 -1
  160. package/dist/cli/{codemod-C0eXpzFu.js → codemod-ClmbiLuL.js} +3 -3
  161. package/dist/cli/{command-BWEEXmtz.js → command-CVzTJSLp.js} +31 -0
  162. package/dist/cli/{completion-8EDK21xj.js → completion-CNCqE-Gb.js} +1 -1
  163. package/dist/cli/{completion-BfnKI4QZ.js → completion-Dpk6vh0p.js} +2 -2
  164. package/dist/cli/{completion-Bt7LMypX.js → completion-DxEXxFpz.js} +2 -2
  165. package/dist/cli/{config-CeaQMrvS.js → config-D2YUlzrl.js} +1 -1
  166. package/dist/cli/{config-WKDixoGK.js → config-EjNj3HfT.js} +1 -1
  167. package/dist/cli/{config-BVfeG3A5.js → config-KvV-sLZL.js} +290 -10
  168. package/dist/cli/{content-mapper-qH-_YQ8H.js → content-mapper-ez_mT0d4.js} +2 -2
  169. package/dist/cli/{db-DwjyUbAh.js → db-uYN6O5Eg.js} +38 -14
  170. package/dist/cli/{doctor-BnxkqXGA.js → doctor-BD9oo4MG.js} +31 -28
  171. package/dist/cli/{env-DMgjB_4y.js → env-BK0xKMeU.js} +1 -2
  172. package/dist/cli/{env-C-Bl6Awn.js → env-Bat6ogep.js} +1 -1
  173. package/dist/cli/env-Cy2lWBRC.js +1 -0
  174. package/dist/cli/{env-BCgVZkcb.js → env-DEAtgGoj.js} +2 -2
  175. package/dist/cli/{exec--Q1ZEWUW.js → exec-Ca5s-ygi.js} +1 -1
  176. package/dist/cli/{gen-aERmP3Sw.js → gen-8Ya8n2sA.js} +16 -16
  177. package/dist/cli/in-stack-diff-Cp-tVPj2.js +186 -0
  178. package/dist/cli/index.d.ts +1 -2
  179. package/dist/cli/index.js +8 -8
  180. package/dist/cli/{init-DWUqVSVW.js → init-DgL3sDfQ.js} +118 -11
  181. package/dist/cli/{keys-CbaL0lnw.js → keys-CsanNk-2.js} +1 -1
  182. package/dist/cli/{live-KcdTBUij.js → live-CMMEct_F.js} +2 -2
  183. package/dist/cli/{mcp-Dsjjo-LT.js → mcp-DEHtzAkq.js} +4 -4
  184. package/dist/cli/{metadata-DWQSIZ59.js → metadata-BZh-cOzC.js} +3 -3
  185. package/dist/cli/migrate-sVs1QYTM.js +306 -0
  186. package/dist/cli/{migration-safety-Cy7xlU4G.js → migration-safety-ClnYNMdq.js} +2 -2
  187. package/dist/cli/migrations-DWh38tO9.js +117 -0
  188. package/dist/cli/{module-migration-C6NLY9iZ.js → module-migration-CXfRJIV4.js} +2 -2
  189. package/dist/cli/{moved-DVwgE8lV.js → moved-Cnb4fp49.js} +1 -1
  190. package/dist/cli/{parse-B079x40m.js → parse-BWM6IGhF.js} +1 -1
  191. package/dist/cli/powersync-DURhWDVc.js +1 -0
  192. package/dist/cli/{powersync-CE_hQdgc.js → powersync-Dnyr-Wy5.js} +4 -3
  193. package/dist/cli/{print-Cy_ram9N.js → print-DJrSr56b.js} +2 -2
  194. package/dist/cli/{migrations-CUjNXokR.js → providers-CpaISitn.js} +4 -116
  195. package/dist/cli/{remove-DmwjzqaW.js → remove-ChaieK3t.js} +6 -6
  196. package/dist/cli/{render-CF09FCra.js → render-DUNJ4Pss.js} +8 -5
  197. package/dist/cli/{run-BYpZ8FjF.js → run-ChCQPYOh.js} +41 -39
  198. package/dist/cli/{run-lh-chAJW.js → run-Cl9COGuy.js} +10 -10
  199. package/dist/cli/{run-DmOTMa44.js → run-CxFDjL1Q.js} +4 -4
  200. package/dist/cli/seed-BJ7c-ktX.js +1 -0
  201. package/dist/cli/{seed-BMynpMPy.js → seed-BzVLTdRl.js} +3 -3
  202. package/dist/cli/{shared-D05A6t1e.js → shared-5uqc1GBj.js} +1 -1
  203. package/dist/cli/{skills-FXAVPLzp.js → skills-0gz_qjVb.js} +1 -1
  204. package/dist/cli/{snapshot-BITNbA5V.js → snapshot-DdAP7LWO.js} +3 -3
  205. package/dist/cli/{source-GGJHuzpH.js → source-2irbWSck.js} +1 -1
  206. package/dist/cli/{source-args-CDmmFmFG.js → source-args-DAcQt-Mh.js} +1 -1
  207. package/dist/cli/{spec-BGcRdlhN.js → spec-B7n4Rthp.js} +3 -3
  208. package/dist/cli/{spec-BjxXWaNQ.js → spec-_MS0ym5r.js} +1 -1
  209. package/dist/cli/{sql-layout-BoD5ynN9.js → sql-layout-DYKkQw1k.js} +21 -7
  210. package/dist/cli/{stack-DgASZP0K.js → stack-CteM33gC.js} +3 -3
  211. package/dist/cli/{stack-status-B_Ipd_-z.js → stack-status-BkkYRlXG.js} +1 -1
  212. package/dist/cli/{stacks-BYlQ96WS.js → stacks-CiDBH1dB.js} +1 -1
  213. package/dist/cli/{sync-_QlsTmqu.js → sync-DnSOrQuA.js} +4 -3
  214. package/dist/cli/table-DeH8X0qz.js +89 -0
  215. package/dist/cli/{upgrade-Cwhb1M7O.js → upgrade-CWdrC-K3.js} +5 -4
  216. package/dist/cli/{upgrade-n9ar1kc4.js → upgrade-cMy5fKkg.js} +3 -3
  217. package/dist/cli/{version-RSpJIWDd.js → version-C5RAWmrD.js} +1 -1
  218. package/dist/client/index.d.ts +5 -5
  219. package/dist/client/native/index.d.ts +4 -4
  220. package/dist/{cloud-event-CzZTJkXv.d.ts → cloud-event-DcJwder2.d.ts} +1 -1
  221. package/dist/{composite-ChzHhSB0.d.ts → composite-CWJvZgni.d.ts} +6 -6
  222. package/dist/config/index.d.ts +3 -3
  223. package/dist/config/index.js +4 -4
  224. package/dist/{config-RwpFcPq8.js → config-CTeR7XHK.js} +6 -5
  225. package/dist/{config-vHLJ8SKf.js → config-CvJHIy5q.js} +4 -3
  226. package/dist/{connectors-Fud4amxp.d.ts → connectors-CHGiffYH.d.ts} +1 -1
  227. package/dist/{context-CMf4OKpN.d.ts → context-BFEX0b7H.d.ts} +109 -4
  228. package/dist/{controller-BGto_kYM.d.ts → controller-Cl6HmMBk.d.ts} +1 -1
  229. package/dist/{conversion-DBgMck5U.d.ts → conversion-DlfStnln.d.ts} +1 -1
  230. package/dist/create/index.d.ts +62 -3
  231. package/dist/create/index.js +67 -4
  232. package/dist/create/lite/index.d.ts +140 -3
  233. package/dist/create/lite/index.js +399 -47
  234. package/dist/credentials/index.d.ts +3 -3
  235. package/dist/{define-Lf6rI2QN.d.ts → define-BLP6XtoL.d.ts} +1 -1
  236. package/dist/{define-block-DCAiOrNX.d.ts → define-block-DibVN37N.d.ts} +4 -4
  237. package/dist/edge/index.d.ts +8 -8
  238. package/dist/elysia/index.d.ts +1 -1
  239. package/dist/{ended-gUsMZVNg.d.ts → ended-B8RyuUXF.d.ts} +1 -1
  240. package/dist/{entitlements-CIhVQ-0u.d.ts → entitlements-Y-n4RGAd.d.ts} +2 -2
  241. package/dist/eve/index.d.ts +2 -2
  242. package/dist/{event-calendar-DCufbihU.d.ts → event-calendar-DVLs2wUO.d.ts} +1 -1
  243. package/dist/events/index.d.ts +3 -3
  244. package/dist/{events-vcqenSYU.d.ts → events-Cc9DDQWH.d.ts} +2 -0
  245. package/dist/{executor-DNK401lZ.d.ts → executor-C-Ox9eKq.d.ts} +1 -1
  246. package/dist/{executor-aFV7nEBs.d.ts → executor-DNPm13a9.d.ts} +2 -2
  247. package/dist/expo/index.d.ts +3 -3
  248. package/dist/{field-errors-BDhPaO0a.d.ts → field-errors-Btn3czyz.d.ts} +7 -7
  249. package/dist/{framework-DKA3fTHl.d.ts → framework-GlxXiotm.d.ts} +6 -6
  250. package/dist/h3/index.d.ts +1 -1
  251. package/dist/h3/v1/index.d.ts +1 -1
  252. package/dist/hono/index.d.ts +8 -8
  253. package/dist/{index-CFWlHuVY.d.ts → index-8wOL81rB.d.ts} +1 -1
  254. package/dist/{index-ClvuSZEz.d.ts → index-BfYDY6eh.d.ts} +3 -3
  255. package/dist/{index-ujNqgZ6B.d.ts → index-C0_cweyT.d.ts} +11 -11
  256. package/dist/{index--OhYKouV.d.ts → index-CAY7rIQs.d.ts} +3 -3
  257. package/dist/{index-CG9rA8H8.d.ts → index-C_qlBJ3k.d.ts} +2 -2
  258. package/dist/{index-iRkFvJ7J.d.ts → index-D1ckLbUM.d.ts} +1 -1
  259. package/dist/{index-lV43eM34.d.ts → index-DPMVWm_Z.d.ts} +4 -4
  260. package/dist/{index-4MStWaeF.d.ts → index-k-SyCzcQ.d.ts} +105 -120
  261. package/dist/index.d.ts +2 -2
  262. package/dist/{instances-BPJSESPx.js → instances-C7qUTjhJ.js} +85 -6
  263. package/dist/{kit-CVgQCIBO.d.ts → kit-Dxx3MT8m.d.ts} +3 -3
  264. package/dist/list/index.d.ts +1 -1
  265. package/dist/{list-query-XYfUZb0j.d.ts → list-query-XHoYDlRN.d.ts} +1 -1
  266. package/dist/mapper/bin.js +7 -7
  267. package/dist/mcp/index.d.ts +5 -5
  268. package/dist/mcp/sdk/index.d.ts +5 -5
  269. package/dist/nestjs/index.d.ts +2 -2
  270. package/dist/next/client/index.d.ts +1 -1
  271. package/dist/next/index.d.ts +21 -21
  272. package/dist/node/index.d.ts +2 -2
  273. package/dist/{operations-qSBBV5vl.d.ts → operations-DE7SOBw-.d.ts} +1 -1
  274. package/dist/{options-D4ADKTKo.js → options-B5E2MGIz.js} +6 -1
  275. package/dist/options-C4LuqmdG.js +15 -0
  276. package/dist/{options-D2s7fT1s.js → options-COo7_3MX.js} +2 -1
  277. package/dist/{options-D32-YxnO.js → options-DhoLMknl.js} +3 -1
  278. package/dist/{options-BPp2zzsz.js → options-eTepQ1rZ.js} +2 -1
  279. package/dist/orpc/index.d.ts +7 -7
  280. package/dist/otel/index.d.ts +1 -1
  281. package/dist/otel/index.js +4 -4
  282. package/dist/{outbox-HxjZTfF6.d.ts → outbox-DxZgoKwp.d.ts} +2 -2
  283. package/dist/{pool-CrtT4dg-.d.ts → pool-wjbAMqc1.d.ts} +1 -1
  284. package/dist/{ports-DbHiNSAa.d.ts → ports-DP0bthUk.d.ts} +1 -1
  285. package/dist/postgres/index.d.ts +1 -1
  286. package/dist/powersync/index.d.ts +3 -3
  287. package/dist/preset/index.d.ts +3 -3
  288. package/dist/preset/index.js +3 -3
  289. package/dist/{preset-B1xXOJ0T.js → preset-DwuWNBip.js} +2 -2
  290. package/dist/{project-BM6QMtzV.js → project-Bo1vZqVs.js} +5 -5
  291. package/dist/{provider-CqwEOLCA.d.ts → provider-ClrIplXa.d.ts} +1 -1
  292. package/dist/{push-token-BwF1fyjA.d.ts → push-token-v3xCcVU7.d.ts} +1 -1
  293. package/dist/query/index.d.ts +1 -1
  294. package/dist/react/index.d.ts +7 -7
  295. package/dist/react/native/index.d.ts +1 -1
  296. package/dist/react/server.d.ts +8 -8
  297. package/dist/react/session.d.ts +2 -2
  298. package/dist/react-router/index.d.ts +5 -5
  299. package/dist/realtime/index.d.ts +4 -4
  300. package/dist/realtime/index.js +1 -1
  301. package/dist/{record-form-BbZpwsEi.d.ts → record-form-D2-F4IwS.d.ts} +1 -1
  302. package/dist/records/index.d.ts +7 -7
  303. package/dist/{refresh-DT_ICaK-.d.ts → refresh-CCKB1Wa6.d.ts} +1 -1
  304. package/dist/{refusal-OrlI3g4H.d.ts → refusal-D_tklIEb.d.ts} +2 -2
  305. package/dist/{resolve-CXX6DHv3.d.ts → resolve-Bj1qD7Dy.d.ts} +1 -1
  306. package/dist/{resolved-names-WzRYhUez.js → resolved-names-iLBOUaib.js} +2 -2
  307. package/dist/{resource-execute-CUG6xUuh.d.ts → resource-execute-BSTIfp1D.d.ts} +1 -1
  308. package/dist/{resource-types-DjZ91WKA.d.ts → resource-types-D5WEvYtV.d.ts} +2 -2
  309. package/dist/{resources-6Ncdt9XT.d.ts → resources-CsZ7RhZC.d.ts} +1 -1
  310. package/dist/{respond-oZeJ342J.d.ts → respond-BzRG-0qc.d.ts} +1 -1
  311. package/dist/server/index.d.ts +20 -20
  312. package/dist/{server-types-BH6AjDBN.d.ts → server-types-BlDiY-ya.d.ts} +8 -8
  313. package/dist/{session-Y5SSYO2C.d.ts → session-BGP98Rgj.d.ts} +5 -5
  314. package/dist/{session-status-qQLm7jzh.d.ts → session-status-C4t7kbSn.d.ts} +2 -2
  315. package/dist/{sign-in-BAjR49fq.d.ts → sign-in-CAadgm33.d.ts} +2 -2
  316. package/dist/solid/index.d.ts +9 -9
  317. package/dist/solid-start/index.d.ts +5 -5
  318. package/dist/spec/index.d.ts +1 -1
  319. package/dist/sql/index.d.ts +5 -5
  320. package/dist/sql/index.js +5 -5
  321. package/dist/{sql-CNH8kjLS.js → sql-B7vBP9g0.js} +6248 -2092
  322. package/dist/sqlite/index.d.ts +1 -1
  323. package/dist/ssr/index.d.ts +5 -5
  324. package/dist/storage/index.js +1 -1
  325. package/dist/{subject-readers-8GySC9Z8.d.ts → subject-readers-DJbzlm8a.d.ts} +1 -1
  326. package/dist/{subjects-NomQg6Eg.d.ts → subjects-BYCL-6hA.d.ts} +15 -1
  327. package/dist/{support-B4ZBVxt3.d.ts → support-D7CMbhRT.d.ts} +4 -4
  328. package/dist/{support-view-BYOgwXsJ.d.ts → support-view-CIDXF3_H.d.ts} +1 -1
  329. package/dist/svelte/index.d.ts +8 -8
  330. package/dist/sveltekit/index.d.ts +6 -6
  331. package/dist/{tags-Cjtcp5cN.d.ts → tags-Dg4Ywmqp.d.ts} +1 -1
  332. package/dist/tanstack-db/index.d.ts +1 -1
  333. package/dist/tanstack-start/index.d.ts +5 -5
  334. package/dist/{tenant-D4BA7XQ-.d.ts → tenant-CyLEXgot.d.ts} +2 -2
  335. package/dist/testing/index.d.ts +16 -16
  336. package/dist/testing/index.js +2 -2
  337. package/dist/{timeline-CEzj9v1z.d.ts → timeline-Cjl-1hiA.d.ts} +3 -3
  338. package/dist/{topic-utZqhw96.d.ts → topic-B_DGdAEs.d.ts} +3 -3
  339. package/dist/{topic-F0FKzJyQ.js → topic-DnsNG4Kj.js} +1 -1
  340. package/dist/{types-yj8VF4oY.d.ts → types-BdaBfYIw.d.ts} +2 -2
  341. package/dist/{types-DLnBJ3ST.d.ts → types-DF8JYEf5.d.ts} +2 -2
  342. package/dist/{types-EO2crSX_.d.ts → types-DR1MHh7N.d.ts} +1 -1
  343. package/dist/{vault-O-YlAyHb.d.ts → vault-BghaujrZ.d.ts} +1 -1
  344. package/dist/vercel-connect/index.d.ts +1 -1
  345. package/dist/{verify-B0KLBb3j.d.ts → verify-CI8LgSpv.d.ts} +1 -1
  346. package/dist/{view-DyFdMCqg.d.ts → view-BvNA7EOC.d.ts} +1 -1
  347. package/dist/vue/index.d.ts +9 -9
  348. package/dist/{watch-topic-B1UCoQfz.d.ts → watch-topic-1zIAtiNM.d.ts} +1 -1
  349. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  350. package/dist/workflow-sdk/index.d.ts +1 -1
  351. package/dist/workflow-sdk/world/index.d.ts +1 -1
  352. package/dist/workflow-sdk/world/index.js +1 -1
  353. package/dist/{workflow-sdk-B3Ss55Fy.d.ts → workflow-sdk-BNsZrcVg.d.ts} +1 -1
  354. package/dist/{workflow-sdk-CE8sEK57.js → workflow-sdk-CaEw822d.js} +25 -4
  355. package/dist/yjs/index.d.ts +1 -1
  356. package/dist/yjs/index.js +1 -1
  357. package/package.json +11 -1
  358. package/schemas/config-v1.json +95 -1
  359. package/dist/cli/add-vZRn-uH0.js +0 -1
  360. package/dist/cli/env-xhwXk5Ri.js +0 -1
  361. package/dist/cli/in-stack-diff-DQTW53Vf.js +0 -257
  362. package/dist/cli/powersync-BOhjVQCb.js +0 -1
  363. package/dist/cli/seed-CO3j_bly.js +0 -1
  364. package/dist/options-DztCKw_f.js +0 -8
@@ -1398,6 +1398,9 @@
1398
1398
  },
1399
1399
  "owner": {
1400
1400
  "type": "string"
1401
+ },
1402
+ "also": {
1403
+ "type": "string"
1401
1404
  }
1402
1405
  },
1403
1406
  "additionalProperties": false
@@ -1462,6 +1465,25 @@
1462
1465
  },
1463
1466
  "via": {
1464
1467
  "type": "string"
1468
+ },
1469
+ "through": {
1470
+ "type": "array",
1471
+ "items": {
1472
+ "type": "object",
1473
+ "properties": {
1474
+ "table": {
1475
+ "type": "string"
1476
+ },
1477
+ "from": {
1478
+ "type": "string"
1479
+ },
1480
+ "to": {
1481
+ "type": "string"
1482
+ }
1483
+ },
1484
+ "required": ["table", "from", "to"],
1485
+ "additionalProperties": false
1486
+ }
1465
1487
  }
1466
1488
  },
1467
1489
  "required": ["table", "key"],
@@ -4296,6 +4318,31 @@
4296
4318
  "additionalProperties": {
4297
4319
  "type": "string"
4298
4320
  }
4321
+ },
4322
+ "access": {
4323
+ "type": "boolean",
4324
+ "default": false
4325
+ },
4326
+ "accessFunctions": {},
4327
+ "userFeed": {
4328
+ "type": "boolean",
4329
+ "default": false
4330
+ },
4331
+ "recurrence": {
4332
+ "type": "string",
4333
+ "default": "inline"
4334
+ },
4335
+ "rdates": {
4336
+ "type": "boolean",
4337
+ "default": false
4338
+ },
4339
+ "attendeeKey": {
4340
+ "type": "string",
4341
+ "default": "email"
4342
+ },
4343
+ "calendarDetails": {
4344
+ "type": "boolean",
4345
+ "default": false
4299
4346
  }
4300
4347
  }
4301
4348
  }
@@ -4588,6 +4635,14 @@
4588
4635
  "auditReads": {
4589
4636
  "type": "boolean",
4590
4637
  "default": false
4638
+ },
4639
+ "rankType": {
4640
+ "type": "string",
4641
+ "default": "text"
4642
+ },
4643
+ "readAccess": {
4644
+ "type": "string",
4645
+ "default": "tenant"
4591
4646
  }
4592
4647
  }
4593
4648
  }
@@ -4829,6 +4884,26 @@
4829
4884
  "additionalProperties": {
4830
4885
  "type": "string"
4831
4886
  }
4887
+ },
4888
+ "name": {
4889
+ "type": "string",
4890
+ "default": "single"
4891
+ },
4892
+ "privateDetails": {
4893
+ "type": "string",
4894
+ "default": "json"
4895
+ },
4896
+ "contracts": {
4897
+ "type": "string",
4898
+ "default": "append"
4899
+ },
4900
+ "salaryUnits": {
4901
+ "type": "string",
4902
+ "default": "minor"
4903
+ },
4904
+ "contractOverlap": {
4905
+ "type": "string",
4906
+ "default": "end"
4832
4907
  }
4833
4908
  }
4834
4909
  }
@@ -5021,6 +5096,17 @@
5021
5096
  "additionalProperties": {
5022
5097
  "type": "string"
5023
5098
  }
5099
+ },
5100
+ "stages": {
5101
+ "default": "pipelines"
5102
+ },
5103
+ "scorecardKey": {
5104
+ "type": "string",
5105
+ "default": "stage"
5106
+ },
5107
+ "hiringManager": {
5108
+ "type": "string",
5109
+ "default": "user"
5024
5110
  }
5025
5111
  }
5026
5112
  }
@@ -6583,6 +6669,10 @@
6583
6669
  "additionalProperties": {
6584
6670
  "type": "string"
6585
6671
  }
6672
+ },
6673
+ "authorCanDelete": {
6674
+ "type": "boolean",
6675
+ "default": true
6586
6676
  }
6587
6677
  }
6588
6678
  }
@@ -6659,7 +6749,11 @@
6659
6749
  "type": "boolean",
6660
6750
  "default": true
6661
6751
  },
6662
- "userTimeZone": {}
6752
+ "userTimeZone": {},
6753
+ "owner": {
6754
+ "type": "string",
6755
+ "default": "user"
6756
+ }
6663
6757
  }
6664
6758
  }
6665
6759
  }
@@ -1 +0,0 @@
1
- export { t as addCommand } from "./add-C7lKQNBL.js";
@@ -1 +0,0 @@
1
- export { n as envCommand } from "./env-BCgVZkcb.js";
@@ -1,257 +0,0 @@
1
- import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
2
- import { r as supabaseCli, t as runProcess } from "./exec--Q1ZEWUW.js";
3
- import { t as connect } from "./db-CQCLx7cx.js";
4
- import { basename, dirname, join } from "node:path";
5
- import { mkdtemp, readFile, readdir, rm } from "node:fs/promises";
6
- import { tmpdir } from "node:os";
7
- //#region src/cli/in-stack-diff.ts
8
- /**
9
- * Schemas the platform owns. The declarative files may add policies to their
10
- * tables (`storage.objects`), so those policies are dropped and replayed, but
11
- * the schemas themselves are kept.
12
- */
13
- const PLATFORM_SCHEMAS = /* @__PURE__ */ new Set([
14
- "_analytics",
15
- "_realtime",
16
- "auth",
17
- "cron",
18
- "extensions",
19
- "graphql",
20
- "graphql_public",
21
- "information_schema",
22
- "net",
23
- "pgbouncer",
24
- "pgmq",
25
- "pgsodium",
26
- "pgsodium_masks",
27
- "pgtle",
28
- "realtime",
29
- "repack",
30
- "storage",
31
- "supabase_functions",
32
- "supabase_migrations",
33
- "tiger",
34
- "tiger_data",
35
- "topology",
36
- "vault"
37
- ]);
38
- /** The local stack's superuser; pg-delta skips objects it owns. */
39
- const ADMIN_ROLE = "supabase_admin";
40
- /** Why the Supabase CLI could not start its shadow database. */
41
- const SHADOW_FAILURE = /could not create shared memory segment|No space left on device|shmget|shadow database/i;
42
- function isShadowFailure(output) {
43
- return SHADOW_FAILURE.test(output);
44
- }
45
- /**
46
- * The same database as `supabase_admin`, which may create databases and read
47
- * every schema.
48
- */
49
- function adminUrl(url) {
50
- const parsed = new URL(url);
51
- parsed.username = ADMIN_ROLE;
52
- return parsed.toString();
53
- }
54
- function withDatabase(url, database) {
55
- const parsed = new URL(url);
56
- parsed.pathname = `/${database}`;
57
- return parsed.toString();
58
- }
59
- /** The migration versions (`<digits>_name.sql`) the stack has not applied. */
60
- function pendingMigrations(files, applied) {
61
- return files.filter((file) => {
62
- const version = /^(\d+)_/.exec(basename(file))?.[1];
63
- return version !== void 0 && !applied.has(version);
64
- });
65
- }
66
- /** The SQL from `supabase db diff --output-format json`, or its text output. */
67
- function diffSql(stdout) {
68
- const start = stdout.indexOf("{");
69
- if (start !== -1) try {
70
- const parsed = JSON.parse(stdout.slice(start));
71
- if (typeof parsed === "object" && parsed !== null && "diff" in parsed && typeof parsed.diff === "string") return parsed.diff;
72
- } catch {}
73
- return stdout;
74
- }
75
- /** The postmaster's `bin` directory, from `ps` lines and its data directory. */
76
- function postgresBin(psOutput, dataDirectory) {
77
- for (const line of psOutput.split("\n")) {
78
- const command = line.trim().replace(/^\d+\s+/, "");
79
- const executable = command.split(/\s+/)[0];
80
- if (executable !== void 0 && basename(executable).includes("postgres") && command.includes(` -D ${dataDirectory}`)) return dirname(executable);
81
- }
82
- }
83
- const MIGRATION_HEADER = `-- Generated by better-supabase db diff from the running stack with pg-delta.
84
- -- The SQL compares two databases, so review it before you apply it: check
85
- -- the order of the statements and drop the ones you didn't mean to change.
86
- `;
87
- /** UTC `YYYYMMDDHHMMSS`, the Supabase CLI's migration version. */
88
- function migrationVersion(now) {
89
- return now.toISOString().replaceAll(/[-:T]/g, "").slice(0, 14);
90
- }
91
- async function queryRows(client, sql) {
92
- return (await client.query(sql)).rows;
93
- }
94
- async function findPostgresBin(options, client) {
95
- const fromEnv = options.env.BSB_PG_BIN;
96
- if (fromEnv !== void 0 && fromEnv !== "") return fromEnv;
97
- const [row] = await queryRows(client, "show data_directory");
98
- const ps = await (options.run ?? runProcess)("ps", ["-axo", "pid=,command="], options.root, options.env);
99
- return row === void 0 ? void 0 : postgresBin(ps.stdout, row.data_directory);
100
- }
101
- const tool = (bin, name) => bin === void 0 ? name : join(bin, name);
102
- async function dropManagedObjects(client, replayedPlatformSchemas) {
103
- const schemas = await queryRows(client, String.raw`select nspname from pg_namespace where nspname not like 'pg\_%' and nspname not in (select n.nspname from pg_namespace n join pg_depend d on d.objid = n.oid and d.deptype = 'e')`);
104
- for (const { nspname } of schemas) {
105
- if (PLATFORM_SCHEMAS.has(nspname)) continue;
106
- if (nspname === "public") await client.query(EMPTY_PUBLIC);
107
- else await client.query(`drop schema ${quoteIdent(nspname)} cascade`);
108
- }
109
- for (const schema of replayedPlatformSchemas) {
110
- const policies = await client.query("select tablename, policyname from pg_policies where schemaname = $1", [schema]);
111
- for (const policy of policies.rows) await client.query(`drop policy ${quoteIdent(policy.policyname)} on ${quoteIdent(schema)}.${quoteIdent(policy.tablename)}`);
112
- }
113
- }
114
- const quoteIdent = (name) => `"${name.replaceAll("\"", "\"\"")}"`;
115
- /**
116
- * Empties `public` without dropping it, so its default privileges stay. Objects
117
- * an extension owns stay too.
118
- */
119
- const EMPTY_PUBLIC = `do $$
120
- declare r record;
121
- begin
122
- for r in select format('drop %s if exists public.%I cascade',
123
- case c.relkind when 'v' then 'view' when 'm' then 'materialized view' when 'S' then 'sequence' when 'f' then 'foreign table' else 'table' end,
124
- c.relname) as s
125
- from pg_class c join pg_namespace n on n.oid = c.relnamespace
126
- where n.nspname = 'public' and c.relkind in ('v', 'm', 'r', 'p', 'f', 'S')
127
- and not exists (select 1 from pg_depend d where d.objid = c.oid and d.deptype = 'e')
128
- order by case c.relkind when 'v' then 0 when 'm' then 0 when 'S' then 2 else 1 end
129
- loop execute r.s; end loop;
130
- for r in select format('drop routine if exists %s cascade', p.oid::regprocedure) as s
131
- from pg_proc p join pg_namespace n on n.oid = p.pronamespace
132
- where n.nspname = 'public'
133
- and not exists (select 1 from pg_depend d where d.objid = p.oid and d.deptype = 'e')
134
- loop execute r.s; end loop;
135
- for r in select format('drop type if exists public.%I cascade', t.typname) as s
136
- from pg_type t join pg_namespace n on n.oid = t.typnamespace
137
- where n.nspname = 'public' and t.typtype in ('e', 'd', 'c')
138
- and (t.typtype <> 'c' or (select relkind from pg_class where oid = t.typrelid) = 'c')
139
- and not exists (select 1 from pg_depend d where d.objid = t.oid and d.deptype = 'e')
140
- loop execute r.s; end loop;
141
- end $$`;
142
- /**
143
- * Applies each file in its own transaction and retries the ones that failed
144
- * until a round applies nothing, so files that depend on a later file still
145
- * apply. Returns the files that never applied, with the last error.
146
- */
147
- async function applyInRounds(client, root, files) {
148
- let pending = await Promise.all(files.map(async (file) => ({
149
- file,
150
- sql: await readFile(join(root, file), "utf-8")
151
- })));
152
- let error;
153
- while (pending.length > 0) {
154
- const failed = [];
155
- for (const script of pending) try {
156
- await client.query("begin");
157
- await client.query(script.sql);
158
- await client.query("commit");
159
- } catch (cause) {
160
- await client.query("rollback");
161
- failed.push(script);
162
- error = `${script.file}: ${errorText(cause)}`;
163
- }
164
- if (failed.length === pending.length) return {
165
- failed: failed.map((script) => script.file),
166
- ...error === void 0 ? {} : { error }
167
- };
168
- pending = failed;
169
- }
170
- return { failed: [] };
171
- }
172
- /**
173
- * Diffs the declarative schema against the running stack without a shadow
174
- * database: copies the stack's database into a temporary one in the same
175
- * Postgres, replaces the objects the files manage with the files, and lets the
176
- * CLI's pg-delta diff the stack against the copy. The temporary database is
177
- * always dropped.
178
- */
179
- async function inStackDiff(options) {
180
- const open = options.open ?? connect;
181
- const run = options.run ?? runProcess;
182
- const supabase = options.supabase ?? supabaseCli;
183
- const log = options.log ?? (() => {});
184
- const admin = adminUrl(options.url);
185
- const temp = `bsb_diff_${Date.now().toString(36)}`;
186
- const tempUrl = withDatabase(admin, temp);
187
- const main = await open(admin);
188
- const scratch = await mkdtemp(join(tmpdir(), "bsb-diff-"));
189
- let created = false;
190
- try {
191
- const applied = new Set((await queryRows(main.client, "select version from supabase_migrations.schema_migrations").catch(() => [])).map((row) => row.version));
192
- const behind = pendingMigrations(options.migrations, applied);
193
- if (behind.length > 0) throw new CliError("check_failed", `The stack has not applied ${String(behind.length)} migration(s) (${behind.slice(0, 3).join(", ")}${behind.length > 3 ? ", ..." : ""}), so the diff would repeat them. Run supabase migration up, then diff again.`, { suggestion: "supabase migration up" });
194
- const bin = await findPostgresBin(options, main.client);
195
- const dump = join(scratch, "schema.sql");
196
- log("Copying the stack's schema into a temporary database");
197
- const dumped = await run(tool(bin, "pg_dump"), [
198
- "--schema-only",
199
- "--file",
200
- dump,
201
- admin
202
- ], options.root, options.env);
203
- if (dumped.code !== 0) throw new CliError(dumped.code === 127 ? "dependency_missing" : "failed", dumped.code === 127 ? "db diff --in-stack needs pg_dump and psql from the stack's Postgres. Set BSB_PG_BIN to their directory." : `pg_dump failed: ${dumped.stderr.trim()}`);
204
- await main.client.query(`create database ${quoteIdent(temp)} owner postgres`);
205
- created = true;
206
- if ((await run(tool(bin, "psql"), [
207
- "-X",
208
- "-q",
209
- "-v",
210
- "ON_ERROR_STOP=0",
211
- "-d",
212
- tempUrl,
213
- "-f",
214
- dump
215
- ], options.root, options.env)).code === 127) throw new CliError("dependency_missing", "db diff --in-stack needs psql from the stack's Postgres. Set BSB_PG_BIN to its directory.");
216
- const copy = await open(tempUrl);
217
- try {
218
- await copy.client.query("set check_function_bodies = off");
219
- const topLevel = new Set(options.files.map((file) => file.slice(options.schemasDir.length + 1).split("/")[0] ?? ""));
220
- await dropManagedObjects(copy.client, new Set([...topLevel].filter((schema) => PLATFORM_SCHEMAS.has(schema))));
221
- await copy.client.query("set role postgres");
222
- log(`Applying ${String(options.files.length)} schema file(s)`);
223
- const result = await applyInRounds(copy.client, options.root, options.files);
224
- if (result.failed.length > 0) throw new CliError("failed", `${String(result.failed.length)} schema file(s) did not apply. ${result.error ?? ""}`.trim());
225
- } finally {
226
- await copy.close();
227
- }
228
- log("Diffing the stack against the schema files with pg-delta");
229
- const diff = await supabase([
230
- "db",
231
- "diff",
232
- "--use-pg-delta",
233
- "--from",
234
- "local",
235
- "--to",
236
- `${tempUrl}${tempUrl.includes("?") ? "&" : "?"}sslmode=disable`,
237
- "--output-format",
238
- "json"
239
- ], options.root, options.env);
240
- if (diff.code !== 0) throw new CliError("supabase_cli_failed", `supabase db diff failed: ${(diff.stderr || diff.stdout).trim()}`);
241
- return diffSql(diff.stdout).trim();
242
- } finally {
243
- if (created) await main.client.query(`drop database if exists ${quoteIdent(temp)} with (force)`).catch(() => void 0);
244
- await main.close();
245
- await rm(scratch, {
246
- recursive: true,
247
- force: true
248
- });
249
- }
250
- }
251
- /** The migration files under `supabase/migrations`, relative to the root. */
252
- async function migrationFiles(root, supabaseDir) {
253
- const dir = join(supabaseDir, "migrations");
254
- return (await readdir(join(root, dir)).catch(() => [])).filter((name) => name.endsWith(".sql")).toSorted().map((name) => join(dir, name));
255
- }
256
- //#endregion
257
- export { migrationFiles as a, isShadowFailure as i, PLATFORM_SCHEMAS as n, migrationVersion as o, inStackDiff as r, MIGRATION_HEADER as t };
@@ -1 +0,0 @@
1
- export { t as powersyncStreamsCommand } from "./powersync-CE_hQdgc.js";
@@ -1 +0,0 @@
1
- export { n as seedCommand } from "./seed-BMynpMPy.js";
@@ -1,8 +0,0 @@
1
- import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
2
- //#region src/blocks/calendar/options.ts
3
- const calendarSqlOptions = blockOptions({
4
- extraColumns: option.extraColumns(),
5
- calendarExtraColumns: option.extraColumns()
6
- });
7
- //#endregion
8
- export { calendarSqlOptions as t };