@livestore/livestore 0.4.0-dev.2 → 0.4.0-dev.20
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/dist/.tsbuildinfo +1 -1
- package/dist/SqliteDbWrapper.d.ts.map +1 -1
- package/dist/SqliteDbWrapper.test.js +2 -1
- package/dist/SqliteDbWrapper.test.js.map +1 -1
- package/dist/effect/LiveStore.d.ts +3 -3
- package/dist/effect/LiveStore.d.ts.map +1 -1
- package/dist/effect/LiveStore.js +3 -5
- package/dist/effect/LiveStore.js.map +1 -1
- package/dist/live-queries/base-class.d.ts.map +1 -1
- package/dist/live-queries/base-class.js.map +1 -1
- package/dist/live-queries/client-document-get-query.js +3 -2
- package/dist/live-queries/client-document-get-query.js.map +1 -1
- package/dist/live-queries/db-query.d.ts.map +1 -1
- package/dist/live-queries/db-query.js +15 -10
- package/dist/live-queries/db-query.js.map +1 -1
- package/dist/live-queries/db-query.test.js +117 -28
- package/dist/live-queries/db-query.test.js.map +1 -1
- package/dist/mod.d.ts +3 -4
- package/dist/mod.d.ts.map +1 -1
- package/dist/mod.js +3 -3
- package/dist/mod.js.map +1 -1
- package/dist/reactive.d.ts +10 -10
- package/dist/reactive.d.ts.map +1 -1
- package/dist/reactive.js +36 -27
- package/dist/reactive.js.map +1 -1
- package/dist/reactive.test.js +115 -0
- package/dist/reactive.test.js.map +1 -1
- package/dist/store/create-store.d.ts +44 -12
- package/dist/store/create-store.d.ts.map +1 -1
- package/dist/store/create-store.js +17 -11
- package/dist/store/create-store.js.map +1 -1
- package/dist/store/devtools.d.ts +4 -15
- package/dist/store/devtools.d.ts.map +1 -1
- package/dist/store/devtools.js +36 -15
- package/dist/store/devtools.js.map +1 -1
- package/dist/store/store-types.d.ts +123 -7
- package/dist/store/store-types.d.ts.map +1 -1
- package/dist/store/store-types.js +28 -1
- package/dist/store/store-types.js.map +1 -1
- package/dist/store/store-types.test.d.ts +2 -0
- package/dist/store/store-types.test.d.ts.map +1 -0
- package/dist/store/store-types.test.js +39 -0
- package/dist/store/store-types.test.js.map +1 -0
- package/dist/store/store.d.ts +115 -59
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +323 -174
- package/dist/store/store.js.map +1 -1
- package/dist/utils/dev.d.ts +3 -0
- package/dist/utils/dev.d.ts.map +1 -1
- package/dist/utils/dev.js.map +1 -1
- package/dist/utils/tests/fixture.d.ts +4 -4
- package/dist/utils/tests/fixture.d.ts.map +1 -1
- package/dist/utils/tests/fixture.js +2 -1
- package/dist/utils/tests/fixture.js.map +1 -1
- package/dist/utils/tests/otel.d.ts +15 -14
- package/dist/utils/tests/otel.d.ts.map +1 -1
- package/dist/utils/tests/otel.js +20 -15
- package/dist/utils/tests/otel.js.map +1 -1
- package/docs/api/adapter-expo/README/index.md +9 -0
- package/docs/api/adapter-expo/functions/makePersistedAdapter/index.md +15 -0
- package/docs/api/adapter-expo/type-aliases/MakeDbOptions/index.md +74 -0
- package/docs/api/adapter-node/README/index.md +6 -0
- package/docs/api/adapter-node/functions/makeAdapter/index.md +17 -0
- package/docs/api/adapter-node/functions/makeWorkerAdapter/index.md +17 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerBootStatusStream/index.md +33 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerExport/index.md +33 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerExportEventlog/index.md +33 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerExtraDevtoolsMessage/index.md +47 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerGetLeaderHead/index.md +33 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerGetLeaderSyncState/index.md +33 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerGetNetworkStatus/index.md +33 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerGetRecreateSnapshot/index.md +33 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerInitialMessage/index.md +153 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerNetworkStatusStream/index.md +33 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerPullStream/index.md +75 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerPushToLeader/index.md +47 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerShutdown/index.md +33 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerSyncStateStream/index.md +33 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerOuterInitialMessage/index.md +83 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerOuterRequest/index.md +79 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/SharedWorkerRequest/index.md +29 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/SharedWorkerUpdateMessagePort/index.md +89 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/LeaderWorkerInnerRequest/index.md +5 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/StorageType/index.md +5 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/StorageTypeEncoded/index.md +5 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/StorageTypeOpfs/index.md +5 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/SyncBackendOptions/index.md +5 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/variables/LeaderWorkerInnerRequest/index.md +5 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/variables/StorageType/index.md +5 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/variables/StorageTypeOpfs/index.md +5 -0
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/variables/SyncBackendOptions/index.md +5 -0
- package/docs/api/adapter-web/README/index.md +14 -0
- package/docs/api/adapter-web/functions/makeInMemoryAdapter/index.md +24 -0
- package/docs/api/adapter-web/functions/makePersistedAdapter/index.md +29 -0
- package/docs/api/adapter-web/type-aliases/WebAdapterOptions/index.md +124 -0
- package/docs/api/index.md +3 -0
- package/docs/api/livestore/@livestore/namespaces/EventDef/type-aliases/Any/index.md +8 -0
- package/docs/api/livestore/@livestore/namespaces/EventDef/type-aliases/AnyWithoutFn/index.md +9 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/type-aliases/Composite/index.md +37 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/type-aliases/CompositeInput/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/type-aliases/CompositePair/index.md +23 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/type-aliases/Type/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/Composite/index.md +36 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/DEFAULT/index.md +13 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/REBASE_GENERATION_DEFAULT/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/ROOT/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/Schema/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/compare/index.md +22 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/diff/index.md +29 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/fromGlobal/index.md +17 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/fromString/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/isEqual/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/isGreaterThan/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/isGreaterThanOrEqual/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/make/index.md +13 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/max/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/nextPair/index.md +30 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/toString/index.md +19 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Global/type-aliases/Type/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Global/variables/Schema/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Global/variables/make/index.md +13 -0
- package/docs/api/livestore/@livestore/namespaces/FromInputSchema/type-aliases/DeriveSchema/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/LiveQuery/type-aliases/Any/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/LiveQueryDef/type-aliases/Any/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/classes/EncodedWithMeta/index.md +374 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/type-aliases/Decoded/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/type-aliases/Encoded/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/type-aliases/ForSchema/index.md +13 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/Decoded/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/Encoded/index.md +27 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/isEqualEncoded/index.md +22 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/makeSchema/index.md +30 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/makeSchemaMemo/index.md +23 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/Decoded/index.md +61 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/Encoded/index.md +61 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/ForRecord/index.md +13 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/InputDecoded/index.md +29 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/InputEncoded/index.md +29 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Global/type-aliases/Encoded/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Global/variables/Encoded/index.md +20 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Global/variables/toClientEncoded/index.md +41 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/type-aliases/Decoded/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/type-aliases/Encoded/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/type-aliases/ForRecord/index.md +13 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/type-aliases/ForSchema/index.md +13 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/variables/Encoded/index.md +14 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/variables/makeSchema/index.md +30 -0
- package/docs/api/livestore/@livestore/namespaces/LiveStoreSchema/type-aliases/Any/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/Equality/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/In/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/Like/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/MultiValue/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/Order/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/SingleValue/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/Any/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/ApiFeature/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/ApiFull/index.md +513 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/FirstQueryBehaviour/index.md +49 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/OrderByParams/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/WhereOps/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/WhereParams/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/CountQuery/index.md +35 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/DeleteQuery/index.md +43 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/InsertQuery/index.md +51 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/OnConflict/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/OrderBy/index.md +19 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/RowQuery/index.md +35 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/SelectQuery/index.md +87 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/UpdateQuery/index.md +51 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/Where/index.md +27 -0
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/type-aliases/WriteQuery/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/Queryable/type-aliases/Result/index.md +19 -0
- package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/DocumentResult/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/GetIdColumnType/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/GetOrCreateOptions/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/RequiredColumnsOptions/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/Result/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/ResultEncoded/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Blob/index.md +13 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/ColumnType/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Integer/index.md +13 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Null/index.md +13 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Real/index.md +13 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Text/index.md +13 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/Column/index.md +69 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/DbSchema/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/ForeignKey/index.md +53 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/Index/index.md +45 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/Table/index.md +37 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/column/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/dbSchema/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/hash/index.md +18 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/index.md +27 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/structSchemaForTable/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/table/index.md +23 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/ColumnDefinition/type-aliases/Any/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/InsertRowDecoded/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/InsertRowEncoded/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/NullableColumnNames/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RequiredInsertColumnNames/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RequiredInsertColumns/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RequiresInsertValues/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowDecoded/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowDecodedAll/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowEncodeNonNullable/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowEncoded/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowEncodedAll/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/Columns/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/NullableColumnNames/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/RowDecoded/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/RowDecodedAll/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/RowEncodeNonNullable/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/RowEncoded/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/AnyIfConstained/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColDefFn/index.md +125 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColumnDefaultThunk/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColumnDefaultValue/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColumnDefinition/index.md +81 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColumnDefinitionInput/index.md +45 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/Columns/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ConstraintColumns/index.md +16 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/DbSchema/index.md +9 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/DbSchemaFromInputSchema/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/DbSchemaInput/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/DefaultEncodedForColumnType/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/EmptyObjIfConstained/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/FieldColumnType/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/Index/index.md +35 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/InsertStructSchemaForColumns/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/IsSingleColumn/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/NoDefault/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/SpecializedColDefFn/index.md +111 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/SqlDefaultValue/index.md +13 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/StructSchemaForColumns/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/TableDefinition/index.md +47 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/NoDefault/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/blob/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/boolean/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/column/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/datetime/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/datetimeInteger/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/defaultSchemaForColumnType/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/insertStructSchemaForTable/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/integer/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/isColumnDefinition/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/isDefaultThunk/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/isSqlDefaultValue/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/json/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/makeDbSchema/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/real/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/resolveColumnDefault/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/structSchemaForTable/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/table/index.md +37 -0
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/text/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/functions/table/index.md +294 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/interfaces/Trait/index.md +149 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/Any/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/DefaultIdType/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/GetOptions/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/MakeGetQueryBuilder/index.md +19 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/SetEventDef/index.md +19 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/SetEventDefLike/index.md +65 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/SqliteDef/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/TableDefBase/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/TraitAny/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableOptions/type-aliases/Input/index.md +43 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableOptions/type-aliases/WithDefaults/index.md +35 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/InsertRowDecoded/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/NullableColumnNames/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RequiredInsertColumnNames/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RowDecoded/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RowDecodedAll/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RowEncodeNonNullable/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RowEncoded/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/Columns/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/NullableColumnNames/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/RowDecoded/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/RowDecodedAll/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/RowEncodeNonNullable/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/RowEncoded/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/SchemaToColumns/type-aliases/ColumnDefForType/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/SchemaToColumns/type-aliases/FromTypes/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/TableDef/type-aliases/Any/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/TableDefInput/type-aliases/ForColumns/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/TableDefInput/type-aliases/ForSchema/index.md +23 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/ClientDocumentTableDef/index.md +23 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/ClientDocumentTableDefSymbol/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/ClientDocumentTableOptions/index.md +35 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/DefaultSqliteTableDef/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/DefaultSqliteTableDefConstrained/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/InputState/index.md +35 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/PrettifyFlat/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/SqliteTableDefForInput/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/SqliteTableDefForSchemaInput/index.md +23 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/StateType/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableDef/index.md +45 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableDefBase/index.md +47 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableDefInternalsSymbol/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableOptions/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableOptionsInput/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/ToColumns/index.md +11 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/WithDefaults/index.md +27 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/AutoIncrement/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/ClientDocumentTableDefSymbol/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/ColumnType/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/Default/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/PrimaryKeyId/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/TableDefInternalsSymbol/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/Unique/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/blob/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/boolean/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/clientDocument/index.md +56 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/column/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/createOptimisticEventSchema/index.md +43 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/datetime/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/getColumnDefForSchema/index.md +29 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/integer/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/isColumnDefinition/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/json/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/makeColumnSpec/index.md +22 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/makeState/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/real/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/tableIsClientDocumentTable/index.md +21 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/text/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withAutoIncrement/index.md +23 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withColumnType/index.md +61 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withDefault/index.md +61 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withPrimaryKey/index.md +23 -0
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withUnique/index.md +23 -0
- package/docs/api/livestore/@livestore/namespaces/State/type-aliases/QueryBuilderAstSymbol/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/type-aliases/QueryBuilderTypeId/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/variables/QueryBuilderAstSymbol/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/State/variables/QueryBuilderTypeId/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeContext/index.md +105 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResult/index.md +29 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResultAdvance/index.md +125 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResultRebase/index.md +125 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResultReject/index.md +117 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResultUnknownError/index.md +63 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/Payload/index.md +29 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/PayloadLocalPush/index.md +29 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/PayloadUpstream/index.md +29 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/PayloadUpstreamAdvance/index.md +29 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/PayloadUpstreamRebase/index.md +31 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/SyncState/index.md +179 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/variables/findDivergencePoint/index.md +36 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/variables/merge/index.md +35 -0
- package/docs/api/livestore/@livestore/namespaces/SyncState/variables/payloadFromMergeResult/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/EventlogMetaRow/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/SchemaEventDefsMetaRow/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/SchemaMetaRow/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/SessionChangesetMetaRow/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/SyncStatusRow/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/EVENTLOG_META_TABLE/index.md +12 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/SCHEMA_EVENT_DEFS_META_TABLE/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/SCHEMA_META_TABLE/index.md +10 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/SESSION_CHANGESET_META_TABLE/index.md +8 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/SYNC_STATUS_TABLE/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/eventlogMetaTable/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/eventlogSystemTables/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/isStateSystemTable/index.md +15 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/schemaEventDefsMetaTable/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/schemaMetaTable/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/sessionChangesetMetaTable/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/stateSystemTables/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/syncStatusTable/index.md +7 -0
- package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/Callback/index.md +19 -0
- package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/HandlingConfig/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/HandlingStrategy/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/Reason/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/ResolveContext/index.md +5 -0
- package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/Resolved/index.md +5 -0
- package/docs/api/livestore/README/index.md +128 -0
- package/docs/api/livestore/classes/IntentionalShutdownCause/index.md +107 -0
- package/docs/api/livestore/classes/SqliteDbWrapper/index.md +538 -0
- package/docs/api/livestore/classes/Store/index.md +605 -0
- package/docs/api/livestore/classes/StoreInterrupted/index.md +107 -0
- package/docs/api/livestore/functions/computed/index.md +31 -0
- package/docs/api/livestore/functions/createStore/index.md +29 -0
- package/docs/api/livestore/functions/createStorePromise/index.md +31 -0
- package/docs/api/livestore/functions/emptyDebugInfo/index.md +25 -0
- package/docs/api/livestore/functions/exposeDebugUtils/index.md +9 -0
- package/docs/api/livestore/functions/extractStackInfoFromStackTrace/index.md +15 -0
- package/docs/api/livestore/functions/isQueryable/index.md +15 -0
- package/docs/api/livestore/functions/nanoid/index.md +39 -0
- package/docs/api/livestore/functions/signal/index.md +27 -0
- package/docs/api/livestore/functions/stackInfoToString/index.md +15 -0
- package/docs/api/livestore/interfaces/ClientSession/index.md +89 -0
- package/docs/api/livestore/interfaces/CreateStoreOptions/index.md +280 -0
- package/docs/api/livestore/interfaces/InputSchema/index.md +50 -0
- package/docs/api/livestore/interfaces/InternalState/index.md +33 -0
- package/docs/api/livestore/interfaces/LiveQuery/index.md +139 -0
- package/docs/api/livestore/interfaces/LiveQueryDef/index.md +95 -0
- package/docs/api/livestore/interfaces/LiveStoreSchema/index.md +83 -0
- package/docs/api/livestore/interfaces/PreparedStatement/index.md +71 -0
- package/docs/api/livestore/interfaces/RcRef/index.md +37 -0
- package/docs/api/livestore/interfaces/Signal/index.md +321 -0
- package/docs/api/livestore/interfaces/SignalDef/index.md +119 -0
- package/docs/api/livestore/interfaces/SqliteDb/index.md +249 -0
- package/docs/api/livestore/type-aliases/Adapter/index.md +15 -0
- package/docs/api/livestore/type-aliases/Bindable/index.md +5 -0
- package/docs/api/livestore/type-aliases/BootStatus/index.md +5 -0
- package/docs/api/livestore/type-aliases/BootStatus-1/index.md +5 -0
- package/docs/api/livestore/type-aliases/DebugInfo/index.md +5 -0
- package/docs/api/livestore/type-aliases/DebugInfo-1/index.md +5 -0
- package/docs/api/livestore/type-aliases/DefineEventOptions/index.md +100 -0
- package/docs/api/livestore/type-aliases/EventDef/index.md +172 -0
- package/docs/api/livestore/type-aliases/EventDefFact/index.md +7 -0
- package/docs/api/livestore/type-aliases/EventDefFactInput/index.md +18 -0
- package/docs/api/livestore/type-aliases/EventDefFacts/index.md +7 -0
- package/docs/api/livestore/type-aliases/EventDefFactsGroup/index.md +50 -0
- package/docs/api/livestore/type-aliases/EventDefFactsSnapshot/index.md +7 -0
- package/docs/api/livestore/type-aliases/EventDefKey/index.md +7 -0
- package/docs/api/livestore/type-aliases/EventDefMap/index.md +16 -0
- package/docs/api/livestore/type-aliases/EventDefRecord/index.md +21 -0
- package/docs/api/livestore/type-aliases/FactsCallback/index.md +60 -0
- package/docs/api/livestore/type-aliases/LiveStoreContext/index.md +5 -0
- package/docs/api/livestore/type-aliases/LiveStoreContextRunning/index.md +21 -0
- package/docs/api/livestore/type-aliases/LiveStoreSchemaSymbol/index.md +5 -0
- package/docs/api/livestore/type-aliases/Materializer/index.md +59 -0
- package/docs/api/livestore/type-aliases/MaterializerContextQuery/index.md +64 -0
- package/docs/api/livestore/type-aliases/MaterializerResult/index.md +12 -0
- package/docs/api/livestore/type-aliases/MutableDebugInfo/index.md +5 -0
- package/docs/api/livestore/type-aliases/MutableDebugInfo-1/index.md +5 -0
- package/docs/api/livestore/type-aliases/OtelOptions/index.md +21 -0
- package/docs/api/livestore/type-aliases/PreparedBindValues/index.md +5 -0
- package/docs/api/livestore/type-aliases/PreparedBindValues-1/index.md +5 -0
- package/docs/api/livestore/type-aliases/QueryBuilder/index.md +61 -0
- package/docs/api/livestore/type-aliases/QueryBuilderAst/index.md +5 -0
- package/docs/api/livestore/type-aliases/QueryDebugInfo/index.md +37 -0
- package/docs/api/livestore/type-aliases/Queryable/index.md +13 -0
- package/docs/api/livestore/type-aliases/RefreshReason/index.md +75 -0
- package/docs/api/livestore/type-aliases/SessionIdSymbol/index.md +5 -0
- package/docs/api/livestore/type-aliases/ShutdownDeferred/index.md +5 -0
- package/docs/api/livestore/type-aliases/StackFrame/index.md +21 -0
- package/docs/api/livestore/type-aliases/StackInfo/index.md +13 -0
- package/docs/api/livestore/type-aliases/StoreInternals/index.md +156 -0
- package/docs/api/livestore/type-aliases/StoreInternalsSymbol/index.md +5 -0
- package/docs/api/livestore/type-aliases/SubscribeOptions/index.md +73 -0
- package/docs/api/livestore/type-aliases/Unsubscribe/index.md +9 -0
- package/docs/api/livestore/variables/LiveStoreSchemaSymbol/index.md +5 -0
- package/docs/api/livestore/variables/SessionIdSymbol/index.md +26 -0
- package/docs/api/livestore/variables/StoreInternalsSymbol/index.md +5 -0
- package/docs/api/livestore/variables/UNKNOWN_EVENT_SCHEMA_HASH/index.md +5 -0
- package/docs/api/livestore/variables/clientOnly/index.md +54 -0
- package/docs/api/livestore/variables/deepEqual/index.md +25 -0
- package/docs/api/livestore/variables/defineEvent/index.md +49 -0
- package/docs/api/livestore/variables/defineFacts/index.md +42 -0
- package/docs/api/livestore/variables/defineMaterializer/index.md +39 -0
- package/docs/api/livestore/variables/getDefaultValuesDecoded/index.md +25 -0
- package/docs/api/livestore/variables/getDefaultValuesEncoded/index.md +25 -0
- package/docs/api/livestore/variables/getEventDef/index.md +33 -0
- package/docs/api/livestore/variables/isLiveStoreSchema/index.md +21 -0
- package/docs/api/livestore/variables/liveStoreVersion/index.md +5 -0
- package/docs/api/livestore/variables/makeSchema/index.md +21 -0
- package/docs/api/livestore/variables/makeShutdownDeferred/index.md +5 -0
- package/docs/api/livestore/variables/materializers/index.md +58 -0
- package/docs/api/livestore/variables/normalizeUnknownEventHandling/index.md +15 -0
- package/docs/api/livestore/variables/prepareBindValues/index.md +26 -0
- package/docs/api/livestore/variables/provideOtel/index.md +45 -0
- package/docs/api/livestore/variables/queryDb/index.md +115 -0
- package/docs/api/livestore/variables/resolveEventDef/index.md +28 -0
- package/docs/api/livestore/variables/sql/index.md +24 -0
- package/docs/api/livestore/variables/synced/index.md +55 -0
- package/docs/api/react/README/index.md +24 -0
- package/docs/api/react/functions/LiveStoreProvider/index.md +21 -0
- package/docs/api/react/functions/useQuery/index.md +37 -0
- package/docs/api/react/functions/useQueryRef/index.md +69 -0
- package/docs/api/react/functions/useStackInfo/index.md +9 -0
- package/docs/api/react/functions/useStore/index.md +21 -0
- package/docs/api/react/functions/withReactApi/index.md +21 -0
- package/docs/api/react/type-aliases/Dispatch/index.md +21 -0
- package/docs/api/react/type-aliases/ReactApi/index.md +21 -0
- package/docs/api/react/type-aliases/SetStateAction/index.md +11 -0
- package/docs/api/react/type-aliases/SetStateActionPartial/index.md +11 -0
- package/docs/api/react/type-aliases/StateSetters/index.md +11 -0
- package/docs/api/react/type-aliases/UseClientDocumentResult/index.md +11 -0
- package/docs/api/react/variables/LiveStoreContext/index.md +5 -0
- package/docs/api/react/variables/useClientDocument/index.md +91 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/ReadableStream/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/Request/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/Response/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/Rpc/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/WebSocket/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/WebSocketPair/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/WebSocketRequestResponsePair/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/AbortController/index.md +53 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/AbortSignal/index.md +269 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Ai/index.md +175 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/AiGateway/index.md +99 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/AutoRAG/index.md +95 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiAutomaticSpeechRecognition/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiImageClassification/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiImageTextToText/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiImageToText/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiMultimodalEmbeddings/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiObjectDetection/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiSentenceSimilarity/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiSummarization/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextClassification/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextEmbeddings/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextGeneration/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextToImage/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextToSpeech/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTranslation/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_Base_En_V1_5/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_Large_En_V1_5/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_M3/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_Reranker_Base/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_Small_En_V1_5/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Black_Forest_Labs_Flux_1_Schnell/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Deepgram_Aura_1/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Deepgram_Nova_3/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Google_Gemma_3_12B_It/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Leonardo_Lucid_Origin/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Leonardo_Phoenix_1_0/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_Llama_Guard_3_8B/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_M2M100_1_2B/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Gpt_Oss_120B/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Gpt_Oss_20B/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Whisper/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Whisper_Large_V3_Turbo/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Whisper_Tiny_En/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Qwen_Qwq_32B/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Unum_Uform_Gen2_Qwen_500M/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Blob/index.md +151 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Body/index.md +112 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ByteLengthQueuingStrategy/index.md +79 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Cache/index.md +83 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CacheStorage/index.md +47 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CloseEvent/index.md +415 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CompressionStream/index.md +65 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CountQueuingStrategy/index.md +79 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Crypto/index.md +86 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CryptoKey/index.md +66 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CustomEvent/index.md +403 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/D1Database/index.md +113 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/D1DatabaseSession/index.md +70 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/D1PreparedStatement/index.md +161 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/DOMException/index.md +451 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/DecompressionStream/index.md +65 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/DigestStream/index.md +137 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/DurableObjectNamespace/index.md +135 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/EmailEvent/index.md +413 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ErrorEvent/index.md +469 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Event/index.md +296 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/EventSource/index.md +345 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/EventTarget/index.md +127 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ExtendableEvent/index.md +409 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/FetchEvent/index.md +451 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/File/index.md +211 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/FixedLengthStream/index.md +69 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/FormData/index.md +295 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/HTMLRewriter/index.md +73 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Headers/index.md +237 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/IdentityTransformStream/index.md +69 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/MessageEvent/index.md +439 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Performance/index.md +44 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/PromiseRejectionEvent/index.md +403 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/R2Bucket/index.md +207 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/R2Object/index.md +131 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ReadableStreamBYOBReader/index.md +123 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ReadableStreamDefaultReader/index.md +89 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ScheduledEvent/index.md +433 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/SqlStorageCursor/index.md +121 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/SqlStorageStatement/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/SubtleCrypto/index.md +432 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TailEvent/index.md +421 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TextDecoder/index.md +79 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TextDecoderStream/index.md +111 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TextEncoder/index.md +75 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TextEncoderStream/index.md +73 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ToMarkdownService/index.md +69 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TransformStream/index.md +75 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/URL/index.md +201 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/URLPattern/index.md +185 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/URLSearchParams/index.md +287 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Vectorize/index.md +189 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/VectorizeIndex/index.md +160 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WebSocketRequestResponsePair/index.md +53 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WorkerGlobalScope/index.md +145 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Workflow/index.md +92 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WorkflowInstance/index.md +117 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WritableStream/index.md +105 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WritableStreamDefaultWriter/index.md +143 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/addEventListener/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/atob/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/btoa/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/clearInterval/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/clearTimeout/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/dispatchEvent/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/fetch/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/queueMicrotask/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/removeEventListener/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/reportError/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/setInterval/index.md +51 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/setTimeout/index.md +51 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/structuredClone/index.md +25 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AiGatewayInternalError/index.md +55 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AiGatewayLogNotFound/index.md +55 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AiInternalError/index.md +55 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AiModels/index.md +611 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Baai_Bge_Reranker_Base_Input/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Baai_Bge_Reranker_Base_Output/index.md +23 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Input/index.md +23 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Output/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Deepgram_Aura_1_Input/index.md +63 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Deepgram_Nova_3_Input/index.md +369 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Deepgram_Nova_3_Output/index.md +47 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Leonardo_Lucid_Origin_Input/index.md +73 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Leonardo_Lucid_Origin_Output/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Leonardo_Phoenix_1_0_Input/index.md +73 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Async_Batch/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Messages/index.md +181 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Messages_Inner/index.md +181 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Prompt/index.md +131 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Prompt_Inner/index.md +131 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_Guard_3_8B_Input/index.md +61 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_Guard_3_8B_Output/index.md +57 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Openai_Whisper_Large_V3_Turbo_Input/index.md +63 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output/index.md +119 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Openai_Whisper_Output/index.md +53 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Openai_Whisper_Tiny_En_Output/index.md +53 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output/index.md +23 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Output/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AlarmInvocationInfo/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AnalyticsEngineDataPoint/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AnalyticsEngineDataset/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AsyncBatch/index.md +75 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AsyncResponse/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AutoRAGInternalError/index.md +55 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AutoRAGNameNotSetError/index.md +55 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AutoRAGNotFoundError/index.md +55 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AutoRAGUnauthorizedError/index.md +55 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3InputEmbedding/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3InputEmbedding1/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3InputQueryAndContexts/index.md +39 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3InputQueryAndContexts1/index.md +39 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3OuputEmbedding/index.md +31 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3OuputQuery/index.md +23 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3OutputEmbeddingForContexts/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BasicImageTransformations/index.md +115 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BasicImageTransformationsGravityCoordinates/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BlobOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CacheQueryOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CloseEventInit/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Cloudflare/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Comment/index.md +97 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Console/index.md +439 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Container/index.md +155 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ContainerStartupOptions/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ContentOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyAesKeyAlgorithm/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyArbitraryKeyAlgorithm/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyEllipticKeyAlgorithm/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyHmacKeyAlgorithm/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyKeyAlgorithm/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyPair/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyRsaKeyAlgorithm/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CustomEventCustomEventInit/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/D1ExecResult/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/D1Meta/index.md +104 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/D1Response/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DispatchNamespace/index.md +75 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Disposable/index.md +7 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Doctype/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DocumentEnd/index.md +25 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObject/index.md +113 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectClass/index.md +9 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectGetAlarmOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectGetOptions/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectId/index.md +41 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectListOptions/index.md +67 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectNamespaceGetDurableObjectOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectNamespaceNewUniqueIdOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectPutOptions/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectSetAlarmOptions/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectState/index.md +237 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectStorage/index.md +387 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectTransaction/index.md +257 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DynamicDispatchLimits/index.md +23 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DynamicDispatchOptions/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Element/index.md +285 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EmailMessage/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EndTag/index.md +67 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ErrorEventErrorEventInit/index.md +43 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventInit/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventListenerObject/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventSourceEventSourceInit/index.md +55 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventTargetAddEventListenerOptions/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventTargetEventListenerOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventTargetHandlerObject/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ExecutionContext/index.md +47 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ExportedHandler/index.md +81 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/FetcherPutOptions/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/FileOptions/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ForwardableEmailMessage/index.md +145 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/GPT_OSS_120B_Responses/index.md +33 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/GPT_OSS_120B_Responses_Async/index.md +33 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/GPT_OSS_20B_Responses/index.md +33 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/GPT_OSS_20B_Responses_Async/index.md +33 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Google_Gemma_3_12B_It_Messages/index.md +167 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Google_Gemma_3_12B_It_Prompt/index.md +123 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/HTMLRewriterDocumentContentHandlers/index.md +75 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/HTMLRewriterElementContentHandlers/index.md +57 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/HelloWorldBinding/index.md +39 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Hyperdrive/index.md +77 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IdentityTransformStreamQueuingStrategy/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ImageTransformationResult/index.md +51 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ImageTransformer/index.md +76 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ImagesBinding/index.md +61 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ImagesError/index.md +63 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesBase/index.md +198 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesBotManagement/index.md +31 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesBotManagementBase/index.md +62 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesBotManagementEnterprise/index.md +48 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesCloudflareAccessOrApiShield/index.md +24 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesCloudflareForSaaSEnterprise/index.md +22 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesExportedAuthenticatorMetadata/index.md +69 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesGeographicInformation/index.md +189 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesTLSClientAuth/index.md +256 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesTLSClientAuthPlaceholder/index.md +141 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/InferenceUpstreamError/index.md +55 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/JSONMode/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/JsonWebKey/index.md +151 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/JsonWebKeyWithKid/index.md +231 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespace/index.md +769 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespaceGetOptions/index.md +25 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespaceGetWithMetadataResult/index.md +37 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespaceListKey/index.md +37 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespaceListOptions/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespacePutOptions/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaBinding/index.md +30 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaError/index.md +66 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaTransformationGenerator/index.md +30 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaTransformationResult/index.md +54 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaTransformer/index.md +30 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Message/index.md +71 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessageBatch/index.md +55 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessageEventInit/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessagePort/index.md +205 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessagePortPostMessageOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessageSendRequest/index.md +33 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Messages/index.md +161 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Messages/index.md +159 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Prompt/index.md +131 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Mistral_Small_3_1_24B_Instruct_Messages/index.md +173 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Mistral_Small_3_1_24B_Instruct_Prompt/index.md +123 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Prompt/index.md +131 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/PubSubMessage/index.md +75 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Queue/index.md +53 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueueEvent/index.md +383 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueueRetryOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueueSendBatchOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueueSendOptions/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueuingStrategy/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueuingStrategyInit/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Qwen2_5_Coder_32B_Instruct_Messages/index.md +159 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Qwen2_5_Coder_32B_Instruct_Prompt/index.md +131 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Qwen_Qwq_32B_Messages/index.md +173 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Qwen_Qwq_32B_Prompt/index.md +123 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2Checksums/index.md +55 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2Conditional/index.md +43 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2Error/index.md +71 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2GetOptions/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2HTTPMetadata/index.md +51 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2ListOptions/index.md +43 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2MultipartOptions/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2MultipartUpload/index.md +75 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2ObjectBody/index.md +267 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2PutOptions/index.md +83 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2StringChecksums/index.md +43 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2UploadPartOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2UploadedPart/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RateLimit/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RateLimitOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RateLimitOutcome/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableByteStreamController/index.md +103 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStream/index.md +195 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamBYOBReaderReadableStreamBYOBReaderReadOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamBYOBRequest/index.md +83 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamDefaultController/index.md +91 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamGetReaderOptions/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamValuesOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableWritablePair/index.md +33 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Request/index.md +263 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInit/index.md +81 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfProperties/index.md +154 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfPropertiesImage/index.md +372 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfPropertiesImageDraw/index.md +222 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfPropertiesImageMinify/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfPropertiesR2/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Response/index.md +253 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ResponseInit/index.md +51 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RsaOtherPrimesInfo/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ScheduledController/index.md +31 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Scheduler/index.md +25 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SchedulerWaitOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ScriptVersion/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SecretsStoreSecret/index.md +18 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SendEmail/index.md +23 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ServiceWorkerGlobalScope/index.md +1042 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Socket/index.md +117 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SocketAddress/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SocketInfo/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SocketOptions/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SqlStorage/index.md +61 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/StreamPipeOptions/index.md +51 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/StructuredSerializeOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoDeriveKeyAlgorithm/index.md +51 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoEncryptAlgorithm/index.md +59 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoGenerateKeyAlgorithm/index.md +51 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoHashAlgorithm/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoImportKeyAlgorithm/index.md +43 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoSignAlgorithm/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SyncKvListOptions/index.md +51 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SyncKvStorage/index.md +97 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TestController/index.md +3 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Text/index.md +105 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TextDecoderConstructorOptions/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TextDecoderDecodeOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TextDecoderStreamTextDecoderStreamInit/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TextEncoderEncodeIntoResult/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TlsOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceDiagnosticChannelEvent/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceException/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItem/index.md +131 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemAlarmEventInfo/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemCustomEventInfo/index.md +3 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemEmailEventInfo/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemFetchEventInfo/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemFetchEventInfoRequest/index.md +47 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemFetchEventInfoResponse/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemHibernatableWebSocketEventInfo/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemHibernatableWebSocketEventInfoClose/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemHibernatableWebSocketEventInfoError/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemHibernatableWebSocketEventInfoMessage/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemJsRpcEventInfo/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemQueueEventInfo/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemScheduledEventInfo/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemTailEventInfo/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemTailEventInfoTailItem/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceLog/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceMetrics/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TransformStreamDefaultController/index.md +91 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Transformer/index.md +113 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/URLPatternComponentResult/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/URLPatternInit/index.md +75 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/URLPatternOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/URLPatternResult/index.md +75 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/UnderlyingByteSource/index.md +73 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/UnderlyingSink/index.md +87 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/UnderlyingSource/index.md +79 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/UnsafeTraceMetrics/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeAsyncMutation/index.md +16 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeError/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeIndexDetails/index.md +58 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeIndexInfo/index.md +45 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeMatches/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeQueryOptions/index.md +43 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeVector/index.md +45 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeVectorMutation/index.md +25 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WebSocket/index.md +255 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerLoader/index.md +25 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerLoaderModule/index.md +59 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerLoaderWorkerCode/index.md +147 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerStub/index.md +31 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerStubEntrypointOptions/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkflowError/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkflowInstanceCreateOptions/index.md +48 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WritableStreamDefaultController/index.md +47 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/interfaces/Env/index.md +3 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/interfaces/GlobalProps/index.md +3 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/type-aliases/Exports/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/type-aliases/GlobalProp/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/type-aliases/MainModule/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/DurableObject/index.md +161 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/RpcTarget/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/WorkerEntrypoint/index.md +195 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/WorkflowEntrypoint/index.md +73 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/WorkflowStep/index.md +151 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/functions/waitUntil/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/RpcStub/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowBackoff/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowDelayDuration/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowDurationLabel/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowEvent/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowRetentionDuration/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowSleepDuration/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowStepConfig/index.md +33 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowStepEvent/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowTimeoutDuration/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/variables/RpcStub/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/variables/env/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/DurableObjectBranded/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/RpcTargetBranded/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/StubBase/index.md +33 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/WorkerEntrypointBranded/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/WorkflowEntrypointBranded/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/BaseType/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/EntrypointBranded/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/MaybeCallableProvider/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/MaybeDisposable/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/MaybeProvider/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/MethodOrProperty/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Provider/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Result/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Serializable/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Stub/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Stubable/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Stubify/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Unstubify/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/UnstubifyAll/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/DURABLE_OBJECT_BRAND/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/RPC_STUB_BRAND/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/RPC_TARGET_BRAND/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/WORKER_ENTRYPOINT_BRAND/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/WORKFLOW_ENTRYPOINT_BRAND/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/AlarmEventInfo/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Attribute/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Attributes/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/CustomEventInfo/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/DiagnosticChannelEvent/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/EmailEventInfo/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Exception/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/FetchEventInfo/index.md +43 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/FetchResponseInfo/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Header/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/HibernatableWebSocketEventInfo/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/HibernatableWebSocketEventInfoClose/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/HibernatableWebSocketEventInfoError/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/HibernatableWebSocketEventInfoMessage/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/JsRpcEventInfo/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Log/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Onset/index.md +83 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Outcome/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/QueueEventInfo/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Return/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/ScheduledEventInfo/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/ScriptVersion/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/SpanClose/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/SpanContext/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/SpanOpen/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/TailEvent/index.md +49 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/TraceEventInfo/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/EventOutcome/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/EventType/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/TailEventHandler/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/TailEventHandlerObject/index.md +69 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/TailEventHandlerType/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/CompileError/index.md +199 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Global/index.md +45 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Instance/index.md +33 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Memory/index.md +47 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Module/index.md +71 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/RuntimeError/index.md +199 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Table/index.md +95 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/functions/instantiate/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/functions/validate/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/GlobalDescriptor/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/MemoryDescriptor/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/ModuleExportDescriptor/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/ModuleImportDescriptor/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/TableDescriptor/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ExportValue/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/Exports/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ImportExportKind/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ImportValue/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/Imports/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ModuleImports/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/TableKind/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ValueType/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AIGatewayHeaders/index.md +113 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AIGatewayProviders/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AIGatewayUniversalRequest/index.md +37 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiAutomaticSpeechRecognitionInput/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiAutomaticSpeechRecognitionOutput/index.md +41 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiGatewayLog/index.md +205 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiGatewayPatchLog/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiIMultimodalEmbeddingsOutput/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageClassificationInput/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageClassificationOutput/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageTextToTextInput/index.md +109 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageTextToTextOutput/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageToTextInput/index.md +101 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageToTextOutput/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiModelListType/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiModelsSearchObject/index.md +81 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiModelsSearchParams/index.md +61 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiMultimodalEmbeddingsInput/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiObjectDetectionInput/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiObjectDetectionOutput/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiOptions/index.md +58 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiSentenceSimilarityInput/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiSentenceSimilarityOutput/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiSummarizationInput/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiSummarizationOutput/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextClassificationInput/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextClassificationOutput/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextEmbeddingsInput/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextEmbeddingsOutput/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationFunctionsInput/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationInput/index.md +125 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationOutput/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationResponseFormat/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationToolInput/index.md +49 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationToolLegacyInput/index.md +45 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationToolLegacyOutput/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationToolOutput/index.md +37 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextToImageInput/index.md +93 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextToImageOutput/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextToSpeechInput/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextToSpeechOutput/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTranslationInput/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTranslationOutput/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Base_En_V1_5_Input/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Base_En_V1_5_Output/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Large_En_V1_5_Input/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Large_En_V1_5_Output/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_M3_Input/index.md +19 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_M3_Output/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Small_En_V1_5_Input/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Small_En_V1_5_Output/index.md +27 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Deepgram_Aura_1_Output/index.md +7 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Google_Gemma_3_12B_It_Input/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Google_Gemma_3_12B_It_Output/index.md +65 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Leonardo_Phoenix_1_0_Output/index.md +7 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Input/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Output/index.md +37 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Input/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Output/index.md +49 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output/index.md +83 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_M2M100_1_2B_Input/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_M2M100_1_2B_Output/index.md +17 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Input/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Output/index.md +65 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Gpt_Oss_120B_Input/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Gpt_Oss_120B_Output/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Gpt_Oss_20B_Input/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Gpt_Oss_20B_Output/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Whisper_Input/index.md +17 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Whisper_Tiny_En_Input/index.md +17 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input/index.md +43 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Input/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Output/index.md +65 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Qwen_Qwq_32B_Input/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Qwen_Qwq_32B_Output/index.md +65 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Input/index.md +69 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagAiSearchRequest/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagAiSearchRequestStreaming/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagAiSearchResponse/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagListResponse/index.md +35 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagSearchRequest/index.md +69 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagSearchResponse/index.md +65 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/BodyInit/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/BufferSource/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/CertVerificationStatus/index.md +7 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/CfProperties/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ComparisonFilter/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/CompoundFilter/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ContinentCode/index.md +7 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ConversionOptions/index.md +59 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ConversionRequestOptions/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ConversionResponse/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/D1Result/index.md +17 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/D1SessionBookmark/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/D1SessionConstraint/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/DurableObjectJurisdiction/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/DurableObjectLocationHint/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/DurableObjectStub/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EmailExportedHandler/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EmbeddedImageConversionOptions/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EventContext/index.md +121 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EventListener/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EventListenerOrEventListenerObject/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EventPluginContext/index.md +133 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerFetchHandler/index.md +33 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerQueueHandler/index.md +33 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerScheduledHandler/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerTailHandler/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerTailStreamHandler/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerTestHandler/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerTraceHandler/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Fetcher/index.md +53 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/GatewayOptions/index.md +77 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/GatewayRetries/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/HeadersInit/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageConversionOptions/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageDrawOptions/index.md +53 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageInfoResponse/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageInputOptions/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageOutputOptions/index.md +37 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageTransform/index.md +133 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageTransformationOutputOptions/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/IncomingRequestCfProperties/index.md +13 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/IncomingRequestCfPropertiesEdgeRequestKeepAliveStatus/index.md +7 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/InstanceStatus/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Iso3166Alpha2Code/index.md +7 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/KVNamespaceListResult/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/LoopbackDurableObjectClass/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/LoopbackForExport/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/LoopbackServiceStub/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/MarkdownDocument/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/MediaTransformationInputOptions/index.md +38 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/MediaTransformationOutputOptions/index.md +68 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/PagesFunction/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/PagesPluginFunction/index.md +33 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Params/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/QueueContentType/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/R2Objects/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/R2Range/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ReadableStreamReadResult/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/RequestInfo/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/RoleScopedChatInput/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Service/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/SqlStorageValue/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/SupportedFileFormat/index.md +21 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/TypedArray/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/UniversalGatewayOptions/index.md +17 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/UsageTags/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorFloatArray/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeDistanceMetric/index.md +8 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeIndexConfig/index.md +7 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeMatch/index.md +15 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeMetadataRetrievalLevel/index.md +9 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadata/index.md +7 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadataFilter/index.md +11 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadataFilterCollectionOp/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadataFilterOp/index.md +9 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadataValue/index.md +7 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WebSocketEventMap/index.md +37 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkerGlobalScopeEventMap/index.md +45 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkerVersionMetadata/index.md +38 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkflowDurationLabel/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkflowRetentionDuration/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkflowSleepDuration/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/Cloudflare/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/ReadableStream/index.md +51 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/Request/index.md +29 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/Response/index.md +73 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/WebSocket/index.md +61 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/WebSocketPair/index.md +17 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/caches/index.md +9 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/console/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/crypto/index.md +12 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/onmessage/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/origin/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/performance/index.md +10 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/scheduler/index.md +5 -0
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/self/index.md +5 -0
- package/docs/api/sync-cf/README/index.md +37 -0
- package/docs/api/sync-cf/functions/handleSyncRequest/index.md +117 -0
- package/docs/api/sync-cf/functions/makeWorker/index.md +35 -0
- package/docs/api/sync-cf/functions/matchSyncRequest/index.md +19 -0
- package/docs/api/sync-cf/interfaces/SyncBackendRpcInterface/index.md +31 -0
- package/docs/api/sync-cf/type-aliases/CFWorker/index.md +47 -0
- package/docs/api/sync-cf/type-aliases/DoObject/index.md +11 -0
- package/docs/api/sync-cf/type-aliases/DoState/index.md +5 -0
- package/docs/api/sync-cf/type-aliases/DurableObjectId/index.md +5 -0
- package/docs/api/sync-cf/type-aliases/Env/index.md +5 -0
- package/docs/api/sync-cf/type-aliases/MakeDurableObjectClass/index.md +29 -0
- package/docs/api/sync-cf/type-aliases/MakeDurableObjectClassOptions/index.md +179 -0
- package/docs/api/sync-cf/type-aliases/MakeWorkerOptions/index.md +80 -0
- package/docs/api/sync-cf/type-aliases/RpcSubscription/index.md +55 -0
- package/docs/api/sync-cf/type-aliases/StoreId/index.md +5 -0
- package/docs/api/sync-cf/variables/PERSISTENCE_FORMAT_VERSION/index.md +20 -0
- package/docs/api/sync-cf/variables/WebSocketAttachmentSchema/index.md +5 -0
- package/docs/api/sync-cf/variables/encodeIncomingMessage/index.md +27 -0
- package/docs/api/sync-cf/variables/encodeOutgoingMessage/index.md +19 -0
- package/docs/api/sync-cf/variables/makeDurableObject/index.md +39 -0
- package/docs/api/sync-electric/@livestore/namespaces/ApiSchema/variables/ApiPayload/index.md +5 -0
- package/docs/api/sync-electric/@livestore/namespaces/ApiSchema/variables/ArgsSchema/index.md +5 -0
- package/docs/api/sync-electric/@livestore/namespaces/ApiSchema/variables/PullPayload/index.md +5 -0
- package/docs/api/sync-electric/@livestore/namespaces/ApiSchema/variables/PushPayload/index.md +5 -0
- package/docs/api/sync-electric/README/index.md +29 -0
- package/docs/api/sync-electric/classes/InvalidOperationError/index.md +99 -0
- package/docs/api/sync-electric/functions/makeElectricUrl/index.md +69 -0
- package/docs/api/sync-electric/functions/makeSyncBackend/index.md +15 -0
- package/docs/api/sync-electric/functions/syncBackendOptions/index.md +21 -0
- package/docs/api/sync-electric/functions/toTableName/index.md +15 -0
- package/docs/api/sync-electric/interfaces/SyncBackendOptions/index.md +67 -0
- package/docs/api/sync-electric/type-aliases/SyncMetadata/index.md +5 -0
- package/docs/api/sync-electric/variables/PERSISTENCE_FORMAT_VERSION/index.md +28 -0
- package/docs/api/sync-electric/variables/SyncMetadata/index.md +5 -0
- package/docs/contributing/contributing/index.md +63 -0
- package/docs/contributing/docs/index.md +19 -0
- package/docs/contributing/monorepo/index.md +195 -0
- package/docs/data-modeling/ai-agent/index.md +5 -0
- package/docs/data-modeling/complex-ui-state/index.md +5 -0
- package/docs/data-modeling/index.md +30 -0
- package/docs/data-modeling/todo-workspaces/index.md +891 -0
- package/docs/data-modeling/turnbased-game/index.md +7 -0
- package/docs/evaluation/design-decisions/index.md +33 -0
- package/docs/evaluation/event-sourcing/index.md +40 -0
- package/docs/evaluation/how-livestore-works/index.md +56 -0
- package/docs/evaluation/performance/index.md +25 -0
- package/docs/evaluation/state-of-the-project/index.md +37 -0
- package/docs/evaluation/technology-comparison/index.md +40 -0
- package/docs/evaluation/when-livestore/index.md +81 -0
- package/docs/examples/cloudflare-adapter/index.md +44 -0
- package/docs/examples/expo-adapter/index.md +44 -0
- package/docs/examples/index.md +55 -0
- package/docs/examples/node-adapter/index.md +44 -0
- package/docs/examples/web-adapter/index.md +52 -0
- package/docs/getting-started/expo/index.md +736 -0
- package/docs/getting-started/node/index.md +115 -0
- package/docs/getting-started/react-web/index.md +573 -0
- package/docs/getting-started/solid/index.md +3 -0
- package/docs/getting-started/vue/index.md +286 -0
- package/docs/index.md +164 -0
- package/docs/llms.txt +104 -0
- package/docs/misc/CODE_OF_CONDUCT/index.md +133 -0
- package/docs/misc/FAQ/index.md +37 -0
- package/docs/misc/community/index.md +87 -0
- package/docs/misc/credits/index.md +14 -0
- package/docs/misc/design-partners/index.md +13 -0
- package/docs/misc/package-management/index.md +21 -0
- package/docs/misc/resources/index.md +46 -0
- package/docs/misc/sponsoring/index.md +104 -0
- package/docs/misc/troubleshooting/index.md +82 -0
- package/docs/patterns/ai/index.md +15 -0
- package/docs/patterns/anonymous-user-transition/index.md +10 -0
- package/docs/patterns/app-evolution/index.md +72 -0
- package/docs/patterns/auth/index.md +226 -0
- package/docs/patterns/effect/index.md +1495 -0
- package/docs/patterns/encryption/index.md +6 -0
- package/docs/patterns/external-data/index.md +5 -0
- package/docs/patterns/file-management/index.md +11 -0
- package/docs/patterns/file-structure/index.md +14 -0
- package/docs/patterns/list-ordering/index.md +369 -0
- package/docs/patterns/offline/index.md +32 -0
- package/docs/patterns/orm/index.md +18 -0
- package/docs/patterns/presence/index.md +11 -0
- package/docs/patterns/rich-text-editing/index.md +66 -0
- package/docs/patterns/side-effects/index.md +11 -0
- package/docs/patterns/state-machines/index.md +11 -0
- package/docs/patterns/storybook/index.md +192 -0
- package/docs/patterns/undo-redo/index.md +9 -0
- package/docs/patterns/version-control/index.md +8 -0
- package/docs/reference/cli/index.md +57 -0
- package/docs/reference/concepts/index.md +78 -0
- package/docs/reference/debugging/index.md +17 -0
- package/docs/reference/devtools/index.md +79 -0
- package/docs/reference/events/index.md +340 -0
- package/docs/reference/framework-integrations/custom-elements/index.md +142 -0
- package/docs/reference/framework-integrations/react-integration/index.md +906 -0
- package/docs/reference/framework-integrations/solid-integration/index.md +293 -0
- package/docs/reference/framework-integrations/svelte-integration/index.md +42 -0
- package/docs/reference/framework-integrations/vue-integration/index.md +98 -0
- package/docs/reference/mcp/index.md +165 -0
- package/docs/reference/opentelemetry/index.md +36 -0
- package/docs/reference/platform-adapters/cloudflare-durable-object-adapter/index.md +453 -0
- package/docs/reference/platform-adapters/electron-adapter/index.md +15 -0
- package/docs/reference/platform-adapters/expo-adapter/index.md +43 -0
- package/docs/reference/platform-adapters/node-adapter/index.md +160 -0
- package/docs/reference/platform-adapters/tauri-adapter/index.md +15 -0
- package/docs/reference/platform-adapters/web-adapter/index.md +218 -0
- package/docs/reference/reactivity-system/index.md +202 -0
- package/docs/reference/state/materializers/index.md +300 -0
- package/docs/reference/state/sql-queries/index.md +72 -0
- package/docs/reference/state/sqlite/index.md +45 -0
- package/docs/reference/state/sqlite-schema/index.md +306 -0
- package/docs/reference/state/sqlite-schema-effect/index.md +300 -0
- package/docs/reference/store/index.md +253 -0
- package/docs/reference/syncing/index.md +136 -0
- package/docs/reference/syncing/server-side-clients/index.md +49 -0
- package/docs/reference/syncing/sync-provider/cloudflare/index.md +773 -0
- package/docs/reference/syncing/sync-provider/custom/index.md +65 -0
- package/docs/reference/syncing/sync-provider/electricsql/index.md +159 -0
- package/docs/reference/syncing/sync-provider/s2/index.md +230 -0
- package/docs/tutorial/0-welcome/index.md +48 -0
- package/docs/tutorial/1-setup-starter-project/index.md +105 -0
- package/docs/tutorial/2-deploy-to-cloudflare/index.md +195 -0
- package/docs/tutorial/3-read-and-write-todos-via-livestore/index.md +511 -0
- package/docs/tutorial/4-sync-data-via-cloudflare/index.md +210 -0
- package/docs/tutorial/5-expand-business-logic/index.md +174 -0
- package/docs/tutorial/6-persist-ui-state/index.md +453 -0
- package/docs/tutorial/7-next-steps/index.md +22 -0
- package/package.json +10 -9
- package/src/SqliteDbWrapper.test.ts +2 -2
- package/src/ambient.d.ts +3 -3
- package/src/effect/LiveStore.ts +8 -8
- package/src/live-queries/__snapshots__/db-query.test.ts.snap +589 -145
- package/src/live-queries/base-class.ts +6 -3
- package/src/live-queries/client-document-get-query.ts +3 -3
- package/src/live-queries/db-query.test.ts +172 -29
- package/src/live-queries/db-query.ts +16 -10
- package/src/mod.ts +19 -2
- package/src/reactive.test.ts +150 -1
- package/src/reactive.ts +47 -39
- package/src/store/create-store.ts +96 -28
- package/src/store/devtools.ts +42 -28
- package/src/store/store-types.test.ts +50 -0
- package/src/store/store-types.ts +193 -16
- package/src/store/store.ts +458 -300
- package/src/utils/dev.ts +4 -0
- package/src/utils/tests/fixture.ts +2 -1
- package/src/utils/tests/otel.ts +31 -20
- package/dist/store/store-shutdown.test.d.ts +0 -2
- package/dist/store/store-shutdown.test.d.ts.map +0 -1
- package/dist/store/store-shutdown.test.js +0 -103
- package/dist/store/store-shutdown.test.js.map +0 -1
package/src/store/store.ts
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
type Bindable,
|
|
3
3
|
type ClientSession,
|
|
4
|
-
type ClientSessionSyncProcessor,
|
|
5
4
|
Devtools,
|
|
6
|
-
getDurationMsFromSpan,
|
|
7
5
|
getExecStatementsFromMaterializer,
|
|
8
6
|
getResultSchema,
|
|
9
7
|
hashMaterializerResults,
|
|
10
8
|
IntentionalShutdownCause,
|
|
11
9
|
isQueryBuilder,
|
|
12
10
|
liveStoreVersion,
|
|
11
|
+
MaterializeError,
|
|
12
|
+
MaterializerHashMismatchError,
|
|
13
13
|
makeClientSessionSyncProcessor,
|
|
14
14
|
type PreparedBindValues,
|
|
15
15
|
prepareBindValues,
|
|
16
|
-
type QueryBuilder,
|
|
17
16
|
QueryBuilderAstSymbol,
|
|
18
17
|
replaceSessionIdSymbol,
|
|
19
|
-
|
|
18
|
+
UnknownError,
|
|
20
19
|
} from '@livestore/common'
|
|
21
20
|
import type { LiveStoreSchema } from '@livestore/common/schema'
|
|
22
|
-
import {
|
|
23
|
-
import { assertNever, isDevEnv, notYetImplemented } from '@livestore/utils'
|
|
21
|
+
import { LiveStoreEvent, resolveEventDef, SystemTables } from '@livestore/common/schema'
|
|
22
|
+
import { assertNever, isDevEnv, notYetImplemented, omitUndefineds, shouldNeverHappen } from '@livestore/utils'
|
|
24
23
|
import type { Scope } from '@livestore/utils/effect'
|
|
25
24
|
import {
|
|
26
25
|
Cause,
|
|
@@ -37,13 +36,7 @@ import {
|
|
|
37
36
|
import { nanoid } from '@livestore/utils/nanoid'
|
|
38
37
|
import * as otel from '@opentelemetry/api'
|
|
39
38
|
|
|
40
|
-
import type {
|
|
41
|
-
LiveQuery,
|
|
42
|
-
LiveQueryDef,
|
|
43
|
-
ReactivityGraph,
|
|
44
|
-
ReactivityGraphContext,
|
|
45
|
-
SignalDef,
|
|
46
|
-
} from '../live-queries/base-class.ts'
|
|
39
|
+
import type { LiveQuery, ReactivityGraphContext, SignalDef } from '../live-queries/base-class.ts'
|
|
47
40
|
import { makeReactivityGraph } from '../live-queries/base-class.ts'
|
|
48
41
|
import { makeExecBeforeFirstRun } from '../live-queries/client-document-get-query.ts'
|
|
49
42
|
import { queryDb } from '../live-queries/db-query.ts'
|
|
@@ -51,50 +44,109 @@ import type { Ref } from '../reactive.ts'
|
|
|
51
44
|
import { SqliteDbWrapper } from '../SqliteDbWrapper.ts'
|
|
52
45
|
import { ReferenceCountedSet } from '../utils/data-structures.ts'
|
|
53
46
|
import { downloadBlob, exposeDebugUtils } from '../utils/dev.ts'
|
|
54
|
-
import
|
|
55
|
-
|
|
56
|
-
RefreshReason,
|
|
57
|
-
StoreCommitOptions,
|
|
58
|
-
StoreEventsOptions,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
import {
|
|
48
|
+
type Queryable,
|
|
49
|
+
type RefreshReason,
|
|
50
|
+
type StoreCommitOptions,
|
|
51
|
+
type StoreEventsOptions,
|
|
52
|
+
type StoreInternals,
|
|
53
|
+
StoreInternalsSymbol,
|
|
54
|
+
type StoreOptions,
|
|
55
|
+
type StoreOtel,
|
|
56
|
+
type SubscribeOptions,
|
|
57
|
+
type Unsubscribe,
|
|
62
58
|
} from './store-types.ts'
|
|
63
59
|
|
|
60
|
+
export type SubscribeFn = {
|
|
61
|
+
<TResult>(
|
|
62
|
+
query: Queryable<TResult>,
|
|
63
|
+
onUpdate: (value: TResult) => void,
|
|
64
|
+
options?: SubscribeOptions<TResult>,
|
|
65
|
+
): Unsubscribe
|
|
66
|
+
<TResult>(query: Queryable<TResult>, options?: SubscribeOptions<TResult>): AsyncIterable<TResult>
|
|
67
|
+
}
|
|
68
|
+
|
|
64
69
|
if (isDevEnv()) {
|
|
65
70
|
exposeDebugUtils()
|
|
66
71
|
}
|
|
67
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Central interface to a LiveStore database providing reactive queries, event commits, and sync.
|
|
75
|
+
*
|
|
76
|
+
* A `Store` instance wraps a local SQLite database that is kept in sync with other clients via
|
|
77
|
+
* an event log. Instead of mutating state directly, you commit events that get materialized
|
|
78
|
+
* into database rows. Queries automatically re-run when their underlying tables change.
|
|
79
|
+
*
|
|
80
|
+
* ## Creating a Store
|
|
81
|
+
*
|
|
82
|
+
* Use `createStore` (Effect-based) or `createStorePromise` to obtain a Store instance.
|
|
83
|
+
* In React applications, use the `<LiveStoreProvider>` component which manages the Store lifecycle
|
|
84
|
+
* and exposes it via React context.
|
|
85
|
+
*
|
|
86
|
+
* ## Querying Data
|
|
87
|
+
*
|
|
88
|
+
* Use {@link Store.query} for one-shot reads or {@link Store.subscribe} for reactive subscriptions.
|
|
89
|
+
* Both accept query builders (e.g. `tables.todo.where({ complete: true })`) or custom `LiveQueryDef`s.
|
|
90
|
+
*
|
|
91
|
+
* ## Committing Events
|
|
92
|
+
*
|
|
93
|
+
* Use {@link Store.commit} to persist events. Events are immediately materialized locally and
|
|
94
|
+
* asynchronously synced to other clients. Multiple events can be committed atomically.
|
|
95
|
+
*
|
|
96
|
+
* ## Lifecycle
|
|
97
|
+
*
|
|
98
|
+
* The Store must be shut down when no longer needed via {@link Store.shutdown} or
|
|
99
|
+
* {@link Store.shutdownPromise}. Framework integrations (React, Effect) handle this automatically.
|
|
100
|
+
*
|
|
101
|
+
* @typeParam TSchema - The LiveStore schema defining tables and events
|
|
102
|
+
* @typeParam TContext - Optional user-defined context attached to the Store (e.g. for dependency injection)
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* // Query data
|
|
107
|
+
* const todos = store.query(tables.todo.where({ complete: false }))
|
|
108
|
+
*
|
|
109
|
+
* // Subscribe to changes
|
|
110
|
+
* const unsubscribe = store.subscribe(tables.todo.all(), (todos) => {
|
|
111
|
+
* console.log('Todos updated:', todos)
|
|
112
|
+
* })
|
|
113
|
+
*
|
|
114
|
+
* // Commit an event
|
|
115
|
+
* store.commit(events.todoCreated({ id: nanoid(), text: 'Buy milk' }))
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
68
118
|
export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TContext = {}> extends Inspectable.Class {
|
|
119
|
+
/** Unique identifier for this Store instance, stable for its lifetime. */
|
|
69
120
|
readonly storeId: string
|
|
70
|
-
reactivityGraph: ReactivityGraph
|
|
71
|
-
sqliteDbWrapper: SqliteDbWrapper
|
|
72
|
-
clientSession: ClientSession
|
|
73
|
-
schema: LiveStoreSchema
|
|
74
|
-
context: TContext
|
|
75
|
-
otel: StoreOtel
|
|
76
|
-
/**
|
|
77
|
-
* Note we're using `Ref<null>` here as we don't care about the value but only about *that* something has changed.
|
|
78
|
-
* This only works in combination with `equal: () => false` which will always trigger a refresh.
|
|
79
|
-
*/
|
|
80
|
-
tableRefs: { [key: string]: Ref<null, ReactivityGraphContext, RefreshReason> }
|
|
81
|
-
|
|
82
|
-
/** Tracks whether the store has been shut down */
|
|
83
|
-
private isShutdown = false
|
|
84
|
-
|
|
85
|
-
private effectContext: {
|
|
86
|
-
runtime: Runtime.Runtime<Scope.Scope>
|
|
87
|
-
lifetimeScope: Scope.Scope
|
|
88
|
-
}
|
|
89
121
|
|
|
90
|
-
/**
|
|
91
|
-
|
|
122
|
+
/** The LiveStore schema defining tables, events, and materializers. */
|
|
123
|
+
readonly schema: LiveStoreSchema
|
|
92
124
|
|
|
93
|
-
|
|
94
|
-
readonly
|
|
95
|
-
|
|
125
|
+
/** User-defined context attached to this Store (e.g. for dependency injection). */
|
|
126
|
+
readonly context: TContext
|
|
127
|
+
/**
|
|
128
|
+
* Reactive connectivity updates emitted by the backing sync backend.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```ts
|
|
132
|
+
* import { Effect, Stream } from 'effect'
|
|
133
|
+
*
|
|
134
|
+
* const status = await store.networkStatus.pipe(Effect.runPromise)
|
|
135
|
+
*
|
|
136
|
+
* await store.networkStatus.changes.pipe(
|
|
137
|
+
* Stream.tap((next) => console.log('network status update', next)),
|
|
138
|
+
* Stream.runDrain,
|
|
139
|
+
* Effect.scoped,
|
|
140
|
+
* Effect.runPromise,
|
|
141
|
+
* )
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
readonly networkStatus: ClientSession['leaderThread']['networkStatus']
|
|
96
145
|
|
|
97
|
-
|
|
146
|
+
/**
|
|
147
|
+
* Store internals. Not part of the public API — shapes and semantics may change without notice.
|
|
148
|
+
*/
|
|
149
|
+
readonly [StoreInternalsSymbol]: StoreInternals
|
|
98
150
|
|
|
99
151
|
// #region constructor
|
|
100
152
|
constructor({
|
|
@@ -112,95 +164,112 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
112
164
|
super()
|
|
113
165
|
|
|
114
166
|
this.storeId = storeId
|
|
115
|
-
|
|
116
|
-
this.sqliteDbWrapper = new SqliteDbWrapper({ otel: otelOptions, db: clientSession.sqliteDb })
|
|
117
|
-
this.clientSession = clientSession
|
|
118
167
|
this.schema = schema
|
|
119
168
|
this.context = context
|
|
120
169
|
|
|
121
|
-
this.effectContext = effectContext
|
|
122
|
-
|
|
123
170
|
const reactivityGraph = makeReactivityGraph()
|
|
124
171
|
|
|
125
172
|
const syncSpan = otelOptions.tracer.startSpan('LiveStore:sync', {}, otelOptions.rootSpanContext)
|
|
126
173
|
|
|
127
|
-
|
|
174
|
+
const syncProcessor = makeClientSessionSyncProcessor({
|
|
128
175
|
schema,
|
|
129
176
|
clientSession,
|
|
130
177
|
runtime: effectContext.runtime,
|
|
131
|
-
materializeEvent: (
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
void this.shutdown(
|
|
149
|
-
Cause.fail(
|
|
150
|
-
UnexpectedError.make({
|
|
151
|
-
cause: `Materializer hash mismatch detected for event "${eventDecoded.name}".`,
|
|
152
|
-
note: `Please make sure your event materializer is a pure function without side effects.`,
|
|
153
|
-
}),
|
|
154
|
-
),
|
|
155
|
-
)
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
const writeTablesForEvent = new Set<string>()
|
|
159
|
-
|
|
160
|
-
const exec = () => {
|
|
161
|
-
for (const {
|
|
162
|
-
statementSql,
|
|
163
|
-
bindValues,
|
|
164
|
-
writeTables = this.sqliteDbWrapper.getTablesUsed(statementSql),
|
|
165
|
-
} of execArgsArr) {
|
|
166
|
-
try {
|
|
167
|
-
this.sqliteDbWrapper.cachedExecute(statementSql, bindValues, { otelContext, writeTables })
|
|
168
|
-
} catch (cause) {
|
|
169
|
-
throw UnexpectedError.make({
|
|
170
|
-
cause,
|
|
171
|
-
note: `Error executing materializer for event "${eventDecoded.name}".\nStatement: ${statementSql}\nBind values: ${JSON.stringify(bindValues)}`,
|
|
172
|
-
})
|
|
178
|
+
materializeEvent: Effect.fn('client-session-sync-processor:materialize-event')(
|
|
179
|
+
(eventEncoded, { withChangeset, materializerHashLeader }) =>
|
|
180
|
+
// We need to use `Effect.gen` (even though we're using `Effect.fn`) so that we can pass `this` to the function
|
|
181
|
+
Effect.gen(this, function* () {
|
|
182
|
+
const resolution = yield* resolveEventDef(schema, {
|
|
183
|
+
operation: '@livestore/livestore:store:materializeEvent',
|
|
184
|
+
event: eventEncoded,
|
|
185
|
+
})
|
|
186
|
+
|
|
187
|
+
if (resolution._tag === 'unknown') {
|
|
188
|
+
// Runtime schema doesn't know this event yet; skip materialization but
|
|
189
|
+
// keep the log entry so upgraded clients can replay it later.
|
|
190
|
+
return {
|
|
191
|
+
writeTables: new Set<string>(),
|
|
192
|
+
sessionChangeset: { _tag: 'no-op' as const },
|
|
193
|
+
materializerHash: Option.none(),
|
|
194
|
+
}
|
|
173
195
|
}
|
|
174
196
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
197
|
+
const { eventDef, materializer } = resolution
|
|
198
|
+
|
|
199
|
+
const execArgsArr = getExecStatementsFromMaterializer({
|
|
200
|
+
eventDef,
|
|
201
|
+
materializer,
|
|
202
|
+
dbState: this[StoreInternalsSymbol].sqliteDbWrapper,
|
|
203
|
+
event: { decoded: undefined, encoded: eventEncoded },
|
|
204
|
+
})
|
|
205
|
+
|
|
206
|
+
const materializerHash = isDevEnv() ? Option.some(hashMaterializerResults(execArgsArr)) : Option.none()
|
|
207
|
+
|
|
208
|
+
// Hash mismatch detection only occurs during the pull path (when receiving events from the leader).
|
|
209
|
+
// During push path (local commits), materializerHashLeader is always Option.none(), so this condition
|
|
210
|
+
// will never be met. The check happens when the same event comes back from the leader during sync,
|
|
211
|
+
// allowing us to compare the leader's computed hash with our local re-materialization hash.
|
|
212
|
+
if (
|
|
213
|
+
materializerHashLeader._tag === 'Some' &&
|
|
214
|
+
materializerHash._tag === 'Some' &&
|
|
215
|
+
materializerHashLeader.value !== materializerHash.value
|
|
216
|
+
) {
|
|
217
|
+
return yield* MaterializerHashMismatchError.make({ eventName: eventEncoded.name })
|
|
178
218
|
}
|
|
179
219
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
220
|
+
const span = yield* OtelTracer.currentOtelSpan.pipe(Effect.orDie)
|
|
221
|
+
const otelContext = otel.trace.setSpan(otel.context.active(), span)
|
|
222
|
+
|
|
223
|
+
const writeTablesForEvent = new Set<string>()
|
|
224
|
+
|
|
225
|
+
const exec = () => {
|
|
226
|
+
for (const {
|
|
227
|
+
statementSql,
|
|
228
|
+
bindValues,
|
|
229
|
+
writeTables = this[StoreInternalsSymbol].sqliteDbWrapper.getTablesUsed(statementSql),
|
|
230
|
+
} of execArgsArr) {
|
|
231
|
+
try {
|
|
232
|
+
this[StoreInternalsSymbol].sqliteDbWrapper.cachedExecute(statementSql, bindValues, {
|
|
233
|
+
otelContext,
|
|
234
|
+
writeTables,
|
|
235
|
+
})
|
|
236
|
+
} catch (cause) {
|
|
237
|
+
// TOOD refactor with `SqliteError`
|
|
238
|
+
throw UnknownError.make({
|
|
239
|
+
cause,
|
|
240
|
+
note: `Error executing materializer for event "${eventEncoded.name}".\nStatement: ${statementSql}\nBind values: ${JSON.stringify(bindValues)}`,
|
|
241
|
+
})
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// durationMsTotal += durationMs
|
|
245
|
+
for (const table of writeTables) {
|
|
246
|
+
writeTablesForEvent.add(table)
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
this[StoreInternalsSymbol].sqliteDbWrapper.debug.head = eventEncoded.seqNum
|
|
250
|
+
}
|
|
251
|
+
}
|
|
188
252
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
253
|
+
let sessionChangeset:
|
|
254
|
+
| { _tag: 'sessionChangeset'; data: Uint8Array<ArrayBuffer>; debug: any }
|
|
255
|
+
| { _tag: 'no-op' }
|
|
256
|
+
| { _tag: 'unset' } = { _tag: 'unset' }
|
|
257
|
+
if (withChangeset === true) {
|
|
258
|
+
sessionChangeset = this[StoreInternalsSymbol].sqliteDbWrapper.withChangeset(exec).changeset
|
|
259
|
+
} else {
|
|
260
|
+
exec()
|
|
261
|
+
}
|
|
194
262
|
|
|
195
|
-
|
|
196
|
-
|
|
263
|
+
return { writeTables: writeTablesForEvent, sessionChangeset, materializerHash }
|
|
264
|
+
}).pipe(Effect.mapError((cause) => MaterializeError.make({ cause }))),
|
|
265
|
+
),
|
|
197
266
|
rollback: (changeset) => {
|
|
198
|
-
this.sqliteDbWrapper.rollback(changeset)
|
|
267
|
+
this[StoreInternalsSymbol].sqliteDbWrapper.rollback(changeset)
|
|
199
268
|
},
|
|
200
269
|
refreshTables: (tables) => {
|
|
201
270
|
const tablesToUpdate = [] as [Ref<null, ReactivityGraphContext, RefreshReason>, null][]
|
|
202
271
|
for (const tableName of tables) {
|
|
203
|
-
const tableRef = this.tableRefs[tableName]
|
|
272
|
+
const tableRef = this[StoreInternalsSymbol].tableRefs[tableName]
|
|
204
273
|
assertNever(tableRef !== undefined, `No table ref found for ${tableName}`)
|
|
205
274
|
tablesToUpdate.push([tableRef!, null])
|
|
206
275
|
}
|
|
@@ -208,17 +277,19 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
208
277
|
},
|
|
209
278
|
span: syncSpan,
|
|
210
279
|
params: {
|
|
211
|
-
|
|
212
|
-
|
|
280
|
+
...omitUndefineds({
|
|
281
|
+
leaderPushBatchSize: params.leaderPushBatchSize,
|
|
282
|
+
}),
|
|
283
|
+
...(params.simulation?.clientSessionSyncProcessor !== undefined
|
|
284
|
+
? { simulation: params.simulation.clientSessionSyncProcessor }
|
|
285
|
+
: {}),
|
|
213
286
|
},
|
|
214
287
|
confirmUnsavedChanges,
|
|
215
288
|
})
|
|
216
289
|
|
|
217
|
-
this.__eventSchema = LiveStoreEvent.makeEventDefSchemaMemo(schema)
|
|
218
|
-
|
|
219
290
|
// TODO generalize the `tableRefs` concept to allow finer-grained refs
|
|
220
|
-
|
|
221
|
-
|
|
291
|
+
const tableRefs: { [key: string]: Ref<null, ReactivityGraphContext, RefreshReason> } = {}
|
|
292
|
+
const activeQueries = new ReferenceCountedSet<LiveQuery<any>>()
|
|
222
293
|
|
|
223
294
|
const commitsSpan = otelOptions.tracer.startSpan('LiveStore:commits', {}, otelOptions.rootSpanContext)
|
|
224
295
|
const otelMuationsSpanContext = otel.trace.setSpan(otel.context.active(), commitsSpan)
|
|
@@ -226,8 +297,7 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
226
297
|
const queriesSpan = otelOptions.tracer.startSpan('LiveStore:queries', {}, otelOptions.rootSpanContext)
|
|
227
298
|
const otelQueriesSpanContext = otel.trace.setSpan(otel.context.active(), queriesSpan)
|
|
228
299
|
|
|
229
|
-
|
|
230
|
-
this.reactivityGraph.context = {
|
|
300
|
+
reactivityGraph.context = {
|
|
231
301
|
store: this as unknown as Store<LiveStoreSchema>,
|
|
232
302
|
defRcMap: new Map(),
|
|
233
303
|
reactivityGraph: new WeakRef(reactivityGraph),
|
|
@@ -235,8 +305,7 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
235
305
|
rootOtelContext: otelQueriesSpanContext,
|
|
236
306
|
effectsWrapper: batchUpdates,
|
|
237
307
|
}
|
|
238
|
-
|
|
239
|
-
this.otel = {
|
|
308
|
+
const otelObj: StoreOtel = {
|
|
240
309
|
tracer: otelOptions.tracer,
|
|
241
310
|
rootSpanContext: otelOptions.rootSpanContext,
|
|
242
311
|
commitsSpanContext: otelMuationsSpanContext,
|
|
@@ -252,27 +321,27 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
252
321
|
: Array.from(this.schema.state.sqlite.tables.keys()).filter((_) => !SystemTables.isStateSystemTable(_)),
|
|
253
322
|
)
|
|
254
323
|
const existingTableRefs = new Map(
|
|
255
|
-
Array.from(
|
|
324
|
+
Array.from(reactivityGraph.atoms.values())
|
|
256
325
|
.filter((_): _ is Ref<any, any, any> => _._tag === 'ref' && _.label?.startsWith('tableRef:') === true)
|
|
257
326
|
.map((_) => [_.label!.slice('tableRef:'.length), _] as const),
|
|
258
327
|
)
|
|
259
328
|
for (const tableName of allTableNames) {
|
|
260
|
-
|
|
329
|
+
tableRefs[tableName] =
|
|
261
330
|
existingTableRefs.get(tableName) ??
|
|
262
|
-
|
|
331
|
+
reactivityGraph.makeRef(null, {
|
|
263
332
|
equal: () => false,
|
|
264
333
|
label: `tableRef:${tableName}`,
|
|
265
334
|
meta: { liveStoreRefType: 'table' },
|
|
266
335
|
})
|
|
267
336
|
}
|
|
268
337
|
|
|
269
|
-
|
|
338
|
+
const boot = Effect.gen(this, function* () {
|
|
270
339
|
yield* Effect.addFinalizer(() =>
|
|
271
340
|
Effect.sync(() => {
|
|
272
341
|
// Remove all table refs from the reactivity graph
|
|
273
|
-
for (const tableRef of Object.values(
|
|
342
|
+
for (const tableRef of Object.values(tableRefs)) {
|
|
274
343
|
for (const superComp of tableRef.super) {
|
|
275
|
-
this.reactivityGraph.removeEdge(superComp, tableRef)
|
|
344
|
+
this[StoreInternalsSymbol].reactivityGraph.removeEdge(superComp, tableRef)
|
|
276
345
|
}
|
|
277
346
|
}
|
|
278
347
|
|
|
@@ -283,22 +352,58 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
283
352
|
}),
|
|
284
353
|
)
|
|
285
354
|
|
|
286
|
-
yield*
|
|
355
|
+
yield* syncProcessor.boot
|
|
287
356
|
})
|
|
357
|
+
|
|
358
|
+
// Build Sqlite wrapper last to avoid using getters before internals are set
|
|
359
|
+
const sqliteDbWrapper = new SqliteDbWrapper({ otel: otelOptions, db: clientSession.sqliteDb })
|
|
360
|
+
|
|
361
|
+
// Initialize internals bag
|
|
362
|
+
this[StoreInternalsSymbol] = {
|
|
363
|
+
eventSchema: LiveStoreEvent.Client.makeSchemaMemo(schema) as Schema.Schema<
|
|
364
|
+
LiveStoreEvent.Client.Decoded,
|
|
365
|
+
LiveStoreEvent.Client.Encoded
|
|
366
|
+
>,
|
|
367
|
+
clientSession,
|
|
368
|
+
sqliteDbWrapper,
|
|
369
|
+
effectContext,
|
|
370
|
+
otel: otelObj,
|
|
371
|
+
reactivityGraph,
|
|
372
|
+
tableRefs,
|
|
373
|
+
activeQueries,
|
|
374
|
+
syncProcessor,
|
|
375
|
+
boot,
|
|
376
|
+
isShutdown: false,
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
// Initialize stable network status property from client session
|
|
380
|
+
this.networkStatus = clientSession.leaderThread.networkStatus
|
|
288
381
|
}
|
|
289
382
|
// #endregion constructor
|
|
290
383
|
|
|
384
|
+
/**
|
|
385
|
+
* Current session identifier for this Store instance.
|
|
386
|
+
*
|
|
387
|
+
* - Stable for the lifetime of the Store
|
|
388
|
+
* - Useful for correlating events or scoping per-session data
|
|
389
|
+
*/
|
|
291
390
|
get sessionId(): string {
|
|
292
|
-
return this.clientSession.sessionId
|
|
391
|
+
return this[StoreInternalsSymbol].clientSession.sessionId
|
|
293
392
|
}
|
|
294
393
|
|
|
394
|
+
/**
|
|
395
|
+
* Stable client identifier for the process/device using this Store.
|
|
396
|
+
*
|
|
397
|
+
* - Shared across Store instances created by the same client
|
|
398
|
+
* - Useful for diagnostics and multi-client correlation
|
|
399
|
+
*/
|
|
295
400
|
get clientId(): string {
|
|
296
|
-
return this.clientSession.clientId
|
|
401
|
+
return this[StoreInternalsSymbol].clientSession.clientId
|
|
297
402
|
}
|
|
298
403
|
|
|
299
404
|
private checkShutdown = (operation: string): void => {
|
|
300
|
-
if (this.isShutdown) {
|
|
301
|
-
throw new
|
|
405
|
+
if (this[StoreInternalsSymbol].isShutdown) {
|
|
406
|
+
throw new UnknownError({
|
|
302
407
|
cause: `Store has been shut down (while performing "${operation}").`,
|
|
303
408
|
note: `You cannot perform this operation after the store has been shut down.`,
|
|
304
409
|
})
|
|
@@ -306,47 +411,53 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
306
411
|
}
|
|
307
412
|
|
|
308
413
|
/**
|
|
309
|
-
* Subscribe to the results of a query
|
|
310
|
-
*
|
|
414
|
+
* Subscribe to the results of a query.
|
|
415
|
+
*
|
|
416
|
+
* - When providing an `onUpdate` callback it returns an {@link Unsubscribe} function.
|
|
417
|
+
* - Without a callback it returns an {@link AsyncIterable} that yields query results.
|
|
418
|
+
*
|
|
419
|
+
* @example
|
|
420
|
+
* ```ts
|
|
421
|
+
* const unsubscribe = store.subscribe(query$, (result) => console.log(result))
|
|
422
|
+
* ```
|
|
311
423
|
*
|
|
312
424
|
* @example
|
|
313
425
|
* ```ts
|
|
314
|
-
* const
|
|
426
|
+
* for await (const result of store.subscribe(query$)) {
|
|
427
|
+
* console.log(result)
|
|
428
|
+
* }
|
|
315
429
|
* ```
|
|
316
430
|
*/
|
|
317
|
-
subscribe = <TResult>(
|
|
318
|
-
query:
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
stackInfo?: StackInfo
|
|
334
|
-
},
|
|
431
|
+
subscribe = (<TResult>(
|
|
432
|
+
query: Queryable<TResult>,
|
|
433
|
+
onUpdateOrOptions?: ((value: TResult) => void) | SubscribeOptions<TResult>,
|
|
434
|
+
maybeOptions?: SubscribeOptions<TResult>,
|
|
435
|
+
): Unsubscribe | AsyncIterable<TResult> => {
|
|
436
|
+
if (typeof onUpdateOrOptions === 'function') {
|
|
437
|
+
return this.subscribeWithCallback(query, onUpdateOrOptions, maybeOptions)
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
return this.subscribeAsAsyncIterable(query, onUpdateOrOptions)
|
|
441
|
+
}) as SubscribeFn
|
|
442
|
+
|
|
443
|
+
private subscribeWithCallback = <TResult>(
|
|
444
|
+
query: Queryable<TResult>,
|
|
445
|
+
onUpdate: (value: TResult) => void,
|
|
446
|
+
options?: SubscribeOptions<TResult>,
|
|
335
447
|
): Unsubscribe => {
|
|
336
448
|
this.checkShutdown('subscribe')
|
|
337
449
|
|
|
338
|
-
return this.otel.tracer.startActiveSpan(
|
|
450
|
+
return this[StoreInternalsSymbol].otel.tracer.startActiveSpan(
|
|
339
451
|
`LiveStore.subscribe`,
|
|
340
452
|
{ attributes: { label: options?.label, queryLabel: isQueryBuilder(query) ? query.toString() : query.label } },
|
|
341
|
-
options?.otelContext ?? this.otel.queriesSpanContext,
|
|
453
|
+
options?.otelContext ?? this[StoreInternalsSymbol].otel.queriesSpanContext,
|
|
342
454
|
(span) => {
|
|
343
|
-
// console.debug('store sub', query$.id, query$.label)
|
|
344
455
|
const otelContext = otel.trace.setSpan(otel.context.active(), span)
|
|
345
456
|
|
|
346
457
|
const queryRcRef = isQueryBuilder(query)
|
|
347
|
-
? queryDb(query).make(this.reactivityGraph.context!)
|
|
458
|
+
? queryDb(query).make(this[StoreInternalsSymbol].reactivityGraph.context!)
|
|
348
459
|
: query._tag === 'def' || query._tag === 'signal-def'
|
|
349
|
-
? query.make(this.reactivityGraph.context!)
|
|
460
|
+
? query.make(this[StoreInternalsSymbol].reactivityGraph.context!)
|
|
350
461
|
: {
|
|
351
462
|
value: query as LiveQuery<TResult>,
|
|
352
463
|
deref: () => {},
|
|
@@ -354,11 +465,23 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
354
465
|
const query$ = queryRcRef.value
|
|
355
466
|
|
|
356
467
|
const label = `subscribe:${options?.label}`
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
468
|
+
let suppressCallback = options?.skipInitialRun === true
|
|
469
|
+
const effect = this[StoreInternalsSymbol].reactivityGraph.makeEffect(
|
|
470
|
+
(get, _otelContext, debugRefreshReason) => {
|
|
471
|
+
const result = get(query$.results$, otelContext, debugRefreshReason)
|
|
472
|
+
if (suppressCallback) {
|
|
473
|
+
return
|
|
474
|
+
}
|
|
475
|
+
onUpdate(result)
|
|
476
|
+
},
|
|
360
477
|
{ label },
|
|
361
478
|
)
|
|
479
|
+
const runInitialEffect = () => {
|
|
480
|
+
effect.doEffect(otelContext, {
|
|
481
|
+
_tag: 'subscribe.initial',
|
|
482
|
+
label: `subscribe-initial-run:${options?.label}`,
|
|
483
|
+
})
|
|
484
|
+
}
|
|
362
485
|
|
|
363
486
|
if (options?.stackInfo) {
|
|
364
487
|
query$.activeSubscriptions.add(options.stackInfo)
|
|
@@ -366,18 +489,23 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
366
489
|
|
|
367
490
|
options?.onSubscribe?.(query$)
|
|
368
491
|
|
|
369
|
-
this.activeQueries.add(query$ as LiveQuery<TResult>)
|
|
492
|
+
this[StoreInternalsSymbol].activeQueries.add(query$ as LiveQuery<TResult>)
|
|
370
493
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
494
|
+
if (!query$.isDestroyed) {
|
|
495
|
+
if (suppressCallback) {
|
|
496
|
+
// We still run once to register dependencies in the reactive graph, but suppress the initial callback so the
|
|
497
|
+
// caller truly skips the first emission; subsequent runs (after commits) will call the callback.
|
|
498
|
+
runInitialEffect()
|
|
499
|
+
suppressCallback = false
|
|
500
|
+
} else {
|
|
501
|
+
runInitialEffect()
|
|
502
|
+
}
|
|
374
503
|
}
|
|
375
504
|
|
|
376
505
|
const unsubscribe = () => {
|
|
377
|
-
// console.debug('store unsub', query$.id, query$.label)
|
|
378
506
|
try {
|
|
379
|
-
this.reactivityGraph.destroyNode(effect)
|
|
380
|
-
this.activeQueries.remove(query$ as LiveQuery<TResult>)
|
|
507
|
+
this[StoreInternalsSymbol].reactivityGraph.destroyNode(effect)
|
|
508
|
+
this[StoreInternalsSymbol].activeQueries.remove(query$ as LiveQuery<TResult>)
|
|
381
509
|
|
|
382
510
|
if (options?.stackInfo) {
|
|
383
511
|
query$.activeSubscriptions.delete(options.stackInfo)
|
|
@@ -396,10 +524,16 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
396
524
|
)
|
|
397
525
|
}
|
|
398
526
|
|
|
399
|
-
|
|
400
|
-
query
|
|
401
|
-
options?:
|
|
402
|
-
):
|
|
527
|
+
private subscribeAsAsyncIterable = <TResult>(
|
|
528
|
+
query: Queryable<TResult>,
|
|
529
|
+
options?: SubscribeOptions<TResult>,
|
|
530
|
+
): AsyncIterable<TResult> => {
|
|
531
|
+
this.checkShutdown('subscribe')
|
|
532
|
+
|
|
533
|
+
return Stream.toAsyncIterable(this.subscribeStream(query, options))
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
subscribeStream = <TResult>(query: Queryable<TResult>, options?: SubscribeOptions<TResult>): Stream.Stream<TResult> =>
|
|
403
537
|
Stream.asyncPush<TResult>((emit) =>
|
|
404
538
|
Effect.gen(this, function* () {
|
|
405
539
|
const otelSpan = yield* OtelTracer.currentOtelSpan.pipe(
|
|
@@ -409,10 +543,9 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
409
543
|
|
|
410
544
|
yield* Effect.acquireRelease(
|
|
411
545
|
Effect.sync(() =>
|
|
412
|
-
this.subscribe(query
|
|
413
|
-
|
|
546
|
+
this.subscribe(query, (result) => emit.single(result), {
|
|
547
|
+
...(options ?? {}),
|
|
414
548
|
otelContext,
|
|
415
|
-
label: options?.label,
|
|
416
549
|
}),
|
|
417
550
|
),
|
|
418
551
|
(unsub) => Effect.sync(() => unsub()),
|
|
@@ -435,20 +568,19 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
435
568
|
* ```
|
|
436
569
|
*/
|
|
437
570
|
query = <TResult>(
|
|
438
|
-
query:
|
|
439
|
-
| QueryBuilder<TResult, any, any>
|
|
440
|
-
| LiveQuery<TResult>
|
|
441
|
-
| LiveQueryDef<TResult>
|
|
442
|
-
| SignalDef<TResult>
|
|
443
|
-
| { query: string; bindValues: Bindable; schema?: Schema.Schema<TResult> },
|
|
571
|
+
query: Queryable<TResult> | { query: string; bindValues: Bindable; schema?: Schema.Schema<TResult> },
|
|
444
572
|
options?: { otelContext?: otel.Context; debugRefreshReason?: RefreshReason },
|
|
445
573
|
): TResult => {
|
|
446
574
|
this.checkShutdown('query')
|
|
447
575
|
|
|
448
576
|
if (typeof query === 'object' && 'query' in query && 'bindValues' in query) {
|
|
449
|
-
const res = this.sqliteDbWrapper.cachedSelect(
|
|
450
|
-
|
|
451
|
-
|
|
577
|
+
const res = this[StoreInternalsSymbol].sqliteDbWrapper.cachedSelect(
|
|
578
|
+
query.query,
|
|
579
|
+
prepareBindValues(query.bindValues, query.query),
|
|
580
|
+
{
|
|
581
|
+
...omitUndefineds({ otelContext: options?.otelContext }),
|
|
582
|
+
},
|
|
583
|
+
) as any
|
|
452
584
|
if (query.schema) {
|
|
453
585
|
return Schema.decodeSync(query.schema)(res)
|
|
454
586
|
}
|
|
@@ -461,7 +593,7 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
461
593
|
id: ast.id,
|
|
462
594
|
explicitDefaultValues: ast.explicitDefaultValues,
|
|
463
595
|
otelContext: options?.otelContext,
|
|
464
|
-
})(this.reactivityGraph.context!)
|
|
596
|
+
})(this[StoreInternalsSymbol].reactivityGraph.context!)
|
|
465
597
|
}
|
|
466
598
|
|
|
467
599
|
const sqlRes = query.asSql()
|
|
@@ -469,25 +601,43 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
469
601
|
|
|
470
602
|
// Replace SessionIdSymbol in bind values before executing the query
|
|
471
603
|
if (sqlRes.bindValues) {
|
|
472
|
-
replaceSessionIdSymbol(sqlRes.bindValues, this.clientSession.sessionId)
|
|
604
|
+
replaceSessionIdSymbol(sqlRes.bindValues, this[StoreInternalsSymbol].clientSession.sessionId)
|
|
473
605
|
}
|
|
474
606
|
|
|
475
|
-
const rawRes = this.sqliteDbWrapper.cachedSelect(
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
607
|
+
const rawRes = this[StoreInternalsSymbol].sqliteDbWrapper.cachedSelect(
|
|
608
|
+
sqlRes.query,
|
|
609
|
+
sqlRes.bindValues as any as PreparedBindValues,
|
|
610
|
+
{
|
|
611
|
+
...omitUndefineds({ otelContext: options?.otelContext }),
|
|
612
|
+
queriedTables: new Set([query[QueryBuilderAstSymbol].tableDef.sqliteDef.name]),
|
|
613
|
+
},
|
|
614
|
+
)
|
|
479
615
|
|
|
480
|
-
|
|
616
|
+
const decodeResult = Schema.decodeEither(schema)(rawRes)
|
|
617
|
+
if (decodeResult._tag === 'Right') {
|
|
618
|
+
return decodeResult.right
|
|
619
|
+
} else {
|
|
620
|
+
return shouldNeverHappen(
|
|
621
|
+
`Failed to decode query result with for schema:`,
|
|
622
|
+
schema.toString(),
|
|
623
|
+
'raw result:',
|
|
624
|
+
rawRes,
|
|
625
|
+
'decode error:',
|
|
626
|
+
decodeResult.left,
|
|
627
|
+
)
|
|
628
|
+
}
|
|
481
629
|
} else if (query._tag === 'def') {
|
|
482
|
-
const query$ = query.make(this.reactivityGraph.context!)
|
|
630
|
+
const query$ = query.make(this[StoreInternalsSymbol].reactivityGraph.context!)
|
|
483
631
|
const result = this.query(query$.value, options)
|
|
484
632
|
query$.deref()
|
|
485
633
|
return result
|
|
486
634
|
} else if (query._tag === 'signal-def') {
|
|
487
|
-
const signal$ = query.make(this.reactivityGraph.context!)
|
|
635
|
+
const signal$ = query.make(this[StoreInternalsSymbol].reactivityGraph.context!)
|
|
488
636
|
return signal$.value.get()
|
|
489
637
|
} else {
|
|
490
|
-
return query.run({
|
|
638
|
+
return query.run({
|
|
639
|
+
...omitUndefineds({ otelContext: options?.otelContext, debugRefreshReason: options?.debugRefreshReason }),
|
|
640
|
+
})
|
|
491
641
|
}
|
|
492
642
|
}
|
|
493
643
|
|
|
@@ -509,7 +659,7 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
509
659
|
setSignal = <T>(signalDef: SignalDef<T>, value: T | ((prev: T) => T)): void => {
|
|
510
660
|
this.checkShutdown('setSignal')
|
|
511
661
|
|
|
512
|
-
const signalRef = signalDef.make(this.reactivityGraph.context!)
|
|
662
|
+
const signalRef = signalDef.make(this[StoreInternalsSymbol].reactivityGraph.context!)
|
|
513
663
|
const newValue: T = typeof value === 'function' ? (value as any)(signalRef.value.get()) : value
|
|
514
664
|
signalRef.value.set(newValue)
|
|
515
665
|
|
|
@@ -576,19 +726,19 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
576
726
|
* ```
|
|
577
727
|
*/
|
|
578
728
|
commit: {
|
|
579
|
-
<const TCommitArg extends ReadonlyArray<LiveStoreEvent.
|
|
729
|
+
<const TCommitArg extends ReadonlyArray<LiveStoreEvent.Input.ForSchema<TSchema>>>(...list: TCommitArg): void
|
|
580
730
|
(
|
|
581
|
-
txn: <const TCommitArg extends ReadonlyArray<LiveStoreEvent.
|
|
731
|
+
txn: <const TCommitArg extends ReadonlyArray<LiveStoreEvent.Input.ForSchema<TSchema>>>(
|
|
582
732
|
...list: TCommitArg
|
|
583
733
|
) => void,
|
|
584
734
|
): void
|
|
585
|
-
<const TCommitArg extends ReadonlyArray<LiveStoreEvent.
|
|
735
|
+
<const TCommitArg extends ReadonlyArray<LiveStoreEvent.Input.ForSchema<TSchema>>>(
|
|
586
736
|
options: StoreCommitOptions,
|
|
587
737
|
...list: TCommitArg
|
|
588
738
|
): void
|
|
589
739
|
(
|
|
590
740
|
options: StoreCommitOptions,
|
|
591
|
-
txn: <const TCommitArg extends ReadonlyArray<LiveStoreEvent.
|
|
741
|
+
txn: <const TCommitArg extends ReadonlyArray<LiveStoreEvent.Input.ForSchema<TSchema>>>(
|
|
592
742
|
...list: TCommitArg
|
|
593
743
|
) => void,
|
|
594
744
|
): void
|
|
@@ -597,84 +747,78 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
597
747
|
|
|
598
748
|
const { events, options } = this.getCommitArgs(firstEventOrTxnFnOrOptions, restEvents)
|
|
599
749
|
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
const skipRefresh = options?.skipRefresh ?? false
|
|
750
|
+
Effect.gen(this, function* () {
|
|
751
|
+
const commitsSpan = otel.trace.getSpan(this[StoreInternalsSymbol].otel.commitsSpanContext)
|
|
752
|
+
commitsSpan?.addEvent('commit')
|
|
753
|
+
const currentSpan = yield* OtelTracer.currentOtelSpan.pipe(Effect.orDie)
|
|
754
|
+
commitsSpan?.addLink({ context: currentSpan.spanContext() })
|
|
607
755
|
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
// console.group('LiveStore.commit', { skipRefresh })
|
|
612
|
-
// events.forEach((_) => console.debug(_.name, _.args))
|
|
613
|
-
// console.groupEnd()
|
|
614
|
-
|
|
615
|
-
let durationMs: number
|
|
616
|
-
|
|
617
|
-
return this.otel.tracer.startActiveSpan(
|
|
618
|
-
'LiveStore:commit',
|
|
619
|
-
{
|
|
620
|
-
attributes: {
|
|
621
|
-
'livestore.eventsCount': events.length,
|
|
622
|
-
'livestore.eventTags': events.map((_) => _.name),
|
|
623
|
-
'livestore.commitLabel': options?.label,
|
|
624
|
-
},
|
|
625
|
-
links: options?.spanLinks,
|
|
626
|
-
},
|
|
627
|
-
options?.otelContext ?? this.otel.commitsSpanContext,
|
|
628
|
-
(span) => {
|
|
629
|
-
const otelContext = otel.trace.setSpan(otel.context.active(), span)
|
|
756
|
+
for (const event of events) {
|
|
757
|
+
replaceSessionIdSymbol(event.args, this[StoreInternalsSymbol].clientSession.sessionId)
|
|
758
|
+
}
|
|
630
759
|
|
|
631
|
-
|
|
632
|
-
// Materialize events to state
|
|
633
|
-
const { writeTables } = (() => {
|
|
634
|
-
try {
|
|
635
|
-
const materializeEvents = () => this.syncProcessor.push(events, { otelContext })
|
|
760
|
+
if (events.length === 0) return
|
|
636
761
|
|
|
637
|
-
|
|
638
|
-
return this.sqliteDbWrapper.txn(materializeEvents)
|
|
639
|
-
} else {
|
|
640
|
-
return materializeEvents()
|
|
641
|
-
}
|
|
642
|
-
} catch (e: any) {
|
|
643
|
-
console.error(e)
|
|
644
|
-
span.setStatus({ code: otel.SpanStatusCode.ERROR, message: e.toString() })
|
|
645
|
-
throw e
|
|
646
|
-
} finally {
|
|
647
|
-
span.end()
|
|
648
|
-
}
|
|
649
|
-
})()
|
|
762
|
+
const localRuntime = yield* Effect.runtime()
|
|
650
763
|
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
tablesToUpdate.push([tableRef!, null])
|
|
764
|
+
const materializeEventsTx = Effect.try({
|
|
765
|
+
try: () => {
|
|
766
|
+
const runMaterializeEvents = () => {
|
|
767
|
+
return this[StoreInternalsSymbol].syncProcessor.push(events).pipe(Runtime.runSync(localRuntime))
|
|
656
768
|
}
|
|
657
769
|
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
770
|
+
if (events.length > 1) {
|
|
771
|
+
return this[StoreInternalsSymbol].sqliteDbWrapper.txn(runMaterializeEvents)
|
|
772
|
+
} else {
|
|
773
|
+
return runMaterializeEvents()
|
|
662
774
|
}
|
|
775
|
+
},
|
|
776
|
+
catch: (cause) => UnknownError.make({ cause }),
|
|
777
|
+
})
|
|
663
778
|
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
} catch (e: any) {
|
|
667
|
-
console.error(e)
|
|
668
|
-
span.setStatus({ code: otel.SpanStatusCode.ERROR, message: e.toString() })
|
|
669
|
-
throw e
|
|
670
|
-
} finally {
|
|
671
|
-
span.end()
|
|
779
|
+
// Materialize events to state
|
|
780
|
+
const { writeTables } = yield* materializeEventsTx
|
|
672
781
|
|
|
673
|
-
|
|
674
|
-
|
|
782
|
+
const tablesToUpdate: [Ref<null, ReactivityGraphContext, RefreshReason>, null][] = []
|
|
783
|
+
for (const tableName of writeTables) {
|
|
784
|
+
const tableRef = this[StoreInternalsSymbol].tableRefs[tableName]
|
|
785
|
+
assertNever(tableRef !== undefined, `No table ref found for ${tableName}`)
|
|
786
|
+
tablesToUpdate.push([tableRef!, null])
|
|
787
|
+
}
|
|
675
788
|
|
|
676
|
-
|
|
677
|
-
|
|
789
|
+
const debugRefreshReason: RefreshReason = {
|
|
790
|
+
_tag: 'commit',
|
|
791
|
+
events,
|
|
792
|
+
writeTables: Array.from(writeTables),
|
|
793
|
+
}
|
|
794
|
+
const skipRefresh = options?.skipRefresh ?? false
|
|
795
|
+
|
|
796
|
+
// Update all table refs together in a batch, to only trigger one reactive update
|
|
797
|
+
this[StoreInternalsSymbol].reactivityGraph.setRefs(tablesToUpdate, {
|
|
798
|
+
debugRefreshReason,
|
|
799
|
+
skipRefresh,
|
|
800
|
+
otelContext: otel.trace.setSpan(otel.context.active(), currentSpan),
|
|
801
|
+
})
|
|
802
|
+
}).pipe(
|
|
803
|
+
Effect.withSpan('LiveStore:commit', {
|
|
804
|
+
root: true,
|
|
805
|
+
attributes: {
|
|
806
|
+
'livestore.eventsCount': events.length,
|
|
807
|
+
'livestore.eventTags': events.map((_) => _.name),
|
|
808
|
+
...(options?.label && { 'livestore.commitLabel': options.label }),
|
|
809
|
+
},
|
|
810
|
+
links: [
|
|
811
|
+
// Span link to LiveStore:commits
|
|
812
|
+
OtelTracer.makeSpanLink({
|
|
813
|
+
context: otel.trace.getSpanContext(this[StoreInternalsSymbol].otel.commitsSpanContext)!,
|
|
814
|
+
}),
|
|
815
|
+
// User-provided span links
|
|
816
|
+
...(options?.spanLinks?.map(OtelTracer.makeSpanLink) ?? []),
|
|
817
|
+
],
|
|
818
|
+
}),
|
|
819
|
+
Effect.tapErrorCause(Effect.logError),
|
|
820
|
+
Effect.catchAllCause((cause) => Effect.fork(this.shutdown(cause))),
|
|
821
|
+
Runtime.runSync(this[StoreInternalsSymbol].effectContext.runtime),
|
|
678
822
|
)
|
|
679
823
|
}
|
|
680
824
|
// #endregion commit
|
|
@@ -697,13 +841,13 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
697
841
|
* }
|
|
698
842
|
* ```
|
|
699
843
|
*/
|
|
700
|
-
events = (_options?: StoreEventsOptions<TSchema>): AsyncIterable<LiveStoreEvent.ForSchema<TSchema>> => {
|
|
844
|
+
events = (_options?: StoreEventsOptions<TSchema>): AsyncIterable<LiveStoreEvent.Client.ForSchema<TSchema>> => {
|
|
701
845
|
this.checkShutdown('events')
|
|
702
846
|
|
|
703
847
|
return notYetImplemented(`store.events() is not yet implemented but planned soon`)
|
|
704
848
|
}
|
|
705
849
|
|
|
706
|
-
eventsStream = (_options?: StoreEventsOptions<TSchema>): Stream.Stream<LiveStoreEvent.ForSchema<TSchema>> => {
|
|
850
|
+
eventsStream = (_options?: StoreEventsOptions<TSchema>): Stream.Stream<LiveStoreEvent.Client.ForSchema<TSchema>> => {
|
|
707
851
|
this.checkShutdown('eventsStream')
|
|
708
852
|
|
|
709
853
|
return notYetImplemented(`store.eventsStream() is not yet implemented but planned soon`)
|
|
@@ -717,13 +861,13 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
717
861
|
this.checkShutdown('manualRefresh')
|
|
718
862
|
|
|
719
863
|
const { label } = options ?? {}
|
|
720
|
-
this.otel.tracer.startActiveSpan(
|
|
864
|
+
this[StoreInternalsSymbol].otel.tracer.startActiveSpan(
|
|
721
865
|
'LiveStore:manualRefresh',
|
|
722
866
|
{ attributes: { 'livestore.manualRefreshLabel': label } },
|
|
723
|
-
this.otel.commitsSpanContext,
|
|
867
|
+
this[StoreInternalsSymbol].otel.commitsSpanContext,
|
|
724
868
|
(span) => {
|
|
725
869
|
const otelContext = otel.trace.setSpan(otel.context.active(), span)
|
|
726
|
-
this.reactivityGraph.runDeferredEffects({ otelContext })
|
|
870
|
+
this[StoreInternalsSymbol].reactivityGraph.runDeferredEffects({ otelContext })
|
|
727
871
|
span.end()
|
|
728
872
|
},
|
|
729
873
|
)
|
|
@@ -734,10 +878,10 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
734
878
|
*
|
|
735
879
|
* This is called automatically when the store was created using the React or Effect API.
|
|
736
880
|
*/
|
|
737
|
-
shutdownPromise = async (cause?:
|
|
881
|
+
shutdownPromise = async (cause?: UnknownError) => {
|
|
738
882
|
this.checkShutdown('shutdownPromise')
|
|
739
883
|
|
|
740
|
-
this.isShutdown = true
|
|
884
|
+
this[StoreInternalsSymbol].isShutdown = true
|
|
741
885
|
await this.shutdown(cause ? Cause.fail(cause) : undefined).pipe(this.runEffectFork, Fiber.join, Effect.runPromise)
|
|
742
886
|
}
|
|
743
887
|
|
|
@@ -746,11 +890,9 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
746
890
|
*
|
|
747
891
|
* This is called automatically when the store was created using the React or Effect API.
|
|
748
892
|
*/
|
|
749
|
-
shutdown = (cause?: Cause.Cause<
|
|
750
|
-
this.
|
|
751
|
-
|
|
752
|
-
this.isShutdown = true
|
|
753
|
-
return this.clientSession.shutdown(
|
|
893
|
+
shutdown = (cause?: Cause.Cause<UnknownError | MaterializeError>): Effect.Effect<void> => {
|
|
894
|
+
this[StoreInternalsSymbol].isShutdown = true
|
|
895
|
+
return this[StoreInternalsSymbol].clientSession.shutdown(
|
|
754
896
|
cause ? Exit.failCause(cause) : Exit.succeed(IntentionalShutdownCause.make({ reason: 'manual' })),
|
|
755
897
|
)
|
|
756
898
|
}
|
|
@@ -763,30 +905,33 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
763
905
|
_dev = {
|
|
764
906
|
downloadDb: (source: 'local' | 'leader' = 'local') => {
|
|
765
907
|
Effect.gen(this, function* () {
|
|
766
|
-
const data =
|
|
908
|
+
const data =
|
|
909
|
+
source === 'local'
|
|
910
|
+
? this[StoreInternalsSymbol].sqliteDbWrapper.export()
|
|
911
|
+
: yield* this[StoreInternalsSymbol].clientSession.leaderThread.export
|
|
767
912
|
downloadBlob(data, `livestore-${Date.now()}.db`)
|
|
768
913
|
}).pipe(this.runEffectFork)
|
|
769
914
|
},
|
|
770
915
|
|
|
771
916
|
downloadEventlogDb: () => {
|
|
772
917
|
Effect.gen(this, function* () {
|
|
773
|
-
const data = yield* this.clientSession.leaderThread.getEventlogData
|
|
918
|
+
const data = yield* this[StoreInternalsSymbol].clientSession.leaderThread.getEventlogData
|
|
774
919
|
downloadBlob(data, `livestore-eventlog-${Date.now()}.db`)
|
|
775
920
|
}).pipe(this.runEffectFork)
|
|
776
921
|
},
|
|
777
922
|
|
|
778
923
|
hardReset: (mode: 'all-data' | 'only-app-db' = 'all-data') => {
|
|
779
924
|
Effect.gen(this, function* () {
|
|
780
|
-
const clientId = this.clientSession.clientId
|
|
781
|
-
yield* this.clientSession.leaderThread.sendDevtoolsMessage(
|
|
925
|
+
const clientId = this[StoreInternalsSymbol].clientSession.clientId
|
|
926
|
+
yield* this[StoreInternalsSymbol].clientSession.leaderThread.sendDevtoolsMessage(
|
|
782
927
|
Devtools.Leader.ResetAllData.Request.make({ liveStoreVersion, mode, requestId: nanoid(), clientId }),
|
|
783
928
|
)
|
|
784
929
|
}).pipe(this.runEffectFork)
|
|
785
930
|
},
|
|
786
931
|
|
|
787
932
|
overrideNetworkStatus: (status: 'online' | 'offline') => {
|
|
788
|
-
const clientId = this.clientSession.clientId
|
|
789
|
-
this.clientSession.leaderThread
|
|
933
|
+
const clientId = this[StoreInternalsSymbol].clientSession.clientId
|
|
934
|
+
this[StoreInternalsSymbol].clientSession.leaderThread
|
|
790
935
|
.sendDevtoolsMessage(
|
|
791
936
|
Devtools.Leader.SetSyncLatch.Request.make({
|
|
792
937
|
clientId,
|
|
@@ -798,43 +943,56 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
798
943
|
.pipe(this.runEffectFork)
|
|
799
944
|
},
|
|
800
945
|
|
|
801
|
-
syncStates: () =>
|
|
946
|
+
syncStates: () =>
|
|
947
|
+
Effect.gen(this, function* () {
|
|
948
|
+
const session = yield* this[StoreInternalsSymbol].syncProcessor.syncState
|
|
949
|
+
const leader = yield* this[StoreInternalsSymbol].clientSession.leaderThread.syncState
|
|
950
|
+
return { session, leader }
|
|
951
|
+
}).pipe(this.runEffectPromise),
|
|
952
|
+
|
|
953
|
+
printSyncStates: () => {
|
|
802
954
|
Effect.gen(this, function* () {
|
|
803
|
-
const session = yield* this.syncProcessor.syncState
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
955
|
+
const session = yield* this[StoreInternalsSymbol].syncProcessor.syncState
|
|
956
|
+
yield* Effect.log(
|
|
957
|
+
`Session sync state: ${session.localHead} (upstream: ${session.upstreamHead})`,
|
|
958
|
+
session.toJSON(),
|
|
959
|
+
)
|
|
960
|
+
const leader = yield* this[StoreInternalsSymbol].clientSession.leaderThread.syncState
|
|
961
|
+
yield* Effect.log(`Leader sync state: ${leader.localHead} (upstream: ${leader.upstreamHead})`, leader.toJSON())
|
|
807
962
|
}).pipe(this.runEffectFork)
|
|
808
963
|
},
|
|
809
964
|
|
|
810
965
|
version: liveStoreVersion,
|
|
811
966
|
|
|
812
967
|
otel: {
|
|
813
|
-
rootSpanContext: () => otel.trace.getSpan(this.otel.rootSpanContext)?.spanContext(),
|
|
968
|
+
rootSpanContext: () => otel.trace.getSpan(this[StoreInternalsSymbol].otel.rootSpanContext)?.spanContext(),
|
|
814
969
|
},
|
|
815
970
|
}
|
|
816
971
|
|
|
817
972
|
// NOTE This is needed because when booting a Store via Effect it seems to call `toJSON` in the error path
|
|
818
973
|
toJSON = () => ({
|
|
819
974
|
_tag: 'livestore.Store',
|
|
820
|
-
reactivityGraph: this.reactivityGraph.getSnapshot({ includeResults: true }),
|
|
975
|
+
reactivityGraph: this[StoreInternalsSymbol].reactivityGraph.getSnapshot({ includeResults: true }),
|
|
821
976
|
})
|
|
822
977
|
|
|
823
978
|
private runEffectFork = <A, E>(effect: Effect.Effect<A, E, Scope.Scope>) =>
|
|
824
979
|
effect.pipe(
|
|
825
|
-
Effect.forkIn(this.effectContext.lifetimeScope),
|
|
980
|
+
Effect.forkIn(this[StoreInternalsSymbol].effectContext.lifetimeScope),
|
|
826
981
|
Effect.tapCauseLogPretty,
|
|
827
|
-
Runtime.runFork(this.effectContext.runtime),
|
|
982
|
+
Runtime.runFork(this[StoreInternalsSymbol].effectContext.runtime),
|
|
828
983
|
)
|
|
829
984
|
|
|
985
|
+
private runEffectPromise = <A, E>(effect: Effect.Effect<A, E, Scope.Scope>) =>
|
|
986
|
+
effect.pipe(Effect.tapCauseLogPretty, Runtime.runPromise(this[StoreInternalsSymbol].effectContext.runtime))
|
|
987
|
+
|
|
830
988
|
private getCommitArgs = (
|
|
831
989
|
firstEventOrTxnFnOrOptions: any,
|
|
832
990
|
restEvents: any[],
|
|
833
991
|
): {
|
|
834
|
-
events: LiveStoreEvent.
|
|
992
|
+
events: LiveStoreEvent.Input.ForSchema<TSchema>[]
|
|
835
993
|
options: StoreCommitOptions | undefined
|
|
836
994
|
} => {
|
|
837
|
-
let events: LiveStoreEvent.
|
|
995
|
+
let events: LiveStoreEvent.Input.ForSchema<TSchema>[]
|
|
838
996
|
let options: StoreCommitOptions | undefined
|
|
839
997
|
|
|
840
998
|
if (typeof firstEventOrTxnFnOrOptions === 'function') {
|
|
@@ -857,7 +1015,7 @@ export class Store<TSchema extends LiveStoreSchema = LiveStoreSchema.Any, TConte
|
|
|
857
1015
|
|
|
858
1016
|
// for (const event of events) {
|
|
859
1017
|
// if (event.args.id === SessionIdSymbol) {
|
|
860
|
-
// event.args.id = this.
|
|
1018
|
+
// event.args.id = this.sessionId
|
|
861
1019
|
// }
|
|
862
1020
|
// }
|
|
863
1021
|
|