jazz-tools 2.0.0-alpha.6 → 2.0.0-alpha.61

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 (1647) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +179 -3
  3. package/bin/jazz-tools.js +94 -45
  4. package/dist/_dev/inspector-cache-runtime.d.ts +8 -0
  5. package/dist/_dev/inspector-cache-runtime.d.ts.map +1 -0
  6. package/dist/_dev/inspector-cache-runtime.js +237 -0
  7. package/dist/_dev/inspector-cache-runtime.js.map +1 -0
  8. package/dist/_dev/inspector-client.d.ts +15 -0
  9. package/dist/_dev/inspector-client.d.ts.map +1 -0
  10. package/dist/_dev/inspector-client.js +134 -0
  11. package/dist/_dev/inspector-client.js.map +1 -0
  12. package/dist/_dev/native-account-session.d.ts +23 -0
  13. package/dist/_dev/native-account-session.d.ts.map +1 -0
  14. package/dist/_dev/native-account-session.js +61 -0
  15. package/dist/_dev/native-account-session.js.map +1 -0
  16. package/dist/_dev/native-binding-codec.d.ts +9 -0
  17. package/dist/_dev/native-binding-codec.d.ts.map +1 -0
  18. package/dist/_dev/native-binding-codec.js +9 -0
  19. package/dist/_dev/native-binding-codec.js.map +1 -0
  20. package/dist/accounts/account-manager-core.d.ts +34 -0
  21. package/dist/accounts/account-manager-core.d.ts.map +1 -0
  22. package/dist/accounts/account-manager-core.js +203 -0
  23. package/dist/accounts/account-manager-core.js.map +1 -0
  24. package/dist/accounts/browser-host.d.ts +8 -0
  25. package/dist/accounts/browser-host.d.ts.map +1 -0
  26. package/dist/accounts/browser-host.js +16 -0
  27. package/dist/accounts/browser-host.js.map +1 -0
  28. package/dist/accounts/config-capability.d.ts +26 -0
  29. package/dist/accounts/config-capability.d.ts.map +1 -0
  30. package/dist/accounts/config-capability.js +58 -0
  31. package/dist/accounts/config-capability.js.map +1 -0
  32. package/dist/accounts/context.d.ts +14 -0
  33. package/dist/accounts/context.d.ts.map +1 -0
  34. package/dist/accounts/context.js +214 -0
  35. package/dist/accounts/context.js.map +1 -0
  36. package/dist/accounts/create-account-manager.d.ts +52 -0
  37. package/dist/accounts/create-account-manager.d.ts.map +1 -0
  38. package/dist/accounts/create-account-manager.js +17 -0
  39. package/dist/accounts/create-account-manager.js.map +1 -0
  40. package/dist/accounts/enrollment.d.ts +87 -0
  41. package/dist/accounts/enrollment.d.ts.map +1 -0
  42. package/dist/accounts/enrollment.js +312 -0
  43. package/dist/accounts/enrollment.js.map +1 -0
  44. package/dist/accounts/exports.d.ts +3 -0
  45. package/dist/accounts/exports.d.ts.map +1 -0
  46. package/dist/accounts/exports.js +5 -0
  47. package/dist/accounts/exports.js.map +1 -0
  48. package/dist/accounts/local-first.d.ts +14 -0
  49. package/dist/accounts/local-first.d.ts.map +1 -0
  50. package/dist/accounts/local-first.js +62 -0
  51. package/dist/accounts/local-first.js.map +1 -0
  52. package/dist/accounts/persistence.d.ts +42 -0
  53. package/dist/accounts/persistence.d.ts.map +1 -0
  54. package/dist/accounts/persistence.js +311 -0
  55. package/dist/accounts/persistence.js.map +1 -0
  56. package/dist/accounts/registry-client.d.ts +70 -0
  57. package/dist/accounts/registry-client.d.ts.map +1 -0
  58. package/dist/accounts/registry-client.js +142 -0
  59. package/dist/accounts/registry-client.js.map +1 -0
  60. package/dist/accounts/state.d.ts +76 -0
  61. package/dist/accounts/state.d.ts.map +1 -0
  62. package/dist/accounts/state.js +172 -0
  63. package/dist/accounts/state.js.map +1 -0
  64. package/dist/backend/admission.d.ts +18 -0
  65. package/dist/backend/admission.d.ts.map +1 -0
  66. package/dist/backend/admission.js +139 -0
  67. package/dist/backend/admission.js.map +1 -0
  68. package/dist/backend/backend-clients.d.ts +76 -0
  69. package/dist/backend/backend-clients.d.ts.map +1 -0
  70. package/dist/backend/backend-clients.js +237 -0
  71. package/dist/backend/backend-clients.js.map +1 -0
  72. package/dist/backend/backend-issuer.d.ts +6 -0
  73. package/dist/backend/backend-issuer.d.ts.map +1 -0
  74. package/dist/backend/backend-issuer.js +6 -0
  75. package/dist/backend/backend-issuer.js.map +1 -0
  76. package/dist/backend/blobs.d.ts +121 -0
  77. package/dist/backend/blobs.d.ts.map +1 -0
  78. package/dist/backend/blobs.js +123 -0
  79. package/dist/backend/blobs.js.map +1 -0
  80. package/dist/backend/create-jazz-context.d.ts +116 -0
  81. package/dist/backend/create-jazz-context.d.ts.map +1 -0
  82. package/dist/backend/create-jazz-context.js +607 -0
  83. package/dist/backend/create-jazz-context.js.map +1 -0
  84. package/dist/backend/create-jazz-session.d.ts +107 -0
  85. package/dist/backend/create-jazz-session.d.ts.map +1 -0
  86. package/dist/backend/create-jazz-session.js +505 -0
  87. package/dist/backend/create-jazz-session.js.map +1 -0
  88. package/dist/backend/create-jazz.d.ts +493 -0
  89. package/dist/backend/create-jazz.d.ts.map +1 -0
  90. package/dist/backend/create-jazz.js +3026 -0
  91. package/dist/backend/create-jazz.js.map +1 -0
  92. package/dist/backend/early-db.d.ts +29 -0
  93. package/dist/backend/early-db.d.ts.map +1 -0
  94. package/dist/backend/early-db.js +203 -0
  95. package/dist/backend/early-db.js.map +1 -0
  96. package/dist/backend/external-jwt.d.ts +27 -0
  97. package/dist/backend/external-jwt.d.ts.map +1 -0
  98. package/dist/backend/external-jwt.js +380 -0
  99. package/dist/backend/external-jwt.js.map +1 -0
  100. package/dist/backend/from-jwt.d.ts +62 -0
  101. package/dist/backend/from-jwt.d.ts.map +1 -0
  102. package/dist/backend/from-jwt.js +102 -0
  103. package/dist/backend/from-jwt.js.map +1 -0
  104. package/dist/backend/index.d.ts +12 -1
  105. package/dist/backend/index.d.ts.map +1 -1
  106. package/dist/backend/index.js +10 -1
  107. package/dist/backend/index.js.map +1 -1
  108. package/dist/backend/inspect-ui.d.ts +14 -0
  109. package/dist/backend/inspect-ui.d.ts.map +1 -0
  110. package/dist/backend/inspect-ui.js +156 -0
  111. package/dist/backend/inspect-ui.js.map +1 -0
  112. package/dist/backend/inspect.d.ts +129 -0
  113. package/dist/backend/inspect.d.ts.map +1 -0
  114. package/dist/backend/inspect.js +763 -0
  115. package/dist/backend/inspect.js.map +1 -0
  116. package/dist/backend/inspector-ui/0.js +2 -0
  117. package/dist/backend/inspector-ui/1.js +2 -0
  118. package/dist/backend/inspector-ui/10.js +2 -0
  119. package/dist/backend/inspector-ui/11.js +2 -0
  120. package/dist/backend/inspector-ui/12.js +2 -0
  121. package/dist/backend/inspector-ui/13.js +2 -0
  122. package/dist/backend/inspector-ui/14.js +2 -0
  123. package/dist/backend/inspector-ui/15.js +2 -0
  124. package/dist/backend/inspector-ui/16.js +2 -0
  125. package/dist/backend/inspector-ui/17.js +2 -0
  126. package/dist/backend/inspector-ui/18.js +2 -0
  127. package/dist/backend/inspector-ui/19.js +2 -0
  128. package/dist/backend/inspector-ui/2.js +2 -0
  129. package/dist/backend/inspector-ui/20.js +2 -0
  130. package/dist/backend/inspector-ui/3.js +2 -0
  131. package/dist/backend/inspector-ui/4.js +2 -0
  132. package/dist/backend/inspector-ui/5.js +2 -0
  133. package/dist/backend/inspector-ui/6.js +2 -0
  134. package/dist/backend/inspector-ui/7.js +2 -0
  135. package/dist/backend/inspector-ui/8.js +2 -0
  136. package/dist/backend/inspector-ui/9.js +2 -0
  137. package/dist/backend/inspector-ui-files.d.ts +4 -0
  138. package/dist/backend/inspector-ui-files.d.ts.map +1 -0
  139. package/dist/backend/inspector-ui-files.js +25 -0
  140. package/dist/backend/no-account-error.d.ts +23 -0
  141. package/dist/backend/no-account-error.d.ts.map +1 -0
  142. package/dist/backend/no-account-error.js +30 -0
  143. package/dist/backend/no-account-error.js.map +1 -0
  144. package/dist/backend/optional-peer.d.ts +9 -0
  145. package/dist/backend/optional-peer.d.ts.map +1 -0
  146. package/dist/backend/optional-peer.js +24 -0
  147. package/dist/backend/optional-peer.js.map +1 -0
  148. package/dist/backend/request-auth.d.ts +39 -0
  149. package/dist/backend/request-auth.d.ts.map +1 -0
  150. package/dist/backend/request-auth.js +77 -0
  151. package/dist/backend/request-auth.js.map +1 -0
  152. package/dist/backend/session-expiry.d.ts +61 -0
  153. package/dist/backend/session-expiry.d.ts.map +1 -0
  154. package/dist/backend/session-expiry.js +102 -0
  155. package/dist/backend/session-expiry.js.map +1 -0
  156. package/dist/backend/socket-deadline.d.ts +23 -0
  157. package/dist/backend/socket-deadline.d.ts.map +1 -0
  158. package/dist/backend/socket-deadline.js +70 -0
  159. package/dist/backend/socket-deadline.js.map +1 -0
  160. package/dist/backend/upgrade-status.d.ts +19 -0
  161. package/dist/backend/upgrade-status.d.ts.map +1 -0
  162. package/dist/backend/upgrade-status.js +55 -0
  163. package/dist/backend/upgrade-status.js.map +1 -0
  164. package/dist/backend/vercel-sockets.d.ts +16 -0
  165. package/dist/backend/vercel-sockets.d.ts.map +1 -0
  166. package/dist/backend/vercel-sockets.js +24 -0
  167. package/dist/backend/vercel-sockets.js.map +1 -0
  168. package/dist/backend/vercel-store.d.ts +223 -0
  169. package/dist/backend/vercel-store.d.ts.map +1 -0
  170. package/dist/backend/vercel-store.js +999 -0
  171. package/dist/backend/vercel-store.js.map +1 -0
  172. package/dist/better-auth-adapter/fixtures/permissions.d.ts +2 -0
  173. package/dist/better-auth-adapter/fixtures/permissions.d.ts.map +1 -0
  174. package/dist/better-auth-adapter/fixtures/permissions.js +2 -0
  175. package/dist/better-auth-adapter/fixtures/permissions.js.map +1 -0
  176. package/dist/better-auth-adapter/fixtures/schema.d.ts +69 -0
  177. package/dist/better-auth-adapter/fixtures/schema.d.ts.map +1 -0
  178. package/dist/better-auth-adapter/fixtures/schema.js +84 -0
  179. package/dist/better-auth-adapter/fixtures/schema.js.map +1 -0
  180. package/dist/better-auth-adapter/index.d.ts +13 -0
  181. package/dist/better-auth-adapter/index.d.ts.map +1 -0
  182. package/dist/better-auth-adapter/index.js +366 -0
  183. package/dist/better-auth-adapter/index.js.map +1 -0
  184. package/dist/better-auth-adapter/indexes.d.ts +9 -0
  185. package/dist/better-auth-adapter/indexes.d.ts.map +1 -0
  186. package/dist/better-auth-adapter/indexes.js +40 -0
  187. package/dist/better-auth-adapter/indexes.js.map +1 -0
  188. package/dist/better-auth-adapter/schema.d.ts +49 -0
  189. package/dist/better-auth-adapter/schema.d.ts.map +1 -0
  190. package/dist/better-auth-adapter/schema.js +300 -0
  191. package/dist/better-auth-adapter/schema.js.map +1 -0
  192. package/dist/better-auth-adapter/types.d.ts +13 -0
  193. package/dist/better-auth-adapter/types.d.ts.map +1 -0
  194. package/dist/better-auth-adapter/types.js +2 -0
  195. package/dist/better-auth-adapter/types.js.map +1 -0
  196. package/dist/better-auth-adapter/utils.d.ts +27 -0
  197. package/dist/better-auth-adapter/utils.d.ts.map +1 -0
  198. package/dist/better-auth-adapter/utils.js +189 -0
  199. package/dist/better-auth-adapter/utils.js.map +1 -0
  200. package/dist/browser-benchmark-mode.d.ts +6 -0
  201. package/dist/browser-benchmark-mode.d.ts.map +1 -0
  202. package/dist/browser-benchmark-mode.js +13 -0
  203. package/dist/browser-benchmark-mode.js.map +1 -0
  204. package/dist/classic-api.d.ts +59 -0
  205. package/dist/classic-api.d.ts.map +1 -0
  206. package/dist/classic-api.js +122 -0
  207. package/dist/classic-api.js.map +1 -0
  208. package/dist/cli.d.ts +29 -2
  209. package/dist/cli.d.ts.map +1 -1
  210. package/dist/cli.js +385 -267
  211. package/dist/cli.js.map +1 -1
  212. package/dist/client/index.d.ts +10 -0
  213. package/dist/client/index.d.ts.map +1 -0
  214. package/dist/client/index.js +7 -0
  215. package/dist/client/index.js.map +1 -0
  216. package/dist/cloud/api.d.ts +11 -0
  217. package/dist/cloud/api.d.ts.map +1 -0
  218. package/dist/cloud/api.js +46 -0
  219. package/dist/cloud/api.js.map +1 -0
  220. package/dist/cloud/commands.d.ts +13 -0
  221. package/dist/cloud/commands.d.ts.map +1 -0
  222. package/dist/cloud/commands.js +413 -0
  223. package/dist/cloud/commands.js.map +1 -0
  224. package/dist/cloud/credentials.d.ts +49 -0
  225. package/dist/cloud/credentials.d.ts.map +1 -0
  226. package/dist/cloud/credentials.js +219 -0
  227. package/dist/cloud/credentials.js.map +1 -0
  228. package/dist/cloud/session.d.ts +57 -0
  229. package/dist/cloud/session.d.ts.map +1 -0
  230. package/dist/cloud/session.js +269 -0
  231. package/dist/cloud/session.js.map +1 -0
  232. package/dist/codegen/relation-analyzer.d.ts +5 -12
  233. package/dist/codegen/relation-analyzer.d.ts.map +1 -1
  234. package/dist/codegen/relation-analyzer.js +54 -65
  235. package/dist/codegen/relation-analyzer.js.map +1 -1
  236. package/dist/codegen/schema-reader.d.ts +6 -2
  237. package/dist/codegen/schema-reader.d.ts.map +1 -1
  238. package/dist/codegen/schema-reader.js +129 -98
  239. package/dist/codegen/schema-reader.js.map +1 -1
  240. package/dist/dev/catalogue-api.d.ts +157 -0
  241. package/dist/dev/catalogue-api.d.ts.map +1 -0
  242. package/dist/dev/catalogue-api.js +145 -0
  243. package/dist/dev/catalogue-api.js.map +1 -0
  244. package/dist/dev/catalogue-project.d.ts +150 -0
  245. package/dist/dev/catalogue-project.d.ts.map +1 -0
  246. package/dist/dev/catalogue-project.js +1466 -0
  247. package/dist/dev/catalogue-project.js.map +1 -0
  248. package/dist/dev/catalogue.d.ts +84 -0
  249. package/dist/dev/catalogue.d.ts.map +1 -0
  250. package/dist/dev/catalogue.js +310 -0
  251. package/dist/dev/catalogue.js.map +1 -0
  252. package/dist/dev/dev-server.d.ts +57 -0
  253. package/dist/dev/dev-server.d.ts.map +1 -0
  254. package/dist/dev/dev-server.js +122 -0
  255. package/dist/dev/dev-server.js.map +1 -0
  256. package/dist/dev/index.d.ts +3 -0
  257. package/dist/dev/index.d.ts.map +1 -0
  258. package/dist/dev/index.js +3 -0
  259. package/dist/dev/index.js.map +1 -0
  260. package/dist/dev/inspector-overlay/browser-control-registry.d.ts +10 -0
  261. package/dist/dev/inspector-overlay/browser-control-registry.d.ts.map +1 -0
  262. package/dist/dev/inspector-overlay/browser-control-registry.js +188 -0
  263. package/dist/dev/inspector-overlay/browser-control-registry.js.map +1 -0
  264. package/dist/dev/inspector-overlay/embedded/assets/backend-DHeT1LCS.css +1 -0
  265. package/dist/dev/inspector-overlay/embedded/assets/backend-Dt5FYVfX.js +1 -0
  266. package/dist/dev/inspector-overlay/embedded/assets/create-legacy-browser-delegate-Bf58kV5i.js +1 -0
  267. package/dist/dev/inspector-overlay/embedded/assets/esm-BQhYkCKN.js +1 -0
  268. package/dist/dev/inspector-overlay/embedded/assets/esm-CI6IodCN.js +1 -0
  269. package/dist/dev/inspector-overlay/embedded/assets/esm-D5aLlEYl.js +1 -0
  270. package/dist/dev/inspector-overlay/embedded/assets/esm-D_R-EGgt.js +1 -0
  271. package/dist/dev/inspector-overlay/embedded/assets/esm-WihpI9g6.js +1 -0
  272. package/dist/dev/inspector-overlay/embedded/assets/esm-xNe3wI_B.js +1 -0
  273. package/dist/dev/inspector-overlay/embedded/assets/index-CjhxdwQ7.js +1 -0
  274. package/dist/dev/inspector-overlay/embedded/assets/jazz-broker-worker-CaVlHITU.js +3 -0
  275. package/dist/dev/inspector-overlay/embedded/assets/jazz-broker-worker-D-HQuhdu.js +23600 -0
  276. package/dist/dev/inspector-overlay/embedded/assets/jazz_wasm-t1Mm3faf.js +1 -0
  277. package/dist/dev/inspector-overlay/embedded/assets/jazz_wasm_bg-BazWJnU4.wasm +0 -0
  278. package/dist/dev/inspector-overlay/embedded/assets/node-foreground-node-lease.browser-CH8w-D6S.js +1 -0
  279. package/dist/dev/inspector-overlay/embedded/assets/src-Cq8gSOLx.css +1 -0
  280. package/dist/dev/inspector-overlay/embedded/assets/src-Dg6641Mj.js +22 -0
  281. package/dist/dev/inspector-overlay/embedded/assets/trace-api-BctnwbUf.js +1 -0
  282. package/dist/dev/inspector-overlay/embedded/backend.html +16 -0
  283. package/dist/dev/inspector-overlay/embedded/embedded.html +14 -0
  284. package/dist/dev/inspector-overlay/embedded/favicon.ico +0 -0
  285. package/dist/dev/inspector-overlay/host-bridge.d.ts +8 -0
  286. package/dist/dev/inspector-overlay/host-bridge.d.ts.map +1 -0
  287. package/dist/dev/inspector-overlay/host-bridge.js +139 -0
  288. package/dist/dev/inspector-overlay/host-bridge.js.map +1 -0
  289. package/dist/dev/inspector-overlay/inspector-host-types.d.ts +35 -0
  290. package/dist/dev/inspector-overlay/inspector-host-types.d.ts.map +1 -0
  291. package/dist/dev/inspector-overlay/inspector-host-types.js +10 -0
  292. package/dist/dev/inspector-overlay/inspector-host-types.js.map +1 -0
  293. package/dist/dev/inspector-overlay/loader.d.ts +24 -0
  294. package/dist/dev/inspector-overlay/loader.d.ts.map +1 -0
  295. package/dist/dev/inspector-overlay/loader.js +533 -0
  296. package/dist/dev/inspector-overlay/loader.js.map +1 -0
  297. package/dist/dev/legacy-schema-hash.d.ts +4 -0
  298. package/dist/dev/legacy-schema-hash.d.ts.map +1 -0
  299. package/dist/dev/legacy-schema-hash.js +12 -0
  300. package/dist/dev/legacy-schema-hash.js.map +1 -0
  301. package/dist/dev/migration-graph.d.ts +32 -0
  302. package/dist/dev/migration-graph.d.ts.map +1 -0
  303. package/dist/dev/migration-graph.js +136 -0
  304. package/dist/dev/migration-graph.js.map +1 -0
  305. package/dist/dev/migrations.d.ts +14 -0
  306. package/dist/dev/migrations.d.ts.map +1 -0
  307. package/dist/dev/migrations.js +441 -0
  308. package/dist/dev/migrations.js.map +1 -0
  309. package/dist/dev/schema-utils.d.ts +18 -0
  310. package/dist/dev/schema-utils.d.ts.map +1 -0
  311. package/dist/dev/schema-utils.js +365 -0
  312. package/dist/dev/schema-utils.js.map +1 -0
  313. package/dist/dev/schema-validation.d.ts +5 -0
  314. package/dist/dev/schema-validation.d.ts.map +1 -0
  315. package/dist/dev/schema-validation.js +11 -0
  316. package/dist/dev/schema-validation.js.map +1 -0
  317. package/dist/drivers/index.d.ts +1 -1
  318. package/dist/drivers/index.d.ts.map +1 -1
  319. package/dist/drivers/index.js.map +1 -1
  320. package/dist/drivers/schema-wire.d.ts +22 -0
  321. package/dist/drivers/schema-wire.d.ts.map +1 -0
  322. package/dist/drivers/schema-wire.js +70 -0
  323. package/dist/drivers/schema-wire.js.map +1 -0
  324. package/dist/drivers/types.d.ts +322 -45
  325. package/dist/drivers/types.d.ts.map +1 -1
  326. package/dist/drivers/types.js +5 -4
  327. package/dist/drivers/types.js.map +1 -1
  328. package/dist/dsl.d.ts +291 -101
  329. package/dist/dsl.d.ts.map +1 -1
  330. package/dist/dsl.js +244 -113
  331. package/dist/dsl.js.map +1 -1
  332. package/dist/e2ee/SODIUM-LICENSE.txt +36 -0
  333. package/dist/e2ee/SODIUM-SOURCES.json +4 -0
  334. package/dist/e2ee/browser.d.ts +18 -0
  335. package/dist/e2ee/browser.d.ts.map +1 -0
  336. package/dist/e2ee/browser.js +111 -0
  337. package/dist/e2ee/browser.js.map +1 -0
  338. package/dist/e2ee/context.d.ts +23 -0
  339. package/dist/e2ee/context.d.ts.map +1 -0
  340. package/dist/e2ee/context.js +49 -0
  341. package/dist/e2ee/context.js.map +1 -0
  342. package/dist/e2ee/crypto.d.ts +10 -0
  343. package/dist/e2ee/crypto.d.ts.map +1 -0
  344. package/dist/e2ee/crypto.js +22 -0
  345. package/dist/e2ee/crypto.js.map +1 -0
  346. package/dist/e2ee/envelope.d.ts +22 -0
  347. package/dist/e2ee/envelope.d.ts.map +1 -0
  348. package/dist/e2ee/envelope.js +52 -0
  349. package/dist/e2ee/envelope.js.map +1 -0
  350. package/dist/e2ee/index.d.ts +14 -0
  351. package/dist/e2ee/index.d.ts.map +1 -0
  352. package/dist/e2ee/index.js +3 -0
  353. package/dist/e2ee/index.js.map +1 -0
  354. package/dist/e2ee/large-value.d.ts +20 -0
  355. package/dist/e2ee/large-value.d.ts.map +1 -0
  356. package/dist/e2ee/large-value.js +204 -0
  357. package/dist/e2ee/large-value.js.map +1 -0
  358. package/dist/e2ee/native.d.ts +18 -0
  359. package/dist/e2ee/native.d.ts.map +1 -0
  360. package/dist/e2ee/native.js +91 -0
  361. package/dist/e2ee/native.js.map +1 -0
  362. package/dist/e2ee/record-frame.d.ts +3 -0
  363. package/dist/e2ee/record-frame.d.ts.map +1 -0
  364. package/dist/e2ee/record-frame.js +18 -0
  365. package/dist/e2ee/record-frame.js.map +1 -0
  366. package/dist/e2ee/signer.d.ts +10 -0
  367. package/dist/e2ee/signer.d.ts.map +1 -0
  368. package/dist/e2ee/signer.js +54 -0
  369. package/dist/e2ee/signer.js.map +1 -0
  370. package/dist/e2ee/sodium-browser.d.ts +2 -0
  371. package/dist/e2ee/sodium-browser.d.ts.map +1 -0
  372. package/dist/e2ee/sodium-browser.js +3432 -0
  373. package/dist/e2ee/sodium.d.ts +20 -0
  374. package/dist/e2ee/sodium.d.ts.map +1 -0
  375. package/dist/e2ee/sodium.js +165 -0
  376. package/dist/e2ee/sodium.js.map +1 -0
  377. package/dist/e2ee/types.d.ts +92 -0
  378. package/dist/e2ee/types.d.ts.map +1 -0
  379. package/dist/e2ee/types.js +2 -0
  380. package/dist/e2ee/types.js.map +1 -0
  381. package/dist/effect/backend/index.d.ts +8 -0
  382. package/dist/effect/backend/index.d.ts.map +1 -0
  383. package/dist/effect/backend/index.js +8 -0
  384. package/dist/effect/backend/index.js.map +1 -0
  385. package/dist/effect/errors.d.ts +53 -0
  386. package/dist/effect/errors.d.ts.map +1 -0
  387. package/dist/effect/errors.js +61 -0
  388. package/dist/effect/errors.js.map +1 -0
  389. package/dist/effect/index.d.ts +9 -0
  390. package/dist/effect/index.d.ts.map +1 -0
  391. package/dist/effect/index.js +9 -0
  392. package/dist/effect/index.js.map +1 -0
  393. package/dist/effect/jazz-backend.d.ts +69 -0
  394. package/dist/effect/jazz-backend.d.ts.map +1 -0
  395. package/dist/effect/jazz-backend.js +92 -0
  396. package/dist/effect/jazz-backend.js.map +1 -0
  397. package/dist/effect/jazz.d.ts +129 -0
  398. package/dist/effect/jazz.d.ts.map +1 -0
  399. package/dist/effect/jazz.js +182 -0
  400. package/dist/effect/jazz.js.map +1 -0
  401. package/dist/expo/create-account-manager.d.ts +28 -0
  402. package/dist/expo/create-account-manager.d.ts.map +1 -0
  403. package/dist/expo/create-account-manager.js +35 -0
  404. package/dist/expo/create-account-manager.js.map +1 -0
  405. package/dist/expo/create-jazz-session.d.ts +55 -0
  406. package/dist/expo/create-jazz-session.d.ts.map +1 -0
  407. package/dist/expo/create-jazz-session.js +78 -0
  408. package/dist/expo/create-jazz-session.js.map +1 -0
  409. package/dist/expo/index.d.ts +13 -0
  410. package/dist/expo/index.d.ts.map +1 -0
  411. package/dist/expo/index.js +12 -0
  412. package/dist/expo/index.js.map +1 -0
  413. package/dist/expo/polyfills.d.ts +2 -0
  414. package/dist/expo/polyfills.d.ts.map +1 -0
  415. package/dist/expo/polyfills.js +5 -0
  416. package/dist/expo/polyfills.js.map +1 -0
  417. package/dist/expo/provider.d.ts +10 -0
  418. package/dist/expo/provider.d.ts.map +1 -0
  419. package/dist/expo/provider.js +11 -0
  420. package/dist/expo/provider.js.map +1 -0
  421. package/dist/index.d.ts +24 -7
  422. package/dist/index.d.ts.map +1 -1
  423. package/dist/index.js +20 -8
  424. package/dist/index.js.map +1 -1
  425. package/dist/inspect/cli.d.ts +12 -0
  426. package/dist/inspect/cli.d.ts.map +1 -0
  427. package/dist/inspect/cli.js +292 -0
  428. package/dist/inspect/cli.js.map +1 -0
  429. package/dist/inspect/client.d.ts +60 -0
  430. package/dist/inspect/client.d.ts.map +1 -0
  431. package/dist/inspect/client.js +241 -0
  432. package/dist/inspect/client.js.map +1 -0
  433. package/dist/inspect/mcp.d.ts +17 -0
  434. package/dist/inspect/mcp.d.ts.map +1 -0
  435. package/dist/inspect/mcp.js +308 -0
  436. package/dist/inspect/mcp.js.map +1 -0
  437. package/dist/inspect/protocol.d.ts +218 -0
  438. package/dist/inspect/protocol.d.ts.map +1 -0
  439. package/dist/inspect/protocol.js +357 -0
  440. package/dist/inspect/protocol.js.map +1 -0
  441. package/dist/inspector/index.d.ts +10 -0
  442. package/dist/inspector/index.d.ts.map +1 -0
  443. package/dist/inspector/index.js +27 -0
  444. package/dist/inspector/index.js.map +1 -0
  445. package/dist/internal/inspector-query.d.ts +6 -0
  446. package/dist/internal/inspector-query.d.ts.map +1 -0
  447. package/dist/internal/inspector-query.js +20 -0
  448. package/dist/internal/inspector-query.js.map +1 -0
  449. package/dist/ir.d.ts +139 -115
  450. package/dist/ir.d.ts.map +1 -1
  451. package/dist/ir.js +496 -1
  452. package/dist/ir.js.map +1 -1
  453. package/dist/local-first/index.d.ts +16 -0
  454. package/dist/local-first/index.d.ts.map +1 -0
  455. package/dist/local-first/index.js +15 -0
  456. package/dist/local-first/index.js.map +1 -0
  457. package/dist/local-first-auth/browser.d.ts +18 -0
  458. package/dist/local-first-auth/browser.d.ts.map +1 -0
  459. package/dist/local-first-auth/browser.js +26 -0
  460. package/dist/local-first-auth/browser.js.map +1 -0
  461. package/dist/local-first-auth/encoding.d.ts +10 -0
  462. package/dist/local-first-auth/encoding.d.ts.map +1 -0
  463. package/dist/local-first-auth/encoding.js +38 -0
  464. package/dist/local-first-auth/encoding.js.map +1 -0
  465. package/dist/local-first-auth/identity.d.ts +73 -0
  466. package/dist/local-first-auth/identity.d.ts.map +1 -0
  467. package/dist/local-first-auth/identity.js +258 -0
  468. package/dist/local-first-auth/identity.js.map +1 -0
  469. package/dist/local-first-auth/index.d.ts +6 -0
  470. package/dist/local-first-auth/index.d.ts.map +1 -0
  471. package/dist/local-first-auth/index.js +4 -0
  472. package/dist/local-first-auth/index.js.map +1 -0
  473. package/dist/local-first-auth/passkey.d.ts +22 -0
  474. package/dist/local-first-auth/passkey.d.ts.map +1 -0
  475. package/dist/local-first-auth/passkey.js +116 -0
  476. package/dist/local-first-auth/passkey.js.map +1 -0
  477. package/dist/local-first-auth/recovery-phrase.d.ts +10 -0
  478. package/dist/local-first-auth/recovery-phrase.d.ts.map +1 -0
  479. package/dist/local-first-auth/recovery-phrase.js +59 -0
  480. package/dist/local-first-auth/recovery-phrase.js.map +1 -0
  481. package/dist/local-first-auth/secret.d.ts +25 -0
  482. package/dist/local-first-auth/secret.d.ts.map +1 -0
  483. package/dist/local-first-auth/secret.js +68 -0
  484. package/dist/local-first-auth/secret.js.map +1 -0
  485. package/dist/local-first-auth/server.d.ts +13 -0
  486. package/dist/local-first-auth/server.d.ts.map +1 -0
  487. package/dist/local-first-auth/server.js +32 -0
  488. package/dist/local-first-auth/server.js.map +1 -0
  489. package/dist/local-first-auth/store.d.ts +51 -0
  490. package/dist/local-first-auth/store.d.ts.map +1 -0
  491. package/dist/local-first-auth/store.js +112 -0
  492. package/dist/local-first-auth/store.js.map +1 -0
  493. package/dist/magic-columns.d.ts +34 -0
  494. package/dist/magic-columns.d.ts.map +1 -0
  495. package/dist/magic-columns.js +86 -0
  496. package/dist/magic-columns.js.map +1 -0
  497. package/dist/migration-namespace.d.ts +8 -0
  498. package/dist/migration-namespace.d.ts.map +1 -0
  499. package/dist/migration-namespace.js +9 -0
  500. package/dist/migration-namespace.js.map +1 -0
  501. package/dist/migrations.d.ts +229 -0
  502. package/dist/migrations.d.ts.map +1 -0
  503. package/dist/migrations.js +383 -0
  504. package/dist/migrations.js.map +1 -0
  505. package/dist/observed-jazz-client.d.ts +15 -0
  506. package/dist/observed-jazz-client.d.ts.map +1 -0
  507. package/dist/observed-jazz-client.js +38 -0
  508. package/dist/observed-jazz-client.js.map +1 -0
  509. package/dist/passkey-backup.d.ts +3 -0
  510. package/dist/passkey-backup.d.ts.map +1 -0
  511. package/dist/passkey-backup.js +2 -0
  512. package/dist/passkey-backup.js.map +1 -0
  513. package/dist/passphrase.d.ts +2 -0
  514. package/dist/passphrase.d.ts.map +1 -0
  515. package/dist/passphrase.js +2 -0
  516. package/dist/passphrase.js.map +1 -0
  517. package/dist/permissions/index.d.ts +149 -41
  518. package/dist/permissions/index.d.ts.map +1 -1
  519. package/dist/permissions/index.js +1209 -423
  520. package/dist/permissions/index.js.map +1 -1
  521. package/dist/policy-expr-map.d.ts +15 -0
  522. package/dist/policy-expr-map.d.ts.map +1 -0
  523. package/dist/policy-expr-map.js +45 -0
  524. package/dist/policy-expr-map.js.map +1 -0
  525. package/dist/prosemirror/anchors.d.ts +30 -0
  526. package/dist/prosemirror/anchors.d.ts.map +1 -0
  527. package/dist/prosemirror/anchors.js +28 -0
  528. package/dist/prosemirror/anchors.js.map +1 -0
  529. package/dist/prosemirror/index.d.ts +7 -0
  530. package/dist/prosemirror/index.d.ts.map +1 -0
  531. package/dist/prosemirror/index.js +7 -0
  532. package/dist/prosemirror/index.js.map +1 -0
  533. package/dist/prosemirror/markdown.d.ts +95 -0
  534. package/dist/prosemirror/markdown.d.ts.map +1 -0
  535. package/dist/prosemirror/markdown.js +428 -0
  536. package/dist/prosemirror/markdown.js.map +1 -0
  537. package/dist/prosemirror/overlays.d.ts +69 -0
  538. package/dist/prosemirror/overlays.d.ts.map +1 -0
  539. package/dist/prosemirror/overlays.js +143 -0
  540. package/dist/prosemirror/overlays.js.map +1 -0
  541. package/dist/prosemirror/presence.d.ts +39 -0
  542. package/dist/prosemirror/presence.d.ts.map +1 -0
  543. package/dist/prosemirror/presence.js +88 -0
  544. package/dist/prosemirror/presence.js.map +1 -0
  545. package/dist/prosemirror/sync.d.ts +60 -0
  546. package/dist/prosemirror/sync.d.ts.map +1 -0
  547. package/dist/prosemirror/sync.js +174 -0
  548. package/dist/prosemirror/sync.js.map +1 -0
  549. package/dist/prosemirror/text-map.d.ts +21 -0
  550. package/dist/prosemirror/text-map.d.ts.map +1 -0
  551. package/dist/prosemirror/text-map.js +85 -0
  552. package/dist/prosemirror/text-map.js.map +1 -0
  553. package/dist/provenance-guidance.d.ts +3 -0
  554. package/dist/provenance-guidance.d.ts.map +1 -0
  555. package/dist/provenance-guidance.js +19 -0
  556. package/dist/provenance-guidance.js.map +1 -0
  557. package/dist/react/create-jazz-client.d.ts +2 -10
  558. package/dist/react/create-jazz-client.d.ts.map +1 -1
  559. package/dist/react/create-jazz-client.js +1 -25
  560. package/dist/react/create-jazz-client.js.map +1 -1
  561. package/dist/react/index.d.ts +15 -6
  562. package/dist/react/index.d.ts.map +1 -1
  563. package/dist/react/index.js +10 -5
  564. package/dist/react/index.js.map +1 -1
  565. package/dist/react/provider-props.d.ts +7 -0
  566. package/dist/react/provider-props.d.ts.map +1 -0
  567. package/dist/react/provider-props.js +15 -0
  568. package/dist/react/provider-props.js.map +1 -0
  569. package/dist/react/provider.d.ts +19 -13
  570. package/dist/react/provider.d.ts.map +1 -1
  571. package/dist/react/provider.js +25 -4
  572. package/dist/react/provider.js.map +1 -1
  573. package/dist/react/use-all.d.ts +1 -1
  574. package/dist/react/use-all.d.ts.map +1 -1
  575. package/dist/react/use-all.js +1 -1
  576. package/dist/react/use-all.js.map +1 -1
  577. package/dist/react/use-one.d.ts +2 -0
  578. package/dist/react/use-one.d.ts.map +1 -0
  579. package/dist/react/use-one.js +2 -0
  580. package/dist/react/use-one.js.map +1 -0
  581. package/dist/react-core/index.d.ts +10 -4
  582. package/dist/react-core/index.d.ts.map +1 -1
  583. package/dist/react-core/index.js +12 -2
  584. package/dist/react-core/index.js.map +1 -1
  585. package/dist/react-core/provider.d.ts +44 -12
  586. package/dist/react-core/provider.d.ts.map +1 -1
  587. package/dist/react-core/provider.js +110 -11
  588. package/dist/react-core/provider.js.map +1 -1
  589. package/dist/react-core/session.d.ts +53 -0
  590. package/dist/react-core/session.d.ts.map +1 -0
  591. package/dist/react-core/session.js +82 -0
  592. package/dist/react-core/session.js.map +1 -0
  593. package/dist/react-core/use-all.d.ts +95 -3
  594. package/dist/react-core/use-all.d.ts.map +1 -1
  595. package/dist/react-core/use-all.js +126 -52
  596. package/dist/react-core/use-all.js.map +1 -1
  597. package/dist/react-core/use-auth-state.d.ts +13 -0
  598. package/dist/react-core/use-auth-state.d.ts.map +1 -0
  599. package/dist/react-core/use-auth-state.js +15 -0
  600. package/dist/react-core/use-auth-state.js.map +1 -0
  601. package/dist/react-core/use-one.d.ts +58 -0
  602. package/dist/react-core/use-one.d.ts.map +1 -0
  603. package/dist/react-core/use-one.js +19 -0
  604. package/dist/react-core/use-one.js.map +1 -0
  605. package/dist/react-core/use-sync-status.d.ts +8 -0
  606. package/dist/react-core/use-sync-status.d.ts.map +1 -0
  607. package/dist/react-core/use-sync-status.js +12 -0
  608. package/dist/react-core/use-sync-status.js.map +1 -0
  609. package/dist/react-native/abort-signal.d.ts +9 -0
  610. package/dist/react-native/abort-signal.d.ts.map +1 -0
  611. package/dist/react-native/abort-signal.js +51 -0
  612. package/dist/react-native/abort-signal.js.map +1 -0
  613. package/dist/react-native/account-session.d.ts +11 -0
  614. package/dist/react-native/account-session.d.ts.map +1 -0
  615. package/dist/react-native/account-session.js +59 -0
  616. package/dist/react-native/account-session.js.map +1 -0
  617. package/dist/react-native/create-account-manager.d.ts +28 -0
  618. package/dist/react-native/create-account-manager.d.ts.map +1 -0
  619. package/dist/react-native/create-account-manager.js +30 -0
  620. package/dist/react-native/create-account-manager.js.map +1 -0
  621. package/dist/react-native/create-db.d.ts +8 -0
  622. package/dist/react-native/create-db.d.ts.map +1 -0
  623. package/dist/react-native/create-db.js +9 -0
  624. package/dist/react-native/create-db.js.map +1 -0
  625. package/dist/react-native/create-jazz-client.d.ts +12 -10
  626. package/dist/react-native/create-jazz-client.d.ts.map +1 -1
  627. package/dist/react-native/create-jazz-client.js +6 -21
  628. package/dist/react-native/create-jazz-client.js.map +1 -1
  629. package/dist/react-native/create-jazz-session.d.ts +55 -0
  630. package/dist/react-native/create-jazz-session.d.ts.map +1 -0
  631. package/dist/react-native/create-jazz-session.js +78 -0
  632. package/dist/react-native/create-jazz-session.js.map +1 -0
  633. package/dist/react-native/errors.d.ts +6 -0
  634. package/dist/react-native/errors.d.ts.map +1 -0
  635. package/dist/react-native/errors.js +6 -0
  636. package/dist/react-native/errors.js.map +1 -0
  637. package/dist/react-native/index.d.ts +20 -9
  638. package/dist/react-native/index.d.ts.map +1 -1
  639. package/dist/react-native/index.js +15 -7
  640. package/dist/react-native/index.js.map +1 -1
  641. package/dist/react-native/native-foreground-db.d.ts +199 -0
  642. package/dist/react-native/native-foreground-db.d.ts.map +1 -0
  643. package/dist/react-native/native-foreground-db.js +830 -0
  644. package/dist/react-native/native-foreground-db.js.map +1 -0
  645. package/dist/react-native/native-relay.d.ts +7 -0
  646. package/dist/react-native/native-relay.d.ts.map +1 -0
  647. package/dist/react-native/native-relay.js +14 -0
  648. package/dist/react-native/native-relay.js.map +1 -0
  649. package/dist/react-native/provider.d.ts +20 -12
  650. package/dist/react-native/provider.d.ts.map +1 -1
  651. package/dist/react-native/provider.js +25 -4
  652. package/dist/react-native/provider.js.map +1 -1
  653. package/dist/react-native/runtime-source.d.ts +40 -0
  654. package/dist/react-native/runtime-source.d.ts.map +1 -0
  655. package/dist/react-native/runtime-source.js +250 -0
  656. package/dist/react-native/runtime-source.js.map +1 -0
  657. package/dist/react-native/use-all.d.ts +1 -1
  658. package/dist/react-native/use-all.d.ts.map +1 -1
  659. package/dist/react-native/use-all.js +1 -1
  660. package/dist/react-native/use-all.js.map +1 -1
  661. package/dist/react-native/use-one.d.ts +2 -0
  662. package/dist/react-native/use-one.d.ts.map +1 -0
  663. package/dist/react-native/use-one.js +2 -0
  664. package/dist/react-native/use-one.js.map +1 -0
  665. package/dist/reconcile-array.d.ts +45 -0
  666. package/dist/reconcile-array.d.ts.map +1 -0
  667. package/dist/reconcile-array.js +252 -0
  668. package/dist/reconcile-array.js.map +1 -0
  669. package/dist/relationships.d.ts +18 -0
  670. package/dist/relationships.d.ts.map +1 -0
  671. package/dist/relationships.js +28 -0
  672. package/dist/relationships.js.map +1 -0
  673. package/dist/removed-api.d.ts +87 -0
  674. package/dist/removed-api.d.ts.map +1 -0
  675. package/dist/removed-api.js +95 -0
  676. package/dist/removed-api.js.map +1 -0
  677. package/dist/runtime/anonymous-write-denied-error.d.ts +13 -0
  678. package/dist/runtime/anonymous-write-denied-error.d.ts.map +1 -0
  679. package/dist/runtime/anonymous-write-denied-error.js +58 -0
  680. package/dist/runtime/anonymous-write-denied-error.js.map +1 -0
  681. package/dist/runtime/auth-renewal-backoff.d.ts +14 -0
  682. package/dist/runtime/auth-renewal-backoff.d.ts.map +1 -0
  683. package/dist/runtime/auth-renewal-backoff.js +23 -0
  684. package/dist/runtime/auth-renewal-backoff.js.map +1 -0
  685. package/dist/runtime/auth-request-deadline.d.ts +3 -0
  686. package/dist/runtime/auth-request-deadline.d.ts.map +1 -0
  687. package/dist/runtime/auth-request-deadline.js +24 -0
  688. package/dist/runtime/auth-request-deadline.js.map +1 -0
  689. package/dist/runtime/auth-secret-codec.d.ts +21 -0
  690. package/dist/runtime/auth-secret-codec.d.ts.map +1 -0
  691. package/dist/runtime/auth-secret-codec.js +32 -0
  692. package/dist/runtime/auth-secret-codec.js.map +1 -0
  693. package/dist/runtime/auth-secret-store.d.ts +7 -0
  694. package/dist/runtime/auth-secret-store.d.ts.map +1 -0
  695. package/dist/runtime/auth-secret-store.js +12 -0
  696. package/dist/runtime/auth-secret-store.js.map +1 -0
  697. package/dist/runtime/auth-state.d.ts +40 -0
  698. package/dist/runtime/auth-state.d.ts.map +1 -0
  699. package/dist/runtime/auth-state.js +145 -0
  700. package/dist/runtime/auth-state.js.map +1 -0
  701. package/dist/runtime/author-id.d.ts +42 -0
  702. package/dist/runtime/author-id.d.ts.map +1 -0
  703. package/dist/runtime/author-id.js +172 -0
  704. package/dist/runtime/author-id.js.map +1 -0
  705. package/dist/runtime/authority-changed-error.d.ts +54 -0
  706. package/dist/runtime/authority-changed-error.d.ts.map +1 -0
  707. package/dist/runtime/authority-changed-error.js +72 -0
  708. package/dist/runtime/authority-changed-error.js.map +1 -0
  709. package/dist/runtime/browser-physical-database-epoch.d.ts +37 -0
  710. package/dist/runtime/browser-physical-database-epoch.d.ts.map +1 -0
  711. package/dist/runtime/browser-physical-database-epoch.js +89 -0
  712. package/dist/runtime/browser-physical-database-epoch.js.map +1 -0
  713. package/dist/runtime/browser-storage-invalidation.d.ts +8 -0
  714. package/dist/runtime/browser-storage-invalidation.d.ts.map +1 -0
  715. package/dist/runtime/browser-storage-invalidation.js +20 -0
  716. package/dist/runtime/browser-storage-invalidation.js.map +1 -0
  717. package/dist/runtime/browser-worker-assets.d.ts +4 -0
  718. package/dist/runtime/browser-worker-assets.d.ts.map +1 -0
  719. package/dist/runtime/browser-worker-assets.js +8 -0
  720. package/dist/runtime/browser-worker-assets.js.map +1 -0
  721. package/dist/runtime/browser-worker-assets.native.d.ts +5 -0
  722. package/dist/runtime/browser-worker-assets.native.d.ts.map +1 -0
  723. package/dist/runtime/browser-worker-assets.native.js +6 -0
  724. package/dist/runtime/browser-worker-assets.native.js.map +1 -0
  725. package/dist/runtime/browser-worker-config.d.ts +55 -0
  726. package/dist/runtime/browser-worker-config.d.ts.map +1 -0
  727. package/dist/runtime/browser-worker-config.js +222 -0
  728. package/dist/runtime/browser-worker-config.js.map +1 -0
  729. package/dist/runtime/client-config-key.d.ts +6 -0
  730. package/dist/runtime/client-config-key.d.ts.map +1 -0
  731. package/dist/runtime/client-config-key.js +83 -0
  732. package/dist/runtime/client-config-key.js.map +1 -0
  733. package/dist/runtime/client-migrations.d.ts +33 -0
  734. package/dist/runtime/client-migrations.d.ts.map +1 -0
  735. package/dist/runtime/client-migrations.js +30 -0
  736. package/dist/runtime/client-migrations.js.map +1 -0
  737. package/dist/runtime/client-registry.d.ts +21 -0
  738. package/dist/runtime/client-registry.d.ts.map +1 -0
  739. package/dist/runtime/client-registry.js +169 -0
  740. package/dist/runtime/client-registry.js.map +1 -0
  741. package/dist/runtime/client-scope.d.ts +38 -0
  742. package/dist/runtime/client-scope.d.ts.map +1 -0
  743. package/dist/runtime/client-scope.js +64 -0
  744. package/dist/runtime/client-scope.js.map +1 -0
  745. package/dist/runtime/client-session.d.ts +56 -13
  746. package/dist/runtime/client-session.d.ts.map +1 -1
  747. package/dist/runtime/client-session.js +212 -196
  748. package/dist/runtime/client-session.js.map +1 -1
  749. package/dist/runtime/client.d.ts +630 -191
  750. package/dist/runtime/client.d.ts.map +1 -1
  751. package/dist/runtime/client.js +1105 -425
  752. package/dist/runtime/client.js.map +1 -1
  753. package/dist/runtime/column-transforms.d.ts +40 -0
  754. package/dist/runtime/column-transforms.d.ts.map +1 -0
  755. package/dist/runtime/column-transforms.js +279 -0
  756. package/dist/runtime/column-transforms.js.map +1 -0
  757. package/dist/runtime/connection-manager/browser-connection-manager.d.ts +122 -0
  758. package/dist/runtime/connection-manager/browser-connection-manager.d.ts.map +1 -0
  759. package/dist/runtime/connection-manager/browser-connection-manager.js +867 -0
  760. package/dist/runtime/connection-manager/browser-connection-manager.js.map +1 -0
  761. package/dist/runtime/connection-manager/direct-connection-manager.d.ts +26 -0
  762. package/dist/runtime/connection-manager/direct-connection-manager.d.ts.map +1 -0
  763. package/dist/runtime/connection-manager/direct-connection-manager.js +198 -0
  764. package/dist/runtime/connection-manager/direct-connection-manager.js.map +1 -0
  765. package/dist/runtime/connection-manager/index.d.ts +5 -0
  766. package/dist/runtime/connection-manager/index.d.ts.map +1 -0
  767. package/dist/runtime/connection-manager/index.js +4 -0
  768. package/dist/runtime/connection-manager/index.js.map +1 -0
  769. package/dist/runtime/connection-manager/types.d.ts +151 -0
  770. package/dist/runtime/connection-manager/types.d.ts.map +1 -0
  771. package/dist/runtime/connection-manager/types.js +354 -0
  772. package/dist/runtime/connection-manager/types.js.map +1 -0
  773. package/dist/runtime/context.d.ts +90 -30
  774. package/dist/runtime/context.d.ts.map +1 -1
  775. package/dist/runtime/context.js.map +1 -1
  776. package/dist/runtime/credentialed-transport.d.ts +30 -0
  777. package/dist/runtime/credentialed-transport.d.ts.map +1 -0
  778. package/dist/runtime/credentialed-transport.js +164 -0
  779. package/dist/runtime/credentialed-transport.js.map +1 -0
  780. package/dist/runtime/db-access-context.d.ts +14 -0
  781. package/dist/runtime/db-access-context.d.ts.map +1 -0
  782. package/dist/runtime/db-access-context.js +26 -0
  783. package/dist/runtime/db-access-context.js.map +1 -0
  784. package/dist/runtime/db-internal-session.d.ts +7 -0
  785. package/dist/runtime/db-internal-session.d.ts.map +1 -0
  786. package/dist/runtime/db-internal-session.js +21 -0
  787. package/dist/runtime/db-internal-session.js.map +1 -0
  788. package/dist/runtime/db-replaced-error.d.ts +21 -0
  789. package/dist/runtime/db-replaced-error.d.ts.map +1 -0
  790. package/dist/runtime/db-replaced-error.js +22 -0
  791. package/dist/runtime/db-replaced-error.js.map +1 -0
  792. package/dist/runtime/db.d.ts +763 -201
  793. package/dist/runtime/db.d.ts.map +1 -1
  794. package/dist/runtime/db.js +3341 -725
  795. package/dist/runtime/db.js.map +1 -1
  796. package/dist/runtime/default-create-db.d.ts +5 -0
  797. package/dist/runtime/default-create-db.d.ts.map +1 -0
  798. package/dist/runtime/default-create-db.js +7 -0
  799. package/dist/runtime/default-create-db.js.map +1 -0
  800. package/dist/runtime/default-runtime-source.d.ts +41 -0
  801. package/dist/runtime/default-runtime-source.d.ts.map +1 -0
  802. package/dist/runtime/default-runtime-source.js +315 -0
  803. package/dist/runtime/default-runtime-source.js.map +1 -0
  804. package/dist/runtime/deterministic-bytes.d.ts +6 -0
  805. package/dist/runtime/deterministic-bytes.d.ts.map +1 -0
  806. package/dist/runtime/deterministic-bytes.js +18 -0
  807. package/dist/runtime/deterministic-bytes.js.map +1 -0
  808. package/dist/runtime/graceful-shutdown-error.d.ts +9 -0
  809. package/dist/runtime/graceful-shutdown-error.d.ts.map +1 -0
  810. package/dist/runtime/graceful-shutdown-error.js +17 -0
  811. package/dist/runtime/graceful-shutdown-error.js.map +1 -0
  812. package/dist/runtime/hex.d.ts +17 -0
  813. package/dist/runtime/hex.d.ts.map +1 -0
  814. package/dist/runtime/hex.js +56 -0
  815. package/dist/runtime/hex.js.map +1 -0
  816. package/dist/runtime/history-relation.d.ts +8 -0
  817. package/dist/runtime/history-relation.d.ts.map +1 -0
  818. package/dist/runtime/history-relation.js +44 -0
  819. package/dist/runtime/history-relation.js.map +1 -0
  820. package/dist/runtime/in-process-transport.d.ts +18 -0
  821. package/dist/runtime/in-process-transport.d.ts.map +1 -0
  822. package/dist/runtime/in-process-transport.js +32 -0
  823. package/dist/runtime/in-process-transport.js.map +1 -0
  824. package/dist/runtime/index.d.ts +21 -11
  825. package/dist/runtime/index.d.ts.map +1 -1
  826. package/dist/runtime/index.js +13 -10
  827. package/dist/runtime/index.js.map +1 -1
  828. package/dist/runtime/indexeddb-page-store.d.ts +214 -0
  829. package/dist/runtime/indexeddb-page-store.d.ts.map +1 -0
  830. package/dist/runtime/indexeddb-page-store.js +848 -0
  831. package/dist/runtime/indexeddb-page-store.js.map +1 -0
  832. package/dist/runtime/introspection-fetch.d.ts +18 -0
  833. package/dist/runtime/introspection-fetch.d.ts.map +1 -0
  834. package/dist/runtime/introspection-fetch.js +12 -0
  835. package/dist/runtime/introspection-fetch.js.map +1 -0
  836. package/dist/runtime/json-schema-evaluate.d.ts +55 -0
  837. package/dist/runtime/json-schema-evaluate.d.ts.map +1 -0
  838. package/dist/runtime/json-schema-evaluate.js +946 -0
  839. package/dist/runtime/json-schema-evaluate.js.map +1 -0
  840. package/dist/runtime/json-schema-formats.d.ts +14 -0
  841. package/dist/runtime/json-schema-formats.d.ts.map +1 -0
  842. package/dist/runtime/json-schema-formats.js +555 -0
  843. package/dist/runtime/json-schema-formats.js.map +1 -0
  844. package/dist/runtime/json-schema-json.d.ts +41 -0
  845. package/dist/runtime/json-schema-json.d.ts.map +1 -0
  846. package/dist/runtime/json-schema-json.js +309 -0
  847. package/dist/runtime/json-schema-json.js.map +1 -0
  848. package/dist/runtime/json-schema-metaschemas.d.ts +1403 -0
  849. package/dist/runtime/json-schema-metaschemas.d.ts.map +1 -0
  850. package/dist/runtime/json-schema-metaschemas.js +64 -0
  851. package/dist/runtime/json-schema-metaschemas.js.map +1 -0
  852. package/dist/runtime/json-schema-regex.d.ts +32 -0
  853. package/dist/runtime/json-schema-regex.d.ts.map +1 -0
  854. package/dist/runtime/json-schema-regex.js +895 -0
  855. package/dist/runtime/json-schema-regex.js.map +1 -0
  856. package/dist/runtime/json-schema-validator.d.ts +47 -0
  857. package/dist/runtime/json-schema-validator.d.ts.map +1 -0
  858. package/dist/runtime/json-schema-validator.js +404 -0
  859. package/dist/runtime/json-schema-validator.js.map +1 -0
  860. package/dist/runtime/json-text.d.ts +2 -0
  861. package/dist/runtime/json-text.d.ts.map +1 -0
  862. package/dist/runtime/json-text.js +17 -0
  863. package/dist/runtime/json-text.js.map +1 -0
  864. package/dist/runtime/local-first-token.d.ts +11 -0
  865. package/dist/runtime/local-first-token.d.ts.map +1 -0
  866. package/dist/runtime/local-first-token.js +20 -0
  867. package/dist/runtime/local-first-token.js.map +1 -0
  868. package/dist/runtime/local-first-upgrade.d.ts +27 -0
  869. package/dist/runtime/local-first-upgrade.d.ts.map +1 -0
  870. package/dist/runtime/local-first-upgrade.js +31 -0
  871. package/dist/runtime/local-first-upgrade.js.map +1 -0
  872. package/dist/runtime/local-write-observer.d.ts +5 -0
  873. package/dist/runtime/local-write-observer.d.ts.map +1 -0
  874. package/dist/runtime/local-write-observer.js +31 -0
  875. package/dist/runtime/local-write-observer.js.map +1 -0
  876. package/dist/runtime/native-artifact-compatibility.d.ts +12 -0
  877. package/dist/runtime/native-artifact-compatibility.d.ts.map +1 -0
  878. package/dist/runtime/native-artifact-compatibility.js +24 -0
  879. package/dist/runtime/native-artifact-compatibility.js.map +1 -0
  880. package/dist/runtime/native-artifact-fingerprint-napi.d.ts +2 -0
  881. package/dist/runtime/native-artifact-fingerprint-napi.d.ts.map +1 -0
  882. package/dist/runtime/native-artifact-fingerprint-napi.js +3 -0
  883. package/dist/runtime/native-artifact-fingerprint-napi.js.map +1 -0
  884. package/dist/runtime/native-artifact-fingerprint-wasm.d.ts +2 -0
  885. package/dist/runtime/native-artifact-fingerprint-wasm.d.ts.map +1 -0
  886. package/dist/runtime/native-artifact-fingerprint-wasm.js +3 -0
  887. package/dist/runtime/native-artifact-fingerprint-wasm.js.map +1 -0
  888. package/dist/runtime/native-artifact-fingerprints.d.ts +5 -0
  889. package/dist/runtime/native-artifact-fingerprints.d.ts.map +1 -0
  890. package/dist/runtime/native-artifact-fingerprints.js +7 -0
  891. package/dist/runtime/native-artifact-fingerprints.js.map +1 -0
  892. package/dist/runtime/native-runtime/attached-browser-worker-connection.d.ts +22 -0
  893. package/dist/runtime/native-runtime/attached-browser-worker-connection.d.ts.map +1 -0
  894. package/dist/runtime/native-runtime/attached-browser-worker-connection.js +42 -0
  895. package/dist/runtime/native-runtime/attached-browser-worker-connection.js.map +1 -0
  896. package/dist/runtime/native-runtime/auxiliary-receive-deadline.d.ts +15 -0
  897. package/dist/runtime/native-runtime/auxiliary-receive-deadline.d.ts.map +1 -0
  898. package/dist/runtime/native-runtime/auxiliary-receive-deadline.js +64 -0
  899. package/dist/runtime/native-runtime/auxiliary-receive-deadline.js.map +1 -0
  900. package/dist/runtime/native-runtime/broker-worker-load-failure.d.ts +31 -0
  901. package/dist/runtime/native-runtime/broker-worker-load-failure.d.ts.map +1 -0
  902. package/dist/runtime/native-runtime/broker-worker-load-failure.js +66 -0
  903. package/dist/runtime/native-runtime/broker-worker-load-failure.js.map +1 -0
  904. package/dist/runtime/native-runtime/browser-follower-connection.d.ts +82 -0
  905. package/dist/runtime/native-runtime/browser-follower-connection.d.ts.map +1 -0
  906. package/dist/runtime/native-runtime/browser-follower-connection.js +495 -0
  907. package/dist/runtime/native-runtime/browser-follower-connection.js.map +1 -0
  908. package/dist/runtime/native-runtime/browser-shared-worker-connection.d.ts +98 -0
  909. package/dist/runtime/native-runtime/browser-shared-worker-connection.d.ts.map +1 -0
  910. package/dist/runtime/native-runtime/browser-shared-worker-connection.js +831 -0
  911. package/dist/runtime/native-runtime/browser-shared-worker-connection.js.map +1 -0
  912. package/dist/runtime/native-runtime/browser-worker-protocol.d.ts +460 -0
  913. package/dist/runtime/native-runtime/browser-worker-protocol.d.ts.map +1 -0
  914. package/dist/runtime/native-runtime/browser-worker-protocol.js +281 -0
  915. package/dist/runtime/native-runtime/browser-worker-protocol.js.map +1 -0
  916. package/dist/runtime/native-runtime/browser-worker-transport.d.ts +53 -0
  917. package/dist/runtime/native-runtime/browser-worker-transport.d.ts.map +1 -0
  918. package/dist/runtime/native-runtime/browser-worker-transport.js +252 -0
  919. package/dist/runtime/native-runtime/browser-worker-transport.js.map +1 -0
  920. package/dist/runtime/native-runtime/exact-integer.d.ts +7 -0
  921. package/dist/runtime/native-runtime/exact-integer.d.ts.map +1 -0
  922. package/dist/runtime/native-runtime/exact-integer.js +18 -0
  923. package/dist/runtime/native-runtime/exact-integer.js.map +1 -0
  924. package/dist/runtime/native-runtime/http-stream-socket.d.ts +103 -0
  925. package/dist/runtime/native-runtime/http-stream-socket.d.ts.map +1 -0
  926. package/dist/runtime/native-runtime/http-stream-socket.js +460 -0
  927. package/dist/runtime/native-runtime/http-stream-socket.js.map +1 -0
  928. package/dist/runtime/native-runtime/inspector-control-lifecycle.d.ts +4 -0
  929. package/dist/runtime/native-runtime/inspector-control-lifecycle.d.ts.map +1 -0
  930. package/dist/runtime/native-runtime/inspector-control-lifecycle.js +33 -0
  931. package/dist/runtime/native-runtime/inspector-control-lifecycle.js.map +1 -0
  932. package/dist/runtime/native-runtime/native-codec.d.ts +177 -0
  933. package/dist/runtime/native-runtime/native-codec.d.ts.map +1 -0
  934. package/dist/runtime/native-runtime/native-codec.js +627 -0
  935. package/dist/runtime/native-runtime/native-codec.js.map +1 -0
  936. package/dist/runtime/native-runtime/native-error-code.d.ts +39 -0
  937. package/dist/runtime/native-runtime/native-error-code.d.ts.map +1 -0
  938. package/dist/runtime/native-runtime/native-error-code.js +62 -0
  939. package/dist/runtime/native-runtime/native-error-code.js.map +1 -0
  940. package/dist/runtime/native-runtime/native-row-codec.d.ts +161 -0
  941. package/dist/runtime/native-runtime/native-row-codec.d.ts.map +1 -0
  942. package/dist/runtime/native-runtime/native-row-codec.js +942 -0
  943. package/dist/runtime/native-runtime/native-row-codec.js.map +1 -0
  944. package/dist/runtime/native-runtime/native-row-descriptor-key.d.ts +15 -0
  945. package/dist/runtime/native-runtime/native-row-descriptor-key.d.ts.map +1 -0
  946. package/dist/runtime/native-runtime/native-row-descriptor-key.js +25 -0
  947. package/dist/runtime/native-runtime/native-row-descriptor-key.js.map +1 -0
  948. package/dist/runtime/native-runtime/native-runtime-adapter.d.ts +736 -0
  949. package/dist/runtime/native-runtime/native-runtime-adapter.d.ts.map +1 -0
  950. package/dist/runtime/native-runtime/native-runtime-adapter.js +5733 -0
  951. package/dist/runtime/native-runtime/native-runtime-adapter.js.map +1 -0
  952. package/dist/runtime/native-runtime/node-foreground-node-lease.browser.d.ts +17 -0
  953. package/dist/runtime/native-runtime/node-foreground-node-lease.browser.d.ts.map +1 -0
  954. package/dist/runtime/native-runtime/node-foreground-node-lease.browser.js +4 -0
  955. package/dist/runtime/native-runtime/node-foreground-node-lease.browser.js.map +1 -0
  956. package/dist/runtime/native-runtime/node-foreground-node-lease.d.ts +19 -0
  957. package/dist/runtime/native-runtime/node-foreground-node-lease.d.ts.map +1 -0
  958. package/dist/runtime/native-runtime/node-foreground-node-lease.js +297 -0
  959. package/dist/runtime/native-runtime/node-foreground-node-lease.js.map +1 -0
  960. package/dist/runtime/native-runtime/row-values-transport.d.ts +2 -0
  961. package/dist/runtime/native-runtime/row-values-transport.d.ts.map +1 -0
  962. package/dist/runtime/native-runtime/row-values-transport.js +21 -0
  963. package/dist/runtime/native-runtime/row-values-transport.js.map +1 -0
  964. package/dist/runtime/native-runtime/schema-codec.d.ts +10 -0
  965. package/dist/runtime/native-runtime/schema-codec.d.ts.map +1 -0
  966. package/dist/runtime/native-runtime/schema-codec.js +13 -0
  967. package/dist/runtime/native-runtime/schema-codec.js.map +1 -0
  968. package/dist/runtime/native-runtime/websocket.d.ts +178 -0
  969. package/dist/runtime/native-runtime/websocket.d.ts.map +1 -0
  970. package/dist/runtime/native-runtime/websocket.js +732 -0
  971. package/dist/runtime/native-runtime/websocket.js.map +1 -0
  972. package/dist/runtime/page-handle.d.ts +87 -0
  973. package/dist/runtime/page-handle.d.ts.map +1 -0
  974. package/dist/runtime/page-handle.js +144 -0
  975. package/dist/runtime/page-handle.js.map +1 -0
  976. package/dist/runtime/passkey-backup.d.ts +3 -0
  977. package/dist/runtime/passkey-backup.d.ts.map +1 -0
  978. package/dist/runtime/passkey-backup.js +2 -0
  979. package/dist/runtime/passkey-backup.js.map +1 -0
  980. package/dist/runtime/platform-url.d.ts +10 -0
  981. package/dist/runtime/platform-url.d.ts.map +1 -0
  982. package/dist/runtime/platform-url.js +3 -0
  983. package/dist/runtime/platform-url.js.map +1 -0
  984. package/dist/runtime/platform-url.native.d.ts +6 -0
  985. package/dist/runtime/platform-url.native.d.ts.map +1 -0
  986. package/dist/runtime/platform-url.native.js +37 -0
  987. package/dist/runtime/platform-url.native.js.map +1 -0
  988. package/dist/runtime/query-adapter.d.ts +7 -15
  989. package/dist/runtime/query-adapter.d.ts.map +1 -1
  990. package/dist/runtime/query-adapter.js +554 -167
  991. package/dist/runtime/query-adapter.js.map +1 -1
  992. package/dist/runtime/query-builder-shape.d.ts +75 -0
  993. package/dist/runtime/query-builder-shape.d.ts.map +1 -0
  994. package/dist/runtime/query-builder-shape.js +225 -0
  995. package/dist/runtime/query-builder-shape.js.map +1 -0
  996. package/dist/runtime/query-column-name.d.ts +3 -0
  997. package/dist/runtime/query-column-name.d.ts.map +1 -0
  998. package/dist/runtime/query-column-name.js +10 -0
  999. package/dist/runtime/query-column-name.js.map +1 -0
  1000. package/dist/runtime/query-output-table.d.ts +5 -0
  1001. package/dist/runtime/query-output-table.d.ts.map +1 -0
  1002. package/dist/runtime/query-output-table.js +30 -0
  1003. package/dist/runtime/query-output-table.js.map +1 -0
  1004. package/dist/runtime/recovery-phrase.d.ts +3 -0
  1005. package/dist/runtime/recovery-phrase.d.ts.map +1 -0
  1006. package/dist/runtime/recovery-phrase.js +2 -0
  1007. package/dist/runtime/recovery-phrase.js.map +1 -0
  1008. package/dist/runtime/remote-link-state.d.ts +20 -0
  1009. package/dist/runtime/remote-link-state.d.ts.map +1 -0
  1010. package/dist/runtime/remote-link-state.js +5 -0
  1011. package/dist/runtime/remote-link-state.js.map +1 -0
  1012. package/dist/runtime/removed-provider-props.d.ts +17 -0
  1013. package/dist/runtime/removed-provider-props.d.ts.map +1 -0
  1014. package/dist/runtime/removed-provider-props.js +16 -0
  1015. package/dist/runtime/removed-provider-props.js.map +1 -0
  1016. package/dist/runtime/row-transformer.d.ts +18 -6
  1017. package/dist/runtime/row-transformer.d.ts.map +1 -1
  1018. package/dist/runtime/row-transformer.js +195 -41
  1019. package/dist/runtime/row-transformer.js.map +1 -1
  1020. package/dist/runtime/run-cleanup-steps.d.ts +5 -0
  1021. package/dist/runtime/run-cleanup-steps.d.ts.map +1 -0
  1022. package/dist/runtime/run-cleanup-steps.js +19 -0
  1023. package/dist/runtime/run-cleanup-steps.js.map +1 -0
  1024. package/dist/runtime/runtime-closed-error.d.ts +9 -0
  1025. package/dist/runtime/runtime-closed-error.d.ts.map +1 -0
  1026. package/dist/runtime/runtime-closed-error.js +12 -0
  1027. package/dist/runtime/runtime-closed-error.js.map +1 -0
  1028. package/dist/runtime/runtime-config.d.ts +9 -0
  1029. package/dist/runtime/runtime-config.d.ts.map +1 -0
  1030. package/dist/runtime/runtime-config.js +111 -0
  1031. package/dist/runtime/runtime-config.js.map +1 -0
  1032. package/dist/runtime/runtime-entropy.d.ts +14 -0
  1033. package/dist/runtime/runtime-entropy.d.ts.map +1 -0
  1034. package/dist/runtime/runtime-entropy.js +43 -0
  1035. package/dist/runtime/runtime-entropy.js.map +1 -0
  1036. package/dist/runtime/runtime-source.d.ts +170 -0
  1037. package/dist/runtime/runtime-source.d.ts.map +1 -0
  1038. package/dist/runtime/runtime-source.js +64 -0
  1039. package/dist/runtime/runtime-source.js.map +1 -0
  1040. package/dist/runtime/schema-metadata.d.ts +5 -0
  1041. package/dist/runtime/schema-metadata.d.ts.map +1 -0
  1042. package/dist/runtime/schema-metadata.js +34 -0
  1043. package/dist/runtime/schema-metadata.js.map +1 -0
  1044. package/dist/runtime/select-projection.d.ts +5 -0
  1045. package/dist/runtime/select-projection.d.ts.map +1 -0
  1046. package/dist/runtime/select-projection.js +47 -0
  1047. package/dist/runtime/select-projection.js.map +1 -0
  1048. package/dist/runtime/snapshot-ref.d.ts +24 -0
  1049. package/dist/runtime/snapshot-ref.d.ts.map +1 -0
  1050. package/dist/runtime/snapshot-ref.js +43 -0
  1051. package/dist/runtime/snapshot-ref.js.map +1 -0
  1052. package/dist/runtime/store-held-by-another-tab-error.d.ts +47 -0
  1053. package/dist/runtime/store-held-by-another-tab-error.d.ts.map +1 -0
  1054. package/dist/runtime/store-held-by-another-tab-error.js +49 -0
  1055. package/dist/runtime/store-held-by-another-tab-error.js.map +1 -0
  1056. package/dist/runtime/streaming-source.d.ts +4 -0
  1057. package/dist/runtime/streaming-source.d.ts.map +1 -0
  1058. package/dist/runtime/streaming-source.js +53 -0
  1059. package/dist/runtime/streaming-source.js.map +1 -0
  1060. package/dist/runtime/structural-values.d.ts +6 -0
  1061. package/dist/runtime/structural-values.d.ts.map +1 -0
  1062. package/dist/runtime/structural-values.js +55 -0
  1063. package/dist/runtime/structural-values.js.map +1 -0
  1064. package/dist/runtime/subscription-manager.d.ts +98 -14
  1065. package/dist/runtime/subscription-manager.d.ts.map +1 -1
  1066. package/dist/runtime/subscription-manager.js +1049 -25
  1067. package/dist/runtime/subscription-manager.js.map +1 -1
  1068. package/dist/runtime/sync-status.d.ts +157 -0
  1069. package/dist/runtime/sync-status.d.ts.map +1 -0
  1070. package/dist/runtime/sync-status.js +153 -0
  1071. package/dist/runtime/sync-status.js.map +1 -0
  1072. package/dist/runtime/sync-telemetry.d.ts +35 -0
  1073. package/dist/runtime/sync-telemetry.d.ts.map +1 -0
  1074. package/dist/runtime/sync-telemetry.js +354 -0
  1075. package/dist/runtime/sync-telemetry.js.map +1 -0
  1076. package/dist/runtime/system-identity.d.ts +5 -0
  1077. package/dist/runtime/system-identity.d.ts.map +1 -0
  1078. package/dist/runtime/system-identity.js +10 -0
  1079. package/dist/runtime/system-identity.js.map +1 -0
  1080. package/dist/runtime/telemetry-env.d.ts +2 -0
  1081. package/dist/runtime/telemetry-env.d.ts.map +1 -0
  1082. package/dist/runtime/telemetry-env.js +16 -0
  1083. package/dist/runtime/telemetry-env.js.map +1 -0
  1084. package/dist/runtime/telemetry-env.native.d.ts +3 -0
  1085. package/dist/runtime/telemetry-env.native.d.ts.map +1 -0
  1086. package/dist/runtime/telemetry-env.native.js +7 -0
  1087. package/dist/runtime/telemetry-env.native.js.map +1 -0
  1088. package/dist/runtime/text-anchors.d.ts +58 -0
  1089. package/dist/runtime/text-anchors.d.ts.map +1 -0
  1090. package/dist/runtime/text-anchors.js +9 -0
  1091. package/dist/runtime/text-anchors.js.map +1 -0
  1092. package/dist/runtime/unsupported-storage-codecs-error.d.ts +53 -0
  1093. package/dist/runtime/unsupported-storage-codecs-error.d.ts.map +1 -0
  1094. package/dist/runtime/unsupported-storage-codecs-error.js +74 -0
  1095. package/dist/runtime/unsupported-storage-codecs-error.js.map +1 -0
  1096. package/dist/runtime/url.d.ts +32 -0
  1097. package/dist/runtime/url.d.ts.map +1 -0
  1098. package/dist/runtime/url.js +96 -0
  1099. package/dist/runtime/url.js.map +1 -0
  1100. package/dist/runtime/utf8.d.ts +10 -0
  1101. package/dist/runtime/utf8.d.ts.map +1 -0
  1102. package/dist/runtime/utf8.js +93 -0
  1103. package/dist/runtime/utf8.js.map +1 -0
  1104. package/dist/runtime/util.d.ts +18 -0
  1105. package/dist/runtime/util.d.ts.map +1 -0
  1106. package/dist/runtime/util.js +59 -0
  1107. package/dist/runtime/util.js.map +1 -0
  1108. package/dist/runtime/value-converter.d.ts +9 -17
  1109. package/dist/runtime/value-converter.d.ts.map +1 -1
  1110. package/dist/runtime/value-converter.js +196 -43
  1111. package/dist/runtime/value-converter.js.map +1 -1
  1112. package/dist/runtime/wasm-loader.d.ts +6 -0
  1113. package/dist/runtime/wasm-loader.d.ts.map +1 -0
  1114. package/dist/runtime/wasm-loader.js +120 -0
  1115. package/dist/runtime/wasm-loader.js.map +1 -0
  1116. package/dist/runtime/write-preparation.d.ts +24 -0
  1117. package/dist/runtime/write-preparation.d.ts.map +1 -0
  1118. package/dist/runtime/write-preparation.js +63 -0
  1119. package/dist/runtime/write-preparation.js.map +1 -0
  1120. package/dist/runtime/write-row.d.ts +8 -0
  1121. package/dist/runtime/write-row.d.ts.map +1 -0
  1122. package/dist/runtime/write-row.js +17 -0
  1123. package/dist/runtime/write-row.js.map +1 -0
  1124. package/dist/schema-hash.d.ts +3 -0
  1125. package/dist/schema-hash.d.ts.map +1 -0
  1126. package/dist/schema-hash.js +5 -0
  1127. package/dist/schema-hash.js.map +1 -0
  1128. package/dist/schema-loader.d.ts +31 -0
  1129. package/dist/schema-loader.d.ts.map +1 -0
  1130. package/dist/schema-loader.js +501 -0
  1131. package/dist/schema-loader.js.map +1 -0
  1132. package/dist/schema-name.d.ts +2 -0
  1133. package/dist/schema-name.d.ts.map +1 -0
  1134. package/dist/schema-name.js +19 -0
  1135. package/dist/schema-name.js.map +1 -0
  1136. package/dist/schema-namespace.d.ts +35 -0
  1137. package/dist/schema-namespace.d.ts.map +1 -0
  1138. package/dist/schema-namespace.js +17 -0
  1139. package/dist/schema-namespace.js.map +1 -0
  1140. package/dist/schema-permissions.d.ts +16 -0
  1141. package/dist/schema-permissions.d.ts.map +1 -0
  1142. package/dist/schema-permissions.js +405 -0
  1143. package/dist/schema-permissions.js.map +1 -0
  1144. package/dist/schema-source.d.ts +11 -0
  1145. package/dist/schema-source.d.ts.map +1 -0
  1146. package/dist/schema-source.js +39 -0
  1147. package/dist/schema-source.js.map +1 -0
  1148. package/dist/schema.d.ts +108 -36
  1149. package/dist/schema.d.ts.map +1 -1
  1150. package/dist/schema.js +1 -10
  1151. package/dist/schema.js.map +1 -1
  1152. package/dist/session/backend-watch.d.ts +177 -0
  1153. package/dist/session/backend-watch.d.ts.map +1 -0
  1154. package/dist/session/backend-watch.js +653 -0
  1155. package/dist/session/backend-watch.js.map +1 -0
  1156. package/dist/session/config-options.d.ts +15 -0
  1157. package/dist/session/config-options.d.ts.map +1 -0
  1158. package/dist/session/config-options.js +55 -0
  1159. package/dist/session/config-options.js.map +1 -0
  1160. package/dist/session/consumer.d.ts +3 -0
  1161. package/dist/session/consumer.d.ts.map +1 -0
  1162. package/dist/session/consumer.js +3 -0
  1163. package/dist/session/consumer.js.map +1 -0
  1164. package/dist/session/create-jazz-session.d.ts +104 -0
  1165. package/dist/session/create-jazz-session.d.ts.map +1 -0
  1166. package/dist/session/create-jazz-session.js +647 -0
  1167. package/dist/session/create-jazz-session.js.map +1 -0
  1168. package/dist/session/follow-user.d.ts +63 -0
  1169. package/dist/session/follow-user.d.ts.map +1 -0
  1170. package/dist/session/follow-user.js +128 -0
  1171. package/dist/session/follow-user.js.map +1 -0
  1172. package/dist/session/jazz-session.d.ts +164 -0
  1173. package/dist/session/jazz-session.d.ts.map +1 -0
  1174. package/dist/session/jazz-session.js +432 -0
  1175. package/dist/session/jazz-session.js.map +1 -0
  1176. package/dist/session/left-behind-replicas.d.ts +69 -0
  1177. package/dist/session/left-behind-replicas.d.ts.map +1 -0
  1178. package/dist/session/left-behind-replicas.js +163 -0
  1179. package/dist/session/left-behind-replicas.js.map +1 -0
  1180. package/dist/session/native-backend-watch.d.ts +4 -0
  1181. package/dist/session/native-backend-watch.d.ts.map +1 -0
  1182. package/dist/session/native-backend-watch.js +14 -0
  1183. package/dist/session/native-backend-watch.js.map +1 -0
  1184. package/dist/session/state.d.ts +100 -0
  1185. package/dist/session/state.d.ts.map +1 -0
  1186. package/dist/session/state.js +428 -0
  1187. package/dist/session/state.js.map +1 -0
  1188. package/dist/shared/index.d.ts +20 -0
  1189. package/dist/shared/index.d.ts.map +1 -0
  1190. package/dist/shared/index.js +17 -0
  1191. package/dist/shared/index.js.map +1 -0
  1192. package/dist/solid/create-solid-jazz-client-internal.d.ts +13 -0
  1193. package/dist/solid/create-solid-jazz-client-internal.d.ts.map +1 -0
  1194. package/dist/solid/create-solid-jazz-client-internal.js +83 -0
  1195. package/dist/solid/create-solid-jazz-client-internal.js.map +1 -0
  1196. package/dist/solid/create-solid-jazz-client-internal.ssr.js +101 -0
  1197. package/dist/solid/create-solid-jazz-client-internal.ssr.js.map +1 -0
  1198. package/dist/solid/create-solid-jazz-client.d.ts +24 -0
  1199. package/dist/solid/create-solid-jazz-client.d.ts.map +1 -0
  1200. package/dist/solid/create-solid-jazz-client.js +43 -0
  1201. package/dist/solid/create-solid-jazz-client.js.map +1 -0
  1202. package/dist/solid/create-solid-jazz-client.ssr.js +46 -0
  1203. package/dist/solid/create-solid-jazz-client.ssr.js.map +1 -0
  1204. package/dist/solid/index.d.ts +14 -0
  1205. package/dist/solid/index.d.ts.map +1 -0
  1206. package/dist/solid/index.js +10 -0
  1207. package/dist/solid/index.ssr.js +10 -0
  1208. package/dist/solid/provider.d.ts +32 -0
  1209. package/dist/solid/provider.d.ts.map +1 -0
  1210. package/dist/solid/provider.js +47 -0
  1211. package/dist/solid/provider.js.map +1 -0
  1212. package/dist/solid/provider.ssr.js +47 -0
  1213. package/dist/solid/provider.ssr.js.map +1 -0
  1214. package/dist/solid/session.d.ts +52 -0
  1215. package/dist/solid/session.d.ts.map +1 -0
  1216. package/dist/solid/session.js +123 -0
  1217. package/dist/solid/session.js.map +1 -0
  1218. package/dist/solid/session.ssr.js +148 -0
  1219. package/dist/solid/session.ssr.js.map +1 -0
  1220. package/dist/solid/solid-jazz-client-store.d.ts +11 -0
  1221. package/dist/solid/solid-jazz-client-store.d.ts.map +1 -0
  1222. package/dist/solid/solid-jazz-client-store.js +37 -0
  1223. package/dist/solid/solid-jazz-client-store.js.map +1 -0
  1224. package/dist/solid/solid-jazz-client-store.ssr.js +39 -0
  1225. package/dist/solid/solid-jazz-client-store.ssr.js.map +1 -0
  1226. package/dist/solid/use-all.d.ts +18 -0
  1227. package/dist/solid/use-all.d.ts.map +1 -0
  1228. package/dist/solid/use-all.js +73 -0
  1229. package/dist/solid/use-all.js.map +1 -0
  1230. package/dist/solid/use-all.ssr.js +84 -0
  1231. package/dist/solid/use-all.ssr.js.map +1 -0
  1232. package/dist/solid/use-one.d.ts +18 -0
  1233. package/dist/solid/use-one.d.ts.map +1 -0
  1234. package/dist/solid/use-one.js +28 -0
  1235. package/dist/solid/use-one.js.map +1 -0
  1236. package/dist/solid/use-one.ssr.js +28 -0
  1237. package/dist/solid/use-one.ssr.js.map +1 -0
  1238. package/dist/solid/use-sync-status.d.ts +8 -0
  1239. package/dist/solid/use-sync-status.d.ts.map +1 -0
  1240. package/dist/solid/use-sync-status.js +14 -0
  1241. package/dist/solid/use-sync-status.js.map +1 -0
  1242. package/dist/solid/use-sync-status.ssr.js +21 -0
  1243. package/dist/solid/use-sync-status.ssr.js.map +1 -0
  1244. package/dist/subscription-store-internal.d.ts +11 -0
  1245. package/dist/subscription-store-internal.d.ts.map +1 -0
  1246. package/dist/subscription-store-internal.js +18 -0
  1247. package/dist/subscription-store-internal.js.map +1 -0
  1248. package/dist/subscriptions-orchestrator.d.ts +53 -13
  1249. package/dist/subscriptions-orchestrator.d.ts.map +1 -1
  1250. package/dist/subscriptions-orchestrator.js +295 -74
  1251. package/dist/subscriptions-orchestrator.js.map +1 -1
  1252. package/dist/svelte/JazzProvider.svelte +96 -0
  1253. package/dist/svelte/JazzProvider.svelte.d.ts +23 -0
  1254. package/dist/svelte/JazzProvider.svelte.d.ts.map +1 -0
  1255. package/dist/svelte/JazzSvelteClientProvider.svelte +73 -0
  1256. package/dist/svelte/JazzSvelteClientProvider.svelte.d.ts +13 -0
  1257. package/dist/svelte/JazzSvelteClientProvider.svelte.d.ts.map +1 -0
  1258. package/dist/svelte/JazzSvelteProvider.svelte +160 -28
  1259. package/dist/svelte/JazzSvelteProvider.svelte.d.ts +4 -3
  1260. package/dist/svelte/JazzSvelteProvider.svelte.d.ts.map +1 -1
  1261. package/dist/svelte/context.svelte.d.ts +23 -3
  1262. package/dist/svelte/context.svelte.d.ts.map +1 -1
  1263. package/dist/svelte/context.svelte.js +23 -3
  1264. package/dist/svelte/create-jazz-client.d.ts +2 -8
  1265. package/dist/svelte/create-jazz-client.d.ts.map +1 -1
  1266. package/dist/svelte/create-jazz-client.js +1 -17
  1267. package/dist/svelte/index.d.ts +14 -6
  1268. package/dist/svelte/index.d.ts.map +1 -1
  1269. package/dist/svelte/index.js +11 -6
  1270. package/dist/svelte/query-subscription.svelte.d.ts +60 -0
  1271. package/dist/svelte/query-subscription.svelte.d.ts.map +1 -0
  1272. package/dist/svelte/query-subscription.svelte.js +135 -0
  1273. package/dist/svelte/session-state.d.ts +21 -0
  1274. package/dist/svelte/session-state.d.ts.map +1 -0
  1275. package/dist/svelte/session-state.js +29 -0
  1276. package/dist/svelte/sync-status.d.ts +11 -0
  1277. package/dist/svelte/sync-status.d.ts.map +1 -0
  1278. package/dist/svelte/sync-status.js +15 -0
  1279. package/dist/testing/client-migrations.d.ts +29 -0
  1280. package/dist/testing/client-migrations.d.ts.map +1 -0
  1281. package/dist/testing/client-migrations.js +34 -0
  1282. package/dist/testing/client-migrations.js.map +1 -0
  1283. package/dist/testing/fixtures/basic/schema.d.ts +11 -0
  1284. package/dist/testing/fixtures/basic/schema.d.ts.map +1 -0
  1285. package/dist/testing/fixtures/basic/schema.js +10 -0
  1286. package/dist/testing/fixtures/basic/schema.js.map +1 -0
  1287. package/dist/testing/fixtures/with-bigint/schema.d.ts +18 -0
  1288. package/dist/testing/fixtures/with-bigint/schema.d.ts.map +1 -0
  1289. package/dist/testing/fixtures/with-bigint/schema.js +15 -0
  1290. package/dist/testing/fixtures/with-bigint/schema.js.map +1 -0
  1291. package/dist/testing/fixtures/with-defaults/schema.d.ts +385 -0
  1292. package/dist/testing/fixtures/with-defaults/schema.d.ts.map +1 -0
  1293. package/dist/testing/fixtures/with-defaults/schema.js +15 -0
  1294. package/dist/testing/fixtures/with-defaults/schema.js.map +1 -0
  1295. package/dist/testing/fixtures/with-enum-payload-defaults/schema.d.ts +4 -0
  1296. package/dist/testing/fixtures/with-enum-payload-defaults/schema.d.ts.map +1 -0
  1297. package/dist/testing/fixtures/with-enum-payload-defaults/schema.js +22 -0
  1298. package/dist/testing/fixtures/with-enum-payload-defaults/schema.js.map +1 -0
  1299. package/dist/testing/fixtures/with-enum-payload-required-null/schema.d.ts +4 -0
  1300. package/dist/testing/fixtures/with-enum-payload-required-null/schema.d.ts.map +1 -0
  1301. package/dist/testing/fixtures/with-enum-payload-required-null/schema.js +14 -0
  1302. package/dist/testing/fixtures/with-enum-payload-required-null/schema.js.map +1 -0
  1303. package/dist/testing/fixtures/with-enum-payload-wrong-tag/schema.d.ts +4 -0
  1304. package/dist/testing/fixtures/with-enum-payload-wrong-tag/schema.d.ts.map +1 -0
  1305. package/dist/testing/fixtures/with-enum-payload-wrong-tag/schema.js +14 -0
  1306. package/dist/testing/fixtures/with-enum-payload-wrong-tag/schema.js.map +1 -0
  1307. package/dist/testing/index.d.ts +6 -1
  1308. package/dist/testing/index.d.ts.map +1 -1
  1309. package/dist/testing/index.js +5 -1
  1310. package/dist/testing/index.js.map +1 -1
  1311. package/dist/testing/policy-test-app.d.ts +123 -0
  1312. package/dist/testing/policy-test-app.d.ts.map +1 -0
  1313. package/dist/testing/policy-test-app.js +216 -0
  1314. package/dist/testing/policy-test-app.js.map +1 -0
  1315. package/dist/testing/test-jazz.d.ts +106 -0
  1316. package/dist/testing/test-jazz.d.ts.map +1 -0
  1317. package/dist/testing/test-jazz.js +157 -0
  1318. package/dist/testing/test-jazz.js.map +1 -0
  1319. package/dist/testing/test-jwt-issuer.d.ts +19 -0
  1320. package/dist/testing/test-jwt-issuer.d.ts.map +1 -0
  1321. package/dist/testing/test-jwt-issuer.js +40 -0
  1322. package/dist/testing/test-jwt-issuer.js.map +1 -0
  1323. package/dist/text-field/index.d.ts +40 -0
  1324. package/dist/text-field/index.d.ts.map +1 -0
  1325. package/dist/text-field/index.js +129 -0
  1326. package/dist/text-field/index.js.map +1 -0
  1327. package/dist/thin/index.d.ts +81 -0
  1328. package/dist/thin/index.d.ts.map +1 -0
  1329. package/dist/thin/index.js +221 -0
  1330. package/dist/thin/index.js.map +1 -0
  1331. package/dist/thin/self-signed-token.d.ts +13 -0
  1332. package/dist/thin/self-signed-token.d.ts.map +1 -0
  1333. package/dist/thin/self-signed-token.js +84 -0
  1334. package/dist/thin/self-signed-token.js.map +1 -0
  1335. package/dist/thin/thin-runtime-source.d.ts +19 -0
  1336. package/dist/thin/thin-runtime-source.d.ts.map +1 -0
  1337. package/dist/thin/thin-runtime-source.js +66 -0
  1338. package/dist/thin/thin-runtime-source.js.map +1 -0
  1339. package/dist/thin/thin-runtime.d.ts +244 -0
  1340. package/dist/thin/thin-runtime.d.ts.map +1 -0
  1341. package/dist/thin/thin-runtime.js +1323 -0
  1342. package/dist/thin/thin-runtime.js.map +1 -0
  1343. package/dist/thin/wire.d.ts +160 -0
  1344. package/dist/thin/wire.d.ts.map +1 -0
  1345. package/dist/thin/wire.js +304 -0
  1346. package/dist/thin/wire.js.map +1 -0
  1347. package/dist/typed-app.d.ts +729 -0
  1348. package/dist/typed-app.d.ts.map +1 -0
  1349. package/dist/typed-app.js +789 -0
  1350. package/dist/typed-app.js.map +1 -0
  1351. package/dist/vue/create-jazz-client.d.ts +3 -0
  1352. package/dist/vue/create-jazz-client.d.ts.map +1 -0
  1353. package/dist/vue/create-jazz-client.js +2 -0
  1354. package/dist/vue/create-jazz-client.js.map +1 -0
  1355. package/dist/vue/index.d.ts +14 -0
  1356. package/dist/vue/index.d.ts.map +1 -0
  1357. package/dist/vue/index.js +11 -0
  1358. package/dist/vue/index.js.map +1 -0
  1359. package/dist/vue/provider.d.ts +66 -0
  1360. package/dist/vue/provider.d.ts.map +1 -0
  1361. package/dist/vue/provider.js +216 -0
  1362. package/dist/vue/provider.js.map +1 -0
  1363. package/dist/vue/session.d.ts +40 -0
  1364. package/dist/vue/session.d.ts.map +1 -0
  1365. package/dist/vue/session.js +99 -0
  1366. package/dist/vue/session.js.map +1 -0
  1367. package/dist/vue/use-all.d.ts +61 -0
  1368. package/dist/vue/use-all.d.ts.map +1 -0
  1369. package/dist/vue/use-all.js +104 -0
  1370. package/dist/vue/use-all.js.map +1 -0
  1371. package/dist/vue/use-one.d.ts +24 -0
  1372. package/dist/vue/use-one.d.ts.map +1 -0
  1373. package/dist/vue/use-one.js +17 -0
  1374. package/dist/vue/use-one.js.map +1 -0
  1375. package/dist/vue/use-sync-status.d.ts +9 -0
  1376. package/dist/vue/use-sync-status.d.ts.map +1 -0
  1377. package/dist/vue/use-sync-status.js +16 -0
  1378. package/dist/vue/use-sync-status.js.map +1 -0
  1379. package/dist/web/create-jazz-client.d.ts +8 -0
  1380. package/dist/web/create-jazz-client.d.ts.map +1 -0
  1381. package/dist/web/create-jazz-client.js +8 -0
  1382. package/dist/web/create-jazz-client.js.map +1 -0
  1383. package/dist/web/lazy-local-first.d.ts +8 -0
  1384. package/dist/web/lazy-local-first.d.ts.map +1 -0
  1385. package/dist/web/lazy-local-first.js +13 -0
  1386. package/dist/web/lazy-local-first.js.map +1 -0
  1387. package/dist/web/registered-jazz-client.d.ts +15 -0
  1388. package/dist/web/registered-jazz-client.d.ts.map +1 -0
  1389. package/dist/web/registered-jazz-client.js +35 -0
  1390. package/dist/web/registered-jazz-client.js.map +1 -0
  1391. package/dist/where-operators.d.ts +13 -0
  1392. package/dist/where-operators.d.ts.map +1 -0
  1393. package/dist/where-operators.js +70 -0
  1394. package/dist/where-operators.js.map +1 -0
  1395. package/dist/window-client-storage.d.ts +7 -0
  1396. package/dist/window-client-storage.d.ts.map +1 -0
  1397. package/dist/window-client-storage.js +27 -0
  1398. package/dist/window-client-storage.js.map +1 -0
  1399. package/dist/worker/jazz-broker-worker-core.d.ts +34 -0
  1400. package/dist/worker/jazz-broker-worker-core.d.ts.map +1 -0
  1401. package/dist/worker/jazz-broker-worker-core.js +2030 -0
  1402. package/dist/worker/jazz-broker-worker-core.js.map +1 -0
  1403. package/dist/worker/jazz-broker-worker.d.ts +2 -0
  1404. package/dist/worker/jazz-broker-worker.d.ts.map +1 -0
  1405. package/dist/worker/jazz-broker-worker.js +23600 -0
  1406. package/dist/worker/jazz_wasm_bg.wasm +0 -0
  1407. package/dist/worker/mutation-error-delivery.d.ts +8 -0
  1408. package/dist/worker/mutation-error-delivery.d.ts.map +1 -0
  1409. package/dist/worker/mutation-error-delivery.js +10 -0
  1410. package/dist/worker/mutation-error-delivery.js.map +1 -0
  1411. package/dist/worker/runtime-admission.d.ts +19 -0
  1412. package/dist/worker/runtime-admission.d.ts.map +1 -0
  1413. package/dist/worker/runtime-admission.js +34 -0
  1414. package/dist/worker/runtime-admission.js.map +1 -0
  1415. package/package.json +262 -31
  1416. package/bin/native/.gitkeep +0 -0
  1417. package/bin/native/jazz-tools-darwin-arm64 +0 -0
  1418. package/bin/native/jazz-tools-darwin-x64 +0 -0
  1419. package/bin/native/jazz-tools-linux-arm64 +0 -0
  1420. package/bin/native/jazz-tools-linux-x64 +0 -0
  1421. package/bin/native/jazz-tools-windows-x64.exe +0 -0
  1422. package/dist/cli.test.d.ts +0 -2
  1423. package/dist/cli.test.d.ts.map +0 -1
  1424. package/dist/cli.test.js +0 -154
  1425. package/dist/cli.test.js.map +0 -1
  1426. package/dist/codegen/codegen.test.d.ts +0 -2
  1427. package/dist/codegen/codegen.test.d.ts.map +0 -1
  1428. package/dist/codegen/codegen.test.js +0 -844
  1429. package/dist/codegen/codegen.test.js.map +0 -1
  1430. package/dist/codegen/index.d.ts +0 -18
  1431. package/dist/codegen/index.d.ts.map +0 -1
  1432. package/dist/codegen/index.js +0 -22
  1433. package/dist/codegen/index.js.map +0 -1
  1434. package/dist/codegen/query-builder-generator.d.ts +0 -23
  1435. package/dist/codegen/query-builder-generator.d.ts.map +0 -1
  1436. package/dist/codegen/query-builder-generator.js +0 -325
  1437. package/dist/codegen/query-builder-generator.js.map +0 -1
  1438. package/dist/codegen/type-generator.d.ts +0 -29
  1439. package/dist/codegen/type-generator.d.ts.map +0 -1
  1440. package/dist/codegen/type-generator.js +0 -226
  1441. package/dist/codegen/type-generator.js.map +0 -1
  1442. package/dist/dsl.test.d.ts +0 -2
  1443. package/dist/dsl.test.d.ts.map +0 -1
  1444. package/dist/dsl.test.js +0 -51
  1445. package/dist/dsl.test.js.map +0 -1
  1446. package/dist/permissions/index.test.d.ts +0 -2
  1447. package/dist/permissions/index.test.d.ts.map +0 -1
  1448. package/dist/permissions/index.test.js +0 -830
  1449. package/dist/permissions/index.test.js.map +0 -1
  1450. package/dist/permissions/type-inference.test.d.ts +0 -2
  1451. package/dist/permissions/type-inference.test.d.ts.map +0 -1
  1452. package/dist/permissions/type-inference.test.js +0 -151
  1453. package/dist/permissions/type-inference.test.js.map +0 -1
  1454. package/dist/react/create-jazz-client.integration.test.d.ts +0 -2
  1455. package/dist/react/create-jazz-client.integration.test.d.ts.map +0 -1
  1456. package/dist/react/create-jazz-client.integration.test.js +0 -84
  1457. package/dist/react/create-jazz-client.integration.test.js.map +0 -1
  1458. package/dist/react/create-jazz-client.test.d.ts +0 -2
  1459. package/dist/react/create-jazz-client.test.d.ts.map +0 -1
  1460. package/dist/react/create-jazz-client.test.js +0 -133
  1461. package/dist/react/create-jazz-client.test.js.map +0 -1
  1462. package/dist/react/synthetic-user-switcher.d.ts +0 -9
  1463. package/dist/react/synthetic-user-switcher.d.ts.map +0 -1
  1464. package/dist/react/synthetic-user-switcher.js +0 -65
  1465. package/dist/react/synthetic-user-switcher.js.map +0 -1
  1466. package/dist/react/synthetic-users.d.ts +0 -2
  1467. package/dist/react/synthetic-users.d.ts.map +0 -1
  1468. package/dist/react/synthetic-users.js +0 -2
  1469. package/dist/react/synthetic-users.js.map +0 -1
  1470. package/dist/react/synthetic-users.test.d.ts +0 -2
  1471. package/dist/react/synthetic-users.test.d.ts.map +0 -1
  1472. package/dist/react/synthetic-users.test.js +0 -43
  1473. package/dist/react/synthetic-users.test.js.map +0 -1
  1474. package/dist/react/use-link-external-identity.d.ts +0 -25
  1475. package/dist/react/use-link-external-identity.d.ts.map +0 -1
  1476. package/dist/react/use-link-external-identity.js +0 -45
  1477. package/dist/react/use-link-external-identity.js.map +0 -1
  1478. package/dist/react-native/create-jazz-client.test.d.ts +0 -2
  1479. package/dist/react-native/create-jazz-client.test.d.ts.map +0 -1
  1480. package/dist/react-native/create-jazz-client.test.js +0 -162
  1481. package/dist/react-native/create-jazz-client.test.js.map +0 -1
  1482. package/dist/react-native/create-jazz-rn-runtime.d.ts +0 -13
  1483. package/dist/react-native/create-jazz-rn-runtime.d.ts.map +0 -1
  1484. package/dist/react-native/create-jazz-rn-runtime.js +0 -7
  1485. package/dist/react-native/create-jazz-rn-runtime.js.map +0 -1
  1486. package/dist/react-native/db.d.ts +0 -16
  1487. package/dist/react-native/db.d.ts.map +0 -1
  1488. package/dist/react-native/db.js +0 -50
  1489. package/dist/react-native/db.js.map +0 -1
  1490. package/dist/react-native/db.test.d.ts +0 -2
  1491. package/dist/react-native/db.test.d.ts.map +0 -1
  1492. package/dist/react-native/db.test.js +0 -150
  1493. package/dist/react-native/db.test.js.map +0 -1
  1494. package/dist/react-native/jazz-rn-runtime-adapter.d.ts +0 -56
  1495. package/dist/react-native/jazz-rn-runtime-adapter.d.ts.map +0 -1
  1496. package/dist/react-native/jazz-rn-runtime-adapter.js +0 -192
  1497. package/dist/react-native/jazz-rn-runtime-adapter.js.map +0 -1
  1498. package/dist/react-native/jazz-rn-runtime-adapter.test.d.ts +0 -2
  1499. package/dist/react-native/jazz-rn-runtime-adapter.test.d.ts.map +0 -1
  1500. package/dist/react-native/jazz-rn-runtime-adapter.test.js +0 -165
  1501. package/dist/react-native/jazz-rn-runtime-adapter.test.js.map +0 -1
  1502. package/dist/runtime/client-session.test.d.ts +0 -2
  1503. package/dist/runtime/client-session.test.d.ts.map +0 -1
  1504. package/dist/runtime/client-session.test.js +0 -84
  1505. package/dist/runtime/client-session.test.js.map +0 -1
  1506. package/dist/runtime/client.for-request.test.d.ts +0 -2
  1507. package/dist/runtime/client.for-request.test.d.ts.map +0 -1
  1508. package/dist/runtime/client.for-request.test.js +0 -171
  1509. package/dist/runtime/client.for-request.test.js.map +0 -1
  1510. package/dist/runtime/cloud-server.integration.test.d.ts +0 -2
  1511. package/dist/runtime/cloud-server.integration.test.d.ts.map +0 -1
  1512. package/dist/runtime/cloud-server.integration.test.js +0 -985
  1513. package/dist/runtime/cloud-server.integration.test.js.map +0 -1
  1514. package/dist/runtime/leader-lock.d.ts +0 -15
  1515. package/dist/runtime/leader-lock.d.ts.map +0 -1
  1516. package/dist/runtime/leader-lock.js +0 -49
  1517. package/dist/runtime/leader-lock.js.map +0 -1
  1518. package/dist/runtime/local-auth.d.ts +0 -32
  1519. package/dist/runtime/local-auth.d.ts.map +0 -1
  1520. package/dist/runtime/local-auth.js +0 -93
  1521. package/dist/runtime/local-auth.js.map +0 -1
  1522. package/dist/runtime/local-auth.test.d.ts +0 -2
  1523. package/dist/runtime/local-auth.test.d.ts.map +0 -1
  1524. package/dist/runtime/local-auth.test.js +0 -50
  1525. package/dist/runtime/local-auth.test.js.map +0 -1
  1526. package/dist/runtime/query-adapter.test.d.ts +0 -5
  1527. package/dist/runtime/query-adapter.test.d.ts.map +0 -1
  1528. package/dist/runtime/query-adapter.test.js +0 -1209
  1529. package/dist/runtime/query-adapter.test.js.map +0 -1
  1530. package/dist/runtime/row-transformer.test.d.ts +0 -5
  1531. package/dist/runtime/row-transformer.test.d.ts.map +0 -1
  1532. package/dist/runtime/row-transformer.test.js +0 -364
  1533. package/dist/runtime/row-transformer.test.js.map +0 -1
  1534. package/dist/runtime/subscription-manager.test.d.ts +0 -5
  1535. package/dist/runtime/subscription-manager.test.d.ts.map +0 -1
  1536. package/dist/runtime/subscription-manager.test.js +0 -120
  1537. package/dist/runtime/subscription-manager.test.js.map +0 -1
  1538. package/dist/runtime/sync-transport.d.ts +0 -163
  1539. package/dist/runtime/sync-transport.d.ts.map +0 -1
  1540. package/dist/runtime/sync-transport.js +0 -477
  1541. package/dist/runtime/sync-transport.js.map +0 -1
  1542. package/dist/runtime/sync-transport.test.d.ts +0 -2
  1543. package/dist/runtime/sync-transport.test.d.ts.map +0 -1
  1544. package/dist/runtime/sync-transport.test.js +0 -310
  1545. package/dist/runtime/sync-transport.test.js.map +0 -1
  1546. package/dist/runtime/tab-leader-election.d.ts +0 -97
  1547. package/dist/runtime/tab-leader-election.d.ts.map +0 -1
  1548. package/dist/runtime/tab-leader-election.js +0 -339
  1549. package/dist/runtime/tab-leader-election.js.map +0 -1
  1550. package/dist/runtime/tab-leader-election.test.d.ts +0 -2
  1551. package/dist/runtime/tab-leader-election.test.d.ts.map +0 -1
  1552. package/dist/runtime/tab-leader-election.test.js +0 -278
  1553. package/dist/runtime/tab-leader-election.test.js.map +0 -1
  1554. package/dist/runtime/testing/wasm-runtime-test-utils.d.ts +0 -13
  1555. package/dist/runtime/testing/wasm-runtime-test-utils.d.ts.map +0 -1
  1556. package/dist/runtime/testing/wasm-runtime-test-utils.js +0 -75
  1557. package/dist/runtime/testing/wasm-runtime-test-utils.js.map +0 -1
  1558. package/dist/runtime/utils.d.ts +0 -2
  1559. package/dist/runtime/utils.d.ts.map +0 -1
  1560. package/dist/runtime/utils.js +0 -16
  1561. package/dist/runtime/utils.js.map +0 -1
  1562. package/dist/runtime/value-converter.test.d.ts +0 -5
  1563. package/dist/runtime/value-converter.test.d.ts.map +0 -1
  1564. package/dist/runtime/value-converter.test.js +0 -212
  1565. package/dist/runtime/value-converter.test.js.map +0 -1
  1566. package/dist/runtime/worker-bridge.d.ts +0 -86
  1567. package/dist/runtime/worker-bridge.d.ts.map +0 -1
  1568. package/dist/runtime/worker-bridge.js +0 -250
  1569. package/dist/runtime/worker-bridge.js.map +0 -1
  1570. package/dist/runtime/worker-bridge.race-harness.test.d.ts +0 -2
  1571. package/dist/runtime/worker-bridge.race-harness.test.d.ts.map +0 -1
  1572. package/dist/runtime/worker-bridge.race-harness.test.js +0 -265
  1573. package/dist/runtime/worker-bridge.race-harness.test.js.map +0 -1
  1574. package/dist/runtime/worker-bridge.test.d.ts +0 -2
  1575. package/dist/runtime/worker-bridge.test.d.ts.map +0 -1
  1576. package/dist/runtime/worker-bridge.test.js +0 -233
  1577. package/dist/runtime/worker-bridge.test.js.map +0 -1
  1578. package/dist/sql-gen.d.ts +0 -4
  1579. package/dist/sql-gen.d.ts.map +0 -1
  1580. package/dist/sql-gen.js +0 -163
  1581. package/dist/sql-gen.js.map +0 -1
  1582. package/dist/sql-gen.test.d.ts +0 -2
  1583. package/dist/sql-gen.test.d.ts.map +0 -1
  1584. package/dist/sql-gen.test.js +0 -412
  1585. package/dist/sql-gen.test.js.map +0 -1
  1586. package/dist/subscriptions-orchestrator.integration.test.d.ts +0 -2
  1587. package/dist/subscriptions-orchestrator.integration.test.d.ts.map +0 -1
  1588. package/dist/subscriptions-orchestrator.integration.test.js +0 -194
  1589. package/dist/subscriptions-orchestrator.integration.test.js.map +0 -1
  1590. package/dist/subscriptions-orchestrator.test.d.ts +0 -2
  1591. package/dist/subscriptions-orchestrator.test.d.ts.map +0 -1
  1592. package/dist/subscriptions-orchestrator.test.js +0 -367
  1593. package/dist/subscriptions-orchestrator.test.js.map +0 -1
  1594. package/dist/svelte/SyntheticUserSwitcher.svelte +0 -121
  1595. package/dist/svelte/SyntheticUserSwitcher.svelte.d.ts +0 -11
  1596. package/dist/svelte/SyntheticUserSwitcher.svelte.d.ts.map +0 -1
  1597. package/dist/svelte/context.test.d.ts +0 -2
  1598. package/dist/svelte/context.test.d.ts.map +0 -1
  1599. package/dist/svelte/context.test.js +0 -51
  1600. package/dist/svelte/create-jazz-client.test.d.ts +0 -2
  1601. package/dist/svelte/create-jazz-client.test.d.ts.map +0 -1
  1602. package/dist/svelte/create-jazz-client.test.js +0 -50
  1603. package/dist/svelte/use-all.svelte.d.ts +0 -32
  1604. package/dist/svelte/use-all.svelte.d.ts.map +0 -1
  1605. package/dist/svelte/use-all.svelte.js +0 -61
  1606. package/dist/svelte/use-all.test.d.ts +0 -2
  1607. package/dist/svelte/use-all.test.d.ts.map +0 -1
  1608. package/dist/svelte/use-all.test.js +0 -154
  1609. package/dist/svelte/use-link-external-identity.d.ts +0 -25
  1610. package/dist/svelte/use-link-external-identity.d.ts.map +0 -1
  1611. package/dist/svelte/use-link-external-identity.js +0 -33
  1612. package/dist/svelte/use-link-external-identity.test.d.ts +0 -2
  1613. package/dist/svelte/use-link-external-identity.test.d.ts.map +0 -1
  1614. package/dist/svelte/use-link-external-identity.test.js +0 -97
  1615. package/dist/synthetic-user-switcher.d.ts +0 -16
  1616. package/dist/synthetic-user-switcher.d.ts.map +0 -1
  1617. package/dist/synthetic-user-switcher.js +0 -134
  1618. package/dist/synthetic-user-switcher.js.map +0 -1
  1619. package/dist/synthetic-users.d.ts +0 -32
  1620. package/dist/synthetic-users.d.ts.map +0 -1
  1621. package/dist/synthetic-users.js +0 -124
  1622. package/dist/synthetic-users.js.map +0 -1
  1623. package/dist/testing/fixtures/basic/app.d.ts +0 -55
  1624. package/dist/testing/fixtures/basic/app.d.ts.map +0 -1
  1625. package/dist/testing/fixtures/basic/app.js +0 -176
  1626. package/dist/testing/fixtures/basic/app.js.map +0 -1
  1627. package/dist/testing/fixtures/basic/current.d.ts +0 -2
  1628. package/dist/testing/fixtures/basic/current.d.ts.map +0 -1
  1629. package/dist/testing/fixtures/basic/current.js +0 -6
  1630. package/dist/testing/fixtures/basic/current.js.map +0 -1
  1631. package/dist/testing/index.test.d.ts +0 -2
  1632. package/dist/testing/index.test.d.ts.map +0 -1
  1633. package/dist/testing/index.test.js +0 -234
  1634. package/dist/testing/index.test.js.map +0 -1
  1635. package/dist/testing/local-jazz-server.d.ts +0 -34
  1636. package/dist/testing/local-jazz-server.d.ts.map +0 -1
  1637. package/dist/testing/local-jazz-server.js +0 -313
  1638. package/dist/testing/local-jazz-server.js.map +0 -1
  1639. package/dist/worker/jazz-worker.d.ts +0 -9
  1640. package/dist/worker/jazz-worker.d.ts.map +0 -1
  1641. package/dist/worker/jazz-worker.js +0 -516
  1642. package/dist/worker/jazz-worker.js.map +0 -1
  1643. package/dist/worker/jazz-worker.ts +0 -581
  1644. package/dist/worker/worker-protocol.d.ts +0 -136
  1645. package/dist/worker/worker-protocol.d.ts.map +0 -1
  1646. package/dist/worker/worker-protocol.js +0 -7
  1647. package/dist/worker/worker-protocol.js.map +0 -1
@@ -1,3 +1,4 @@
1
+ import { type SnapshotRef } from "./snapshot-ref.js";
1
2
  /**
2
3
  * JazzClient - High-level TypeScript client for Jazz.
3
4
  *
@@ -5,53 +6,367 @@
5
6
  * subscriptions, and sync.
6
7
  */
7
8
  import type { AppContext, Session } from "./context.js";
8
- import type { Value, RowDelta, WasmSchema } from "../drivers/types.js";
9
- import { type LinkExternalResponse } from "./sync-transport.js";
9
+ import type { InsertValues, RuntimeSubscriptionDelta, Value, WasmSchema } from "../drivers/types.js";
10
+ import type { AuthFailureReason } from "./auth-state.js";
11
+ import type { RemoteLinkState } from "./remote-link-state.js";
12
+ import type { LinkFailure, LinkStatus, UploadStatus } from "./sync-status.js";
13
+ /** @internal Runtime operations bound to the currently executing preparation. */
14
+ export type TransactionPreparationIO = Pick<JazzClient, "queryInternal" | "insertInternal" | "updateInternal" | "upsertInternal" | "restoreInternal">;
10
15
  /**
11
- * Minimal request shape supported by `JazzClient.forRequest()`.
16
+ * Minimal request shape supported by backend request helpers.
12
17
  *
13
18
  * Works with common server frameworks (Express, Fastify, Hono, Web Request wrappers)
14
19
  * as long as Authorization headers are exposed through `header(name)` or `headers`.
20
+ * Plain-record `headers` keys are matched case-insensitively; conflicting case variants
21
+ * are rejected. Web `Headers` objects retain their native lookup behavior.
15
22
  */
16
23
  export interface RequestLike {
17
24
  header?: (name: string) => string | undefined;
18
25
  headers?: Headers | Record<string, string | string[] | undefined>;
19
26
  }
27
+ export type AuthUpdate = {
28
+ mode: "bearer";
29
+ jwtToken?: string;
30
+ trustedReservedSession?: Session;
31
+ } | {
32
+ mode: "cookie";
33
+ cookieSession?: Session;
34
+ };
20
35
  /**
21
- * Common interface for WASM and NAPI runtimes.
22
- *
23
- * Both `WasmRuntime` (from jazz-wasm) and `NapiRuntime` (from jazz-napi)
24
- * satisfy this interface, allowing `JazzClient` to work with either backend.
36
+ * Common interface for the runtime backing `JazzClient`.
25
37
  */
26
38
  export interface Runtime {
27
- insert(table: string, values: any): string;
28
- update(object_id: string, values: any): void;
29
- delete(object_id: string): void;
30
- query(query_json: string, session_json?: string | null, settled_tier?: string | null): Promise<any>;
31
- subscribe(query_json: string, on_update: Function, session_json?: string | null, settled_tier?: string | null): number;
39
+ /**
40
+ * @internal The Db handed over to a successor: end reads not sent yet with
41
+ * a `RuntimeClosedError` cause, so they ask the successor instead.
42
+ */
43
+ endUnsentReads?(): void;
44
+ /**
45
+ * Wait until every write committed so far reaches `tier`. `throughOutage`
46
+ * keeps the wait pending through outages until a terminal failure.
47
+ * `inFlightStreams` (the drain after the local-first upgrade) first lets
48
+ * streaming writes still sending their value finish, and waits for their
49
+ * writes too, until that signal aborts.
50
+ */
51
+ waitForPendingWrites?(tier?: string, options?: {
52
+ throughOutage?: boolean;
53
+ inFlightStreams?: AbortSignal;
54
+ signal?: AbortSignal;
55
+ }): Promise<void>;
56
+ /** @internal Close mutation admission and report the foreground TxTime high-water. */
57
+ quiesceForegroundTxTimeHighWater?(): Promise<bigint>;
58
+ beginTransaction(transactionKind: TransactionKind, id: OpenTransactionId, sessionJson?: string | null): OpenTransactionId;
59
+ /** Completion may include asynchronous preparation before physical submission. */
60
+ commitTransaction(id: OpenTransactionId): TxId | Promise<TxId>;
61
+ rollbackTransaction(id: OpenTransactionId): Promise<boolean>;
62
+ /** Capture behind earlier owner operations without waiting for server acceptance. */
63
+ captureSnapshot?(): Promise<SnapshotRef>;
64
+ readonly preparationOwner?: object;
65
+ readCanEstablishAbsence?(sessionJson?: string, transaction?: OpenTransactionId): boolean;
66
+ /** @internal Live reachability of the upstream server, for read scheduling only. */
67
+ remoteLinkState?(): RemoteLinkState;
68
+ /** @internal Observe {@link Runtime.remoteLinkState} changes. */
69
+ onRemoteLinkStateChange?(listener: (state: RemoteLinkState) => void, signal: AbortSignal): void;
70
+ /** @internal Report the host's view of the server link to the core read gate. */
71
+ setRemoteLinkHint?(state: RemoteLinkState): void;
72
+ /** @internal The upstream link as the app sees it. */
73
+ upstreamLinkStatus?(): LinkStatus;
74
+ /** @internal This client's uploads: pending, since when, and refusals. */
75
+ uploadStatus?(): UploadStatus;
76
+ /** @internal The latest link failure this client saw, if any. */
77
+ lastLinkFailure?(): LinkFailure | null;
78
+ /** @internal Observe changes of the link status or the upload status. */
79
+ onSyncStatusChange?(listener: () => void, signal: AbortSignal): void;
80
+ /** @internal Construct a provisional row without staging or accepting a write. */
81
+ previewInsert?(table: string, values: InsertValues, objectId?: string): Row;
82
+ insert(table: string, values: InsertValues, write_context_json?: string | null, object_id?: string | null): InsertResult;
83
+ streamingMutation?(mutation: StreamingMutationKind, table: string, values: InsertValues, column: string, source: StreamingValueSource, write_context_json?: string | null, object_id?: string | null): Promise<StreamingInsertResult>;
84
+ restore(table: string, object_id: string, values: InsertValues, write_context_json?: string | null): InsertResult;
85
+ update(table: string, object_id: string, values: Record<string, Value>, write_context_json?: string | null): MutationResult;
86
+ /** Internal binding entrypoint for the typed page-edit update DSL. */
87
+ updateLargeValues?(table: string, objectId: string, updates: Record<string, Value>, descriptors: readonly unknown[], writeContextJson?: string | null): MutationResult;
88
+ upsert(table: string, object_id: string, values: InsertValues, write_context_json?: string | null): MutationResult;
89
+ delete(table: string, object_id: string, write_context_json?: string | null): MutationResult;
90
+ canInsertLocally?(table: string, values: InsertValues, session?: Session): PermissionAdvice;
91
+ canReadLocally?(table: string, objectId: string, session?: Session): PermissionAdvice;
92
+ canUpdateLocally?(table: string, objectId: string, values: Record<string, Value>, session?: Session): PermissionAdvice;
93
+ canDeleteLocally?(table: string, objectId: string, session?: Session): PermissionAdvice;
94
+ requestInsertPermissionAdvice?(table: string, values: InsertValues, session?: Session): Promise<PermissionAdvice>;
95
+ requestReadPermissionAdvice?(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
96
+ requestUpdatePermissionAdvice?(table: string, objectId: string, values: Record<string, Value>, session?: Session): Promise<PermissionAdvice>;
97
+ requestDeletePermissionAdvice?(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
98
+ onMutationError(callback: (event: MutationErrorEvent) => void): void;
99
+ waitForTransaction(txId: TxId | Promise<TxId>, tier: string, options?: RuntimeWriteWaitOptions): Promise<void>;
100
+ query(query_json: string, session_json?: string | null, tier?: string | null, options_json?: string | null): Promise<any>;
101
+ createSubscription(query_json: string, session_json?: string | null, tier?: string | null, options_json?: string | null): number;
102
+ /** Install the subscription's callback and start delivery. May only be called once per handle. */
103
+ executeSubscription(handle: number, onUpdate: (result: RuntimeSubscriptionDelta | Error) => void): void;
32
104
  unsubscribe(handle: number): void;
33
- insertWithAck(table: string, values: any, tier: string): Promise<string>;
34
- updateWithAck(object_id: string, values: any, tier: string): Promise<void>;
35
- deleteWithAck(object_id: string, tier: string): Promise<void>;
36
- onSyncMessageReceived(message_json: string): void;
37
- onSyncMessageToSend(callback: Function): void;
38
- addServer(): void;
39
- removeServer(): void;
40
- addClient(): string;
41
- getSchema(): any;
42
- getSchemaHash(): string;
43
105
  close?(): void | Promise<void>;
44
- setClientRole?(client_id: string, role: string): void;
45
- onSyncMessageReceivedFromClient?(client_id: string, message_json: string): void;
106
+ /** Abandon a runtime whose backing persistence epoch was invalidated. */
107
+ discard?(): void;
108
+ clearClientStorage?(): Promise<void>;
109
+ /** Connect to a Jazz server over WebSocket (Rust transport). */
110
+ connect(url: string, auth_json: string): void;
111
+ /**
112
+ * Disconnect from the Jazz server and drop the transport handle.
113
+ *
114
+ * Resolves once the runtime has completed the disconnect. For worker-backed
115
+ * runtimes, this includes a round-trip in which the worker performs the
116
+ * disconnect before replying.
117
+ */
118
+ disconnect(options?: {
119
+ rejectWaiters?: boolean;
120
+ }): Promise<void>;
121
+ /** Native admission owns its upstream independently of a JavaScript URL. */
122
+ nativeUpstreamConfigured?(): boolean;
123
+ /** Push updated auth credentials into the live Rust transport. */
124
+ updateAuth(auth_json: string): void;
125
+ /**
126
+ * The session this client resolved from its credentials, set before it
127
+ * connects and again whenever its auth changes. A runtime that serves
128
+ * only its connection's session (thin) compares calls against it.
129
+ */
130
+ useSession?(session: Session | null): void;
131
+ /** End waits held for a refused credential that nothing will renew. */
132
+ endCredentialWait?(): void;
133
+ /** Register a callback invoked when the Rust transport rejects the JWT. */
134
+ onAuthFailure(callback: (reason: string) => void): void;
135
+ }
136
+ /**
137
+ * Advisory result for a permission preflight. `allowed` and `denied` are
138
+ * final only when a trusted-serving authority evaluated the request;
139
+ * `unknown` means that a local replica or unavailable authority cannot decide.
140
+ */
141
+ export type PermissionAdvice = "allowed" | "denied" | "unknown";
142
+ declare const openTransactionIdBrand: unique symbol;
143
+ declare const txIdBrand: unique symbol;
144
+ /** Identity of a mutable transaction. Invalid after commit or rollback. */
145
+ export type OpenTransactionId = string & {
146
+ readonly [openTransactionIdBrand]: true;
147
+ };
148
+ /** Immutable identity assigned to a successfully committed transaction. */
149
+ export type TxId = string & {
150
+ readonly [txIdBrand]: true;
151
+ };
152
+ /** Generate a coordination-free UUIDv7 identity for a new mutable transaction. */
153
+ export declare function createOpenTransactionId(): OpenTransactionId;
154
+ /**
155
+ * Authentication configuration for connecting to a Jazz server.
156
+ *
157
+ * Maps directly to the Rust `AuthConfig` struct in `jazz-tools/src/websocket_prelude_auth.rs`.
158
+ * All fields are optional; supply only the ones relevant to your auth mode.
159
+ */
160
+ export interface AuthConfig {
161
+ /** JWT bearer token for user authentication. */
162
+ jwt_token?: string;
163
+ /** Backend service secret for server-to-server calls. */
164
+ backend_secret?: string;
165
+ /** Admin secret for privileged sync and `/admin/*` catalogue operations. */
166
+ admin_secret?: string;
167
+ /** Opaque session payload forwarded by a backend proxy. */
168
+ backend_session?: unknown;
169
+ /** The published permissions bundle the session is pinned to. */
170
+ bundle?: string;
46
171
  }
47
172
  /**
48
173
  * Persistence tier for durability guarantees.
49
174
  *
50
- * - `worker`: Persisted in web worker / local storage
51
- * - `edge`: Persisted at edge server
52
- * - `core`: Persisted at core server
175
+ * - `local`: Persisted in local durable storage
176
+ * - `global`: Authorized and durably accepted by Core
177
+ */
178
+ export type DurabilityTier = "local" | "global";
179
+ /**
180
+ * Product-facing policy for reads. It deliberately does not change write durability.
181
+ *
182
+ * There are two tiers: `LocalFirst` and `Remote`. A local-first read can also
183
+ * wait a bounded time for the server on its initial load; see
184
+ * {@link QueryExecutionOptions.firstLoadRemoteWaitMs}.
185
+ */
186
+ export declare const ReadTier: {
187
+ /**
188
+ * Cached local knowledge and pending writes; still syncs while connected.
189
+ * Set `firstLoadRemoteWaitMs` to let the initial load wait for the server first.
190
+ */
191
+ readonly LocalFirst: "local-first";
192
+ /** Current remote query scope, without pending local writes; waits offline. */
193
+ readonly Remote: "remote";
194
+ };
195
+ export type ReadTier = (typeof ReadTier)[keyof typeof ReadTier];
196
+ /**
197
+ * @internal A local-first read's server wait in whole milliseconds, or
198
+ * `undefined` when the caller gave none. An explicit `0` stays `0`: it opts
199
+ * out of the client default wait. Throws for a value that is not a
200
+ * non-negative number of milliseconds.
201
+ */
202
+ export declare function normalizeFirstLoadRemoteWaitMs(value: unknown): number | undefined;
203
+ /**
204
+ * How long a read that names no tier waits for the server on its first load
205
+ * in browsers and React Native, when a server is configured. It never waits
206
+ * offline or after `db.disconnect()`; pass `firstLoadRemoteWaitMs: 0` to show
207
+ * local data at once.
208
+ */
209
+ export declare const DEFAULT_CLIENT_FIRST_LOAD_REMOTE_WAIT_MS = 5000;
210
+ /**
211
+ * @internal Throw for anything but a product read tier. Read options accept
212
+ * only `ReadTier.LocalFirst` and `ReadTier.Remote`; removed names get a
213
+ * migration message.
214
+ */
215
+ export declare function rejectRemovedReadTier(tier: unknown): void;
216
+ /**
217
+ * @internal Tiers internal callers may pass: the product tiers and the
218
+ * inspector-only tier that never subscribes upstream.
219
+ */
220
+ export type InternalReadTier = ReadTier | "local-only";
221
+ /**
222
+ * Whether this query should be shown in the inspector.
223
+ * Useful for helpers and framework internals that create subscriptions
224
+ * but should stay out of the DB inspector.
225
+ * Defaults to `"public"`.
226
+ */
227
+ export type QueryVisibility = "public" | "hidden_from_live_query_list";
228
+ /** Named values selecting one exact branch-local row coordinate. */
229
+ export interface BranchSelector {
230
+ values: Record<string, Value>;
231
+ }
232
+ /** A live or application-resolved frozen base underneath a branch head. */
233
+ export type BranchViewBase = {
234
+ kind: "current";
235
+ branch: BranchSelector;
236
+ } | {
237
+ kind: "snapshot";
238
+ branch: BranchSelector;
239
+ snapshot: SnapshotRef;
240
+ };
241
+ /** User-facing head-over-base branch view. */
242
+ export interface BranchView {
243
+ head: BranchSelector;
244
+ base?: BranchViewBase;
245
+ }
246
+ /**
247
+ * The read tier and the options only that tier accepts: `tier` discriminates
248
+ * the shape, so a first-load wait on a `ReadTier.Remote` read does not type-check.
249
+ */
250
+ export type ReadTierOptions = {
251
+ /**
252
+ * Read tier: {@link ReadTier.LocalFirst} or {@link ReadTier.Remote}.
253
+ *
254
+ * Reads default to local-first in browsers and React Native (with a brief
255
+ * first-load server wait when a server is configured), and without a
256
+ * configured server; other environments with a server default to remote.
257
+ */
258
+ tier?: typeof ReadTier.LocalFirst;
259
+ /**
260
+ * How long the initial load may wait for the server's answer, in
261
+ * milliseconds. A read that names no tier in a browser or React Native
262
+ * with a server defaults to {@link DEFAULT_CLIENT_FIRST_LOAD_REMOTE_WAIT_MS};
263
+ * an explicit `tier: "local-first"` defaults to `0`. `0` shows local
264
+ * data at once.
265
+ *
266
+ * While the client is online (connected, or its connection attempt is still
267
+ * young), a subscription's first callback, or a one-shot read, waits up to
268
+ * this long for the server's answer and then shows it; if the server has not
269
+ * answered in time, it shows the local result. Offline, without a server,
270
+ * or after `db.disconnect()` it never waits. Later changes behave as usual
271
+ * for local-first: local writes show immediately and remote changes as
272
+ * they arrive.
273
+ */
274
+ firstLoadRemoteWaitMs?: number;
275
+ } | {
276
+ /** Read tier: `ReadTier.LocalFirst` or `ReadTier.Remote`. */
277
+ tier: typeof ReadTier.Remote;
278
+ /**
279
+ * Only local-first reads wait for the server on their first load; a
280
+ * remote read always waits for the server. Ignored at runtime if given.
281
+ */
282
+ firstLoadRemoteWaitMs?: never;
283
+ };
284
+ export type QueryExecutionOptions = ReadTierOptions & {
285
+ /** Admit exact-head history, falling back to an optional live or frozen base. */
286
+ branch?: BranchView;
287
+ };
288
+ /**
289
+ * Copy the product-facing subset of query options before crossing a public
290
+ * JavaScript boundary. TypeScript declarations are useful guidance, but a
291
+ * caller can always supply an object through `as any` (or plain JavaScript).
292
+ * In particular, transport propagation and own-write delivery are runtime
293
+ * controls, not product API switches.
294
+ *
295
+ * @internal Db uses the analogous conversion when it lowers typed builders.
53
296
  */
54
- export type PersistenceTier = "worker" | "edge" | "core";
297
+ export declare function publicQueryExecutionOptions(options?: QueryExecutionOptions): QueryExecutionOptions | undefined;
298
+ /** @internal `local-only` is deliberately excluded from the product surface. */
299
+ export declare function isPublicQueryReadTier(value: unknown): value is ReadTier;
300
+ /** @internal Low-level read controls that are not part of the product-facing query API. */
301
+ export type InternalQueryExecutionOptions = Omit<QueryExecutionOptions, "tier"> & {
302
+ tier?: InternalReadTier;
303
+ visibility?: QueryVisibility;
304
+ openTransactionId?: OpenTransactionId;
305
+ /** Columns whose updates a subscription also delivers as splices. */
306
+ splices?: readonly string[];
307
+ };
308
+ export interface ResolvedQueryExecutionOptions {
309
+ tier: InternalReadTier;
310
+ /** Server wait of a local-first read; absent when it does not wait. */
311
+ firstLoadRemoteWaitMs?: number;
312
+ visibility: QueryVisibility;
313
+ branch?: BranchView;
314
+ splices?: readonly string[];
315
+ }
316
+ interface TimestampOverrideOptions {
317
+ updatedAt?: number;
318
+ }
319
+ /**
320
+ * Selects the transaction semantics used for grouped writes.
321
+ *
322
+ * - `mergeable`: eventually-consistent writes that merge with concurrent writes.
323
+ * - `serializable`: serializable writes that are validated as one unit by the authority.
324
+ */
325
+ export type TransactionKind = "mergeable" | "serializable";
326
+ export type TransactionFate = {
327
+ kind: "missing";
328
+ transactionId: TxId;
329
+ } | {
330
+ kind: "rejected";
331
+ transactionId: TxId;
332
+ code: string;
333
+ reason: string;
334
+ } | {
335
+ kind: "accepted";
336
+ transactionId: TxId;
337
+ confirmedTier: DurabilityTier;
338
+ };
339
+ export interface LocalTransactionRecord {
340
+ transactionId: TxId;
341
+ kind: TransactionKind;
342
+ sealed: boolean;
343
+ latestSettlement: TransactionFate;
344
+ encodedRecord?: Uint8Array;
345
+ }
346
+ /**
347
+ * A rejected write emitted by {@link JazzClient.onMutationError}.
348
+ *
349
+ * The event is a fallback for writes whose rejection was not handled by an
350
+ * active {@link WriteHandle.wait} call.
351
+ */
352
+ export interface MutationErrorEvent {
353
+ code: string;
354
+ reason: string;
355
+ transaction: LocalTransactionRecord;
356
+ }
357
+ export interface InsertOptions extends TimestampOverrideOptions {
358
+ id?: string;
359
+ branch?: BranchSelector;
360
+ }
361
+ export interface UpdateOptions extends TimestampOverrideOptions {
362
+ branch?: BranchView;
363
+ }
364
+ export interface DeleteOptions extends TimestampOverrideOptions {
365
+ branch?: BranchView;
366
+ }
367
+ export interface RestoreOptions extends TimestampOverrideOptions {
368
+ branch?: BranchSelector;
369
+ }
55
370
  /**
56
371
  * Query row result.
57
372
  */
@@ -59,252 +374,376 @@ export interface Row {
59
374
  id: string;
60
375
  values: Value[];
61
376
  }
377
+ export type WriteReceipt = {
378
+ readonly kind: "committed";
379
+ readonly txId: TxId | Promise<TxId>;
380
+ } | {
381
+ readonly kind: "staged";
382
+ readonly openTransactionId: OpenTransactionId;
383
+ };
384
+ export type InsertResult = Row & WriteReceipt;
385
+ export type StreamingValueChunk = Uint8Array | string;
386
+ export type StreamingValueSource = ReadableStream<StreamingValueChunk> | AsyncIterable<StreamingValueChunk>;
387
+ export type StreamingInsertResult = {
388
+ id: string;
389
+ } & WriteReceipt;
390
+ export type StreamingMutationKind = "insert" | "update" | "upsert";
391
+ export type MutationResult = WriteReceipt;
62
392
  /**
63
393
  * Subscription callback type.
394
+ *
395
+ * The function form is retained for compatibility. Prefer
396
+ * {@link SubscriptionCallbacks} so terminal failures are handled explicitly;
397
+ * otherwise they are reported to `console.error`.
64
398
  */
65
- export type SubscriptionCallback = (delta: RowDelta) => void;
66
- export interface LinkExternalIdentityOptions {
67
- jwtToken?: string;
68
- localAuthMode?: "anonymous" | "demo";
69
- localAuthToken?: string;
399
+ export type SubscriptionCallback = (delta: RuntimeSubscriptionDelta) => void;
400
+ export interface SubscriptionCallbacks {
401
+ /** Called for each native subscription delta. */
402
+ onUpdate: SubscriptionCallback;
403
+ /** Called once when the native subscription or update callback fails. */
404
+ onError?: (error: Error) => void;
70
405
  }
71
- export type LinkExternalIdentityResult = LinkExternalResponse;
406
+ export interface ConnectRuntimeOptions {
407
+ onAuthFailure?: (reason: AuthFailureReason) => void;
408
+ }
409
+ type QueryExecutionDefaultsContext = {
410
+ serverUrl?: string;
411
+ };
412
+ export declare function resolveEffectiveQueryExecutionOptions(context: QueryExecutionDefaultsContext, options?: InternalQueryExecutionOptions): ResolvedQueryExecutionOptions;
72
413
  /**
73
- * QueryBuilder-compatible input accepted by query and subscribe APIs.
414
+ * Error returned when a write fails to be persisted at a given durability tier.
74
415
  */
75
- export interface QueryInput {
76
- _build(): string;
416
+ export declare class PersistedWriteRejectedError extends Error {
417
+ readonly transactionId: TxId;
418
+ readonly code: string;
419
+ readonly reason: string;
420
+ readonly name = "PersistedWriteRejectedError";
421
+ constructor(transactionId: TxId, code: string, reason: string);
77
422
  }
78
423
  /**
79
- * Session-scoped client for backend operations.
80
- *
81
- * Created by `JazzClient.forSession()`. Allows backend applications
82
- * to perform operations as a specific user via header-based authentication.
424
+ * Error returned when waiting for a write reaches the `timeoutMs` its caller
425
+ * set. The write itself is not rejected: it stays queued and may still be
426
+ * persisted, so retrying it can duplicate it.
83
427
  */
84
- export declare class SessionClient {
85
- private client;
86
- private session;
87
- constructor(client: JazzClient, session: Session);
428
+ export declare class WriteWaitTimeoutError extends Error {
429
+ readonly tier: DurabilityTier;
430
+ readonly timeoutMs: number;
431
+ readonly name = "WriteWaitTimeoutError";
432
+ readonly code = "timeout";
433
+ constructor(tier: DurabilityTier, timeoutMs: number);
434
+ }
435
+ /** Options for waiting on a write. */
436
+ export interface WriteWaitOptions {
437
+ tier: DurabilityTier;
88
438
  /**
89
- * Create a new row as this session's user.
439
+ * Stop waiting after this many milliseconds with a
440
+ * {@link WriteWaitTimeoutError}. Without it, a wait lasts until the write
441
+ * is persisted or rejected, through any network outage and reconnect.
90
442
  */
91
- create(table: string, values: Value[]): Promise<string>;
443
+ timeoutMs?: number;
444
+ }
445
+ /** @internal Validate a caller's `timeoutMs` before any wait work starts. */
446
+ export declare function validateWriteWaitTimeout(timeoutMs: unknown): void;
447
+ /** Internal wait controls; not part of the public WriteHandle.wait options. */
448
+ export interface RuntimeWriteWaitOptions {
449
+ ready?: Promise<void>;
450
+ observeOnly?: boolean;
451
+ /** Ends the wait with `signal.reason`; the write itself is unaffected. */
452
+ signal?: AbortSignal;
453
+ }
454
+ /** @internal Configure host readiness without delaying native wait registration. */
455
+ export declare function setWriteWaitReadiness<T extends WriteHandle<unknown, unknown>>(handle: T, ready: (tier: DurabilityTier) => Promise<void>): T;
456
+ /**
457
+ * Returned by upsert, update, delete, and transaction operations.
458
+ * Allows waiting for the write to be persisted at a given durability tier.
459
+ */
460
+ export declare class WriteHandle<T = void, WaitResult = void> {
461
+ #private;
462
+ readonly value: T;
463
+ readonly txId: Promise<TxId>;
464
+ constructor(txId: TxId | Promise<TxId>, client: JazzClient, value?: T);
92
465
  /**
93
- * Update a row as this session's user.
466
+ * Wait for the write to be persisted at a given durability tier.
467
+ *
468
+ * Rejects with a {@link PersistedWriteRejectedError} if the write is rejected,
469
+ * or a {@link WriteWaitTimeoutError} once `timeoutMs` passes. Without
470
+ * `timeoutMs`, a Global wait lasts through network outages and reconnects.
94
471
  */
95
- update(objectId: string, updates: Record<string, Value>): Promise<void>;
472
+ wait(options: WriteWaitOptions): Promise<WaitResult>;
473
+ protected client(): JazzClient;
474
+ }
475
+ /**
476
+ * Returned by insert operations and auto-committed transactions.
477
+ * Allows getting the inserted value and waiting for the write
478
+ * to be persisted at a given durability tier.
479
+ */
480
+ export declare class WriteResult<T> extends WriteHandle<T, T> {
481
+ constructor(value: T, txId: TxId | Promise<TxId>, client: JazzClient);
96
482
  /**
97
- * Delete a row as this session's user.
483
+ * Wait for the write to be persisted at a given durability tier.
484
+ *
485
+ * Rejects with a {@link PersistedWriteRejectedError} if the write is rejected,
486
+ * or a {@link WriteWaitTimeoutError} once `timeoutMs` passes.
487
+ * @returns the inserted row.
98
488
  */
99
- delete(objectId: string): Promise<void>;
489
+ wait(options: WriteWaitOptions): Promise<T>;
490
+ mapValue<U>(transformValue: (value: T) => U): WriteResult<U>;
491
+ }
492
+ /**
493
+ * Returned by explicitly-committed serializable transactions.
494
+ *
495
+ * Serializable transactions are accepted or rejected by the global authority, so
496
+ * callers do not choose a durability tier when waiting for confirmation.
497
+ */
498
+ export declare class SerializableWriteHandle extends WriteHandle<void> {
100
499
  /**
101
- * Query as this session's user.
500
+ * Wait for the serializable transaction to be accepted or rejected by the authority.
501
+ *
502
+ * Rejects with a {@link PersistedWriteRejectedError} if the transaction is rejected,
503
+ * or a {@link WriteWaitTimeoutError} once `timeoutMs` passes. Without
504
+ * `timeoutMs`, the wait lasts through network outages and reconnects.
102
505
  */
103
- query(query: string | QueryInput): Promise<Row[]>;
506
+ wait(options?: {
507
+ timeoutMs?: number;
508
+ }): Promise<void>;
509
+ }
510
+ /**
511
+ * Returned by auto-committed serializable transactions.
512
+ */
513
+ export declare class SerializableWriteResult<T> extends WriteResult<T> {
104
514
  /**
105
- * Subscribe to a query as this session's user.
515
+ * Wait for the serializable transaction to be accepted or rejected by the authority.
516
+ *
517
+ * Rejects with a {@link PersistedWriteRejectedError} if the transaction is rejected,
518
+ * or a {@link WriteWaitTimeoutError} once `timeoutMs` passes.
519
+ * @returns the callback result.
106
520
  */
107
- subscribe(query: string | QueryInput, callback: SubscriptionCallback): number;
521
+ wait(options?: {
522
+ timeoutMs?: number;
523
+ }): Promise<T>;
524
+ mapValue<U>(transformValue: (value: T) => U): SerializableWriteResult<U>;
108
525
  }
526
+ /** @internal A prerequisite retained by the transaction until native opening. */
527
+ export type TransactionAdmission = () => Promise<void>;
109
528
  /**
110
- * High-level Jazz client.
529
+ * @internal Tell a client whether something renews its credential after a
530
+ * refusal. Without it, a refusal ends the client's Global waits (#3923).
111
531
  */
532
+ export declare function setCredentialRenewal(client: object, renews: (reason: AuthFailureReason) => boolean): void;
533
+ /** @internal Report a refusal that reached the host rather than the client's runtime. */
534
+ export declare function reportCredentialRefusal(client: object, reason: AuthFailureReason): void;
535
+ /** @internal Explicit opening path without per-client ambient state. */
536
+ export declare function beginClientTransactionAfter(client: JazzClient, kind: TransactionKind, session: Session | undefined, attribution: string | undefined, reservedId: OpenTransactionId | undefined, prerequisite: TransactionAdmission | undefined): OpenTransactionId;
537
+ /** High-level Jazz client. */
112
538
  export declare class JazzClient {
539
+ private readonly transactionPreparations;
113
540
  private runtime;
114
- private streamController;
115
- private serverClientId;
116
- private subscriptions;
541
+ private scheduler;
117
542
  private context;
543
+ private resolvedSession;
544
+ private shutdownPromise;
545
+ private discarded;
546
+ /** Facade-owned subscription releases, fenced against terminal reentrancy. */
547
+ private activeSubscriptionReleases;
548
+ private registerSubscriptionRelease;
549
+ private releaseSubscription;
550
+ private resolveSessionFromContext;
551
+ private buildTransportAuthPayload;
118
552
  private constructor();
119
553
  /**
120
- * Connect to Jazz with the given context.
554
+ * Create client from a pre-constructed runtime.
121
555
  *
122
- * @param context Application context with driver and schema
123
- * @returns Connected JazzClient instance
124
- */
125
- static connect(context: AppContext): Promise<JazzClient>;
126
- /**
127
- * Create client synchronously with a pre-loaded WASM module.
128
- *
129
- * Use this after loading WASM via `loadWasmModule()` to avoid
130
- * async client creation. This enables sync mutations in the Db class.
131
- *
132
- * @param wasmModule Pre-loaded WASM module from loadWasmModule()
133
- * @param context Application context with driver and schema
134
- * @returns Connected JazzClient instance (created synchronously)
135
- */
136
- static connectSync(wasmModule: WasmModule, context: AppContext): JazzClient;
137
- /**
138
- * Create client from a pre-constructed runtime (e.g., NapiRuntime).
139
- *
140
- * This allows server-side apps to use the native NAPI backend directly
141
- * without WASM loading.
556
+ * RuntimeSource implementations use this after selecting the platform runtime.
142
557
  *
143
558
  * @param runtime A runtime implementing the Runtime interface
144
559
  * @param context Application context
145
560
  * @returns Connected JazzClient instance
146
561
  */
147
- static connectWithRuntime(runtime: Runtime, context: AppContext): JazzClient;
562
+ static connectWithRuntime(runtime: Runtime, context: AppContext, runtimeOptions?: ConnectRuntimeOptions): JazzClient;
563
+ captureSnapshot(): Promise<SnapshotRef>;
564
+ beginTransaction(kind: TransactionKind, session?: Session, attribution?: string, reservedId?: OpenTransactionId): OpenTransactionId;
565
+ /** @internal Explicit prerequisite opening; named so unused clients can be tree-shaken. */
566
+ openTransaction(kind: TransactionKind, session: Session | undefined, attribution: string | undefined, reservedId: OpenTransactionId | undefined, prerequisite?: TransactionAdmission): OpenTransactionId;
567
+ /** @internal Shared across schema clients attached to one runtime owner. */
568
+ preparationOwner(): object;
569
+ /** @internal An empty policy-filtered result does not establish that a row is absent. */
570
+ readCanEstablishAbsence(session?: Session, transaction?: OpenTransactionId): boolean;
571
+ onMutationError(listener: (event: MutationErrorEvent) => void): void;
148
572
  /**
149
- * Create a session-scoped client for backend operations.
150
- *
151
- * This allows backend applications to perform operations as a specific user.
152
- * Requires `backendSecret` to be configured in the `AppContext`.
153
- *
154
- * @param session Session to impersonate
155
- * @returns SessionClient for performing operations as the given user
156
- * @throws Error if backendSecret is not configured
157
- *
158
- * @example
159
- * ```typescript
160
- * const userSession = { user_id: "user-123", claims: {} };
161
- * const userClient = client.forSession(userSession);
162
- * const id = await userClient.create("todos", [{ type: "Text", value: "Buy milk" }]);
163
- * ```
573
+ * @internal Register deferred physical preparation before returning a mutation.
574
+ * Callbacks must use the underlying runtime, not re-enter this client's
575
+ * transaction reads or commit (which wait for the registered preparation).
164
576
  */
165
- forSession(session: Session): SessionClient;
577
+ prepareTransaction(id: OpenTransactionId, prepare: (io: TransactionPreparationIO) => Promise<void>): Promise<void>;
578
+ private stageMutation;
579
+ private stageRowMutation;
580
+ /** @internal Prepare a return value without publishing or staging a physical row. */
581
+ previewInsertInternal(table: string, values: InsertValues, objectId?: string): Row;
582
+ commitTransaction(id: OpenTransactionId): WriteHandle;
583
+ rollbackTransaction(id: OpenTransactionId): Promise<boolean>;
166
584
  /**
167
- * Create a session-scoped client from an authenticated HTTP request.
168
- *
169
- * Extracts `Authorization: Bearer <jwt>` and maps payload fields:
170
- * - `sub` -> `session.user_id`
171
- * - `claims` -> `session.claims` (defaults to `{}`)
585
+ * Enable backend-scoped sync auth for this client.
172
586
  *
173
- * This helper only extracts payload fields and does not validate JWT signatures.
174
- * JWT verification should happen in your auth middleware before request handling.
587
+ * In backend mode, sync/event transport uses `X-Jazz-Backend-Secret` instead
588
+ * of end-user auth headers and intentionally does not send admin headers.
175
589
  */
176
- forRequest(request: RequestLike): SessionClient;
590
+ asBackend(): JazzClient;
177
591
  /**
178
- * Insert a new row into a table (sync, fire-and-forget).
179
- *
180
- * @param table Table name
181
- * @param values Array of column values
182
- * @returns The new row's ID (UUID string)
592
+ * @internal The server refused this client's credential. A refusal the app
593
+ * renews holds Global waits until the new credential reconnects, as an
594
+ * outage does; with nothing to renew it, the runtime ends them and its
595
+ * remote subscriptions as a terminal failure (#3923).
183
596
  */
184
- create(table: string, values: Value[]): string;
597
+ handleCredentialRefusal(reason: AuthFailureReason): void;
598
+ private updateAuthSnapshot;
599
+ updateAuthToken(jwtToken?: string): void;
600
+ /** @internal Accept an auth update already applied by the owning connection. */
601
+ acceptAuthUpdate(update: AuthUpdate): void;
602
+ /** @internal Update a token minted by a dedicated first-party reserved auth flow. */
603
+ updateTrustedAuthToken(jwtToken: string, session: Session): void;
604
+ updateCookieSession(cookieSession?: Session): void;
605
+ private normalizeQueryExecutionOptions;
185
606
  /**
186
- * Insert a row and wait for acknowledgement at the specified tier.
187
- *
188
- * @param table Table name
189
- * @param values Array of column values
190
- * @param tier Acknowledgement tier to wait for
191
- * @returns Promise resolving to the new row's ID when the tier acknowledges
607
+ * Resolve the writing session and encode the runtime write context. An
608
+ * insert/restore branch selector is lowered to a head-only branch view.
192
609
  */
193
- createWithAck(table: string, values: Value[], tier: PersistenceTier): Promise<string>;
610
+ private writeContext;
194
611
  /**
195
- * Execute a query and return all matching rows.
196
- *
197
- * @param query Query builder or JSON-encoded query specification
198
- * @param settledTier Optional tier to hold delivery until confirmed
199
- * @returns Array of matching rows
612
+ * Insert a new row into a table without waiting for durability.
200
613
  */
201
- query(query: string | QueryInput, settledTier?: PersistenceTier): Promise<Row[]>;
614
+ insert(table: string, values: InsertValues, options?: InsertOptions, session?: Session, attribution?: string): WriteResult<Row>;
202
615
  /**
203
- * Internal query with optional session and settled tier.
204
- * @internal
616
+ * Consume one host byte/text stream and atomically insert the resulting
617
+ * scalar with the other row values. The streamed value is intentionally not
618
+ * copied back into the returned handle.
205
619
  */
206
- queryInternal(queryJson: string, session?: Session, settledTier?: PersistenceTier): Promise<Row[]>;
620
+ insertStreaming(table: string, values: InsertValues, column: string, source: StreamingValueSource, options?: InsertOptions, session?: Session, attribution?: string): Promise<WriteHandle<{
621
+ id: string;
622
+ }>>;
623
+ updateStreaming(table: string, objectId: string, values: InsertValues, column: string, source: StreamingValueSource, options?: UpdateOptions, session?: Session, attribution?: string): Promise<WriteHandle<{
624
+ id: string;
625
+ }>>;
626
+ upsertStreaming(table: string, objectId: string, values: InsertValues, column: string, source: StreamingValueSource, options?: UpdateOptions, session?: Session, attribution?: string): Promise<WriteHandle<{
627
+ id: string;
628
+ }>>;
629
+ private streamingMutation;
207
630
  /**
208
- * Update a row by ID (sync, fire-and-forget).
209
- *
210
- * @param objectId Row ID (UUID string)
211
- * @param updates Object mapping column names to new values
631
+ * @internal Stage a streamed mutation in open transaction
632
+ * `openTransactionId`; it commits with the transaction.
212
633
  */
213
- update(objectId: string, updates: Record<string, Value>): void;
634
+ streamingMutationInTransaction(mutation: StreamingMutationKind, table: string, values: InsertValues, column: string, source: StreamingValueSource, openTransactionId: OpenTransactionId, options?: InsertOptions | UpdateOptions, session?: Session, attribution?: string, objectId?: string): Promise<{
635
+ id: string;
636
+ }>;
637
+ private runStreamingMutation;
214
638
  /**
215
- * Update a row and wait for acknowledgement at the specified tier.
639
+ * @internal
216
640
  */
217
- updateWithAck(objectId: string, updates: Record<string, Value>, tier: PersistenceTier): Promise<void>;
641
+ insertInternal(table: string, values: InsertValues, options?: InsertOptions, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId): InsertResult;
218
642
  /**
219
- * Delete a row by ID (sync, fire-and-forget).
220
- *
221
- * @param objectId Row ID (UUID string)
643
+ * Restore a soft-deleted row with a caller-supplied id without waiting for durability.
222
644
  */
223
- delete(objectId: string): void;
645
+ restore(table: string, objectId: string, values: InsertValues, options?: RestoreOptions, session?: Session, attribution?: string): WriteResult<Row>;
224
646
  /**
225
- * Delete a row and wait for acknowledgement at the specified tier.
647
+ * @internal
226
648
  */
227
- deleteWithAck(objectId: string, tier: PersistenceTier): Promise<void>;
649
+ restoreInternal(table: string, objectId: string, values: InsertValues, options?: RestoreOptions, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId): InsertResult;
228
650
  /**
229
- * Subscribe to a query and receive updates when results change.
230
- *
231
- * @param query Query builder or JSON-encoded query specification
232
- * @param callback Called with delta whenever results change
233
- * @param settledTier Optional tier to hold initial delivery until confirmed
234
- * @returns Subscription ID for unsubscribing
651
+ * Create or update a row with a caller-supplied id without waiting for durability.
235
652
  */
236
- subscribe(query: string | QueryInput, callback: SubscriptionCallback, settledTier?: PersistenceTier): number;
653
+ upsert(table: string, objectId: string, values: InsertValues, options?: UpdateOptions, session?: Session, attribution?: string): WriteHandle;
237
654
  /**
238
- * Internal subscribe with optional session and settled tier.
239
655
  * @internal
240
656
  */
241
- subscribeInternal(query: string | QueryInput, callback: SubscriptionCallback, session?: Session, settledTier?: PersistenceTier): number;
657
+ upsertInternal(table: string, objectId: string, values: InsertValues, options?: UpdateOptions, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId): MutationResult;
242
658
  /**
243
- * Unsubscribe from a query.
659
+ * Execute a query and return all matching rows.
244
660
  *
245
- * @param subscriptionId ID returned from subscribe()
661
+ * @param query JSON-encoded runtime query specification
662
+ * @param options Optional read durability options
663
+ * @returns Array of matching rows
246
664
  */
247
- unsubscribe(subscriptionId: number): void;
665
+ query(query: string, options?: QueryExecutionOptions, session?: Session): Promise<Row[]>;
666
+ /** @internal */
667
+ queryInternal(query: string, options?: InternalQueryExecutionOptions, session?: Session): Promise<Row[]>;
668
+ private queryWithoutPreparation;
248
669
  /**
249
- * Get the current schema.
670
+ * Update a row by ID without waiting for durability.
250
671
  */
251
- getSchema(): WasmSchema;
672
+ update(table: string, objectId: string, updates: Record<string, Value>, options?: UpdateOptions, session?: Session, attribution?: string): WriteHandle;
673
+ /** @internal Typed `Db.update` diff lowering; not exposed as an imperative API. */
674
+ updateLargeValues(table: string, objectId: string, updates: Record<string, Value>, descriptors: readonly unknown[], options?: UpdateOptions, session?: Session, attribution?: string): WriteHandle;
675
+ /** @internal */
676
+ updateLargeValuesInternal(table: string, objectId: string, updates: Record<string, Value>, descriptors: readonly unknown[], updatedAt?: number, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId, branch?: BranchView): MutationResult;
252
677
  /**
253
- * Get the underlying runtime (for WorkerBridge).
254
678
  * @internal
255
679
  */
256
- getRuntime(): Runtime;
680
+ updateInternal(table: string, objectId: string, updates: Record<string, Value>, updatedAt?: number, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId, branch?: BranchView): MutationResult;
257
681
  /**
258
- * Get the server URL (for SessionClient).
259
- * @internal
682
+ * Delete a row by ID without waiting for durability.
260
683
  */
261
- getServerUrl(): string | undefined;
684
+ delete(table: string, objectId: string, options?: DeleteOptions, session?: Session, attribution?: string): WriteHandle;
685
+ canInsertLocally(table: string, values: InsertValues, session?: Session): PermissionAdvice;
686
+ canReadLocally(table: string, objectId: string, session?: Session): PermissionAdvice;
687
+ canUpdateLocally(table: string, objectId: string, values: Record<string, Value>, session?: Session): PermissionAdvice;
688
+ canDeleteLocally(table: string, objectId: string, session?: Session): PermissionAdvice;
689
+ requestInsertPermissionAdvice(table: string, values: InsertValues, session?: Session): Promise<PermissionAdvice>;
690
+ requestReadPermissionAdvice(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
691
+ requestUpdatePermissionAdvice(table: string, objectId: string, values: Record<string, Value>, session?: Session): Promise<PermissionAdvice>;
692
+ requestDeletePermissionAdvice(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
262
693
  /**
263
- * Build a fully-qualified endpoint URL against the configured server.
264
694
  * @internal
265
695
  */
266
- getRequestUrl(path: string): string;
696
+ deleteInternal(table: string, objectId: string, updatedAt?: number, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId, branch?: BranchView): MutationResult;
267
697
  /**
268
- * Get schema context for server requests.
269
- * @internal
698
+ * Subscribe to a query and receive updates when results change.
699
+ *
700
+ * @param callbacks Delta callback, or callbacks object with terminal error handling.
701
+ * Legacy function-form subscriptions report terminal failures to `console.error`.
702
+ * @param options Optional read durability options
703
+ * @returns Subscription ID for unsubscribing
270
704
  */
271
- getSchemaContext(): {
272
- env: string;
273
- schema_hash: string;
274
- user_branch: string;
275
- };
705
+ subscribe(query: string, callbacks: SubscriptionCallback | SubscriptionCallbacks, options?: QueryExecutionOptions, session?: Session): number;
706
+ /** @internal */
707
+ subscribeInternal(query: string, callbacks: SubscriptionCallback | SubscriptionCallbacks, options?: InternalQueryExecutionOptions, session?: Session): number;
276
708
  /**
277
- * Send an HTTP request with appropriate auth headers.
278
- * @internal
709
+ * Unsubscribe from a query.
710
+ *
711
+ * @param subscriptionId ID returned from subscribe()
279
712
  */
280
- sendRequest(url: string, method: string, body: unknown, session?: Session): Promise<Response>;
713
+ unsubscribe(subscriptionId: number): void;
281
714
  /**
282
- * Link an anonymous/demo local principal to an external JWT identity.
715
+ * Connect to a Jazz server over WebSocket using the Rust transport layer.
283
716
  *
284
- * Requires all three auth fields:
285
- * - `jwtToken`
286
- * - `localAuthMode`
287
- * - `localAuthToken`
717
+ * Accepts an HTTP/HTTPS server URL (e.g. "http://localhost:4000") and
718
+ * converts it to the corresponding WebSocket `/ws` endpoint URL before
719
+ * passing it to the underlying Rust runtime's `connect()`. Already-WS URLs
720
+ * are passed through unchanged.
288
721
  *
289
- * Values default to the current AppContext auth fields unless overridden.
722
+ * @param url Server URL — http(s):// or ws(s)://. `/apps/<appId>/ws` is appended automatically.
723
+ * @param auth Authentication credentials for the connection.
290
724
  */
291
- linkExternalIdentity(options?: LinkExternalIdentityOptions): Promise<LinkExternalIdentityResult>;
725
+ connectTransport(url: string, auth: AuthConfig): void;
726
+ /**
727
+ * Temporarily disconnect from the Jazz server without closing local runtime state.
728
+ */
729
+ disconnectTransport(): Promise<void>;
730
+ /**
731
+ * Get the current schema.
732
+ */
733
+ getSchema(): WasmSchema;
734
+ /** @internal Connection managers use this to attach native peer transports. */
735
+ getRuntime(): Runtime;
736
+ waitForTransaction(txId: TxId | Promise<TxId>, tier: DurabilityTier, ready?: Promise<void>, timeoutMs?: number): Promise<void>;
737
+ /** @internal */
738
+ waitForSerializableTransaction(txId: TxId | Promise<TxId>, timeoutMs?: number): Promise<void>;
739
+ private normalizeTransactionWaitError;
292
740
  /**
293
741
  * Shutdown the client and release resources.
294
742
  */
295
743
  shutdown(): Promise<void>;
296
- private setupSync;
297
- private sendSyncMessage;
744
+ /** @internal Abandon runtime work after external storage invalidation/reset. */
745
+ discard(): void;
746
+ clearClientStorage(): Promise<void>;
298
747
  }
299
- /**
300
- * WASM module type for sync client creation.
301
- * This is the type of the jazz-wasm module after dynamic import.
302
- */
303
- export type WasmModule = typeof import("jazz-wasm");
304
- /**
305
- * Load and initialize the WASM module.
306
- *
307
- * Exported so that `createDb()` can pre-load the module for sync mutations.
308
- */
309
- export declare function loadWasmModule(): Promise<WasmModule>;
748
+ export {};
310
749
  //# sourceMappingURL=client.d.ts.map