@fireproof/core 0.20.0-dev-preview-63 → 0.20.1-dev-preview-01

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 (408) hide show
  1. package/deno/index.d.ts +7 -0
  2. package/deno/index.js +66 -0
  3. package/deno/index.js.map +1 -0
  4. package/deno/metafile-esm.json +1 -0
  5. package/deno.json +2 -2
  6. package/index.cjs +7268 -0
  7. package/index.cjs.map +1 -0
  8. package/index.d.cts +2742 -0
  9. package/index.d.ts +2742 -15
  10. package/index.js +7267 -14
  11. package/index.js.map +1 -1
  12. package/indexeddb/index.cjs +218 -0
  13. package/indexeddb/index.cjs.map +1 -0
  14. package/indexeddb/index.d.cts +30 -0
  15. package/indexeddb/index.d.ts +30 -0
  16. package/indexeddb/index.js +195 -0
  17. package/indexeddb/index.js.map +1 -0
  18. package/indexeddb/metafile-cjs.json +1 -0
  19. package/indexeddb/metafile-esm.json +1 -0
  20. package/metafile-cjs.json +1 -0
  21. package/metafile-esm.json +1 -0
  22. package/node/index.cjs +97 -0
  23. package/node/index.cjs.map +1 -0
  24. package/node/index.d.cts +7 -0
  25. package/node/index.d.ts +7 -0
  26. package/node/index.js +64 -0
  27. package/node/index.js.map +1 -0
  28. package/node/metafile-cjs.json +1 -0
  29. package/node/metafile-esm.json +1 -0
  30. package/package.json +17 -20
  31. package/react/index.cjs +298 -0
  32. package/react/index.cjs.map +1 -0
  33. package/react/{img-file.d.ts → index.d.cts} +53 -6
  34. package/react/index.d.ts +336 -4
  35. package/react/index.js +264 -3
  36. package/react/index.js.map +1 -1
  37. package/react/metafile-cjs.json +1 -0
  38. package/react/metafile-esm.json +1 -0
  39. package/tests/blockstore/loader.test.ts +1 -1
  40. package/tests/blockstore/store.test.ts +4 -9
  41. package/tests/fireproof/attachable.test.ts +3 -3
  42. package/tests/react/use-fireproof-db-switch.test.tsx +91 -0
  43. package/tests/react/use-fireproof-stability.test.tsx +145 -0
  44. package/tests/www/gallery.html +132 -0
  45. package/tests/www/iife.html +42 -0
  46. package/tests/www/todo-aws.html +232 -0
  47. package/tests/www/todo-ipfs.html +213 -0
  48. package/tests/www/todo-local.html +214 -0
  49. package/tests/www/todo-netlify.html +227 -0
  50. package/tests/www/todo.html +254 -0
  51. package/apply-head-queue.d.ts +0 -18
  52. package/apply-head-queue.d.ts.map +0 -1
  53. package/apply-head-queue.js +0 -47
  54. package/apply-head-queue.js.map +0 -1
  55. package/blockstore/attachable-store.d.ts +0 -17
  56. package/blockstore/attachable-store.d.ts.map +0 -1
  57. package/blockstore/attachable-store.js +0 -295
  58. package/blockstore/attachable-store.js.map +0 -1
  59. package/blockstore/commit-queue.d.ts +0 -12
  60. package/blockstore/commit-queue.d.ts.map +0 -1
  61. package/blockstore/commit-queue.js +0 -52
  62. package/blockstore/commit-queue.js.map +0 -1
  63. package/blockstore/commitor.d.ts +0 -21
  64. package/blockstore/commitor.d.ts.map +0 -1
  65. package/blockstore/commitor.js +0 -104
  66. package/blockstore/commitor.js.map +0 -1
  67. package/blockstore/connect-raw.d.ts +0 -2
  68. package/blockstore/connect-raw.d.ts.map +0 -1
  69. package/blockstore/connect-raw.js +0 -2
  70. package/blockstore/connect-raw.js.map +0 -1
  71. package/blockstore/connection-base.d.ts +0 -2
  72. package/blockstore/connection-base.d.ts.map +0 -1
  73. package/blockstore/connection-base.js +0 -2
  74. package/blockstore/connection-base.js.map +0 -1
  75. package/blockstore/encrypt-helpers.d.ts +0 -2
  76. package/blockstore/encrypt-helpers.d.ts.map +0 -1
  77. package/blockstore/encrypt-helpers.js +0 -2
  78. package/blockstore/encrypt-helpers.js.map +0 -1
  79. package/blockstore/fp-envelope.d.ts +0 -32
  80. package/blockstore/fp-envelope.d.ts.map +0 -1
  81. package/blockstore/fp-envelope.js +0 -14
  82. package/blockstore/fp-envelope.js.map +0 -1
  83. package/blockstore/gateway.d.ts +0 -20
  84. package/blockstore/gateway.d.ts.map +0 -1
  85. package/blockstore/gateway.js +0 -2
  86. package/blockstore/gateway.js.map +0 -1
  87. package/blockstore/index.d.ts +0 -16
  88. package/blockstore/index.d.ts.map +0 -1
  89. package/blockstore/index.js +0 -16
  90. package/blockstore/index.js.map +0 -1
  91. package/blockstore/interceptor-gateway.d.ts +0 -29
  92. package/blockstore/interceptor-gateway.d.ts.map +0 -1
  93. package/blockstore/interceptor-gateway.js +0 -137
  94. package/blockstore/interceptor-gateway.js.map +0 -1
  95. package/blockstore/loader-helpers.d.ts +0 -4
  96. package/blockstore/loader-helpers.d.ts.map +0 -1
  97. package/blockstore/loader-helpers.js +0 -16
  98. package/blockstore/loader-helpers.js.map +0 -1
  99. package/blockstore/loader.d.ts +0 -45
  100. package/blockstore/loader.d.ts.map +0 -1
  101. package/blockstore/loader.js +0 -352
  102. package/blockstore/loader.js.map +0 -1
  103. package/blockstore/register-store-protocol.d.ts +0 -22
  104. package/blockstore/register-store-protocol.d.ts.map +0 -1
  105. package/blockstore/register-store-protocol.js +0 -114
  106. package/blockstore/register-store-protocol.js.map +0 -1
  107. package/blockstore/serde-gateway.d.ts +0 -78
  108. package/blockstore/serde-gateway.d.ts.map +0 -1
  109. package/blockstore/serde-gateway.js +0 -2
  110. package/blockstore/serde-gateway.js.map +0 -1
  111. package/blockstore/store-factory.d.ts +0 -11
  112. package/blockstore/store-factory.d.ts.map +0 -1
  113. package/blockstore/store-factory.js +0 -105
  114. package/blockstore/store-factory.js.map +0 -1
  115. package/blockstore/store-remote.d.ts +0 -2
  116. package/blockstore/store-remote.d.ts.map +0 -1
  117. package/blockstore/store-remote.js +0 -2
  118. package/blockstore/store-remote.js.map +0 -1
  119. package/blockstore/store.d.ts +0 -82
  120. package/blockstore/store.d.ts.map +0 -1
  121. package/blockstore/store.js +0 -438
  122. package/blockstore/store.js.map +0 -1
  123. package/blockstore/task-manager.d.ts +0 -19
  124. package/blockstore/task-manager.d.ts.map +0 -1
  125. package/blockstore/task-manager.js +0 -50
  126. package/blockstore/task-manager.js.map +0 -1
  127. package/blockstore/transaction.d.ts +0 -64
  128. package/blockstore/transaction.d.ts.map +0 -1
  129. package/blockstore/transaction.js +0 -249
  130. package/blockstore/transaction.js.map +0 -1
  131. package/blockstore/types.d.ts +0 -400
  132. package/blockstore/types.d.ts.map +0 -1
  133. package/blockstore/types.js +0 -55
  134. package/blockstore/types.js.map +0 -1
  135. package/blockstore/uri-interceptor.d.ts +0 -19
  136. package/blockstore/uri-interceptor.d.ts.map +0 -1
  137. package/blockstore/uri-interceptor.js +0 -61
  138. package/blockstore/uri-interceptor.js.map +0 -1
  139. package/bundle-not-impl.d.ts +0 -2
  140. package/bundle-not-impl.d.ts.map +0 -1
  141. package/bundle-not-impl.js +0 -4
  142. package/bundle-not-impl.js.map +0 -1
  143. package/cli/main.js +0 -26114
  144. package/context.d.ts +0 -7
  145. package/context.d.ts.map +0 -1
  146. package/context.js +0 -15
  147. package/context.js.map +0 -1
  148. package/crdt-clock.d.ts +0 -27
  149. package/crdt-clock.d.ts.map +0 -1
  150. package/crdt-clock.js +0 -140
  151. package/crdt-clock.js.map +0 -1
  152. package/crdt-helpers.d.ts +0 -16
  153. package/crdt-helpers.d.ts.map +0 -1
  154. package/crdt-helpers.js +0 -316
  155. package/crdt-helpers.js.map +0 -1
  156. package/crdt.d.ts +0 -34
  157. package/crdt.d.ts.map +0 -1
  158. package/crdt.js +0 -131
  159. package/crdt.js.map +0 -1
  160. package/database.d.ts +0 -34
  161. package/database.d.ts.map +0 -1
  162. package/database.js +0 -121
  163. package/database.js.map +0 -1
  164. package/index.d.ts.map +0 -1
  165. package/indexer-helpers.d.ts +0 -69
  166. package/indexer-helpers.d.ts.map +0 -1
  167. package/indexer-helpers.js +0 -135
  168. package/indexer-helpers.js.map +0 -1
  169. package/indexer.d.ts +0 -25
  170. package/indexer.d.ts.map +0 -1
  171. package/indexer.js +0 -231
  172. package/indexer.js.map +0 -1
  173. package/ledger.d.ts +0 -56
  174. package/ledger.d.ts.map +0 -1
  175. package/ledger.js +0 -224
  176. package/ledger.js.map +0 -1
  177. package/protocols/cloud/http-connection.d.ts +0 -25
  178. package/protocols/cloud/http-connection.d.ts.map +0 -1
  179. package/protocols/cloud/http-connection.js +0 -153
  180. package/protocols/cloud/http-connection.js.map +0 -1
  181. package/protocols/cloud/index.d.ts +0 -10
  182. package/protocols/cloud/index.d.ts.map +0 -1
  183. package/protocols/cloud/index.js +0 -10
  184. package/protocols/cloud/index.js.map +0 -1
  185. package/protocols/cloud/msg-raw-connection-base.d.ts +0 -16
  186. package/protocols/cloud/msg-raw-connection-base.d.ts.map +0 -1
  187. package/protocols/cloud/msg-raw-connection-base.js +0 -22
  188. package/protocols/cloud/msg-raw-connection-base.js.map +0 -1
  189. package/protocols/cloud/msg-types-data.d.ts +0 -36
  190. package/protocols/cloud/msg-types-data.d.ts.map +0 -1
  191. package/protocols/cloud/msg-types-data.js +0 -38
  192. package/protocols/cloud/msg-types-data.js.map +0 -1
  193. package/protocols/cloud/msg-types-meta.d.ts +0 -41
  194. package/protocols/cloud/msg-types-meta.d.ts.map +0 -1
  195. package/protocols/cloud/msg-types-meta.js +0 -98
  196. package/protocols/cloud/msg-types-meta.js.map +0 -1
  197. package/protocols/cloud/msg-types-wal.d.ts +0 -33
  198. package/protocols/cloud/msg-types-wal.d.ts.map +0 -1
  199. package/protocols/cloud/msg-types-wal.js +0 -38
  200. package/protocols/cloud/msg-types-wal.js.map +0 -1
  201. package/protocols/cloud/msg-types.d.ts +0 -279
  202. package/protocols/cloud/msg-types.d.ts.map +0 -1
  203. package/protocols/cloud/msg-types.js +0 -278
  204. package/protocols/cloud/msg-types.js.map +0 -1
  205. package/protocols/cloud/msger.d.ts +0 -79
  206. package/protocols/cloud/msger.d.ts.map +0 -1
  207. package/protocols/cloud/msger.js +0 -198
  208. package/protocols/cloud/msger.js.map +0 -1
  209. package/protocols/cloud/ws-connection.d.ts +0 -29
  210. package/protocols/cloud/ws-connection.d.ts.map +0 -1
  211. package/protocols/cloud/ws-connection.js +0 -163
  212. package/protocols/cloud/ws-connection.js.map +0 -1
  213. package/protocols/index.d.ts +0 -2
  214. package/protocols/index.d.ts.map +0 -1
  215. package/protocols/index.js +0 -2
  216. package/protocols/index.js.map +0 -1
  217. package/react/img-file.d.ts.map +0 -1
  218. package/react/img-file.js +0 -58
  219. package/react/img-file.js.map +0 -1
  220. package/react/index.d.ts.map +0 -1
  221. package/react/types.d.ts +0 -43
  222. package/react/types.d.ts.map +0 -1
  223. package/react/types.js +0 -2
  224. package/react/types.js.map +0 -1
  225. package/react/use-all-docs.d.ts +0 -4
  226. package/react/use-all-docs.d.ts.map +0 -1
  227. package/react/use-all-docs.js +0 -19
  228. package/react/use-all-docs.js.map +0 -1
  229. package/react/use-changes.d.ts +0 -4
  230. package/react/use-changes.d.ts.map +0 -1
  231. package/react/use-changes.js +0 -19
  232. package/react/use-changes.js.map +0 -1
  233. package/react/use-document.d.ts +0 -4
  234. package/react/use-document.d.ts.map +0 -1
  235. package/react/use-document.js +0 -99
  236. package/react/use-document.js.map +0 -1
  237. package/react/use-fireproof.d.ts +0 -6
  238. package/react/use-fireproof.d.ts.map +0 -1
  239. package/react/use-fireproof.js +0 -15
  240. package/react/use-fireproof.js.map +0 -1
  241. package/react/use-live-query.d.ts +0 -4
  242. package/react/use-live-query.d.ts.map +0 -1
  243. package/react/use-live-query.js +0 -38
  244. package/react/use-live-query.js.map +0 -1
  245. package/react/utils.d.ts +0 -2
  246. package/react/utils.d.ts.map +0 -1
  247. package/react/utils.js +0 -4
  248. package/react/utils.js.map +0 -1
  249. package/runtime/files.d.ts +0 -12
  250. package/runtime/files.d.ts.map +0 -1
  251. package/runtime/files.js +0 -29
  252. package/runtime/files.js.map +0 -1
  253. package/runtime/gateways/cloud/gateway.d.ts +0 -44
  254. package/runtime/gateways/cloud/gateway.d.ts.map +0 -1
  255. package/runtime/gateways/cloud/gateway.js +0 -496
  256. package/runtime/gateways/cloud/gateway.js.map +0 -1
  257. package/runtime/gateways/def-serde-gateway.d.ts +0 -19
  258. package/runtime/gateways/def-serde-gateway.d.ts.map +0 -1
  259. package/runtime/gateways/def-serde-gateway.js +0 -73
  260. package/runtime/gateways/def-serde-gateway.js.map +0 -1
  261. package/runtime/gateways/file/deno/deno-filesystem.d.ts +0 -27
  262. package/runtime/gateways/file/deno/deno-filesystem.d.ts.map +0 -1
  263. package/runtime/gateways/file/deno/deno-filesystem.js +0 -51
  264. package/runtime/gateways/file/deno/deno-filesystem.js.map +0 -1
  265. package/runtime/gateways/file/deno/get-sys-file-system.d.ts +0 -4
  266. package/runtime/gateways/file/deno/get-sys-file-system.d.ts.map +0 -1
  267. package/runtime/gateways/file/deno/get-sys-file-system.js +0 -11
  268. package/runtime/gateways/file/deno/get-sys-file-system.js.map +0 -1
  269. package/runtime/gateways/file/deno/index.d.ts +0 -2
  270. package/runtime/gateways/file/deno/index.d.ts.map +0 -1
  271. package/runtime/gateways/file/deno/index.js +0 -2
  272. package/runtime/gateways/file/deno/index.js.map +0 -1
  273. package/runtime/gateways/file/gateway-impl.d.ts +0 -18
  274. package/runtime/gateways/file/gateway-impl.d.ts.map +0 -1
  275. package/runtime/gateways/file/gateway-impl.js +0 -121
  276. package/runtime/gateways/file/gateway-impl.js.map +0 -1
  277. package/runtime/gateways/file/index.d.ts +0 -3
  278. package/runtime/gateways/file/index.d.ts.map +0 -1
  279. package/runtime/gateways/file/index.js +0 -3
  280. package/runtime/gateways/file/index.js.map +0 -1
  281. package/runtime/gateways/file/key-bag-file.d.ts +0 -19
  282. package/runtime/gateways/file/key-bag-file.d.ts.map +0 -1
  283. package/runtime/gateways/file/key-bag-file.js +0 -40
  284. package/runtime/gateways/file/key-bag-file.js.map +0 -1
  285. package/runtime/gateways/file/node/get-sys-file-system.d.ts +0 -4
  286. package/runtime/gateways/file/node/get-sys-file-system.d.ts.map +0 -1
  287. package/runtime/gateways/file/node/get-sys-file-system.js +0 -11
  288. package/runtime/gateways/file/node/get-sys-file-system.js.map +0 -1
  289. package/runtime/gateways/file/node/index.d.ts +0 -2
  290. package/runtime/gateways/file/node/index.d.ts.map +0 -1
  291. package/runtime/gateways/file/node/index.js +0 -2
  292. package/runtime/gateways/file/node/index.js.map +0 -1
  293. package/runtime/gateways/file/node/node-filesystem.d.ts +0 -32
  294. package/runtime/gateways/file/node/node-filesystem.d.ts.map +0 -1
  295. package/runtime/gateways/file/node/node-filesystem.js +0 -37
  296. package/runtime/gateways/file/node/node-filesystem.js.map +0 -1
  297. package/runtime/gateways/file/node/to-array-buffer.d.ts +0 -2
  298. package/runtime/gateways/file/node/to-array-buffer.d.ts.map +0 -1
  299. package/runtime/gateways/file/node/to-array-buffer.js +0 -12
  300. package/runtime/gateways/file/node/to-array-buffer.js.map +0 -1
  301. package/runtime/gateways/file/sys-file-system-factory.d.ts +0 -4
  302. package/runtime/gateways/file/sys-file-system-factory.d.ts.map +0 -1
  303. package/runtime/gateways/file/sys-file-system-factory.js +0 -13
  304. package/runtime/gateways/file/sys-file-system-factory.js.map +0 -1
  305. package/runtime/gateways/file/utils.d.ts +0 -5
  306. package/runtime/gateways/file/utils.d.ts.map +0 -1
  307. package/runtime/gateways/file/utils.js +0 -27
  308. package/runtime/gateways/file/utils.js.map +0 -1
  309. package/runtime/gateways/file/version.d.ts +0 -2
  310. package/runtime/gateways/file/version.d.ts.map +0 -1
  311. package/runtime/gateways/file/version.js +0 -2
  312. package/runtime/gateways/file/version.js.map +0 -1
  313. package/runtime/gateways/fp-envelope-serialize.d.ts +0 -50
  314. package/runtime/gateways/fp-envelope-serialize.d.ts.map +0 -1
  315. package/runtime/gateways/fp-envelope-serialize.js +0 -141
  316. package/runtime/gateways/fp-envelope-serialize.js.map +0 -1
  317. package/runtime/gateways/index.d.ts +0 -6
  318. package/runtime/gateways/index.d.ts.map +0 -1
  319. package/runtime/gateways/index.js +0 -6
  320. package/runtime/gateways/index.js.map +0 -1
  321. package/runtime/gateways/indexeddb/gateway-impl.d.ts +0 -22
  322. package/runtime/gateways/indexeddb/gateway-impl.d.ts.map +0 -1
  323. package/runtime/gateways/indexeddb/gateway-impl.js +0 -147
  324. package/runtime/gateways/indexeddb/gateway-impl.js.map +0 -1
  325. package/runtime/gateways/indexeddb/index.d.ts +0 -6
  326. package/runtime/gateways/indexeddb/index.d.ts.map +0 -1
  327. package/runtime/gateways/indexeddb/index.js +0 -6
  328. package/runtime/gateways/indexeddb/index.js.map +0 -1
  329. package/runtime/gateways/indexeddb/key-bag-indexeddb.d.ts +0 -15
  330. package/runtime/gateways/indexeddb/key-bag-indexeddb.d.ts.map +0 -1
  331. package/runtime/gateways/indexeddb/key-bag-indexeddb.js +0 -42
  332. package/runtime/gateways/indexeddb/key-bag-indexeddb.js.map +0 -1
  333. package/runtime/gateways/indexeddb-version.d.ts +0 -2
  334. package/runtime/gateways/indexeddb-version.d.ts.map +0 -1
  335. package/runtime/gateways/indexeddb-version.js +0 -2
  336. package/runtime/gateways/indexeddb-version.js.map +0 -1
  337. package/runtime/gateways/memory/gateway.d.ts +0 -18
  338. package/runtime/gateways/memory/gateway.d.ts.map +0 -1
  339. package/runtime/gateways/memory/gateway.js +0 -58
  340. package/runtime/gateways/memory/gateway.js.map +0 -1
  341. package/runtime/gateways/memory/version.d.ts +0 -2
  342. package/runtime/gateways/memory/version.d.ts.map +0 -1
  343. package/runtime/gateways/memory/version.js +0 -2
  344. package/runtime/gateways/memory/version.js.map +0 -1
  345. package/runtime/index.d.ts +0 -13
  346. package/runtime/index.d.ts.map +0 -1
  347. package/runtime/index.js +0 -13
  348. package/runtime/index.js.map +0 -1
  349. package/runtime/key-bag-memory.d.ts +0 -12
  350. package/runtime/key-bag-memory.d.ts.map +0 -1
  351. package/runtime/key-bag-memory.js +0 -23
  352. package/runtime/key-bag-memory.js.map +0 -1
  353. package/runtime/key-bag.d.ts +0 -85
  354. package/runtime/key-bag.d.ts.map +0 -1
  355. package/runtime/key-bag.js +0 -415
  356. package/runtime/key-bag.js.map +0 -1
  357. package/runtime/keyed-crypto.d.ts +0 -19
  358. package/runtime/keyed-crypto.d.ts.map +0 -1
  359. package/runtime/keyed-crypto.js +0 -192
  360. package/runtime/keyed-crypto.js.map +0 -1
  361. package/runtime/memory-sys-container.d.ts +0 -2
  362. package/runtime/memory-sys-container.d.ts.map +0 -1
  363. package/runtime/memory-sys-container.js +0 -2
  364. package/runtime/memory-sys-container.js.map +0 -1
  365. package/runtime/meta-key-hack.d.ts +0 -42
  366. package/runtime/meta-key-hack.d.ts.map +0 -1
  367. package/runtime/meta-key-hack.js +0 -201
  368. package/runtime/meta-key-hack.js.map +0 -1
  369. package/runtime/sts-service/index.d.ts +0 -40
  370. package/runtime/sts-service/index.d.ts.map +0 -1
  371. package/runtime/sts-service/index.js +0 -102
  372. package/runtime/sts-service/index.js.map +0 -1
  373. package/runtime/sys-container.d.ts +0 -2
  374. package/runtime/sys-container.d.ts.map +0 -1
  375. package/runtime/sys-container.js +0 -2
  376. package/runtime/sys-container.js.map +0 -1
  377. package/runtime/wait-pr-multiformats/block.d.ts +0 -47
  378. package/runtime/wait-pr-multiformats/block.d.ts.map +0 -1
  379. package/runtime/wait-pr-multiformats/block.js +0 -64
  380. package/runtime/wait-pr-multiformats/block.js.map +0 -1
  381. package/runtime/wait-pr-multiformats/codec-interface.d.ts +0 -29
  382. package/runtime/wait-pr-multiformats/codec-interface.d.ts.map +0 -1
  383. package/runtime/wait-pr-multiformats/codec-interface.js +0 -2
  384. package/runtime/wait-pr-multiformats/codec-interface.js.map +0 -1
  385. package/runtime/wait-pr-multiformats/index.d.ts +0 -3
  386. package/runtime/wait-pr-multiformats/index.d.ts.map +0 -1
  387. package/runtime/wait-pr-multiformats/index.js +0 -3
  388. package/runtime/wait-pr-multiformats/index.js.map +0 -1
  389. package/types.d.ts +0 -427
  390. package/types.d.ts.map +0 -1
  391. package/types.js +0 -54
  392. package/types.js.map +0 -1
  393. package/use-fireproof/index.d.ts +0 -3
  394. package/use-fireproof/index.d.ts.map +0 -1
  395. package/use-fireproof/index.js +0 -3
  396. package/use-fireproof/index.js.map +0 -1
  397. package/utils.d.ts +0 -36
  398. package/utils.d.ts.map +0 -1
  399. package/utils.js +0 -379
  400. package/utils.js.map +0 -1
  401. package/version.d.ts +0 -2
  402. package/version.d.ts.map +0 -1
  403. package/version.js +0 -4
  404. package/version.js.map +0 -1
  405. package/write-queue.d.ts +0 -9
  406. package/write-queue.d.ts.map +0 -1
  407. package/write-queue.js +0 -70
  408. package/write-queue.js.map +0 -1
@@ -1,153 +0,0 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
- };
6
- var _HttpConnection_instances, _HttpConnection_onMsg, _HttpConnection_poll;
7
- import { HttpHeader, Result, exception2Result } from "@adviser/cement";
8
- import { ensureLogger } from "../../utils.js";
9
- import { buildErrorMsg, MsgIsError } from "./msg-types.js";
10
- import { selectRandom, timeout, } from "./msger.js";
11
- import { MsgRawConnectionBase } from "./msg-raw-connection-base.js";
12
- function toHttpProtocol(uri) {
13
- const protocol = (uri.getParam("protocol") ?? uri.protocol).replace(/:$/, "");
14
- const toFix = uri.build();
15
- switch (protocol) {
16
- case "ws":
17
- case "http":
18
- toFix.protocol("http");
19
- break;
20
- case "https":
21
- case "wss":
22
- default:
23
- toFix.protocol("https");
24
- break;
25
- }
26
- return toFix.URI();
27
- }
28
- export function ensurePath(uri, fp) {
29
- const path = uri.pathname.replace(/\/$/, "").replace(/^\//, "");
30
- const buri = uri.build();
31
- if (path === "") {
32
- buri.appendRelative(fp);
33
- }
34
- return buri.toString();
35
- }
36
- export class HttpConnection extends MsgRawConnectionBase {
37
- constructor(sthis, uris, msgP, exGestalt) {
38
- super(sthis, exGestalt);
39
- _HttpConnection_instances.add(this);
40
- _HttpConnection_onMsg.set(this, new Map());
41
- this.activeBinds = new Map();
42
- this.logger = ensureLogger(sthis, "HttpConnection");
43
- this.baseURIs = uris.map((uri) => ({
44
- in: uri,
45
- cleaned: toHttpProtocol(uri),
46
- }));
47
- this.msgP = msgP;
48
- }
49
- send(_msg) {
50
- throw new Error("Method not implemented.");
51
- }
52
- async start() {
53
- return Result.Ok(undefined);
54
- }
55
- async close() {
56
- await Promise.all(Array.from(this.activeBinds.values()).map((state) => state.controller?.close()));
57
- __classPrivateFieldGet(this, _HttpConnection_onMsg, "f").clear();
58
- return Result.Ok(undefined);
59
- }
60
- toMsg(msg) {
61
- __classPrivateFieldGet(this, _HttpConnection_onMsg, "f").forEach((fn) => fn(msg));
62
- return msg;
63
- }
64
- onMsg(fn) {
65
- const key = this.sthis.nextId().str;
66
- __classPrivateFieldGet(this, _HttpConnection_onMsg, "f").set(key, fn);
67
- return () => __classPrivateFieldGet(this, _HttpConnection_onMsg, "f").delete(key);
68
- }
69
- bind(req, opts) {
70
- const state = {
71
- id: this.sthis.nextId().str,
72
- bind: {
73
- msg: req,
74
- opts,
75
- },
76
- };
77
- this.activeBinds.set(state.id, state);
78
- return new ReadableStream({
79
- cancel: () => {
80
- clearTimeout(state.timeout);
81
- this.activeBinds.delete(state.id);
82
- },
83
- start: (controller) => {
84
- state.controller = controller;
85
- __classPrivateFieldGet(this, _HttpConnection_instances, "m", _HttpConnection_poll).call(this, state);
86
- },
87
- });
88
- }
89
- async request(req, _opts) {
90
- const headers = HttpHeader.from();
91
- headers.Set("Content-Type", this.msgP.mime);
92
- headers.Set("Accept", this.msgP.mime);
93
- const rReqBody = exception2Result(() => this.msgP.ende.encode(req));
94
- if (rReqBody.isErr()) {
95
- return this.toMsg(buildErrorMsg(this, req, this.logger.Error().Err(rReqBody.Err()).Any("req", req).Msg("encode error").AsError()));
96
- }
97
- headers.Set("Content-Length", rReqBody.Ok().byteLength.toString());
98
- const url = selectRandom(this.baseURIs);
99
- this.logger.Debug().Any(url).Any("body", req).Msg("request");
100
- const rRes = await exception2Result(() => timeout(this.msgP.timeout, fetch(ensurePath(url.cleaned, "fp"), {
101
- method: "PUT",
102
- headers: headers.AsHeaderInit(),
103
- body: rReqBody.Ok(),
104
- })));
105
- this.logger.Debug().Any(url).Any("body", rRes).Msg("response");
106
- if (rRes.isErr()) {
107
- return this.toMsg(buildErrorMsg(this, req, this.logger.Error().Err(rRes).Any(url).Msg("fetch error").AsError()));
108
- }
109
- const res = rRes.Ok();
110
- if (!res.ok) {
111
- const data = new Uint8Array(await res.arrayBuffer());
112
- const ret = await exception2Result(async () => this.msgP.ende.decode(data));
113
- if (ret.isErr() || !MsgIsError(ret.Ok())) {
114
- return this.toMsg(buildErrorMsg(this, req, this.logger
115
- .Error()
116
- .Any(url)
117
- .Str("status", res.status.toString())
118
- .Str("statusText", res.statusText)
119
- .Msg("HTTP Error")
120
- .AsError(), await res.text().catch(() => "no body")));
121
- }
122
- return this.toMsg(ret.Ok());
123
- }
124
- const data = new Uint8Array(await res.arrayBuffer());
125
- const ret = await exception2Result(async () => this.msgP.ende.decode(data));
126
- if (ret.isErr()) {
127
- return this.toMsg(buildErrorMsg(this, req, this.logger.Error().Err(ret.Err()).Msg("decode error").AsError(), this.sthis.txt.decode(data)));
128
- }
129
- return this.toMsg(ret.Ok());
130
- }
131
- }
132
- _HttpConnection_onMsg = new WeakMap(), _HttpConnection_instances = new WeakSet(), _HttpConnection_poll = function _HttpConnection_poll(state) {
133
- this.request(state.bind.msg, state.bind.opts)
134
- .then((msg) => {
135
- try {
136
- state.controller?.enqueue(msg);
137
- if (MsgIsError(msg)) {
138
- state.controller?.close();
139
- }
140
- else {
141
- state.timeout = setTimeout(() => __classPrivateFieldGet(this, _HttpConnection_instances, "m", _HttpConnection_poll).call(this, state), state.bind.opts.pollInterval ?? 1000);
142
- }
143
- }
144
- catch (err) {
145
- state.controller?.error(err);
146
- state.controller?.close();
147
- }
148
- })
149
- .catch((err) => {
150
- state.controller?.error(err);
151
- });
152
- };
153
- //# sourceMappingURL=http-connection.js.map
@@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AAA,IAAI,uDAAM,MAAV,IAAI,EAAO,KAAK,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC;YAC5F,CAAC;QACH,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;YAC7B,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC,CAAC;SACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAE/B,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1,10 +0,0 @@
1
- export * from "./http-connection.js";
2
- export * from "./msg-raw-connection-base.js";
3
- export * from "./msg-types-data.js";
4
- export * from "./msg-types-meta.js";
5
- export * from "./msg-types-meta.js";
6
- export * from "./msg-types-wal.js";
7
- export * from "./msg-types.js";
8
- export * from "./msger.js";
9
- export * from "./ws-connection.js";
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/protocols/cloud/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
@@ -1,10 +0,0 @@
1
- export * from "./http-connection.js";
2
- export * from "./msg-raw-connection-base.js";
3
- export * from "./msg-types-data.js";
4
- export * from "./msg-types-meta.js";
5
- export * from "./msg-types-meta.js";
6
- export * from "./msg-types-wal.js";
7
- export * from "./msg-types.js";
8
- export * from "./msger.js";
9
- export * from "./ws-connection.js";
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/protocols/cloud/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
@@ -1,16 +0,0 @@
1
- import { SuperThis } from "../../types.js";
2
- import { MsgBase, ErrorMsg } from "./msg-types.js";
3
- import { ExchangedGestalt, OnErrorFn, UnReg } from "./msger.js";
4
- import { Logger } from "@adviser/cement";
5
- export declare class MsgRawConnectionBase {
6
- readonly sthis: SuperThis;
7
- readonly exchangedGestalt: ExchangedGestalt;
8
- constructor(sthis: SuperThis, exGestalt: ExchangedGestalt);
9
- readonly onErrorFns: Map<string, OnErrorFn>;
10
- onError(fn: OnErrorFn): UnReg;
11
- buildErrorMsg(msgCtx: {
12
- readonly logger: Logger;
13
- readonly sthis: SuperThis;
14
- }, msg: Partial<MsgBase>, err: Error): ErrorMsg;
15
- }
16
- //# sourceMappingURL=msg-raw-connection-base.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-raw-connection-base.d.ts","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-raw-connection-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAiB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,qBAAa,oBAAoB;IAC/B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;gBAEhC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB;IAKzD,QAAQ,CAAC,UAAU,yBAAgC;IACnD,OAAO,CAAC,EAAE,EAAE,SAAS,GAAG,KAAK;IAM7B,aAAa,CACX,MAAM,EAAE;QACN,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;KAC3B,EACD,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,EACrB,GAAG,EAAE,KAAK,GACT,QAAQ;CASZ"}
@@ -1,22 +0,0 @@
1
- import { buildErrorMsg } from "./msg-types.js";
2
- export class MsgRawConnectionBase {
3
- constructor(sthis, exGestalt) {
4
- this.onErrorFns = new Map();
5
- this.sthis = sthis;
6
- this.exchangedGestalt = exGestalt;
7
- }
8
- onError(fn) {
9
- const key = this.sthis.nextId().str;
10
- this.onErrorFns.set(key, fn);
11
- return () => this.onErrorFns.delete(key);
12
- }
13
- buildErrorMsg(msgCtx, msg, err) {
14
- const rmsg = Array.from(this.onErrorFns.values()).reduce((msg, fn) => {
15
- return fn(msg, err);
16
- }, msg);
17
- const emsg = buildErrorMsg(msgCtx, rmsg, err);
18
- msgCtx.logger.Error().Err(err).Any("msg", rmsg).Msg("connection error");
19
- return emsg;
20
- }
21
- }
22
- //# sourceMappingURL=msg-raw-connection-base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-raw-connection-base.js","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-raw-connection-base.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIlE,MAAM,OAAO,oBAAoB;IAI/B,YAAY,KAAgB,EAAE,SAA2B;QAKhD,eAAU,GAAG,IAAI,GAAG,EAAqB,CAAC;QAJjD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;IACpC,CAAC;IAGD,OAAO,CAAC,EAAa;QACnB,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC;QACpC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAC7B,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3C,CAAC;IAED,aAAa,CACX,MAGC,EACD,GAAqB,EACrB,GAAU;QAGV,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE;YACnE,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACtB,CAAC,EAAE,GAAG,CAAC,CAAC;QACR,MAAM,IAAI,GAAG,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;QAC9C,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QACxE,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1,36 +0,0 @@
1
- import { Result, URI } from "@adviser/cement";
2
- import { ReqSignedUrl, NextId, MsgBase, ResSignedUrl, MsgWithError, ReqSignedUrlParam, GwCtx, MsgTypesCtx, MsgWithConnAuth, PreSignedMsg } from "./msg-types.js";
3
- export interface ReqGetData extends ReqSignedUrl {
4
- readonly type: "reqGetData";
5
- }
6
- export declare function buildReqGetData(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqGetData;
7
- export declare function MsgIsReqGetData(msg: MsgBase): msg is ReqGetData;
8
- export interface ResGetData extends ResSignedUrl {
9
- readonly type: "resGetData";
10
- }
11
- export declare function MsgIsResGetData(msg: MsgBase): msg is ResGetData;
12
- export interface CalculatePreSignedUrl {
13
- calculatePreSignedUrl(ctx: MsgTypesCtx, p: PreSignedMsg): Promise<Result<URI>>;
14
- }
15
- export declare function buildResGetData(msgCtx: MsgTypesCtx, req: MsgWithConnAuth<ReqGetData>, ctx: CalculatePreSignedUrl): Promise<MsgWithError<ResGetData>>;
16
- export interface ReqPutData extends ReqSignedUrl {
17
- readonly type: "reqPutData";
18
- }
19
- export declare function MsgIsReqPutData(msg: MsgBase): msg is ReqPutData;
20
- export declare function buildReqPutData(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqPutData;
21
- export interface ResPutData extends ResSignedUrl {
22
- readonly type: "resPutData";
23
- }
24
- export declare function MsgIsResPutData(msg: MsgBase): msg is ResPutData;
25
- export declare function buildResPutData(msgCtx: MsgTypesCtx, req: MsgWithConnAuth<ReqPutData>, ctx: CalculatePreSignedUrl): Promise<MsgWithError<ResPutData>>;
26
- export interface ReqDelData extends ReqSignedUrl {
27
- readonly type: "reqDelData";
28
- }
29
- export declare function MsgIsReqDelData(msg: MsgBase): msg is ReqDelData;
30
- export declare function buildReqDelData(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqDelData;
31
- export interface ResDelData extends ResSignedUrl {
32
- readonly type: "resDelData";
33
- }
34
- export declare function MsgIsResDelData(msg: MsgBase): msg is ResDelData;
35
- export declare function buildResDelData(msgCtx: MsgTypesCtx, req: MsgWithConnAuth<ReqDelData>, ctx: CalculatePreSignedUrl): Promise<MsgWithError<ResDelData>>;
36
- //# sourceMappingURL=msg-types-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types-data.d.ts","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAC9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,CAAC,IAAI,EAAE,YAAY,CAAC;CAC7B;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,CAE/D;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,WAAW,EACnB,GAAG,EAAE,eAAe,CAAC,UAAU,CAAC,EAChC,GAAG,EAAE,qBAAqB,GACzB,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAQnC;AAED,MAAM,WAAW,UAAW,SAAQ,YAAY;IAC9C,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;CAC7B;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,CAE/D;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,EAAE,GAAG,EAAE,KAAK,GAAG,UAAU,CAE7F;AAED,MAAM,WAAW,UAAW,SAAQ,YAAY;IAC9C,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;CAC7B;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,CAE/D;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,WAAW,EACnB,GAAG,EAAE,eAAe,CAAC,UAAU,CAAC,EAChC,GAAG,EAAE,qBAAqB,GACzB,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAQnC"}
@@ -1,38 +0,0 @@
1
- import { buildRes, buildReqSignedUrl, MsgIsTenantLedger, } from "./msg-types.js";
2
- export function buildReqGetData(sthis, sup, ctx) {
3
- return buildReqSignedUrl(sthis, "reqGetData", sup, ctx);
4
- }
5
- export function MsgIsReqGetData(msg) {
6
- return msg.type === "reqGetData";
7
- }
8
- export function MsgIsResGetData(msg) {
9
- return msg.type === "resGetData" && MsgIsTenantLedger(msg);
10
- }
11
- export function buildResGetData(msgCtx, req, ctx) {
12
- return buildRes({ method: "GET", store: req.methodParams.store }, "resGetData", msgCtx, req, ctx);
13
- }
14
- export function MsgIsReqPutData(msg) {
15
- return msg.type === "reqPutData";
16
- }
17
- export function buildReqPutData(sthis, sup, ctx) {
18
- return buildReqSignedUrl(sthis, "reqPutData", sup, ctx);
19
- }
20
- export function MsgIsResPutData(msg) {
21
- return msg.type === "resPutData";
22
- }
23
- export function buildResPutData(msgCtx, req, ctx) {
24
- return buildRes({ method: "PUT", store: req.methodParams.store }, "resPutData", msgCtx, req, ctx);
25
- }
26
- export function MsgIsReqDelData(msg) {
27
- return msg.type === "reqDelData";
28
- }
29
- export function buildReqDelData(sthis, sup, ctx) {
30
- return buildReqSignedUrl(sthis, "reqDelData", sup, ctx);
31
- }
32
- export function MsgIsResDelData(msg) {
33
- return msg.type === "resDelData";
34
- }
35
- export function buildResDelData(msgCtx, req, ctx) {
36
- return buildRes({ method: "DELETE", store: req.methodParams.store }, "resDelData", msgCtx, req, ctx);
37
- }
38
- //# sourceMappingURL=msg-types-data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types-data.js","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types-data.ts"],"names":[],"mappings":"AACA,OAAO,EAML,QAAQ,EAER,iBAAiB,EAEjB,iBAAiB,GAIlB,MAAM,gBAAgB,CAAC;AAMxB,MAAM,UAAU,eAAe,CAAC,KAAa,EAAE,GAAsB,EAAE,GAAU;IAC/E,OAAO,iBAAiB,CAAa,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAY;IAC1C,OAAO,GAAG,CAAC,IAAI,KAAK,YAAY,CAAC;AACnC,CAAC;AAOD,MAAM,UAAU,eAAe,CAAC,GAAY;IAC1C,OAAO,GAAG,CAAC,IAAI,KAAK,YAAY,IAAI,iBAAiB,CAAC,GAAG,CAAC,CAAC;AAC7D,CAAC;AAMD,MAAM,UAAU,eAAe,CAC7B,MAAmB,EACnB,GAAgC,EAChC,GA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,KAAK,EAAE,GAAG,CAAC,YAAY,CAAC,KAAK,EAAE,EACnD,YAAY,EACZ,MAAM,EACN,GAAG,EACH,GAAG,CACJ,CAAC;AACJ,CAAC"}
@@ -1,41 +0,0 @@
1
- import { AuthType, GwCtx, MsgBase, MsgWithTenantLedger, NextId, ResOptionalSignedUrl, MsgTypesCtx, MsgWithConnAuth, SignedUrlParam, MethodSignedUrlParam, ResSignedUrl } from "./msg-types.js";
2
- import { V2SerializedMetaKey } from "../../runtime/meta-key-hack.js";
3
- export interface ReqPutMeta extends MsgWithTenantLedger<MsgWithConnAuth> {
4
- readonly type: "reqPutMeta";
5
- readonly methodParams: MethodSignedUrlParam;
6
- readonly params: SignedUrlParam;
7
- readonly meta: V2SerializedMetaKey;
8
- }
9
- export interface ResPutMeta extends MsgWithTenantLedger<MsgWithConnAuth>, ResSignedUrl {
10
- readonly type: "resPutMeta";
11
- readonly meta: V2SerializedMetaKey;
12
- }
13
- export declare function buildReqPutMeta(sthis: NextId, auth: AuthType, signedUrlParams: SignedUrlParam, meta: V2SerializedMetaKey, gwCtx: GwCtx): ReqPutMeta;
14
- export declare function MsgIsReqPutMeta(msg: MsgBase): msg is ReqPutMeta;
15
- export declare function buildResPutMeta(_msgCtx: MsgTypesCtx, req: MsgWithTenantLedger<MsgWithConnAuth<ReqPutMeta>>, meta: V2SerializedMetaKey, signedUrl: string): ResPutMeta;
16
- export declare function MsgIsResPutMeta(qs: MsgBase): qs is ResPutMeta;
17
- export interface BindGetMeta extends MsgWithTenantLedger<MsgWithConnAuth> {
18
- readonly type: "bindGetMeta";
19
- readonly params: SignedUrlParam;
20
- }
21
- export declare function MsgIsBindGetMeta(msg: MsgBase): msg is BindGetMeta;
22
- export interface EventGetMeta extends MsgWithTenantLedger<MsgWithConnAuth>, ResSignedUrl {
23
- readonly type: "eventGetMeta";
24
- readonly meta: V2SerializedMetaKey;
25
- }
26
- export declare function buildBindGetMeta(sthis: NextId, auth: AuthType, params: SignedUrlParam, gwCtx: GwCtx): BindGetMeta;
27
- export declare function buildEventGetMeta(_msgCtx: MsgTypesCtx, req: MsgWithTenantLedger<MsgWithConnAuth<BindGetMeta>>, meta: V2SerializedMetaKey, gwCtx: GwCtx, signedUrl: string): EventGetMeta;
28
- export declare function MsgIsEventGetMeta(qs: MsgBase): qs is EventGetMeta;
29
- export interface ReqDelMeta extends MsgWithTenantLedger<MsgWithConnAuth> {
30
- readonly type: "reqDelMeta";
31
- readonly params: SignedUrlParam;
32
- readonly meta?: V2SerializedMetaKey;
33
- }
34
- export declare function buildReqDelMeta(sthis: NextId, auth: AuthType, params: SignedUrlParam, gwCtx: GwCtx, meta?: V2SerializedMetaKey): ReqDelMeta;
35
- export declare function MsgIsReqDelMeta(msg: MsgBase): msg is ReqDelMeta;
36
- export interface ResDelMeta extends MsgWithTenantLedger<MsgWithConnAuth>, ResOptionalSignedUrl {
37
- readonly type: "resDelMeta";
38
- }
39
- export declare function buildResDelMeta(req: MsgWithTenantLedger<MsgWithConnAuth<ReqDelMeta>>, params: SignedUrlParam, signedUrl?: string): ResDelMeta;
40
- export declare function MsgIsResDelMeta(qs: MsgBase): qs is ResDelMeta;
41
- //# sourceMappingURL=msg-types-meta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types-meta.d.ts","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types-meta.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,EACL,OAAO,EACP,mBAAmB,EACnB,MAAM,EACN,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,YAAY,EAEb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,MAAM,WAAW,UAAW,SAAQ,mBAAmB,CAAC,eAAe,CAAC;IACtE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,oBAAoB,CAAC;IA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,
5
- tid: sthis.nextId().str,
6
- type: "reqPutMeta",
7
- ...gwCtx,
8
- version: VERSION,
9
- methodParams: {
10
- method: "PUT",
11
- store: "meta",
12
- },
13
- params: signedUrlParams,
14
- meta,
15
- };
16
- }
17
- export function MsgIsReqPutMeta(msg) {
18
- return msg.type === "reqPutMeta";
19
- }
20
- export function buildResPutMeta(_msgCtx, req, meta, signedUrl) {
21
- return {
22
- meta,
23
- tid: req.tid,
24
- conn: req.conn,
25
- auth: req.auth,
26
- methodParams: req.methodParams,
27
- params: req.params,
28
- tenant: req.tenant,
29
- type: "resPutMeta",
30
- signedUrl,
31
- version: VERSION,
32
- };
33
- }
34
- export function MsgIsResPutMeta(qs) {
35
- return qs.type === "resPutMeta";
36
- }
37
- export function MsgIsBindGetMeta(msg) {
38
- return msg.type === "bindGetMeta";
39
- }
40
- export function buildBindGetMeta(sthis, auth, params, gwCtx) {
41
- return {
42
- auth,
43
- tid: sthis.nextId().str,
44
- ...gwCtx,
45
- type: "bindGetMeta",
46
- version: VERSION,
47
- params,
48
- };
49
- }
50
- export function buildEventGetMeta(_msgCtx, req, meta, gwCtx, signedUrl) {
51
- return {
52
- conn: gwCtx.conn,
53
- tenant: req.tenant,
54
- auth: req.auth,
55
- tid: req.tid,
56
- meta,
57
- signedUrl,
58
- type: "eventGetMeta",
59
- params: req.params,
60
- methodParams: { method: "GET", store: "meta" },
61
- version: VERSION,
62
- };
63
- }
64
- export function MsgIsEventGetMeta(qs) {
65
- return qs.type === "eventGetMeta";
66
- }
67
- export function buildReqDelMeta(sthis, auth, params, gwCtx, meta) {
68
- return {
69
- auth,
70
- tid: sthis.nextId().str,
71
- tenant: gwCtx.tenant,
72
- conn: gwCtx.conn,
73
- params,
74
- meta,
75
- type: "reqDelMeta",
76
- version: VERSION,
77
- };
78
- }
79
- export function MsgIsReqDelMeta(msg) {
80
- return msg.type === "reqDelMeta";
81
- }
82
- export function buildResDelMeta(req, params, signedUrl) {
83
- return {
84
- auth: req.auth,
85
- methodParams: { method: "DELETE", store: "meta" },
86
- params,
87
- signedUrl,
88
- tid: req.tid,
89
- conn: req.conn,
90
- tenant: req.tenant,
91
- type: "resDelMeta",
92
- version: VERSION,
93
- };
94
- }
95
- export function MsgIsResDelMeta(qs) {
96
- return qs.type === "resDelMeta";
97
- }
98
- //# sourceMappingURL=msg-types-meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types-meta.js","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types-meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAYL,OAAO,GACR,MAAM,gBAAgB,CAAC;AAiBxB,MAAM,UAAU,eAAe,CAC7B,KAAa,EACb,IAAc,EACd,eAA+B,EAC/B,IAAyB,EACzB,KAAY;IAEZ,OAAO;QACL,IAAI;QACJ,GAAG,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG;QACvB,IAAI,EAAE,YAAY;QAClB,GAAG,KAAK;QACR,OAAO,EAAE,OAAO;QAChB,YAAY,EAAE;YACZ,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,MAAM;SACd;QACD,MAAM,EAAE,eAAe;QACvB,IAAI;KACL,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAY;IAC1C,OAAO,GAAG,CAAC,IAAI,KAAK,YAAY,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,eAAe,CAC7B,OAAoB,EACpB,GAAqD,EACrD,IAAyB,EACzB,SAAiB;IAEjB,OAAO;QACL,IAAI;QACJ,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,YAAY,EAAE,GAAG,CAAC,YAAY;QAC9B,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,IAAI,EAAE,YAAY;QAClB,SAAS;QACT,OAAO,EAAE,OAAO;KACjB,CAAC;AACJ,CAAC;AAED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B,MAAM;QACN,IAAI;QACJ,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,OAAO;KAEjB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAY;IAC1C,OAAO,GAAG,CAAC,IAAI,KAAK,YAAY,CAAC;AACnC,CAAC;AAMD,MAAM,UAAU,eAAe,CAE7B,GAAqD,EACrD,MAAsB,EACtB,SAAkB;IAElB,OAAO;QACL,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,YAAY,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE;QACjD,MAAM;QACN,SAAS;QACT,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,IAAI,EAAE,YAAY;QAElB,OAAO,EAAE,OAAO;KACjB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,EAAW;IACzC,OAAO,EAAE,CAAC,IAAI,KAAK,YAAY,CAAC;AAClC,CAAC"}
@@ -1,33 +0,0 @@
1
- import { MsgBase, MsgWithError, NextId, ReqSignedUrl, ResSignedUrl, ReqSignedUrlParam, GwCtx, MsgWithTenantLedger, MsgTypesCtx, MsgWithConnAuth } from "./msg-types.js";
2
- import { CalculatePreSignedUrl } from "./msg-types-data.js";
3
- export interface ReqGetWAL extends ReqSignedUrl {
4
- readonly type: "reqGetWAL";
5
- }
6
- export declare function MsgIsReqGetWAL(msg: MsgBase): msg is ReqGetWAL;
7
- export declare function buildReqGetWAL(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqGetWAL;
8
- export interface ResGetWAL extends ResSignedUrl {
9
- readonly type: "resGetWAL";
10
- }
11
- export declare function MsgIsResGetWAL(msg: MsgBase): msg is ResGetWAL;
12
- export declare function buildResGetWAL(msgCtx: MsgTypesCtx, req: MsgWithTenantLedger<MsgWithConnAuth<ReqGetWAL>>, ctx: CalculatePreSignedUrl): Promise<MsgWithError<ResGetWAL>>;
13
- export interface ReqPutWAL extends Omit<ReqSignedUrl, "type"> {
14
- readonly type: "reqPutWAL";
15
- }
16
- export declare function MsgIsReqPutWAL(msg: MsgBase): msg is ReqPutWAL;
17
- export declare function buildReqPutWAL(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqPutWAL;
18
- export interface ResPutWAL extends Omit<ResSignedUrl, "type"> {
19
- readonly type: "resPutWAL";
20
- }
21
- export declare function MsgIsResPutWAL(msg: MsgBase): msg is ResPutWAL;
22
- export declare function buildResPutWAL(msgCtx: MsgTypesCtx, req: MsgWithTenantLedger<MsgWithConnAuth<ReqPutWAL>>, ctx: CalculatePreSignedUrl): Promise<MsgWithError<ResPutWAL>>;
23
- export interface ReqDelWAL extends Omit<ReqSignedUrl, "type"> {
24
- readonly type: "reqDelWAL";
25
- }
26
- export declare function MsgIsReqDelWAL(msg: MsgBase): msg is ReqDelWAL;
27
- export declare function buildReqDelWAL(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqDelWAL;
28
- export interface ResDelWAL extends Omit<ResSignedUrl, "type"> {
29
- readonly type: "resDelWAL";
30
- }
31
- export declare function MsgIsResDelWAL(msg: MsgBase): msg is ResDelWAL;
32
- export declare function buildResDelWAL(msgCtx: MsgTypesCtx, req: MsgWithTenantLedger<MsgWithConnAuth<ReqDelWAL>>, ctx: CalculatePreSignedUrl): Promise<MsgWithError<ResDelWAL>>;
33
- //# sourceMappingURL=msg-types-wal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types-wal.d.ts","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types-wal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,YAAY,EAEZ,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,iBAAiB,EAEjB,KAAK,EAEL,mBAAmB,EACnB,WAAW,EACX,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EA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AmB,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,EACpD,GAAG,EAAE,qBAAqB,GACzB,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAQlC;AAED,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC;IAC3D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;CAC5B;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,SAAS,CAE7D;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,EAAE,GAAG,EAAE,KAAK,GAAG,SAAS,CAE3F;AAED,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC;IAC3D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;CAC5B;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,SAAS,CAE7D;AAED,wBAAgB,cAAc,CAC5B,MAAM,EAAE,WAAW,EACnB,GAAG,EAAE,mBAAmB,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,EACpD,GAAG,EAAE,qBAAqB,GACzB,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAQlC"}
@@ -1,38 +0,0 @@
1
- import { buildRes, buildReqSignedUrl, MsgIsTenantLedger, } from "./msg-types.js";
2
- export function MsgIsReqGetWAL(msg) {
3
- return msg.type === "reqGetWAL";
4
- }
5
- export function buildReqGetWAL(sthis, sup, ctx) {
6
- return buildReqSignedUrl(sthis, "reqGetWAL", sup, ctx);
7
- }
8
- export function MsgIsResGetWAL(msg) {
9
- return msg.type === "resGetWAL";
10
- }
11
- export function buildResGetWAL(msgCtx, req, ctx) {
12
- return buildRes({ method: "GET", store: "wal" }, "resGetWAL", msgCtx, req, ctx);
13
- }
14
- export function MsgIsReqPutWAL(msg) {
15
- return msg.type === "reqPutWAL";
16
- }
17
- export function buildReqPutWAL(sthis, sup, ctx) {
18
- return buildReqSignedUrl(sthis, "reqPutWAL", sup, ctx);
19
- }
20
- export function MsgIsResPutWAL(msg) {
21
- return msg.type === "resPutWAL";
22
- }
23
- export function buildResPutWAL(msgCtx, req, ctx) {
24
- return buildRes({ method: "PUT", store: "wal" }, "resPutWAL", msgCtx, req, ctx);
25
- }
26
- export function MsgIsReqDelWAL(msg) {
27
- return msg.type === "reqDelWAL";
28
- }
29
- export function buildReqDelWAL(sthis, sup, ctx) {
30
- return buildReqSignedUrl(sthis, "reqDelWAL", sup, ctx);
31
- }
32
- export function MsgIsResDelWAL(msg) {
33
- return msg.type === "resDelWAL" && MsgIsTenantLedger(msg);
34
- }
35
- export function buildResDelWAL(msgCtx, req, ctx) {
36
- return buildRes({ method: "DELETE", store: "wal" }, "resDelWAL", msgCtx, req, ctx);
37
- }
38
- //# sourceMappingURL=msg-types-wal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types-wal.js","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types-wal.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,EAKR,iBAAiB,EAEjB,iBAAiB,GAIlB,MAAM,gBAAgB,CAAC;AAOxB,MAAM,UAAU,cAAc,CAAC,GAAY;IACzC,OAAO,GAAG,CAAC,IAAI,KAAK,WAAW,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAa,EAAE,GAAsB,EAAE,GAAU;IAC9E,OAAO,iBAAiB,CAAY,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACpE,CAAC;AAOD,MAAM,UAAU,cAAc,CAAC,GAAY;IACzC,OAAO,GAAG,CAAC,IAAI,KAAK,WAAW,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,cAAc,CAC5B,MAAmB,EACnB,GAAoD,EACpD,GAA0B;IAE1B,OAAO,QAAQ,CACb,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,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