@fireproof/core 0.21.0-dev-preview-7 → 0.22.0-keybag

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 (444) hide show
  1. package/index.d.ts +2 -16
  2. package/index.js +2 -15
  3. package/index.js.map +1 -1
  4. package/index.ts +2 -0
  5. package/package.json +12 -70
  6. package/tsconfig.json +18 -0
  7. package/README.md +0 -269
  8. package/apply-head-queue.d.ts +0 -18
  9. package/apply-head-queue.d.ts.map +0 -1
  10. package/apply-head-queue.js +0 -47
  11. package/apply-head-queue.js.map +0 -1
  12. package/blockstore/attachable-store.d.ts +0 -19
  13. package/blockstore/attachable-store.d.ts.map +0 -1
  14. package/blockstore/attachable-store.js +0 -316
  15. package/blockstore/attachable-store.js.map +0 -1
  16. package/blockstore/commit-queue.d.ts +0 -17
  17. package/blockstore/commit-queue.d.ts.map +0 -1
  18. package/blockstore/commit-queue.js +0 -60
  19. package/blockstore/commit-queue.js.map +0 -1
  20. package/blockstore/commitor.d.ts +0 -21
  21. package/blockstore/commitor.d.ts.map +0 -1
  22. package/blockstore/commitor.js +0 -95
  23. package/blockstore/commitor.js.map +0 -1
  24. package/blockstore/connect-raw.d.ts +0 -2
  25. package/blockstore/connect-raw.d.ts.map +0 -1
  26. package/blockstore/connect-raw.js +0 -2
  27. package/blockstore/connect-raw.js.map +0 -1
  28. package/blockstore/connection-base.d.ts +0 -2
  29. package/blockstore/connection-base.d.ts.map +0 -1
  30. package/blockstore/connection-base.js +0 -2
  31. package/blockstore/connection-base.js.map +0 -1
  32. package/blockstore/encrypt-helpers.d.ts +0 -2
  33. package/blockstore/encrypt-helpers.d.ts.map +0 -1
  34. package/blockstore/encrypt-helpers.js +0 -2
  35. package/blockstore/encrypt-helpers.js.map +0 -1
  36. package/blockstore/fp-envelope.d.ts +0 -32
  37. package/blockstore/fp-envelope.d.ts.map +0 -1
  38. package/blockstore/fp-envelope.js +0 -14
  39. package/blockstore/fp-envelope.js.map +0 -1
  40. package/blockstore/gateway.d.ts +0 -20
  41. package/blockstore/gateway.d.ts.map +0 -1
  42. package/blockstore/gateway.js +0 -2
  43. package/blockstore/gateway.js.map +0 -1
  44. package/blockstore/index.d.ts +0 -17
  45. package/blockstore/index.d.ts.map +0 -1
  46. package/blockstore/index.js +0 -17
  47. package/blockstore/index.js.map +0 -1
  48. package/blockstore/interceptor-gateway.d.ts +0 -29
  49. package/blockstore/interceptor-gateway.d.ts.map +0 -1
  50. package/blockstore/interceptor-gateway.js +0 -137
  51. package/blockstore/interceptor-gateway.js.map +0 -1
  52. package/blockstore/loader-helpers.d.ts +0 -10
  53. package/blockstore/loader-helpers.d.ts.map +0 -1
  54. package/blockstore/loader-helpers.js +0 -115
  55. package/blockstore/loader-helpers.js.map +0 -1
  56. package/blockstore/loader.d.ts +0 -62
  57. package/blockstore/loader.d.ts.map +0 -1
  58. package/blockstore/loader.js +0 -523
  59. package/blockstore/loader.js.map +0 -1
  60. package/blockstore/register-store-protocol.d.ts +0 -22
  61. package/blockstore/register-store-protocol.d.ts.map +0 -1
  62. package/blockstore/register-store-protocol.js +0 -125
  63. package/blockstore/register-store-protocol.js.map +0 -1
  64. package/blockstore/serde-gateway.d.ts +0 -78
  65. package/blockstore/serde-gateway.d.ts.map +0 -1
  66. package/blockstore/serde-gateway.js +0 -2
  67. package/blockstore/serde-gateway.js.map +0 -1
  68. package/blockstore/store-factory.d.ts +0 -11
  69. package/blockstore/store-factory.d.ts.map +0 -1
  70. package/blockstore/store-factory.js +0 -104
  71. package/blockstore/store-factory.js.map +0 -1
  72. package/blockstore/store-remote.d.ts +0 -2
  73. package/blockstore/store-remote.d.ts.map +0 -1
  74. package/blockstore/store-remote.js +0 -2
  75. package/blockstore/store-remote.js.map +0 -1
  76. package/blockstore/store.d.ts +0 -86
  77. package/blockstore/store.d.ts.map +0 -1
  78. package/blockstore/store.js +0 -437
  79. package/blockstore/store.js.map +0 -1
  80. package/blockstore/task-manager.d.ts +0 -19
  81. package/blockstore/task-manager.d.ts.map +0 -1
  82. package/blockstore/task-manager.js +0 -50
  83. package/blockstore/task-manager.js.map +0 -1
  84. package/blockstore/transaction.d.ts +0 -62
  85. package/blockstore/transaction.d.ts.map +0 -1
  86. package/blockstore/transaction.js +0 -256
  87. package/blockstore/transaction.js.map +0 -1
  88. package/blockstore/types.d.ts +0 -508
  89. package/blockstore/types.d.ts.map +0 -1
  90. package/blockstore/types.js +0 -83
  91. package/blockstore/types.js.map +0 -1
  92. package/blockstore/uri-interceptor.d.ts +0 -19
  93. package/blockstore/uri-interceptor.d.ts.map +0 -1
  94. package/blockstore/uri-interceptor.js +0 -61
  95. package/blockstore/uri-interceptor.js.map +0 -1
  96. package/bundle-not-impl.d.ts +0 -2
  97. package/bundle-not-impl.d.ts.map +0 -1
  98. package/bundle-not-impl.js +0 -4
  99. package/bundle-not-impl.js.map +0 -1
  100. package/cli/main.js +0 -26645
  101. package/crdt-clock.d.ts +0 -26
  102. package/crdt-clock.d.ts.map +0 -1
  103. package/crdt-clock.js +0 -133
  104. package/crdt-clock.js.map +0 -1
  105. package/crdt-helpers.d.ts +0 -19
  106. package/crdt-helpers.d.ts.map +0 -1
  107. package/crdt-helpers.js +0 -332
  108. package/crdt-helpers.js.map +0 -1
  109. package/crdt.d.ts +0 -41
  110. package/crdt.d.ts.map +0 -1
  111. package/crdt.js +0 -164
  112. package/crdt.js.map +0 -1
  113. package/database.d.ts +0 -33
  114. package/database.d.ts.map +0 -1
  115. package/database.js +0 -132
  116. package/database.js.map +0 -1
  117. package/deno.json +0 -20
  118. package/index.d.ts.map +0 -1
  119. package/indexer-helpers.d.ts +0 -68
  120. package/indexer-helpers.d.ts.map +0 -1
  121. package/indexer-helpers.js +0 -157
  122. package/indexer-helpers.js.map +0 -1
  123. package/indexer.d.ts +0 -24
  124. package/indexer.d.ts.map +0 -1
  125. package/indexer.js +0 -239
  126. package/indexer.js.map +0 -1
  127. package/ledger.d.ts +0 -56
  128. package/ledger.d.ts.map +0 -1
  129. package/ledger.js +0 -237
  130. package/ledger.js.map +0 -1
  131. package/protocols/cloud/http-connection.d.ts +0 -26
  132. package/protocols/cloud/http-connection.d.ts.map +0 -1
  133. package/protocols/cloud/http-connection.js +0 -154
  134. package/protocols/cloud/http-connection.js.map +0 -1
  135. package/protocols/cloud/index.d.ts +0 -10
  136. package/protocols/cloud/index.d.ts.map +0 -1
  137. package/protocols/cloud/index.js +0 -10
  138. package/protocols/cloud/index.js.map +0 -1
  139. package/protocols/cloud/msg-raw-connection-base.d.ts +0 -16
  140. package/protocols/cloud/msg-raw-connection-base.d.ts.map +0 -1
  141. package/protocols/cloud/msg-raw-connection-base.js +0 -22
  142. package/protocols/cloud/msg-raw-connection-base.js.map +0 -1
  143. package/protocols/cloud/msg-types-data.d.ts +0 -36
  144. package/protocols/cloud/msg-types-data.d.ts.map +0 -1
  145. package/protocols/cloud/msg-types-data.js +0 -38
  146. package/protocols/cloud/msg-types-data.js.map +0 -1
  147. package/protocols/cloud/msg-types-meta.d.ts +0 -41
  148. package/protocols/cloud/msg-types-meta.d.ts.map +0 -1
  149. package/protocols/cloud/msg-types-meta.js +0 -98
  150. package/protocols/cloud/msg-types-meta.js.map +0 -1
  151. package/protocols/cloud/msg-types-wal.d.ts +0 -33
  152. package/protocols/cloud/msg-types-wal.d.ts.map +0 -1
  153. package/protocols/cloud/msg-types-wal.js +0 -38
  154. package/protocols/cloud/msg-types-wal.js.map +0 -1
  155. package/protocols/cloud/msg-types.d.ts +0 -310
  156. package/protocols/cloud/msg-types.d.ts.map +0 -1
  157. package/protocols/cloud/msg-types.js +0 -299
  158. package/protocols/cloud/msg-types.js.map +0 -1
  159. package/protocols/cloud/msger.d.ts +0 -94
  160. package/protocols/cloud/msger.d.ts.map +0 -1
  161. package/protocols/cloud/msger.js +0 -319
  162. package/protocols/cloud/msger.js.map +0 -1
  163. package/protocols/cloud/ws-connection.d.ts +0 -40
  164. package/protocols/cloud/ws-connection.d.ts.map +0 -1
  165. package/protocols/cloud/ws-connection.js +0 -205
  166. package/protocols/cloud/ws-connection.js.map +0 -1
  167. package/protocols/dashboard/index.d.ts +0 -4
  168. package/protocols/dashboard/index.d.ts.map +0 -1
  169. package/protocols/dashboard/index.js +0 -4
  170. package/protocols/dashboard/index.js.map +0 -1
  171. package/protocols/dashboard/msg-api.d.ts +0 -11
  172. package/protocols/dashboard/msg-api.d.ts.map +0 -1
  173. package/protocols/dashboard/msg-api.js +0 -55
  174. package/protocols/dashboard/msg-api.js.map +0 -1
  175. package/protocols/dashboard/msg-is.d.ts +0 -45
  176. package/protocols/dashboard/msg-is.d.ts.map +0 -1
  177. package/protocols/dashboard/msg-is.js +0 -63
  178. package/protocols/dashboard/msg-is.js.map +0 -1
  179. package/protocols/dashboard/msg-types.d.ts +0 -397
  180. package/protocols/dashboard/msg-types.d.ts.map +0 -1
  181. package/protocols/dashboard/msg-types.js +0 -4
  182. package/protocols/dashboard/msg-types.js.map +0 -1
  183. package/protocols/index.d.ts +0 -3
  184. package/protocols/index.d.ts.map +0 -1
  185. package/protocols/index.js +0 -3
  186. package/protocols/index.js.map +0 -1
  187. package/react/img-file.d.ts +0 -303
  188. package/react/img-file.d.ts.map +0 -1
  189. package/react/img-file.js +0 -92
  190. package/react/img-file.js.map +0 -1
  191. package/react/index.d.ts +0 -5
  192. package/react/index.d.ts.map +0 -1
  193. package/react/index.js +0 -5
  194. package/react/index.js.map +0 -1
  195. package/react/types.d.ts +0 -91
  196. package/react/types.d.ts.map +0 -1
  197. package/react/types.js +0 -2
  198. package/react/types.js.map +0 -1
  199. package/react/use-all-docs.d.ts +0 -4
  200. package/react/use-all-docs.d.ts.map +0 -1
  201. package/react/use-all-docs.js +0 -25
  202. package/react/use-all-docs.js.map +0 -1
  203. package/react/use-attach.d.ts +0 -11
  204. package/react/use-attach.d.ts.map +0 -1
  205. package/react/use-attach.js +0 -169
  206. package/react/use-attach.js.map +0 -1
  207. package/react/use-changes.d.ts +0 -4
  208. package/react/use-changes.d.ts.map +0 -1
  209. package/react/use-changes.js +0 -19
  210. package/react/use-changes.js.map +0 -1
  211. package/react/use-document.d.ts +0 -4
  212. package/react/use-document.d.ts.map +0 -1
  213. package/react/use-document.js +0 -109
  214. package/react/use-document.js.map +0 -1
  215. package/react/use-fireproof.d.ts +0 -6
  216. package/react/use-fireproof.d.ts.map +0 -1
  217. package/react/use-fireproof.js +0 -20
  218. package/react/use-fireproof.js.map +0 -1
  219. package/react/use-live-query.d.ts +0 -4
  220. package/react/use-live-query.d.ts.map +0 -1
  221. package/react/use-live-query.js +0 -24
  222. package/react/use-live-query.js.map +0 -1
  223. package/runtime/files.d.ts +0 -12
  224. package/runtime/files.d.ts.map +0 -1
  225. package/runtime/files.js +0 -29
  226. package/runtime/files.js.map +0 -1
  227. package/runtime/gateways/cloud/gateway.d.ts +0 -41
  228. package/runtime/gateways/cloud/gateway.d.ts.map +0 -1
  229. package/runtime/gateways/cloud/gateway.js +0 -514
  230. package/runtime/gateways/cloud/gateway.js.map +0 -1
  231. package/runtime/gateways/cloud/index.d.ts +0 -3
  232. package/runtime/gateways/cloud/index.d.ts.map +0 -1
  233. package/runtime/gateways/cloud/index.js +0 -3
  234. package/runtime/gateways/cloud/index.js.map +0 -1
  235. package/runtime/gateways/cloud/to-cloud.d.ts +0 -59
  236. package/runtime/gateways/cloud/to-cloud.d.ts.map +0 -1
  237. package/runtime/gateways/cloud/to-cloud.js +0 -175
  238. package/runtime/gateways/cloud/to-cloud.js.map +0 -1
  239. package/runtime/gateways/def-serde-gateway.d.ts +0 -18
  240. package/runtime/gateways/def-serde-gateway.d.ts.map +0 -1
  241. package/runtime/gateways/def-serde-gateway.js +0 -92
  242. package/runtime/gateways/def-serde-gateway.js.map +0 -1
  243. package/runtime/gateways/file/deno/deno-filesystem.d.ts +0 -27
  244. package/runtime/gateways/file/deno/deno-filesystem.d.ts.map +0 -1
  245. package/runtime/gateways/file/deno/deno-filesystem.js +0 -52
  246. package/runtime/gateways/file/deno/deno-filesystem.js.map +0 -1
  247. package/runtime/gateways/file/deno/get-sys-file-system.d.ts +0 -4
  248. package/runtime/gateways/file/deno/get-sys-file-system.d.ts.map +0 -1
  249. package/runtime/gateways/file/deno/get-sys-file-system.js +0 -11
  250. package/runtime/gateways/file/deno/get-sys-file-system.js.map +0 -1
  251. package/runtime/gateways/file/deno/index.d.ts +0 -2
  252. package/runtime/gateways/file/deno/index.d.ts.map +0 -1
  253. package/runtime/gateways/file/deno/index.js +0 -2
  254. package/runtime/gateways/file/deno/index.js.map +0 -1
  255. package/runtime/gateways/file/gateway-impl.d.ts +0 -18
  256. package/runtime/gateways/file/gateway-impl.d.ts.map +0 -1
  257. package/runtime/gateways/file/gateway-impl.js +0 -121
  258. package/runtime/gateways/file/gateway-impl.js.map +0 -1
  259. package/runtime/gateways/file/index.d.ts +0 -3
  260. package/runtime/gateways/file/index.d.ts.map +0 -1
  261. package/runtime/gateways/file/index.js +0 -3
  262. package/runtime/gateways/file/index.js.map +0 -1
  263. package/runtime/gateways/file/key-bag-file.d.ts +0 -20
  264. package/runtime/gateways/file/key-bag-file.d.ts.map +0 -1
  265. package/runtime/gateways/file/key-bag-file.js +0 -52
  266. package/runtime/gateways/file/key-bag-file.js.map +0 -1
  267. package/runtime/gateways/file/node/get-sys-file-system.d.ts +0 -4
  268. package/runtime/gateways/file/node/get-sys-file-system.d.ts.map +0 -1
  269. package/runtime/gateways/file/node/get-sys-file-system.js +0 -11
  270. package/runtime/gateways/file/node/get-sys-file-system.js.map +0 -1
  271. package/runtime/gateways/file/node/index.d.ts +0 -2
  272. package/runtime/gateways/file/node/index.d.ts.map +0 -1
  273. package/runtime/gateways/file/node/index.js +0 -2
  274. package/runtime/gateways/file/node/index.js.map +0 -1
  275. package/runtime/gateways/file/node/node-filesystem.d.ts +0 -32
  276. package/runtime/gateways/file/node/node-filesystem.d.ts.map +0 -1
  277. package/runtime/gateways/file/node/node-filesystem.js +0 -33
  278. package/runtime/gateways/file/node/node-filesystem.js.map +0 -1
  279. package/runtime/gateways/file/node/to-array-buffer.d.ts +0 -2
  280. package/runtime/gateways/file/node/to-array-buffer.d.ts.map +0 -1
  281. package/runtime/gateways/file/node/to-array-buffer.js +0 -12
  282. package/runtime/gateways/file/node/to-array-buffer.js.map +0 -1
  283. package/runtime/gateways/file/sys-file-system-factory.d.ts +0 -4
  284. package/runtime/gateways/file/sys-file-system-factory.d.ts.map +0 -1
  285. package/runtime/gateways/file/sys-file-system-factory.js +0 -13
  286. package/runtime/gateways/file/sys-file-system-factory.js.map +0 -1
  287. package/runtime/gateways/file/utils.d.ts +0 -5
  288. package/runtime/gateways/file/utils.d.ts.map +0 -1
  289. package/runtime/gateways/file/utils.js +0 -27
  290. package/runtime/gateways/file/utils.js.map +0 -1
  291. package/runtime/gateways/file/version.d.ts +0 -2
  292. package/runtime/gateways/file/version.d.ts.map +0 -1
  293. package/runtime/gateways/file/version.js +0 -2
  294. package/runtime/gateways/file/version.js.map +0 -1
  295. package/runtime/gateways/fp-envelope-serialize.d.ts +0 -50
  296. package/runtime/gateways/fp-envelope-serialize.d.ts.map +0 -1
  297. package/runtime/gateways/fp-envelope-serialize.js +0 -141
  298. package/runtime/gateways/fp-envelope-serialize.js.map +0 -1
  299. package/runtime/gateways/index.d.ts +0 -6
  300. package/runtime/gateways/index.d.ts.map +0 -1
  301. package/runtime/gateways/index.js +0 -6
  302. package/runtime/gateways/index.js.map +0 -1
  303. package/runtime/gateways/indexeddb/gateway-impl.d.ts +0 -22
  304. package/runtime/gateways/indexeddb/gateway-impl.d.ts.map +0 -1
  305. package/runtime/gateways/indexeddb/gateway-impl.js +0 -147
  306. package/runtime/gateways/indexeddb/gateway-impl.js.map +0 -1
  307. package/runtime/gateways/indexeddb/index.d.ts +0 -6
  308. package/runtime/gateways/indexeddb/index.d.ts.map +0 -1
  309. package/runtime/gateways/indexeddb/index.js +0 -6
  310. package/runtime/gateways/indexeddb/index.js.map +0 -1
  311. package/runtime/gateways/indexeddb/key-bag-indexeddb.d.ts +0 -16
  312. package/runtime/gateways/indexeddb/key-bag-indexeddb.d.ts.map +0 -1
  313. package/runtime/gateways/indexeddb/key-bag-indexeddb.js +0 -48
  314. package/runtime/gateways/indexeddb/key-bag-indexeddb.js.map +0 -1
  315. package/runtime/gateways/indexeddb-version.d.ts +0 -2
  316. package/runtime/gateways/indexeddb-version.d.ts.map +0 -1
  317. package/runtime/gateways/indexeddb-version.js +0 -2
  318. package/runtime/gateways/indexeddb-version.js.map +0 -1
  319. package/runtime/gateways/memory/gateway.d.ts +0 -18
  320. package/runtime/gateways/memory/gateway.d.ts.map +0 -1
  321. package/runtime/gateways/memory/gateway.js +0 -73
  322. package/runtime/gateways/memory/gateway.js.map +0 -1
  323. package/runtime/gateways/memory/version.d.ts +0 -2
  324. package/runtime/gateways/memory/version.d.ts.map +0 -1
  325. package/runtime/gateways/memory/version.js +0 -2
  326. package/runtime/gateways/memory/version.js.map +0 -1
  327. package/runtime/index.d.ts +0 -13
  328. package/runtime/index.d.ts.map +0 -1
  329. package/runtime/index.js +0 -13
  330. package/runtime/index.js.map +0 -1
  331. package/runtime/key-bag-memory.d.ts +0 -13
  332. package/runtime/key-bag-memory.d.ts.map +0 -1
  333. package/runtime/key-bag-memory.js +0 -30
  334. package/runtime/key-bag-memory.js.map +0 -1
  335. package/runtime/key-bag.d.ts +0 -88
  336. package/runtime/key-bag.d.ts.map +0 -1
  337. package/runtime/key-bag.js +0 -417
  338. package/runtime/key-bag.js.map +0 -1
  339. package/runtime/keyed-crypto.d.ts +0 -19
  340. package/runtime/keyed-crypto.d.ts.map +0 -1
  341. package/runtime/keyed-crypto.js +0 -192
  342. package/runtime/keyed-crypto.js.map +0 -1
  343. package/runtime/memory-sys-container.d.ts +0 -2
  344. package/runtime/memory-sys-container.d.ts.map +0 -1
  345. package/runtime/memory-sys-container.js +0 -2
  346. package/runtime/memory-sys-container.js.map +0 -1
  347. package/runtime/meta-key-hack.d.ts +0 -42
  348. package/runtime/meta-key-hack.d.ts.map +0 -1
  349. package/runtime/meta-key-hack.js +0 -201
  350. package/runtime/meta-key-hack.js.map +0 -1
  351. package/runtime/sts-service/index.d.ts +0 -40
  352. package/runtime/sts-service/index.d.ts.map +0 -1
  353. package/runtime/sts-service/index.js +0 -108
  354. package/runtime/sts-service/index.js.map +0 -1
  355. package/runtime/sys-container.d.ts +0 -2
  356. package/runtime/sys-container.d.ts.map +0 -1
  357. package/runtime/sys-container.js +0 -2
  358. package/runtime/sys-container.js.map +0 -1
  359. package/runtime/wait-pr-multiformats/block.d.ts +0 -47
  360. package/runtime/wait-pr-multiformats/block.d.ts.map +0 -1
  361. package/runtime/wait-pr-multiformats/block.js +0 -64
  362. package/runtime/wait-pr-multiformats/block.js.map +0 -1
  363. package/runtime/wait-pr-multiformats/codec-interface.d.ts +0 -29
  364. package/runtime/wait-pr-multiformats/codec-interface.d.ts.map +0 -1
  365. package/runtime/wait-pr-multiformats/codec-interface.js +0 -2
  366. package/runtime/wait-pr-multiformats/codec-interface.js.map +0 -1
  367. package/runtime/wait-pr-multiformats/index.d.ts +0 -3
  368. package/runtime/wait-pr-multiformats/index.d.ts.map +0 -1
  369. package/runtime/wait-pr-multiformats/index.js +0 -3
  370. package/runtime/wait-pr-multiformats/index.js.map +0 -1
  371. package/tests/blockstore/fp-envelope.test.ts-off +0 -65
  372. package/tests/blockstore/fragment-gateway.test.ts-off +0 -106
  373. package/tests/blockstore/interceptor-gateway.test.ts +0 -254
  374. package/tests/blockstore/keyed-crypto-indexeddb-file.test.ts +0 -128
  375. package/tests/blockstore/keyed-crypto.test.ts +0 -376
  376. package/tests/blockstore/loader.test.ts +0 -298
  377. package/tests/blockstore/standalone.test.ts +0 -152
  378. package/tests/blockstore/store.test.ts +0 -192
  379. package/tests/blockstore/transaction.test.ts +0 -130
  380. package/tests/fireproof/all-gateway.test.ts +0 -461
  381. package/tests/fireproof/attachable.test.ts +0 -686
  382. package/tests/fireproof/cars/bafkreidxwt2nhvbl4fnqfw3ctlt6zbrir4kqwmjo5im6rf4q5si27kgo2i.car +0 -0
  383. package/tests/fireproof/cars/bafkreidxwt2nhvbl4fnqfw3ctlt6zbrir4kqwmjo5im6rf4q5si27kgo2i.ts +0 -324
  384. package/tests/fireproof/charwise-boolean.test.ts +0 -66
  385. package/tests/fireproof/crdt.test.ts +0 -570
  386. package/tests/fireproof/database.test.ts +0 -779
  387. package/tests/fireproof/deleted-docs-handling.test.ts +0 -111
  388. package/tests/fireproof/fireproof.test.fixture.ts +0 -133
  389. package/tests/fireproof/fireproof.test.ts +0 -777
  390. package/tests/fireproof/hello.test.ts +0 -74
  391. package/tests/fireproof/indexer.test.ts +0 -458
  392. package/tests/fireproof/multiple-ledger.test.ts +0 -65
  393. package/tests/fireproof/query-docs.test.ts +0 -116
  394. package/tests/fireproof/query-limit-issue.test.ts +0 -147
  395. package/tests/fireproof/query-property-inconsistency.test.ts +0 -89
  396. package/tests/fireproof/query-result-properties.test.ts +0 -42
  397. package/tests/fireproof/stable-cid.test.ts +0 -69
  398. package/tests/fireproof/utils.test.ts +0 -135
  399. package/tests/gateway/file/loader-config.test.ts +0 -307
  400. package/tests/gateway/indexeddb/loader-config.test.ts +0 -79
  401. package/tests/helpers.ts +0 -172
  402. package/tests/protocols/cloud/msger.test.ts +0 -548
  403. package/tests/react/img-file.test.tsx +0 -190
  404. package/tests/react/use-all-docs.test.tsx +0 -172
  405. package/tests/react/use-document-with-nonexistent-id.test.tsx +0 -96
  406. package/tests/react/use-fireproof-db-switch.test.tsx +0 -91
  407. package/tests/react/use-fireproof-stability.test.tsx +0 -145
  408. package/tests/react/use-fireproof.test.tsx +0 -645
  409. package/tests/runtime/fp-envelope-serialize.test.ts +0 -254
  410. package/tests/runtime/meta-key-hack.test.ts +0 -95
  411. package/tests/setup.file.ts +0 -1
  412. package/tests/setup.indexeddb.ts +0 -0
  413. package/tests/setup.memory.ts +0 -2
  414. package/tests/vitest.file.config.ts +0 -14
  415. package/tests/vitest.indexeddb.config.ts +0 -37
  416. package/tests/vitest.memory.config.ts +0 -25
  417. package/types.d.ts +0 -461
  418. package/types.d.ts.map +0 -1
  419. package/types.js +0 -60
  420. package/types.js.map +0 -1
  421. package/use-fireproof/iframe-strategy.d.ts +0 -14
  422. package/use-fireproof/iframe-strategy.d.ts.map +0 -1
  423. package/use-fireproof/iframe-strategy.js +0 -79
  424. package/use-fireproof/iframe-strategy.js.map +0 -1
  425. package/use-fireproof/index.d.ts +0 -14
  426. package/use-fireproof/index.d.ts.map +0 -1
  427. package/use-fireproof/index.js +0 -36
  428. package/use-fireproof/index.js.map +0 -1
  429. package/use-fireproof/redirect-strategy.d.ts +0 -15
  430. package/use-fireproof/redirect-strategy.d.ts.map +0 -1
  431. package/use-fireproof/redirect-strategy.js +0 -153
  432. package/use-fireproof/redirect-strategy.js.map +0 -1
  433. package/utils.d.ts +0 -48
  434. package/utils.d.ts.map +0 -1
  435. package/utils.js +0 -406
  436. package/utils.js.map +0 -1
  437. package/version.d.ts +0 -2
  438. package/version.d.ts.map +0 -1
  439. package/version.js +0 -4
  440. package/version.js.map +0 -1
  441. package/write-queue.d.ts +0 -9
  442. package/write-queue.d.ts.map +0 -1
  443. package/write-queue.js +0 -70
  444. package/write-queue.js.map +0 -1
@@ -1,397 +0,0 @@
1
- import { ReadWrite, Role, TenantLedger } from "../cloud/msg-types.js";
2
- export type AuthProvider = "github" | "google" | "fp" | "invite-per-email";
3
- export interface Queryable {
4
- readonly userId?: string;
5
- readonly queryProvider?: AuthProvider;
6
- readonly queryEmail?: string;
7
- readonly queryNick?: string;
8
- }
9
- export interface QueryUser {
10
- readonly byString?: string;
11
- readonly existingUserId?: string;
12
- readonly byEmail?: string;
13
- readonly byNick?: string;
14
- readonly andProvider?: AuthProvider;
15
- }
16
- export interface Tenant {
17
- readonly tenantId: string;
18
- readonly name: string;
19
- readonly ownerUserId: string;
20
- readonly adminUserIds: string[];
21
- readonly memberUserIds: string[];
22
- readonly maxAdminUsers: number;
23
- readonly maxMemberUsers: number;
24
- readonly maxLedgers: number;
25
- readonly createdAt: Date;
26
- readonly updatedAt: Date;
27
- }
28
- export type InviteTicketStatus = "pending" | "accepted" | "rejected" | "expired";
29
- export interface SqlInvitedParams {
30
- readonly tenant?: {
31
- readonly role: "admin" | "member";
32
- };
33
- readonly ledger?: {
34
- readonly role: "admin" | "member";
35
- readonly right: "read" | "write";
36
- };
37
- }
38
- export interface InvitedParams {
39
- readonly tenant?: SqlInvitedParams["tenant"] & {
40
- readonly id: string;
41
- };
42
- readonly ledger?: SqlInvitedParams["ledger"] & {
43
- readonly id: string;
44
- };
45
- }
46
- export interface InviteTicket {
47
- readonly inviteId: string;
48
- readonly sendEmailCount: number;
49
- readonly inviterUserId: string;
50
- readonly query: QueryUser;
51
- readonly status: InviteTicketStatus;
52
- readonly statusReason: string;
53
- readonly invitedUserId?: string;
54
- readonly invitedParams: InvitedParams;
55
- readonly expiresAfter: Date;
56
- readonly createdAt: Date;
57
- readonly updatedAt: Date;
58
- }
59
- export type UserStatus = "active" | "inactive" | "banned" | "invited";
60
- export interface AuthType {
61
- readonly type: "ucan" | "clerk" | "better";
62
- readonly token: string;
63
- }
64
- export interface VerifiedAuth {
65
- readonly type: "clerk" | "better";
66
- readonly token: string;
67
- readonly userId: string;
68
- readonly provider: string;
69
- }
70
- export interface ClerkClaim {
71
- readonly email: string;
72
- readonly first: string;
73
- readonly last: string;
74
- readonly nick?: string;
75
- readonly name?: string;
76
- readonly image_url?: string;
77
- }
78
- export interface ClerkVerifyAuth extends VerifiedAuth {
79
- readonly params: ClerkClaim;
80
- }
81
- export interface User {
82
- readonly userId: string;
83
- readonly maxTenants: number;
84
- readonly status: UserStatus;
85
- readonly statusReason?: string;
86
- readonly createdAt: Date;
87
- readonly updatedAt: Date;
88
- readonly byProviders: UserByProvider[];
89
- }
90
- export interface UserByProvider extends Queryable {
91
- readonly providerUserId: string;
92
- readonly cleanEmail?: string;
93
- readonly cleanNick?: string;
94
- readonly queryProvider: AuthProvider;
95
- readonly queryEmail?: string;
96
- readonly queryNick?: string;
97
- readonly params: ClerkClaim;
98
- readonly used: Date;
99
- readonly createdAt: Date;
100
- readonly updatedAt: Date;
101
- }
102
- export interface ResCreateTenant {
103
- readonly type: "resCreateTenant";
104
- readonly tenant: OutTenantParams;
105
- }
106
- export interface InCreateTenantParams {
107
- readonly name?: string;
108
- readonly ownerUserId: string;
109
- readonly maxAdminUsers?: number;
110
- readonly maxMemberUsers?: number;
111
- readonly maxInvites?: number;
112
- }
113
- export interface ReqCreateTenant {
114
- readonly type: "reqCreateTenant";
115
- readonly auth: AuthType;
116
- readonly tenant: Omit<InCreateTenantParams, "ownerUserId">;
117
- }
118
- export interface InUpdateTenantParams {
119
- readonly tenantId: string;
120
- readonly name?: string;
121
- readonly maxAdminUsers?: number;
122
- readonly maxMemberUsers?: number;
123
- readonly maxInvites?: number;
124
- }
125
- export interface ResUpdateTenant {
126
- readonly type: "resUpdateTenant";
127
- readonly tenant: OutTenantParams;
128
- }
129
- export interface ReqUpdateTenant {
130
- readonly type: "reqUpdateTenant";
131
- readonly auth: AuthType;
132
- readonly tenant: InUpdateTenantParams;
133
- }
134
- export interface ResEnsureTenant {
135
- readonly type: "resEnsureTenant";
136
- readonly tenant: Tenant;
137
- }
138
- export interface ReqRedeemInvite {
139
- readonly type: "reqRedeemInvite";
140
- readonly auth: AuthType;
141
- }
142
- export interface ResRedeemInvite {
143
- readonly type: "resRedeemInvite";
144
- readonly invites?: InviteTicket[];
145
- }
146
- export interface ReqListLedgersByUser {
147
- readonly type: "reqListLedgersByUser";
148
- readonly auth: AuthType;
149
- readonly tenantIds?: string[];
150
- }
151
- interface LedgerUserRight {
152
- readonly userId: string;
153
- readonly role: Role;
154
- readonly right: ReadWrite;
155
- readonly name?: string;
156
- readonly default: boolean;
157
- readonly createdAt: Date;
158
- readonly updatedAt: Date;
159
- }
160
- export interface LedgerUser {
161
- readonly ledgerId: string;
162
- readonly tenantId: string;
163
- readonly name: string;
164
- readonly ownerId: string;
165
- readonly maxShares: number;
166
- readonly users: LedgerUserRight[];
167
- readonly createdAt: Date;
168
- readonly updatedAt: Date;
169
- }
170
- export interface ResListLedgersByUser {
171
- readonly type: "resListLedgersByUser";
172
- readonly userId: string;
173
- readonly ledgers: LedgerUser[];
174
- }
175
- export interface ReqListTenantsByUser {
176
- readonly type: "reqListTenantsByUser";
177
- readonly auth: AuthType;
178
- }
179
- export interface UserTenantCommon {
180
- readonly name?: string;
181
- readonly status: UserStatus;
182
- readonly statusReason: string;
183
- readonly createdAt: Date;
184
- readonly updatedAt: Date;
185
- }
186
- export interface UserTenant {
187
- readonly tenantId: string;
188
- readonly role: Role;
189
- readonly default: boolean;
190
- readonly user: UserTenantCommon;
191
- readonly tenant: UserTenantCommon;
192
- }
193
- export declare function isAdmin(ut: UserTenant): boolean;
194
- export interface AdminTenant extends UserTenant {
195
- readonly role: "admin";
196
- readonly adminUserIds: string[];
197
- readonly memberUserIds: string[];
198
- readonly maxAdminUsers: number;
199
- readonly maxMemberUsers: number;
200
- }
201
- export interface ResListTenantsByUser {
202
- readonly type: "resListTenantsByUser";
203
- readonly userId: string;
204
- readonly authUserId: string;
205
- readonly tenants: UserTenant[];
206
- }
207
- export interface ReqFindUser {
208
- readonly type: "reqFindUser";
209
- readonly auth: AuthType;
210
- readonly query: QueryUser;
211
- }
212
- export interface ResFindUser {
213
- readonly type: "resFindUser";
214
- readonly query: QueryUser;
215
- readonly results: User[];
216
- }
217
- export interface QueryInviteTicket {
218
- readonly incSendEmailCount?: boolean;
219
- readonly inviteId?: string;
220
- readonly query: QueryUser;
221
- readonly invitedParams: InvitedParams;
222
- }
223
- export interface ReqInviteUser {
224
- readonly type: "reqInviteUser";
225
- readonly auth: AuthType;
226
- readonly ticket: QueryInviteTicket;
227
- }
228
- export interface ResInviteUser {
229
- readonly type: "resInviteUser";
230
- readonly invite: InviteTicket;
231
- }
232
- export interface ReqDeleteInvite {
233
- readonly type: "reqDeleteInvite";
234
- readonly auth: AuthType;
235
- readonly inviteId: string;
236
- }
237
- export interface ResDeleteInvite {
238
- readonly type: "resDeleteInvite";
239
- readonly inviteId: string;
240
- }
241
- export interface ReqListInvites {
242
- readonly type: "reqListInvites";
243
- readonly auth: AuthType;
244
- readonly tenantIds?: string[];
245
- readonly ledgerIds?: string[];
246
- }
247
- export interface ResListInvites {
248
- readonly type: "resListInvites";
249
- readonly tickets: InviteTicket[];
250
- }
251
- export interface ReqUpdateUserTenant {
252
- readonly type: "reqUpdateUserTenant";
253
- readonly auth: AuthType;
254
- readonly tenantId: string;
255
- readonly userId?: string;
256
- readonly role: Role;
257
- readonly default?: boolean;
258
- readonly name?: string;
259
- }
260
- export interface ResUpdateUserTenant {
261
- readonly type: "resUpdateUserTenant";
262
- readonly tenantId: string;
263
- readonly userId: string;
264
- readonly role: Role;
265
- readonly default: boolean;
266
- readonly name?: string;
267
- }
268
- export interface CreateLedger {
269
- readonly tenantId: string;
270
- readonly name: string;
271
- }
272
- export interface ReqCreateLedger {
273
- readonly type: "reqCreateLedger";
274
- readonly auth: AuthType;
275
- readonly ledger: CreateLedger;
276
- }
277
- export interface ResCreateLedger {
278
- readonly type: "resCreateLedger";
279
- readonly ledger: LedgerUser;
280
- }
281
- export interface UpdateLedger {
282
- readonly ledgerId: string;
283
- readonly tenantId: string;
284
- readonly right?: ReadWrite;
285
- readonly role?: Role;
286
- readonly name?: string;
287
- readonly default?: boolean;
288
- }
289
- export interface ReqUpdateLedger {
290
- readonly type: "reqUpdateLedger";
291
- readonly auth: AuthType;
292
- readonly ledger: UpdateLedger;
293
- }
294
- export interface ResUpdateLedger {
295
- readonly type: "resUpdateLedger";
296
- readonly ledger: LedgerUser;
297
- }
298
- export interface DeleteLedger {
299
- readonly ledgerId: string;
300
- readonly tenantId: string;
301
- }
302
- export interface ReqDeleteLedger {
303
- readonly type: "reqDeleteLedger";
304
- readonly auth: AuthType;
305
- readonly ledger: DeleteLedger;
306
- }
307
- export interface ResDeleteLedger {
308
- readonly type: "resDeleteLedger";
309
- }
310
- export interface ReqCloudSessionToken {
311
- readonly type: "reqCloudSessionToken";
312
- readonly auth: AuthType;
313
- readonly selected?: Partial<TenantLedger>;
314
- readonly resultId?: string;
315
- }
316
- export interface ResCloudSessionToken {
317
- readonly type: "resCloudSessionToken";
318
- readonly token: string;
319
- }
320
- export interface ReqTokenByResultId {
321
- readonly type: "reqTokenByResultId";
322
- readonly resultId: string;
323
- }
324
- export interface ResTokenByResultId {
325
- readonly type: "resTokenByResultId";
326
- readonly status: "found" | "not-found";
327
- readonly resultId: string;
328
- readonly token?: string;
329
- }
330
- export interface ResDeleteTenant {
331
- readonly type: "resDeleteTenant";
332
- readonly tenantId: string;
333
- }
334
- export interface ReqDeleteTenant {
335
- readonly type: "reqDeleteTenant";
336
- readonly auth: AuthType;
337
- readonly tenantId: string;
338
- }
339
- export interface OutTenantParams {
340
- readonly tenantId: string;
341
- readonly name: string;
342
- readonly ownerUserId: string;
343
- readonly maxAdminUsers: number;
344
- readonly maxMemberUsers: number;
345
- readonly maxInvites: number;
346
- readonly maxLedgers: number;
347
- readonly status: UserStatus;
348
- readonly statusReason: string;
349
- readonly createdAt: Date;
350
- readonly updatedAt: Date;
351
- }
352
- export interface ResEnsureUser {
353
- readonly type: "resEnsureUser";
354
- readonly user: User;
355
- readonly tenants: UserTenant[];
356
- }
357
- export interface ReqEnsureUser {
358
- readonly type: "reqEnsureUser";
359
- readonly auth: AuthType;
360
- }
361
- interface RoleBase {
362
- readonly tenantId?: string;
363
- readonly ledgerId?: string;
364
- readonly userId: string;
365
- readonly role: Role;
366
- readonly adminUserIds: string[];
367
- readonly memberUserIds: string[];
368
- }
369
- interface TenantRole extends RoleBase {
370
- readonly tenantId: string;
371
- }
372
- interface LedgerRole extends RoleBase {
373
- readonly ledgerId: string;
374
- readonly right: ReadWrite;
375
- }
376
- export type RoleType = TenantRole | LedgerRole;
377
- export interface ReqInsertTenant {
378
- readonly tenantId: string;
379
- readonly name?: string;
380
- readonly ownerUserId: string;
381
- readonly adminUserIds?: string[];
382
- readonly memberUserIds?: string[];
383
- readonly maxAdminUsers?: number;
384
- readonly maxMemberUsers?: number;
385
- readonly createdAt?: Date;
386
- readonly updatedAt?: Date;
387
- }
388
- export interface ReqExtendToken {
389
- readonly type: "reqExtendToken";
390
- readonly token: string;
391
- }
392
- export interface ResExtendToken {
393
- readonly type: "resExtendToken";
394
- readonly token: string;
395
- }
396
- export {};
397
- //# sourceMappingURL=msg-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types.d.ts","sourceRoot":"","sources":["../../../../../src/protocols/dashboard/msg-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEtE,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,IAAI,GAAG,kBAAkB,CAAC;AAE3E,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,aAAa,CAAC,EAAE,YAAY,CAAC;IACtC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,CAAC,EAAE,YAAY,CAAC;CACrC;AAED,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAChC,QAAQ,CAAC,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 @@
1
- export function isAdmin(ut) {
2
- return ut.role === "admin";
3
- }
4
- //# sourceMappingURL=msg-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types.js","sourceRoot":"","sources":["../../../../../src/protocols/dashboard/msg-types.ts"],"names":[],"mappings":"AAsPA,MAAM,UAAU,OAAO,CAAC,EAAc;IACpC,OAAO,EAAE,CAAC,IAAI,KAAK,OAAO,CAAC;AAC7B,CAAC"}
@@ -1,3 +0,0 @@
1
- export * as cloud from "./cloud/index.js";
2
- export * as dashboard from "./dashboard/index.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/protocols/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC"}
@@ -1,3 +0,0 @@
1
- export * as cloud from "./cloud/index.js";
2
- export * as dashboard from "./dashboard/index.js";
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/protocols/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC"}