@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.
- package/index.d.ts +2 -16
- package/index.js +2 -15
- package/index.js.map +1 -1
- package/index.ts +2 -0
- package/package.json +12 -70
- package/tsconfig.json +18 -0
- package/README.md +0 -269
- package/apply-head-queue.d.ts +0 -18
- package/apply-head-queue.d.ts.map +0 -1
- package/apply-head-queue.js +0 -47
- package/apply-head-queue.js.map +0 -1
- package/blockstore/attachable-store.d.ts +0 -19
- package/blockstore/attachable-store.d.ts.map +0 -1
- package/blockstore/attachable-store.js +0 -316
- package/blockstore/attachable-store.js.map +0 -1
- package/blockstore/commit-queue.d.ts +0 -17
- package/blockstore/commit-queue.d.ts.map +0 -1
- package/blockstore/commit-queue.js +0 -60
- package/blockstore/commit-queue.js.map +0 -1
- package/blockstore/commitor.d.ts +0 -21
- package/blockstore/commitor.d.ts.map +0 -1
- package/blockstore/commitor.js +0 -95
- package/blockstore/commitor.js.map +0 -1
- package/blockstore/connect-raw.d.ts +0 -2
- package/blockstore/connect-raw.d.ts.map +0 -1
- package/blockstore/connect-raw.js +0 -2
- package/blockstore/connect-raw.js.map +0 -1
- package/blockstore/connection-base.d.ts +0 -2
- package/blockstore/connection-base.d.ts.map +0 -1
- package/blockstore/connection-base.js +0 -2
- package/blockstore/connection-base.js.map +0 -1
- package/blockstore/encrypt-helpers.d.ts +0 -2
- package/blockstore/encrypt-helpers.d.ts.map +0 -1
- package/blockstore/encrypt-helpers.js +0 -2
- package/blockstore/encrypt-helpers.js.map +0 -1
- package/blockstore/fp-envelope.d.ts +0 -32
- package/blockstore/fp-envelope.d.ts.map +0 -1
- package/blockstore/fp-envelope.js +0 -14
- package/blockstore/fp-envelope.js.map +0 -1
- package/blockstore/gateway.d.ts +0 -20
- package/blockstore/gateway.d.ts.map +0 -1
- package/blockstore/gateway.js +0 -2
- package/blockstore/gateway.js.map +0 -1
- package/blockstore/index.d.ts +0 -17
- package/blockstore/index.d.ts.map +0 -1
- package/blockstore/index.js +0 -17
- package/blockstore/index.js.map +0 -1
- package/blockstore/interceptor-gateway.d.ts +0 -29
- package/blockstore/interceptor-gateway.d.ts.map +0 -1
- package/blockstore/interceptor-gateway.js +0 -137
- package/blockstore/interceptor-gateway.js.map +0 -1
- package/blockstore/loader-helpers.d.ts +0 -10
- package/blockstore/loader-helpers.d.ts.map +0 -1
- package/blockstore/loader-helpers.js +0 -115
- package/blockstore/loader-helpers.js.map +0 -1
- package/blockstore/loader.d.ts +0 -62
- package/blockstore/loader.d.ts.map +0 -1
- package/blockstore/loader.js +0 -523
- package/blockstore/loader.js.map +0 -1
- package/blockstore/register-store-protocol.d.ts +0 -22
- package/blockstore/register-store-protocol.d.ts.map +0 -1
- package/blockstore/register-store-protocol.js +0 -125
- package/blockstore/register-store-protocol.js.map +0 -1
- package/blockstore/serde-gateway.d.ts +0 -78
- package/blockstore/serde-gateway.d.ts.map +0 -1
- package/blockstore/serde-gateway.js +0 -2
- package/blockstore/serde-gateway.js.map +0 -1
- package/blockstore/store-factory.d.ts +0 -11
- package/blockstore/store-factory.d.ts.map +0 -1
- package/blockstore/store-factory.js +0 -104
- package/blockstore/store-factory.js.map +0 -1
- package/blockstore/store-remote.d.ts +0 -2
- package/blockstore/store-remote.d.ts.map +0 -1
- package/blockstore/store-remote.js +0 -2
- package/blockstore/store-remote.js.map +0 -1
- package/blockstore/store.d.ts +0 -86
- package/blockstore/store.d.ts.map +0 -1
- package/blockstore/store.js +0 -437
- package/blockstore/store.js.map +0 -1
- package/blockstore/task-manager.d.ts +0 -19
- package/blockstore/task-manager.d.ts.map +0 -1
- package/blockstore/task-manager.js +0 -50
- package/blockstore/task-manager.js.map +0 -1
- package/blockstore/transaction.d.ts +0 -62
- package/blockstore/transaction.d.ts.map +0 -1
- package/blockstore/transaction.js +0 -256
- package/blockstore/transaction.js.map +0 -1
- package/blockstore/types.d.ts +0 -508
- package/blockstore/types.d.ts.map +0 -1
- package/blockstore/types.js +0 -83
- package/blockstore/types.js.map +0 -1
- package/blockstore/uri-interceptor.d.ts +0 -19
- package/blockstore/uri-interceptor.d.ts.map +0 -1
- package/blockstore/uri-interceptor.js +0 -61
- package/blockstore/uri-interceptor.js.map +0 -1
- package/bundle-not-impl.d.ts +0 -2
- package/bundle-not-impl.d.ts.map +0 -1
- package/bundle-not-impl.js +0 -4
- package/bundle-not-impl.js.map +0 -1
- package/cli/main.js +0 -26645
- package/crdt-clock.d.ts +0 -26
- package/crdt-clock.d.ts.map +0 -1
- package/crdt-clock.js +0 -133
- package/crdt-clock.js.map +0 -1
- package/crdt-helpers.d.ts +0 -19
- package/crdt-helpers.d.ts.map +0 -1
- package/crdt-helpers.js +0 -332
- package/crdt-helpers.js.map +0 -1
- package/crdt.d.ts +0 -41
- package/crdt.d.ts.map +0 -1
- package/crdt.js +0 -164
- package/crdt.js.map +0 -1
- package/database.d.ts +0 -33
- package/database.d.ts.map +0 -1
- package/database.js +0 -132
- package/database.js.map +0 -1
- package/deno.json +0 -20
- package/index.d.ts.map +0 -1
- package/indexer-helpers.d.ts +0 -68
- package/indexer-helpers.d.ts.map +0 -1
- package/indexer-helpers.js +0 -157
- package/indexer-helpers.js.map +0 -1
- package/indexer.d.ts +0 -24
- package/indexer.d.ts.map +0 -1
- package/indexer.js +0 -239
- package/indexer.js.map +0 -1
- package/ledger.d.ts +0 -56
- package/ledger.d.ts.map +0 -1
- package/ledger.js +0 -237
- package/ledger.js.map +0 -1
- package/protocols/cloud/http-connection.d.ts +0 -26
- package/protocols/cloud/http-connection.d.ts.map +0 -1
- package/protocols/cloud/http-connection.js +0 -154
- package/protocols/cloud/http-connection.js.map +0 -1
- package/protocols/cloud/index.d.ts +0 -10
- package/protocols/cloud/index.d.ts.map +0 -1
- package/protocols/cloud/index.js +0 -10
- package/protocols/cloud/index.js.map +0 -1
- package/protocols/cloud/msg-raw-connection-base.d.ts +0 -16
- package/protocols/cloud/msg-raw-connection-base.d.ts.map +0 -1
- package/protocols/cloud/msg-raw-connection-base.js +0 -22
- package/protocols/cloud/msg-raw-connection-base.js.map +0 -1
- package/protocols/cloud/msg-types-data.d.ts +0 -36
- package/protocols/cloud/msg-types-data.d.ts.map +0 -1
- package/protocols/cloud/msg-types-data.js +0 -38
- package/protocols/cloud/msg-types-data.js.map +0 -1
- package/protocols/cloud/msg-types-meta.d.ts +0 -41
- package/protocols/cloud/msg-types-meta.d.ts.map +0 -1
- package/protocols/cloud/msg-types-meta.js +0 -98
- package/protocols/cloud/msg-types-meta.js.map +0 -1
- package/protocols/cloud/msg-types-wal.d.ts +0 -33
- package/protocols/cloud/msg-types-wal.d.ts.map +0 -1
- package/protocols/cloud/msg-types-wal.js +0 -38
- package/protocols/cloud/msg-types-wal.js.map +0 -1
- package/protocols/cloud/msg-types.d.ts +0 -310
- package/protocols/cloud/msg-types.d.ts.map +0 -1
- package/protocols/cloud/msg-types.js +0 -299
- package/protocols/cloud/msg-types.js.map +0 -1
- package/protocols/cloud/msger.d.ts +0 -94
- package/protocols/cloud/msger.d.ts.map +0 -1
- package/protocols/cloud/msger.js +0 -319
- package/protocols/cloud/msger.js.map +0 -1
- package/protocols/cloud/ws-connection.d.ts +0 -40
- package/protocols/cloud/ws-connection.d.ts.map +0 -1
- package/protocols/cloud/ws-connection.js +0 -205
- package/protocols/cloud/ws-connection.js.map +0 -1
- package/protocols/dashboard/index.d.ts +0 -4
- package/protocols/dashboard/index.d.ts.map +0 -1
- package/protocols/dashboard/index.js +0 -4
- package/protocols/dashboard/index.js.map +0 -1
- package/protocols/dashboard/msg-api.d.ts +0 -11
- package/protocols/dashboard/msg-api.d.ts.map +0 -1
- package/protocols/dashboard/msg-api.js +0 -55
- package/protocols/dashboard/msg-api.js.map +0 -1
- package/protocols/dashboard/msg-is.d.ts +0 -45
- package/protocols/dashboard/msg-is.d.ts.map +0 -1
- package/protocols/dashboard/msg-is.js +0 -63
- package/protocols/dashboard/msg-is.js.map +0 -1
- package/protocols/dashboard/msg-types.d.ts +0 -397
- package/protocols/dashboard/msg-types.d.ts.map +0 -1
- package/protocols/dashboard/msg-types.js +0 -4
- package/protocols/dashboard/msg-types.js.map +0 -1
- package/protocols/index.d.ts +0 -3
- package/protocols/index.d.ts.map +0 -1
- package/protocols/index.js +0 -3
- package/protocols/index.js.map +0 -1
- package/react/img-file.d.ts +0 -303
- package/react/img-file.d.ts.map +0 -1
- package/react/img-file.js +0 -92
- package/react/img-file.js.map +0 -1
- package/react/index.d.ts +0 -5
- package/react/index.d.ts.map +0 -1
- package/react/index.js +0 -5
- package/react/index.js.map +0 -1
- package/react/types.d.ts +0 -91
- package/react/types.d.ts.map +0 -1
- package/react/types.js +0 -2
- package/react/types.js.map +0 -1
- package/react/use-all-docs.d.ts +0 -4
- package/react/use-all-docs.d.ts.map +0 -1
- package/react/use-all-docs.js +0 -25
- package/react/use-all-docs.js.map +0 -1
- package/react/use-attach.d.ts +0 -11
- package/react/use-attach.d.ts.map +0 -1
- package/react/use-attach.js +0 -169
- package/react/use-attach.js.map +0 -1
- package/react/use-changes.d.ts +0 -4
- package/react/use-changes.d.ts.map +0 -1
- package/react/use-changes.js +0 -19
- package/react/use-changes.js.map +0 -1
- package/react/use-document.d.ts +0 -4
- package/react/use-document.d.ts.map +0 -1
- package/react/use-document.js +0 -109
- package/react/use-document.js.map +0 -1
- package/react/use-fireproof.d.ts +0 -6
- package/react/use-fireproof.d.ts.map +0 -1
- package/react/use-fireproof.js +0 -20
- package/react/use-fireproof.js.map +0 -1
- package/react/use-live-query.d.ts +0 -4
- package/react/use-live-query.d.ts.map +0 -1
- package/react/use-live-query.js +0 -24
- package/react/use-live-query.js.map +0 -1
- package/runtime/files.d.ts +0 -12
- package/runtime/files.d.ts.map +0 -1
- package/runtime/files.js +0 -29
- package/runtime/files.js.map +0 -1
- package/runtime/gateways/cloud/gateway.d.ts +0 -41
- package/runtime/gateways/cloud/gateway.d.ts.map +0 -1
- package/runtime/gateways/cloud/gateway.js +0 -514
- package/runtime/gateways/cloud/gateway.js.map +0 -1
- package/runtime/gateways/cloud/index.d.ts +0 -3
- package/runtime/gateways/cloud/index.d.ts.map +0 -1
- package/runtime/gateways/cloud/index.js +0 -3
- package/runtime/gateways/cloud/index.js.map +0 -1
- package/runtime/gateways/cloud/to-cloud.d.ts +0 -59
- package/runtime/gateways/cloud/to-cloud.d.ts.map +0 -1
- package/runtime/gateways/cloud/to-cloud.js +0 -175
- package/runtime/gateways/cloud/to-cloud.js.map +0 -1
- package/runtime/gateways/def-serde-gateway.d.ts +0 -18
- package/runtime/gateways/def-serde-gateway.d.ts.map +0 -1
- package/runtime/gateways/def-serde-gateway.js +0 -92
- package/runtime/gateways/def-serde-gateway.js.map +0 -1
- package/runtime/gateways/file/deno/deno-filesystem.d.ts +0 -27
- package/runtime/gateways/file/deno/deno-filesystem.d.ts.map +0 -1
- package/runtime/gateways/file/deno/deno-filesystem.js +0 -52
- package/runtime/gateways/file/deno/deno-filesystem.js.map +0 -1
- package/runtime/gateways/file/deno/get-sys-file-system.d.ts +0 -4
- package/runtime/gateways/file/deno/get-sys-file-system.d.ts.map +0 -1
- package/runtime/gateways/file/deno/get-sys-file-system.js +0 -11
- package/runtime/gateways/file/deno/get-sys-file-system.js.map +0 -1
- package/runtime/gateways/file/deno/index.d.ts +0 -2
- package/runtime/gateways/file/deno/index.d.ts.map +0 -1
- package/runtime/gateways/file/deno/index.js +0 -2
- package/runtime/gateways/file/deno/index.js.map +0 -1
- package/runtime/gateways/file/gateway-impl.d.ts +0 -18
- package/runtime/gateways/file/gateway-impl.d.ts.map +0 -1
- package/runtime/gateways/file/gateway-impl.js +0 -121
- package/runtime/gateways/file/gateway-impl.js.map +0 -1
- package/runtime/gateways/file/index.d.ts +0 -3
- package/runtime/gateways/file/index.d.ts.map +0 -1
- package/runtime/gateways/file/index.js +0 -3
- package/runtime/gateways/file/index.js.map +0 -1
- package/runtime/gateways/file/key-bag-file.d.ts +0 -20
- package/runtime/gateways/file/key-bag-file.d.ts.map +0 -1
- package/runtime/gateways/file/key-bag-file.js +0 -52
- package/runtime/gateways/file/key-bag-file.js.map +0 -1
- package/runtime/gateways/file/node/get-sys-file-system.d.ts +0 -4
- package/runtime/gateways/file/node/get-sys-file-system.d.ts.map +0 -1
- package/runtime/gateways/file/node/get-sys-file-system.js +0 -11
- package/runtime/gateways/file/node/get-sys-file-system.js.map +0 -1
- package/runtime/gateways/file/node/index.d.ts +0 -2
- package/runtime/gateways/file/node/index.d.ts.map +0 -1
- package/runtime/gateways/file/node/index.js +0 -2
- package/runtime/gateways/file/node/index.js.map +0 -1
- package/runtime/gateways/file/node/node-filesystem.d.ts +0 -32
- package/runtime/gateways/file/node/node-filesystem.d.ts.map +0 -1
- package/runtime/gateways/file/node/node-filesystem.js +0 -33
- package/runtime/gateways/file/node/node-filesystem.js.map +0 -1
- package/runtime/gateways/file/node/to-array-buffer.d.ts +0 -2
- package/runtime/gateways/file/node/to-array-buffer.d.ts.map +0 -1
- package/runtime/gateways/file/node/to-array-buffer.js +0 -12
- package/runtime/gateways/file/node/to-array-buffer.js.map +0 -1
- package/runtime/gateways/file/sys-file-system-factory.d.ts +0 -4
- package/runtime/gateways/file/sys-file-system-factory.d.ts.map +0 -1
- package/runtime/gateways/file/sys-file-system-factory.js +0 -13
- package/runtime/gateways/file/sys-file-system-factory.js.map +0 -1
- package/runtime/gateways/file/utils.d.ts +0 -5
- package/runtime/gateways/file/utils.d.ts.map +0 -1
- package/runtime/gateways/file/utils.js +0 -27
- package/runtime/gateways/file/utils.js.map +0 -1
- package/runtime/gateways/file/version.d.ts +0 -2
- package/runtime/gateways/file/version.d.ts.map +0 -1
- package/runtime/gateways/file/version.js +0 -2
- package/runtime/gateways/file/version.js.map +0 -1
- package/runtime/gateways/fp-envelope-serialize.d.ts +0 -50
- package/runtime/gateways/fp-envelope-serialize.d.ts.map +0 -1
- package/runtime/gateways/fp-envelope-serialize.js +0 -141
- package/runtime/gateways/fp-envelope-serialize.js.map +0 -1
- package/runtime/gateways/index.d.ts +0 -6
- package/runtime/gateways/index.d.ts.map +0 -1
- package/runtime/gateways/index.js +0 -6
- package/runtime/gateways/index.js.map +0 -1
- package/runtime/gateways/indexeddb/gateway-impl.d.ts +0 -22
- package/runtime/gateways/indexeddb/gateway-impl.d.ts.map +0 -1
- package/runtime/gateways/indexeddb/gateway-impl.js +0 -147
- package/runtime/gateways/indexeddb/gateway-impl.js.map +0 -1
- package/runtime/gateways/indexeddb/index.d.ts +0 -6
- package/runtime/gateways/indexeddb/index.d.ts.map +0 -1
- package/runtime/gateways/indexeddb/index.js +0 -6
- package/runtime/gateways/indexeddb/index.js.map +0 -1
- package/runtime/gateways/indexeddb/key-bag-indexeddb.d.ts +0 -16
- package/runtime/gateways/indexeddb/key-bag-indexeddb.d.ts.map +0 -1
- package/runtime/gateways/indexeddb/key-bag-indexeddb.js +0 -48
- package/runtime/gateways/indexeddb/key-bag-indexeddb.js.map +0 -1
- package/runtime/gateways/indexeddb-version.d.ts +0 -2
- package/runtime/gateways/indexeddb-version.d.ts.map +0 -1
- package/runtime/gateways/indexeddb-version.js +0 -2
- package/runtime/gateways/indexeddb-version.js.map +0 -1
- package/runtime/gateways/memory/gateway.d.ts +0 -18
- package/runtime/gateways/memory/gateway.d.ts.map +0 -1
- package/runtime/gateways/memory/gateway.js +0 -73
- package/runtime/gateways/memory/gateway.js.map +0 -1
- package/runtime/gateways/memory/version.d.ts +0 -2
- package/runtime/gateways/memory/version.d.ts.map +0 -1
- package/runtime/gateways/memory/version.js +0 -2
- package/runtime/gateways/memory/version.js.map +0 -1
- package/runtime/index.d.ts +0 -13
- package/runtime/index.d.ts.map +0 -1
- package/runtime/index.js +0 -13
- package/runtime/index.js.map +0 -1
- package/runtime/key-bag-memory.d.ts +0 -13
- package/runtime/key-bag-memory.d.ts.map +0 -1
- package/runtime/key-bag-memory.js +0 -30
- package/runtime/key-bag-memory.js.map +0 -1
- package/runtime/key-bag.d.ts +0 -88
- package/runtime/key-bag.d.ts.map +0 -1
- package/runtime/key-bag.js +0 -417
- package/runtime/key-bag.js.map +0 -1
- package/runtime/keyed-crypto.d.ts +0 -19
- package/runtime/keyed-crypto.d.ts.map +0 -1
- package/runtime/keyed-crypto.js +0 -192
- package/runtime/keyed-crypto.js.map +0 -1
- package/runtime/memory-sys-container.d.ts +0 -2
- package/runtime/memory-sys-container.d.ts.map +0 -1
- package/runtime/memory-sys-container.js +0 -2
- package/runtime/memory-sys-container.js.map +0 -1
- package/runtime/meta-key-hack.d.ts +0 -42
- package/runtime/meta-key-hack.d.ts.map +0 -1
- package/runtime/meta-key-hack.js +0 -201
- package/runtime/meta-key-hack.js.map +0 -1
- package/runtime/sts-service/index.d.ts +0 -40
- package/runtime/sts-service/index.d.ts.map +0 -1
- package/runtime/sts-service/index.js +0 -108
- package/runtime/sts-service/index.js.map +0 -1
- package/runtime/sys-container.d.ts +0 -2
- package/runtime/sys-container.d.ts.map +0 -1
- package/runtime/sys-container.js +0 -2
- package/runtime/sys-container.js.map +0 -1
- package/runtime/wait-pr-multiformats/block.d.ts +0 -47
- package/runtime/wait-pr-multiformats/block.d.ts.map +0 -1
- package/runtime/wait-pr-multiformats/block.js +0 -64
- package/runtime/wait-pr-multiformats/block.js.map +0 -1
- package/runtime/wait-pr-multiformats/codec-interface.d.ts +0 -29
- package/runtime/wait-pr-multiformats/codec-interface.d.ts.map +0 -1
- package/runtime/wait-pr-multiformats/codec-interface.js +0 -2
- package/runtime/wait-pr-multiformats/codec-interface.js.map +0 -1
- package/runtime/wait-pr-multiformats/index.d.ts +0 -3
- package/runtime/wait-pr-multiformats/index.d.ts.map +0 -1
- package/runtime/wait-pr-multiformats/index.js +0 -3
- package/runtime/wait-pr-multiformats/index.js.map +0 -1
- package/tests/blockstore/fp-envelope.test.ts-off +0 -65
- package/tests/blockstore/fragment-gateway.test.ts-off +0 -106
- package/tests/blockstore/interceptor-gateway.test.ts +0 -254
- package/tests/blockstore/keyed-crypto-indexeddb-file.test.ts +0 -128
- package/tests/blockstore/keyed-crypto.test.ts +0 -376
- package/tests/blockstore/loader.test.ts +0 -298
- package/tests/blockstore/standalone.test.ts +0 -152
- package/tests/blockstore/store.test.ts +0 -192
- package/tests/blockstore/transaction.test.ts +0 -130
- package/tests/fireproof/all-gateway.test.ts +0 -461
- package/tests/fireproof/attachable.test.ts +0 -686
- package/tests/fireproof/cars/bafkreidxwt2nhvbl4fnqfw3ctlt6zbrir4kqwmjo5im6rf4q5si27kgo2i.car +0 -0
- package/tests/fireproof/cars/bafkreidxwt2nhvbl4fnqfw3ctlt6zbrir4kqwmjo5im6rf4q5si27kgo2i.ts +0 -324
- package/tests/fireproof/charwise-boolean.test.ts +0 -66
- package/tests/fireproof/crdt.test.ts +0 -570
- package/tests/fireproof/database.test.ts +0 -779
- package/tests/fireproof/deleted-docs-handling.test.ts +0 -111
- package/tests/fireproof/fireproof.test.fixture.ts +0 -133
- package/tests/fireproof/fireproof.test.ts +0 -777
- package/tests/fireproof/hello.test.ts +0 -74
- package/tests/fireproof/indexer.test.ts +0 -458
- package/tests/fireproof/multiple-ledger.test.ts +0 -65
- package/tests/fireproof/query-docs.test.ts +0 -116
- package/tests/fireproof/query-limit-issue.test.ts +0 -147
- package/tests/fireproof/query-property-inconsistency.test.ts +0 -89
- package/tests/fireproof/query-result-properties.test.ts +0 -42
- package/tests/fireproof/stable-cid.test.ts +0 -69
- package/tests/fireproof/utils.test.ts +0 -135
- package/tests/gateway/file/loader-config.test.ts +0 -307
- package/tests/gateway/indexeddb/loader-config.test.ts +0 -79
- package/tests/helpers.ts +0 -172
- package/tests/protocols/cloud/msger.test.ts +0 -548
- package/tests/react/img-file.test.tsx +0 -190
- package/tests/react/use-all-docs.test.tsx +0 -172
- package/tests/react/use-document-with-nonexistent-id.test.tsx +0 -96
- package/tests/react/use-fireproof-db-switch.test.tsx +0 -91
- package/tests/react/use-fireproof-stability.test.tsx +0 -145
- package/tests/react/use-fireproof.test.tsx +0 -645
- package/tests/runtime/fp-envelope-serialize.test.ts +0 -254
- package/tests/runtime/meta-key-hack.test.ts +0 -95
- package/tests/setup.file.ts +0 -1
- package/tests/setup.indexeddb.ts +0 -0
- package/tests/setup.memory.ts +0 -2
- package/tests/vitest.file.config.ts +0 -14
- package/tests/vitest.indexeddb.config.ts +0 -37
- package/tests/vitest.memory.config.ts +0 -25
- package/types.d.ts +0 -461
- package/types.d.ts.map +0 -1
- package/types.js +0 -60
- package/types.js.map +0 -1
- package/use-fireproof/iframe-strategy.d.ts +0 -14
- package/use-fireproof/iframe-strategy.d.ts.map +0 -1
- package/use-fireproof/iframe-strategy.js +0 -79
- package/use-fireproof/iframe-strategy.js.map +0 -1
- package/use-fireproof/index.d.ts +0 -14
- package/use-fireproof/index.d.ts.map +0 -1
- package/use-fireproof/index.js +0 -36
- package/use-fireproof/index.js.map +0 -1
- package/use-fireproof/redirect-strategy.d.ts +0 -15
- package/use-fireproof/redirect-strategy.d.ts.map +0 -1
- package/use-fireproof/redirect-strategy.js +0 -153
- package/use-fireproof/redirect-strategy.js.map +0 -1
- package/utils.d.ts +0 -48
- package/utils.d.ts.map +0 -1
- package/utils.js +0 -406
- package/utils.js.map +0 -1
- package/version.d.ts +0 -2
- package/version.d.ts.map +0 -1
- package/version.js +0 -4
- package/version.js.map +0 -1
- package/write-queue.d.ts +0 -9
- package/write-queue.d.ts.map +0 -1
- package/write-queue.js +0 -70
- package/write-queue.js.map +0 -1
@@ -1,310 +0,0 @@
|
|
1
|
-
import { Future, Logger, Result } from "@adviser/cement";
|
2
|
-
import { SuperThis } from "@fireproof/core";
|
3
|
-
import { CalculatePreSignedUrl } from "./msg-types-data.js";
|
4
|
-
import type { JWTPayload } from "jose";
|
5
|
-
export declare const VERSION = "FP-MSG-1.0";
|
6
|
-
export interface BaseTokenParam {
|
7
|
-
readonly alg: string;
|
8
|
-
readonly issuer: string;
|
9
|
-
readonly audience: string;
|
10
|
-
readonly validFor: number;
|
11
|
-
}
|
12
|
-
export type ReadWrite = "read" | "write";
|
13
|
-
export declare function toReadWrite(i: string): ReadWrite;
|
14
|
-
export type Role = "admin" | "owner" | "member";
|
15
|
-
export declare function toRole(i: string): Role;
|
16
|
-
interface TenantClaim {
|
17
|
-
readonly id: string;
|
18
|
-
readonly role: Role;
|
19
|
-
}
|
20
|
-
interface LedgerClaim {
|
21
|
-
readonly id: string;
|
22
|
-
readonly role: Role;
|
23
|
-
readonly right: ReadWrite;
|
24
|
-
}
|
25
|
-
export interface FPCloudClaim extends JWTPayload {
|
26
|
-
readonly userId: string;
|
27
|
-
readonly email: string;
|
28
|
-
readonly nickname?: string;
|
29
|
-
readonly provider?: "github" | "google";
|
30
|
-
readonly created: Date;
|
31
|
-
readonly tenants: TenantClaim[];
|
32
|
-
readonly ledgers: LedgerClaim[];
|
33
|
-
readonly selected: TenantLedger;
|
34
|
-
}
|
35
|
-
export type TokenForParam = FPCloudClaim & Partial<BaseTokenParam>;
|
36
|
-
export type MsgWithError<T extends MsgBase> = T | ErrorMsg;
|
37
|
-
export interface PreSignedMsg extends MsgWithTenantLedger<MsgWithConn> {
|
38
|
-
readonly methodParam: MethodSignedUrlParam;
|
39
|
-
readonly urlParam: SignedUrlParam;
|
40
|
-
}
|
41
|
-
export interface RequestOpts {
|
42
|
-
readonly waitFor: (msg: MsgBase) => boolean;
|
43
|
-
readonly noConn?: boolean;
|
44
|
-
readonly pollInterval?: number;
|
45
|
-
readonly timeout?: number;
|
46
|
-
readonly noRetry?: boolean;
|
47
|
-
}
|
48
|
-
export interface EnDeCoder {
|
49
|
-
encode<T>(node: T): Uint8Array;
|
50
|
-
decode<T>(data: Uint8Array): T;
|
51
|
-
}
|
52
|
-
export interface WaitForTid {
|
53
|
-
readonly tid: string;
|
54
|
-
readonly future: Future<MsgBase>;
|
55
|
-
readonly timeout?: number;
|
56
|
-
readonly waitFor: (msg: MsgBase) => boolean;
|
57
|
-
}
|
58
|
-
export interface NextId {
|
59
|
-
readonly nextId: SuperThis["nextId"];
|
60
|
-
}
|
61
|
-
export interface AuthType {
|
62
|
-
readonly type: "ucan" | "error" | "fp-cloud-jwk" | "fp-cloud";
|
63
|
-
}
|
64
|
-
export declare function isAuthTypeFPCloudJWK(a: AuthType): a is FPJWKCloudAuthType;
|
65
|
-
export declare function isAuthTypeFPCloud(a: AuthType): a is FPCloudAuthType;
|
66
|
-
export interface UCanAuth extends AuthType {
|
67
|
-
readonly type: "ucan";
|
68
|
-
readonly params: {
|
69
|
-
readonly tbd: string;
|
70
|
-
};
|
71
|
-
}
|
72
|
-
export interface FPJWKCloudAuthType extends AuthType {
|
73
|
-
readonly type: "fp-cloud-jwk";
|
74
|
-
readonly params: {
|
75
|
-
readonly jwk: string;
|
76
|
-
};
|
77
|
-
}
|
78
|
-
export interface FPCloudAuthType extends AuthType {
|
79
|
-
readonly type: "fp-cloud";
|
80
|
-
readonly params: {
|
81
|
-
readonly claim: TokenForParam;
|
82
|
-
readonly jwk: string;
|
83
|
-
};
|
84
|
-
}
|
85
|
-
export type AuthFactory = (tp?: Partial<TokenForParam>) => Promise<Result<AuthType>>;
|
86
|
-
export interface TenantLedger {
|
87
|
-
readonly tenant: string;
|
88
|
-
readonly ledger: string;
|
89
|
-
}
|
90
|
-
export declare function keyTenantLedger(t: TenantLedger): string;
|
91
|
-
export interface QSId {
|
92
|
-
readonly reqId: string;
|
93
|
-
readonly resId: string;
|
94
|
-
}
|
95
|
-
export declare function qsidEqual(a: QSId, b: QSId): boolean;
|
96
|
-
export declare function qsidKey(qsid: QSId): string;
|
97
|
-
export interface MsgBase {
|
98
|
-
readonly tid: string;
|
99
|
-
readonly type: string;
|
100
|
-
readonly version: string;
|
101
|
-
readonly auth: AuthType;
|
102
|
-
}
|
103
|
-
export declare function MsgIsTid(msg: MsgBase, tid: string): boolean;
|
104
|
-
export interface MsgConnAuth {
|
105
|
-
readonly conn: QSId;
|
106
|
-
readonly auth: AuthType;
|
107
|
-
}
|
108
|
-
export type MsgWithConn<T extends MsgBase = MsgBase> = T & {
|
109
|
-
readonly conn: QSId;
|
110
|
-
};
|
111
|
-
export type MsgWithOptionalConn<T extends MsgBase = MsgBase> = T & {
|
112
|
-
readonly conn?: Partial<QSId>;
|
113
|
-
};
|
114
|
-
export type MsgWithOptionalTenantLedger<T extends MsgWithConn> = T & {
|
115
|
-
readonly tenant?: Partial<TenantLedger>;
|
116
|
-
};
|
117
|
-
export type MsgWithTenantLedger<T extends MsgWithOptionalConn> = T & {
|
118
|
-
readonly tenant: TenantLedger;
|
119
|
-
};
|
120
|
-
export type ErrorMsg = ErrorMsgBase | NotReadyErrorMsg;
|
121
|
-
export interface ErrorMsgBase extends MsgWithOptionalConn {
|
122
|
-
readonly type: "error";
|
123
|
-
readonly src: unknown;
|
124
|
-
readonly message: string;
|
125
|
-
readonly body?: string;
|
126
|
-
readonly stack?: string[];
|
127
|
-
}
|
128
|
-
export interface NotReadyErrorMsg extends ErrorMsgBase {
|
129
|
-
readonly reason: "not-ready";
|
130
|
-
readonly src: "not-ready";
|
131
|
-
readonly message: "Not Ready";
|
132
|
-
}
|
133
|
-
export declare function MsgIsNotReadyError(msg: MsgBase): msg is NotReadyErrorMsg;
|
134
|
-
export declare function MsgIsError(rq: MsgBase): rq is ErrorMsg;
|
135
|
-
export declare function MsgIsQSError(rq: ReqRes<MsgBase, MsgBase>): rq is ReqRes<ErrorMsg, ErrorMsg>;
|
136
|
-
export type HttpMethods = "GET" | "PUT" | "DELETE";
|
137
|
-
export type FPStoreTypes = "meta" | "car" | "wal" | "file";
|
138
|
-
export declare function coerceFPStoreTypes(s?: string): FPStoreTypes;
|
139
|
-
export type ProtocolCapabilities = "reqRes" | "stream";
|
140
|
-
export declare function isProtocolCapabilities(s: string): s is ProtocolCapabilities;
|
141
|
-
export interface Gestalt {
|
142
|
-
readonly storeTypes: FPStoreTypes[];
|
143
|
-
readonly id: string;
|
144
|
-
readonly protocolCapabilities: ProtocolCapabilities[];
|
145
|
-
readonly httpEndpoints: string[];
|
146
|
-
readonly wsEndpoints: string[];
|
147
|
-
readonly encodings: ("JSON" | "CBOR")[];
|
148
|
-
readonly auth: AuthType[];
|
149
|
-
readonly requiresAuth: boolean;
|
150
|
-
readonly data?: {
|
151
|
-
readonly inband: boolean;
|
152
|
-
readonly outband: boolean;
|
153
|
-
};
|
154
|
-
readonly meta?: {
|
155
|
-
readonly inband: true;
|
156
|
-
readonly outband: boolean;
|
157
|
-
};
|
158
|
-
readonly wal?: {
|
159
|
-
readonly inband: boolean;
|
160
|
-
readonly outband: boolean;
|
161
|
-
};
|
162
|
-
readonly reqTypes: string[];
|
163
|
-
readonly resTypes: string[];
|
164
|
-
readonly eventTypes: string[];
|
165
|
-
}
|
166
|
-
export interface MsgerParams {
|
167
|
-
readonly mime: string;
|
168
|
-
readonly auth?: AuthType;
|
169
|
-
readonly hasPersistent?: boolean;
|
170
|
-
readonly protocolCapabilities?: ProtocolCapabilities[];
|
171
|
-
readonly timeout: number;
|
172
|
-
}
|
173
|
-
export type GestaltParam = Partial<Gestalt> & {
|
174
|
-
readonly id: string;
|
175
|
-
};
|
176
|
-
export declare function defaultGestalt(msgP: MsgerParams, gestalt: GestaltParam): Gestalt;
|
177
|
-
export interface ReqChat extends MsgWithConn {
|
178
|
-
readonly type: "reqChat";
|
179
|
-
readonly message: string;
|
180
|
-
readonly targets: QSId[];
|
181
|
-
}
|
182
|
-
export interface ResChat extends MsgWithConn {
|
183
|
-
readonly type: "resChat";
|
184
|
-
readonly message: string;
|
185
|
-
readonly targets: QSId[];
|
186
|
-
}
|
187
|
-
export declare function buildReqChat(sthis: NextId, auth: AuthType, conn: Partial<QSId>, message: string, targets?: QSId[]): ReqChat;
|
188
|
-
export declare function buildResChat(req: ReqChat, conn?: QSId, message?: string, targets?: QSId[], auth?: AuthType): ResChat;
|
189
|
-
export declare function MsgIsReqChat(msg: MsgBase): msg is ReqChat;
|
190
|
-
export declare function MsgIsResChat(msg: MsgBase): msg is ResChat;
|
191
|
-
export interface ReqGestalt extends MsgBase {
|
192
|
-
readonly type: "reqGestalt";
|
193
|
-
readonly gestalt: Gestalt;
|
194
|
-
readonly publish?: boolean;
|
195
|
-
}
|
196
|
-
export declare function MsgIsReqGestalt(msg: MsgBase): msg is ReqGestalt;
|
197
|
-
export declare function buildReqGestalt(sthis: NextId, auth: AuthType, gestalt: Gestalt, publish?: boolean): ReqGestalt;
|
198
|
-
export interface ConnInfo {
|
199
|
-
readonly connIds: string[];
|
200
|
-
}
|
201
|
-
export interface ResGestalt extends MsgBase {
|
202
|
-
readonly type: "resGestalt";
|
203
|
-
readonly gestalt: Gestalt;
|
204
|
-
}
|
205
|
-
export declare function buildResGestalt(req: ReqGestalt, gestalt: Gestalt, auth: AuthType): ResGestalt | ErrorMsg;
|
206
|
-
export declare function MsgIsResGestalt(msg: MsgBase): msg is ResGestalt;
|
207
|
-
export interface ReqOpenConn {
|
208
|
-
readonly reqId: string;
|
209
|
-
readonly resId?: string;
|
210
|
-
}
|
211
|
-
export interface ReqOpen extends Omit<MsgWithConn, "conn"> {
|
212
|
-
readonly type: "reqOpen";
|
213
|
-
readonly conn: ReqOpenConn;
|
214
|
-
}
|
215
|
-
export declare function buildReqOpen(sthis: NextId, auth: AuthType, conn: Partial<QSId>): ReqOpen;
|
216
|
-
export declare function MsgIsReqOpen(imsg: MsgBase): imsg is ReqOpen;
|
217
|
-
export interface ResOpen extends MsgBase {
|
218
|
-
readonly type: "resOpen";
|
219
|
-
readonly conn: QSId;
|
220
|
-
}
|
221
|
-
export declare function MsgIsWithConn<T extends MsgBase>(msg: T): msg is MsgWithConn<T>;
|
222
|
-
export declare function MsgIsWithConnAuth<T extends MsgBase>(msg: T): msg is MsgWithConn<T>;
|
223
|
-
export declare function MsgIsConnected<T extends MsgBase>(msg: T, qsid: QSId): msg is MsgWithConn<T>;
|
224
|
-
export declare function buildResOpen(sthis: NextId, req: ReqOpen, resStreamId?: string): ResOpen;
|
225
|
-
export declare function MsgIsResOpen(msg: MsgBase): msg is ResOpen;
|
226
|
-
export interface ReqClose extends MsgWithConn {
|
227
|
-
readonly type: "reqClose";
|
228
|
-
}
|
229
|
-
export declare function MsgIsReqClose(msg: MsgBase): msg is ReqClose;
|
230
|
-
export interface ResClose extends MsgWithConn {
|
231
|
-
readonly type: "resClose";
|
232
|
-
}
|
233
|
-
export declare function MsgIsResClose(msg: MsgBase): msg is ResClose;
|
234
|
-
export declare function buildResClose(req: ReqClose, conn: QSId): ResClose;
|
235
|
-
export declare function buildReqClose(sthis: NextId, auth: AuthType, conn: QSId): ReqClose;
|
236
|
-
export interface SignedUrlParam {
|
237
|
-
readonly path?: string;
|
238
|
-
readonly key: string;
|
239
|
-
readonly expires?: number;
|
240
|
-
readonly index?: string;
|
241
|
-
}
|
242
|
-
export interface MethodSignedUrlParam {
|
243
|
-
readonly method: HttpMethods;
|
244
|
-
readonly store: FPStoreTypes;
|
245
|
-
}
|
246
|
-
export interface ReqSignedUrlParam {
|
247
|
-
readonly auth: AuthType;
|
248
|
-
readonly methodParam: MethodSignedUrlParam;
|
249
|
-
readonly urlParam: SignedUrlParam;
|
250
|
-
}
|
251
|
-
export interface UpdateReqRes<Q extends MsgBase, S extends MsgBase> {
|
252
|
-
req: Q;
|
253
|
-
res: S;
|
254
|
-
}
|
255
|
-
export type ReqRes<Q extends MsgBase, S extends MsgBase> = Readonly<UpdateReqRes<Q, S>>;
|
256
|
-
export declare function buildErrorMsg(msgCtx: {
|
257
|
-
readonly logger: Logger;
|
258
|
-
readonly sthis: SuperThis;
|
259
|
-
}, base: Partial<MsgBase & {
|
260
|
-
ref?: unknown;
|
261
|
-
}>, error: Error, body?: string, stack?: string[]): ErrorMsg;
|
262
|
-
export declare function MsgIsTenantLedger<T extends MsgBase>(msg: T): msg is MsgWithTenantLedger<MsgWithConn<T>>;
|
263
|
-
export interface MethodParams {
|
264
|
-
readonly methodParam: MethodSignedUrlParam;
|
265
|
-
}
|
266
|
-
export interface SignedUrlParams {
|
267
|
-
readonly urlParam: SignedUrlParam;
|
268
|
-
}
|
269
|
-
export type MethodSignedUrlParams = MethodParams & SignedUrlParams;
|
270
|
-
export type ReqSignedUrlWithoutMethodParams = SignedUrlParams & MsgWithTenantLedger<MsgWithConn>;
|
271
|
-
export type ReqSignedUrl = MethodSignedUrlParams & MsgWithTenantLedger<MsgWithOptionalConn>;
|
272
|
-
export interface GwCtx {
|
273
|
-
readonly tid?: string;
|
274
|
-
readonly conn: QSId;
|
275
|
-
readonly tenant: TenantLedger;
|
276
|
-
}
|
277
|
-
export interface ReqGwCtx {
|
278
|
-
readonly tid?: string;
|
279
|
-
readonly conn: Partial<QSId>;
|
280
|
-
readonly tenant: TenantLedger;
|
281
|
-
}
|
282
|
-
export interface GwCtxConn {
|
283
|
-
readonly tid?: string;
|
284
|
-
readonly conn: QSId;
|
285
|
-
readonly tenant: TenantLedger;
|
286
|
-
}
|
287
|
-
export declare function buildReqSignedUrl<T extends ReqSignedUrl>(sthis: NextId, type: string, rparam: ReqSignedUrlParam, gwCtx: GwCtx): T;
|
288
|
-
export interface ResSignedUrl extends MsgWithTenantLedger<MsgWithConn> {
|
289
|
-
readonly methodParam: MethodSignedUrlParam;
|
290
|
-
readonly urlParam: SignedUrlParam;
|
291
|
-
readonly signedUrl: string;
|
292
|
-
}
|
293
|
-
export interface ResOptionalSignedUrl extends MsgWithTenantLedger<MsgWithConn> {
|
294
|
-
readonly urlParam: SignedUrlParam;
|
295
|
-
readonly methodParam: MethodSignedUrlParam;
|
296
|
-
readonly signedUrl?: string;
|
297
|
-
}
|
298
|
-
export interface MsgTypesCtx {
|
299
|
-
readonly sthis: SuperThis;
|
300
|
-
readonly logger: Logger;
|
301
|
-
}
|
302
|
-
export interface MsgTypesCtxSync {
|
303
|
-
readonly sthis: SuperThis;
|
304
|
-
readonly logger: Logger;
|
305
|
-
readonly auth: AuthType;
|
306
|
-
}
|
307
|
-
export declare function resAuth(msg: MsgBase): Promise<AuthType>;
|
308
|
-
export declare function buildRes<Q extends MsgWithTenantLedger<MsgWithConn<ReqSignedUrlWithoutMethodParams>>, S extends ResSignedUrl>(methodParam: MethodSignedUrlParam, type: string, msgCtx: MsgTypesCtx, req: Q, ctx: CalculatePreSignedUrl): Promise<MsgWithError<S>>;
|
309
|
-
export {};
|
310
|
-
//# sourceMappingURL=msg-types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"msg-types.d.ts","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGvC,eAAO,MAAM,OAAO,eAAe,CAAC;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzC,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAOhD;AAED,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEhD,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAStC;AAED,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;CACrB;AAED,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,SAAS,CA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5
|
-
return "write";
|
6
|
-
default:
|
7
|
-
return "read";
|
8
|
-
}
|
9
|
-
}
|
10
|
-
export function toRole(i) {
|
11
|
-
switch (i.toLowerCase()) {
|
12
|
-
case "admin":
|
13
|
-
return "admin";
|
14
|
-
case "owner":
|
15
|
-
return "owner";
|
16
|
-
default:
|
17
|
-
return "member";
|
18
|
-
}
|
19
|
-
}
|
20
|
-
export function isAuthTypeFPCloudJWK(a) {
|
21
|
-
return a.type === "fp-cloud-jwk";
|
22
|
-
}
|
23
|
-
export function isAuthTypeFPCloud(a) {
|
24
|
-
return a.type === "fp-cloud";
|
25
|
-
}
|
26
|
-
export function keyTenantLedger(t) {
|
27
|
-
return `${t.tenant}:${t.ledger}`;
|
28
|
-
}
|
29
|
-
export function qsidEqual(a, b) {
|
30
|
-
return a.reqId === b.reqId && a.resId === b.resId;
|
31
|
-
}
|
32
|
-
export function qsidKey(qsid) {
|
33
|
-
return `${qsid.reqId}:${qsid.resId}`;
|
34
|
-
}
|
35
|
-
export function MsgIsTid(msg, tid) {
|
36
|
-
return !msg.tid || msg.tid === tid;
|
37
|
-
}
|
38
|
-
export function MsgIsNotReadyError(msg) {
|
39
|
-
return MsgIsError(msg) && msg.reason === "not-ready";
|
40
|
-
}
|
41
|
-
export function MsgIsError(rq) {
|
42
|
-
return rq.type === "error";
|
43
|
-
}
|
44
|
-
export function MsgIsQSError(rq) {
|
45
|
-
return rq.res.type === "error" || rq.req.type === "error";
|
46
|
-
}
|
47
|
-
export function coerceFPStoreTypes(s) {
|
48
|
-
const x = s?.trim();
|
49
|
-
if (x === "meta" || x === "car" || x === "wal" || x === "file") {
|
50
|
-
return x;
|
51
|
-
}
|
52
|
-
throw new Error(`Invalid FPStoreTypes: ${s}`);
|
53
|
-
}
|
54
|
-
export function isProtocolCapabilities(s) {
|
55
|
-
const x = s.trim();
|
56
|
-
return x === "reqRes" || x === "stream";
|
57
|
-
}
|
58
|
-
export function defaultGestalt(msgP, gestalt) {
|
59
|
-
return {
|
60
|
-
storeTypes: ["meta", "file", "car", "wal"],
|
61
|
-
httpEndpoints: ["/fp"],
|
62
|
-
wsEndpoints: ["/ws"],
|
63
|
-
encodings: ["JSON"],
|
64
|
-
protocolCapabilities: msgP.protocolCapabilities || ["reqRes", "stream"],
|
65
|
-
auth: [],
|
66
|
-
requiresAuth: false,
|
67
|
-
data: msgP.hasPersistent
|
68
|
-
? {
|
69
|
-
inband: true,
|
70
|
-
outband: true,
|
71
|
-
}
|
72
|
-
: undefined,
|
73
|
-
meta: msgP.hasPersistent
|
74
|
-
? {
|
75
|
-
inband: true,
|
76
|
-
outband: true,
|
77
|
-
}
|
78
|
-
: undefined,
|
79
|
-
wal: msgP.hasPersistent
|
80
|
-
? {
|
81
|
-
inband: true,
|
82
|
-
outband: true,
|
83
|
-
}
|
84
|
-
: undefined,
|
85
|
-
reqTypes: [
|
86
|
-
"reqOpen",
|
87
|
-
"reqGestalt",
|
88
|
-
"reqSubscribeMeta",
|
89
|
-
"reqPutMeta",
|
90
|
-
"reqBindMeta",
|
91
|
-
"reqDelMeta",
|
92
|
-
"reqPutData",
|
93
|
-
"reqGetData",
|
94
|
-
"reqDelData",
|
95
|
-
"reqPutWAL",
|
96
|
-
"reqGetWAL",
|
97
|
-
"reqDelWAL",
|
98
|
-
"reqUpdateMeta",
|
99
|
-
],
|
100
|
-
resTypes: [
|
101
|
-
"resOpen",
|
102
|
-
"resGestalt",
|
103
|
-
"resSubscribeMeta",
|
104
|
-
"resPutMeta",
|
105
|
-
"resGetMeta",
|
106
|
-
"resDelMeta",
|
107
|
-
"resPutData",
|
108
|
-
"resGetData",
|
109
|
-
"resDelData",
|
110
|
-
"resPutWAL",
|
111
|
-
"resGetWAL",
|
112
|
-
"resDelWAL",
|
113
|
-
"updateMeta",
|
114
|
-
],
|
115
|
-
eventTypes: ["updateMeta"],
|
116
|
-
...gestalt,
|
117
|
-
};
|
118
|
-
}
|
119
|
-
export function buildReqChat(sthis, auth, conn, message, targets) {
|
120
|
-
return {
|
121
|
-
tid: sthis.nextId().str,
|
122
|
-
type: "reqChat",
|
123
|
-
version: VERSION,
|
124
|
-
auth,
|
125
|
-
conn: conn,
|
126
|
-
message,
|
127
|
-
targets: targets ?? [],
|
128
|
-
};
|
129
|
-
}
|
130
|
-
export function buildResChat(req, conn, message, targets, auth) {
|
131
|
-
return {
|
132
|
-
...req,
|
133
|
-
auth: auth || req.auth,
|
134
|
-
conn: conn || req.conn,
|
135
|
-
message: message || req.message,
|
136
|
-
targets: targets || req.targets,
|
137
|
-
type: "resChat",
|
138
|
-
version: VERSION,
|
139
|
-
};
|
140
|
-
}
|
141
|
-
export function MsgIsReqChat(msg) {
|
142
|
-
return msg.type === "reqChat";
|
143
|
-
}
|
144
|
-
export function MsgIsResChat(msg) {
|
145
|
-
return msg.type === "resChat";
|
146
|
-
}
|
147
|
-
export function MsgIsReqGestalt(msg) {
|
148
|
-
return msg.type === "reqGestalt";
|
149
|
-
}
|
150
|
-
export function buildReqGestalt(sthis, auth, gestalt, publish) {
|
151
|
-
return {
|
152
|
-
tid: sthis.nextId().str,
|
153
|
-
auth,
|
154
|
-
type: "reqGestalt",
|
155
|
-
version: VERSION,
|
156
|
-
gestalt,
|
157
|
-
publish,
|
158
|
-
};
|
159
|
-
}
|
160
|
-
export function buildResGestalt(req, gestalt, auth) {
|
161
|
-
return {
|
162
|
-
tid: req.tid,
|
163
|
-
auth: auth || req.auth,
|
164
|
-
type: "resGestalt",
|
165
|
-
version: VERSION,
|
166
|
-
gestalt,
|
167
|
-
};
|
168
|
-
}
|
169
|
-
export function MsgIsResGestalt(msg) {
|
170
|
-
return msg.type === "resGestalt";
|
171
|
-
}
|
172
|
-
export function buildReqOpen(sthis, auth, conn) {
|
173
|
-
return {
|
174
|
-
tid: sthis.nextId().str,
|
175
|
-
auth,
|
176
|
-
type: "reqOpen",
|
177
|
-
version: VERSION,
|
178
|
-
conn: {
|
179
|
-
...conn,
|
180
|
-
reqId: conn.reqId || sthis.nextId().str,
|
181
|
-
},
|
182
|
-
};
|
183
|
-
}
|
184
|
-
export function MsgIsReqOpen(imsg) {
|
185
|
-
const msg = imsg;
|
186
|
-
return msg.type === "reqOpen" && !!msg.conn && !!msg.conn.reqId;
|
187
|
-
}
|
188
|
-
export function MsgIsWithConn(msg) {
|
189
|
-
const mwc = msg.conn;
|
190
|
-
return mwc && !!mwc.reqId && !!mwc.resId;
|
191
|
-
}
|
192
|
-
export function MsgIsWithConnAuth(msg) {
|
193
|
-
return MsgIsWithConn(msg) && !!msg.auth && typeof msg.auth.type === "string";
|
194
|
-
}
|
195
|
-
export function MsgIsConnected(msg, qsid) {
|
196
|
-
return MsgIsWithConn(msg) && msg.conn.reqId === qsid.reqId && msg.conn.resId === qsid.resId;
|
197
|
-
}
|
198
|
-
export function buildResOpen(sthis, req, resStreamId) {
|
199
|
-
if (!(req.conn && req.conn.reqId)) {
|
200
|
-
throw new Error("req.conn.reqId is required");
|
201
|
-
}
|
202
|
-
return {
|
203
|
-
...req,
|
204
|
-
type: "resOpen",
|
205
|
-
conn: {
|
206
|
-
...req.conn,
|
207
|
-
resId: req.conn.resId || resStreamId || sthis.nextId().str,
|
208
|
-
},
|
209
|
-
};
|
210
|
-
}
|
211
|
-
export function MsgIsResOpen(msg) {
|
212
|
-
return msg.type === "resOpen";
|
213
|
-
}
|
214
|
-
export function MsgIsReqClose(msg) {
|
215
|
-
return msg.type === "reqClose" && MsgIsWithConn(msg);
|
216
|
-
}
|
217
|
-
export function MsgIsResClose(msg) {
|
218
|
-
return msg.type === "resClose" && MsgIsWithConn(msg);
|
219
|
-
}
|
220
|
-
export function buildResClose(req, conn) {
|
221
|
-
return {
|
222
|
-
...req,
|
223
|
-
type: "resClose",
|
224
|
-
conn,
|
225
|
-
};
|
226
|
-
}
|
227
|
-
export function buildReqClose(sthis, auth, conn) {
|
228
|
-
return {
|
229
|
-
tid: sthis.nextId().str,
|
230
|
-
auth,
|
231
|
-
type: "reqClose",
|
232
|
-
version: VERSION,
|
233
|
-
conn,
|
234
|
-
};
|
235
|
-
}
|
236
|
-
export function buildErrorMsg(msgCtx, base, error, body, stack) {
|
237
|
-
if (!stack && msgCtx.sthis.env.get("FP_STACK")) {
|
238
|
-
stack = error.stack?.split("\n");
|
239
|
-
}
|
240
|
-
const msg = {
|
241
|
-
auth: base.auth || { type: "error" },
|
242
|
-
src: base,
|
243
|
-
type: "error",
|
244
|
-
tid: base.tid || "internal",
|
245
|
-
message: error.message,
|
246
|
-
version: VERSION,
|
247
|
-
body,
|
248
|
-
stack,
|
249
|
-
};
|
250
|
-
msgCtx.logger.Any("ErrorMsg", msg);
|
251
|
-
return msg;
|
252
|
-
}
|
253
|
-
export function MsgIsTenantLedger(msg) {
|
254
|
-
if (MsgIsWithConnAuth(msg)) {
|
255
|
-
const t = msg.tenant;
|
256
|
-
return !!t && !!t.tenant && !!t.ledger;
|
257
|
-
}
|
258
|
-
return false;
|
259
|
-
}
|
260
|
-
export function buildReqSignedUrl(sthis, type, rparam, gwCtx) {
|
261
|
-
return {
|
262
|
-
tid: sthis.nextId().str,
|
263
|
-
type,
|
264
|
-
auth: rparam.auth,
|
265
|
-
version: VERSION,
|
266
|
-
...gwCtx,
|
267
|
-
methodParam: rparam.methodParam,
|
268
|
-
urlParam: rparam.urlParam,
|
269
|
-
};
|
270
|
-
}
|
271
|
-
export function resAuth(msg) {
|
272
|
-
return msg.auth ? Promise.resolve(msg.auth) : Promise.reject(new Error("No Auth"));
|
273
|
-
}
|
274
|
-
export async function buildRes(methodParam, type, msgCtx, req, ctx) {
|
275
|
-
const psm = {
|
276
|
-
type: "reqSignedUrl",
|
277
|
-
auth: await resAuth(req),
|
278
|
-
version: req.version,
|
279
|
-
methodParam,
|
280
|
-
urlParam: {
|
281
|
-
...req.urlParam,
|
282
|
-
},
|
283
|
-
conn: req.conn,
|
284
|
-
tenant: req.tenant,
|
285
|
-
tid: req.tid,
|
286
|
-
};
|
287
|
-
const rSignedUrl = await ctx.calculatePreSignedUrl(msgCtx, psm);
|
288
|
-
if (rSignedUrl.isErr()) {
|
289
|
-
return buildErrorMsg(msgCtx, req, rSignedUrl.Err());
|
290
|
-
}
|
291
|
-
return {
|
292
|
-
...req,
|
293
|
-
urlParam: psm.urlParam,
|
294
|
-
methodParam,
|
295
|
-
type,
|
296
|
-
signedUrl: rSignedUrl.Ok().toString(),
|
297
|
-
};
|
298
|
-
}
|
299
|
-
//# sourceMappingURL=msg-types.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"msg-types.js","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC;AAWpC,MAAM,UAAU,WAAW,CAAC,CAAS;IACnC,QAAQ,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;QACxB,KAAK,OAAO;YACV,OAAO,OAAO,CAAC;QACjB;YACE,OAAO,MAAM,CAAC;IAClB,CAAC;AACH,CAAC;AAID,MAAM,UAAU,MAAM,CAAC,CAAS;IAC9B,QAAQ,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;QACxB,KAAK,OAAO;YACV,OAAO,OAAO,CAAC;QACjB,KAAK,OAAO;YACV,OAAO,OAAO,CAAC;QACjB;YACE,OAAO,QAAQ,CAAC;IACpB,CAAC;AACH,CAAC;AA6ED,MAAM,UAAU,oBAAoB,CAAC,CAAW;IAC9C,OAAO,CAAC,CAAC,IAAI,KAAK,cAAc,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,CAAW;IAC3C,OAAO,CAAC,CAAC,IAAI,KAAK,UAAU,CAAC;AAC/B,CAAC;AA8BD,MAAM,UAAU,eAAe,CAAC,CAAe;IAC7C,OAAO,GAAG,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;AACnC,CAAC;AAOD,MAAM,UAAU,SAAS,CAAC,CAAO,EAAE,CAAO;IACxC,OAAO,CAAC,CAAC,KAAK,KAAK,CAAC,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