@rocicorp/zero 0.0.0-202410031711

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 (831) hide show
  1. package/deps/sqlite3/sqlite3.c +260574 -0
  2. package/deps/sqlite3/sqlite3.h +13572 -0
  3. package/deps/sqlite3/sqlite3ext.h +719 -0
  4. package/out/btree/b+tree.d.ts +471 -0
  5. package/out/btree/b+tree.d.ts.map +1 -0
  6. package/out/btree/b+tree.js +1708 -0
  7. package/out/btree/b+tree.js.map +1 -0
  8. package/out/btree/interfaces.d.ts +270 -0
  9. package/out/btree/interfaces.d.ts.map +1 -0
  10. package/out/btree/interfaces.js +3 -0
  11. package/out/btree/interfaces.js.map +1 -0
  12. package/out/chunk-2RUT5EQV.js +28 -0
  13. package/out/chunk-2RUT5EQV.js.map +7 -0
  14. package/out/datadog/src/datadog-log-sink.d.ts +20 -0
  15. package/out/datadog/src/datadog-log-sink.d.ts.map +1 -0
  16. package/out/datadog/src/datadog-log-sink.js +231 -0
  17. package/out/datadog/src/datadog-log-sink.js.map +1 -0
  18. package/out/datadog/src/mod.d.ts +2 -0
  19. package/out/datadog/src/mod.d.ts.map +1 -0
  20. package/out/react.js +108 -0
  21. package/out/react.js.map +7 -0
  22. package/out/replicache/src/async-iterable-to-array.d.ts +2 -0
  23. package/out/replicache/src/async-iterable-to-array.d.ts.map +1 -0
  24. package/out/replicache/src/bg-interval.d.ts +3 -0
  25. package/out/replicache/src/bg-interval.d.ts.map +1 -0
  26. package/out/replicache/src/binary-search.d.ts +15 -0
  27. package/out/replicache/src/binary-search.d.ts.map +1 -0
  28. package/out/replicache/src/broadcast-channel.d.ts +3 -0
  29. package/out/replicache/src/broadcast-channel.d.ts.map +1 -0
  30. package/out/replicache/src/btree/diff.d.ts +4 -0
  31. package/out/replicache/src/btree/diff.d.ts.map +1 -0
  32. package/out/replicache/src/btree/node.d.ts +125 -0
  33. package/out/replicache/src/btree/node.d.ts.map +1 -0
  34. package/out/replicache/src/btree/read.d.ts +32 -0
  35. package/out/replicache/src/btree/read.d.ts.map +1 -0
  36. package/out/replicache/src/btree/splice.d.ts +9 -0
  37. package/out/replicache/src/btree/splice.d.ts.map +1 -0
  38. package/out/replicache/src/btree/write.d.ts +24 -0
  39. package/out/replicache/src/btree/write.d.ts.map +1 -0
  40. package/out/replicache/src/call-default-fetch.d.ts +6 -0
  41. package/out/replicache/src/call-default-fetch.d.ts.map +1 -0
  42. package/out/replicache/src/config.d.ts +13 -0
  43. package/out/replicache/src/config.d.ts.map +1 -0
  44. package/out/replicache/src/connection-loop-delegates.d.ts +20 -0
  45. package/out/replicache/src/connection-loop-delegates.d.ts.map +1 -0
  46. package/out/replicache/src/connection-loop.d.ts +28 -0
  47. package/out/replicache/src/connection-loop.d.ts.map +1 -0
  48. package/out/replicache/src/cookies.d.ts +29 -0
  49. package/out/replicache/src/cookies.d.ts.map +1 -0
  50. package/out/replicache/src/dag/chunk.d.ts +35 -0
  51. package/out/replicache/src/dag/chunk.d.ts.map +1 -0
  52. package/out/replicache/src/dag/gc.d.ts +42 -0
  53. package/out/replicache/src/dag/gc.d.ts.map +1 -0
  54. package/out/replicache/src/dag/key.d.ts +26 -0
  55. package/out/replicache/src/dag/key.d.ts.map +1 -0
  56. package/out/replicache/src/dag/lazy-store.d.ts +181 -0
  57. package/out/replicache/src/dag/lazy-store.d.ts.map +1 -0
  58. package/out/replicache/src/dag/store-impl.d.ts +38 -0
  59. package/out/replicache/src/dag/store-impl.d.ts.map +1 -0
  60. package/out/replicache/src/dag/store.d.ts +36 -0
  61. package/out/replicache/src/dag/store.d.ts.map +1 -0
  62. package/out/replicache/src/dag/visitor.d.ts +13 -0
  63. package/out/replicache/src/dag/visitor.d.ts.map +1 -0
  64. package/out/replicache/src/db/commit.d.ts +133 -0
  65. package/out/replicache/src/db/commit.d.ts.map +1 -0
  66. package/out/replicache/src/db/index.d.ts +33 -0
  67. package/out/replicache/src/db/index.d.ts.map +1 -0
  68. package/out/replicache/src/db/read.d.ts +24 -0
  69. package/out/replicache/src/db/read.d.ts.map +1 -0
  70. package/out/replicache/src/db/rebase.d.ts +10 -0
  71. package/out/replicache/src/db/rebase.d.ts.map +1 -0
  72. package/out/replicache/src/db/scan.d.ts +15 -0
  73. package/out/replicache/src/db/scan.d.ts.map +1 -0
  74. package/out/replicache/src/db/write.d.ts +39 -0
  75. package/out/replicache/src/db/write.d.ts.map +1 -0
  76. package/out/replicache/src/error-responses.d.ts +26 -0
  77. package/out/replicache/src/error-responses.d.ts.map +1 -0
  78. package/out/replicache/src/filter-async-iterable.d.ts +10 -0
  79. package/out/replicache/src/filter-async-iterable.d.ts.map +1 -0
  80. package/out/replicache/src/format-version.d.ts +9 -0
  81. package/out/replicache/src/format-version.d.ts.map +1 -0
  82. package/out/replicache/src/frozen-json.d.ts +35 -0
  83. package/out/replicache/src/frozen-json.d.ts.map +1 -0
  84. package/out/replicache/src/get-default-puller.d.ts +14 -0
  85. package/out/replicache/src/get-default-puller.d.ts.map +1 -0
  86. package/out/replicache/src/get-default-pusher.d.ts +10 -0
  87. package/out/replicache/src/get-default-pusher.d.ts.map +1 -0
  88. package/out/replicache/src/hash.d.ts +29 -0
  89. package/out/replicache/src/hash.d.ts.map +1 -0
  90. package/out/replicache/src/http-request-info.d.ts +6 -0
  91. package/out/replicache/src/http-request-info.d.ts.map +1 -0
  92. package/out/replicache/src/impl.d.ts +4 -0
  93. package/out/replicache/src/impl.d.ts.map +1 -0
  94. package/out/replicache/src/index-defs.d.ts +36 -0
  95. package/out/replicache/src/index-defs.d.ts.map +1 -0
  96. package/out/replicache/src/iterable-union.d.ts +5 -0
  97. package/out/replicache/src/iterable-union.d.ts.map +1 -0
  98. package/out/replicache/src/kv/idb-store-with-mem-fallback.d.ts +25 -0
  99. package/out/replicache/src/kv/idb-store-with-mem-fallback.d.ts.map +1 -0
  100. package/out/replicache/src/kv/idb-store.d.ts +18 -0
  101. package/out/replicache/src/kv/idb-store.d.ts.map +1 -0
  102. package/out/replicache/src/kv/mem-store.d.ts +23 -0
  103. package/out/replicache/src/kv/mem-store.d.ts.map +1 -0
  104. package/out/replicache/src/kv/read-impl.d.ts +11 -0
  105. package/out/replicache/src/kv/read-impl.d.ts.map +1 -0
  106. package/out/replicache/src/kv/store.d.ts +76 -0
  107. package/out/replicache/src/kv/store.d.ts.map +1 -0
  108. package/out/replicache/src/kv/write-impl-base.d.ts +18 -0
  109. package/out/replicache/src/kv/write-impl-base.d.ts.map +1 -0
  110. package/out/replicache/src/kv/write-impl.d.ts +9 -0
  111. package/out/replicache/src/kv/write-impl.d.ts.map +1 -0
  112. package/out/replicache/src/lazy.d.ts +2 -0
  113. package/out/replicache/src/lazy.d.ts.map +1 -0
  114. package/out/replicache/src/log-options.d.ts +10 -0
  115. package/out/replicache/src/log-options.d.ts.map +1 -0
  116. package/out/replicache/src/merge-async-iterables.d.ts +16 -0
  117. package/out/replicache/src/merge-async-iterables.d.ts.map +1 -0
  118. package/out/replicache/src/mod.d.ts +38 -0
  119. package/out/replicache/src/mod.d.ts.map +1 -0
  120. package/out/replicache/src/mutation-recovery.d.ts +43 -0
  121. package/out/replicache/src/mutation-recovery.d.ts.map +1 -0
  122. package/out/replicache/src/new-client-channel.d.ts +6 -0
  123. package/out/replicache/src/new-client-channel.d.ts.map +1 -0
  124. package/out/replicache/src/on-persist-channel.d.ts +10 -0
  125. package/out/replicache/src/on-persist-channel.d.ts.map +1 -0
  126. package/out/replicache/src/patch-operation.d.ts +32 -0
  127. package/out/replicache/src/patch-operation.d.ts.map +1 -0
  128. package/out/replicache/src/pending-mutations.d.ts +14 -0
  129. package/out/replicache/src/pending-mutations.d.ts.map +1 -0
  130. package/out/replicache/src/persist/client-gc.d.ts +17 -0
  131. package/out/replicache/src/persist/client-gc.d.ts.map +1 -0
  132. package/out/replicache/src/persist/client-group-gc.d.ts +10 -0
  133. package/out/replicache/src/persist/client-group-gc.d.ts.map +1 -0
  134. package/out/replicache/src/persist/client-groups.d.ts +72 -0
  135. package/out/replicache/src/persist/client-groups.d.ts.map +1 -0
  136. package/out/replicache/src/persist/clients.d.ts +155 -0
  137. package/out/replicache/src/persist/clients.d.ts.map +1 -0
  138. package/out/replicache/src/persist/collect-idb-databases.d.ts +91 -0
  139. package/out/replicache/src/persist/collect-idb-databases.d.ts.map +1 -0
  140. package/out/replicache/src/persist/gather-mem-only-visitor.d.ts +12 -0
  141. package/out/replicache/src/persist/gather-mem-only-visitor.d.ts.map +1 -0
  142. package/out/replicache/src/persist/gather-not-cached-visitor.d.ts +17 -0
  143. package/out/replicache/src/persist/gather-not-cached-visitor.d.ts.map +1 -0
  144. package/out/replicache/src/persist/heartbeat.d.ts +9 -0
  145. package/out/replicache/src/persist/heartbeat.d.ts.map +1 -0
  146. package/out/replicache/src/persist/idb-databases-store-db-name.d.ts +5 -0
  147. package/out/replicache/src/persist/idb-databases-store-db-name.d.ts.map +1 -0
  148. package/out/replicache/src/persist/idb-databases-store.d.ts +24 -0
  149. package/out/replicache/src/persist/idb-databases-store.d.ts.map +1 -0
  150. package/out/replicache/src/persist/make-client-id.d.ts +6 -0
  151. package/out/replicache/src/persist/make-client-id.d.ts.map +1 -0
  152. package/out/replicache/src/persist/persist.d.ts +26 -0
  153. package/out/replicache/src/persist/persist.d.ts.map +1 -0
  154. package/out/replicache/src/persist/refresh.d.ts +13 -0
  155. package/out/replicache/src/persist/refresh.d.ts.map +1 -0
  156. package/out/replicache/src/process-scheduler.d.ts +20 -0
  157. package/out/replicache/src/process-scheduler.d.ts.map +1 -0
  158. package/out/replicache/src/puller.d.ts +61 -0
  159. package/out/replicache/src/puller.d.ts.map +1 -0
  160. package/out/replicache/src/pusher.d.ts +33 -0
  161. package/out/replicache/src/pusher.d.ts.map +1 -0
  162. package/out/replicache/src/replicache-impl.d.ts +321 -0
  163. package/out/replicache/src/replicache-impl.d.ts.map +1 -0
  164. package/out/replicache/src/replicache-options.d.ts +209 -0
  165. package/out/replicache/src/replicache-options.d.ts.map +1 -0
  166. package/out/replicache/src/replicache.d.ts +298 -0
  167. package/out/replicache/src/replicache.d.ts.map +1 -0
  168. package/out/replicache/src/request-idle.d.ts +6 -0
  169. package/out/replicache/src/request-idle.d.ts.map +1 -0
  170. package/out/replicache/src/scan-iterator.d.ts +127 -0
  171. package/out/replicache/src/scan-iterator.d.ts.map +1 -0
  172. package/out/replicache/src/scan-options.d.ts +67 -0
  173. package/out/replicache/src/scan-options.d.ts.map +1 -0
  174. package/out/replicache/src/set-interval-with-signal.d.ts +2 -0
  175. package/out/replicache/src/set-interval-with-signal.d.ts.map +1 -0
  176. package/out/replicache/src/size-of-value.d.ts +19 -0
  177. package/out/replicache/src/size-of-value.d.ts.map +1 -0
  178. package/out/replicache/src/subscriptions.d.ts +140 -0
  179. package/out/replicache/src/subscriptions.d.ts.map +1 -0
  180. package/out/replicache/src/sync/diff.d.ts +31 -0
  181. package/out/replicache/src/sync/diff.d.ts.map +1 -0
  182. package/out/replicache/src/sync/ids.d.ts +13 -0
  183. package/out/replicache/src/sync/ids.d.ts.map +1 -0
  184. package/out/replicache/src/sync/patch.d.ts +5 -0
  185. package/out/replicache/src/sync/patch.d.ts.map +1 -0
  186. package/out/replicache/src/sync/pull-error.d.ts +9 -0
  187. package/out/replicache/src/sync/pull-error.d.ts.map +1 -0
  188. package/out/replicache/src/sync/pull.d.ts +82 -0
  189. package/out/replicache/src/sync/pull.d.ts.map +1 -0
  190. package/out/replicache/src/sync/push.d.ts +65 -0
  191. package/out/replicache/src/sync/push.d.ts.map +1 -0
  192. package/out/replicache/src/sync/request-id.d.ts +10 -0
  193. package/out/replicache/src/sync/request-id.d.ts.map +1 -0
  194. package/out/replicache/src/sync/sync-head-name.d.ts +2 -0
  195. package/out/replicache/src/sync/sync-head-name.d.ts.map +1 -0
  196. package/out/replicache/src/test-license-key.d.ts +3 -0
  197. package/out/replicache/src/test-license-key.d.ts.map +1 -0
  198. package/out/replicache/src/to-error.d.ts +2 -0
  199. package/out/replicache/src/to-error.d.ts.map +1 -0
  200. package/out/replicache/src/transaction-closed-error.d.ts +12 -0
  201. package/out/replicache/src/transaction-closed-error.d.ts.map +1 -0
  202. package/out/replicache/src/transactions.d.ts +156 -0
  203. package/out/replicache/src/transactions.d.ts.map +1 -0
  204. package/out/replicache/src/types.d.ts +57 -0
  205. package/out/replicache/src/types.d.ts.map +1 -0
  206. package/out/replicache/src/version.d.ts +5 -0
  207. package/out/replicache/src/version.d.ts.map +1 -0
  208. package/out/replicache/src/with-transactions.d.ts +23 -0
  209. package/out/replicache/src/with-transactions.d.ts.map +1 -0
  210. package/out/shared/src/abort-error.d.ts +4 -0
  211. package/out/shared/src/abort-error.d.ts.map +1 -0
  212. package/out/shared/src/abort-error.js +4 -0
  213. package/out/shared/src/abort-error.js.map +1 -0
  214. package/out/shared/src/asserts.d.ts +17 -0
  215. package/out/shared/src/asserts.d.ts.map +1 -0
  216. package/out/shared/src/asserts.js +73 -0
  217. package/out/shared/src/asserts.js.map +1 -0
  218. package/out/shared/src/browser-env.d.ts +3 -0
  219. package/out/shared/src/browser-env.d.ts.map +1 -0
  220. package/out/shared/src/config.d.ts +3 -0
  221. package/out/shared/src/config.d.ts.map +1 -0
  222. package/out/shared/src/config.js +3 -0
  223. package/out/shared/src/config.js.map +1 -0
  224. package/out/shared/src/custom-key-map.d.ts +26 -0
  225. package/out/shared/src/custom-key-map.d.ts.map +1 -0
  226. package/out/shared/src/custom-key-map.js +65 -0
  227. package/out/shared/src/custom-key-map.js.map +1 -0
  228. package/out/shared/src/deep-clone.d.ts +4 -0
  229. package/out/shared/src/deep-clone.d.ts.map +1 -0
  230. package/out/shared/src/document-visible.d.ts +9 -0
  231. package/out/shared/src/document-visible.d.ts.map +1 -0
  232. package/out/shared/src/has-own.d.ts +5 -0
  233. package/out/shared/src/has-own.d.ts.map +1 -0
  234. package/out/shared/src/has-own.js +8 -0
  235. package/out/shared/src/has-own.js.map +1 -0
  236. package/out/shared/src/immutable.d.ts +11 -0
  237. package/out/shared/src/immutable.d.ts.map +1 -0
  238. package/out/shared/src/iterables.d.ts +11 -0
  239. package/out/shared/src/iterables.d.ts.map +1 -0
  240. package/out/shared/src/json-schema.d.ts +5 -0
  241. package/out/shared/src/json-schema.d.ts.map +1 -0
  242. package/out/shared/src/json-schema.js +36 -0
  243. package/out/shared/src/json-schema.js.map +1 -0
  244. package/out/shared/src/json.d.ts +55 -0
  245. package/out/shared/src/json.d.ts.map +1 -0
  246. package/out/shared/src/json.js +164 -0
  247. package/out/shared/src/json.js.map +1 -0
  248. package/out/shared/src/must.d.ts +2 -0
  249. package/out/shared/src/must.d.ts.map +1 -0
  250. package/out/shared/src/must.js +8 -0
  251. package/out/shared/src/must.js.map +1 -0
  252. package/out/shared/src/navigator.d.ts +7 -0
  253. package/out/shared/src/navigator.d.ts.map +1 -0
  254. package/out/shared/src/parse-big-int.d.ts +2 -0
  255. package/out/shared/src/parse-big-int.d.ts.map +1 -0
  256. package/out/shared/src/parse-big-int.js +11 -0
  257. package/out/shared/src/parse-big-int.js.map +1 -0
  258. package/out/shared/src/queue.d.ts +40 -0
  259. package/out/shared/src/queue.d.ts.map +1 -0
  260. package/out/shared/src/queue.js +118 -0
  261. package/out/shared/src/queue.js.map +1 -0
  262. package/out/shared/src/rand.d.ts +7 -0
  263. package/out/shared/src/rand.d.ts.map +1 -0
  264. package/out/shared/src/rand.js +11 -0
  265. package/out/shared/src/rand.js.map +1 -0
  266. package/out/shared/src/random-uint64.d.ts +2 -0
  267. package/out/shared/src/random-uint64.d.ts.map +1 -0
  268. package/out/shared/src/random-values.d.ts +2 -0
  269. package/out/shared/src/random-values.d.ts.map +1 -0
  270. package/out/shared/src/resolved-promises.d.ts +5 -0
  271. package/out/shared/src/resolved-promises.d.ts.map +1 -0
  272. package/out/shared/src/resolved-promises.js +5 -0
  273. package/out/shared/src/resolved-promises.js.map +1 -0
  274. package/out/shared/src/set-utils.d.ts +9 -0
  275. package/out/shared/src/set-utils.d.ts.map +1 -0
  276. package/out/shared/src/set-utils.js +60 -0
  277. package/out/shared/src/set-utils.js.map +1 -0
  278. package/out/shared/src/sleep.d.ts +15 -0
  279. package/out/shared/src/sleep.d.ts.map +1 -0
  280. package/out/shared/src/sleep.js +54 -0
  281. package/out/shared/src/sleep.js.map +1 -0
  282. package/out/shared/src/string-compare.d.ts +2 -0
  283. package/out/shared/src/string-compare.d.ts.map +1 -0
  284. package/out/shared/src/string-compare.js +10 -0
  285. package/out/shared/src/string-compare.js.map +1 -0
  286. package/out/shared/src/types.d.ts +2 -0
  287. package/out/shared/src/types.d.ts.map +1 -0
  288. package/out/shared/src/valita.d.ts +27 -0
  289. package/out/shared/src/valita.d.ts.map +1 -0
  290. package/out/shared/src/valita.js +118 -0
  291. package/out/shared/src/valita.js.map +1 -0
  292. package/out/shared/src/xxhash.d.ts +3 -0
  293. package/out/shared/src/xxhash.d.ts.map +1 -0
  294. package/out/shared/src/xxhash.js +4 -0
  295. package/out/shared/src/xxhash.js.map +1 -0
  296. package/out/zero/src/cli.d.ts +3 -0
  297. package/out/zero/src/cli.d.ts.map +1 -0
  298. package/out/zero/src/cli.js +3 -0
  299. package/out/zero/src/cli.js.map +1 -0
  300. package/out/zero/src/react.d.ts +2 -0
  301. package/out/zero/src/react.d.ts.map +1 -0
  302. package/out/zero/src/server/change-streamer.d.ts +2 -0
  303. package/out/zero/src/server/change-streamer.d.ts.map +1 -0
  304. package/out/zero/src/server/change-streamer.js +2 -0
  305. package/out/zero/src/server/change-streamer.js.map +1 -0
  306. package/out/zero/src/server/main.d.ts +2 -0
  307. package/out/zero/src/server/main.d.ts.map +1 -0
  308. package/out/zero/src/server/main.js +2 -0
  309. package/out/zero/src/server/main.js.map +1 -0
  310. package/out/zero/src/server/replicator.d.ts +2 -0
  311. package/out/zero/src/server/replicator.d.ts.map +1 -0
  312. package/out/zero/src/server/replicator.js +2 -0
  313. package/out/zero/src/server/replicator.js.map +1 -0
  314. package/out/zero/src/server/syncer.d.ts +2 -0
  315. package/out/zero/src/server/syncer.d.ts.map +1 -0
  316. package/out/zero/src/server/syncer.js +2 -0
  317. package/out/zero/src/server/syncer.js.map +1 -0
  318. package/out/zero/src/zero.d.ts +2 -0
  319. package/out/zero/src/zero.d.ts.map +1 -0
  320. package/out/zero-cache/src/config/zero-config.d.ts +1509 -0
  321. package/out/zero-cache/src/config/zero-config.d.ts.map +1 -0
  322. package/out/zero-cache/src/config/zero-config.js +227 -0
  323. package/out/zero-cache/src/config/zero-config.js.map +1 -0
  324. package/out/zero-cache/src/db/lite-tables.d.ts +5 -0
  325. package/out/zero-cache/src/db/lite-tables.d.ts.map +1 -0
  326. package/out/zero-cache/src/db/lite-tables.js +75 -0
  327. package/out/zero-cache/src/db/lite-tables.js.map +1 -0
  328. package/out/zero-cache/src/db/migration-lite.d.ts +38 -0
  329. package/out/zero-cache/src/db/migration-lite.d.ts.map +1 -0
  330. package/out/zero-cache/src/db/migration-lite.js +161 -0
  331. package/out/zero-cache/src/db/migration-lite.js.map +1 -0
  332. package/out/zero-cache/src/db/migration.d.ts +38 -0
  333. package/out/zero-cache/src/db/migration.d.ts.map +1 -0
  334. package/out/zero-cache/src/db/migration.js +139 -0
  335. package/out/zero-cache/src/db/migration.js.map +1 -0
  336. package/out/zero-cache/src/db/statements.d.ts +31 -0
  337. package/out/zero-cache/src/db/statements.d.ts.map +1 -0
  338. package/out/zero-cache/src/db/statements.js +48 -0
  339. package/out/zero-cache/src/db/statements.js.map +1 -0
  340. package/out/zero-cache/src/db/transaction-pool.d.ts +187 -0
  341. package/out/zero-cache/src/db/transaction-pool.d.ts.map +1 -0
  342. package/out/zero-cache/src/db/transaction-pool.js +445 -0
  343. package/out/zero-cache/src/db/transaction-pool.js.map +1 -0
  344. package/out/zero-cache/src/server/change-streamer.d.ts +3 -0
  345. package/out/zero-cache/src/server/change-streamer.d.ts.map +1 -0
  346. package/out/zero-cache/src/server/change-streamer.js +30 -0
  347. package/out/zero-cache/src/server/change-streamer.js.map +1 -0
  348. package/out/zero-cache/src/server/logging.d.ts +6 -0
  349. package/out/zero-cache/src/server/logging.d.ts.map +1 -0
  350. package/out/zero-cache/src/server/logging.js +23 -0
  351. package/out/zero-cache/src/server/logging.js.map +1 -0
  352. package/out/zero-cache/src/server/main.d.ts +2 -0
  353. package/out/zero-cache/src/server/main.d.ts.map +1 -0
  354. package/out/zero-cache/src/server/main.js +92 -0
  355. package/out/zero-cache/src/server/main.js.map +1 -0
  356. package/out/zero-cache/src/server/replicator.d.ts +3 -0
  357. package/out/zero-cache/src/server/replicator.d.ts.map +1 -0
  358. package/out/zero-cache/src/server/replicator.js +35 -0
  359. package/out/zero-cache/src/server/replicator.js.map +1 -0
  360. package/out/zero-cache/src/server/syncer.d.ts +3 -0
  361. package/out/zero-cache/src/server/syncer.d.ts.map +1 -0
  362. package/out/zero-cache/src/server/syncer.js +45 -0
  363. package/out/zero-cache/src/server/syncer.js.map +1 -0
  364. package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts +23 -0
  365. package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts.map +1 -0
  366. package/out/zero-cache/src/services/change-streamer/change-streamer-http.js +98 -0
  367. package/out/zero-cache/src/services/change-streamer/change-streamer-http.js.map +1 -0
  368. package/out/zero-cache/src/services/change-streamer/change-streamer-service.d.ts +39 -0
  369. package/out/zero-cache/src/services/change-streamer/change-streamer-service.d.ts.map +1 -0
  370. package/out/zero-cache/src/services/change-streamer/change-streamer-service.js +212 -0
  371. package/out/zero-cache/src/services/change-streamer/change-streamer-service.js.map +1 -0
  372. package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts +110 -0
  373. package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts.map +1 -0
  374. package/out/zero-cache/src/services/change-streamer/change-streamer.js +7 -0
  375. package/out/zero-cache/src/services/change-streamer/change-streamer.js.map +1 -0
  376. package/out/zero-cache/src/services/change-streamer/forwarder.d.ts +19 -0
  377. package/out/zero-cache/src/services/change-streamer/forwarder.d.ts.map +1 -0
  378. package/out/zero-cache/src/services/change-streamer/forwarder.js +56 -0
  379. package/out/zero-cache/src/services/change-streamer/forwarder.js.map +1 -0
  380. package/out/zero-cache/src/services/change-streamer/pg/change-source.d.ts +14 -0
  381. package/out/zero-cache/src/services/change-streamer/pg/change-source.d.ts.map +1 -0
  382. package/out/zero-cache/src/services/change-streamer/pg/change-source.js +206 -0
  383. package/out/zero-cache/src/services/change-streamer/pg/change-source.js.map +1 -0
  384. package/out/zero-cache/src/services/change-streamer/pg/initial-sync.d.ts +6 -0
  385. package/out/zero-cache/src/services/change-streamer/pg/initial-sync.d.ts.map +1 -0
  386. package/out/zero-cache/src/services/change-streamer/pg/initial-sync.js +192 -0
  387. package/out/zero-cache/src/services/change-streamer/pg/initial-sync.js.map +1 -0
  388. package/out/zero-cache/src/services/change-streamer/pg/lsn.d.ts +17 -0
  389. package/out/zero-cache/src/services/change-streamer/pg/lsn.d.ts.map +1 -0
  390. package/out/zero-cache/src/services/change-streamer/pg/lsn.js +17 -0
  391. package/out/zero-cache/src/services/change-streamer/pg/lsn.js.map +1 -0
  392. package/out/zero-cache/src/services/change-streamer/pg/schema/create.d.ts +6 -0
  393. package/out/zero-cache/src/services/change-streamer/pg/schema/create.d.ts.map +1 -0
  394. package/out/zero-cache/src/services/change-streamer/pg/schema/create.js +29 -0
  395. package/out/zero-cache/src/services/change-streamer/pg/schema/create.js.map +1 -0
  396. package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.d.ts +79 -0
  397. package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.d.ts.map +1 -0
  398. package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.js +237 -0
  399. package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.js.map +1 -0
  400. package/out/zero-cache/src/services/change-streamer/pg/schema/lite.d.ts +5 -0
  401. package/out/zero-cache/src/services/change-streamer/pg/schema/lite.d.ts.map +1 -0
  402. package/out/zero-cache/src/services/change-streamer/pg/schema/lite.js +111 -0
  403. package/out/zero-cache/src/services/change-streamer/pg/schema/lite.js.map +1 -0
  404. package/out/zero-cache/src/services/change-streamer/pg/schema/published.d.ts +26 -0
  405. package/out/zero-cache/src/services/change-streamer/pg/schema/published.d.ts.map +1 -0
  406. package/out/zero-cache/src/services/change-streamer/pg/schema/published.js +185 -0
  407. package/out/zero-cache/src/services/change-streamer/pg/schema/published.js.map +1 -0
  408. package/out/zero-cache/src/services/change-streamer/pg/schema/zero.d.ts +11 -0
  409. package/out/zero-cache/src/services/change-streamer/pg/schema/zero.d.ts.map +1 -0
  410. package/out/zero-cache/src/services/change-streamer/pg/schema/zero.js +86 -0
  411. package/out/zero-cache/src/services/change-streamer/pg/schema/zero.js.map +1 -0
  412. package/out/zero-cache/src/services/change-streamer/pg/shard-config.d.ts +19 -0
  413. package/out/zero-cache/src/services/change-streamer/pg/shard-config.d.ts.map +1 -0
  414. package/out/zero-cache/src/services/change-streamer/pg/shard-config.js +2 -0
  415. package/out/zero-cache/src/services/change-streamer/pg/shard-config.js.map +1 -0
  416. package/out/zero-cache/src/services/change-streamer/pg/sync-schema.d.ts +4 -0
  417. package/out/zero-cache/src/services/change-streamer/pg/sync-schema.d.ts.map +1 -0
  418. package/out/zero-cache/src/services/change-streamer/pg/sync-schema.js +12 -0
  419. package/out/zero-cache/src/services/change-streamer/pg/sync-schema.js.map +1 -0
  420. package/out/zero-cache/src/services/change-streamer/schema/change.d.ts +31 -0
  421. package/out/zero-cache/src/services/change-streamer/schema/change.d.ts.map +1 -0
  422. package/out/zero-cache/src/services/change-streamer/schema/change.js +2 -0
  423. package/out/zero-cache/src/services/change-streamer/schema/change.js.map +1 -0
  424. package/out/zero-cache/src/services/change-streamer/schema/init.d.ts +4 -0
  425. package/out/zero-cache/src/services/change-streamer/schema/init.d.ts.map +1 -0
  426. package/out/zero-cache/src/services/change-streamer/schema/init.js +10 -0
  427. package/out/zero-cache/src/services/change-streamer/schema/init.js.map +1 -0
  428. package/out/zero-cache/src/services/change-streamer/schema/tables.d.ts +22 -0
  429. package/out/zero-cache/src/services/change-streamer/schema/tables.d.ts.map +1 -0
  430. package/out/zero-cache/src/services/change-streamer/schema/tables.js +49 -0
  431. package/out/zero-cache/src/services/change-streamer/schema/tables.js.map +1 -0
  432. package/out/zero-cache/src/services/change-streamer/storer.d.ts +22 -0
  433. package/out/zero-cache/src/services/change-streamer/storer.d.ts.map +1 -0
  434. package/out/zero-cache/src/services/change-streamer/storer.js +157 -0
  435. package/out/zero-cache/src/services/change-streamer/storer.js.map +1 -0
  436. package/out/zero-cache/src/services/change-streamer/subscriber.d.ts +27 -0
  437. package/out/zero-cache/src/services/change-streamer/subscriber.d.ts.map +1 -0
  438. package/out/zero-cache/src/services/change-streamer/subscriber.js +70 -0
  439. package/out/zero-cache/src/services/change-streamer/subscriber.js.map +1 -0
  440. package/out/zero-cache/src/services/dispatcher/connect-params.d.ts +20 -0
  441. package/out/zero-cache/src/services/dispatcher/connect-params.d.ts.map +1 -0
  442. package/out/zero-cache/src/services/dispatcher/connect-params.js +36 -0
  443. package/out/zero-cache/src/services/dispatcher/connect-params.js.map +1 -0
  444. package/out/zero-cache/src/services/dispatcher/dispatcher.d.ts +19 -0
  445. package/out/zero-cache/src/services/dispatcher/dispatcher.d.ts.map +1 -0
  446. package/out/zero-cache/src/services/dispatcher/dispatcher.js +55 -0
  447. package/out/zero-cache/src/services/dispatcher/dispatcher.js.map +1 -0
  448. package/out/zero-cache/src/services/dispatcher/websocket-handoff.d.ts +11 -0
  449. package/out/zero-cache/src/services/dispatcher/websocket-handoff.d.ts.map +1 -0
  450. package/out/zero-cache/src/services/dispatcher/websocket-handoff.js +33 -0
  451. package/out/zero-cache/src/services/dispatcher/websocket-handoff.js.map +1 -0
  452. package/out/zero-cache/src/services/limiter/sliding-window-limiter.d.ts +57 -0
  453. package/out/zero-cache/src/services/limiter/sliding-window-limiter.d.ts.map +1 -0
  454. package/out/zero-cache/src/services/limiter/sliding-window-limiter.js +130 -0
  455. package/out/zero-cache/src/services/limiter/sliding-window-limiter.js.map +1 -0
  456. package/out/zero-cache/src/services/mutagen/mutagen.d.ts +24 -0
  457. package/out/zero-cache/src/services/mutagen/mutagen.d.ts.map +1 -0
  458. package/out/zero-cache/src/services/mutagen/mutagen.js +247 -0
  459. package/out/zero-cache/src/services/mutagen/mutagen.js.map +1 -0
  460. package/out/zero-cache/src/services/mutagen/write-authorizer.d.ts +20 -0
  461. package/out/zero-cache/src/services/mutagen/write-authorizer.d.ts.map +1 -0
  462. package/out/zero-cache/src/services/mutagen/write-authorizer.js +187 -0
  463. package/out/zero-cache/src/services/mutagen/write-authorizer.js.map +1 -0
  464. package/out/zero-cache/src/services/replicator/checkpointer.d.ts +79 -0
  465. package/out/zero-cache/src/services/replicator/checkpointer.d.ts.map +1 -0
  466. package/out/zero-cache/src/services/replicator/checkpointer.js +124 -0
  467. package/out/zero-cache/src/services/replicator/checkpointer.js.map +1 -0
  468. package/out/zero-cache/src/services/replicator/incremental-sync.d.ts +39 -0
  469. package/out/zero-cache/src/services/replicator/incremental-sync.d.ts.map +1 -0
  470. package/out/zero-cache/src/services/replicator/incremental-sync.js +342 -0
  471. package/out/zero-cache/src/services/replicator/incremental-sync.js.map +1 -0
  472. package/out/zero-cache/src/services/replicator/notifier.d.ts +30 -0
  473. package/out/zero-cache/src/services/replicator/notifier.d.ts.map +1 -0
  474. package/out/zero-cache/src/services/replicator/notifier.js +54 -0
  475. package/out/zero-cache/src/services/replicator/notifier.js.map +1 -0
  476. package/out/zero-cache/src/services/replicator/replicator.d.ts +65 -0
  477. package/out/zero-cache/src/services/replicator/replicator.d.ts.map +1 -0
  478. package/out/zero-cache/src/services/replicator/replicator.js +27 -0
  479. package/out/zero-cache/src/services/replicator/replicator.js.map +1 -0
  480. package/out/zero-cache/src/services/replicator/schema/change-log.d.ts +35 -0
  481. package/out/zero-cache/src/services/replicator/schema/change-log.d.ts.map +1 -0
  482. package/out/zero-cache/src/services/replicator/schema/change-log.js +78 -0
  483. package/out/zero-cache/src/services/replicator/schema/change-log.js.map +1 -0
  484. package/out/zero-cache/src/services/replicator/schema/replication-state.d.ts +25 -0
  485. package/out/zero-cache/src/services/replicator/schema/replication-state.d.ts.map +1 -0
  486. package/out/zero-cache/src/services/replicator/schema/replication-state.js +90 -0
  487. package/out/zero-cache/src/services/replicator/schema/replication-state.js.map +1 -0
  488. package/out/zero-cache/src/services/runner.d.ts +21 -0
  489. package/out/zero-cache/src/services/runner.d.ts.map +1 -0
  490. package/out/zero-cache/src/services/runner.js +63 -0
  491. package/out/zero-cache/src/services/runner.js.map +1 -0
  492. package/out/zero-cache/src/services/running-state.d.ts +56 -0
  493. package/out/zero-cache/src/services/running-state.d.ts.map +1 -0
  494. package/out/zero-cache/src/services/running-state.js +106 -0
  495. package/out/zero-cache/src/services/running-state.js.map +1 -0
  496. package/out/zero-cache/src/services/service.d.ts +29 -0
  497. package/out/zero-cache/src/services/service.d.ts.map +1 -0
  498. package/out/zero-cache/src/services/service.js +2 -0
  499. package/out/zero-cache/src/services/service.js.map +1 -0
  500. package/out/zero-cache/src/services/view-syncer/client-handler.d.ts +53 -0
  501. package/out/zero-cache/src/services/view-syncer/client-handler.d.ts.map +1 -0
  502. package/out/zero-cache/src/services/view-syncer/client-handler.js +184 -0
  503. package/out/zero-cache/src/services/view-syncer/client-handler.js.map +1 -0
  504. package/out/zero-cache/src/services/view-syncer/cvr-store.d.ts +44 -0
  505. package/out/zero-cache/src/services/view-syncer/cvr-store.d.ts.map +1 -0
  506. package/out/zero-cache/src/services/view-syncer/cvr-store.js +386 -0
  507. package/out/zero-cache/src/services/view-syncer/cvr-store.js.map +1 -0
  508. package/out/zero-cache/src/services/view-syncer/cvr.d.ts +146 -0
  509. package/out/zero-cache/src/services/view-syncer/cvr.d.ts.map +1 -0
  510. package/out/zero-cache/src/services/view-syncer/cvr.js +446 -0
  511. package/out/zero-cache/src/services/view-syncer/cvr.js.map +1 -0
  512. package/out/zero-cache/src/services/view-syncer/database-storage.d.ts +22 -0
  513. package/out/zero-cache/src/services/view-syncer/database-storage.d.ts.map +1 -0
  514. package/out/zero-cache/src/services/view-syncer/database-storage.js +129 -0
  515. package/out/zero-cache/src/services/view-syncer/database-storage.js.map +1 -0
  516. package/out/zero-cache/src/services/view-syncer/pipeline-driver.d.ts +103 -0
  517. package/out/zero-cache/src/services/view-syncer/pipeline-driver.d.ts.map +1 -0
  518. package/out/zero-cache/src/services/view-syncer/pipeline-driver.js +290 -0
  519. package/out/zero-cache/src/services/view-syncer/pipeline-driver.js.map +1 -0
  520. package/out/zero-cache/src/services/view-syncer/schema/cvr.d.ts +54 -0
  521. package/out/zero-cache/src/services/view-syncer/schema/cvr.d.ts.map +1 -0
  522. package/out/zero-cache/src/services/view-syncer/schema/cvr.js +181 -0
  523. package/out/zero-cache/src/services/view-syncer/schema/cvr.js.map +1 -0
  524. package/out/zero-cache/src/services/view-syncer/schema/pg-migrations.d.ts +4 -0
  525. package/out/zero-cache/src/services/view-syncer/schema/pg-migrations.d.ts.map +1 -0
  526. package/out/zero-cache/src/services/view-syncer/schema/pg-migrations.js +12 -0
  527. package/out/zero-cache/src/services/view-syncer/schema/pg-migrations.js.map +1 -0
  528. package/out/zero-cache/src/services/view-syncer/schema/types.d.ts +783 -0
  529. package/out/zero-cache/src/services/view-syncer/schema/types.d.ts.map +1 -0
  530. package/out/zero-cache/src/services/view-syncer/schema/types.js +213 -0
  531. package/out/zero-cache/src/services/view-syncer/schema/types.js.map +1 -0
  532. package/out/zero-cache/src/services/view-syncer/snapshotter.d.ts +166 -0
  533. package/out/zero-cache/src/services/view-syncer/snapshotter.d.ts.map +1 -0
  534. package/out/zero-cache/src/services/view-syncer/snapshotter.js +374 -0
  535. package/out/zero-cache/src/services/view-syncer/snapshotter.js.map +1 -0
  536. package/out/zero-cache/src/services/view-syncer/view-syncer.d.ts +37 -0
  537. package/out/zero-cache/src/services/view-syncer/view-syncer.d.ts.map +1 -0
  538. package/out/zero-cache/src/services/view-syncer/view-syncer.js +522 -0
  539. package/out/zero-cache/src/services/view-syncer/view-syncer.js.map +1 -0
  540. package/out/zero-cache/src/types/bigint-json.d.ts +26 -0
  541. package/out/zero-cache/src/types/bigint-json.d.ts.map +1 -0
  542. package/out/zero-cache/src/types/bigint-json.js +49 -0
  543. package/out/zero-cache/src/types/bigint-json.js.map +1 -0
  544. package/out/zero-cache/src/types/error-for-client.d.ts +7 -0
  545. package/out/zero-cache/src/types/error-for-client.d.ts.map +1 -0
  546. package/out/zero-cache/src/types/error-for-client.js +17 -0
  547. package/out/zero-cache/src/types/error-for-client.js.map +1 -0
  548. package/out/zero-cache/src/types/lexi-version.d.ts +29 -0
  549. package/out/zero-cache/src/types/lexi-version.d.ts.map +1 -0
  550. package/out/zero-cache/src/types/lexi-version.js +36 -0
  551. package/out/zero-cache/src/types/lexi-version.js.map +1 -0
  552. package/out/zero-cache/src/types/lite.d.ts +11 -0
  553. package/out/zero-cache/src/types/lite.d.ts.map +1 -0
  554. package/out/zero-cache/src/types/lite.js +26 -0
  555. package/out/zero-cache/src/types/lite.js.map +1 -0
  556. package/out/zero-cache/src/types/names.d.ts +5 -0
  557. package/out/zero-cache/src/types/names.d.ts.map +1 -0
  558. package/out/zero-cache/src/types/names.js +4 -0
  559. package/out/zero-cache/src/types/names.js.map +1 -0
  560. package/out/zero-cache/src/types/pg.d.ts +31 -0
  561. package/out/zero-cache/src/types/pg.d.ts.map +1 -0
  562. package/out/zero-cache/src/types/pg.js +60 -0
  563. package/out/zero-cache/src/types/pg.js.map +1 -0
  564. package/out/zero-cache/src/types/processes.d.ts +57 -0
  565. package/out/zero-cache/src/types/processes.d.ts.map +1 -0
  566. package/out/zero-cache/src/types/processes.js +121 -0
  567. package/out/zero-cache/src/types/processes.js.map +1 -0
  568. package/out/zero-cache/src/types/row-key.d.ts +37 -0
  569. package/out/zero-cache/src/types/row-key.d.ts.map +1 -0
  570. package/out/zero-cache/src/types/row-key.js +64 -0
  571. package/out/zero-cache/src/types/row-key.js.map +1 -0
  572. package/out/zero-cache/src/types/satisfies.d.ts +14 -0
  573. package/out/zero-cache/src/types/satisfies.d.ts.map +1 -0
  574. package/out/zero-cache/src/types/satisfies.js +2 -0
  575. package/out/zero-cache/src/types/satisfies.js.map +1 -0
  576. package/out/zero-cache/src/types/specs.d.ts +29 -0
  577. package/out/zero-cache/src/types/specs.d.ts.map +1 -0
  578. package/out/zero-cache/src/types/specs.js +2 -0
  579. package/out/zero-cache/src/types/specs.js.map +1 -0
  580. package/out/zero-cache/src/types/sql.d.ts +11 -0
  581. package/out/zero-cache/src/types/sql.d.ts.map +1 -0
  582. package/out/zero-cache/src/types/sql.js +15 -0
  583. package/out/zero-cache/src/types/sql.js.map +1 -0
  584. package/out/zero-cache/src/types/streams.d.ts +33 -0
  585. package/out/zero-cache/src/types/streams.d.ts.map +1 -0
  586. package/out/zero-cache/src/types/streams.js +141 -0
  587. package/out/zero-cache/src/types/streams.js.map +1 -0
  588. package/out/zero-cache/src/types/subscription.d.ts +158 -0
  589. package/out/zero-cache/src/types/subscription.d.ts.map +1 -0
  590. package/out/zero-cache/src/types/subscription.js +233 -0
  591. package/out/zero-cache/src/types/subscription.js.map +1 -0
  592. package/out/zero-cache/src/types/timeout.d.ts +11 -0
  593. package/out/zero-cache/src/types/timeout.d.ts.map +1 -0
  594. package/out/zero-cache/src/types/timeout.js +23 -0
  595. package/out/zero-cache/src/types/timeout.js.map +1 -0
  596. package/out/zero-cache/src/types/url-params.d.ts +10 -0
  597. package/out/zero-cache/src/types/url-params.d.ts.map +1 -0
  598. package/out/zero-cache/src/types/url-params.js +35 -0
  599. package/out/zero-cache/src/types/url-params.js.map +1 -0
  600. package/out/zero-cache/src/workers/connection.d.ts +25 -0
  601. package/out/zero-cache/src/workers/connection.d.ts.map +1 -0
  602. package/out/zero-cache/src/workers/connection.js +189 -0
  603. package/out/zero-cache/src/workers/connection.js.map +1 -0
  604. package/out/zero-cache/src/workers/replicator.d.ts +17 -0
  605. package/out/zero-cache/src/workers/replicator.d.ts.map +1 -0
  606. package/out/zero-cache/src/workers/replicator.js +105 -0
  607. package/out/zero-cache/src/workers/replicator.js.map +1 -0
  608. package/out/zero-cache/src/workers/syncer.d.ts +28 -0
  609. package/out/zero-cache/src/workers/syncer.d.ts.map +1 -0
  610. package/out/zero-cache/src/workers/syncer.js +72 -0
  611. package/out/zero-cache/src/workers/syncer.js.map +1 -0
  612. package/out/zero-client/src/client/context.d.ts +23 -0
  613. package/out/zero-client/src/client/context.d.ts.map +1 -0
  614. package/out/zero-client/src/client/crud.d.ts +52 -0
  615. package/out/zero-client/src/client/crud.d.ts.map +1 -0
  616. package/out/zero-client/src/client/enable-analytics.d.ts +3 -0
  617. package/out/zero-client/src/client/enable-analytics.d.ts.map +1 -0
  618. package/out/zero-client/src/client/http-string.d.ts +7 -0
  619. package/out/zero-client/src/client/http-string.d.ts.map +1 -0
  620. package/out/zero-client/src/client/keys.d.ts +11 -0
  621. package/out/zero-client/src/client/keys.d.ts.map +1 -0
  622. package/out/zero-client/src/client/log-options.d.ts +12 -0
  623. package/out/zero-client/src/client/log-options.d.ts.map +1 -0
  624. package/out/zero-client/src/client/metrics.d.ts +115 -0
  625. package/out/zero-client/src/client/metrics.d.ts.map +1 -0
  626. package/out/zero-client/src/client/options.d.ts +94 -0
  627. package/out/zero-client/src/client/options.d.ts.map +1 -0
  628. package/out/zero-client/src/client/query-manager.d.ts +16 -0
  629. package/out/zero-client/src/client/query-manager.d.ts.map +1 -0
  630. package/out/zero-client/src/client/reload-error-handler.d.ts +5 -0
  631. package/out/zero-client/src/client/reload-error-handler.d.ts.map +1 -0
  632. package/out/zero-client/src/client/replicache-types.d.ts +48 -0
  633. package/out/zero-client/src/client/replicache-types.d.ts.map +1 -0
  634. package/out/zero-client/src/client/server-error.d.ts +12 -0
  635. package/out/zero-client/src/client/server-error.d.ts.map +1 -0
  636. package/out/zero-client/src/client/server-option.d.ts +3 -0
  637. package/out/zero-client/src/client/server-option.d.ts.map +1 -0
  638. package/out/zero-client/src/client/version.d.ts +5 -0
  639. package/out/zero-client/src/client/version.d.ts.map +1 -0
  640. package/out/zero-client/src/client/zero-poke-handler.d.ts +28 -0
  641. package/out/zero-client/src/client/zero-poke-handler.d.ts.map +1 -0
  642. package/out/zero-client/src/client/zero.d.ts +183 -0
  643. package/out/zero-client/src/client/zero.d.ts.map +1 -0
  644. package/out/zero-client/src/mod.d.ts +9 -0
  645. package/out/zero-client/src/mod.d.ts.map +1 -0
  646. package/out/zero-client/src/util/nanoid.d.ts +2 -0
  647. package/out/zero-client/src/util/nanoid.d.ts.map +1 -0
  648. package/out/zero-client/src/util/socket.d.ts +3 -0
  649. package/out/zero-client/src/util/socket.d.ts.map +1 -0
  650. package/out/zero-protocol/src/ast.d.ts +69 -0
  651. package/out/zero-protocol/src/ast.d.ts.map +1 -0
  652. package/out/zero-protocol/src/ast.js +64 -0
  653. package/out/zero-protocol/src/ast.js.map +1 -0
  654. package/out/zero-protocol/src/change-desired-queries.d.ts +71 -0
  655. package/out/zero-protocol/src/change-desired-queries.d.ts.map +1 -0
  656. package/out/zero-protocol/src/change-desired-queries.js +10 -0
  657. package/out/zero-protocol/src/change-desired-queries.js.map +1 -0
  658. package/out/zero-protocol/src/clients-patch.d.ts +37 -0
  659. package/out/zero-protocol/src/clients-patch.d.ts.map +1 -0
  660. package/out/zero-protocol/src/clients-patch.js +15 -0
  661. package/out/zero-protocol/src/clients-patch.js.map +1 -0
  662. package/out/zero-protocol/src/connect.d.ts +88 -0
  663. package/out/zero-protocol/src/connect.d.ts.map +1 -0
  664. package/out/zero-protocol/src/connect.js +25 -0
  665. package/out/zero-protocol/src/connect.js.map +1 -0
  666. package/out/zero-protocol/src/delete-clients.d.ts +11 -0
  667. package/out/zero-protocol/src/delete-clients.d.ts.map +1 -0
  668. package/out/zero-protocol/src/delete-clients.js +9 -0
  669. package/out/zero-protocol/src/delete-clients.js.map +1 -0
  670. package/out/zero-protocol/src/down.d.ts +110 -0
  671. package/out/zero-protocol/src/down.d.ts.map +1 -0
  672. package/out/zero-protocol/src/down.js +8 -0
  673. package/out/zero-protocol/src/down.js.map +1 -0
  674. package/out/zero-protocol/src/entities-patch.d.ts +66 -0
  675. package/out/zero-protocol/src/entities-patch.d.ts.map +1 -0
  676. package/out/zero-protocol/src/entities-patch.js +27 -0
  677. package/out/zero-protocol/src/entities-patch.js.map +1 -0
  678. package/out/zero-protocol/src/entity.d.ts +9 -0
  679. package/out/zero-protocol/src/entity.d.ts.map +1 -0
  680. package/out/zero-protocol/src/entity.js +8 -0
  681. package/out/zero-protocol/src/entity.js.map +1 -0
  682. package/out/zero-protocol/src/error.d.ts +19 -0
  683. package/out/zero-protocol/src/error.d.ts.map +1 -0
  684. package/out/zero-protocol/src/error.js +26 -0
  685. package/out/zero-protocol/src/error.js.map +1 -0
  686. package/out/zero-protocol/src/mod.d.ts +16 -0
  687. package/out/zero-protocol/src/mod.d.ts.map +1 -0
  688. package/out/zero-protocol/src/mod.js +16 -0
  689. package/out/zero-protocol/src/mod.js.map +1 -0
  690. package/out/zero-protocol/src/ping.d.ts +6 -0
  691. package/out/zero-protocol/src/ping.d.ts.map +1 -0
  692. package/out/zero-protocol/src/ping.js +4 -0
  693. package/out/zero-protocol/src/ping.js.map +1 -0
  694. package/out/zero-protocol/src/poke.d.ts +236 -0
  695. package/out/zero-protocol/src/poke.d.ts.map +1 -0
  696. package/out/zero-protocol/src/poke.js +69 -0
  697. package/out/zero-protocol/src/poke.js.map +1 -0
  698. package/out/zero-protocol/src/pong.d.ts +6 -0
  699. package/out/zero-protocol/src/pong.d.ts.map +1 -0
  700. package/out/zero-protocol/src/pong.js +4 -0
  701. package/out/zero-protocol/src/pong.js.map +1 -0
  702. package/out/zero-protocol/src/pull.d.ts +26 -0
  703. package/out/zero-protocol/src/pull.d.ts.map +1 -0
  704. package/out/zero-protocol/src/pull.js +24 -0
  705. package/out/zero-protocol/src/pull.js.map +1 -0
  706. package/out/zero-protocol/src/push.d.ts +257 -0
  707. package/out/zero-protocol/src/push.d.ts.map +1 -0
  708. package/out/zero-protocol/src/push.js +77 -0
  709. package/out/zero-protocol/src/push.js.map +1 -0
  710. package/out/zero-protocol/src/queries-patch.d.ts +103 -0
  711. package/out/zero-protocol/src/queries-patch.d.ts.map +1 -0
  712. package/out/zero-protocol/src/queries-patch.js +17 -0
  713. package/out/zero-protocol/src/queries-patch.js.map +1 -0
  714. package/out/zero-protocol/src/up.d.ts +116 -0
  715. package/out/zero-protocol/src/up.d.ts.map +1 -0
  716. package/out/zero-protocol/src/up.js +9 -0
  717. package/out/zero-protocol/src/up.js.map +1 -0
  718. package/out/zero-protocol/src/version.d.ts +6 -0
  719. package/out/zero-protocol/src/version.d.ts.map +1 -0
  720. package/out/zero-protocol/src/version.js +4 -0
  721. package/out/zero-protocol/src/version.js.map +1 -0
  722. package/out/zero-react/src/mod.d.ts +3 -0
  723. package/out/zero-react/src/mod.d.ts.map +1 -0
  724. package/out/zero-react/src/use-query.d.ts +3 -0
  725. package/out/zero-react/src/use-query.d.ts.map +1 -0
  726. package/out/zero-react/src/use-zero.d.ts +8 -0
  727. package/out/zero-react/src/use-zero.d.ts.map +1 -0
  728. package/out/zero.js +7000 -0
  729. package/out/zero.js.map +7 -0
  730. package/out/zql/src/zql/ast/ast.d.ts +84 -0
  731. package/out/zql/src/zql/ast/ast.d.ts.map +1 -0
  732. package/out/zql/src/zql/ast/ast.js +54 -0
  733. package/out/zql/src/zql/ast/ast.js.map +1 -0
  734. package/out/zql/src/zql/builder/builder.d.ts +56 -0
  735. package/out/zql/src/zql/builder/builder.d.ts.map +1 -0
  736. package/out/zql/src/zql/builder/builder.js +112 -0
  737. package/out/zql/src/zql/builder/builder.js.map +1 -0
  738. package/out/zql/src/zql/builder/error.d.ts +3 -0
  739. package/out/zql/src/zql/builder/error.d.ts.map +1 -0
  740. package/out/zql/src/zql/builder/error.js +3 -0
  741. package/out/zql/src/zql/builder/error.js.map +1 -0
  742. package/out/zql/src/zql/builder/filter.d.ts +6 -0
  743. package/out/zql/src/zql/builder/filter.d.ts.map +1 -0
  744. package/out/zql/src/zql/builder/filter.js +53 -0
  745. package/out/zql/src/zql/builder/filter.js.map +1 -0
  746. package/out/zql/src/zql/builder/like.d.ts +3 -0
  747. package/out/zql/src/zql/builder/like.d.ts.map +1 -0
  748. package/out/zql/src/zql/builder/like.js +60 -0
  749. package/out/zql/src/zql/builder/like.js.map +1 -0
  750. package/out/zql/src/zql/ivm/array-view.d.ts +42 -0
  751. package/out/zql/src/zql/ivm/array-view.d.ts.map +1 -0
  752. package/out/zql/src/zql/ivm/change.d.ts +44 -0
  753. package/out/zql/src/zql/ivm/change.d.ts.map +1 -0
  754. package/out/zql/src/zql/ivm/change.js +2 -0
  755. package/out/zql/src/zql/ivm/change.js.map +1 -0
  756. package/out/zql/src/zql/ivm/data.d.ts +72 -0
  757. package/out/zql/src/zql/ivm/data.d.ts.map +1 -0
  758. package/out/zql/src/zql/ivm/data.js +84 -0
  759. package/out/zql/src/zql/ivm/data.js.map +1 -0
  760. package/out/zql/src/zql/ivm/filter.d.ts +27 -0
  761. package/out/zql/src/zql/ivm/filter.d.ts.map +1 -0
  762. package/out/zql/src/zql/ivm/filter.js +60 -0
  763. package/out/zql/src/zql/ivm/filter.js.map +1 -0
  764. package/out/zql/src/zql/ivm/join.d.ts +37 -0
  765. package/out/zql/src/zql/ivm/join.d.ts.map +1 -0
  766. package/out/zql/src/zql/ivm/join.js +228 -0
  767. package/out/zql/src/zql/ivm/join.js.map +1 -0
  768. package/out/zql/src/zql/ivm/lookahead-iterator.d.ts +13 -0
  769. package/out/zql/src/zql/ivm/lookahead-iterator.d.ts.map +1 -0
  770. package/out/zql/src/zql/ivm/lookahead-iterator.js +45 -0
  771. package/out/zql/src/zql/ivm/lookahead-iterator.js.map +1 -0
  772. package/out/zql/src/zql/ivm/maybe-split-and-push-edit-change.d.ts +10 -0
  773. package/out/zql/src/zql/ivm/maybe-split-and-push-edit-change.d.ts.map +1 -0
  774. package/out/zql/src/zql/ivm/maybe-split-and-push-edit-change.js +34 -0
  775. package/out/zql/src/zql/ivm/maybe-split-and-push-edit-change.js.map +1 -0
  776. package/out/zql/src/zql/ivm/memory-source.d.ts +65 -0
  777. package/out/zql/src/zql/ivm/memory-source.d.ts.map +1 -0
  778. package/out/zql/src/zql/ivm/memory-source.js +508 -0
  779. package/out/zql/src/zql/ivm/memory-source.js.map +1 -0
  780. package/out/zql/src/zql/ivm/memory-storage.d.ts +18 -0
  781. package/out/zql/src/zql/ivm/memory-storage.d.ts.map +1 -0
  782. package/out/zql/src/zql/ivm/operator.d.ts +89 -0
  783. package/out/zql/src/zql/ivm/operator.d.ts.map +1 -0
  784. package/out/zql/src/zql/ivm/operator.js +2 -0
  785. package/out/zql/src/zql/ivm/operator.js.map +1 -0
  786. package/out/zql/src/zql/ivm/schema.d.ts +29 -0
  787. package/out/zql/src/zql/ivm/schema.d.ts.map +1 -0
  788. package/out/zql/src/zql/ivm/schema.js +3 -0
  789. package/out/zql/src/zql/ivm/schema.js.map +1 -0
  790. package/out/zql/src/zql/ivm/skip.d.ts +24 -0
  791. package/out/zql/src/zql/ivm/skip.d.ts.map +1 -0
  792. package/out/zql/src/zql/ivm/skip.js +113 -0
  793. package/out/zql/src/zql/ivm/skip.js.map +1 -0
  794. package/out/zql/src/zql/ivm/source.d.ts +57 -0
  795. package/out/zql/src/zql/ivm/source.d.ts.map +1 -0
  796. package/out/zql/src/zql/ivm/source.js +2 -0
  797. package/out/zql/src/zql/ivm/source.js.map +1 -0
  798. package/out/zql/src/zql/ivm/stream.d.ts +11 -0
  799. package/out/zql/src/zql/ivm/stream.d.ts.map +1 -0
  800. package/out/zql/src/zql/ivm/stream.js +19 -0
  801. package/out/zql/src/zql/ivm/stream.js.map +1 -0
  802. package/out/zql/src/zql/ivm/take.d.ts +24 -0
  803. package/out/zql/src/zql/ivm/take.d.ts.map +1 -0
  804. package/out/zql/src/zql/ivm/take.js +453 -0
  805. package/out/zql/src/zql/ivm/take.js.map +1 -0
  806. package/out/zql/src/zql/query/query-impl.d.ts +45 -0
  807. package/out/zql/src/zql/query/query-impl.d.ts.map +1 -0
  808. package/out/zql/src/zql/query/query.d.ts +130 -0
  809. package/out/zql/src/zql/query/query.d.ts.map +1 -0
  810. package/out/zql/src/zql/query/schema.d.ts +53 -0
  811. package/out/zql/src/zql/query/schema.d.ts.map +1 -0
  812. package/out/zql/src/zql/query/typed-view.d.ts +10 -0
  813. package/out/zql/src/zql/query/typed-view.d.ts.map +1 -0
  814. package/out/zqlite/src/db.d.ts +23 -0
  815. package/out/zqlite/src/db.d.ts.map +1 -0
  816. package/out/zqlite/src/db.js +117 -0
  817. package/out/zqlite/src/db.js.map +1 -0
  818. package/out/zqlite/src/internal/sql.d.ts +9 -0
  819. package/out/zqlite/src/internal/sql.d.ts.map +1 -0
  820. package/out/zqlite/src/internal/sql.js +14 -0
  821. package/out/zqlite/src/internal/sql.js.map +1 -0
  822. package/out/zqlite/src/internal/statement-cache.d.ts +67 -0
  823. package/out/zqlite/src/internal/statement-cache.d.ts.map +1 -0
  824. package/out/zqlite/src/internal/statement-cache.js +119 -0
  825. package/out/zqlite/src/internal/statement-cache.js.map +1 -0
  826. package/out/zqlite/src/table-source.d.ts +43 -0
  827. package/out/zqlite/src/table-source.d.ts.map +1 -0
  828. package/out/zqlite/src/table-source.js +393 -0
  829. package/out/zqlite/src/table-source.js.map +1 -0
  830. package/package.json +79 -0
  831. package/tool/install-sqlite3.js +37 -0
@@ -0,0 +1,783 @@
1
+ import * as v from '../../../../../shared/src/valita.js';
2
+ export declare const cvrVersionSchema: v.ObjectType<{
3
+ /**
4
+ * The database `stateVersion` with which the rows in the CVR are consistent.
5
+ */
6
+ stateVersion: v.Type<string>;
7
+ /**
8
+ * `minorVersion` is subversion of `stateVersion` that is initially absent for each
9
+ * `stateVersion`, and incremented for configuration changes that affect the contents
10
+ * of the CVR such as:
11
+ *
12
+ * * client set changes
13
+ * * query set changes
14
+ * * query transformation changes (which may happen for changes
15
+ * in server-side logic or authorization policies)
16
+ *
17
+ * Such configuration changes are always correlated with a change to one or more
18
+ * `/meta/...` records in the CVR, often (but not always) with corresponding
19
+ * patches in `/patches/meta/...`.
20
+ *
21
+ * When the `stateVersion` moves forward, the `minorVersion` is reset to absent.
22
+ * In this manner it behaves like the analogous concept in semantic versioning.
23
+ */
24
+ minorVersion: v.Optional<number>;
25
+ }, undefined>;
26
+ export type CVRVersion = v.Infer<typeof cvrVersionSchema>;
27
+ export declare function oneAfter(v: NullableCVRVersion): CVRVersion;
28
+ export type NullableCVRVersion = CVRVersion | null;
29
+ export declare function cmpVersions(a: NullableCVRVersion, b: NullableCVRVersion): number;
30
+ export declare function versionToCookie(v: CVRVersion): string;
31
+ export declare function versionToNullableCookie(v: NullableCVRVersion): string | null;
32
+ export declare function cookieToVersion(cookie: string | null): NullableCVRVersion;
33
+ export declare const lastActiveSchema: v.ObjectType<{
34
+ epochMillis: v.Type<number>;
35
+ }, undefined>;
36
+ export type LastActive = v.Infer<typeof lastActiveSchema>;
37
+ export declare const cvrIDSchema: v.ObjectType<{
38
+ id: v.Type<string>;
39
+ }, undefined>;
40
+ export type CvrID = v.Infer<typeof cvrIDSchema>;
41
+ export declare const clientRecordSchema: v.ObjectType<Omit<{
42
+ /**
43
+ * CVR records store the CVRVersion at which the record was last patched into
44
+ * the CVR, which corresponds with a patch row that is cleaned up when the
45
+ * record is changed (updated, deleted, and re-added in the case of rows).
46
+ *
47
+ * Tombstones are stored for row records but not for config records. This means
48
+ * that "orphaned" delete patches for config records may exist, and therefore
49
+ * scans of config patches must always run until the end of the list. On the
50
+ * contrary, for row patches, the row record tombstones allow cleanup of delete
51
+ * patches.
52
+ */
53
+ patchVersion: v.ObjectType<{
54
+ /**
55
+ * The database `stateVersion` with which the rows in the CVR are consistent.
56
+ */
57
+ stateVersion: v.Type<string>;
58
+ /**
59
+ * `minorVersion` is subversion of `stateVersion` that is initially absent for each
60
+ * `stateVersion`, and incremented for configuration changes that affect the contents
61
+ * of the CVR such as:
62
+ *
63
+ * * client set changes
64
+ * * query set changes
65
+ * * query transformation changes (which may happen for changes
66
+ * in server-side logic or authorization policies)
67
+ *
68
+ * Such configuration changes are always correlated with a change to one or more
69
+ * `/meta/...` records in the CVR, often (but not always) with corresponding
70
+ * patches in `/patches/meta/...`.
71
+ *
72
+ * When the `stateVersion` moves forward, the `minorVersion` is reset to absent.
73
+ * In this manner it behaves like the analogous concept in semantic versioning.
74
+ */
75
+ minorVersion: v.Optional<number>;
76
+ }, undefined>;
77
+ }, "id" | "desiredQueryIDs"> & {
78
+ /** The client ID, of which there can be multiple for a client group view. */
79
+ id: v.Type<string>;
80
+ /** The client's desired query IDs. Patch information is stored in the QueryRecord. */
81
+ desiredQueryIDs: v.ArrayType<[], v.Type<string>>;
82
+ }, undefined>;
83
+ export type ClientRecord = v.Infer<typeof clientRecordSchema>;
84
+ export declare const baseQueryRecordSchema: v.ObjectType<{
85
+ /** The client-specified ID used to identify this query. Typically a hash. */
86
+ id: v.Type<string>;
87
+ /** The original AST as supplied by the client. */
88
+ ast: v.ObjectType<{
89
+ schema: v.Optional<string>;
90
+ table: v.Type<string>;
91
+ alias: v.Optional<string>;
92
+ where: v.Optional<readonly {
93
+ type: "simple";
94
+ op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
95
+ field: string;
96
+ value: string | number | boolean | readonly (string | number | boolean)[] | {
97
+ type: "static";
98
+ anchor: "authData" | "preMutationRow";
99
+ field: string;
100
+ };
101
+ }[]>;
102
+ related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
103
+ limit: v.Optional<number>;
104
+ orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
105
+ start: v.Optional<{
106
+ row: Record<string, string | number | boolean | null | undefined>;
107
+ exclusive: boolean;
108
+ }>;
109
+ }, undefined>;
110
+ /**
111
+ * The hash of the query after server-side transformations, which include:
112
+ *
113
+ * * Normalization (which may differ from what the client does)
114
+ * * Query "expansion" to include primary keys and query-execution-related columns
115
+ * * Authorization transforms
116
+ *
117
+ * Transformations depend on conditions that are independent of the db state version,
118
+ * such as server-side logic and authorization policies. As such, the version of a CVR
119
+ * version may need to be advanced independent of db state changes. This is done
120
+ * via the `minorVersion` counter of the CVRVersion object, which is used to account
121
+ * for both changes to the query set and changes to query transformations (which are
122
+ * effectively remove-old-query + add-new-query).
123
+ *
124
+ * Note that the transformed AST itself is **not** stored, as the result of the previous
125
+ * transformation is not useful in and of itself. If the current transformation results in
126
+ * a different hash than that of the transformation used for the last version of the CVR,
127
+ * it is simply handled by invalidating the existing rows, re-executed the query with
128
+ * the new transformation, and advancing the CVR's `minorVersion` and this query's
129
+ * `transformationVersion`.
130
+ *
131
+ * Note that the transformationHash is only stored when the query has reached the "gotten"
132
+ * state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
133
+ */
134
+ transformationHash: v.Optional<string>;
135
+ /**
136
+ * The CVR version corresponding to the `transformationHash`. This essentially tracks when
137
+ * this version of the query was effectively added to the CVR (as opposed to the
138
+ * `patchVersion`, which is simply when the client was notified that its query was added
139
+ * to the gotten set). Catchup of clients from old CVR versions require executing all
140
+ * queries with a newer `transformationVersion`.
141
+ */
142
+ transformationVersion: v.Optional<{
143
+ minorVersion?: number | undefined;
144
+ stateVersion: string;
145
+ }>;
146
+ }, undefined>;
147
+ /**
148
+ * Internal queries track rows in the database for internal use, such as the
149
+ * `lastMutationID`s in the `zero.clients` table. They participate in the standard
150
+ * invalidation / update logic for row contents, but not in the desired/got or
151
+ * size-based quota logic for client-requested queries.
152
+ */
153
+ export declare const internalQueryRecordSchema: v.ObjectType<Omit<{
154
+ /** The client-specified ID used to identify this query. Typically a hash. */
155
+ id: v.Type<string>;
156
+ /** The original AST as supplied by the client. */
157
+ ast: v.ObjectType<{
158
+ schema: v.Optional<string>;
159
+ table: v.Type<string>;
160
+ alias: v.Optional<string>;
161
+ where: v.Optional<readonly {
162
+ type: "simple";
163
+ op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
164
+ field: string;
165
+ value: string | number | boolean | readonly (string | number | boolean)[] | {
166
+ type: "static";
167
+ anchor: "authData" | "preMutationRow";
168
+ field: string;
169
+ };
170
+ }[]>;
171
+ related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
172
+ limit: v.Optional<number>;
173
+ orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
174
+ start: v.Optional<{
175
+ row: Record<string, string | number | boolean | null | undefined>;
176
+ exclusive: boolean;
177
+ }>;
178
+ }, undefined>;
179
+ /**
180
+ * The hash of the query after server-side transformations, which include:
181
+ *
182
+ * * Normalization (which may differ from what the client does)
183
+ * * Query "expansion" to include primary keys and query-execution-related columns
184
+ * * Authorization transforms
185
+ *
186
+ * Transformations depend on conditions that are independent of the db state version,
187
+ * such as server-side logic and authorization policies. As such, the version of a CVR
188
+ * version may need to be advanced independent of db state changes. This is done
189
+ * via the `minorVersion` counter of the CVRVersion object, which is used to account
190
+ * for both changes to the query set and changes to query transformations (which are
191
+ * effectively remove-old-query + add-new-query).
192
+ *
193
+ * Note that the transformed AST itself is **not** stored, as the result of the previous
194
+ * transformation is not useful in and of itself. If the current transformation results in
195
+ * a different hash than that of the transformation used for the last version of the CVR,
196
+ * it is simply handled by invalidating the existing rows, re-executed the query with
197
+ * the new transformation, and advancing the CVR's `minorVersion` and this query's
198
+ * `transformationVersion`.
199
+ *
200
+ * Note that the transformationHash is only stored when the query has reached the "gotten"
201
+ * state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
202
+ */
203
+ transformationHash: v.Optional<string>;
204
+ /**
205
+ * The CVR version corresponding to the `transformationHash`. This essentially tracks when
206
+ * this version of the query was effectively added to the CVR (as opposed to the
207
+ * `patchVersion`, which is simply when the client was notified that its query was added
208
+ * to the gotten set). Catchup of clients from old CVR versions require executing all
209
+ * queries with a newer `transformationVersion`.
210
+ */
211
+ transformationVersion: v.Optional<{
212
+ minorVersion?: number | undefined;
213
+ stateVersion: string;
214
+ }>;
215
+ }, "internal"> & {
216
+ internal: v.Type<true>;
217
+ }, undefined>;
218
+ export type InternalQueryRecord = v.Infer<typeof internalQueryRecordSchema>;
219
+ export declare const clientQueryRecordSchema: v.ObjectType<Omit<{
220
+ /** The client-specified ID used to identify this query. Typically a hash. */
221
+ id: v.Type<string>;
222
+ /** The original AST as supplied by the client. */
223
+ ast: v.ObjectType<{
224
+ schema: v.Optional<string>;
225
+ table: v.Type<string>;
226
+ alias: v.Optional<string>;
227
+ where: v.Optional<readonly {
228
+ type: "simple";
229
+ op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
230
+ field: string;
231
+ value: string | number | boolean | readonly (string | number | boolean)[] | {
232
+ type: "static";
233
+ anchor: "authData" | "preMutationRow";
234
+ field: string;
235
+ };
236
+ }[]>;
237
+ related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
238
+ limit: v.Optional<number>;
239
+ orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
240
+ start: v.Optional<{
241
+ row: Record<string, string | number | boolean | null | undefined>;
242
+ exclusive: boolean;
243
+ }>;
244
+ }, undefined>;
245
+ /**
246
+ * The hash of the query after server-side transformations, which include:
247
+ *
248
+ * * Normalization (which may differ from what the client does)
249
+ * * Query "expansion" to include primary keys and query-execution-related columns
250
+ * * Authorization transforms
251
+ *
252
+ * Transformations depend on conditions that are independent of the db state version,
253
+ * such as server-side logic and authorization policies. As such, the version of a CVR
254
+ * version may need to be advanced independent of db state changes. This is done
255
+ * via the `minorVersion` counter of the CVRVersion object, which is used to account
256
+ * for both changes to the query set and changes to query transformations (which are
257
+ * effectively remove-old-query + add-new-query).
258
+ *
259
+ * Note that the transformed AST itself is **not** stored, as the result of the previous
260
+ * transformation is not useful in and of itself. If the current transformation results in
261
+ * a different hash than that of the transformation used for the last version of the CVR,
262
+ * it is simply handled by invalidating the existing rows, re-executed the query with
263
+ * the new transformation, and advancing the CVR's `minorVersion` and this query's
264
+ * `transformationVersion`.
265
+ *
266
+ * Note that the transformationHash is only stored when the query has reached the "gotten"
267
+ * state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
268
+ */
269
+ transformationHash: v.Optional<string>;
270
+ /**
271
+ * The CVR version corresponding to the `transformationHash`. This essentially tracks when
272
+ * this version of the query was effectively added to the CVR (as opposed to the
273
+ * `patchVersion`, which is simply when the client was notified that its query was added
274
+ * to the gotten set). Catchup of clients from old CVR versions require executing all
275
+ * queries with a newer `transformationVersion`.
276
+ */
277
+ transformationVersion: v.Optional<{
278
+ minorVersion?: number | undefined;
279
+ stateVersion: string;
280
+ }>;
281
+ }, "internal" | "patchVersion" | "desiredBy"> & {
282
+ internal: v.Optional<false>;
283
+ patchVersion: v.Optional<{
284
+ minorVersion?: number | undefined;
285
+ stateVersion: string;
286
+ }>;
287
+ desiredBy: v.Type<Record<string, {
288
+ minorVersion?: number | undefined;
289
+ stateVersion: string;
290
+ }>>;
291
+ }, undefined>;
292
+ export type ClientQueryRecord = v.Infer<typeof clientQueryRecordSchema>;
293
+ export declare const queryRecordSchema: v.UnionType<[v.ObjectType<Omit<{
294
+ /** The client-specified ID used to identify this query. Typically a hash. */
295
+ id: v.Type<string>;
296
+ /** The original AST as supplied by the client. */
297
+ ast: v.ObjectType<{
298
+ schema: v.Optional<string>;
299
+ table: v.Type<string>;
300
+ alias: v.Optional<string>;
301
+ where: v.Optional<readonly {
302
+ type: "simple";
303
+ op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
304
+ field: string;
305
+ value: string | number | boolean | readonly (string | number | boolean)[] | {
306
+ type: "static";
307
+ anchor: "authData" | "preMutationRow";
308
+ field: string;
309
+ };
310
+ }[]>;
311
+ related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
312
+ limit: v.Optional<number>;
313
+ orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
314
+ start: v.Optional<{
315
+ row: Record<string, string | number | boolean | null | undefined>;
316
+ exclusive: boolean;
317
+ }>;
318
+ }, undefined>;
319
+ /**
320
+ * The hash of the query after server-side transformations, which include:
321
+ *
322
+ * * Normalization (which may differ from what the client does)
323
+ * * Query "expansion" to include primary keys and query-execution-related columns
324
+ * * Authorization transforms
325
+ *
326
+ * Transformations depend on conditions that are independent of the db state version,
327
+ * such as server-side logic and authorization policies. As such, the version of a CVR
328
+ * version may need to be advanced independent of db state changes. This is done
329
+ * via the `minorVersion` counter of the CVRVersion object, which is used to account
330
+ * for both changes to the query set and changes to query transformations (which are
331
+ * effectively remove-old-query + add-new-query).
332
+ *
333
+ * Note that the transformed AST itself is **not** stored, as the result of the previous
334
+ * transformation is not useful in and of itself. If the current transformation results in
335
+ * a different hash than that of the transformation used for the last version of the CVR,
336
+ * it is simply handled by invalidating the existing rows, re-executed the query with
337
+ * the new transformation, and advancing the CVR's `minorVersion` and this query's
338
+ * `transformationVersion`.
339
+ *
340
+ * Note that the transformationHash is only stored when the query has reached the "gotten"
341
+ * state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
342
+ */
343
+ transformationHash: v.Optional<string>;
344
+ /**
345
+ * The CVR version corresponding to the `transformationHash`. This essentially tracks when
346
+ * this version of the query was effectively added to the CVR (as opposed to the
347
+ * `patchVersion`, which is simply when the client was notified that its query was added
348
+ * to the gotten set). Catchup of clients from old CVR versions require executing all
349
+ * queries with a newer `transformationVersion`.
350
+ */
351
+ transformationVersion: v.Optional<{
352
+ minorVersion?: number | undefined;
353
+ stateVersion: string;
354
+ }>;
355
+ }, "internal" | "patchVersion" | "desiredBy"> & {
356
+ internal: v.Optional<false>;
357
+ patchVersion: v.Optional<{
358
+ minorVersion?: number | undefined;
359
+ stateVersion: string;
360
+ }>;
361
+ desiredBy: v.Type<Record<string, {
362
+ minorVersion?: number | undefined;
363
+ stateVersion: string;
364
+ }>>;
365
+ }, undefined>, v.ObjectType<Omit<{
366
+ /** The client-specified ID used to identify this query. Typically a hash. */
367
+ id: v.Type<string>;
368
+ /** The original AST as supplied by the client. */
369
+ ast: v.ObjectType<{
370
+ schema: v.Optional<string>;
371
+ table: v.Type<string>;
372
+ alias: v.Optional<string>;
373
+ where: v.Optional<readonly {
374
+ type: "simple";
375
+ op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
376
+ field: string;
377
+ value: string | number | boolean | readonly (string | number | boolean)[] | {
378
+ type: "static";
379
+ anchor: "authData" | "preMutationRow";
380
+ field: string;
381
+ };
382
+ }[]>;
383
+ related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
384
+ limit: v.Optional<number>;
385
+ orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
386
+ start: v.Optional<{
387
+ row: Record<string, string | number | boolean | null | undefined>;
388
+ exclusive: boolean;
389
+ }>;
390
+ }, undefined>;
391
+ /**
392
+ * The hash of the query after server-side transformations, which include:
393
+ *
394
+ * * Normalization (which may differ from what the client does)
395
+ * * Query "expansion" to include primary keys and query-execution-related columns
396
+ * * Authorization transforms
397
+ *
398
+ * Transformations depend on conditions that are independent of the db state version,
399
+ * such as server-side logic and authorization policies. As such, the version of a CVR
400
+ * version may need to be advanced independent of db state changes. This is done
401
+ * via the `minorVersion` counter of the CVRVersion object, which is used to account
402
+ * for both changes to the query set and changes to query transformations (which are
403
+ * effectively remove-old-query + add-new-query).
404
+ *
405
+ * Note that the transformed AST itself is **not** stored, as the result of the previous
406
+ * transformation is not useful in and of itself. If the current transformation results in
407
+ * a different hash than that of the transformation used for the last version of the CVR,
408
+ * it is simply handled by invalidating the existing rows, re-executed the query with
409
+ * the new transformation, and advancing the CVR's `minorVersion` and this query's
410
+ * `transformationVersion`.
411
+ *
412
+ * Note that the transformationHash is only stored when the query has reached the "gotten"
413
+ * state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
414
+ */
415
+ transformationHash: v.Optional<string>;
416
+ /**
417
+ * The CVR version corresponding to the `transformationHash`. This essentially tracks when
418
+ * this version of the query was effectively added to the CVR (as opposed to the
419
+ * `patchVersion`, which is simply when the client was notified that its query was added
420
+ * to the gotten set). Catchup of clients from old CVR versions require executing all
421
+ * queries with a newer `transformationVersion`.
422
+ */
423
+ transformationVersion: v.Optional<{
424
+ minorVersion?: number | undefined;
425
+ stateVersion: string;
426
+ }>;
427
+ }, "internal"> & {
428
+ internal: v.Type<true>;
429
+ }, undefined>]>;
430
+ export type QueryRecord = v.Infer<typeof queryRecordSchema>;
431
+ export declare const rowIDSchema: v.ObjectType<{
432
+ schema: v.Type<string>;
433
+ table: v.Type<string>;
434
+ rowKey: v.Type<Record<string, import("../../../types/bigint-json.js").JSONValue>>;
435
+ }, undefined>;
436
+ export declare const metaRecordSchema: v.UnionType<[v.ObjectType<{
437
+ /**
438
+ * The database `stateVersion` with which the rows in the CVR are consistent.
439
+ */
440
+ stateVersion: v.Type<string>;
441
+ /**
442
+ * `minorVersion` is subversion of `stateVersion` that is initially absent for each
443
+ * `stateVersion`, and incremented for configuration changes that affect the contents
444
+ * of the CVR such as:
445
+ *
446
+ * * client set changes
447
+ * * query set changes
448
+ * * query transformation changes (which may happen for changes
449
+ * in server-side logic or authorization policies)
450
+ *
451
+ * Such configuration changes are always correlated with a change to one or more
452
+ * `/meta/...` records in the CVR, often (but not always) with corresponding
453
+ * patches in `/patches/meta/...`.
454
+ *
455
+ * When the `stateVersion` moves forward, the `minorVersion` is reset to absent.
456
+ * In this manner it behaves like the analogous concept in semantic versioning.
457
+ */
458
+ minorVersion: v.Optional<number>;
459
+ }, undefined>, v.ObjectType<{
460
+ epochMillis: v.Type<number>;
461
+ }, undefined>, v.ObjectType<Omit<{
462
+ /**
463
+ * CVR records store the CVRVersion at which the record was last patched into
464
+ * the CVR, which corresponds with a patch row that is cleaned up when the
465
+ * record is changed (updated, deleted, and re-added in the case of rows).
466
+ *
467
+ * Tombstones are stored for row records but not for config records. This means
468
+ * that "orphaned" delete patches for config records may exist, and therefore
469
+ * scans of config patches must always run until the end of the list. On the
470
+ * contrary, for row patches, the row record tombstones allow cleanup of delete
471
+ * patches.
472
+ */
473
+ patchVersion: v.ObjectType<{
474
+ /**
475
+ * The database `stateVersion` with which the rows in the CVR are consistent.
476
+ */
477
+ stateVersion: v.Type<string>;
478
+ /**
479
+ * `minorVersion` is subversion of `stateVersion` that is initially absent for each
480
+ * `stateVersion`, and incremented for configuration changes that affect the contents
481
+ * of the CVR such as:
482
+ *
483
+ * * client set changes
484
+ * * query set changes
485
+ * * query transformation changes (which may happen for changes
486
+ * in server-side logic or authorization policies)
487
+ *
488
+ * Such configuration changes are always correlated with a change to one or more
489
+ * `/meta/...` records in the CVR, often (but not always) with corresponding
490
+ * patches in `/patches/meta/...`.
491
+ *
492
+ * When the `stateVersion` moves forward, the `minorVersion` is reset to absent.
493
+ * In this manner it behaves like the analogous concept in semantic versioning.
494
+ */
495
+ minorVersion: v.Optional<number>;
496
+ }, undefined>;
497
+ }, "id" | "desiredQueryIDs"> & {
498
+ /** The client ID, of which there can be multiple for a client group view. */
499
+ id: v.Type<string>;
500
+ /** The client's desired query IDs. Patch information is stored in the QueryRecord. */
501
+ desiredQueryIDs: v.ArrayType<[], v.Type<string>>;
502
+ }, undefined>, v.UnionType<[v.ObjectType<Omit<{
503
+ /** The client-specified ID used to identify this query. Typically a hash. */
504
+ id: v.Type<string>;
505
+ /** The original AST as supplied by the client. */
506
+ ast: v.ObjectType<{
507
+ schema: v.Optional<string>;
508
+ table: v.Type<string>;
509
+ alias: v.Optional<string>;
510
+ where: v.Optional<readonly {
511
+ type: "simple";
512
+ op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
513
+ field: string;
514
+ value: string | number | boolean | readonly (string | number | boolean)[] | {
515
+ type: "static";
516
+ anchor: "authData" | "preMutationRow";
517
+ field: string;
518
+ };
519
+ }[]>;
520
+ related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
521
+ limit: v.Optional<number>;
522
+ orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
523
+ start: v.Optional<{
524
+ row: Record<string, string | number | boolean | null | undefined>;
525
+ exclusive: boolean;
526
+ }>;
527
+ }, undefined>;
528
+ /**
529
+ * The hash of the query after server-side transformations, which include:
530
+ *
531
+ * * Normalization (which may differ from what the client does)
532
+ * * Query "expansion" to include primary keys and query-execution-related columns
533
+ * * Authorization transforms
534
+ *
535
+ * Transformations depend on conditions that are independent of the db state version,
536
+ * such as server-side logic and authorization policies. As such, the version of a CVR
537
+ * version may need to be advanced independent of db state changes. This is done
538
+ * via the `minorVersion` counter of the CVRVersion object, which is used to account
539
+ * for both changes to the query set and changes to query transformations (which are
540
+ * effectively remove-old-query + add-new-query).
541
+ *
542
+ * Note that the transformed AST itself is **not** stored, as the result of the previous
543
+ * transformation is not useful in and of itself. If the current transformation results in
544
+ * a different hash than that of the transformation used for the last version of the CVR,
545
+ * it is simply handled by invalidating the existing rows, re-executed the query with
546
+ * the new transformation, and advancing the CVR's `minorVersion` and this query's
547
+ * `transformationVersion`.
548
+ *
549
+ * Note that the transformationHash is only stored when the query has reached the "gotten"
550
+ * state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
551
+ */
552
+ transformationHash: v.Optional<string>;
553
+ /**
554
+ * The CVR version corresponding to the `transformationHash`. This essentially tracks when
555
+ * this version of the query was effectively added to the CVR (as opposed to the
556
+ * `patchVersion`, which is simply when the client was notified that its query was added
557
+ * to the gotten set). Catchup of clients from old CVR versions require executing all
558
+ * queries with a newer `transformationVersion`.
559
+ */
560
+ transformationVersion: v.Optional<{
561
+ minorVersion?: number | undefined;
562
+ stateVersion: string;
563
+ }>;
564
+ }, "internal" | "patchVersion" | "desiredBy"> & {
565
+ internal: v.Optional<false>;
566
+ patchVersion: v.Optional<{
567
+ minorVersion?: number | undefined;
568
+ stateVersion: string;
569
+ }>;
570
+ desiredBy: v.Type<Record<string, {
571
+ minorVersion?: number | undefined;
572
+ stateVersion: string;
573
+ }>>;
574
+ }, undefined>, v.ObjectType<Omit<{
575
+ /** The client-specified ID used to identify this query. Typically a hash. */
576
+ id: v.Type<string>;
577
+ /** The original AST as supplied by the client. */
578
+ ast: v.ObjectType<{
579
+ schema: v.Optional<string>;
580
+ table: v.Type<string>;
581
+ alias: v.Optional<string>;
582
+ where: v.Optional<readonly {
583
+ type: "simple";
584
+ op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
585
+ field: string;
586
+ value: string | number | boolean | readonly (string | number | boolean)[] | {
587
+ type: "static";
588
+ anchor: "authData" | "preMutationRow";
589
+ field: string;
590
+ };
591
+ }[]>;
592
+ related: v.Optional<readonly import("../../../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[]>;
593
+ limit: v.Optional<number>;
594
+ orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
595
+ start: v.Optional<{
596
+ row: Record<string, string | number | boolean | null | undefined>;
597
+ exclusive: boolean;
598
+ }>;
599
+ }, undefined>;
600
+ /**
601
+ * The hash of the query after server-side transformations, which include:
602
+ *
603
+ * * Normalization (which may differ from what the client does)
604
+ * * Query "expansion" to include primary keys and query-execution-related columns
605
+ * * Authorization transforms
606
+ *
607
+ * Transformations depend on conditions that are independent of the db state version,
608
+ * such as server-side logic and authorization policies. As such, the version of a CVR
609
+ * version may need to be advanced independent of db state changes. This is done
610
+ * via the `minorVersion` counter of the CVRVersion object, which is used to account
611
+ * for both changes to the query set and changes to query transformations (which are
612
+ * effectively remove-old-query + add-new-query).
613
+ *
614
+ * Note that the transformed AST itself is **not** stored, as the result of the previous
615
+ * transformation is not useful in and of itself. If the current transformation results in
616
+ * a different hash than that of the transformation used for the last version of the CVR,
617
+ * it is simply handled by invalidating the existing rows, re-executed the query with
618
+ * the new transformation, and advancing the CVR's `minorVersion` and this query's
619
+ * `transformationVersion`.
620
+ *
621
+ * Note that the transformationHash is only stored when the query has reached the "gotten"
622
+ * state. If the query is in the "desired" but not yet "gotten" state, the field is absent.
623
+ */
624
+ transformationHash: v.Optional<string>;
625
+ /**
626
+ * The CVR version corresponding to the `transformationHash`. This essentially tracks when
627
+ * this version of the query was effectively added to the CVR (as opposed to the
628
+ * `patchVersion`, which is simply when the client was notified that its query was added
629
+ * to the gotten set). Catchup of clients from old CVR versions require executing all
630
+ * queries with a newer `transformationVersion`.
631
+ */
632
+ transformationVersion: v.Optional<{
633
+ minorVersion?: number | undefined;
634
+ stateVersion: string;
635
+ }>;
636
+ }, "internal"> & {
637
+ internal: v.Type<true>;
638
+ }, undefined>]>]>;
639
+ export type MetaRecord = v.Infer<typeof metaRecordSchema>;
640
+ export type RowID = v.Infer<typeof rowIDSchema>;
641
+ export declare const rowRecordSchema: v.ObjectType<Omit<{
642
+ /**
643
+ * CVR records store the CVRVersion at which the record was last patched into
644
+ * the CVR, which corresponds with a patch row that is cleaned up when the
645
+ * record is changed (updated, deleted, and re-added in the case of rows).
646
+ *
647
+ * Tombstones are stored for row records but not for config records. This means
648
+ * that "orphaned" delete patches for config records may exist, and therefore
649
+ * scans of config patches must always run until the end of the list. On the
650
+ * contrary, for row patches, the row record tombstones allow cleanup of delete
651
+ * patches.
652
+ */
653
+ patchVersion: v.ObjectType<{
654
+ /**
655
+ * The database `stateVersion` with which the rows in the CVR are consistent.
656
+ */
657
+ stateVersion: v.Type<string>;
658
+ /**
659
+ * `minorVersion` is subversion of `stateVersion` that is initially absent for each
660
+ * `stateVersion`, and incremented for configuration changes that affect the contents
661
+ * of the CVR such as:
662
+ *
663
+ * * client set changes
664
+ * * query set changes
665
+ * * query transformation changes (which may happen for changes
666
+ * in server-side logic or authorization policies)
667
+ *
668
+ * Such configuration changes are always correlated with a change to one or more
669
+ * `/meta/...` records in the CVR, often (but not always) with corresponding
670
+ * patches in `/patches/meta/...`.
671
+ *
672
+ * When the `stateVersion` moves forward, the `minorVersion` is reset to absent.
673
+ * In this manner it behaves like the analogous concept in semantic versioning.
674
+ */
675
+ minorVersion: v.Optional<number>;
676
+ }, undefined>;
677
+ }, "id" | "rowVersion" | "refCounts"> & {
678
+ id: v.ObjectType<{
679
+ schema: v.Type<string>;
680
+ table: v.Type<string>;
681
+ rowKey: v.Type<Record<string, import("../../../types/bigint-json.js").JSONValue>>;
682
+ }, undefined>;
683
+ rowVersion: v.Type<string>;
684
+ refCounts: v.Type<Record<string, number> | null>;
685
+ }, undefined>;
686
+ export type RowRecord = v.Infer<typeof rowRecordSchema>;
687
+ export declare const patchSchema: v.ObjectType<{
688
+ type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
689
+ op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
690
+ }, undefined>;
691
+ export declare const putRowPatchSchema: v.ObjectType<Omit<{
692
+ type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
693
+ op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
694
+ }, "type" | "op" | "id" | "rowVersion"> & {
695
+ type: v.Type<"row">;
696
+ op: v.Type<"put">;
697
+ id: v.ObjectType<{
698
+ schema: v.Type<string>;
699
+ table: v.Type<string>;
700
+ rowKey: v.Type<Record<string, import("../../../types/bigint-json.js").JSONValue>>;
701
+ }, undefined>;
702
+ rowVersion: v.Type<string>;
703
+ }, undefined>;
704
+ export type PutRowPatch = v.Infer<typeof putRowPatchSchema>;
705
+ export declare const delRowPatchSchema: v.ObjectType<Omit<{
706
+ type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
707
+ op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
708
+ }, "type" | "op" | "id"> & {
709
+ type: v.Type<"row">;
710
+ op: v.Type<"del">;
711
+ id: v.ObjectType<{
712
+ schema: v.Type<string>;
713
+ table: v.Type<string>;
714
+ rowKey: v.Type<Record<string, import("../../../types/bigint-json.js").JSONValue>>;
715
+ }, undefined>;
716
+ }, undefined>;
717
+ export type DelRowPatch = v.Infer<typeof delRowPatchSchema>;
718
+ export declare const rowPatchSchema: v.UnionType<[v.ObjectType<Omit<{
719
+ type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
720
+ op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
721
+ }, "type" | "op" | "id" | "rowVersion"> & {
722
+ type: v.Type<"row">;
723
+ op: v.Type<"put">;
724
+ id: v.ObjectType<{
725
+ schema: v.Type<string>;
726
+ table: v.Type<string>;
727
+ rowKey: v.Type<Record<string, import("../../../types/bigint-json.js").JSONValue>>;
728
+ }, undefined>;
729
+ rowVersion: v.Type<string>;
730
+ }, undefined>, v.ObjectType<Omit<{
731
+ type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
732
+ op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
733
+ }, "type" | "op" | "id"> & {
734
+ type: v.Type<"row">;
735
+ op: v.Type<"del">;
736
+ id: v.ObjectType<{
737
+ schema: v.Type<string>;
738
+ table: v.Type<string>;
739
+ rowKey: v.Type<Record<string, import("../../../types/bigint-json.js").JSONValue>>;
740
+ }, undefined>;
741
+ }, undefined>]>;
742
+ export type RowPatch = v.Infer<typeof rowPatchSchema>;
743
+ export declare const queryPatchSchema: v.ObjectType<Omit<{
744
+ type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
745
+ op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
746
+ }, "type" | "clientID" | "id"> & {
747
+ type: v.Type<"query">;
748
+ id: v.Type<string>;
749
+ clientID: v.Optional<string>;
750
+ }, undefined>;
751
+ export type QueryPatch = v.Infer<typeof queryPatchSchema>;
752
+ export type PutQueryPatch = QueryPatch & {
753
+ op: 'put';
754
+ };
755
+ export type DelQueryPatch = QueryPatch & {
756
+ op: 'del';
757
+ };
758
+ export declare const clientPatchSchema: v.ObjectType<Omit<{
759
+ type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
760
+ op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
761
+ }, "type" | "id"> & {
762
+ type: v.Type<"client">;
763
+ id: v.Type<string>;
764
+ }, undefined>;
765
+ export type ClientPatch = v.Infer<typeof clientPatchSchema>;
766
+ export declare const metadataPatchSchema: v.UnionType<[v.ObjectType<Omit<{
767
+ type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
768
+ op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
769
+ }, "type" | "id"> & {
770
+ type: v.Type<"client">;
771
+ id: v.Type<string>;
772
+ }, undefined>, v.ObjectType<Omit<{
773
+ type: v.UnionType<[v.Type<"client">, v.Type<"row">, v.Type<"query">]>;
774
+ op: v.UnionType<[v.Type<"put">, v.Type<"del">]>;
775
+ }, "type" | "clientID" | "id"> & {
776
+ type: v.Type<"query">;
777
+ id: v.Type<string>;
778
+ clientID: v.Optional<string>;
779
+ }, undefined>]>;
780
+ export type MetadataPatch = v.Infer<typeof metadataPatchSchema>;
781
+ export declare function versionString(v: CVRVersion): string;
782
+ export declare function versionFromString(str: string): CVRVersion;
783
+ //# sourceMappingURL=types.d.ts.map