jazz-tools 2.0.0-alpha.7 → 2.0.0-alpha.70

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 (1928) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +135 -7
  3. package/bin/jazz-tools.js +101 -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 +246 -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 +236 -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 +57 -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 +95 -0
  41. package/dist/accounts/enrollment.d.ts.map +1 -0
  42. package/dist/accounts/enrollment.js +314 -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 +17 -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 +79 -0
  53. package/dist/accounts/persistence.d.ts.map +1 -0
  54. package/dist/accounts/persistence.js +533 -0
  55. package/dist/accounts/persistence.js.map +1 -0
  56. package/dist/accounts/process-store.d.ts +27 -0
  57. package/dist/accounts/process-store.d.ts.map +1 -0
  58. package/dist/accounts/process-store.js +49 -0
  59. package/dist/accounts/process-store.js.map +1 -0
  60. package/dist/accounts/registry-client.d.ts +79 -0
  61. package/dist/accounts/registry-client.d.ts.map +1 -0
  62. package/dist/accounts/registry-client.js +153 -0
  63. package/dist/accounts/registry-client.js.map +1 -0
  64. package/dist/accounts/state.d.ts +76 -0
  65. package/dist/accounts/state.d.ts.map +1 -0
  66. package/dist/accounts/state.js +172 -0
  67. package/dist/accounts/state.js.map +1 -0
  68. package/dist/app-file-enums.d.ts +9 -0
  69. package/dist/app-file-enums.d.ts.map +1 -0
  70. package/dist/app-file-enums.js +34 -0
  71. package/dist/app-file-enums.js.map +1 -0
  72. package/dist/authoring.d.ts +9 -0
  73. package/dist/authoring.d.ts.map +1 -0
  74. package/dist/authoring.js +9 -0
  75. package/dist/authoring.js.map +1 -0
  76. package/dist/backend/admission.d.ts +28 -0
  77. package/dist/backend/admission.d.ts.map +1 -0
  78. package/dist/backend/admission.js +146 -0
  79. package/dist/backend/admission.js.map +1 -0
  80. package/dist/backend/api.d.ts +13 -0
  81. package/dist/backend/api.d.ts.map +1 -0
  82. package/dist/backend/api.js +13 -0
  83. package/dist/backend/api.js.map +1 -0
  84. package/dist/backend/backend-clients.d.ts +76 -0
  85. package/dist/backend/backend-clients.d.ts.map +1 -0
  86. package/dist/backend/backend-clients.js +237 -0
  87. package/dist/backend/backend-clients.js.map +1 -0
  88. package/dist/backend/backend-issuer.d.ts +6 -0
  89. package/dist/backend/backend-issuer.d.ts.map +1 -0
  90. package/dist/backend/backend-issuer.js +6 -0
  91. package/dist/backend/backend-issuer.js.map +1 -0
  92. package/dist/backend/backend-native.d.ts +40 -0
  93. package/dist/backend/backend-native.d.ts.map +1 -0
  94. package/dist/backend/backend-native.js +37 -0
  95. package/dist/backend/backend-native.js.map +1 -0
  96. package/dist/backend/blobs.d.ts +130 -0
  97. package/dist/backend/blobs.d.ts.map +1 -0
  98. package/dist/backend/blobs.js +132 -0
  99. package/dist/backend/blobs.js.map +1 -0
  100. package/dist/backend/core-transport.d.ts +61 -0
  101. package/dist/backend/core-transport.d.ts.map +1 -0
  102. package/dist/backend/core-transport.js +106 -0
  103. package/dist/backend/core-transport.js.map +1 -0
  104. package/dist/backend/create-jazz-context.d.ts +123 -0
  105. package/dist/backend/create-jazz-context.d.ts.map +1 -0
  106. package/dist/backend/create-jazz-context.js +716 -0
  107. package/dist/backend/create-jazz-context.js.map +1 -0
  108. package/dist/backend/create-jazz-session.d.ts +125 -0
  109. package/dist/backend/create-jazz-session.d.ts.map +1 -0
  110. package/dist/backend/create-jazz-session.js +528 -0
  111. package/dist/backend/create-jazz-session.js.map +1 -0
  112. package/dist/backend/create-jazz.d.ts +683 -0
  113. package/dist/backend/create-jazz.d.ts.map +1 -0
  114. package/dist/backend/create-jazz.js +4076 -0
  115. package/dist/backend/create-jazz.js.map +1 -0
  116. package/dist/backend/early-db.d.ts +29 -0
  117. package/dist/backend/early-db.d.ts.map +1 -0
  118. package/dist/backend/early-db.js +203 -0
  119. package/dist/backend/early-db.js.map +1 -0
  120. package/dist/backend/external-jwt.d.ts +27 -0
  121. package/dist/backend/external-jwt.d.ts.map +1 -0
  122. package/dist/backend/external-jwt.js +404 -0
  123. package/dist/backend/external-jwt.js.map +1 -0
  124. package/dist/backend/from-jwt.d.ts +64 -0
  125. package/dist/backend/from-jwt.d.ts.map +1 -0
  126. package/dist/backend/from-jwt.js +104 -0
  127. package/dist/backend/from-jwt.js.map +1 -0
  128. package/dist/backend/index.d.ts +6 -1
  129. package/dist/backend/index.d.ts.map +1 -1
  130. package/dist/backend/index.js +18 -1
  131. package/dist/backend/index.js.map +1 -1
  132. package/dist/backend/inspect-ui.d.ts +14 -0
  133. package/dist/backend/inspect-ui.d.ts.map +1 -0
  134. package/dist/backend/inspect-ui.js +156 -0
  135. package/dist/backend/inspect-ui.js.map +1 -0
  136. package/dist/backend/inspect.d.ts +133 -0
  137. package/dist/backend/inspect.d.ts.map +1 -0
  138. package/dist/backend/inspect.js +1001 -0
  139. package/dist/backend/inspect.js.map +1 -0
  140. package/dist/backend/inspector-ui/0.js +2 -0
  141. package/dist/backend/inspector-ui/1.js +2 -0
  142. package/dist/backend/inspector-ui/10.js +2 -0
  143. package/dist/backend/inspector-ui/11.js +2 -0
  144. package/dist/backend/inspector-ui/12.js +2 -0
  145. package/dist/backend/inspector-ui/13.js +2 -0
  146. package/dist/backend/inspector-ui/14.js +2 -0
  147. package/dist/backend/inspector-ui/15.js +2 -0
  148. package/dist/backend/inspector-ui/16.js +2 -0
  149. package/dist/backend/inspector-ui/17.js +2 -0
  150. package/dist/backend/inspector-ui/18.js +2 -0
  151. package/dist/backend/inspector-ui/19.js +2 -0
  152. package/dist/backend/inspector-ui/2.js +2 -0
  153. package/dist/backend/inspector-ui/20.js +2 -0
  154. package/dist/backend/inspector-ui/21.js +2 -0
  155. package/dist/backend/inspector-ui/3.js +2 -0
  156. package/dist/backend/inspector-ui/4.js +2 -0
  157. package/dist/backend/inspector-ui/5.js +2 -0
  158. package/dist/backend/inspector-ui/6.js +2 -0
  159. package/dist/backend/inspector-ui/7.js +2 -0
  160. package/dist/backend/inspector-ui/8.js +2 -0
  161. package/dist/backend/inspector-ui/9.js +2 -0
  162. package/dist/backend/inspector-ui-files.d.ts +4 -0
  163. package/dist/backend/inspector-ui-files.d.ts.map +1 -0
  164. package/dist/backend/inspector-ui-files.js +26 -0
  165. package/dist/backend/no-account-error.d.ts +23 -0
  166. package/dist/backend/no-account-error.d.ts.map +1 -0
  167. package/dist/backend/no-account-error.js +30 -0
  168. package/dist/backend/no-account-error.js.map +1 -0
  169. package/dist/backend/node-native.d.ts +3 -0
  170. package/dist/backend/node-native.d.ts.map +1 -0
  171. package/dist/backend/node-native.js +19 -0
  172. package/dist/backend/node-native.js.map +1 -0
  173. package/dist/backend/node-peers.d.ts +10 -0
  174. package/dist/backend/node-peers.d.ts.map +1 -0
  175. package/dist/backend/node-peers.js +37 -0
  176. package/dist/backend/node-peers.js.map +1 -0
  177. package/dist/backend/optional-peer.d.ts +9 -0
  178. package/dist/backend/optional-peer.d.ts.map +1 -0
  179. package/dist/backend/optional-peer.js +24 -0
  180. package/dist/backend/optional-peer.js.map +1 -0
  181. package/dist/backend/request-auth.d.ts +69 -0
  182. package/dist/backend/request-auth.d.ts.map +1 -0
  183. package/dist/backend/request-auth.js +122 -0
  184. package/dist/backend/request-auth.js.map +1 -0
  185. package/dist/backend/session-expiry.d.ts +61 -0
  186. package/dist/backend/session-expiry.d.ts.map +1 -0
  187. package/dist/backend/session-expiry.js +102 -0
  188. package/dist/backend/session-expiry.js.map +1 -0
  189. package/dist/backend/signing-key.d.ts +32 -0
  190. package/dist/backend/signing-key.d.ts.map +1 -0
  191. package/dist/backend/signing-key.js +63 -0
  192. package/dist/backend/signing-key.js.map +1 -0
  193. package/dist/backend/socket-deadline.d.ts +23 -0
  194. package/dist/backend/socket-deadline.d.ts.map +1 -0
  195. package/dist/backend/socket-deadline.js +70 -0
  196. package/dist/backend/socket-deadline.js.map +1 -0
  197. package/dist/backend/store-log.d.ts +3 -0
  198. package/dist/backend/store-log.d.ts.map +1 -0
  199. package/dist/backend/store-log.js +16 -0
  200. package/dist/backend/store-log.js.map +1 -0
  201. package/dist/backend/thin-relay.d.ts +66 -0
  202. package/dist/backend/thin-relay.d.ts.map +1 -0
  203. package/dist/backend/thin-relay.js +204 -0
  204. package/dist/backend/thin-relay.js.map +1 -0
  205. package/dist/backend/thin-session-client.d.ts +23 -0
  206. package/dist/backend/thin-session-client.d.ts.map +1 -0
  207. package/dist/backend/thin-session-client.js +69 -0
  208. package/dist/backend/thin-session-client.js.map +1 -0
  209. package/dist/backend/upgrade-status.d.ts +19 -0
  210. package/dist/backend/upgrade-status.d.ts.map +1 -0
  211. package/dist/backend/upgrade-status.js +55 -0
  212. package/dist/backend/upgrade-status.js.map +1 -0
  213. package/dist/backend/vercel-store.d.ts +345 -0
  214. package/dist/backend/vercel-store.d.ts.map +1 -0
  215. package/dist/backend/vercel-store.js +1387 -0
  216. package/dist/backend/vercel-store.js.map +1 -0
  217. package/dist/backend/workerd-backend.d.ts +36 -0
  218. package/dist/backend/workerd-backend.d.ts.map +1 -0
  219. package/dist/backend/workerd-backend.js +97 -0
  220. package/dist/backend/workerd-backend.js.map +1 -0
  221. package/dist/backend/workerd.d.ts +3 -0
  222. package/dist/backend/workerd.d.ts.map +1 -0
  223. package/dist/backend/workerd.js +39 -0
  224. package/dist/backend/workerd.js.map +1 -0
  225. package/dist/backend/ws-peer.d.ts +32 -0
  226. package/dist/backend/ws-peer.d.ts.map +1 -0
  227. package/dist/backend/ws-peer.js +41 -0
  228. package/dist/backend/ws-peer.js.map +1 -0
  229. package/dist/better-auth-adapter/fixtures/app.d.ts +151 -0
  230. package/dist/better-auth-adapter/fixtures/app.d.ts.map +1 -0
  231. package/dist/better-auth-adapter/fixtures/app.js +13 -0
  232. package/dist/better-auth-adapter/fixtures/app.js.map +1 -0
  233. package/dist/better-auth-adapter/fixtures/issuer-upgrade.d.ts +20 -0
  234. package/dist/better-auth-adapter/fixtures/issuer-upgrade.d.ts.map +1 -0
  235. package/dist/better-auth-adapter/fixtures/issuer-upgrade.js +27 -0
  236. package/dist/better-auth-adapter/fixtures/issuer-upgrade.js.map +1 -0
  237. package/dist/better-auth-adapter/index.d.ts +13 -0
  238. package/dist/better-auth-adapter/index.d.ts.map +1 -0
  239. package/dist/better-auth-adapter/index.js +406 -0
  240. package/dist/better-auth-adapter/index.js.map +1 -0
  241. package/dist/better-auth-adapter/indexes.d.ts +9 -0
  242. package/dist/better-auth-adapter/indexes.d.ts.map +1 -0
  243. package/dist/better-auth-adapter/indexes.js +40 -0
  244. package/dist/better-auth-adapter/indexes.js.map +1 -0
  245. package/dist/better-auth-adapter/schema.d.ts +88 -0
  246. package/dist/better-auth-adapter/schema.d.ts.map +1 -0
  247. package/dist/better-auth-adapter/schema.js +332 -0
  248. package/dist/better-auth-adapter/schema.js.map +1 -0
  249. package/dist/better-auth-adapter/types.d.ts +13 -0
  250. package/dist/better-auth-adapter/types.d.ts.map +1 -0
  251. package/dist/better-auth-adapter/types.js +2 -0
  252. package/dist/better-auth-adapter/types.js.map +1 -0
  253. package/dist/better-auth-adapter/utils.d.ts +53 -0
  254. package/dist/better-auth-adapter/utils.d.ts.map +1 -0
  255. package/dist/better-auth-adapter/utils.js +126 -0
  256. package/dist/better-auth-adapter/utils.js.map +1 -0
  257. package/dist/browser-benchmark-mode.d.ts +6 -0
  258. package/dist/browser-benchmark-mode.d.ts.map +1 -0
  259. package/dist/browser-benchmark-mode.js +13 -0
  260. package/dist/browser-benchmark-mode.js.map +1 -0
  261. package/dist/classic-api.d.ts +59 -0
  262. package/dist/classic-api.d.ts.map +1 -0
  263. package/dist/classic-api.js +122 -0
  264. package/dist/classic-api.js.map +1 -0
  265. package/dist/cli.d.ts +39 -2
  266. package/dist/cli.d.ts.map +1 -1
  267. package/dist/cli.js +471 -265
  268. package/dist/cli.js.map +1 -1
  269. package/dist/client/index.d.ts +10 -0
  270. package/dist/client/index.d.ts.map +1 -0
  271. package/dist/client/index.js +7 -0
  272. package/dist/client/index.js.map +1 -0
  273. package/dist/cloud/api.d.ts +11 -0
  274. package/dist/cloud/api.d.ts.map +1 -0
  275. package/dist/cloud/api.js +46 -0
  276. package/dist/cloud/api.js.map +1 -0
  277. package/dist/cloud/commands.d.ts +13 -0
  278. package/dist/cloud/commands.d.ts.map +1 -0
  279. package/dist/cloud/commands.js +425 -0
  280. package/dist/cloud/commands.js.map +1 -0
  281. package/dist/cloud/credentials.d.ts +49 -0
  282. package/dist/cloud/credentials.d.ts.map +1 -0
  283. package/dist/cloud/credentials.js +219 -0
  284. package/dist/cloud/credentials.js.map +1 -0
  285. package/dist/cloud/session.d.ts +57 -0
  286. package/dist/cloud/session.d.ts.map +1 -0
  287. package/dist/cloud/session.js +269 -0
  288. package/dist/cloud/session.js.map +1 -0
  289. package/dist/codegen/relation-analyzer.d.ts +5 -12
  290. package/dist/codegen/relation-analyzer.d.ts.map +1 -1
  291. package/dist/codegen/relation-analyzer.js +54 -65
  292. package/dist/codegen/relation-analyzer.js.map +1 -1
  293. package/dist/dev/app-files.d.ts +32 -0
  294. package/dist/dev/app-files.d.ts.map +1 -0
  295. package/dist/dev/app-files.js +72 -0
  296. package/dist/dev/app-files.js.map +1 -0
  297. package/dist/dev/catalogue-api.d.ts +147 -0
  298. package/dist/dev/catalogue-api.d.ts.map +1 -0
  299. package/dist/dev/catalogue-api.js +130 -0
  300. package/dist/dev/catalogue-api.js.map +1 -0
  301. package/dist/dev/catalogue.d.ts +69 -0
  302. package/dist/dev/catalogue.d.ts.map +1 -0
  303. package/dist/dev/catalogue.js +70 -0
  304. package/dist/dev/catalogue.js.map +1 -0
  305. package/dist/dev/codegen-napi.d.ts +139 -0
  306. package/dist/dev/codegen-napi.d.ts.map +1 -0
  307. package/dist/dev/codegen-napi.js +157 -0
  308. package/dist/dev/codegen-napi.js.map +1 -0
  309. package/dist/dev/dev-server.d.ts +62 -0
  310. package/dist/dev/dev-server.d.ts.map +1 -0
  311. package/dist/dev/dev-server.js +164 -0
  312. package/dist/dev/dev-server.js.map +1 -0
  313. package/dist/dev/index.d.ts +3 -0
  314. package/dist/dev/index.d.ts.map +1 -0
  315. package/dist/dev/index.js +3 -0
  316. package/dist/dev/index.js.map +1 -0
  317. package/dist/dev/inspector-overlay/browser-control-registry.d.ts +10 -0
  318. package/dist/dev/inspector-overlay/browser-control-registry.d.ts.map +1 -0
  319. package/dist/dev/inspector-overlay/browser-control-registry.js +188 -0
  320. package/dist/dev/inspector-overlay/browser-control-registry.js.map +1 -0
  321. package/dist/dev/inspector-overlay/embedded/assets/ExportResult-C0ZojfNk.js +1 -0
  322. package/dist/dev/inspector-overlay/embedded/assets/backend-0Idv0niF.js +1 -0
  323. package/dist/dev/inspector-overlay/embedded/assets/backend-DHeT1LCS.css +1 -0
  324. package/dist/dev/inspector-overlay/embedded/assets/create-legacy-browser-delegate-DeI8PAZ5.js +1 -0
  325. package/dist/dev/inspector-overlay/embedded/assets/diag-api-3Z_Eel3W.js +1 -0
  326. package/dist/dev/inspector-overlay/embedded/assets/esm-BB6DtWpZ.js +1 -0
  327. package/dist/dev/inspector-overlay/embedded/assets/esm-B_xpsQL2.js +1 -0
  328. package/dist/dev/inspector-overlay/embedded/assets/esm-CE7mSo95.js +1 -0
  329. package/dist/dev/inspector-overlay/embedded/assets/esm-CcBEG-yV.js +1 -0
  330. package/dist/dev/inspector-overlay/embedded/assets/esm-DZrCzNXM.js +1 -0
  331. package/dist/dev/inspector-overlay/embedded/assets/esm-k373aadI.js +1 -0
  332. package/dist/dev/inspector-overlay/embedded/assets/index-D3RK8wNj.js +5 -0
  333. package/dist/dev/inspector-overlay/embedded/assets/jazz-broker-worker-EyaWhBtz.js +5 -0
  334. package/dist/dev/inspector-overlay/embedded/assets/jazz_wasm-O10pptvY.js +1 -0
  335. package/dist/dev/inspector-overlay/embedded/assets/jazz_wasm_bg-wI43fvvq.wasm +0 -0
  336. package/dist/dev/inspector-overlay/embedded/assets/node-foreground-node-lease.browser-2mfp13Qb.js +1 -0
  337. package/dist/dev/inspector-overlay/embedded/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  338. package/dist/dev/inspector-overlay/embedded/assets/src-4JwhxZaW.js +16 -0
  339. package/dist/dev/inspector-overlay/embedded/assets/src-Cq8gSOLx.css +1 -0
  340. package/dist/dev/inspector-overlay/embedded/backend.html +17 -0
  341. package/dist/dev/inspector-overlay/embedded/embedded.html +15 -0
  342. package/dist/dev/inspector-overlay/embedded/favicon.ico +0 -0
  343. package/dist/dev/inspector-overlay/host-bridge.d.ts +8 -0
  344. package/dist/dev/inspector-overlay/host-bridge.d.ts.map +1 -0
  345. package/dist/dev/inspector-overlay/host-bridge.js +139 -0
  346. package/dist/dev/inspector-overlay/host-bridge.js.map +1 -0
  347. package/dist/dev/inspector-overlay/inspector-host-types.d.ts +35 -0
  348. package/dist/dev/inspector-overlay/inspector-host-types.d.ts.map +1 -0
  349. package/dist/dev/inspector-overlay/inspector-host-types.js +10 -0
  350. package/dist/dev/inspector-overlay/inspector-host-types.js.map +1 -0
  351. package/dist/dev/inspector-overlay/loader.d.ts +24 -0
  352. package/dist/dev/inspector-overlay/loader.d.ts.map +1 -0
  353. package/dist/dev/inspector-overlay/loader.js +533 -0
  354. package/dist/dev/inspector-overlay/loader.js.map +1 -0
  355. package/dist/dev/migration-graph.d.ts +32 -0
  356. package/dist/dev/migration-graph.d.ts.map +1 -0
  357. package/dist/dev/migration-graph.js +136 -0
  358. package/dist/dev/migration-graph.js.map +1 -0
  359. package/dist/dev/migrations.d.ts +145 -0
  360. package/dist/dev/migrations.d.ts.map +1 -0
  361. package/dist/dev/migrations.js +700 -0
  362. package/dist/dev/migrations.js.map +1 -0
  363. package/dist/dev/project.d.ts +65 -0
  364. package/dist/dev/project.d.ts.map +1 -0
  365. package/dist/dev/project.js +179 -0
  366. package/dist/dev/project.js.map +1 -0
  367. package/dist/dev/schema-utils.d.ts +8 -0
  368. package/dist/dev/schema-utils.d.ts.map +1 -0
  369. package/dist/dev/schema-utils.js +75 -0
  370. package/dist/dev/schema-utils.js.map +1 -0
  371. package/dist/dev/schema-validation.d.ts +5 -0
  372. package/dist/dev/schema-validation.d.ts.map +1 -0
  373. package/dist/dev/schema-validation.js +11 -0
  374. package/dist/dev/schema-validation.js.map +1 -0
  375. package/dist/dev/ts-project.d.ts +77 -0
  376. package/dist/dev/ts-project.d.ts.map +1 -0
  377. package/dist/dev/ts-project.js +190 -0
  378. package/dist/dev/ts-project.js.map +1 -0
  379. package/dist/drivers/index.d.ts +1 -1
  380. package/dist/drivers/index.d.ts.map +1 -1
  381. package/dist/drivers/index.js.map +1 -1
  382. package/dist/drivers/schema-wire.d.ts +21 -0
  383. package/dist/drivers/schema-wire.d.ts.map +1 -0
  384. package/dist/drivers/schema-wire.js +67 -0
  385. package/dist/drivers/schema-wire.js.map +1 -0
  386. package/dist/drivers/types.d.ts +315 -45
  387. package/dist/drivers/types.d.ts.map +1 -1
  388. package/dist/drivers/types.js +5 -4
  389. package/dist/drivers/types.js.map +1 -1
  390. package/dist/dsl.d.ts +276 -121
  391. package/dist/dsl.d.ts.map +1 -1
  392. package/dist/dsl.js +196 -160
  393. package/dist/dsl.js.map +1 -1
  394. package/dist/durable-object/index.d.ts +26 -0
  395. package/dist/durable-object/index.d.ts.map +1 -0
  396. package/dist/durable-object/index.js +26 -0
  397. package/dist/durable-object/index.js.map +1 -0
  398. package/dist/e2ee/SODIUM-LICENSE.txt +36 -0
  399. package/dist/e2ee/SODIUM-SOURCES.json +4 -0
  400. package/dist/e2ee/browser.d.ts +18 -0
  401. package/dist/e2ee/browser.d.ts.map +1 -0
  402. package/dist/e2ee/browser.js +111 -0
  403. package/dist/e2ee/browser.js.map +1 -0
  404. package/dist/e2ee/context.d.ts +23 -0
  405. package/dist/e2ee/context.d.ts.map +1 -0
  406. package/dist/e2ee/context.js +49 -0
  407. package/dist/e2ee/context.js.map +1 -0
  408. package/dist/e2ee/crypto.d.ts +10 -0
  409. package/dist/e2ee/crypto.d.ts.map +1 -0
  410. package/dist/e2ee/crypto.js +22 -0
  411. package/dist/e2ee/crypto.js.map +1 -0
  412. package/dist/e2ee/envelope.d.ts +22 -0
  413. package/dist/e2ee/envelope.d.ts.map +1 -0
  414. package/dist/e2ee/envelope.js +52 -0
  415. package/dist/e2ee/envelope.js.map +1 -0
  416. package/dist/e2ee/index.d.ts +14 -0
  417. package/dist/e2ee/index.d.ts.map +1 -0
  418. package/dist/e2ee/index.js +3 -0
  419. package/dist/e2ee/index.js.map +1 -0
  420. package/dist/e2ee/large-value.d.ts +20 -0
  421. package/dist/e2ee/large-value.d.ts.map +1 -0
  422. package/dist/e2ee/large-value.js +204 -0
  423. package/dist/e2ee/large-value.js.map +1 -0
  424. package/dist/e2ee/native.d.ts +18 -0
  425. package/dist/e2ee/native.d.ts.map +1 -0
  426. package/dist/e2ee/native.js +91 -0
  427. package/dist/e2ee/native.js.map +1 -0
  428. package/dist/e2ee/record-frame.d.ts +3 -0
  429. package/dist/e2ee/record-frame.d.ts.map +1 -0
  430. package/dist/e2ee/record-frame.js +18 -0
  431. package/dist/e2ee/record-frame.js.map +1 -0
  432. package/dist/e2ee/signer.d.ts +10 -0
  433. package/dist/e2ee/signer.d.ts.map +1 -0
  434. package/dist/e2ee/signer.js +54 -0
  435. package/dist/e2ee/signer.js.map +1 -0
  436. package/dist/e2ee/sodium-browser.d.ts +2 -0
  437. package/dist/e2ee/sodium-browser.d.ts.map +1 -0
  438. package/dist/e2ee/sodium-browser.js +3432 -0
  439. package/dist/e2ee/sodium.d.ts +20 -0
  440. package/dist/e2ee/sodium.d.ts.map +1 -0
  441. package/dist/e2ee/sodium.js +165 -0
  442. package/dist/e2ee/sodium.js.map +1 -0
  443. package/dist/e2ee/types.d.ts +92 -0
  444. package/dist/e2ee/types.d.ts.map +1 -0
  445. package/dist/e2ee/types.js +2 -0
  446. package/dist/e2ee/types.js.map +1 -0
  447. package/dist/effect/backend/index.d.ts +8 -0
  448. package/dist/effect/backend/index.d.ts.map +1 -0
  449. package/dist/effect/backend/index.js +8 -0
  450. package/dist/effect/backend/index.js.map +1 -0
  451. package/dist/effect/errors.d.ts +53 -0
  452. package/dist/effect/errors.d.ts.map +1 -0
  453. package/dist/effect/errors.js +61 -0
  454. package/dist/effect/errors.js.map +1 -0
  455. package/dist/effect/index.d.ts +9 -0
  456. package/dist/effect/index.d.ts.map +1 -0
  457. package/dist/effect/index.js +9 -0
  458. package/dist/effect/index.js.map +1 -0
  459. package/dist/effect/jazz-backend.d.ts +69 -0
  460. package/dist/effect/jazz-backend.d.ts.map +1 -0
  461. package/dist/effect/jazz-backend.js +95 -0
  462. package/dist/effect/jazz-backend.js.map +1 -0
  463. package/dist/effect/jazz.d.ts +129 -0
  464. package/dist/effect/jazz.d.ts.map +1 -0
  465. package/dist/effect/jazz.js +182 -0
  466. package/dist/effect/jazz.js.map +1 -0
  467. package/dist/expo/create-account-manager.d.ts +28 -0
  468. package/dist/expo/create-account-manager.d.ts.map +1 -0
  469. package/dist/expo/create-account-manager.js +35 -0
  470. package/dist/expo/create-account-manager.js.map +1 -0
  471. package/dist/expo/create-jazz-session.d.ts +66 -0
  472. package/dist/expo/create-jazz-session.d.ts.map +1 -0
  473. package/dist/expo/create-jazz-session.js +96 -0
  474. package/dist/expo/create-jazz-session.js.map +1 -0
  475. package/dist/expo/index.d.ts +13 -0
  476. package/dist/expo/index.d.ts.map +1 -0
  477. package/dist/expo/index.js +12 -0
  478. package/dist/expo/index.js.map +1 -0
  479. package/dist/expo/metro.d.ts +20 -0
  480. package/dist/expo/metro.d.ts.map +1 -0
  481. package/dist/expo/metro.js +58 -0
  482. package/dist/expo/metro.js.map +1 -0
  483. package/dist/expo/polyfills.d.ts +2 -0
  484. package/dist/expo/polyfills.d.ts.map +1 -0
  485. package/dist/expo/polyfills.js +5 -0
  486. package/dist/expo/polyfills.js.map +1 -0
  487. package/dist/expo/provider.d.ts +10 -0
  488. package/dist/expo/provider.d.ts.map +1 -0
  489. package/dist/expo/provider.js +11 -0
  490. package/dist/expo/provider.js.map +1 -0
  491. package/dist/index.d.ts +23 -8
  492. package/dist/index.d.ts.map +1 -1
  493. package/dist/index.js +23 -11
  494. package/dist/index.js.map +1 -1
  495. package/dist/inspect/cli.d.ts +12 -0
  496. package/dist/inspect/cli.d.ts.map +1 -0
  497. package/dist/inspect/cli.js +320 -0
  498. package/dist/inspect/cli.js.map +1 -0
  499. package/dist/inspect/client.d.ts +67 -0
  500. package/dist/inspect/client.d.ts.map +1 -0
  501. package/dist/inspect/client.js +254 -0
  502. package/dist/inspect/client.js.map +1 -0
  503. package/dist/inspect/mcp.d.ts +28 -0
  504. package/dist/inspect/mcp.d.ts.map +1 -0
  505. package/dist/inspect/mcp.js +441 -0
  506. package/dist/inspect/mcp.js.map +1 -0
  507. package/dist/inspect/protocol.d.ts +317 -0
  508. package/dist/inspect/protocol.d.ts.map +1 -0
  509. package/dist/inspect/protocol.js +544 -0
  510. package/dist/inspect/protocol.js.map +1 -0
  511. package/dist/inspector/index.d.ts +10 -0
  512. package/dist/inspector/index.d.ts.map +1 -0
  513. package/dist/inspector/index.js +27 -0
  514. package/dist/inspector/index.js.map +1 -0
  515. package/dist/internal/inspector-query.d.ts +6 -0
  516. package/dist/internal/inspector-query.d.ts.map +1 -0
  517. package/dist/internal/inspector-query.js +20 -0
  518. package/dist/internal/inspector-query.js.map +1 -0
  519. package/dist/ir.d.ts +143 -115
  520. package/dist/ir.d.ts.map +1 -1
  521. package/dist/ir.js +509 -1
  522. package/dist/ir.js.map +1 -1
  523. package/dist/json-value.d.ts +6 -0
  524. package/dist/json-value.d.ts.map +1 -0
  525. package/dist/json-value.js +2 -0
  526. package/dist/json-value.js.map +1 -0
  527. package/dist/local-first/index.d.ts +18 -0
  528. package/dist/local-first/index.d.ts.map +1 -0
  529. package/dist/local-first/index.js +17 -0
  530. package/dist/local-first/index.js.map +1 -0
  531. package/dist/local-first-auth/browser.d.ts +18 -0
  532. package/dist/local-first-auth/browser.d.ts.map +1 -0
  533. package/dist/local-first-auth/browser.js +26 -0
  534. package/dist/local-first-auth/browser.js.map +1 -0
  535. package/dist/local-first-auth/encoding.d.ts +10 -0
  536. package/dist/local-first-auth/encoding.d.ts.map +1 -0
  537. package/dist/local-first-auth/encoding.js +38 -0
  538. package/dist/local-first-auth/encoding.js.map +1 -0
  539. package/dist/local-first-auth/identity.d.ts +73 -0
  540. package/dist/local-first-auth/identity.d.ts.map +1 -0
  541. package/dist/local-first-auth/identity.js +258 -0
  542. package/dist/local-first-auth/identity.js.map +1 -0
  543. package/dist/local-first-auth/index.d.ts +6 -0
  544. package/dist/local-first-auth/index.d.ts.map +1 -0
  545. package/dist/local-first-auth/index.js +4 -0
  546. package/dist/local-first-auth/index.js.map +1 -0
  547. package/dist/local-first-auth/passkey.d.ts +22 -0
  548. package/dist/local-first-auth/passkey.d.ts.map +1 -0
  549. package/dist/local-first-auth/passkey.js +116 -0
  550. package/dist/local-first-auth/passkey.js.map +1 -0
  551. package/dist/local-first-auth/recovery-phrase.d.ts +10 -0
  552. package/dist/local-first-auth/recovery-phrase.d.ts.map +1 -0
  553. package/dist/local-first-auth/recovery-phrase.js +59 -0
  554. package/dist/local-first-auth/recovery-phrase.js.map +1 -0
  555. package/dist/local-first-auth/secret.d.ts +25 -0
  556. package/dist/local-first-auth/secret.d.ts.map +1 -0
  557. package/dist/local-first-auth/secret.js +68 -0
  558. package/dist/local-first-auth/secret.js.map +1 -0
  559. package/dist/local-first-auth/server.d.ts +13 -0
  560. package/dist/local-first-auth/server.d.ts.map +1 -0
  561. package/dist/local-first-auth/server.js +32 -0
  562. package/dist/local-first-auth/server.js.map +1 -0
  563. package/dist/local-first-auth/store.d.ts +51 -0
  564. package/dist/local-first-auth/store.d.ts.map +1 -0
  565. package/dist/local-first-auth/store.js +112 -0
  566. package/dist/local-first-auth/store.js.map +1 -0
  567. package/dist/magic-columns.d.ts +40 -0
  568. package/dist/magic-columns.d.ts.map +1 -0
  569. package/dist/magic-columns.js +110 -0
  570. package/dist/magic-columns.js.map +1 -0
  571. package/dist/migration-namespace.d.ts +12 -0
  572. package/dist/migration-namespace.d.ts.map +1 -0
  573. package/dist/migration-namespace.js +13 -0
  574. package/dist/migration-namespace.js.map +1 -0
  575. package/dist/migrations.d.ts +286 -0
  576. package/dist/migrations.d.ts.map +1 -0
  577. package/dist/migrations.js +188 -0
  578. package/dist/migrations.js.map +1 -0
  579. package/dist/module-interop.d.ts +17 -0
  580. package/dist/module-interop.d.ts.map +1 -0
  581. package/dist/module-interop.js +32 -0
  582. package/dist/module-interop.js.map +1 -0
  583. package/dist/observed-jazz-client.d.ts +15 -0
  584. package/dist/observed-jazz-client.d.ts.map +1 -0
  585. package/dist/observed-jazz-client.js +47 -0
  586. package/dist/observed-jazz-client.js.map +1 -0
  587. package/dist/passkey-backup.d.ts +3 -0
  588. package/dist/passkey-backup.d.ts.map +1 -0
  589. package/dist/passkey-backup.js +2 -0
  590. package/dist/passkey-backup.js.map +1 -0
  591. package/dist/passphrase.d.ts +2 -0
  592. package/dist/passphrase.d.ts.map +1 -0
  593. package/dist/passphrase.js +2 -0
  594. package/dist/passphrase.js.map +1 -0
  595. package/dist/permissions/__fixtures__/big-label-better-auth.d.ts +89 -0
  596. package/dist/permissions/__fixtures__/big-label-better-auth.d.ts.map +1 -0
  597. package/dist/permissions/__fixtures__/big-label-better-auth.js +62 -0
  598. package/dist/permissions/__fixtures__/big-label-better-auth.js.map +1 -0
  599. package/dist/permissions/__fixtures__/big-label.d.ts +332 -0
  600. package/dist/permissions/__fixtures__/big-label.d.ts.map +1 -0
  601. package/dist/permissions/__fixtures__/big-label.js +177 -0
  602. package/dist/permissions/__fixtures__/big-label.js.map +1 -0
  603. package/dist/permissions/__fixtures__/chat-react.d.ts +112 -0
  604. package/dist/permissions/__fixtures__/chat-react.d.ts.map +1 -0
  605. package/dist/permissions/__fixtures__/chat-react.js +51 -0
  606. package/dist/permissions/__fixtures__/chat-react.js.map +1 -0
  607. package/dist/permissions/compile.d.ts +182 -0
  608. package/dist/permissions/compile.d.ts.map +1 -0
  609. package/dist/permissions/compile.js +715 -0
  610. package/dist/permissions/compile.js.map +1 -0
  611. package/dist/permissions/dsl.d.ts +158 -0
  612. package/dist/permissions/dsl.d.ts.map +1 -0
  613. package/dist/permissions/dsl.js +391 -0
  614. package/dist/permissions/dsl.js.map +1 -0
  615. package/dist/permissions/index.d.ts +4 -145
  616. package/dist/permissions/index.d.ts.map +1 -1
  617. package/dist/permissions/index.js +10 -1185
  618. package/dist/permissions/index.js.map +1 -1
  619. package/dist/permissions/relation.d.ts +84 -0
  620. package/dist/permissions/relation.d.ts.map +1 -0
  621. package/dist/permissions/relation.js +150 -0
  622. package/dist/permissions/relation.js.map +1 -0
  623. package/dist/permissions/types.d.ts +357 -0
  624. package/dist/permissions/types.d.ts.map +1 -0
  625. package/dist/permissions/types.js +5 -0
  626. package/dist/permissions/types.js.map +1 -0
  627. package/dist/printer/app-json.d.ts +96 -0
  628. package/dist/printer/app-json.d.ts.map +1 -0
  629. package/dist/printer/app-json.js +18 -0
  630. package/dist/printer/app-json.js.map +1 -0
  631. package/dist/printer/cli.d.ts +15 -0
  632. package/dist/printer/cli.d.ts.map +1 -0
  633. package/dist/printer/cli.js +76 -0
  634. package/dist/printer/cli.js.map +1 -0
  635. package/dist/printer/defs.d.ts +11 -0
  636. package/dist/printer/defs.d.ts.map +1 -0
  637. package/dist/printer/defs.js +123 -0
  638. package/dist/printer/defs.js.map +1 -0
  639. package/dist/printer/expr.d.ts +281 -0
  640. package/dist/printer/expr.d.ts.map +1 -0
  641. package/dist/printer/expr.js +940 -0
  642. package/dist/printer/expr.js.map +1 -0
  643. package/dist/printer/format.d.ts +17 -0
  644. package/dist/printer/format.d.ts.map +1 -0
  645. package/dist/printer/format.js +315 -0
  646. package/dist/printer/format.js.map +1 -0
  647. package/dist/printer/index.d.ts +31 -0
  648. package/dist/printer/index.d.ts.map +1 -0
  649. package/dist/printer/index.js +48 -0
  650. package/dist/printer/index.js.map +1 -0
  651. package/dist/printer/migrations.d.ts +28 -0
  652. package/dist/printer/migrations.d.ts.map +1 -0
  653. package/dist/printer/migrations.js +179 -0
  654. package/dist/printer/migrations.js.map +1 -0
  655. package/dist/printer/names.d.ts +17 -0
  656. package/dist/printer/names.d.ts.map +1 -0
  657. package/dist/printer/names.js +124 -0
  658. package/dist/printer/names.js.map +1 -0
  659. package/dist/printer/permissions.d.ts +60 -0
  660. package/dist/printer/permissions.d.ts.map +1 -0
  661. package/dist/printer/permissions.js +1167 -0
  662. package/dist/printer/permissions.js.map +1 -0
  663. package/dist/printer/schema.d.ts +18 -0
  664. package/dist/printer/schema.d.ts.map +1 -0
  665. package/dist/printer/schema.js +132 -0
  666. package/dist/printer/schema.js.map +1 -0
  667. package/dist/prosemirror/anchors.d.ts +30 -0
  668. package/dist/prosemirror/anchors.d.ts.map +1 -0
  669. package/dist/prosemirror/anchors.js +28 -0
  670. package/dist/prosemirror/anchors.js.map +1 -0
  671. package/dist/prosemirror/index.d.ts +7 -0
  672. package/dist/prosemirror/index.d.ts.map +1 -0
  673. package/dist/prosemirror/index.js +7 -0
  674. package/dist/prosemirror/index.js.map +1 -0
  675. package/dist/prosemirror/markdown.d.ts +95 -0
  676. package/dist/prosemirror/markdown.d.ts.map +1 -0
  677. package/dist/prosemirror/markdown.js +428 -0
  678. package/dist/prosemirror/markdown.js.map +1 -0
  679. package/dist/prosemirror/overlays.d.ts +69 -0
  680. package/dist/prosemirror/overlays.d.ts.map +1 -0
  681. package/dist/prosemirror/overlays.js +143 -0
  682. package/dist/prosemirror/overlays.js.map +1 -0
  683. package/dist/prosemirror/presence.d.ts +39 -0
  684. package/dist/prosemirror/presence.d.ts.map +1 -0
  685. package/dist/prosemirror/presence.js +88 -0
  686. package/dist/prosemirror/presence.js.map +1 -0
  687. package/dist/prosemirror/sync.d.ts +60 -0
  688. package/dist/prosemirror/sync.d.ts.map +1 -0
  689. package/dist/prosemirror/sync.js +196 -0
  690. package/dist/prosemirror/sync.js.map +1 -0
  691. package/dist/prosemirror/text-map.d.ts +21 -0
  692. package/dist/prosemirror/text-map.d.ts.map +1 -0
  693. package/dist/prosemirror/text-map.js +85 -0
  694. package/dist/prosemirror/text-map.js.map +1 -0
  695. package/dist/react/create-jazz-client.d.ts +2 -10
  696. package/dist/react/create-jazz-client.d.ts.map +1 -1
  697. package/dist/react/create-jazz-client.js +1 -25
  698. package/dist/react/create-jazz-client.js.map +1 -1
  699. package/dist/react/index.d.ts +15 -6
  700. package/dist/react/index.d.ts.map +1 -1
  701. package/dist/react/index.js +10 -5
  702. package/dist/react/index.js.map +1 -1
  703. package/dist/react/provider-props.d.ts +7 -0
  704. package/dist/react/provider-props.d.ts.map +1 -0
  705. package/dist/react/provider-props.js +15 -0
  706. package/dist/react/provider-props.js.map +1 -0
  707. package/dist/react/provider.d.ts +19 -13
  708. package/dist/react/provider.d.ts.map +1 -1
  709. package/dist/react/provider.js +25 -4
  710. package/dist/react/provider.js.map +1 -1
  711. package/dist/react/use-all.d.ts +1 -1
  712. package/dist/react/use-all.d.ts.map +1 -1
  713. package/dist/react/use-all.js +1 -1
  714. package/dist/react/use-all.js.map +1 -1
  715. package/dist/react/use-one.d.ts +2 -0
  716. package/dist/react/use-one.d.ts.map +1 -0
  717. package/dist/react/use-one.js +2 -0
  718. package/dist/react/use-one.js.map +1 -0
  719. package/dist/react-core/index.d.ts +10 -4
  720. package/dist/react-core/index.d.ts.map +1 -1
  721. package/dist/react-core/index.js +12 -2
  722. package/dist/react-core/index.js.map +1 -1
  723. package/dist/react-core/provider.d.ts +56 -12
  724. package/dist/react-core/provider.d.ts.map +1 -1
  725. package/dist/react-core/provider.js +128 -11
  726. package/dist/react-core/provider.js.map +1 -1
  727. package/dist/react-core/session-context.d.ts +7 -0
  728. package/dist/react-core/session-context.d.ts.map +1 -0
  729. package/dist/react-core/session-context.js +8 -0
  730. package/dist/react-core/session-context.js.map +1 -0
  731. package/dist/react-core/session.d.ts +63 -0
  732. package/dist/react-core/session.d.ts.map +1 -0
  733. package/dist/react-core/session.js +97 -0
  734. package/dist/react-core/session.js.map +1 -0
  735. package/dist/react-core/use-all.d.ts +95 -3
  736. package/dist/react-core/use-all.d.ts.map +1 -1
  737. package/dist/react-core/use-all.js +126 -52
  738. package/dist/react-core/use-all.js.map +1 -1
  739. package/dist/react-core/use-auth-state.d.ts +13 -0
  740. package/dist/react-core/use-auth-state.d.ts.map +1 -0
  741. package/dist/react-core/use-auth-state.js +15 -0
  742. package/dist/react-core/use-auth-state.js.map +1 -0
  743. package/dist/react-core/use-one.d.ts +58 -0
  744. package/dist/react-core/use-one.d.ts.map +1 -0
  745. package/dist/react-core/use-one.js +19 -0
  746. package/dist/react-core/use-one.js.map +1 -0
  747. package/dist/react-core/use-sync-status.d.ts +8 -0
  748. package/dist/react-core/use-sync-status.d.ts.map +1 -0
  749. package/dist/react-core/use-sync-status.js +12 -0
  750. package/dist/react-core/use-sync-status.js.map +1 -0
  751. package/dist/react-native/abort-signal.d.ts +9 -0
  752. package/dist/react-native/abort-signal.d.ts.map +1 -0
  753. package/dist/react-native/abort-signal.js +51 -0
  754. package/dist/react-native/abort-signal.js.map +1 -0
  755. package/dist/react-native/account-session.d.ts +11 -0
  756. package/dist/react-native/account-session.d.ts.map +1 -0
  757. package/dist/react-native/account-session.js +59 -0
  758. package/dist/react-native/account-session.js.map +1 -0
  759. package/dist/react-native/create-account-manager.d.ts +28 -0
  760. package/dist/react-native/create-account-manager.d.ts.map +1 -0
  761. package/dist/react-native/create-account-manager.js +30 -0
  762. package/dist/react-native/create-account-manager.js.map +1 -0
  763. package/dist/react-native/create-db.d.ts +8 -0
  764. package/dist/react-native/create-db.d.ts.map +1 -0
  765. package/dist/react-native/create-db.js +9 -0
  766. package/dist/react-native/create-db.js.map +1 -0
  767. package/dist/react-native/create-jazz-client.d.ts +12 -10
  768. package/dist/react-native/create-jazz-client.d.ts.map +1 -1
  769. package/dist/react-native/create-jazz-client.js +6 -21
  770. package/dist/react-native/create-jazz-client.js.map +1 -1
  771. package/dist/react-native/create-jazz-session.d.ts +66 -0
  772. package/dist/react-native/create-jazz-session.d.ts.map +1 -0
  773. package/dist/react-native/create-jazz-session.js +96 -0
  774. package/dist/react-native/create-jazz-session.js.map +1 -0
  775. package/dist/react-native/errors.d.ts +6 -0
  776. package/dist/react-native/errors.d.ts.map +1 -0
  777. package/dist/react-native/errors.js +6 -0
  778. package/dist/react-native/errors.js.map +1 -0
  779. package/dist/react-native/index.d.ts +21 -9
  780. package/dist/react-native/index.d.ts.map +1 -1
  781. package/dist/react-native/index.js +17 -7
  782. package/dist/react-native/index.js.map +1 -1
  783. package/dist/react-native/native-foreground-db.d.ts +227 -0
  784. package/dist/react-native/native-foreground-db.d.ts.map +1 -0
  785. package/dist/react-native/native-foreground-db.js +905 -0
  786. package/dist/react-native/native-foreground-db.js.map +1 -0
  787. package/dist/react-native/native-relay.d.ts +7 -0
  788. package/dist/react-native/native-relay.d.ts.map +1 -0
  789. package/dist/react-native/native-relay.js +14 -0
  790. package/dist/react-native/native-relay.js.map +1 -0
  791. package/dist/react-native/provider.d.ts +20 -12
  792. package/dist/react-native/provider.d.ts.map +1 -1
  793. package/dist/react-native/provider.js +25 -4
  794. package/dist/react-native/provider.js.map +1 -1
  795. package/dist/react-native/runtime-source.d.ts +62 -0
  796. package/dist/react-native/runtime-source.d.ts.map +1 -0
  797. package/dist/react-native/runtime-source.js +314 -0
  798. package/dist/react-native/runtime-source.js.map +1 -0
  799. package/dist/react-native/use-all.d.ts +1 -1
  800. package/dist/react-native/use-all.d.ts.map +1 -1
  801. package/dist/react-native/use-all.js +1 -1
  802. package/dist/react-native/use-all.js.map +1 -1
  803. package/dist/react-native/use-one.d.ts +2 -0
  804. package/dist/react-native/use-one.d.ts.map +1 -0
  805. package/dist/react-native/use-one.js +2 -0
  806. package/dist/react-native/use-one.js.map +1 -0
  807. package/dist/reconcile-array.d.ts +45 -0
  808. package/dist/reconcile-array.d.ts.map +1 -0
  809. package/dist/reconcile-array.js +252 -0
  810. package/dist/reconcile-array.js.map +1 -0
  811. package/dist/relationships.d.ts +18 -0
  812. package/dist/relationships.d.ts.map +1 -0
  813. package/dist/relationships.js +28 -0
  814. package/dist/relationships.js.map +1 -0
  815. package/dist/removed-api.d.ts +87 -0
  816. package/dist/removed-api.d.ts.map +1 -0
  817. package/dist/removed-api.js +95 -0
  818. package/dist/removed-api.js.map +1 -0
  819. package/dist/removed-schema-api.d.ts +80 -0
  820. package/dist/removed-schema-api.d.ts.map +1 -0
  821. package/dist/removed-schema-api.js +128 -0
  822. package/dist/removed-schema-api.js.map +1 -0
  823. package/dist/runtime/auth-renewal-backoff.d.ts +14 -0
  824. package/dist/runtime/auth-renewal-backoff.d.ts.map +1 -0
  825. package/dist/runtime/auth-renewal-backoff.js +23 -0
  826. package/dist/runtime/auth-renewal-backoff.js.map +1 -0
  827. package/dist/runtime/auth-request-deadline.d.ts +3 -0
  828. package/dist/runtime/auth-request-deadline.d.ts.map +1 -0
  829. package/dist/runtime/auth-request-deadline.js +24 -0
  830. package/dist/runtime/auth-request-deadline.js.map +1 -0
  831. package/dist/runtime/auth-secret-codec.d.ts +21 -0
  832. package/dist/runtime/auth-secret-codec.d.ts.map +1 -0
  833. package/dist/runtime/auth-secret-codec.js +32 -0
  834. package/dist/runtime/auth-secret-codec.js.map +1 -0
  835. package/dist/runtime/auth-secret-store.d.ts +7 -0
  836. package/dist/runtime/auth-secret-store.d.ts.map +1 -0
  837. package/dist/runtime/auth-secret-store.js +12 -0
  838. package/dist/runtime/auth-secret-store.js.map +1 -0
  839. package/dist/runtime/auth-state.d.ts +47 -0
  840. package/dist/runtime/auth-state.d.ts.map +1 -0
  841. package/dist/runtime/auth-state.js +161 -0
  842. package/dist/runtime/auth-state.js.map +1 -0
  843. package/dist/runtime/author-id.d.ts +42 -0
  844. package/dist/runtime/author-id.d.ts.map +1 -0
  845. package/dist/runtime/author-id.js +172 -0
  846. package/dist/runtime/author-id.js.map +1 -0
  847. package/dist/runtime/authority-changed-error.d.ts +56 -0
  848. package/dist/runtime/authority-changed-error.d.ts.map +1 -0
  849. package/dist/runtime/authority-changed-error.js +74 -0
  850. package/dist/runtime/authority-changed-error.js.map +1 -0
  851. package/dist/runtime/backlog-rows.d.ts +3 -0
  852. package/dist/runtime/backlog-rows.d.ts.map +1 -0
  853. package/dist/runtime/backlog-rows.js +7 -0
  854. package/dist/runtime/backlog-rows.js.map +1 -0
  855. package/dist/runtime/browser-physical-database-epoch.d.ts +37 -0
  856. package/dist/runtime/browser-physical-database-epoch.d.ts.map +1 -0
  857. package/dist/runtime/browser-physical-database-epoch.js +89 -0
  858. package/dist/runtime/browser-physical-database-epoch.js.map +1 -0
  859. package/dist/runtime/browser-storage-invalidation.d.ts +8 -0
  860. package/dist/runtime/browser-storage-invalidation.d.ts.map +1 -0
  861. package/dist/runtime/browser-storage-invalidation.js +20 -0
  862. package/dist/runtime/browser-storage-invalidation.js.map +1 -0
  863. package/dist/runtime/browser-store-generation.d.ts +15 -0
  864. package/dist/runtime/browser-store-generation.d.ts.map +1 -0
  865. package/dist/runtime/browser-store-generation.js +48 -0
  866. package/dist/runtime/browser-store-generation.js.map +1 -0
  867. package/dist/runtime/browser-worker-assets.d.ts +31 -0
  868. package/dist/runtime/browser-worker-assets.d.ts.map +1 -0
  869. package/dist/runtime/browser-worker-assets.js +40 -0
  870. package/dist/runtime/browser-worker-assets.js.map +1 -0
  871. package/dist/runtime/browser-worker-assets.metro.d.ts +28 -0
  872. package/dist/runtime/browser-worker-assets.metro.d.ts.map +1 -0
  873. package/dist/runtime/browser-worker-assets.metro.js +52 -0
  874. package/dist/runtime/browser-worker-assets.metro.js.map +1 -0
  875. package/dist/runtime/browser-worker-assets.native.d.ts +7 -0
  876. package/dist/runtime/browser-worker-assets.native.d.ts.map +1 -0
  877. package/dist/runtime/browser-worker-assets.native.js +8 -0
  878. package/dist/runtime/browser-worker-assets.native.js.map +1 -0
  879. package/dist/runtime/browser-worker-config.d.ts +78 -0
  880. package/dist/runtime/browser-worker-config.d.ts.map +1 -0
  881. package/dist/runtime/browser-worker-config.js +299 -0
  882. package/dist/runtime/browser-worker-config.js.map +1 -0
  883. package/dist/runtime/client-config-key.d.ts +6 -0
  884. package/dist/runtime/client-config-key.d.ts.map +1 -0
  885. package/dist/runtime/client-config-key.js +83 -0
  886. package/dist/runtime/client-config-key.js.map +1 -0
  887. package/dist/runtime/client-migrations.d.ts +27 -0
  888. package/dist/runtime/client-migrations.d.ts.map +1 -0
  889. package/dist/runtime/client-migrations.js +25 -0
  890. package/dist/runtime/client-migrations.js.map +1 -0
  891. package/dist/runtime/client-registry.d.ts +21 -0
  892. package/dist/runtime/client-registry.d.ts.map +1 -0
  893. package/dist/runtime/client-registry.js +169 -0
  894. package/dist/runtime/client-registry.js.map +1 -0
  895. package/dist/runtime/client-scope.d.ts +38 -0
  896. package/dist/runtime/client-scope.d.ts.map +1 -0
  897. package/dist/runtime/client-scope.js +64 -0
  898. package/dist/runtime/client-scope.js.map +1 -0
  899. package/dist/runtime/client-session.d.ts +56 -13
  900. package/dist/runtime/client-session.d.ts.map +1 -1
  901. package/dist/runtime/client-session.js +212 -196
  902. package/dist/runtime/client-session.js.map +1 -1
  903. package/dist/runtime/client.d.ts +723 -190
  904. package/dist/runtime/client.d.ts.map +1 -1
  905. package/dist/runtime/client.js +1220 -416
  906. package/dist/runtime/client.js.map +1 -1
  907. package/dist/runtime/column-transforms.d.ts +26 -0
  908. package/dist/runtime/column-transforms.d.ts.map +1 -0
  909. package/dist/runtime/column-transforms.js +186 -0
  910. package/dist/runtime/column-transforms.js.map +1 -0
  911. package/dist/runtime/connection-manager/browser-connection-manager.d.ts +178 -0
  912. package/dist/runtime/connection-manager/browser-connection-manager.d.ts.map +1 -0
  913. package/dist/runtime/connection-manager/browser-connection-manager.js +1030 -0
  914. package/dist/runtime/connection-manager/browser-connection-manager.js.map +1 -0
  915. package/dist/runtime/connection-manager/direct-connection-manager.d.ts +28 -0
  916. package/dist/runtime/connection-manager/direct-connection-manager.d.ts.map +1 -0
  917. package/dist/runtime/connection-manager/direct-connection-manager.js +202 -0
  918. package/dist/runtime/connection-manager/direct-connection-manager.js.map +1 -0
  919. package/dist/runtime/connection-manager/index.d.ts +5 -0
  920. package/dist/runtime/connection-manager/index.d.ts.map +1 -0
  921. package/dist/runtime/connection-manager/index.js +4 -0
  922. package/dist/runtime/connection-manager/index.js.map +1 -0
  923. package/dist/runtime/connection-manager/types.d.ts +174 -0
  924. package/dist/runtime/connection-manager/types.d.ts.map +1 -0
  925. package/dist/runtime/connection-manager/types.js +396 -0
  926. package/dist/runtime/connection-manager/types.js.map +1 -0
  927. package/dist/runtime/context.d.ts +100 -30
  928. package/dist/runtime/context.d.ts.map +1 -1
  929. package/dist/runtime/context.js.map +1 -1
  930. package/dist/runtime/core-tick-failed-error.d.ts +31 -0
  931. package/dist/runtime/core-tick-failed-error.d.ts.map +1 -0
  932. package/dist/runtime/core-tick-failed-error.js +45 -0
  933. package/dist/runtime/core-tick-failed-error.js.map +1 -0
  934. package/dist/runtime/credentialed-transport.d.ts +42 -0
  935. package/dist/runtime/credentialed-transport.d.ts.map +1 -0
  936. package/dist/runtime/credentialed-transport.js +178 -0
  937. package/dist/runtime/credentialed-transport.js.map +1 -0
  938. package/dist/runtime/db-access-context.d.ts +14 -0
  939. package/dist/runtime/db-access-context.d.ts.map +1 -0
  940. package/dist/runtime/db-access-context.js +26 -0
  941. package/dist/runtime/db-access-context.js.map +1 -0
  942. package/dist/runtime/db-internal-session.d.ts +7 -0
  943. package/dist/runtime/db-internal-session.d.ts.map +1 -0
  944. package/dist/runtime/db-internal-session.js +21 -0
  945. package/dist/runtime/db-internal-session.js.map +1 -0
  946. package/dist/runtime/db-replaced-error.d.ts +21 -0
  947. package/dist/runtime/db-replaced-error.d.ts.map +1 -0
  948. package/dist/runtime/db-replaced-error.js +22 -0
  949. package/dist/runtime/db-replaced-error.js.map +1 -0
  950. package/dist/runtime/db.d.ts +869 -201
  951. package/dist/runtime/db.d.ts.map +1 -1
  952. package/dist/runtime/db.js +3491 -758
  953. package/dist/runtime/db.js.map +1 -1
  954. package/dist/runtime/default-create-db.d.ts +5 -0
  955. package/dist/runtime/default-create-db.d.ts.map +1 -0
  956. package/dist/runtime/default-create-db.js +7 -0
  957. package/dist/runtime/default-create-db.js.map +1 -0
  958. package/dist/runtime/default-runtime-source.d.ts +41 -0
  959. package/dist/runtime/default-runtime-source.d.ts.map +1 -0
  960. package/dist/runtime/default-runtime-source.js +326 -0
  961. package/dist/runtime/default-runtime-source.js.map +1 -0
  962. package/dist/runtime/delete-local-first-store.d.ts +12 -0
  963. package/dist/runtime/delete-local-first-store.d.ts.map +1 -0
  964. package/dist/runtime/delete-local-first-store.js +12 -0
  965. package/dist/runtime/delete-local-first-store.js.map +1 -0
  966. package/dist/runtime/deterministic-bytes.d.ts +6 -0
  967. package/dist/runtime/deterministic-bytes.d.ts.map +1 -0
  968. package/dist/runtime/deterministic-bytes.js +18 -0
  969. package/dist/runtime/deterministic-bytes.js.map +1 -0
  970. package/dist/runtime/graceful-shutdown-error.d.ts +17 -0
  971. package/dist/runtime/graceful-shutdown-error.d.ts.map +1 -0
  972. package/dist/runtime/graceful-shutdown-error.js +31 -0
  973. package/dist/runtime/graceful-shutdown-error.js.map +1 -0
  974. package/dist/runtime/hex.d.ts +21 -0
  975. package/dist/runtime/hex.d.ts.map +1 -0
  976. package/dist/runtime/hex.js +62 -0
  977. package/dist/runtime/hex.js.map +1 -0
  978. package/dist/runtime/history-relation.d.ts +8 -0
  979. package/dist/runtime/history-relation.d.ts.map +1 -0
  980. package/dist/runtime/history-relation.js +44 -0
  981. package/dist/runtime/history-relation.js.map +1 -0
  982. package/dist/runtime/in-process-transport.d.ts +18 -0
  983. package/dist/runtime/in-process-transport.d.ts.map +1 -0
  984. package/dist/runtime/in-process-transport.js +32 -0
  985. package/dist/runtime/in-process-transport.js.map +1 -0
  986. package/dist/runtime/index.d.ts +22 -11
  987. package/dist/runtime/index.d.ts.map +1 -1
  988. package/dist/runtime/index.js +14 -10
  989. package/dist/runtime/index.js.map +1 -1
  990. package/dist/runtime/indexeddb-page-store.d.ts +214 -0
  991. package/dist/runtime/indexeddb-page-store.d.ts.map +1 -0
  992. package/dist/runtime/indexeddb-page-store.js +848 -0
  993. package/dist/runtime/indexeddb-page-store.js.map +1 -0
  994. package/dist/runtime/introspection-fetch.d.ts +18 -0
  995. package/dist/runtime/introspection-fetch.d.ts.map +1 -0
  996. package/dist/runtime/introspection-fetch.js +12 -0
  997. package/dist/runtime/introspection-fetch.js.map +1 -0
  998. package/dist/runtime/json-schema-evaluate.d.ts +55 -0
  999. package/dist/runtime/json-schema-evaluate.d.ts.map +1 -0
  1000. package/dist/runtime/json-schema-evaluate.js +946 -0
  1001. package/dist/runtime/json-schema-evaluate.js.map +1 -0
  1002. package/dist/runtime/json-schema-formats.d.ts +14 -0
  1003. package/dist/runtime/json-schema-formats.d.ts.map +1 -0
  1004. package/dist/runtime/json-schema-formats.js +555 -0
  1005. package/dist/runtime/json-schema-formats.js.map +1 -0
  1006. package/dist/runtime/json-schema-json.d.ts +41 -0
  1007. package/dist/runtime/json-schema-json.d.ts.map +1 -0
  1008. package/dist/runtime/json-schema-json.js +309 -0
  1009. package/dist/runtime/json-schema-json.js.map +1 -0
  1010. package/dist/runtime/json-schema-metaschemas.d.ts +1403 -0
  1011. package/dist/runtime/json-schema-metaschemas.d.ts.map +1 -0
  1012. package/dist/runtime/json-schema-metaschemas.js +64 -0
  1013. package/dist/runtime/json-schema-metaschemas.js.map +1 -0
  1014. package/dist/runtime/json-schema-regex.d.ts +32 -0
  1015. package/dist/runtime/json-schema-regex.d.ts.map +1 -0
  1016. package/dist/runtime/json-schema-regex.js +895 -0
  1017. package/dist/runtime/json-schema-regex.js.map +1 -0
  1018. package/dist/runtime/json-schema-validator.d.ts +50 -0
  1019. package/dist/runtime/json-schema-validator.d.ts.map +1 -0
  1020. package/dist/runtime/json-schema-validator.js +404 -0
  1021. package/dist/runtime/json-schema-validator.js.map +1 -0
  1022. package/dist/runtime/json-text.js.map +1 -1
  1023. package/dist/runtime/local-first-token.d.ts +11 -0
  1024. package/dist/runtime/local-first-token.d.ts.map +1 -0
  1025. package/dist/runtime/local-first-token.js +20 -0
  1026. package/dist/runtime/local-first-token.js.map +1 -0
  1027. package/dist/runtime/local-first-unavailable.d.ts +40 -0
  1028. package/dist/runtime/local-first-unavailable.d.ts.map +1 -0
  1029. package/dist/runtime/local-first-unavailable.js +81 -0
  1030. package/dist/runtime/local-first-unavailable.js.map +1 -0
  1031. package/dist/runtime/local-first-upgrade.d.ts +36 -0
  1032. package/dist/runtime/local-first-upgrade.d.ts.map +1 -0
  1033. package/dist/runtime/local-first-upgrade.js +31 -0
  1034. package/dist/runtime/local-first-upgrade.js.map +1 -0
  1035. package/dist/runtime/local-write-observer.d.ts +5 -0
  1036. package/dist/runtime/local-write-observer.d.ts.map +1 -0
  1037. package/dist/runtime/local-write-observer.js +31 -0
  1038. package/dist/runtime/local-write-observer.js.map +1 -0
  1039. package/dist/runtime/metro-setup-error.d.ts +20 -0
  1040. package/dist/runtime/metro-setup-error.d.ts.map +1 -0
  1041. package/dist/runtime/metro-setup-error.js +22 -0
  1042. package/dist/runtime/metro-setup-error.js.map +1 -0
  1043. package/dist/runtime/native-artifact-compatibility.d.ts +12 -0
  1044. package/dist/runtime/native-artifact-compatibility.d.ts.map +1 -0
  1045. package/dist/runtime/native-artifact-compatibility.js +26 -0
  1046. package/dist/runtime/native-artifact-compatibility.js.map +1 -0
  1047. package/dist/runtime/native-artifact-fingerprint-napi.d.ts +2 -0
  1048. package/dist/runtime/native-artifact-fingerprint-napi.d.ts.map +1 -0
  1049. package/dist/runtime/native-artifact-fingerprint-napi.js +3 -0
  1050. package/dist/runtime/native-artifact-fingerprint-napi.js.map +1 -0
  1051. package/dist/runtime/native-artifact-fingerprint-wasm.d.ts +2 -0
  1052. package/dist/runtime/native-artifact-fingerprint-wasm.d.ts.map +1 -0
  1053. package/dist/runtime/native-artifact-fingerprint-wasm.js +3 -0
  1054. package/dist/runtime/native-artifact-fingerprint-wasm.js.map +1 -0
  1055. package/dist/runtime/native-artifact-fingerprints.d.ts +5 -0
  1056. package/dist/runtime/native-artifact-fingerprints.d.ts.map +1 -0
  1057. package/dist/runtime/native-artifact-fingerprints.js +7 -0
  1058. package/dist/runtime/native-artifact-fingerprints.js.map +1 -0
  1059. package/dist/runtime/native-artifact-mismatch-error.d.ts +25 -0
  1060. package/dist/runtime/native-artifact-mismatch-error.d.ts.map +1 -0
  1061. package/dist/runtime/native-artifact-mismatch-error.js +34 -0
  1062. package/dist/runtime/native-artifact-mismatch-error.js.map +1 -0
  1063. package/dist/runtime/native-runtime/attached-browser-worker-connection.d.ts +23 -0
  1064. package/dist/runtime/native-runtime/attached-browser-worker-connection.d.ts.map +1 -0
  1065. package/dist/runtime/native-runtime/attached-browser-worker-connection.js +45 -0
  1066. package/dist/runtime/native-runtime/attached-browser-worker-connection.js.map +1 -0
  1067. package/dist/runtime/native-runtime/auxiliary-receive-deadline.d.ts +15 -0
  1068. package/dist/runtime/native-runtime/auxiliary-receive-deadline.d.ts.map +1 -0
  1069. package/dist/runtime/native-runtime/auxiliary-receive-deadline.js +64 -0
  1070. package/dist/runtime/native-runtime/auxiliary-receive-deadline.js.map +1 -0
  1071. package/dist/runtime/native-runtime/broker-worker-load-failure.d.ts +34 -0
  1072. package/dist/runtime/native-runtime/broker-worker-load-failure.d.ts.map +1 -0
  1073. package/dist/runtime/native-runtime/broker-worker-load-failure.js +61 -0
  1074. package/dist/runtime/native-runtime/broker-worker-load-failure.js.map +1 -0
  1075. package/dist/runtime/native-runtime/browser-follower-connection.d.ts +109 -0
  1076. package/dist/runtime/native-runtime/browser-follower-connection.d.ts.map +1 -0
  1077. package/dist/runtime/native-runtime/browser-follower-connection.js +558 -0
  1078. package/dist/runtime/native-runtime/browser-follower-connection.js.map +1 -0
  1079. package/dist/runtime/native-runtime/browser-shared-worker-connection.d.ts +130 -0
  1080. package/dist/runtime/native-runtime/browser-shared-worker-connection.d.ts.map +1 -0
  1081. package/dist/runtime/native-runtime/browser-shared-worker-connection.js +988 -0
  1082. package/dist/runtime/native-runtime/browser-shared-worker-connection.js.map +1 -0
  1083. package/dist/runtime/native-runtime/browser-worker-protocol.d.ts +527 -0
  1084. package/dist/runtime/native-runtime/browser-worker-protocol.d.ts.map +1 -0
  1085. package/dist/runtime/native-runtime/browser-worker-protocol.js +296 -0
  1086. package/dist/runtime/native-runtime/browser-worker-protocol.js.map +1 -0
  1087. package/dist/runtime/native-runtime/browser-worker-transport.d.ts +56 -0
  1088. package/dist/runtime/native-runtime/browser-worker-transport.d.ts.map +1 -0
  1089. package/dist/runtime/native-runtime/browser-worker-transport.js +305 -0
  1090. package/dist/runtime/native-runtime/browser-worker-transport.js.map +1 -0
  1091. package/dist/runtime/native-runtime/exact-integer.d.ts +7 -0
  1092. package/dist/runtime/native-runtime/exact-integer.d.ts.map +1 -0
  1093. package/dist/runtime/native-runtime/exact-integer.js +18 -0
  1094. package/dist/runtime/native-runtime/exact-integer.js.map +1 -0
  1095. package/dist/runtime/native-runtime/http-stream-socket.d.ts +103 -0
  1096. package/dist/runtime/native-runtime/http-stream-socket.d.ts.map +1 -0
  1097. package/dist/runtime/native-runtime/http-stream-socket.js +554 -0
  1098. package/dist/runtime/native-runtime/http-stream-socket.js.map +1 -0
  1099. package/dist/runtime/native-runtime/inspector-control-lifecycle.d.ts +4 -0
  1100. package/dist/runtime/native-runtime/inspector-control-lifecycle.d.ts.map +1 -0
  1101. package/dist/runtime/native-runtime/inspector-control-lifecycle.js +33 -0
  1102. package/dist/runtime/native-runtime/inspector-control-lifecycle.js.map +1 -0
  1103. package/dist/runtime/native-runtime/native-codec.d.ts +172 -0
  1104. package/dist/runtime/native-runtime/native-codec.d.ts.map +1 -0
  1105. package/dist/runtime/native-runtime/native-codec.js +629 -0
  1106. package/dist/runtime/native-runtime/native-codec.js.map +1 -0
  1107. package/dist/runtime/native-runtime/native-error-code.d.ts +39 -0
  1108. package/dist/runtime/native-runtime/native-error-code.d.ts.map +1 -0
  1109. package/dist/runtime/native-runtime/native-error-code.js +64 -0
  1110. package/dist/runtime/native-runtime/native-error-code.js.map +1 -0
  1111. package/dist/runtime/native-runtime/native-row-codec.d.ts +161 -0
  1112. package/dist/runtime/native-runtime/native-row-codec.d.ts.map +1 -0
  1113. package/dist/runtime/native-runtime/native-row-codec.js +903 -0
  1114. package/dist/runtime/native-runtime/native-row-codec.js.map +1 -0
  1115. package/dist/runtime/native-runtime/native-row-descriptor-key.d.ts +15 -0
  1116. package/dist/runtime/native-runtime/native-row-descriptor-key.d.ts.map +1 -0
  1117. package/dist/runtime/native-runtime/native-row-descriptor-key.js +25 -0
  1118. package/dist/runtime/native-runtime/native-row-descriptor-key.js.map +1 -0
  1119. package/dist/runtime/native-runtime/native-runtime-adapter.d.ts +913 -0
  1120. package/dist/runtime/native-runtime/native-runtime-adapter.d.ts.map +1 -0
  1121. package/dist/runtime/native-runtime/native-runtime-adapter.js +5999 -0
  1122. package/dist/runtime/native-runtime/native-runtime-adapter.js.map +1 -0
  1123. package/dist/runtime/native-runtime/node-foreground-node-lease.browser.d.ts +17 -0
  1124. package/dist/runtime/native-runtime/node-foreground-node-lease.browser.d.ts.map +1 -0
  1125. package/dist/runtime/native-runtime/node-foreground-node-lease.browser.js +4 -0
  1126. package/dist/runtime/native-runtime/node-foreground-node-lease.browser.js.map +1 -0
  1127. package/dist/runtime/native-runtime/node-foreground-node-lease.d.ts +19 -0
  1128. package/dist/runtime/native-runtime/node-foreground-node-lease.d.ts.map +1 -0
  1129. package/dist/runtime/native-runtime/node-foreground-node-lease.js +297 -0
  1130. package/dist/runtime/native-runtime/node-foreground-node-lease.js.map +1 -0
  1131. package/dist/runtime/native-runtime/row-values-transport.d.ts +2 -0
  1132. package/dist/runtime/native-runtime/row-values-transport.d.ts.map +1 -0
  1133. package/dist/runtime/native-runtime/row-values-transport.js +21 -0
  1134. package/dist/runtime/native-runtime/row-values-transport.js.map +1 -0
  1135. package/dist/runtime/native-runtime/schema-codec.d.ts +10 -0
  1136. package/dist/runtime/native-runtime/schema-codec.d.ts.map +1 -0
  1137. package/dist/runtime/native-runtime/schema-codec.js +13 -0
  1138. package/dist/runtime/native-runtime/schema-codec.js.map +1 -0
  1139. package/dist/runtime/native-runtime/session-renewal-wire.d.ts +48 -0
  1140. package/dist/runtime/native-runtime/session-renewal-wire.d.ts.map +1 -0
  1141. package/dist/runtime/native-runtime/session-renewal-wire.js +107 -0
  1142. package/dist/runtime/native-runtime/session-renewal-wire.js.map +1 -0
  1143. package/dist/runtime/native-runtime/stream-endpoint-memory.d.ts +34 -0
  1144. package/dist/runtime/native-runtime/stream-endpoint-memory.d.ts.map +1 -0
  1145. package/dist/runtime/native-runtime/stream-endpoint-memory.js +146 -0
  1146. package/dist/runtime/native-runtime/stream-endpoint-memory.js.map +1 -0
  1147. package/dist/runtime/native-runtime/websocket.d.ts +327 -0
  1148. package/dist/runtime/native-runtime/websocket.d.ts.map +1 -0
  1149. package/dist/runtime/native-runtime/websocket.js +1112 -0
  1150. package/dist/runtime/native-runtime/websocket.js.map +1 -0
  1151. package/dist/runtime/newer-build-reload.d.ts +30 -0
  1152. package/dist/runtime/newer-build-reload.d.ts.map +1 -0
  1153. package/dist/runtime/newer-build-reload.js +59 -0
  1154. package/dist/runtime/newer-build-reload.js.map +1 -0
  1155. package/dist/runtime/page-cache.d.ts +44 -0
  1156. package/dist/runtime/page-cache.d.ts.map +1 -0
  1157. package/dist/runtime/page-cache.js +104 -0
  1158. package/dist/runtime/page-cache.js.map +1 -0
  1159. package/dist/runtime/page-handle.d.ts +83 -0
  1160. package/dist/runtime/page-handle.d.ts.map +1 -0
  1161. package/dist/runtime/page-handle.js +151 -0
  1162. package/dist/runtime/page-handle.js.map +1 -0
  1163. package/dist/runtime/passkey-backup.d.ts +3 -0
  1164. package/dist/runtime/passkey-backup.d.ts.map +1 -0
  1165. package/dist/runtime/passkey-backup.js +2 -0
  1166. package/dist/runtime/passkey-backup.js.map +1 -0
  1167. package/dist/runtime/platform-url.d.ts +10 -0
  1168. package/dist/runtime/platform-url.d.ts.map +1 -0
  1169. package/dist/runtime/platform-url.js +3 -0
  1170. package/dist/runtime/platform-url.js.map +1 -0
  1171. package/dist/runtime/platform-url.native.d.ts +6 -0
  1172. package/dist/runtime/platform-url.native.d.ts.map +1 -0
  1173. package/dist/runtime/platform-url.native.js +38 -0
  1174. package/dist/runtime/platform-url.native.js.map +1 -0
  1175. package/dist/runtime/query-adapter.d.ts +7 -15
  1176. package/dist/runtime/query-adapter.d.ts.map +1 -1
  1177. package/dist/runtime/query-adapter.js +477 -185
  1178. package/dist/runtime/query-adapter.js.map +1 -1
  1179. package/dist/runtime/query-builder-shape.d.ts +75 -0
  1180. package/dist/runtime/query-builder-shape.d.ts.map +1 -0
  1181. package/dist/runtime/query-builder-shape.js +225 -0
  1182. package/dist/runtime/query-builder-shape.js.map +1 -0
  1183. package/dist/runtime/query-column-name.d.ts +3 -0
  1184. package/dist/runtime/query-column-name.d.ts.map +1 -0
  1185. package/dist/runtime/query-column-name.js +10 -0
  1186. package/dist/runtime/query-column-name.js.map +1 -0
  1187. package/dist/runtime/query-output-table.d.ts +5 -0
  1188. package/dist/runtime/query-output-table.d.ts.map +1 -0
  1189. package/dist/runtime/query-output-table.js +30 -0
  1190. package/dist/runtime/query-output-table.js.map +1 -0
  1191. package/dist/runtime/recovery-phrase.d.ts +3 -0
  1192. package/dist/runtime/recovery-phrase.d.ts.map +1 -0
  1193. package/dist/runtime/recovery-phrase.js +2 -0
  1194. package/dist/runtime/recovery-phrase.js.map +1 -0
  1195. package/dist/runtime/remote-link-state.d.ts +20 -0
  1196. package/dist/runtime/remote-link-state.d.ts.map +1 -0
  1197. package/dist/runtime/remote-link-state.js +5 -0
  1198. package/dist/runtime/remote-link-state.js.map +1 -0
  1199. package/dist/runtime/removed-provider-props.d.ts +17 -0
  1200. package/dist/runtime/removed-provider-props.d.ts.map +1 -0
  1201. package/dist/runtime/removed-provider-props.js +16 -0
  1202. package/dist/runtime/removed-provider-props.js.map +1 -0
  1203. package/dist/runtime/row-transformer.d.ts +17 -3
  1204. package/dist/runtime/row-transformer.d.ts.map +1 -1
  1205. package/dist/runtime/row-transformer.js +182 -39
  1206. package/dist/runtime/row-transformer.js.map +1 -1
  1207. package/dist/runtime/run-cleanup-steps.d.ts +5 -0
  1208. package/dist/runtime/run-cleanup-steps.d.ts.map +1 -0
  1209. package/dist/runtime/run-cleanup-steps.js +19 -0
  1210. package/dist/runtime/run-cleanup-steps.js.map +1 -0
  1211. package/dist/runtime/runtime-closed-error.d.ts +9 -0
  1212. package/dist/runtime/runtime-closed-error.d.ts.map +1 -0
  1213. package/dist/runtime/runtime-closed-error.js +12 -0
  1214. package/dist/runtime/runtime-closed-error.js.map +1 -0
  1215. package/dist/runtime/runtime-config.d.ts +13 -0
  1216. package/dist/runtime/runtime-config.d.ts.map +1 -0
  1217. package/dist/runtime/runtime-config.js +115 -0
  1218. package/dist/runtime/runtime-config.js.map +1 -0
  1219. package/dist/runtime/runtime-entropy.d.ts +14 -0
  1220. package/dist/runtime/runtime-entropy.d.ts.map +1 -0
  1221. package/dist/runtime/runtime-entropy.js +43 -0
  1222. package/dist/runtime/runtime-entropy.js.map +1 -0
  1223. package/dist/runtime/runtime-source.d.ts +206 -0
  1224. package/dist/runtime/runtime-source.d.ts.map +1 -0
  1225. package/dist/runtime/runtime-source.js +64 -0
  1226. package/dist/runtime/runtime-source.js.map +1 -0
  1227. package/dist/runtime/schema-metadata.d.ts +22 -0
  1228. package/dist/runtime/schema-metadata.d.ts.map +1 -0
  1229. package/dist/runtime/schema-metadata.js +70 -0
  1230. package/dist/runtime/schema-metadata.js.map +1 -0
  1231. package/dist/runtime/select-projection.d.ts +5 -0
  1232. package/dist/runtime/select-projection.d.ts.map +1 -0
  1233. package/dist/runtime/select-projection.js +47 -0
  1234. package/dist/runtime/select-projection.js.map +1 -0
  1235. package/dist/runtime/snapshot-ref.d.ts +24 -0
  1236. package/dist/runtime/snapshot-ref.d.ts.map +1 -0
  1237. package/dist/runtime/snapshot-ref.js +43 -0
  1238. package/dist/runtime/snapshot-ref.js.map +1 -0
  1239. package/dist/runtime/store-held-by-another-tab-error.d.ts +53 -0
  1240. package/dist/runtime/store-held-by-another-tab-error.d.ts.map +1 -0
  1241. package/dist/runtime/store-held-by-another-tab-error.js +55 -0
  1242. package/dist/runtime/store-held-by-another-tab-error.js.map +1 -0
  1243. package/dist/runtime/streaming-source.d.ts +4 -0
  1244. package/dist/runtime/streaming-source.d.ts.map +1 -0
  1245. package/dist/runtime/streaming-source.js +53 -0
  1246. package/dist/runtime/streaming-source.js.map +1 -0
  1247. package/dist/runtime/structural-values.d.ts +6 -0
  1248. package/dist/runtime/structural-values.d.ts.map +1 -0
  1249. package/dist/runtime/structural-values.js +51 -0
  1250. package/dist/runtime/structural-values.js.map +1 -0
  1251. package/dist/runtime/subscription-manager.d.ts +103 -14
  1252. package/dist/runtime/subscription-manager.d.ts.map +1 -1
  1253. package/dist/runtime/subscription-manager.js +1051 -25
  1254. package/dist/runtime/subscription-manager.js.map +1 -1
  1255. package/dist/runtime/sync-status.d.ts +178 -0
  1256. package/dist/runtime/sync-status.d.ts.map +1 -0
  1257. package/dist/runtime/sync-status.js +163 -0
  1258. package/dist/runtime/sync-status.js.map +1 -0
  1259. package/dist/runtime/sync-telemetry.d.ts +35 -0
  1260. package/dist/runtime/sync-telemetry.d.ts.map +1 -0
  1261. package/dist/runtime/sync-telemetry.js +354 -0
  1262. package/dist/runtime/sync-telemetry.js.map +1 -0
  1263. package/dist/runtime/system-identity.d.ts +5 -0
  1264. package/dist/runtime/system-identity.d.ts.map +1 -0
  1265. package/dist/runtime/system-identity.js +10 -0
  1266. package/dist/runtime/system-identity.js.map +1 -0
  1267. package/dist/runtime/telemetry-env.d.ts +2 -0
  1268. package/dist/runtime/telemetry-env.d.ts.map +1 -0
  1269. package/dist/runtime/telemetry-env.js +16 -0
  1270. package/dist/runtime/telemetry-env.js.map +1 -0
  1271. package/dist/runtime/telemetry-env.native.d.ts +3 -0
  1272. package/dist/runtime/telemetry-env.native.d.ts.map +1 -0
  1273. package/dist/runtime/telemetry-env.native.js +7 -0
  1274. package/dist/runtime/telemetry-env.native.js.map +1 -0
  1275. package/dist/runtime/text-anchors.d.ts +58 -0
  1276. package/dist/runtime/text-anchors.d.ts.map +1 -0
  1277. package/dist/runtime/text-anchors.js +9 -0
  1278. package/dist/runtime/text-anchors.js.map +1 -0
  1279. package/dist/runtime/unsupported-storage-codecs-error.d.ts +53 -0
  1280. package/dist/runtime/unsupported-storage-codecs-error.d.ts.map +1 -0
  1281. package/dist/runtime/unsupported-storage-codecs-error.js +74 -0
  1282. package/dist/runtime/unsupported-storage-codecs-error.js.map +1 -0
  1283. package/dist/runtime/url.d.ts +32 -0
  1284. package/dist/runtime/url.d.ts.map +1 -0
  1285. package/dist/runtime/url.js +96 -0
  1286. package/dist/runtime/url.js.map +1 -0
  1287. package/dist/runtime/utf8.d.ts +10 -0
  1288. package/dist/runtime/utf8.d.ts.map +1 -0
  1289. package/dist/runtime/utf8.js +93 -0
  1290. package/dist/runtime/utf8.js.map +1 -0
  1291. package/dist/runtime/util.d.ts +18 -0
  1292. package/dist/runtime/util.d.ts.map +1 -0
  1293. package/dist/runtime/util.js +59 -0
  1294. package/dist/runtime/util.js.map +1 -0
  1295. package/dist/runtime/value-converter.d.ts +9 -17
  1296. package/dist/runtime/value-converter.d.ts.map +1 -1
  1297. package/dist/runtime/value-converter.js +157 -43
  1298. package/dist/runtime/value-converter.js.map +1 -1
  1299. package/dist/runtime/wasm-loader.d.ts +6 -0
  1300. package/dist/runtime/wasm-loader.d.ts.map +1 -0
  1301. package/dist/runtime/wasm-loader.js +127 -0
  1302. package/dist/runtime/wasm-loader.js.map +1 -0
  1303. package/dist/runtime/write-preparation.d.ts +24 -0
  1304. package/dist/runtime/write-preparation.d.ts.map +1 -0
  1305. package/dist/runtime/write-preparation.js +63 -0
  1306. package/dist/runtime/write-preparation.js.map +1 -0
  1307. package/dist/runtime/write-row.d.ts +8 -0
  1308. package/dist/runtime/write-row.d.ts.map +1 -0
  1309. package/dist/runtime/write-row.js +17 -0
  1310. package/dist/runtime/write-row.js.map +1 -0
  1311. package/dist/schema-builders.d.ts +55 -0
  1312. package/dist/schema-builders.d.ts.map +1 -0
  1313. package/dist/schema-builders.js +33 -0
  1314. package/dist/schema-builders.js.map +1 -0
  1315. package/dist/schema-dsl/define-schema.d.ts +32 -0
  1316. package/dist/schema-dsl/define-schema.d.ts.map +1 -0
  1317. package/dist/schema-dsl/define-schema.js +80 -0
  1318. package/dist/schema-dsl/define-schema.js.map +1 -0
  1319. package/dist/schema-dsl/readable-app.d.ts +30 -0
  1320. package/dist/schema-dsl/readable-app.d.ts.map +1 -0
  1321. package/dist/schema-dsl/readable-app.js +139 -0
  1322. package/dist/schema-dsl/readable-app.js.map +1 -0
  1323. package/dist/schema-dsl/table.d.ts +101 -0
  1324. package/dist/schema-dsl/table.d.ts.map +1 -0
  1325. package/dist/schema-dsl/table.js +153 -0
  1326. package/dist/schema-dsl/table.js.map +1 -0
  1327. package/dist/schema-errors.d.ts +6 -0
  1328. package/dist/schema-errors.d.ts.map +1 -0
  1329. package/dist/schema-errors.js +6 -0
  1330. package/dist/schema-errors.js.map +1 -0
  1331. package/dist/schema-loader.d.ts +16 -0
  1332. package/dist/schema-loader.d.ts.map +1 -0
  1333. package/dist/schema-loader.js +108 -0
  1334. package/dist/schema-loader.js.map +1 -0
  1335. package/dist/schema-name.d.ts +2 -0
  1336. package/dist/schema-name.d.ts.map +1 -0
  1337. package/dist/schema-name.js +19 -0
  1338. package/dist/schema-name.js.map +1 -0
  1339. package/dist/schema-namespace.d.ts +7 -0
  1340. package/dist/schema-namespace.d.ts.map +1 -0
  1341. package/dist/schema-namespace.js +7 -0
  1342. package/dist/schema-namespace.js.map +1 -0
  1343. package/dist/schema-permissions.d.ts +12 -0
  1344. package/dist/schema-permissions.d.ts.map +1 -0
  1345. package/dist/schema-permissions.js +17 -0
  1346. package/dist/schema-permissions.js.map +1 -0
  1347. package/dist/schema-source.d.ts +11 -0
  1348. package/dist/schema-source.d.ts.map +1 -0
  1349. package/dist/schema-source.js +53 -0
  1350. package/dist/schema-source.js.map +1 -0
  1351. package/dist/schema.d.ts +95 -38
  1352. package/dist/schema.d.ts.map +1 -1
  1353. package/dist/schema.js +1 -16
  1354. package/dist/schema.js.map +1 -1
  1355. package/dist/session/backend-watch.d.ts +186 -0
  1356. package/dist/session/backend-watch.d.ts.map +1 -0
  1357. package/dist/session/backend-watch.js +698 -0
  1358. package/dist/session/backend-watch.js.map +1 -0
  1359. package/dist/session/config-options.d.ts +15 -0
  1360. package/dist/session/config-options.d.ts.map +1 -0
  1361. package/dist/session/config-options.js +55 -0
  1362. package/dist/session/config-options.js.map +1 -0
  1363. package/dist/session/consumer.d.ts +3 -0
  1364. package/dist/session/consumer.d.ts.map +1 -0
  1365. package/dist/session/consumer.js +3 -0
  1366. package/dist/session/consumer.js.map +1 -0
  1367. package/dist/session/create-jazz-session.d.ts +123 -0
  1368. package/dist/session/create-jazz-session.d.ts.map +1 -0
  1369. package/dist/session/create-jazz-session.js +542 -0
  1370. package/dist/session/create-jazz-session.js.map +1 -0
  1371. package/dist/session/deprecated-session-hook.d.ts +8 -0
  1372. package/dist/session/deprecated-session-hook.d.ts.map +1 -0
  1373. package/dist/session/deprecated-session-hook.js +28 -0
  1374. package/dist/session/deprecated-session-hook.js.map +1 -0
  1375. package/dist/session/follow-user.d.ts +72 -0
  1376. package/dist/session/follow-user.d.ts.map +1 -0
  1377. package/dist/session/follow-user.js +147 -0
  1378. package/dist/session/follow-user.js.map +1 -0
  1379. package/dist/session/jazz-session.d.ts +234 -0
  1380. package/dist/session/jazz-session.d.ts.map +1 -0
  1381. package/dist/session/jazz-session.js +528 -0
  1382. package/dist/session/jazz-session.js.map +1 -0
  1383. package/dist/session/native-backend-watch.d.ts +4 -0
  1384. package/dist/session/native-backend-watch.d.ts.map +1 -0
  1385. package/dist/session/native-backend-watch.js +14 -0
  1386. package/dist/session/native-backend-watch.js.map +1 -0
  1387. package/dist/session/no-kept-device-account-error.d.ts +6 -0
  1388. package/dist/session/no-kept-device-account-error.d.ts.map +1 -0
  1389. package/dist/session/no-kept-device-account-error.js +8 -0
  1390. package/dist/session/no-kept-device-account-error.js.map +1 -0
  1391. package/dist/session/replica-ledger.d.ts +164 -0
  1392. package/dist/session/replica-ledger.d.ts.map +1 -0
  1393. package/dist/session/replica-ledger.js +496 -0
  1394. package/dist/session/replica-ledger.js.map +1 -0
  1395. package/dist/session/state.d.ts +135 -0
  1396. package/dist/session/state.d.ts.map +1 -0
  1397. package/dist/session/state.js +535 -0
  1398. package/dist/session/state.js.map +1 -0
  1399. package/dist/shared/index.d.ts +20 -0
  1400. package/dist/shared/index.d.ts.map +1 -0
  1401. package/dist/shared/index.js +17 -0
  1402. package/dist/shared/index.js.map +1 -0
  1403. package/dist/solid/create-solid-jazz-client-internal.d.ts +13 -0
  1404. package/dist/solid/create-solid-jazz-client-internal.d.ts.map +1 -0
  1405. package/dist/solid/create-solid-jazz-client-internal.js +82 -0
  1406. package/dist/solid/create-solid-jazz-client-internal.js.map +1 -0
  1407. package/dist/solid/create-solid-jazz-client-internal.ssr.js +101 -0
  1408. package/dist/solid/create-solid-jazz-client-internal.ssr.js.map +1 -0
  1409. package/dist/solid/create-solid-jazz-client.d.ts +24 -0
  1410. package/dist/solid/create-solid-jazz-client.d.ts.map +1 -0
  1411. package/dist/solid/create-solid-jazz-client.js +42 -0
  1412. package/dist/solid/create-solid-jazz-client.js.map +1 -0
  1413. package/dist/solid/create-solid-jazz-client.ssr.js +45 -0
  1414. package/dist/solid/create-solid-jazz-client.ssr.js.map +1 -0
  1415. package/dist/solid/index.d.ts +14 -0
  1416. package/dist/solid/index.d.ts.map +1 -0
  1417. package/dist/solid/index.js +10 -0
  1418. package/dist/solid/index.ssr.js +10 -0
  1419. package/dist/solid/provider.d.ts +36 -0
  1420. package/dist/solid/provider.d.ts.map +1 -0
  1421. package/dist/solid/provider.js +54 -0
  1422. package/dist/solid/provider.js.map +1 -0
  1423. package/dist/solid/provider.ssr.js +58 -0
  1424. package/dist/solid/provider.ssr.js.map +1 -0
  1425. package/dist/solid/session-context.d.ts +14 -0
  1426. package/dist/solid/session-context.d.ts.map +1 -0
  1427. package/dist/solid/session-context.js +6 -0
  1428. package/dist/solid/session-context.js.map +1 -0
  1429. package/dist/solid/session-context.ssr.js +10 -0
  1430. package/dist/solid/session-context.ssr.js.map +1 -0
  1431. package/dist/solid/session.d.ts +55 -0
  1432. package/dist/solid/session.d.ts.map +1 -0
  1433. package/dist/solid/session.js +130 -0
  1434. package/dist/solid/session.js.map +1 -0
  1435. package/dist/solid/session.ssr.js +156 -0
  1436. package/dist/solid/session.ssr.js.map +1 -0
  1437. package/dist/solid/solid-jazz-client-store.d.ts +11 -0
  1438. package/dist/solid/solid-jazz-client-store.d.ts.map +1 -0
  1439. package/dist/solid/solid-jazz-client-store.js +38 -0
  1440. package/dist/solid/solid-jazz-client-store.js.map +1 -0
  1441. package/dist/solid/solid-jazz-client-store.ssr.js +39 -0
  1442. package/dist/solid/solid-jazz-client-store.ssr.js.map +1 -0
  1443. package/dist/solid/use-all.d.ts +18 -0
  1444. package/dist/solid/use-all.d.ts.map +1 -0
  1445. package/dist/solid/use-all.js +71 -0
  1446. package/dist/solid/use-all.js.map +1 -0
  1447. package/dist/solid/use-all.ssr.js +84 -0
  1448. package/dist/solid/use-all.ssr.js.map +1 -0
  1449. package/dist/solid/use-one.d.ts +18 -0
  1450. package/dist/solid/use-one.d.ts.map +1 -0
  1451. package/dist/solid/use-one.js +27 -0
  1452. package/dist/solid/use-one.js.map +1 -0
  1453. package/dist/solid/use-one.ssr.js +27 -0
  1454. package/dist/solid/use-one.ssr.js.map +1 -0
  1455. package/dist/solid/use-sync-status.d.ts +8 -0
  1456. package/dist/solid/use-sync-status.d.ts.map +1 -0
  1457. package/dist/solid/use-sync-status.js +13 -0
  1458. package/dist/solid/use-sync-status.js.map +1 -0
  1459. package/dist/solid/use-sync-status.ssr.js +20 -0
  1460. package/dist/solid/use-sync-status.ssr.js.map +1 -0
  1461. package/dist/subscription-store-internal.d.ts +11 -0
  1462. package/dist/subscription-store-internal.d.ts.map +1 -0
  1463. package/dist/subscription-store-internal.js +18 -0
  1464. package/dist/subscription-store-internal.js.map +1 -0
  1465. package/dist/subscriptions-orchestrator.d.ts +93 -13
  1466. package/dist/subscriptions-orchestrator.d.ts.map +1 -1
  1467. package/dist/subscriptions-orchestrator.js +392 -75
  1468. package/dist/subscriptions-orchestrator.js.map +1 -1
  1469. package/dist/svelte/JazzProvider.svelte +110 -0
  1470. package/dist/svelte/JazzProvider.svelte.d.ts +24 -0
  1471. package/dist/svelte/JazzProvider.svelte.d.ts.map +1 -0
  1472. package/dist/svelte/JazzSvelteClientProvider.svelte +83 -0
  1473. package/dist/svelte/JazzSvelteClientProvider.svelte.d.ts +15 -0
  1474. package/dist/svelte/JazzSvelteClientProvider.svelte.d.ts.map +1 -0
  1475. package/dist/svelte/JazzSvelteProvider.svelte +160 -28
  1476. package/dist/svelte/JazzSvelteProvider.svelte.d.ts +4 -3
  1477. package/dist/svelte/JazzSvelteProvider.svelte.d.ts.map +1 -1
  1478. package/dist/svelte/context.svelte.d.ts +30 -3
  1479. package/dist/svelte/context.svelte.d.ts.map +1 -1
  1480. package/dist/svelte/context.svelte.js +37 -3
  1481. package/dist/svelte/create-jazz-client.d.ts +2 -8
  1482. package/dist/svelte/create-jazz-client.d.ts.map +1 -1
  1483. package/dist/svelte/create-jazz-client.js +1 -17
  1484. package/dist/svelte/index.d.ts +14 -6
  1485. package/dist/svelte/index.d.ts.map +1 -1
  1486. package/dist/svelte/index.js +11 -6
  1487. package/dist/svelte/query-subscription.svelte.d.ts +60 -0
  1488. package/dist/svelte/query-subscription.svelte.d.ts.map +1 -0
  1489. package/dist/svelte/query-subscription.svelte.js +135 -0
  1490. package/dist/svelte/session-state.d.ts +27 -0
  1491. package/dist/svelte/session-state.d.ts.map +1 -0
  1492. package/dist/svelte/session-state.js +49 -0
  1493. package/dist/svelte/sync-status.d.ts +11 -0
  1494. package/dist/svelte/sync-status.d.ts.map +1 -0
  1495. package/dist/svelte/sync-status.js +15 -0
  1496. package/dist/testing/fixtures/with-bigint/schema.d.ts +18 -0
  1497. package/dist/testing/fixtures/with-bigint/schema.d.ts.map +1 -0
  1498. package/dist/testing/fixtures/with-bigint/schema.js +15 -0
  1499. package/dist/testing/fixtures/with-bigint/schema.js.map +1 -0
  1500. package/dist/testing/index.d.ts +6 -1
  1501. package/dist/testing/index.d.ts.map +1 -1
  1502. package/dist/testing/index.js +5 -1
  1503. package/dist/testing/index.js.map +1 -1
  1504. package/dist/testing/policy-test-app.d.ts +129 -0
  1505. package/dist/testing/policy-test-app.d.ts.map +1 -0
  1506. package/dist/testing/policy-test-app.js +229 -0
  1507. package/dist/testing/policy-test-app.js.map +1 -0
  1508. package/dist/testing/test-app.d.ts +272 -0
  1509. package/dist/testing/test-app.d.ts.map +1 -0
  1510. package/dist/testing/test-app.js +62 -0
  1511. package/dist/testing/test-app.js.map +1 -0
  1512. package/dist/testing/test-jazz.d.ts +119 -0
  1513. package/dist/testing/test-jazz.d.ts.map +1 -0
  1514. package/dist/testing/test-jazz.js +162 -0
  1515. package/dist/testing/test-jazz.js.map +1 -0
  1516. package/dist/testing/test-jwt-issuer.d.ts +19 -0
  1517. package/dist/testing/test-jwt-issuer.d.ts.map +1 -0
  1518. package/dist/testing/test-jwt-issuer.js +40 -0
  1519. package/dist/testing/test-jwt-issuer.js.map +1 -0
  1520. package/dist/text-field/index.d.ts +40 -0
  1521. package/dist/text-field/index.d.ts.map +1 -0
  1522. package/dist/text-field/index.js +129 -0
  1523. package/dist/text-field/index.js.map +1 -0
  1524. package/dist/thin/index.d.ts +81 -0
  1525. package/dist/thin/index.d.ts.map +1 -0
  1526. package/dist/thin/index.js +221 -0
  1527. package/dist/thin/index.js.map +1 -0
  1528. package/dist/thin/self-signed-token.d.ts +13 -0
  1529. package/dist/thin/self-signed-token.d.ts.map +1 -0
  1530. package/dist/thin/self-signed-token.js +100 -0
  1531. package/dist/thin/self-signed-token.js.map +1 -0
  1532. package/dist/thin/thin-runtime-source.d.ts +19 -0
  1533. package/dist/thin/thin-runtime-source.d.ts.map +1 -0
  1534. package/dist/thin/thin-runtime-source.js +66 -0
  1535. package/dist/thin/thin-runtime-source.js.map +1 -0
  1536. package/dist/thin/thin-runtime.d.ts +294 -0
  1537. package/dist/thin/thin-runtime.d.ts.map +1 -0
  1538. package/dist/thin/thin-runtime.js +1492 -0
  1539. package/dist/thin/thin-runtime.js.map +1 -0
  1540. package/dist/thin/wire.d.ts +160 -0
  1541. package/dist/thin/wire.d.ts.map +1 -0
  1542. package/dist/thin/wire.js +304 -0
  1543. package/dist/thin/wire.js.map +1 -0
  1544. package/dist/typed-app.d.ts +644 -0
  1545. package/dist/typed-app.d.ts.map +1 -0
  1546. package/dist/typed-app.js +549 -0
  1547. package/dist/typed-app.js.map +1 -0
  1548. package/dist/upgrade/aliases.d.ts +25 -0
  1549. package/dist/upgrade/aliases.d.ts.map +1 -0
  1550. package/dist/upgrade/aliases.js +80 -0
  1551. package/dist/upgrade/aliases.js.map +1 -0
  1552. package/dist/upgrade/app-json.d.ts +32 -0
  1553. package/dist/upgrade/app-json.d.ts.map +1 -0
  1554. package/dist/upgrade/app-json.js +145 -0
  1555. package/dist/upgrade/app-json.js.map +1 -0
  1556. package/dist/upgrade/constants.d.ts +25 -0
  1557. package/dist/upgrade/constants.d.ts.map +1 -0
  1558. package/dist/upgrade/constants.js +136 -0
  1559. package/dist/upgrade/constants.js.map +1 -0
  1560. package/dist/upgrade/edits.d.ts +10 -0
  1561. package/dist/upgrade/edits.d.ts.map +1 -0
  1562. package/dist/upgrade/edits.js +21 -0
  1563. package/dist/upgrade/edits.js.map +1 -0
  1564. package/dist/upgrade/errors.d.ts +12 -0
  1565. package/dist/upgrade/errors.d.ts.map +1 -0
  1566. package/dist/upgrade/errors.js +18 -0
  1567. package/dist/upgrade/errors.js.map +1 -0
  1568. package/dist/upgrade/extras.d.ts +42 -0
  1569. package/dist/upgrade/extras.d.ts.map +1 -0
  1570. package/dist/upgrade/extras.js +487 -0
  1571. package/dist/upgrade/extras.js.map +1 -0
  1572. package/dist/upgrade/fresh.d.ts +36 -0
  1573. package/dist/upgrade/fresh.d.ts.map +1 -0
  1574. package/dist/upgrade/fresh.js +154 -0
  1575. package/dist/upgrade/fresh.js.map +1 -0
  1576. package/dist/upgrade/index.d.ts +79 -0
  1577. package/dist/upgrade/index.d.ts.map +1 -0
  1578. package/dist/upgrade/index.js +806 -0
  1579. package/dist/upgrade/index.js.map +1 -0
  1580. package/dist/upgrade/json-only.d.ts +24 -0
  1581. package/dist/upgrade/json-only.d.ts.map +1 -0
  1582. package/dist/upgrade/json-only.js +124 -0
  1583. package/dist/upgrade/json-only.js.map +1 -0
  1584. package/dist/upgrade/names.d.ts +29 -0
  1585. package/dist/upgrade/names.d.ts.map +1 -0
  1586. package/dist/upgrade/names.js +105 -0
  1587. package/dist/upgrade/names.js.map +1 -0
  1588. package/dist/upgrade/payload-enums.d.ts +18 -0
  1589. package/dist/upgrade/payload-enums.d.ts.map +1 -0
  1590. package/dist/upgrade/payload-enums.js +52 -0
  1591. package/dist/upgrade/payload-enums.js.map +1 -0
  1592. package/dist/upgrade/permissions-check.d.ts +10 -0
  1593. package/dist/upgrade/permissions-check.d.ts.map +1 -0
  1594. package/dist/upgrade/permissions-check.js +85 -0
  1595. package/dist/upgrade/permissions-check.js.map +1 -0
  1596. package/dist/upgrade/program.d.ts +18 -0
  1597. package/dist/upgrade/program.d.ts.map +1 -0
  1598. package/dist/upgrade/program.js +56 -0
  1599. package/dist/upgrade/program.js.map +1 -0
  1600. package/dist/upgrade/project.d.ts +56 -0
  1601. package/dist/upgrade/project.d.ts.map +1 -0
  1602. package/dist/upgrade/project.js +254 -0
  1603. package/dist/upgrade/project.js.map +1 -0
  1604. package/dist/upgrade/rewrite.d.ts +34 -0
  1605. package/dist/upgrade/rewrite.d.ts.map +1 -0
  1606. package/dist/upgrade/rewrite.js +500 -0
  1607. package/dist/upgrade/rewrite.js.map +1 -0
  1608. package/dist/upgrade/schema-ts.d.ts +59 -0
  1609. package/dist/upgrade/schema-ts.d.ts.map +1 -0
  1610. package/dist/upgrade/schema-ts.js +582 -0
  1611. package/dist/upgrade/schema-ts.js.map +1 -0
  1612. package/dist/upgrade/snapshot.d.ts +11 -0
  1613. package/dist/upgrade/snapshot.d.ts.map +1 -0
  1614. package/dist/upgrade/snapshot.js +90 -0
  1615. package/dist/upgrade/snapshot.js.map +1 -0
  1616. package/dist/upgrade/upgrade-test-helpers.d.ts +12 -0
  1617. package/dist/upgrade/upgrade-test-helpers.d.ts.map +1 -0
  1618. package/dist/upgrade/upgrade-test-helpers.js +72 -0
  1619. package/dist/upgrade/upgrade-test-helpers.js.map +1 -0
  1620. package/dist/vue/create-jazz-client.d.ts +3 -0
  1621. package/dist/vue/create-jazz-client.d.ts.map +1 -0
  1622. package/dist/vue/create-jazz-client.js +2 -0
  1623. package/dist/vue/create-jazz-client.js.map +1 -0
  1624. package/dist/vue/index.d.ts +14 -0
  1625. package/dist/vue/index.d.ts.map +1 -0
  1626. package/dist/vue/index.js +11 -0
  1627. package/dist/vue/index.js.map +1 -0
  1628. package/dist/vue/provider.d.ts +83 -0
  1629. package/dist/vue/provider.d.ts.map +1 -0
  1630. package/dist/vue/provider.js +231 -0
  1631. package/dist/vue/provider.js.map +1 -0
  1632. package/dist/vue/session-key.d.ts +15 -0
  1633. package/dist/vue/session-key.d.ts.map +1 -0
  1634. package/dist/vue/session-key.js +7 -0
  1635. package/dist/vue/session-key.js.map +1 -0
  1636. package/dist/vue/session.d.ts +40 -0
  1637. package/dist/vue/session.d.ts.map +1 -0
  1638. package/dist/vue/session.js +112 -0
  1639. package/dist/vue/session.js.map +1 -0
  1640. package/dist/vue/use-all.d.ts +61 -0
  1641. package/dist/vue/use-all.d.ts.map +1 -0
  1642. package/dist/vue/use-all.js +104 -0
  1643. package/dist/vue/use-all.js.map +1 -0
  1644. package/dist/vue/use-one.d.ts +24 -0
  1645. package/dist/vue/use-one.d.ts.map +1 -0
  1646. package/dist/vue/use-one.js +17 -0
  1647. package/dist/vue/use-one.js.map +1 -0
  1648. package/dist/vue/use-sync-status.d.ts +9 -0
  1649. package/dist/vue/use-sync-status.d.ts.map +1 -0
  1650. package/dist/vue/use-sync-status.js +16 -0
  1651. package/dist/vue/use-sync-status.js.map +1 -0
  1652. package/dist/web/create-jazz-client.d.ts +12 -0
  1653. package/dist/web/create-jazz-client.d.ts.map +1 -0
  1654. package/dist/web/create-jazz-client.js +35 -0
  1655. package/dist/web/create-jazz-client.js.map +1 -0
  1656. package/dist/web/lazy-local-first.d.ts +8 -0
  1657. package/dist/web/lazy-local-first.d.ts.map +1 -0
  1658. package/dist/web/lazy-local-first.js +13 -0
  1659. package/dist/web/lazy-local-first.js.map +1 -0
  1660. package/dist/web/registered-jazz-client.d.ts +15 -0
  1661. package/dist/web/registered-jazz-client.d.ts.map +1 -0
  1662. package/dist/web/registered-jazz-client.js +35 -0
  1663. package/dist/web/registered-jazz-client.js.map +1 -0
  1664. package/dist/where-operators.d.ts +13 -0
  1665. package/dist/where-operators.d.ts.map +1 -0
  1666. package/dist/where-operators.js +66 -0
  1667. package/dist/where-operators.js.map +1 -0
  1668. package/dist/window-client-storage.d.ts +7 -0
  1669. package/dist/window-client-storage.d.ts.map +1 -0
  1670. package/dist/window-client-storage.js +27 -0
  1671. package/dist/window-client-storage.js.map +1 -0
  1672. package/dist/worker/jazz-broker-worker-core.d.ts +34 -0
  1673. package/dist/worker/jazz-broker-worker-core.d.ts.map +1 -0
  1674. package/dist/worker/jazz-broker-worker-core.js +2241 -0
  1675. package/dist/worker/jazz-broker-worker-core.js.map +1 -0
  1676. package/dist/worker/jazz-broker-worker.d.ts +3 -0
  1677. package/dist/worker/jazz-broker-worker.d.ts.map +1 -0
  1678. package/dist/worker/jazz-broker-worker.js +5 -0
  1679. package/dist/worker/jazz_wasm_bg.wasm +0 -0
  1680. package/dist/worker/mutation-error-delivery.d.ts +8 -0
  1681. package/dist/worker/mutation-error-delivery.d.ts.map +1 -0
  1682. package/dist/worker/mutation-error-delivery.js +10 -0
  1683. package/dist/worker/mutation-error-delivery.js.map +1 -0
  1684. package/dist/worker/runtime-admission.d.ts +34 -0
  1685. package/dist/worker/runtime-admission.d.ts.map +1 -0
  1686. package/dist/worker/runtime-admission.js +60 -0
  1687. package/dist/worker/runtime-admission.js.map +1 -0
  1688. package/dist/worker/vite-dev-broker.d.ts +2 -0
  1689. package/dist/worker/vite-dev-broker.d.ts.map +1 -0
  1690. package/dist/worker/vite-dev-broker.js +8 -0
  1691. package/dist/worker/vite-dev-broker.js.map +1 -0
  1692. package/package.json +301 -35
  1693. package/bin/native/.gitkeep +0 -0
  1694. package/bin/native/jazz-tools-darwin-arm64 +0 -0
  1695. package/bin/native/jazz-tools-darwin-x64 +0 -0
  1696. package/bin/native/jazz-tools-linux-arm64 +0 -0
  1697. package/bin/native/jazz-tools-linux-x64 +0 -0
  1698. package/bin/native/jazz-tools-windows-x64.exe +0 -0
  1699. package/dist/cli.test.d.ts +0 -2
  1700. package/dist/cli.test.d.ts.map +0 -1
  1701. package/dist/cli.test.js +0 -154
  1702. package/dist/cli.test.js.map +0 -1
  1703. package/dist/codegen/codegen.test.d.ts +0 -2
  1704. package/dist/codegen/codegen.test.d.ts.map +0 -1
  1705. package/dist/codegen/codegen.test.js +0 -925
  1706. package/dist/codegen/codegen.test.js.map +0 -1
  1707. package/dist/codegen/index.d.ts +0 -18
  1708. package/dist/codegen/index.d.ts.map +0 -1
  1709. package/dist/codegen/index.js +0 -22
  1710. package/dist/codegen/index.js.map +0 -1
  1711. package/dist/codegen/query-builder-generator.d.ts +0 -26
  1712. package/dist/codegen/query-builder-generator.d.ts.map +0 -1
  1713. package/dist/codegen/query-builder-generator.js +0 -334
  1714. package/dist/codegen/query-builder-generator.js.map +0 -1
  1715. package/dist/codegen/schema-reader.d.ts +0 -12
  1716. package/dist/codegen/schema-reader.d.ts.map +0 -1
  1717. package/dist/codegen/schema-reader.js +0 -195
  1718. package/dist/codegen/schema-reader.js.map +0 -1
  1719. package/dist/codegen/type-generator.d.ts +0 -29
  1720. package/dist/codegen/type-generator.d.ts.map +0 -1
  1721. package/dist/codegen/type-generator.js +0 -296
  1722. package/dist/codegen/type-generator.js.map +0 -1
  1723. package/dist/dsl.test.d.ts +0 -2
  1724. package/dist/dsl.test.d.ts.map +0 -1
  1725. package/dist/dsl.test.js +0 -51
  1726. package/dist/dsl.test.js.map +0 -1
  1727. package/dist/permissions/index.test.d.ts +0 -2
  1728. package/dist/permissions/index.test.d.ts.map +0 -1
  1729. package/dist/permissions/index.test.js +0 -830
  1730. package/dist/permissions/index.test.js.map +0 -1
  1731. package/dist/permissions/type-inference.test.d.ts +0 -2
  1732. package/dist/permissions/type-inference.test.d.ts.map +0 -1
  1733. package/dist/permissions/type-inference.test.js +0 -151
  1734. package/dist/permissions/type-inference.test.js.map +0 -1
  1735. package/dist/react/create-jazz-client.integration.test.d.ts +0 -2
  1736. package/dist/react/create-jazz-client.integration.test.d.ts.map +0 -1
  1737. package/dist/react/create-jazz-client.integration.test.js +0 -84
  1738. package/dist/react/create-jazz-client.integration.test.js.map +0 -1
  1739. package/dist/react/create-jazz-client.test.d.ts +0 -2
  1740. package/dist/react/create-jazz-client.test.d.ts.map +0 -1
  1741. package/dist/react/create-jazz-client.test.js +0 -133
  1742. package/dist/react/create-jazz-client.test.js.map +0 -1
  1743. package/dist/react/synthetic-user-switcher.d.ts +0 -9
  1744. package/dist/react/synthetic-user-switcher.d.ts.map +0 -1
  1745. package/dist/react/synthetic-user-switcher.js +0 -65
  1746. package/dist/react/synthetic-user-switcher.js.map +0 -1
  1747. package/dist/react/synthetic-users.d.ts +0 -2
  1748. package/dist/react/synthetic-users.d.ts.map +0 -1
  1749. package/dist/react/synthetic-users.js +0 -2
  1750. package/dist/react/synthetic-users.js.map +0 -1
  1751. package/dist/react/synthetic-users.test.d.ts +0 -2
  1752. package/dist/react/synthetic-users.test.d.ts.map +0 -1
  1753. package/dist/react/synthetic-users.test.js +0 -43
  1754. package/dist/react/synthetic-users.test.js.map +0 -1
  1755. package/dist/react/use-link-external-identity.d.ts +0 -25
  1756. package/dist/react/use-link-external-identity.d.ts.map +0 -1
  1757. package/dist/react/use-link-external-identity.js +0 -45
  1758. package/dist/react/use-link-external-identity.js.map +0 -1
  1759. package/dist/react-native/create-jazz-client.test.d.ts +0 -2
  1760. package/dist/react-native/create-jazz-client.test.d.ts.map +0 -1
  1761. package/dist/react-native/create-jazz-client.test.js +0 -162
  1762. package/dist/react-native/create-jazz-client.test.js.map +0 -1
  1763. package/dist/react-native/create-jazz-rn-runtime.d.ts +0 -13
  1764. package/dist/react-native/create-jazz-rn-runtime.d.ts.map +0 -1
  1765. package/dist/react-native/create-jazz-rn-runtime.js +0 -7
  1766. package/dist/react-native/create-jazz-rn-runtime.js.map +0 -1
  1767. package/dist/react-native/db.d.ts +0 -16
  1768. package/dist/react-native/db.d.ts.map +0 -1
  1769. package/dist/react-native/db.js +0 -50
  1770. package/dist/react-native/db.js.map +0 -1
  1771. package/dist/react-native/db.test.d.ts +0 -2
  1772. package/dist/react-native/db.test.d.ts.map +0 -1
  1773. package/dist/react-native/db.test.js +0 -150
  1774. package/dist/react-native/db.test.js.map +0 -1
  1775. package/dist/react-native/jazz-rn-runtime-adapter.d.ts +0 -56
  1776. package/dist/react-native/jazz-rn-runtime-adapter.d.ts.map +0 -1
  1777. package/dist/react-native/jazz-rn-runtime-adapter.js +0 -192
  1778. package/dist/react-native/jazz-rn-runtime-adapter.js.map +0 -1
  1779. package/dist/react-native/jazz-rn-runtime-adapter.test.d.ts +0 -2
  1780. package/dist/react-native/jazz-rn-runtime-adapter.test.d.ts.map +0 -1
  1781. package/dist/react-native/jazz-rn-runtime-adapter.test.js +0 -165
  1782. package/dist/react-native/jazz-rn-runtime-adapter.test.js.map +0 -1
  1783. package/dist/runtime/client-session.test.d.ts +0 -2
  1784. package/dist/runtime/client-session.test.d.ts.map +0 -1
  1785. package/dist/runtime/client-session.test.js +0 -84
  1786. package/dist/runtime/client-session.test.js.map +0 -1
  1787. package/dist/runtime/client.for-request.test.d.ts +0 -2
  1788. package/dist/runtime/client.for-request.test.d.ts.map +0 -1
  1789. package/dist/runtime/client.for-request.test.js +0 -171
  1790. package/dist/runtime/client.for-request.test.js.map +0 -1
  1791. package/dist/runtime/cloud-server.integration.test.d.ts +0 -2
  1792. package/dist/runtime/cloud-server.integration.test.d.ts.map +0 -1
  1793. package/dist/runtime/cloud-server.integration.test.js +0 -985
  1794. package/dist/runtime/cloud-server.integration.test.js.map +0 -1
  1795. package/dist/runtime/leader-lock.d.ts +0 -15
  1796. package/dist/runtime/leader-lock.d.ts.map +0 -1
  1797. package/dist/runtime/leader-lock.js +0 -49
  1798. package/dist/runtime/leader-lock.js.map +0 -1
  1799. package/dist/runtime/local-auth.d.ts +0 -32
  1800. package/dist/runtime/local-auth.d.ts.map +0 -1
  1801. package/dist/runtime/local-auth.js +0 -93
  1802. package/dist/runtime/local-auth.js.map +0 -1
  1803. package/dist/runtime/local-auth.test.d.ts +0 -2
  1804. package/dist/runtime/local-auth.test.d.ts.map +0 -1
  1805. package/dist/runtime/local-auth.test.js +0 -50
  1806. package/dist/runtime/local-auth.test.js.map +0 -1
  1807. package/dist/runtime/query-adapter.test.d.ts +0 -5
  1808. package/dist/runtime/query-adapter.test.d.ts.map +0 -1
  1809. package/dist/runtime/query-adapter.test.js +0 -1276
  1810. package/dist/runtime/query-adapter.test.js.map +0 -1
  1811. package/dist/runtime/row-transformer.test.d.ts +0 -5
  1812. package/dist/runtime/row-transformer.test.d.ts.map +0 -1
  1813. package/dist/runtime/row-transformer.test.js +0 -389
  1814. package/dist/runtime/row-transformer.test.js.map +0 -1
  1815. package/dist/runtime/subscription-manager.test.d.ts +0 -5
  1816. package/dist/runtime/subscription-manager.test.d.ts.map +0 -1
  1817. package/dist/runtime/subscription-manager.test.js +0 -120
  1818. package/dist/runtime/subscription-manager.test.js.map +0 -1
  1819. package/dist/runtime/sync-transport.d.ts +0 -163
  1820. package/dist/runtime/sync-transport.d.ts.map +0 -1
  1821. package/dist/runtime/sync-transport.js +0 -477
  1822. package/dist/runtime/sync-transport.js.map +0 -1
  1823. package/dist/runtime/sync-transport.test.d.ts +0 -2
  1824. package/dist/runtime/sync-transport.test.d.ts.map +0 -1
  1825. package/dist/runtime/sync-transport.test.js +0 -310
  1826. package/dist/runtime/sync-transport.test.js.map +0 -1
  1827. package/dist/runtime/tab-leader-election.d.ts +0 -97
  1828. package/dist/runtime/tab-leader-election.d.ts.map +0 -1
  1829. package/dist/runtime/tab-leader-election.js +0 -339
  1830. package/dist/runtime/tab-leader-election.js.map +0 -1
  1831. package/dist/runtime/tab-leader-election.test.d.ts +0 -2
  1832. package/dist/runtime/tab-leader-election.test.d.ts.map +0 -1
  1833. package/dist/runtime/tab-leader-election.test.js +0 -278
  1834. package/dist/runtime/tab-leader-election.test.js.map +0 -1
  1835. package/dist/runtime/testing/wasm-runtime-test-utils.d.ts +0 -13
  1836. package/dist/runtime/testing/wasm-runtime-test-utils.d.ts.map +0 -1
  1837. package/dist/runtime/testing/wasm-runtime-test-utils.js +0 -75
  1838. package/dist/runtime/testing/wasm-runtime-test-utils.js.map +0 -1
  1839. package/dist/runtime/utils.d.ts +0 -2
  1840. package/dist/runtime/utils.d.ts.map +0 -1
  1841. package/dist/runtime/utils.js +0 -16
  1842. package/dist/runtime/utils.js.map +0 -1
  1843. package/dist/runtime/value-converter.test.d.ts +0 -5
  1844. package/dist/runtime/value-converter.test.d.ts.map +0 -1
  1845. package/dist/runtime/value-converter.test.js +0 -226
  1846. package/dist/runtime/value-converter.test.js.map +0 -1
  1847. package/dist/runtime/worker-bridge.d.ts +0 -86
  1848. package/dist/runtime/worker-bridge.d.ts.map +0 -1
  1849. package/dist/runtime/worker-bridge.js +0 -250
  1850. package/dist/runtime/worker-bridge.js.map +0 -1
  1851. package/dist/runtime/worker-bridge.race-harness.test.d.ts +0 -2
  1852. package/dist/runtime/worker-bridge.race-harness.test.d.ts.map +0 -1
  1853. package/dist/runtime/worker-bridge.race-harness.test.js +0 -265
  1854. package/dist/runtime/worker-bridge.race-harness.test.js.map +0 -1
  1855. package/dist/runtime/worker-bridge.test.d.ts +0 -2
  1856. package/dist/runtime/worker-bridge.test.d.ts.map +0 -1
  1857. package/dist/runtime/worker-bridge.test.js +0 -233
  1858. package/dist/runtime/worker-bridge.test.js.map +0 -1
  1859. package/dist/sql-gen.d.ts +0 -4
  1860. package/dist/sql-gen.d.ts.map +0 -1
  1861. package/dist/sql-gen.js +0 -163
  1862. package/dist/sql-gen.js.map +0 -1
  1863. package/dist/sql-gen.test.d.ts +0 -2
  1864. package/dist/sql-gen.test.d.ts.map +0 -1
  1865. package/dist/sql-gen.test.js +0 -412
  1866. package/dist/sql-gen.test.js.map +0 -1
  1867. package/dist/subscriptions-orchestrator.integration.test.d.ts +0 -2
  1868. package/dist/subscriptions-orchestrator.integration.test.d.ts.map +0 -1
  1869. package/dist/subscriptions-orchestrator.integration.test.js +0 -194
  1870. package/dist/subscriptions-orchestrator.integration.test.js.map +0 -1
  1871. package/dist/subscriptions-orchestrator.test.d.ts +0 -2
  1872. package/dist/subscriptions-orchestrator.test.d.ts.map +0 -1
  1873. package/dist/subscriptions-orchestrator.test.js +0 -367
  1874. package/dist/subscriptions-orchestrator.test.js.map +0 -1
  1875. package/dist/svelte/SyntheticUserSwitcher.svelte +0 -121
  1876. package/dist/svelte/SyntheticUserSwitcher.svelte.d.ts +0 -11
  1877. package/dist/svelte/SyntheticUserSwitcher.svelte.d.ts.map +0 -1
  1878. package/dist/svelte/context.test.d.ts +0 -2
  1879. package/dist/svelte/context.test.d.ts.map +0 -1
  1880. package/dist/svelte/context.test.js +0 -51
  1881. package/dist/svelte/create-jazz-client.test.d.ts +0 -2
  1882. package/dist/svelte/create-jazz-client.test.d.ts.map +0 -1
  1883. package/dist/svelte/create-jazz-client.test.js +0 -50
  1884. package/dist/svelte/use-all.svelte.d.ts +0 -32
  1885. package/dist/svelte/use-all.svelte.d.ts.map +0 -1
  1886. package/dist/svelte/use-all.svelte.js +0 -61
  1887. package/dist/svelte/use-all.test.d.ts +0 -2
  1888. package/dist/svelte/use-all.test.d.ts.map +0 -1
  1889. package/dist/svelte/use-all.test.js +0 -154
  1890. package/dist/svelte/use-link-external-identity.d.ts +0 -25
  1891. package/dist/svelte/use-link-external-identity.d.ts.map +0 -1
  1892. package/dist/svelte/use-link-external-identity.js +0 -33
  1893. package/dist/svelte/use-link-external-identity.test.d.ts +0 -2
  1894. package/dist/svelte/use-link-external-identity.test.d.ts.map +0 -1
  1895. package/dist/svelte/use-link-external-identity.test.js +0 -97
  1896. package/dist/synthetic-user-switcher.d.ts +0 -16
  1897. package/dist/synthetic-user-switcher.d.ts.map +0 -1
  1898. package/dist/synthetic-user-switcher.js +0 -134
  1899. package/dist/synthetic-user-switcher.js.map +0 -1
  1900. package/dist/synthetic-users.d.ts +0 -32
  1901. package/dist/synthetic-users.d.ts.map +0 -1
  1902. package/dist/synthetic-users.js +0 -124
  1903. package/dist/synthetic-users.js.map +0 -1
  1904. package/dist/testing/fixtures/basic/app.d.ts +0 -55
  1905. package/dist/testing/fixtures/basic/app.d.ts.map +0 -1
  1906. package/dist/testing/fixtures/basic/app.js +0 -176
  1907. package/dist/testing/fixtures/basic/app.js.map +0 -1
  1908. package/dist/testing/fixtures/basic/current.d.ts +0 -2
  1909. package/dist/testing/fixtures/basic/current.d.ts.map +0 -1
  1910. package/dist/testing/fixtures/basic/current.js +0 -6
  1911. package/dist/testing/fixtures/basic/current.js.map +0 -1
  1912. package/dist/testing/index.test.d.ts +0 -2
  1913. package/dist/testing/index.test.d.ts.map +0 -1
  1914. package/dist/testing/index.test.js +0 -234
  1915. package/dist/testing/index.test.js.map +0 -1
  1916. package/dist/testing/local-jazz-server.d.ts +0 -34
  1917. package/dist/testing/local-jazz-server.d.ts.map +0 -1
  1918. package/dist/testing/local-jazz-server.js +0 -313
  1919. package/dist/testing/local-jazz-server.js.map +0 -1
  1920. package/dist/worker/jazz-worker.d.ts +0 -9
  1921. package/dist/worker/jazz-worker.d.ts.map +0 -1
  1922. package/dist/worker/jazz-worker.js +0 -516
  1923. package/dist/worker/jazz-worker.js.map +0 -1
  1924. package/dist/worker/jazz-worker.ts +0 -581
  1925. package/dist/worker/worker-protocol.d.ts +0 -136
  1926. package/dist/worker/worker-protocol.d.ts.map +0 -1
  1927. package/dist/worker/worker-protocol.js +0 -7
  1928. package/dist/worker/worker-protocol.js.map +0 -1
@@ -0,0 +1,683 @@
1
+ import type { IncomingMessage, Server, ServerResponse } from "node:http";
2
+ import type { Http2SecureServer, Http2Server } from "node:http2";
3
+ import { type CoreBinding } from "./core-transport.js";
4
+ import type { Db } from "../runtime/db.js";
5
+ import type { BackendSchemaInput } from "./create-jazz-context.js";
6
+ import { type BackendClientTrust } from "./backend-clients.js";
7
+ import { type VercelStoreOptions } from "./vercel-store.js";
8
+ export type { VercelNamespace, VercelNamespaceContext, VercelStoreOptions, } from "./vercel-store.js";
9
+ export { perBranch } from "./vercel-store.js";
10
+ import { type BlobStore } from "./blobs.js";
11
+ import { type InspectHook, type InspectorOptions } from "./inspect.js";
12
+ export type { InspectEvent, InspectGrant, InspectHook, InspectorOptions } from "./inspect.js";
13
+ export { files, s3, vercelBlob, type BlobStore, type S3BlobStore, type VercelBlobStore, } from "./blobs.js";
14
+ type DurableObjectLifecycle = "while-connected" | "hibernate";
15
+ /** Where the core keeps its data. */
16
+ export type JazzStore = {
17
+ readonly kind: "sqlite";
18
+ readonly path: string;
19
+ readonly blobs: BlobStore;
20
+ } | {
21
+ readonly kind: "memory";
22
+ } | {
23
+ readonly kind: "remote";
24
+ readonly url: string;
25
+ /** The app this core serves. */
26
+ readonly appId: string;
27
+ /** This backend's credential for the core, asked for each request and socket. */
28
+ readonly backendCredential: BackendCredential;
29
+ /** The app's secret, when `remote()` was given one: agent tokens are signed with a key derived from it. */
30
+ readonly secret?: string;
31
+ } | {
32
+ readonly kind: "durableObjects";
33
+ readonly lifecycle?: DurableObjectLifecycle;
34
+ /** The Worker's origin, or a label for a binding. */
35
+ readonly url: string;
36
+ /** The core's Durable Object binding, in this Worker. */
37
+ readonly binding?: CoreBinding;
38
+ /** The Worker's `JAZZ_CORE_SECRET`. */
39
+ readonly secret: string;
40
+ } | {
41
+ readonly kind: "vercel";
42
+ readonly options: VercelStoreOptions;
43
+ /**
44
+ * What runs outside a Vercel deployment, e.g. under `next dev`
45
+ * (default: `sqlite({ path: ".jazz/local" })`).
46
+ */
47
+ readonly local: Extract<JazzStore, {
48
+ kind: "sqlite" | "memory";
49
+ }>;
50
+ };
51
+ /**
52
+ * A SQLite core in this process, kept in the directory `path`. It generates
53
+ * its app id on first start and keeps it in its own file, `<path>/jazz.sqlite`,
54
+ * with the rest of its identity, so a copy of that file is the same store
55
+ * (alpha.65's `jazz-alpha59-alpha60-import` leaves an alpha.59 app's id in
56
+ * `<path>/app-id`, which the first open takes over). To
57
+ * open a copy beside the original, detach it first: `jazz-tools store detach`. Large
58
+ * values' bytes go to `blobs`, by default `files()` in `<path>/blobs`.
59
+ *
60
+ * Only one process can open `path` at a time (it holds `<path>/jazz.lock`
61
+ * while the core is open); a second one fails with "already open". It
62
+ * refuses to start on serverless hosts with no lasting disk (Vercel, AWS
63
+ * Lambda, Netlify): use `vercel()` or `remote()` there.
64
+ */
65
+ export declare function sqlite(options: {
66
+ path: string;
67
+ blobs?: BlobStore;
68
+ }): Extract<JazzStore, {
69
+ kind: "sqlite";
70
+ }>;
71
+ /**
72
+ * An in-memory core in this process: for tests and throwaway previews. Each
73
+ * one is its own store, with a new app id.
74
+ */
75
+ export declare function memory(options?: {
76
+ appId?: never;
77
+ }): Extract<JazzStore, {
78
+ kind: "memory";
79
+ }>;
80
+ /**
81
+ * The credential this backend presents to its core, fresh for each request
82
+ * and socket: the app's secret, or a token that proves which workload this
83
+ * is (a sync server started with `--trusted-workload-*` accepts its
84
+ * platform's OIDC token, such as a Vercel function's).
85
+ */
86
+ export type BackendCredential = () => string | Promise<string>;
87
+ /**
88
+ * A core running elsewhere (Jazz Cloud, or a sync server you run), serving
89
+ * the app `appId`, reached from this backend with the app's one secret (its
90
+ * admin secret), or with a `backendCredential` of your own. Browsers still
91
+ * talk only to your backend: it decides who each user is, and the core
92
+ * trusts it to say so. The secret never leaves your server.
93
+ */
94
+ export declare function remote(options: {
95
+ url: string;
96
+ appId: string;
97
+ secret: string;
98
+ } | {
99
+ url: string;
100
+ appId: string;
101
+ backendCredential: BackendCredential;
102
+ }): Extract<JazzStore, {
103
+ kind: "remote";
104
+ }>;
105
+ /**
106
+ * A core running in a Cloudflare Durable Object: one SQLite-backed object per
107
+ * app, in a Worker you deploy that exports `JazzCore` and forwards requests to
108
+ * it with `routeJazzRequest` (both from `jazz-tools/durable-object`). `url` is
109
+ * that Worker's origin (e.g. `https://my-app-jazz.example.workers.dev`) and
110
+ * `secret` its `JAZZ_CORE_SECRET`: a random string of at least 32 characters
111
+ * that stays the same across deployments. The object keeps its own app id,
112
+ * which this backend asks it for when the store opens.
113
+ *
114
+ * Large values' bytes go where the core's Worker puts them, so there is no
115
+ * `blobs` option here: bind an R2 bucket to that Worker as `JAZZ_BLOBS`
116
+ * (recommended), or they stay in the object's SQLite.
117
+ *
118
+ * The core admits only this backend, which holds the secret; browsers keep
119
+ * talking to your backend. A Durable Object core doesn't run thin-client
120
+ * transactions (your backend runs them, as with any core) and has no
121
+ * HTTP-stream fallback for the backend's own sockets.
122
+ *
123
+ * @experimental Durable Object cores are new; the options and the Worker's
124
+ * bindings may still change.
125
+ */
126
+ export declare function durableObjects(options: {
127
+ lifecycle?: DurableObjectLifecycle;
128
+ } & ({
129
+ url: string;
130
+ secret: string;
131
+ appId?: never;
132
+ } | {
133
+ binding: CoreBinding;
134
+ secret: string;
135
+ appId?: never;
136
+ })): Extract<JazzStore, {
137
+ kind: "durableObjects";
138
+ }>;
139
+ /**
140
+ * The store for apps deployed on Vercel. Use it in dev too: outside a
141
+ * production or preview deployment (`next dev`, `vercel dev`, tests) it runs
142
+ * `local`, by default `sqlite({ path: ".jazz/local" })`.
143
+ *
144
+ * Deployed, it runs a core in a persistent Vercel Sandbox in your own Vercel
145
+ * project, with its data on a Drive, in `region` (required, e.g. `"iad1"`,
146
+ * where earlier versions created every core; fixed at creation, and a
147
+ * different region for an existing core throws). `namespace` (required) says which: the
148
+ * Sandbox is `jazz-<project>-<namespace>`, e.g. one core per environment
149
+ * with `namespace: ({ environment }) => environment`, or production's core
150
+ * and one per preview branch with
151
+ * `namespace: ({ environment, branch }) => environment === "production" ? "production" : perBranch(branch)`.
152
+ * It is created on first use, wakes when a request needs it (about a second)
153
+ * and stops after `idleMs` without requests or sockets. The function's Vercel
154
+ * OIDC token is its only credential, so there are no secrets and no env vars:
155
+ * the core admits only tokens naming the workload its first start pinned
156
+ * (team, project and environment by name), and a deployment of another
157
+ * environment refuses to start or retarget it. All previews share one
158
+ * workload, so preview branches' cores are kept apart, not secured from each
159
+ * other. Anyone with Sandbox access to the project controls its cores. The
160
+ * token comes with each request (it can't be read at module scope), so the
161
+ * core opens on the first request, not when `createJazz` is called; work
162
+ * between requests uses the freshest one seen, and open sockets outlive its
163
+ * expiry. A team or project rename (or
164
+ * a change of OIDC issuer mode) changes the workload: delete `/data/trust` in
165
+ * the Sandbox to re-pin the core. Install `@vercel/sandbox` and
166
+ * `@vercel/functions` next to `jazz-tools`. A deployment of a newer jazz-tools
167
+ * restarts the core on its version, and an older deployment never moves it
168
+ * back. Branch cores are not deleted when a branch merges yet: each keeps its
169
+ * Sandbox and a Drive of up to `maxDriveBytes` until you remove them.
170
+ */
171
+ export declare function vercel(options: VercelStoreOptions & {
172
+ local?: Extract<JazzStore, {
173
+ kind: "sqlite" | "memory";
174
+ }>;
175
+ }): JazzStore;
176
+ declare const localFirstGuestBrand: unique symbol;
177
+ /**
178
+ * `authenticate`'s answer for a request from a device account: an account a
179
+ * browser made on its own, before (or without) signing in, as guests have.
180
+ * Return {@link acceptDeviceAccounts} for the requests you let device accounts
181
+ * make; any other answer refuses them.
182
+ */
183
+ export interface DeviceAccountsAnswer {
184
+ readonly [localFirstGuestBrand]: true;
185
+ }
186
+ /**
187
+ * @deprecated Renamed to {@link DeviceAccountsAnswer}; this alias goes in a later release.
188
+ * An interface (not a type alias), so code that merges declarations into it keeps compiling.
189
+ */
190
+ export interface LocalFirstGuest extends DeviceAccountsAnswer {
191
+ }
192
+ /**
193
+ * Let this request through as a device account, when it comes from one: an
194
+ * account whose key lives on the user's device, with no user in your auth.
195
+ * It's how your app lets people in as guests, and a local-first friendly way
196
+ * to sign in at all. Device accounts are refused unless `authenticate`
197
+ * returns this, since only your permissions stand between them and your
198
+ * data.
199
+ *
200
+ * ```ts
201
+ * authenticate: async (request) => {
202
+ * const session = await auth.api.getSession({ headers: request.headers });
203
+ * if (!session) return acceptDeviceAccounts(request);
204
+ * return {
205
+ * userId: session.user.id,
206
+ * expiresAt: Math.floor(session.session.expiresAt.getTime() / 1000),
207
+ * };
208
+ * },
209
+ * ```
210
+ *
211
+ * An app with no sign-in of its own, where every browser has a device
212
+ * account, passes it as is: `authenticate: acceptDeviceAccounts`.
213
+ *
214
+ * For a request that is not a device account's, it means the same as `null`:
215
+ * no one is signed in.
216
+ *
217
+ * A device account's request may also carry a user's cookie: someone signed
218
+ * in (or up) on that browser, and the device account still uploads its
219
+ * writes before it links to them. Jazz then asks `authenticate` about the
220
+ * request without its cookies and `Authorization` header, so the device
221
+ * account is let in as it would be on its own.
222
+ *
223
+ * This gates device accounts' sync, and their requests to your own routes:
224
+ * `forReqUser` takes the device's proof (`Authorization: Bearer`), and
225
+ * `withAttribution` and `accountFor` do with `{ deviceAccounts: true }`.
226
+ * Linking one to a user who signs up
227
+ * (`linkDeviceAccount()`) is authorised by your sign-in (`authenticate`
228
+ * naming that user) plus the device key's proof of a one-time challenge, so
229
+ * it works even when your app doesn't accept device accounts for sync.
230
+ */
231
+ export declare function acceptDeviceAccounts(_request: Request): DeviceAccountsAnswer;
232
+ /** Whether `withAttribution` and `accountFor` take a device account's request. */
233
+ export interface DeviceAccountsOption {
234
+ /**
235
+ * Act for (or name) the device account whose proof the request carries,
236
+ * when `authenticate` lets it in (`acceptDeviceAccounts`). Off by default:
237
+ * anyone can make a device account.
238
+ */
239
+ deviceAccounts?: boolean;
240
+ }
241
+ /** Who the request's user is, as the app's own auth decides. */
242
+ export interface JazzUser {
243
+ /** Stable user id in your auth system. Becomes the identity's `sub`. */
244
+ userId: string;
245
+ /** Extra claims your permissions can read through `session.claims`. */
246
+ claims?: Record<string, unknown>;
247
+ }
248
+ /**
249
+ * The user `authenticate` names, and until when that answer holds.
250
+ */
251
+ export interface AuthenticatedUser extends JazzUser {
252
+ /**
253
+ * When this answer stops holding, as Unix time in seconds: your app
254
+ * session's expiry, or its token's `exp`. Required. Shortly before then
255
+ * an open sync session asks its client to connect again, and
256
+ * `authenticate` decides again on that new request, with the client's
257
+ * current cookies or token: a browser on the app's cookie renews its open
258
+ * session over HTTP (through `refresh`, if set) without reconnecting.
259
+ * With `refresh`, return the access token's `exp`, so a sign-out reaches
260
+ * open sessions within its lifetime. Without it, return the expiry of the
261
+ * session the user is signed in with (the one a sign-out ends), not of a
262
+ * short-lived access token nothing refreshes on Jazz's routes.
263
+ */
264
+ expiresAt: number;
265
+ }
266
+ /**
267
+ * An app's `jazz.permissions.json`, as a backend imports it
268
+ * (`import permissions from "./jazz.permissions.json" with { type: "json" }`).
269
+ * Jazz's Rust loader reads and checks it against the app's bindings.
270
+ */
271
+ export type AppPermissionsFile = ({
272
+ readonly $schema: string;
273
+ } | {
274
+ readonly format: number;
275
+ }) & Readonly<Record<string, unknown>>;
276
+ export interface CreateJazzOptions {
277
+ /** The app, as `jazz.generated.ts` exports it. */
278
+ app: BackendSchemaInput;
279
+ /** The app's `jazz.permissions.json`, imported as JSON. */
280
+ permissions: AppPermissionsFile;
281
+ store: JazzStore;
282
+ /**
283
+ * Decide who sent `request`, with your app's own session (a cookie, a
284
+ * header). Return null for a signed-out request. Jazz calls it when a
285
+ * browser signs in or opens a sync session, and in `forReqUser`.
286
+ *
287
+ * Return when the answer stops holding as `expiresAt` (Unix seconds),
288
+ * which is required: an open sync session asks its client to connect again
289
+ * shortly before then, and Jazz calls `authenticate` again on that new
290
+ * request, with the client's current cookies. Jazz only ever calls it
291
+ * while handling a request, so your framework's request helpers work.
292
+ *
293
+ * Only read and verify the session here; never refresh it. A session that
294
+ * needs refreshing (short access tokens, single-use refresh tokens) is
295
+ * refreshed in `refresh`, which Jazz runs where a response can set the
296
+ * rotated cookie, one window at a time. Keep other auth middleware that
297
+ * refreshes sessions off Jazz's routes (`basePath`): a browser with several
298
+ * windows reaching it at once can race a single-use refresh token and lose
299
+ * the session.
300
+ *
301
+ * ```ts
302
+ * authenticate: async (request) => {
303
+ * const session = await auth.api.getSession({ headers: request.headers });
304
+ * if (!session) return null;
305
+ * return {
306
+ * userId: session.user.id,
307
+ * expiresAt: Math.floor(session.session.expiresAt.getTime() / 1000),
308
+ * };
309
+ * },
310
+ * ```
311
+ *
312
+ * Local-first guests are refused unless it returns
313
+ * `acceptDeviceAccounts(request)` for them; an app with no sign-in passes
314
+ * `authenticate: acceptDeviceAccounts`. Without `authenticate`, only
315
+ * backend code reaches the data.
316
+ */
317
+ authenticate?: (request: Request) => AuthenticatedUser | DeviceAccountsAnswer | null | Promise<AuthenticatedUser | DeviceAccountsAnswer | null>;
318
+ /**
319
+ * Refresh the app's own session, as middleware: Jazz runs it on the one
320
+ * ordinary request a browser makes to ask who is signed in, before a sync
321
+ * session expires (and on sign-in checks). Call `next` with the request
322
+ * `authenticate` should see (with the refreshed cookie, if you refreshed),
323
+ * and return its response with your rotated `Set-Cookie` added.
324
+ *
325
+ * A browser asks one window at a time, so a single-use refresh token is
326
+ * spent once: the next window's request already carries the new cookie.
327
+ * An open sync session is then renewed in place, without reconnecting,
328
+ * until the expiry `authenticate` returns on that request. So return the
329
+ * access token's `exp` from `authenticate`: a sign-out or ban reaches open
330
+ * sessions within one access token's lifetime (or at once with
331
+ * `jazz.revokeUser`).
332
+ *
333
+ * ```ts
334
+ * refresh: async (request, next) => {
335
+ * const session = await readSession(request); // your auth's sealed session
336
+ * // Refresh a token that expires within two minutes: an open session
337
+ * // renews up to ~90 s before the expiry `authenticate` returned.
338
+ * if (!session || session.expiresInSeconds > 120) return next(request);
339
+ * const refreshed = await session.refresh(); // rotates the refresh token
340
+ * if (!refreshed) return next(request); // `authenticate` then says signed out
341
+ * const headers = new Headers(request.headers);
342
+ * headers.set("cookie", `session=${refreshed.cookie}`);
343
+ * const response = await next(new Request(request, { headers }));
344
+ * response.headers.append("Set-Cookie", refreshed.setCookie);
345
+ * return response;
346
+ * },
347
+ * ```
348
+ *
349
+ * Bearer-token clients (React Native, backend clients) don't use it: their
350
+ * token provider refreshes, and each connection asks it for a token.
351
+ */
352
+ refresh?: (request: Request, next: (request: Request) => Promise<Response>) => Response | Promise<Response>;
353
+ /** The path Jazz is mounted under. Defaults to `/jazz`. */
354
+ basePath?: string;
355
+ /**
356
+ * The URL browsers reach Jazz at, when a proxy in front of this backend
357
+ * changes the host or path (e.g. pages call `https://app.example.com/api/jazz`
358
+ * and the proxy forwards to `/jazz` here). A browser client is scoped by the
359
+ * URL it uses, so its guests' proofs name that URL. Recommended in
360
+ * production: without it, Jazz accepts the page's own origin (or an
361
+ * `allowedOrigins` entry) and this request's Host, each under `basePath`,
362
+ * and a caller that reaches the backend directly can name any Host. When
363
+ * set, only these URLs are accepted, so list your dev URL too if a dev
364
+ * server uses this backend.
365
+ */
366
+ publicUrl?: string | string[];
367
+ /**
368
+ * The longest a sync session goes without `authenticate` deciding anew:
369
+ * on a renewal request (a browser on your cookie renews its open session
370
+ * in place) or on its client's new connection. Defaults to one hour.
371
+ * A signed-in user's session ends sooner if the `expiresAt` `authenticate`
372
+ * returned comes first; a device account is let in anew each time. So
373
+ * a sign-out elsewhere, a ban or a changed role reaches an open session
374
+ * within this long, or at once with `jazz.revokeUser(userId)`.
375
+ */
376
+ sessionTtlSeconds?: number;
377
+ /**
378
+ * How long an HTTP stream session may reuse `authenticate`'s answer for
379
+ * its client's later sends, in seconds. Defaults to 60. A send asks
380
+ * `authenticate` again sooner if its headers differ from the ones that
381
+ * answer came from, or the answer's `expiresAt` has passed; `revokeUser`
382
+ * ends the session at once either way. So a sign-out elsewhere that left
383
+ * the browser's cookie in place, a ban without `revokeUser`, or a revoked
384
+ * scoped backend credential reaches an open stream session within this
385
+ * long. Pass 0 for an `authenticate` that must run on every request
386
+ * (single-use tokens, per-request rate limits, sessions bound to a
387
+ * client IP). WebSocket sessions authenticate once, when they open.
388
+ */
389
+ streamAuthReuseSeconds?: number;
390
+ /**
391
+ * Removed. Sessions no longer re-check `authenticate` from a timer: each
392
+ * lasts until the `expiresAt` `authenticate` returns, then its client
393
+ * connects again and `authenticate` decides on that new request. To end a
394
+ * user's open sessions now (they signed out elsewhere, or were banned),
395
+ * call `jazz.revokeUser(userId)`.
396
+ */
397
+ recheckSeconds?: never;
398
+ /**
399
+ * What happens to a device account's key once it links to a signed-in
400
+ * user (`linkDeviceAccount()`):
401
+ * - `"keep"` (the default): the key stays an identity of the account, so
402
+ * the device can still sign in as the guest (e.g. offline) alongside
403
+ * the linked user.
404
+ * - `"revoke"`: the key is retired. Only the linked user signs in to the
405
+ * account from then on, so a leaked guest key opens nothing.
406
+ */
407
+ guestKeyAfterLink?: "keep" | "revoke";
408
+ /**
409
+ * Browser origins, besides the backend's own, that may open sync sessions
410
+ * and call sign-in (e.g. `["https://app.example.com"]` when the page is
411
+ * served from another host than the backend). A request from any other
412
+ * origin is refused, so a page elsewhere can't act with your users'
413
+ * cookies.
414
+ */
415
+ allowedOrigins?: string[];
416
+ /**
417
+ * Set when your host upgrades sync sockets itself and hands them to
418
+ * `acceptSocket` (Bun, Deno, uWebSockets, your own `ws` setup). Then a
419
+ * socket that fails to open is retried as a socket, instead of the
420
+ * browser switching to the HTTP stream. `attach()` and `next()` on Vercel
421
+ * know this on their own.
422
+ */
423
+ upgradesSockets?: boolean;
424
+ /**
425
+ * Backend clients: machines outside this main backend (a CI job, a worker
426
+ * elsewhere, a partner's service) that sync through it with their
427
+ * platform's OIDC token instead of a user's session. Each is trusted with
428
+ * {@link trustWorkload}, either as a trusted machine (backend authority,
429
+ * your permissions not checked) or as a scoped machine acting as a user.
430
+ * A request carrying a token from one of these issuers is decided here
431
+ * alone: a token that doesn't verify is refused, never passed on to
432
+ * `authenticate`.
433
+ */
434
+ backendClients?: BackendClientTrust[];
435
+ /**
436
+ * Confirms that this deployment may switch tables it declares
437
+ * `.history("latest")` from full history: their past versions are dropped
438
+ * at each row's next write, for good. Without it, starting a backend whose
439
+ * schema makes that switch fails, naming the tables. Remove it again once
440
+ * the deployment is out.
441
+ */
442
+ allowDroppingHistory?: boolean;
443
+ /**
444
+ * Who may use the Inspector and agent debug access at `<basePath>/inspect`:
445
+ * return `{ by, write? }` for a request that may, null for one that may
446
+ * not.
447
+ *
448
+ * **This grants unlimited access.** Whoever it lets in reads every row of
449
+ * every table, with your permissions not checked, and with `write: true`
450
+ * changes any of them. They can also let agents in, with tokens that last
451
+ * up to a day. Grant it only to people who may see all of your users'
452
+ * data, and where you can, gate it with infrastructure that is separate
453
+ * from your users' sign-in (Vercel deployment protection, Cloudflare
454
+ * Access, a VPN or SSO proxy) rather than a flag on a user account, which
455
+ * one compromised account or one bug in your auth would hand out.
456
+ *
457
+ * Without it, only local development is let in: a request whose socket
458
+ * comes from this machine while NODE_ENV is "development". Only hosts that
459
+ * hand Jazz their Node request (`attach()`, `nodeHandler`) know the socket's
460
+ * address; on others (Next.js route handlers, Hono, Bun, Deno) the default
461
+ * is off, since a Host header proves nothing. A browser is let in only from
462
+ * a page on this machine (by its Origin). A dev proxy that forwards other
463
+ * machines' requests without `X-Forwarded-For` (Vite's `server.proxy`
464
+ * without `xfwd`, on a dev server started with `--host`) makes non-browser
465
+ * clients on those machines look local: pass an `inspect` hook when your
466
+ * dev server is reachable from other machines. Pass `() => null` to turn
467
+ * even the default off.
468
+ */
469
+ inspect?: InspectHook;
470
+ /** Redaction, auditing and agent token settings for {@link inspect}. */
471
+ inspector?: InspectorOptions;
472
+ }
473
+ /** A WebSocket as the `ws` package (and Vercel's `upgradeWebSocket`) hands it over. */
474
+ export interface WsLikeSocket {
475
+ send(data: Uint8Array): void;
476
+ close(code?: number, reason?: string): void;
477
+ on(event: "message", listener: (data: unknown, isBinary?: boolean) => void): unknown;
478
+ on(event: "close", listener: () => void): unknown;
479
+ on(event: "error", listener: (error: unknown) => void): unknown;
480
+ /** Stop reading from the client until `resume` (the `ws` package has both). */
481
+ pause?(): void;
482
+ resume?(): void;
483
+ }
484
+ export interface Jazz {
485
+ /**
486
+ * The app id the store runs as. Known once the store has opened (on first
487
+ * use, or `await jazz.ready()`); reading it before throws.
488
+ */
489
+ readonly appId: string;
490
+ readonly basePath: string;
491
+ /**
492
+ * Open the store now, rather than on first use, and apply the app, schema
493
+ * and permissions: to fail at startup instead of on the first request, or
494
+ * to read `appId`. Resolves to this Jazz.
495
+ */
496
+ ready(): Promise<Jazz>;
497
+ /** Answer one request under `basePath` (sync, sign-in, the HTTP stream). */
498
+ handle(request: Request): Promise<Response>;
499
+ /**
500
+ * Route handlers for a Next.js catch-all route:
501
+ *
502
+ * ```ts
503
+ * // app/jazz/[...path]/route.ts
504
+ * import { jazz } from "@/lib/jazz.server"; // export const jazz = createJazz({ ... })
505
+ *
506
+ * export const { GET, POST, DELETE } = jazz.next();
507
+ * ```
508
+ */
509
+ next(): {
510
+ GET(request: Request): Promise<Response>;
511
+ POST(request: Request): Promise<Response>;
512
+ DELETE(request: Request): Promise<Response>;
513
+ };
514
+ /**
515
+ * Accept sync sockets on a Node HTTP server (needs the `ws` package),
516
+ * such as the one Hono's `serve()` returns. It doesn't open the store:
517
+ * that happens on the first socket or request, and while the store can't
518
+ * open (a remote core that is down) sockets and requests get a 503 the
519
+ * clients retry. Plain requests still go through `nodeHandler` or `handle`.
520
+ */
521
+ attach(server: Server | Http2Server | Http2SecureServer): Promise<void>;
522
+ /** Node `(req, res)` handler for requests under `basePath` (Express, Fastify's raw mode). */
523
+ nodeHandler(req: IncomingMessage, res: ServerResponse, next?: () => void): void;
524
+ /** Bridge an upgraded socket (the `ws` package's shape) to a sync session. */
525
+ acceptSocket(request: Request, socket: WsLikeSocket): void;
526
+ /**
527
+ * The backend's own database, with backend permissions. It works before
528
+ * the store opens: writes return at once and apply as it opens, and reads
529
+ * wait for it.
530
+ */
531
+ readonly db: Db;
532
+ /**
533
+ * The database as the request's user, judged by your permissions. Throws
534
+ * a {@link NoJazzAccountError} (`code: "no_account"`) for a user who has no
535
+ * account yet (see {@link createAccountFor}).
536
+ *
537
+ * When `authenticate` answers {@link acceptDeviceAccounts} for the request,
538
+ * it acts as the device account whose proof the request carries as
539
+ * `Authorization: Bearer <proof>`, from `db.getDeviceAccountProof()`
540
+ * in the browser. The proof is checked as a sync connection's is (its
541
+ * signature, expiry, and an audience of this app or `publicUrl`), and a
542
+ * key a link revoked is refused. A proof that doesn't pass throws a
543
+ * {@link RequestAuthenticationError} (`code: "invalid_device_proof"` or
544
+ * `"device_account_revoked"`); no proof at all is `"signed_out"`. Anyone
545
+ * can make a device account, so a device account's db is only as
546
+ * restricted as your permissions make it, as for its own sync. The db
547
+ * acts while the proof is unexpired (at most an hour): use it for the
548
+ * request.
549
+ */
550
+ forReqUser(request: Request): Promise<Db>;
551
+ /**
552
+ * The Jazz account of the request's signed-in user, or null when
553
+ * `authenticate` names no user or the user has no account yet. For a
554
+ * user, it never creates one (see {@link createAccountFor}). For API
555
+ * routes that act on the user's data with the backend's own `db`.
556
+ *
557
+ * A device account's request (see {@link forReqUser}) answers null, as
558
+ * anyone can make a device account, unless you pass
559
+ * `{ deviceAccounts: true }`: then it names that device account. That
560
+ * creates the account on the core if the device never synced (as its
561
+ * first sync would), and throws for an invalid or revoked proof as
562
+ * `forReqUser` does. Don't treat that answer as "a signed-in user".
563
+ */
564
+ accountFor(request: Request, options?: DeviceAccountsOption): Promise<string | null>;
565
+ /**
566
+ * Create the Jazz account of `userId` (the id your `authenticate` returns
567
+ * for them), or return the one they have. Jazz never creates accounts on
568
+ * its own on the backend: a user gets one when they sign in from a client,
569
+ * when a device account links to them (`linkDeviceAccount()`, so its data
570
+ * becomes theirs), or here. Call it for a user who never
571
+ * opens a client (a webhook, an import, an API-only user) or to seed data
572
+ * before their first visit. A user with an account can no longer link a
573
+ * guest, so don't call it in a sign-up flow whose browser may hold one.
574
+ * Returns the account id.
575
+ */
576
+ createAccountFor(userId: string): Promise<string>;
577
+ /**
578
+ * End `userId`'s open sync sessions now, on every backend instance, as
579
+ * refused: each client asks your backend who is signed in, and signs out
580
+ * if `authenticate` no longer names that user (or reconnects if it still
581
+ * does). Call it from your sign-out handler or your auth provider's
582
+ * session-revoked webhook, so a sign-out reaches open sessions before
583
+ * their `expiresAt`. On serverless hosts the call usually runs on another
584
+ * instance than the user's sessions: it records the revocation at the
585
+ * core, which ends the sessions any instance serves, and refuses those an
586
+ * instance admits afterwards on an `authenticate` answer from before the
587
+ * call (a sign-in still running, or an HTTP stream's reused answer). A
588
+ * sign-in that starts after the call is admitted as usual. Times are
589
+ * compared on your backend instances' clocks.
590
+ *
591
+ * Resolves with how many open sessions it ended on this instance (it
592
+ * can't count the others), once the core has recorded the revocation.
593
+ * Against a core older than this (no session revocation), it ends this
594
+ * instance's sessions only, and warns once: upgrade the core.
595
+ */
596
+ revokeUser(userId: string): Promise<number>;
597
+ /**
598
+ * The backend's own database (backend permissions), with every write
599
+ * stamped as the request's signed-in user: for server actions that do what
600
+ * the user may not do directly, on their behalf.
601
+ *
602
+ * **Your permissions are not checked.** It writes with the backend's full
603
+ * authority; only the attribution is the user's. Check yourself that the
604
+ * user may do what the action does, and keep it in server-only code.
605
+ *
606
+ * Throws a {@link NoJazzAccountError} (`code: "no_account"`) for a user
607
+ * who has no account yet (see {@link createAccountFor}).
608
+ *
609
+ * A device account's request (see {@link forReqUser}) is `signed_out`
610
+ * here, since anyone can make a device account and this db skips your
611
+ * permissions, unless you pass `{ deviceAccounts: true }`: then it is
612
+ * stamped as that device account, with backend authority all the same.
613
+ */
614
+ withAttribution(request: Request, options?: DeviceAccountsOption): Promise<Db>;
615
+ /**
616
+ * Make `to` another identity of the account `from` already uses: after
617
+ * this, `authenticate` returning `to` opens that same account and its data.
618
+ * Call it once your own auth has verified both, as when an anonymous user
619
+ * or a guest (a device account) signs up, or a user adds a second sign-in
620
+ * method. `to` must not have its own account yet. Returns the account id.
621
+ */
622
+ linkIdentity(link: {
623
+ from: string;
624
+ to: string;
625
+ }): Promise<{
626
+ account: string;
627
+ }>;
628
+ /** Close every session, the backend database and the core. */
629
+ close(): Promise<void>;
630
+ }
631
+ /** One sync session on the core. */
632
+ export interface CoreSocket {
633
+ /** False once the session ended. */
634
+ send(data: Uint8Array): boolean;
635
+ /**
636
+ * `send`, resolving once the session has read enough of the messages
637
+ * before it, so a host that awaits it holds a fast client back. A core
638
+ * without it takes `send`'s word. Don't call `send` while a
639
+ * `sendWithRoom` is pending: it can overtake the waiting message.
640
+ */
641
+ sendWithRoom?(data: Uint8Array): Promise<boolean>;
642
+ close(): void;
643
+ /**
644
+ * Resolves once the session reaches the core. A session that never does
645
+ * ends with its close event instead, and this stays pending. Without it,
646
+ * the session counts as open at once (a core in this process).
647
+ */
648
+ readonly opened?: Promise<void>;
649
+ }
650
+ /**
651
+ * `socket`, its first frame (the prelude) pinned to the published bundle
652
+ * this backend serves with. The core honours the pin only on this backend's
653
+ * word, so whatever bundle a browser stated is replaced.
654
+ */
655
+ export declare function pinnedSocket(socket: CoreSocket, bundle: () => string | undefined): CoreSocket;
656
+ /**
657
+ * Run Jazz inside your backend. It applies the schema, migrations and
658
+ * permissions your code declares to its core (in this process, or a remote
659
+ * one), and serves sync on your own origin under `basePath`. There is no
660
+ * separate deploy step: a rollback of your backend rolls Jazz back with it.
661
+ *
662
+ * It opens nothing when called, so a module can export it at its top level:
663
+ * the store opens on first use (a request, a `db` call, `ready()`). A process
664
+ * runs one Jazz per store (a `sqlite()` directory, a `vercel()` core): a
665
+ * later `createJazz` for it (a dev server's hot reload, another module
666
+ * graph) returns that same Jazz with the later
667
+ * call's app, permissions and options. Each `remote()` and `memory()` store
668
+ * is its own: a module that hot reloads keeps that Jazz across reloads
669
+ * itself, or closes it.
670
+ */
671
+ export declare function createJazz(options: CreateJazzOptions): Jazz;
672
+ /**
673
+ * `createJazz` for a test harness that fronts a test core with `remote()`
674
+ * (`startTestJazz`): its apps may be defined in code with
675
+ * `{ migrations: "none" }`, as a test's are. Not exported to apps.
676
+ */
677
+ export declare function createTestJazz(options: CreateJazzOptions): Jazz;
678
+ /** How long `close()` waits for a store still opening before it gives up on it. */
679
+ export declare const CLOSE_WAITS_FOR_OPEN_MS = 30000;
680
+ /** At most this many sockets wait for the store to open, each holding at most this much. */
681
+ export declare const MAX_HELD_SOCKETS = 1000;
682
+ export declare const MAX_HELD_SOCKET_BYTES: number;
683
+ //# sourceMappingURL=create-jazz.d.ts.map