better-supabase 0.21.0 → 0.23.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 (306) hide show
  1. package/dist/{access-sql-CNIgUqWf.js → access-sql-bjWFUWlk.js} +11 -0
  2. package/dist/{adapter-DZJZTY6g.js → adapter-D4aNBxhm.js} +2 -2
  3. package/dist/ai-sdk/agents/index.d.ts +2 -2
  4. package/dist/api-3C0AWFeP.js +696 -0
  5. package/dist/{api-Cj4W_pqT.d.ts → api-CHObZL7m.d.ts} +1 -1
  6. package/dist/{app-tables-C5HjXs2k.d.ts → app-tables-CJO6pWwy.d.ts} +1 -1
  7. package/dist/astro/index.js +5 -5
  8. package/dist/{authorization-DhoA7dsD.d.ts → authorization-Dtwpjeuz.d.ts} +91 -13
  9. package/dist/{bind-CFsctoFJ.d.ts → bind-DaoTunvE.d.ts} +1 -1
  10. package/dist/{block-env-BrUNeuJ_.d.ts → block-env-DUyo2I5O.d.ts} +3 -3
  11. package/dist/blocks/access-requests/index.js +1 -1
  12. package/dist/blocks/activities/index.js +1 -1
  13. package/dist/blocks/agents/index.js +1 -1
  14. package/dist/blocks/ai-chat/index.d.ts +3 -3
  15. package/dist/blocks/ai-chat/index.js +1 -1
  16. package/dist/blocks/ai-keys/index.js +1 -1
  17. package/dist/blocks/announcements/index.d.ts +3 -3
  18. package/dist/blocks/announcements/index.js +1 -1
  19. package/dist/blocks/api-keys/index.d.ts +1 -1
  20. package/dist/blocks/api-keys/index.js +1 -1
  21. package/dist/blocks/approvals/index.js +1 -1
  22. package/dist/blocks/assets/index.js +1 -1
  23. package/dist/blocks/assignment/index.js +1 -1
  24. package/dist/blocks/attachments/index.d.ts +1 -1
  25. package/dist/blocks/attachments/index.js +1 -1
  26. package/dist/blocks/audit/index.d.ts +2 -2
  27. package/dist/blocks/audit/index.js +1 -1
  28. package/dist/blocks/automations/index.d.ts +1 -1
  29. package/dist/blocks/automations/index.js +1 -1
  30. package/dist/blocks/billable-time/index.js +1 -1
  31. package/dist/blocks/billing/index.d.ts +1 -1
  32. package/dist/blocks/billing/index.js +2 -2
  33. package/dist/blocks/bookings/index.d.ts +1 -1
  34. package/dist/blocks/bookings/index.js +1 -1
  35. package/dist/blocks/bulk/index.js +1 -1
  36. package/dist/blocks/calendar/index.d.ts +5 -1
  37. package/dist/blocks/calendar/index.js +7 -4
  38. package/dist/blocks/catalog/index.js +1 -1
  39. package/dist/blocks/channels/index.js +1 -1
  40. package/dist/blocks/collections/index.js +1 -1
  41. package/dist/blocks/comments/index.d.ts +4 -4
  42. package/dist/blocks/compliance/index.js +1 -1
  43. package/dist/blocks/connectors/index.js +1 -1
  44. package/dist/blocks/contacts/index.js +1 -1
  45. package/dist/blocks/content/index.js +1 -1
  46. package/dist/blocks/contracts/index.js +1 -1
  47. package/dist/blocks/courses/index.js +1 -1
  48. package/dist/blocks/custom-fields/index.d.ts +43 -1
  49. package/dist/blocks/custom-fields/index.js +41 -2
  50. package/dist/blocks/data-lifecycle/index.js +1 -1
  51. package/dist/blocks/deals/index.js +1 -1
  52. package/dist/blocks/dispatch/index.js +1 -1
  53. package/dist/blocks/documents/index.js +1 -1
  54. package/dist/blocks/domains/index.js +1 -1
  55. package/dist/blocks/donations/index.js +1 -1
  56. package/dist/blocks/drive/index.d.ts +1 -1
  57. package/dist/blocks/drive/index.js +1 -1
  58. package/dist/blocks/employees/index.d.ts +4 -0
  59. package/dist/blocks/employees/index.js +2 -2
  60. package/dist/blocks/enrichment/index.js +1 -1
  61. package/dist/blocks/enrollments/index.js +1 -1
  62. package/dist/blocks/entitlements/index.d.ts +2 -2
  63. package/dist/blocks/expenses/index.js +1 -1
  64. package/dist/blocks/flags/index.js +1 -1
  65. package/dist/blocks/forecasts/index.js +1 -1
  66. package/dist/blocks/forms/index.d.ts +1 -1
  67. package/dist/blocks/forms/index.js +1 -1
  68. package/dist/blocks/guests/index.js +1 -1
  69. package/dist/blocks/hiring/index.js +1 -1
  70. package/dist/blocks/imports/index.js +1 -1
  71. package/dist/blocks/inbox/index.d.ts +4 -4
  72. package/dist/blocks/inbox/index.js +1 -1
  73. package/dist/blocks/incidents/index.js +1 -1
  74. package/dist/blocks/index.d.ts +1 -1
  75. package/dist/blocks/index.js +2 -2
  76. package/dist/blocks/inventory/index.js +1 -1
  77. package/dist/blocks/invoices/index.js +1 -1
  78. package/dist/blocks/leases/index.js +1 -1
  79. package/dist/blocks/leave/index.js +1 -1
  80. package/dist/blocks/ledger/index.js +1 -1
  81. package/dist/blocks/mail-sync/index.js +1 -1
  82. package/dist/blocks/messaging/index.d.ts +4 -4
  83. package/dist/blocks/messaging/index.js +1 -1
  84. package/dist/blocks/metrics/index.js +1 -1
  85. package/dist/blocks/mfa/index.d.ts +1 -1
  86. package/dist/blocks/moderation/index.js +1 -1
  87. package/dist/blocks/notifications/index.d.ts +3 -3
  88. package/dist/blocks/notifications/index.js +3 -3
  89. package/dist/blocks/numbering/index.js +1 -1
  90. package/dist/blocks/oauth-server/index.js +1 -1
  91. package/dist/blocks/onboarding/index.d.ts +1 -1
  92. package/dist/blocks/orders/index.js +1 -1
  93. package/dist/blocks/organizations/index.d.ts +2 -2
  94. package/dist/blocks/organizations/index.js +1 -1
  95. package/dist/blocks/outbox/index.js +1 -1
  96. package/dist/blocks/passes/index.js +1 -1
  97. package/dist/blocks/permissions/index.d.ts +1 -1
  98. package/dist/blocks/pipelines/index.js +1 -1
  99. package/dist/blocks/posts/index.js +1 -1
  100. package/dist/blocks/promotions/index.js +1 -1
  101. package/dist/blocks/push/index.d.ts +1 -1
  102. package/dist/blocks/push/index.js +1 -1
  103. package/dist/blocks/quotes/index.js +1 -1
  104. package/dist/blocks/reactions/index.d.ts +3 -3
  105. package/dist/blocks/reactions/index.js +1 -1
  106. package/dist/blocks/relations/index.js +1 -1
  107. package/dist/blocks/reminders/index.js +1 -1
  108. package/dist/blocks/reviews/index.js +1 -1
  109. package/dist/blocks/saved-views/index.d.ts +1 -1
  110. package/dist/blocks/saved-views/index.js +1 -1
  111. package/dist/blocks/scores/index.js +1 -1
  112. package/dist/blocks/search/index.d.ts +4 -2
  113. package/dist/blocks/search/index.js +3 -1
  114. package/dist/blocks/security-events/index.js +1 -1
  115. package/dist/blocks/segments/index.js +1 -1
  116. package/dist/blocks/sequences/index.js +1 -1
  117. package/dist/blocks/service-accounts/index.js +1 -1
  118. package/dist/blocks/sessions/index.d.ts +1 -1
  119. package/dist/blocks/settings/index.d.ts +1 -1
  120. package/dist/blocks/settings/index.js +1 -1
  121. package/dist/blocks/share-links/index.d.ts +28 -3
  122. package/dist/blocks/share-links/index.js +59 -23
  123. package/dist/blocks/shipments/index.js +1 -1
  124. package/dist/blocks/signatures/index.js +1 -1
  125. package/dist/blocks/signing-keys/index.js +1 -1
  126. package/dist/blocks/sla/index.js +1 -1
  127. package/dist/blocks/sso/index.js +1 -1
  128. package/dist/blocks/state-machine/index.js +1 -1
  129. package/dist/blocks/subjects/index.d.ts +1 -1
  130. package/dist/blocks/tags/index.d.ts +18 -3
  131. package/dist/blocks/tags/index.js +16 -3
  132. package/dist/blocks/tasks/index.js +2 -2
  133. package/dist/blocks/teams/index.d.ts +26 -4
  134. package/dist/blocks/teams/index.js +11 -4
  135. package/dist/blocks/templates/index.js +1 -1
  136. package/dist/blocks/time-tracking/index.d.ts +18 -0
  137. package/dist/blocks/time-tracking/index.js +13 -4
  138. package/dist/blocks/timeline/index.js +1 -1
  139. package/dist/blocks/trash/index.js +1 -1
  140. package/dist/blocks/undo/index.d.ts +1 -1
  141. package/dist/blocks/usage/index.d.ts +1 -1
  142. package/dist/blocks/vercel-marketplace/index.js +1 -1
  143. package/dist/blocks/versions/index.js +1 -1
  144. package/dist/blocks/waitlist/index.js +1 -1
  145. package/dist/blocks/webhooks/index.js +4 -4
  146. package/dist/blocks/workflow-editor/index.d.ts +3 -3
  147. package/dist/blocks/workflow-editor/index.js +1 -1
  148. package/dist/blocks/workflows/index.d.ts +3 -3
  149. package/dist/blocks/workflows/index.js +1 -1
  150. package/dist/cli/{add-BTDPjVGC.js → add-C7lKQNBL.js} +11 -11
  151. package/dist/cli/{add-C0w-mVTQ.js → add-DVHniZOO.js} +2 -2
  152. package/dist/cli/add-vZRn-uH0.js +1 -0
  153. package/dist/cli/{backfill-BDdBs6Ne.js → backfill-Lrn-Qp5X.js} +3 -3
  154. package/dist/cli/bin.js +1 -1
  155. package/dist/cli/{blocks-Bs-lA-U_.js → blocks-2Yw9t-_U.js} +1 -1
  156. package/dist/cli/{blocks-CQLME-HQ.js → blocks-BKNd886C.js} +1 -1
  157. package/dist/cli/{cache-DDKao2Va.js → cache-ByhPVMo-.js} +1 -1
  158. package/dist/cli/{codemod-Bjl998Do.js → codemod-C0eXpzFu.js} +1 -1
  159. package/dist/cli/{config-BH0goim0.js → config-BVfeG3A5.js} +37 -5
  160. package/dist/cli/{config-CTRzkX0H.js → config-CeaQMrvS.js} +1 -1
  161. package/dist/cli/{content-mapper-DgSTl-DL.js → content-mapper-qH-_YQ8H.js} +2 -2
  162. package/dist/cli/{db-DCeyHS1y.js → db-DwjyUbAh.js} +2 -2
  163. package/dist/cli/{doctor-CMLWbt44.js → doctor-BnxkqXGA.js} +21 -19
  164. package/dist/cli/{gen-D3VX8WdV.js → gen-aERmP3Sw.js} +14 -14
  165. package/dist/cli/index.d.ts +1 -1
  166. package/dist/cli/index.js +7 -7
  167. package/dist/cli/{init-D6D6eWze.js → init-DWUqVSVW.js} +6 -6
  168. package/dist/cli/{live-C_xgTOfD.js → live-KcdTBUij.js} +2 -2
  169. package/dist/cli/{mcp-B0Irjbes.js → mcp-Dsjjo-LT.js} +2 -2
  170. package/dist/cli/{metadata-cLXra-XB.js → metadata-DWQSIZ59.js} +3 -3
  171. package/dist/cli/{migration-safety-OUK-Afbb.js → migration-safety-Cy7xlU4G.js} +2 -2
  172. package/dist/cli/{migrations-CHenMvl_.js → migrations-CUjNXokR.js} +1 -1
  173. package/dist/cli/{module-migration-6V7vXWUK.js → module-migration-C6NLY9iZ.js} +2 -2
  174. package/dist/cli/powersync-BOhjVQCb.js +1 -0
  175. package/dist/cli/{powersync-D83yAFbl.js → powersync-CE_hQdgc.js} +2 -2
  176. package/dist/cli/{print-C0OmQyTu.js → print-Cy_ram9N.js} +2 -2
  177. package/dist/cli/{remove-BWlOngNT.js → remove-DmwjzqaW.js} +5 -5
  178. package/dist/cli/{render-9m70qveo.js → render-CF09FCra.js} +7 -4
  179. package/dist/cli/{run-He3M-ZRq.js → run-BYpZ8FjF.js} +25 -25
  180. package/dist/cli/{run-gE4eAazR.js → run-lh-chAJW.js} +8 -8
  181. package/dist/cli/{seed-CdSxunFT.js → seed-BMynpMPy.js} +2 -2
  182. package/dist/cli/seed-CO3j_bly.js +1 -0
  183. package/dist/cli/{shared-Cx2WFVWq.js → shared-D05A6t1e.js} +1 -1
  184. package/dist/cli/{snapshot-CZb3uVKE.js → snapshot-BITNbA5V.js} +3 -3
  185. package/dist/cli/{source-CrYSCdPZ.js → source-GGJHuzpH.js} +1 -1
  186. package/dist/cli/{source-args-z-jkabmO.js → source-args-CDmmFmFG.js} +1 -1
  187. package/dist/cli/{spec-Cn5RhuQc.js → spec-BGcRdlhN.js} +2 -2
  188. package/dist/cli/{spec-D4b9ePuQ.js → spec-BjxXWaNQ.js} +1 -1
  189. package/dist/cli/{sql-layout-CLJ67h3L.js → sql-layout-BoD5ynN9.js} +2 -2
  190. package/dist/cli/{sync-B8VGiaHk.js → sync-_QlsTmqu.js} +3 -3
  191. package/dist/cli/{upgrade-BvBWK3Fo.js → upgrade-Cwhb1M7O.js} +4 -4
  192. package/dist/cli/{upgrade-DMiYx1C8.js → upgrade-n9ar1kc4.js} +2 -2
  193. package/dist/cli/{version-BVg2Z6yv.js → version-RSpJIWDd.js} +1 -1
  194. package/dist/client/index.d.ts +5 -5
  195. package/dist/client/native/index.d.ts +4 -4
  196. package/dist/{composite-Dw5ofSF_.js → composite-CBRbvn5j.js} +2 -2
  197. package/dist/config/index.d.ts +4 -4
  198. package/dist/config/index.js +4 -4
  199. package/dist/{config-BOt5T6Vs.js → config-RwpFcPq8.js} +3 -3
  200. package/dist/{config-CD2OGfCG.js → config-vHLJ8SKf.js} +1 -1
  201. package/dist/{context-sgrUjA3U.d.ts → context-CMf4OKpN.d.ts} +72 -16
  202. package/dist/{controller-B6vWdKSa.d.ts → controller-BGto_kYM.d.ts} +1 -1
  203. package/dist/create/index.d.ts +72 -451
  204. package/dist/create/index.js +15 -1687
  205. package/dist/create/lite/index.d.ts +250 -13
  206. package/dist/create/lite/index.js +1007 -24
  207. package/dist/credentials/index.js +1 -1
  208. package/dist/edge/index.js +7 -7
  209. package/dist/elysia/index.js +1 -1
  210. package/dist/{entitlements-BPaPd3MD.d.ts → entitlements-CIhVQ-0u.d.ts} +1 -1
  211. package/dist/events/index.js +1 -1
  212. package/dist/expo/index.js +3 -3
  213. package/dist/{field-errors-DBgDCITw.d.ts → field-errors-BDhPaO0a.d.ts} +4 -4
  214. package/dist/{framework-DXM1vNcV.js → framework-DYEUraqt.js} +1 -1
  215. package/dist/h3/index.js +1 -1
  216. package/dist/h3/v1/index.js +1 -1
  217. package/dist/hono/index.js +6 -6
  218. package/dist/{index-ByF22_C6.d.ts → index--OhYKouV.d.ts} +2 -2
  219. package/dist/{index-Bt7_mxn0.d.ts → index-4MStWaeF.d.ts} +185 -7
  220. package/dist/{index-5JSxY1MG.d.ts → index-CFWlHuVY.d.ts} +77 -2
  221. package/dist/{index-CdMZQCYR.d.ts → index-lV43eM34.d.ts} +2 -2
  222. package/dist/{index-C4sjewrr.d.ts → index-ujNqgZ6B.d.ts} +6 -6
  223. package/dist/{app-tables-DyswUg6J.js → instances-BPJSESPx.js} +176 -11
  224. package/dist/{kit-DhlB-vv_.js → kit-Bcd9wYCV.js} +1 -1
  225. package/dist/mapper/bin.js +6 -6
  226. package/dist/mcp/index.d.ts +1 -1
  227. package/dist/mcp/index.js +6 -6
  228. package/dist/mcp/sdk/index.js +2 -2
  229. package/dist/nestjs/index.js +1 -1
  230. package/dist/next/index.d.ts +3 -3
  231. package/dist/next/index.js +7 -7
  232. package/dist/node/index.js +1 -1
  233. package/dist/{operations-DC3wU3Sy.d.ts → operations-qSBBV5vl.d.ts} +1 -1
  234. package/dist/{options-fMxhtuVR.js → options-BJtdsK7b.js} +4 -1
  235. package/dist/{options-DhdazgTZ.js → options-BPp2zzsz.js} +3 -1
  236. package/dist/options-BSsYXjhC.js +9 -0
  237. package/dist/{options-ChiL-4ZS.js → options-D4ADKTKo.js} +3 -1
  238. package/dist/{options-C1-pwEqm.js → options-DztCKw_f.js} +4 -1
  239. package/dist/{options-BfFC4iFE.js → options-jsOCvLUz.js} +3 -1
  240. package/dist/orpc/index.d.ts +1 -1
  241. package/dist/orpc/index.js +5 -5
  242. package/dist/otel/index.js +4 -4
  243. package/dist/{ports-BbBJVyS0.d.ts → ports-DbHiNSAa.d.ts} +1 -1
  244. package/dist/powersync/index.d.ts +2 -2
  245. package/dist/preset/index.d.ts +4 -4
  246. package/dist/preset/index.js +4 -4
  247. package/dist/{preset-B3CukUhu.js → preset-B1xXOJ0T.js} +179 -7
  248. package/dist/project-BM6QMtzV.js +1760 -0
  249. package/dist/{push-token-CPJfPFa2.d.ts → push-token-BwF1fyjA.d.ts} +1 -1
  250. package/dist/react/index.d.ts +5 -5
  251. package/dist/react/index.js +2 -2
  252. package/dist/react/native/index.d.ts +1 -1
  253. package/dist/react/server.d.ts +5 -5
  254. package/dist/react/server.js +2 -2
  255. package/dist/{react-_D_CeZMk.js → react-CcrQQl0_.js} +2 -2
  256. package/dist/react-router/index.js +5 -5
  257. package/dist/realtime/index.d.ts +3 -3
  258. package/dist/realtime/index.js +1 -1
  259. package/dist/records/index.d.ts +3 -3
  260. package/dist/{refusal-D48CMqpQ.js → refusal-DDlInPff.js} +2 -2
  261. package/dist/{instances-DDt7NdVl.js → resolved-names-WzRYhUez.js} +2 -146
  262. package/dist/{resource-R3KToNze.js → resource-BUJcZKiW.js} +2 -2
  263. package/dist/{resources-DqIwoQsP.js → resources-jb3R6rEa.js} +1 -1
  264. package/dist/server/index.d.ts +1 -1
  265. package/dist/server/index.js +7 -7
  266. package/dist/{sign-in-1FJiXXyG.js → sign-in-NO7LWlw4.js} +2 -2
  267. package/dist/solid/index.d.ts +5 -5
  268. package/dist/solid/index.js +1 -1
  269. package/dist/solid-start/index.js +5 -5
  270. package/dist/spec/index.d.ts +2 -2
  271. package/dist/spec/index.js +2 -693
  272. package/dist/sql/index.d.ts +5 -5
  273. package/dist/sql/index.js +5 -5
  274. package/dist/{sql-BjjgwJKg.js → sql-CNH8kjLS.js} +2727 -955
  275. package/dist/ssr/index.d.ts +1 -1
  276. package/dist/storage/index.js +1 -1
  277. package/dist/subjects-NomQg6Eg.d.ts +131 -0
  278. package/dist/svelte/index.d.ts +5 -5
  279. package/dist/svelte/index.js +1 -1
  280. package/dist/sveltekit/index.js +5 -5
  281. package/dist/tanstack-start/index.js +5 -5
  282. package/dist/{tenant-BHvMFNXl.d.ts → tenant-D4BA7XQ-.d.ts} +1 -1
  283. package/dist/testing/index.d.ts +4 -4
  284. package/dist/testing/index.js +5 -5
  285. package/dist/{topic-J9I3yu6f.js → topic-F0FKzJyQ.js} +2 -2
  286. package/dist/{topic-gTVjLGTk.d.ts → topic-utZqhw96.d.ts} +1 -1
  287. package/dist/types-DLnBJ3ST.d.ts +461 -0
  288. package/dist/vue/index.d.ts +5 -5
  289. package/dist/vue/index.js +1 -1
  290. package/dist/{watch-topic-C6HhbnVz.d.ts → watch-topic-B1UCoQfz.d.ts} +1 -1
  291. package/dist/workflow-sdk/world/index.js +1 -1
  292. package/dist/{workflow-sdk-DELaQEp3.js → workflow-sdk-CE8sEK57.js} +38 -1
  293. package/dist/yjs/index.d.ts +1 -1
  294. package/dist/yjs/index.js +1 -1
  295. package/package.json +1 -1
  296. package/schemas/config-v1.json +166 -2
  297. package/dist/cli/add-CspY9jKT.js +0 -1
  298. package/dist/cli/powersync-DwhCH0gs.js +0 -1
  299. package/dist/cli/seed-CXJvTU5D.js +0 -1
  300. package/dist/options-CTv-xmbA.js +0 -5
  301. package/dist/subjects-DvmQeF_F.d.ts +0 -79
  302. package/dist/types-DGHfTW8_.d.ts +0 -9
  303. package/dist/{build-CM8PJqwW.js → build-CH2N3Yf0.js} +3 -3
  304. package/dist/{create-blocks-CUS28FfS.js → create-blocks-BfrDUSM6.js} +1 -1
  305. package/dist/{data-hooks-tgF1Ct0F.js → data-hooks-CdcZfVS1.js} +1 -1
  306. package/dist/{respond-3RKp6VgU.js → respond-CZMWbUs3.js} +1 -1
@@ -846,6 +846,12 @@
846
846
  "permitted": {
847
847
  "type": "string"
848
848
  },
849
+ "rowsWith": {
850
+ "type": "string"
851
+ },
852
+ "rowsWithFor": {
853
+ "type": "string"
854
+ },
849
855
  "portalSubjects": {
850
856
  "type": "string"
851
857
  },
@@ -1377,7 +1383,26 @@
1377
1383
  "permissions": {
1378
1384
  "type": "object",
1379
1385
  "additionalProperties": {
1380
- "type": "string"
1386
+ "anyOf": [
1387
+ {
1388
+ "type": "string"
1389
+ },
1390
+ {
1391
+ "type": "object",
1392
+ "properties": {
1393
+ "key": {
1394
+ "type": "string"
1395
+ },
1396
+ "rows": {
1397
+ "type": "string"
1398
+ },
1399
+ "owner": {
1400
+ "type": "string"
1401
+ }
1402
+ },
1403
+ "additionalProperties": false
1404
+ }
1405
+ ]
1381
1406
  },
1382
1407
  "description": "A permission key per action that `can_subject` checks in the subject's tenant."
1383
1408
  },
@@ -1404,6 +1429,44 @@
1404
1429
  "items": {
1405
1430
  "type": "string"
1406
1431
  }
1432
+ },
1433
+ "description": {
1434
+ "type": "string"
1435
+ },
1436
+ "exclude": {
1437
+ "type": "string"
1438
+ },
1439
+ "from": {
1440
+ "type": "object",
1441
+ "properties": {
1442
+ "view": {
1443
+ "type": "string"
1444
+ },
1445
+ "key": {
1446
+ "type": "string"
1447
+ }
1448
+ },
1449
+ "required": ["view", "key"],
1450
+ "additionalProperties": false
1451
+ },
1452
+ "watch": {
1453
+ "type": "array",
1454
+ "items": {
1455
+ "type": "object",
1456
+ "properties": {
1457
+ "table": {
1458
+ "type": "string"
1459
+ },
1460
+ "key": {
1461
+ "type": "string"
1462
+ },
1463
+ "via": {
1464
+ "type": "string"
1465
+ }
1466
+ },
1467
+ "required": ["table", "key"],
1468
+ "additionalProperties": false
1469
+ }
1407
1470
  }
1408
1471
  },
1409
1472
  "additionalProperties": false
@@ -3095,6 +3158,35 @@
3095
3158
  }
3096
3159
  }
3097
3160
  },
3161
+ "values": {
3162
+ "type": "object",
3163
+ "additionalProperties": {
3164
+ "type": "object",
3165
+ "additionalProperties": {
3166
+ "type": "object",
3167
+ "additionalProperties": {
3168
+ "anyOf": [
3169
+ {
3170
+ "anyOf": [
3171
+ {
3172
+ "type": "string"
3173
+ },
3174
+ {
3175
+ "type": "array",
3176
+ "items": {
3177
+ "type": "string"
3178
+ }
3179
+ }
3180
+ ]
3181
+ },
3182
+ {
3183
+ "type": "null"
3184
+ }
3185
+ ]
3186
+ }
3187
+ }
3188
+ }
3189
+ },
3098
3190
  "idType": {
3099
3191
  "type": "string"
3100
3192
  },
@@ -3281,6 +3373,35 @@
3281
3373
  }
3282
3374
  }
3283
3375
  },
3376
+ "values": {
3377
+ "type": "object",
3378
+ "additionalProperties": {
3379
+ "type": "object",
3380
+ "additionalProperties": {
3381
+ "type": "object",
3382
+ "additionalProperties": {
3383
+ "anyOf": [
3384
+ {
3385
+ "anyOf": [
3386
+ {
3387
+ "type": "string"
3388
+ },
3389
+ {
3390
+ "type": "array",
3391
+ "items": {
3392
+ "type": "string"
3393
+ }
3394
+ }
3395
+ ]
3396
+ },
3397
+ {
3398
+ "type": "null"
3399
+ }
3400
+ ]
3401
+ }
3402
+ }
3403
+ }
3404
+ },
3284
3405
  "idType": {
3285
3406
  "type": "string"
3286
3407
  },
@@ -4169,6 +4290,12 @@
4169
4290
  "additionalProperties": {
4170
4291
  "type": "string"
4171
4292
  }
4293
+ },
4294
+ "calendarExtraColumns": {
4295
+ "type": "object",
4296
+ "additionalProperties": {
4297
+ "type": "string"
4298
+ }
4172
4299
  }
4173
4300
  }
4174
4301
  }
@@ -4690,6 +4817,18 @@
4690
4817
  "additionalProperties": {
4691
4818
  "type": "string"
4692
4819
  }
4820
+ },
4821
+ "privateDetailsExtraColumns": {
4822
+ "type": "object",
4823
+ "additionalProperties": {
4824
+ "type": "string"
4825
+ }
4826
+ },
4827
+ "contractExtraColumns": {
4828
+ "type": "object",
4829
+ "additionalProperties": {
4830
+ "type": "string"
4831
+ }
4693
4832
  }
4694
4833
  }
4695
4834
  }
@@ -6246,6 +6385,14 @@
6246
6385
  "additionalProperties": {
6247
6386
  "type": "string"
6248
6387
  }
6388
+ },
6389
+ "tokenHash": {
6390
+ "type": "boolean",
6391
+ "default": false
6392
+ },
6393
+ "fullRows": {
6394
+ "type": "boolean",
6395
+ "default": false
6249
6396
  }
6250
6397
  }
6251
6398
  }
@@ -6406,6 +6553,10 @@
6406
6553
  "additionalProperties": {
6407
6554
  "type": "string"
6408
6555
  }
6556
+ },
6557
+ "patch": {
6558
+ "type": "boolean",
6559
+ "default": false
6409
6560
  }
6410
6561
  }
6411
6562
  }
@@ -6454,6 +6605,14 @@
6454
6605
  "additionalProperties": {
6455
6606
  "type": "string"
6456
6607
  }
6608
+ },
6609
+ "patch": {
6610
+ "type": "boolean",
6611
+ "default": false
6612
+ },
6613
+ "restore": {
6614
+ "type": "boolean",
6615
+ "default": false
6457
6616
  }
6458
6617
  }
6459
6618
  }
@@ -6495,7 +6654,12 @@
6495
6654
  "additionalProperties": {
6496
6655
  "type": "string"
6497
6656
  }
6498
- }
6657
+ },
6658
+ "approvals": {
6659
+ "type": "boolean",
6660
+ "default": true
6661
+ },
6662
+ "userTimeZone": {}
6499
6663
  }
6500
6664
  }
6501
6665
  }
@@ -1 +0,0 @@
1
- export { t as addCommand } from "./add-BTDPjVGC.js";
@@ -1 +0,0 @@
1
- export { t as powersyncStreamsCommand } from "./powersync-D83yAFbl.js";
@@ -1 +0,0 @@
1
- export { n as seedCommand } from "./seed-CdSxunFT.js";
@@ -1,5 +0,0 @@
1
- import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
2
- //#region src/blocks/share-links/options.ts
3
- const shareLinksSqlOptions = blockOptions({ extraColumns: option.extraColumns() });
4
- //#endregion
5
- export { shareLinksSqlOptions as t };
@@ -1,79 +0,0 @@
1
- //#region src/config/types/subjects.d.ts
2
- /**
3
- * One entity the app's blocks attach to (`subjects.<type>`): a task, a
4
- * customer, a document. Every subject-bound SQL module reads these entries
5
- * unless its own `on` says otherwise. ADR 0020.
6
- */
7
- interface SubjectConfig {
8
- /** `schema.table`, or a table in `public`. */
9
- readonly table: string;
10
- /** The id column. Defaults to `id`. */
11
- readonly id?: string;
12
- /**
13
- * The id column's type, such as `uuid` or `bigint`, so lookups compare on the
14
- * primary key's own type. Without it the column is compared as text.
15
- */
16
- readonly idType?: string;
17
- /**
18
- * The tenant column. Defaults to `organization_id`, or
19
- * `<blocks.memberships.names.organization>_id` when the tenant is renamed.
20
- * `false` for a subject without a tenant, which modules that keep a tenant on
21
- * every row skip.
22
- */
23
- readonly tenant?: string | false;
24
- /** The column `subject_title` returns. */
25
- readonly title?: string;
26
- /**
27
- * The path `subject_url` returns, with `{column}` placeholders:
28
- * `/tasks/{id}`.
29
- */
30
- readonly url?: string;
31
- /**
32
- * A permission key per action (`read`, `write`, or an app action) that
33
- * `can_subject` checks in the subject's tenant, on top of the row being
34
- * visible to the caller. `read` is also the permission modules check before
35
- * they attach rows to the subject.
36
- */
37
- readonly permissions?: Readonly<Record<string, string>>;
38
- /**
39
- * A scope the authorization provider declares whose ids are this subject's
40
- * ids, so a grant on the record counts as well as one on the tenant.
41
- */
42
- readonly scope?: string;
43
- /** Delete module rows for a subject when its row is deleted. */
44
- readonly cascade?: boolean;
45
- /**
46
- * The column holding the soft-delete time. Blocks hide rows where it is set,
47
- * metrics skip them, and `gen` makes it the table's `trashExtension()`
48
- * column.
49
- */
50
- readonly deletedAt?: string;
51
- /** The columns a search index reads. */
52
- readonly search?: {
53
- readonly title?: string;
54
- readonly body?: readonly string[];
55
- };
56
- /**
57
- * The text column holding the subject's rank key, and the column it is
58
- * grouped by (a board stage), for `move()`. ADR 0021.
59
- */
60
- readonly rank?: {
61
- readonly column: string;
62
- readonly group?: string;
63
- };
64
- /**
65
- * The columns the versions block snapshots and restores, and whether it
66
- * snapshots on each change. An app table's `subject.versions` sets it.
67
- */
68
- readonly versions?: {
69
- readonly columns: readonly string[];
70
- readonly auto: boolean;
71
- };
72
- }
73
- /**
74
- * The app's subject types, keyed by type name (lowercase, digits and
75
- * underscores).
76
- */
77
- type SubjectsConfig = Readonly<Record<string, SubjectConfig>>;
78
- //#endregion
79
- export { SubjectsConfig as n, SubjectConfig as t };
@@ -1,9 +0,0 @@
1
- //#region src/create/types.d.ts
2
- /** One rendered file: its path, the SQL module it belongs to and its contents. */
3
- interface PresetMigrationFile {
4
- readonly path: string;
5
- readonly module: string;
6
- readonly contents: string;
7
- }
8
- //#endregion
9
- export { PresetMigrationFile as t };
@@ -3,11 +3,11 @@ import { n as isRecord } from "./guards-6F2bCtQR.js";
3
3
  import { t as instanceProperty } from "./instance-property-hRh88y_s.js";
4
4
  import { s as problemType, t as PROBLEM_CONTENT_TYPE } from "./problem-Bf0cJ7tk.js";
5
5
  import { t as buildJsonSchema } from "./json-schema-DHJxiizN.js";
6
- import { r as dataschemaOf } from "./cloud-event-XsM53POL.js";
7
- import { r as planResource } from "./resource-DvgXqZB_.js";
8
6
  import { n as pageQuery, r as pageSchema } from "./resource-schemas-up6bKOUi.js";
9
- import { ROW_EVENT_TYPES } from "./events/index.js";
7
+ import { r as planResource } from "./resource-DvgXqZB_.js";
10
8
  import { t as topicStatus } from "./realtime-status-asHvhiOh.js";
9
+ import { r as dataschemaOf } from "./cloud-event-XsM53POL.js";
10
+ import { ROW_EVENT_TYPES } from "./events/index.js";
11
11
  //#region src/spec/merge.ts
12
12
  /** Escapes a key for a JSON Pointer (RFC 6901). */
13
13
  function pointerToken(key) {
@@ -2,10 +2,10 @@ import { n as dbError } from "./errors-BVFgt8BZ.js";
2
2
  import { n as isRecord } from "./guards-6F2bCtQR.js";
3
3
  import { t as AsyncResult } from "./result-ntFBW2p2.js";
4
4
  import { i as entityNames, o as tenantNames, r as composeNames } from "./entity-naming-Dtyq5sKE.js";
5
+ import { i as forwardBlockEvents } from "./cloud-event-XsM53POL.js";
5
6
  import { t as onBlockEvent } from "./block-event-listener-Bu6G0TFH.js";
6
7
  import { V as dbTransport, o as blockCall } from "./block-helpers-B0f0ZVb5.js";
7
8
  import { i as wrapTransport, r as withBlockHooks, t as defineTransportMiddleware } from "./block-hooks-DKtz0HRh.js";
8
- import { i as forwardBlockEvents } from "./cloud-event-XsM53POL.js";
9
9
  //#region src/core/block-names.ts
10
10
  const TENANT_COLUMNS = ["organization_id", "active_organization_id"];
11
11
  const OPAQUE_KEYS = /* @__PURE__ */ new Set(["fields", "metadata"]);
@@ -1,7 +1,7 @@
1
+ import { t as onBlockEvent } from "./block-event-listener-Bu6G0TFH.js";
1
2
  import { t as currentTenant } from "./tenant-source-bqWpSr86.js";
2
3
  import { a as memoryEngine, o as unwrap, t as dataKeyHash } from "./data-engine-D1BkmBoR.js";
3
4
  import { t as defineController } from "./controller-BEliOBOv.js";
4
- import { t as onBlockEvent } from "./block-event-listener-Bu6G0TFH.js";
5
5
  import { t as topicPort } from "./watch-topic-CuaWfCuv.js";
6
6
  import { n as methodOf } from "./block-method-C9hWdHom.js";
7
7
  //#region src/bindings/field-errors.ts
@@ -1,9 +1,9 @@
1
1
  import { n as dbError, o as isDbError, r as dbErrorOf } from "./errors-BVFgt8BZ.js";
2
2
  import { s as toDbError } from "./result-ntFBW2p2.js";
3
3
  import { o as problemResponse } from "./problem-Bf0cJ7tk.js";
4
+ import { n as jsonResponse } from "./json-DaByVJpw.js";
4
5
  import { i as delegationOf, n as actorOf } from "./actor-go7p9-CJ.js";
5
6
  import { f as checkAal, t as isAnonymousUser } from "./view-C8Ve14ja.js";
6
- import { n as jsonResponse } from "./json-DaByVJpw.js";
7
7
  //#region src/server/respond.ts
8
8
  /**
9
9
  * Refuses `cookies: false` with a `refresh` policy at setup: a refresh reads