@livestore/livestore 0.4.0-dev.20 → 0.4.0-dev.22
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/effect/LiveStore.d.ts +123 -2
- package/dist/effect/LiveStore.d.ts.map +1 -1
- package/dist/effect/LiveStore.js +195 -1
- package/dist/effect/LiveStore.js.map +1 -1
- package/dist/effect/mod.d.ts +1 -1
- package/dist/effect/mod.d.ts.map +1 -1
- package/dist/effect/mod.js +3 -1
- package/dist/effect/mod.js.map +1 -1
- package/dist/live-queries/base-class.d.ts +107 -4
- 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/computed.d.ts +56 -0
- package/dist/live-queries/computed.d.ts.map +1 -1
- package/dist/live-queries/computed.js +56 -0
- package/dist/live-queries/computed.js.map +1 -1
- package/dist/live-queries/signal.d.ts +49 -0
- package/dist/live-queries/signal.d.ts.map +1 -1
- package/dist/live-queries/signal.js +49 -0
- package/dist/live-queries/signal.js.map +1 -1
- package/dist/mod.d.ts +1 -0
- package/dist/mod.d.ts.map +1 -1
- package/dist/mod.js +1 -0
- package/dist/mod.js.map +1 -1
- package/dist/store/StoreRegistry.d.ts +190 -0
- package/dist/store/StoreRegistry.d.ts.map +1 -0
- package/dist/store/StoreRegistry.js +244 -0
- package/dist/store/StoreRegistry.js.map +1 -0
- package/dist/store/StoreRegistry.test.d.ts +2 -0
- package/dist/store/StoreRegistry.test.d.ts.map +1 -0
- package/dist/store/StoreRegistry.test.js +380 -0
- package/dist/store/StoreRegistry.test.js.map +1 -0
- package/dist/store/create-store.d.ts +51 -7
- package/dist/store/create-store.d.ts.map +1 -1
- package/dist/store/create-store.js +22 -5
- package/dist/store/create-store.js.map +1 -1
- package/dist/store/devtools.d.ts.map +1 -1
- package/dist/store/devtools.js +13 -0
- package/dist/store/devtools.js.map +1 -1
- package/dist/store/store-eventstream.test.d.ts +2 -0
- package/dist/store/store-eventstream.test.d.ts.map +1 -0
- package/dist/store/store-eventstream.test.js +65 -0
- package/dist/store/store-eventstream.test.js.map +1 -0
- package/dist/store/store-types.d.ts +119 -42
- package/dist/store/store-types.d.ts.map +1 -1
- package/dist/store/store-types.js +49 -0
- package/dist/store/store-types.js.map +1 -1
- package/dist/store/store.d.ts +64 -11
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +84 -13
- package/dist/store/store.js.map +1 -1
- package/dist/utils/tests/fixture.d.ts +15 -0
- package/dist/utils/tests/fixture.d.ts.map +1 -1
- package/dist/utils/tests/fixture.js +7 -0
- package/dist/utils/tests/fixture.js.map +1 -1
- package/docs/api/index.md +1 -1
- package/docs/{data-modeling → building-with-livestore}/complex-ui-state/index.md +0 -2
- package/docs/building-with-livestore/crud/index.md +3 -0
- package/docs/{data-modeling → building-with-livestore/data-modeling}/index.md +1 -1
- package/docs/{reference → building-with-livestore}/debugging/index.md +2 -2
- package/docs/{reference → building-with-livestore}/devtools/index.md +1 -1
- package/docs/{reference → building-with-livestore}/events/index.md +17 -2
- package/docs/{data-modeling → building-with-livestore/examples}/todo-workspaces/index.md +3 -9
- package/docs/building-with-livestore/opentelemetry/index.md +227 -0
- package/docs/building-with-livestore/production-checklist/index.md +5 -0
- package/docs/{reference → building-with-livestore}/reactivity-system/index.md +1 -1
- package/docs/building-with-livestore/rules-for-ai-agents/index.md +9 -0
- package/docs/{reference → building-with-livestore}/state/materializers/index.md +1 -1
- package/docs/{reference → building-with-livestore}/state/sql-queries/index.md +24 -2
- package/docs/{reference → building-with-livestore}/state/sqlite-schema/index.md +11 -11
- package/docs/{reference → building-with-livestore}/state/sqlite-schema-effect/index.md +17 -17
- package/docs/building-with-livestore/store/index.md +625 -0
- package/docs/{reference → building-with-livestore}/syncing/index.md +5 -5
- package/docs/building-with-livestore/tools/cli/index.md +177 -0
- package/docs/{reference → building-with-livestore/tools}/mcp/index.md +30 -8
- package/docs/examples/cloudflare-adapter/index.md +1 -1
- package/docs/examples/expo-adapter/index.md +1 -1
- package/docs/examples/index.md +3 -3
- package/docs/examples/node-adapter/index.md +1 -1
- package/docs/examples/web-adapter/index.md +1 -1
- package/docs/{reference/framework-integrations → framework-integrations}/custom-elements/index.md +1 -1
- package/docs/{reference/framework-integrations → framework-integrations}/react-integration/index.md +358 -327
- package/docs/framework-integrations/vue-integration/index.md +294 -0
- package/docs/getting-started/expo/index.md +190 -44
- package/docs/getting-started/react-web/index.md +79 -26
- package/docs/getting-started/vue/index.md +210 -25
- package/docs/index.md +150 -106
- package/docs/llms.txt +138 -96
- package/docs/misc/CODE_OF_CONDUCT/index.md +1 -1
- package/docs/misc/FAQ/index.md +1 -1
- package/docs/misc/community/index.md +2 -1
- package/docs/misc/design-partners/index.md +1 -1
- package/docs/misc/package-management/index.md +1 -1
- package/docs/misc/resources/index.md +1 -1
- package/docs/misc/troubleshooting/index.md +3 -3
- package/docs/{reference → overview}/concepts/index.md +8 -8
- package/docs/{evaluation → overview}/how-livestore-works/index.md +10 -10
- package/docs/overview/introduction/index.md +413 -0
- package/docs/{evaluation → overview}/technology-comparison/index.md +2 -2
- package/docs/{evaluation → overview}/when-livestore/index.md +2 -2
- package/docs/overview/why-livestore/index.md +111 -0
- package/docs/patterns/app-evolution/index.md +2 -2
- package/docs/patterns/auth/index.md +188 -37
- package/docs/patterns/effect/index.md +21 -11
- package/docs/patterns/external-data/index.md +1 -1
- package/docs/patterns/file-management/index.md +1 -1
- package/docs/patterns/file-structure/index.md +1 -1
- package/docs/patterns/offline/index.md +1 -1
- package/docs/patterns/rich-text-editing/index.md +6 -61
- package/docs/patterns/server-side-clients/index.md +97 -0
- package/docs/patterns/state-machines/index.md +1 -1
- package/docs/patterns/storybook/index.md +44 -27
- package/docs/{reference/platform-adapters → platform-adapters}/cloudflare-durable-object-adapter/index.md +2 -2
- package/docs/{reference/platform-adapters → platform-adapters}/electron-adapter/index.md +2 -2
- package/docs/platform-adapters/expo-adapter/index.md +262 -0
- package/docs/{reference/platform-adapters → platform-adapters}/node-adapter/index.md +1 -1
- package/docs/{reference/platform-adapters → platform-adapters}/tauri-adapter/index.md +2 -2
- package/docs/{reference/platform-adapters → platform-adapters}/web-adapter/index.md +73 -4
- package/docs/sustainable-open-source/contributing/docs/index.md +94 -0
- package/docs/{contributing/contributing → sustainable-open-source/contributing/info}/index.md +1 -1
- package/docs/{contributing → sustainable-open-source/contributing}/monorepo/index.md +1 -1
- package/docs/{misc → sustainable-open-source}/sponsoring/index.md +4 -4
- package/docs/{reference/syncing/sync-provider → sync-providers}/cloudflare/index.md +15 -15
- package/docs/{reference/syncing/sync-provider → sync-providers}/electricsql/index.md +4 -4
- package/docs/{reference/syncing/sync-provider → sync-providers}/s2/index.md +12 -12
- package/docs/tutorial/0-welcome/index.md +1 -1
- package/docs/tutorial/1-setup-starter-project/index.md +5 -5
- package/docs/tutorial/3-read-and-write-todos-via-livestore/index.md +62 -43
- package/docs/tutorial/4-sync-data-via-cloudflare/index.md +2 -2
- package/docs/tutorial/5-expand-business-logic/index.md +1 -1
- package/docs/tutorial/6-persist-ui-state/index.md +12 -12
- package/docs/{evaluation → understanding-livestore}/design-decisions/index.md +2 -2
- package/docs/{evaluation → understanding-livestore}/event-sourcing/index.md +1 -1
- package/package.json +6 -6
- package/src/effect/LiveStore.ts +385 -3
- package/src/effect/mod.ts +13 -1
- package/src/live-queries/base-class.ts +113 -19
- package/src/live-queries/computed.ts +56 -0
- package/src/live-queries/signal.ts +49 -0
- package/src/mod.ts +1 -0
- package/src/store/StoreRegistry.test.ts +516 -0
- package/src/store/StoreRegistry.ts +393 -0
- package/src/store/create-store.ts +54 -10
- package/src/store/devtools.ts +15 -0
- package/src/store/store-eventstream.test.ts +112 -0
- package/src/store/store-types.ts +130 -23
- package/src/store/store.ts +101 -16
- package/src/utils/tests/fixture.ts +7 -0
- package/docs/api/adapter-expo/README/index.md +0 -9
- package/docs/api/adapter-expo/functions/makePersistedAdapter/index.md +0 -15
- package/docs/api/adapter-expo/type-aliases/MakeDbOptions/index.md +0 -74
- package/docs/api/adapter-node/README/index.md +0 -6
- package/docs/api/adapter-node/functions/makeAdapter/index.md +0 -17
- package/docs/api/adapter-node/functions/makeWorkerAdapter/index.md +0 -17
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerBootStatusStream/index.md +0 -33
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerExport/index.md +0 -33
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerExportEventlog/index.md +0 -33
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerExtraDevtoolsMessage/index.md +0 -47
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerGetLeaderHead/index.md +0 -33
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerGetLeaderSyncState/index.md +0 -33
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerGetNetworkStatus/index.md +0 -33
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerGetRecreateSnapshot/index.md +0 -33
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerInitialMessage/index.md +0 -153
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerNetworkStatusStream/index.md +0 -33
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerPullStream/index.md +0 -75
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerPushToLeader/index.md +0 -47
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerShutdown/index.md +0 -33
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerSyncStateStream/index.md +0 -33
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerOuterInitialMessage/index.md +0 -83
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerOuterRequest/index.md +0 -79
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/SharedWorkerRequest/index.md +0 -29
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/SharedWorkerUpdateMessagePort/index.md +0 -89
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/LeaderWorkerInnerRequest/index.md +0 -5
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/StorageType/index.md +0 -5
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/StorageTypeEncoded/index.md +0 -5
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/StorageTypeOpfs/index.md +0 -5
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/SyncBackendOptions/index.md +0 -5
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/variables/LeaderWorkerInnerRequest/index.md +0 -5
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/variables/StorageType/index.md +0 -5
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/variables/StorageTypeOpfs/index.md +0 -5
- package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/variables/SyncBackendOptions/index.md +0 -5
- package/docs/api/adapter-web/README/index.md +0 -14
- package/docs/api/adapter-web/functions/makeInMemoryAdapter/index.md +0 -24
- package/docs/api/adapter-web/functions/makePersistedAdapter/index.md +0 -29
- package/docs/api/adapter-web/type-aliases/WebAdapterOptions/index.md +0 -124
- package/docs/api/livestore/@livestore/namespaces/EventDef/type-aliases/Any/index.md +0 -8
- package/docs/api/livestore/@livestore/namespaces/EventDef/type-aliases/AnyWithoutFn/index.md +0 -9
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/type-aliases/Composite/index.md +0 -37
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/type-aliases/CompositeInput/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/type-aliases/CompositePair/index.md +0 -23
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/type-aliases/Type/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/Composite/index.md +0 -36
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/DEFAULT/index.md +0 -13
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/REBASE_GENERATION_DEFAULT/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/ROOT/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/Schema/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/compare/index.md +0 -22
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/diff/index.md +0 -29
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/fromGlobal/index.md +0 -17
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/fromString/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/isEqual/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/isGreaterThan/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/isGreaterThanOrEqual/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/make/index.md +0 -13
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/max/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/nextPair/index.md +0 -30
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/toString/index.md +0 -19
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Global/type-aliases/Type/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Global/variables/Schema/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Global/variables/make/index.md +0 -13
- package/docs/api/livestore/@livestore/namespaces/FromInputSchema/type-aliases/DeriveSchema/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/LiveQuery/type-aliases/Any/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/LiveQueryDef/type-aliases/Any/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/classes/EncodedWithMeta/index.md +0 -374
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/type-aliases/Decoded/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/type-aliases/Encoded/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/type-aliases/ForSchema/index.md +0 -13
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/Decoded/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/Encoded/index.md +0 -27
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/isEqualEncoded/index.md +0 -22
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/makeSchema/index.md +0 -30
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/makeSchemaMemo/index.md +0 -23
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/Decoded/index.md +0 -61
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/Encoded/index.md +0 -61
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/ForRecord/index.md +0 -13
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/InputDecoded/index.md +0 -29
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/InputEncoded/index.md +0 -29
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Global/type-aliases/Encoded/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Global/variables/Encoded/index.md +0 -20
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Global/variables/toClientEncoded/index.md +0 -41
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/type-aliases/Decoded/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/type-aliases/Encoded/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/type-aliases/ForRecord/index.md +0 -13
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/type-aliases/ForSchema/index.md +0 -13
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/variables/Encoded/index.md +0 -14
- package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/variables/makeSchema/index.md +0 -30
- package/docs/api/livestore/@livestore/namespaces/LiveStoreSchema/type-aliases/Any/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/Equality/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/In/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/Like/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/MultiValue/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/Order/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/SingleValue/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/Any/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/ApiFeature/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/ApiFull/index.md +0 -513
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/FirstQueryBehaviour/index.md +0 -49
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/OrderByParams/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/WhereOps/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/WhereParams/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/CountQuery/index.md +0 -35
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/DeleteQuery/index.md +0 -43
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/InsertQuery/index.md +0 -51
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/OnConflict/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/OrderBy/index.md +0 -19
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/RowQuery/index.md +0 -35
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/SelectQuery/index.md +0 -87
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/UpdateQuery/index.md +0 -51
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/Where/index.md +0 -27
- package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/type-aliases/WriteQuery/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/Queryable/type-aliases/Result/index.md +0 -19
- package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/DocumentResult/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/GetIdColumnType/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/GetOrCreateOptions/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/RequiredColumnsOptions/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/Result/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/ResultEncoded/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Blob/index.md +0 -13
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/ColumnType/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Integer/index.md +0 -13
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Null/index.md +0 -13
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Real/index.md +0 -13
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Text/index.md +0 -13
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/Column/index.md +0 -69
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/DbSchema/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/ForeignKey/index.md +0 -53
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/Index/index.md +0 -45
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/Table/index.md +0 -37
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/column/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/dbSchema/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/hash/index.md +0 -18
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/index.md +0 -27
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/structSchemaForTable/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/table/index.md +0 -23
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/ColumnDefinition/type-aliases/Any/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/InsertRowDecoded/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/InsertRowEncoded/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/NullableColumnNames/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RequiredInsertColumnNames/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RequiredInsertColumns/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RequiresInsertValues/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowDecoded/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowDecodedAll/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowEncodeNonNullable/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowEncoded/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowEncodedAll/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/Columns/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/NullableColumnNames/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/RowDecoded/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/RowDecodedAll/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/RowEncodeNonNullable/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/RowEncoded/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/AnyIfConstained/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColDefFn/index.md +0 -125
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColumnDefaultThunk/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColumnDefaultValue/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColumnDefinition/index.md +0 -81
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColumnDefinitionInput/index.md +0 -45
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/Columns/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ConstraintColumns/index.md +0 -16
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/DbSchema/index.md +0 -9
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/DbSchemaFromInputSchema/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/DbSchemaInput/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/DefaultEncodedForColumnType/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/EmptyObjIfConstained/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/FieldColumnType/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/Index/index.md +0 -35
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/InsertStructSchemaForColumns/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/IsSingleColumn/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/NoDefault/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/SpecializedColDefFn/index.md +0 -111
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/SqlDefaultValue/index.md +0 -13
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/StructSchemaForColumns/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/TableDefinition/index.md +0 -47
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/NoDefault/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/blob/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/boolean/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/column/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/datetime/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/datetimeInteger/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/defaultSchemaForColumnType/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/insertStructSchemaForTable/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/integer/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/isColumnDefinition/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/isDefaultThunk/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/isSqlDefaultValue/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/json/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/makeDbSchema/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/real/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/resolveColumnDefault/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/structSchemaForTable/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/table/index.md +0 -37
- package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/text/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/functions/table/index.md +0 -294
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/interfaces/Trait/index.md +0 -149
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/Any/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/DefaultIdType/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/GetOptions/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/MakeGetQueryBuilder/index.md +0 -19
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/SetEventDef/index.md +0 -19
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/SetEventDefLike/index.md +0 -65
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/SqliteDef/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/TableDefBase/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/TraitAny/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableOptions/type-aliases/Input/index.md +0 -43
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableOptions/type-aliases/WithDefaults/index.md +0 -35
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/InsertRowDecoded/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/NullableColumnNames/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RequiredInsertColumnNames/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RowDecoded/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RowDecodedAll/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RowEncodeNonNullable/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RowEncoded/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/Columns/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/NullableColumnNames/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/RowDecoded/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/RowDecodedAll/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/RowEncodeNonNullable/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/RowEncoded/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/SchemaToColumns/type-aliases/ColumnDefForType/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/SchemaToColumns/type-aliases/FromTypes/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/TableDef/type-aliases/Any/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/TableDefInput/type-aliases/ForColumns/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/TableDefInput/type-aliases/ForSchema/index.md +0 -23
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/ClientDocumentTableDef/index.md +0 -23
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/ClientDocumentTableDefSymbol/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/ClientDocumentTableOptions/index.md +0 -35
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/DefaultSqliteTableDef/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/DefaultSqliteTableDefConstrained/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/InputState/index.md +0 -35
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/PrettifyFlat/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/SqliteTableDefForInput/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/SqliteTableDefForSchemaInput/index.md +0 -23
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/StateType/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableDef/index.md +0 -45
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableDefBase/index.md +0 -47
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableDefInternalsSymbol/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableOptions/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableOptionsInput/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/ToColumns/index.md +0 -11
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/WithDefaults/index.md +0 -27
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/AutoIncrement/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/ClientDocumentTableDefSymbol/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/ColumnType/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/Default/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/PrimaryKeyId/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/TableDefInternalsSymbol/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/Unique/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/blob/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/boolean/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/clientDocument/index.md +0 -56
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/column/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/createOptimisticEventSchema/index.md +0 -43
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/datetime/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/getColumnDefForSchema/index.md +0 -29
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/integer/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/isColumnDefinition/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/json/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/makeColumnSpec/index.md +0 -22
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/makeState/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/real/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/tableIsClientDocumentTable/index.md +0 -21
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/text/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withAutoIncrement/index.md +0 -23
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withColumnType/index.md +0 -61
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withDefault/index.md +0 -61
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withPrimaryKey/index.md +0 -23
- package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withUnique/index.md +0 -23
- package/docs/api/livestore/@livestore/namespaces/State/type-aliases/QueryBuilderAstSymbol/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/type-aliases/QueryBuilderTypeId/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/variables/QueryBuilderAstSymbol/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/State/variables/QueryBuilderTypeId/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeContext/index.md +0 -105
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResult/index.md +0 -29
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResultAdvance/index.md +0 -125
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResultRebase/index.md +0 -125
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResultReject/index.md +0 -117
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResultUnknownError/index.md +0 -63
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/Payload/index.md +0 -29
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/PayloadLocalPush/index.md +0 -29
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/PayloadUpstream/index.md +0 -29
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/PayloadUpstreamAdvance/index.md +0 -29
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/PayloadUpstreamRebase/index.md +0 -31
- package/docs/api/livestore/@livestore/namespaces/SyncState/classes/SyncState/index.md +0 -179
- package/docs/api/livestore/@livestore/namespaces/SyncState/variables/findDivergencePoint/index.md +0 -36
- package/docs/api/livestore/@livestore/namespaces/SyncState/variables/merge/index.md +0 -35
- package/docs/api/livestore/@livestore/namespaces/SyncState/variables/payloadFromMergeResult/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/EventlogMetaRow/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/SchemaEventDefsMetaRow/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/SchemaMetaRow/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/SessionChangesetMetaRow/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/SyncStatusRow/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/EVENTLOG_META_TABLE/index.md +0 -12
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/SCHEMA_EVENT_DEFS_META_TABLE/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/SCHEMA_META_TABLE/index.md +0 -10
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/SESSION_CHANGESET_META_TABLE/index.md +0 -8
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/SYNC_STATUS_TABLE/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/eventlogMetaTable/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/eventlogSystemTables/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/isStateSystemTable/index.md +0 -15
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/schemaEventDefsMetaTable/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/schemaMetaTable/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/sessionChangesetMetaTable/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/stateSystemTables/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/syncStatusTable/index.md +0 -7
- package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/Callback/index.md +0 -19
- package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/HandlingConfig/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/HandlingStrategy/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/Reason/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/ResolveContext/index.md +0 -5
- package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/Resolved/index.md +0 -5
- package/docs/api/livestore/README/index.md +0 -128
- package/docs/api/livestore/classes/IntentionalShutdownCause/index.md +0 -107
- package/docs/api/livestore/classes/SqliteDbWrapper/index.md +0 -538
- package/docs/api/livestore/classes/Store/index.md +0 -605
- package/docs/api/livestore/classes/StoreInterrupted/index.md +0 -107
- package/docs/api/livestore/functions/computed/index.md +0 -31
- package/docs/api/livestore/functions/createStore/index.md +0 -29
- package/docs/api/livestore/functions/createStorePromise/index.md +0 -31
- package/docs/api/livestore/functions/emptyDebugInfo/index.md +0 -25
- package/docs/api/livestore/functions/exposeDebugUtils/index.md +0 -9
- package/docs/api/livestore/functions/extractStackInfoFromStackTrace/index.md +0 -15
- package/docs/api/livestore/functions/isQueryable/index.md +0 -15
- package/docs/api/livestore/functions/nanoid/index.md +0 -39
- package/docs/api/livestore/functions/signal/index.md +0 -27
- package/docs/api/livestore/functions/stackInfoToString/index.md +0 -15
- package/docs/api/livestore/interfaces/ClientSession/index.md +0 -89
- package/docs/api/livestore/interfaces/CreateStoreOptions/index.md +0 -280
- package/docs/api/livestore/interfaces/InputSchema/index.md +0 -50
- package/docs/api/livestore/interfaces/InternalState/index.md +0 -33
- package/docs/api/livestore/interfaces/LiveQuery/index.md +0 -139
- package/docs/api/livestore/interfaces/LiveQueryDef/index.md +0 -95
- package/docs/api/livestore/interfaces/LiveStoreSchema/index.md +0 -83
- package/docs/api/livestore/interfaces/PreparedStatement/index.md +0 -71
- package/docs/api/livestore/interfaces/RcRef/index.md +0 -37
- package/docs/api/livestore/interfaces/Signal/index.md +0 -321
- package/docs/api/livestore/interfaces/SignalDef/index.md +0 -119
- package/docs/api/livestore/interfaces/SqliteDb/index.md +0 -249
- package/docs/api/livestore/type-aliases/Adapter/index.md +0 -15
- package/docs/api/livestore/type-aliases/Bindable/index.md +0 -5
- package/docs/api/livestore/type-aliases/BootStatus/index.md +0 -5
- package/docs/api/livestore/type-aliases/BootStatus-1/index.md +0 -5
- package/docs/api/livestore/type-aliases/DebugInfo/index.md +0 -5
- package/docs/api/livestore/type-aliases/DebugInfo-1/index.md +0 -5
- package/docs/api/livestore/type-aliases/DefineEventOptions/index.md +0 -100
- package/docs/api/livestore/type-aliases/EventDef/index.md +0 -172
- package/docs/api/livestore/type-aliases/EventDefFact/index.md +0 -7
- package/docs/api/livestore/type-aliases/EventDefFactInput/index.md +0 -18
- package/docs/api/livestore/type-aliases/EventDefFacts/index.md +0 -7
- package/docs/api/livestore/type-aliases/EventDefFactsGroup/index.md +0 -50
- package/docs/api/livestore/type-aliases/EventDefFactsSnapshot/index.md +0 -7
- package/docs/api/livestore/type-aliases/EventDefKey/index.md +0 -7
- package/docs/api/livestore/type-aliases/EventDefMap/index.md +0 -16
- package/docs/api/livestore/type-aliases/EventDefRecord/index.md +0 -21
- package/docs/api/livestore/type-aliases/FactsCallback/index.md +0 -60
- package/docs/api/livestore/type-aliases/LiveStoreContext/index.md +0 -5
- package/docs/api/livestore/type-aliases/LiveStoreContextRunning/index.md +0 -21
- package/docs/api/livestore/type-aliases/LiveStoreSchemaSymbol/index.md +0 -5
- package/docs/api/livestore/type-aliases/Materializer/index.md +0 -59
- package/docs/api/livestore/type-aliases/MaterializerContextQuery/index.md +0 -64
- package/docs/api/livestore/type-aliases/MaterializerResult/index.md +0 -12
- package/docs/api/livestore/type-aliases/MutableDebugInfo/index.md +0 -5
- package/docs/api/livestore/type-aliases/MutableDebugInfo-1/index.md +0 -5
- package/docs/api/livestore/type-aliases/OtelOptions/index.md +0 -21
- package/docs/api/livestore/type-aliases/PreparedBindValues/index.md +0 -5
- package/docs/api/livestore/type-aliases/PreparedBindValues-1/index.md +0 -5
- package/docs/api/livestore/type-aliases/QueryBuilder/index.md +0 -61
- package/docs/api/livestore/type-aliases/QueryBuilderAst/index.md +0 -5
- package/docs/api/livestore/type-aliases/QueryDebugInfo/index.md +0 -37
- package/docs/api/livestore/type-aliases/Queryable/index.md +0 -13
- package/docs/api/livestore/type-aliases/RefreshReason/index.md +0 -75
- package/docs/api/livestore/type-aliases/SessionIdSymbol/index.md +0 -5
- package/docs/api/livestore/type-aliases/ShutdownDeferred/index.md +0 -5
- package/docs/api/livestore/type-aliases/StackFrame/index.md +0 -21
- package/docs/api/livestore/type-aliases/StackInfo/index.md +0 -13
- package/docs/api/livestore/type-aliases/StoreInternals/index.md +0 -156
- package/docs/api/livestore/type-aliases/StoreInternalsSymbol/index.md +0 -5
- package/docs/api/livestore/type-aliases/SubscribeOptions/index.md +0 -73
- package/docs/api/livestore/type-aliases/Unsubscribe/index.md +0 -9
- package/docs/api/livestore/variables/LiveStoreSchemaSymbol/index.md +0 -5
- package/docs/api/livestore/variables/SessionIdSymbol/index.md +0 -26
- package/docs/api/livestore/variables/StoreInternalsSymbol/index.md +0 -5
- package/docs/api/livestore/variables/UNKNOWN_EVENT_SCHEMA_HASH/index.md +0 -5
- package/docs/api/livestore/variables/clientOnly/index.md +0 -54
- package/docs/api/livestore/variables/deepEqual/index.md +0 -25
- package/docs/api/livestore/variables/defineEvent/index.md +0 -49
- package/docs/api/livestore/variables/defineFacts/index.md +0 -42
- package/docs/api/livestore/variables/defineMaterializer/index.md +0 -39
- package/docs/api/livestore/variables/getDefaultValuesDecoded/index.md +0 -25
- package/docs/api/livestore/variables/getDefaultValuesEncoded/index.md +0 -25
- package/docs/api/livestore/variables/getEventDef/index.md +0 -33
- package/docs/api/livestore/variables/isLiveStoreSchema/index.md +0 -21
- package/docs/api/livestore/variables/liveStoreVersion/index.md +0 -5
- package/docs/api/livestore/variables/makeSchema/index.md +0 -21
- package/docs/api/livestore/variables/makeShutdownDeferred/index.md +0 -5
- package/docs/api/livestore/variables/materializers/index.md +0 -58
- package/docs/api/livestore/variables/normalizeUnknownEventHandling/index.md +0 -15
- package/docs/api/livestore/variables/prepareBindValues/index.md +0 -26
- package/docs/api/livestore/variables/provideOtel/index.md +0 -45
- package/docs/api/livestore/variables/queryDb/index.md +0 -115
- package/docs/api/livestore/variables/resolveEventDef/index.md +0 -28
- package/docs/api/livestore/variables/sql/index.md +0 -24
- package/docs/api/livestore/variables/synced/index.md +0 -55
- package/docs/api/react/README/index.md +0 -24
- package/docs/api/react/functions/LiveStoreProvider/index.md +0 -21
- package/docs/api/react/functions/useQuery/index.md +0 -37
- package/docs/api/react/functions/useQueryRef/index.md +0 -69
- package/docs/api/react/functions/useStackInfo/index.md +0 -9
- package/docs/api/react/functions/useStore/index.md +0 -21
- package/docs/api/react/functions/withReactApi/index.md +0 -21
- package/docs/api/react/type-aliases/Dispatch/index.md +0 -21
- package/docs/api/react/type-aliases/ReactApi/index.md +0 -21
- package/docs/api/react/type-aliases/SetStateAction/index.md +0 -11
- package/docs/api/react/type-aliases/SetStateActionPartial/index.md +0 -11
- package/docs/api/react/type-aliases/StateSetters/index.md +0 -11
- package/docs/api/react/type-aliases/UseClientDocumentResult/index.md +0 -11
- package/docs/api/react/variables/LiveStoreContext/index.md +0 -5
- package/docs/api/react/variables/useClientDocument/index.md +0 -91
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/ReadableStream/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/Request/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/Response/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/Rpc/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/WebSocket/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/WebSocketPair/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/WebSocketRequestResponsePair/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/AbortController/index.md +0 -53
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/AbortSignal/index.md +0 -269
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Ai/index.md +0 -175
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/AiGateway/index.md +0 -99
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/AutoRAG/index.md +0 -95
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiAutomaticSpeechRecognition/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiImageClassification/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiImageTextToText/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiImageToText/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiMultimodalEmbeddings/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiObjectDetection/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiSentenceSimilarity/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiSummarization/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextClassification/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextEmbeddings/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextGeneration/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextToImage/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextToSpeech/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTranslation/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_Base_En_V1_5/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_Large_En_V1_5/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_M3/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_Reranker_Base/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_Small_En_V1_5/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Black_Forest_Labs_Flux_1_Schnell/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Deepgram_Aura_1/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Deepgram_Nova_3/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Google_Gemma_3_12B_It/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Leonardo_Lucid_Origin/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Leonardo_Phoenix_1_0/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_Llama_Guard_3_8B/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_M2M100_1_2B/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Gpt_Oss_120B/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Gpt_Oss_20B/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Whisper/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Whisper_Large_V3_Turbo/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Whisper_Tiny_En/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Qwen_Qwq_32B/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Unum_Uform_Gen2_Qwen_500M/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Blob/index.md +0 -151
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Body/index.md +0 -112
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ByteLengthQueuingStrategy/index.md +0 -79
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Cache/index.md +0 -83
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CacheStorage/index.md +0 -47
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CloseEvent/index.md +0 -415
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CompressionStream/index.md +0 -65
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CountQueuingStrategy/index.md +0 -79
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Crypto/index.md +0 -86
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CryptoKey/index.md +0 -66
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CustomEvent/index.md +0 -403
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/D1Database/index.md +0 -113
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/D1DatabaseSession/index.md +0 -70
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/D1PreparedStatement/index.md +0 -161
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/DOMException/index.md +0 -451
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/DecompressionStream/index.md +0 -65
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/DigestStream/index.md +0 -137
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/DurableObjectNamespace/index.md +0 -135
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/EmailEvent/index.md +0 -413
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ErrorEvent/index.md +0 -469
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Event/index.md +0 -296
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/EventSource/index.md +0 -345
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/EventTarget/index.md +0 -127
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ExtendableEvent/index.md +0 -409
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/FetchEvent/index.md +0 -451
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/File/index.md +0 -211
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/FixedLengthStream/index.md +0 -69
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/FormData/index.md +0 -295
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/HTMLRewriter/index.md +0 -73
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Headers/index.md +0 -237
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/IdentityTransformStream/index.md +0 -69
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/MessageEvent/index.md +0 -439
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Performance/index.md +0 -44
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/PromiseRejectionEvent/index.md +0 -403
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/R2Bucket/index.md +0 -207
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/R2Object/index.md +0 -131
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ReadableStreamBYOBReader/index.md +0 -123
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ReadableStreamDefaultReader/index.md +0 -89
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ScheduledEvent/index.md +0 -433
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/SqlStorageCursor/index.md +0 -121
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/SqlStorageStatement/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/SubtleCrypto/index.md +0 -432
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TailEvent/index.md +0 -421
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TextDecoder/index.md +0 -79
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TextDecoderStream/index.md +0 -111
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TextEncoder/index.md +0 -75
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TextEncoderStream/index.md +0 -73
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ToMarkdownService/index.md +0 -69
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TransformStream/index.md +0 -75
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/URL/index.md +0 -201
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/URLPattern/index.md +0 -185
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/URLSearchParams/index.md +0 -287
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Vectorize/index.md +0 -189
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/VectorizeIndex/index.md +0 -160
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WebSocketRequestResponsePair/index.md +0 -53
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WorkerGlobalScope/index.md +0 -145
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Workflow/index.md +0 -92
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WorkflowInstance/index.md +0 -117
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WritableStream/index.md +0 -105
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WritableStreamDefaultWriter/index.md +0 -143
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/addEventListener/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/atob/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/btoa/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/clearInterval/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/clearTimeout/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/dispatchEvent/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/fetch/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/queueMicrotask/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/removeEventListener/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/reportError/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/setInterval/index.md +0 -51
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/setTimeout/index.md +0 -51
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/structuredClone/index.md +0 -25
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AiGatewayInternalError/index.md +0 -55
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AiGatewayLogNotFound/index.md +0 -55
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AiInternalError/index.md +0 -55
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AiModels/index.md +0 -611
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Baai_Bge_Reranker_Base_Input/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Baai_Bge_Reranker_Base_Output/index.md +0 -23
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Input/index.md +0 -23
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Output/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Deepgram_Aura_1_Input/index.md +0 -63
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Deepgram_Nova_3_Input/index.md +0 -369
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Deepgram_Nova_3_Output/index.md +0 -47
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Leonardo_Lucid_Origin_Input/index.md +0 -73
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Leonardo_Lucid_Origin_Output/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Leonardo_Phoenix_1_0_Input/index.md +0 -73
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Async_Batch/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Messages/index.md +0 -181
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Messages_Inner/index.md +0 -181
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Prompt/index.md +0 -131
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Prompt_Inner/index.md +0 -131
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_Guard_3_8B_Input/index.md +0 -61
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_Guard_3_8B_Output/index.md +0 -57
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Openai_Whisper_Large_V3_Turbo_Input/index.md +0 -63
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output/index.md +0 -119
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Openai_Whisper_Output/index.md +0 -53
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Openai_Whisper_Tiny_En_Output/index.md +0 -53
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output/index.md +0 -23
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Output/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AlarmInvocationInfo/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AnalyticsEngineDataPoint/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AnalyticsEngineDataset/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AsyncBatch/index.md +0 -75
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AsyncResponse/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AutoRAGInternalError/index.md +0 -55
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AutoRAGNameNotSetError/index.md +0 -55
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AutoRAGNotFoundError/index.md +0 -55
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AutoRAGUnauthorizedError/index.md +0 -55
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3InputEmbedding/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3InputEmbedding1/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3InputQueryAndContexts/index.md +0 -39
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3InputQueryAndContexts1/index.md +0 -39
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3OuputEmbedding/index.md +0 -31
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3OuputQuery/index.md +0 -23
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3OutputEmbeddingForContexts/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BasicImageTransformations/index.md +0 -115
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BasicImageTransformationsGravityCoordinates/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BlobOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CacheQueryOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CloseEventInit/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Cloudflare/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Comment/index.md +0 -97
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Console/index.md +0 -439
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Container/index.md +0 -155
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ContainerStartupOptions/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ContentOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyAesKeyAlgorithm/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyArbitraryKeyAlgorithm/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyEllipticKeyAlgorithm/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyHmacKeyAlgorithm/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyKeyAlgorithm/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyPair/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyRsaKeyAlgorithm/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CustomEventCustomEventInit/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/D1ExecResult/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/D1Meta/index.md +0 -104
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/D1Response/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DispatchNamespace/index.md +0 -75
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Disposable/index.md +0 -7
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Doctype/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DocumentEnd/index.md +0 -25
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObject/index.md +0 -113
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectClass/index.md +0 -9
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectGetAlarmOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectGetOptions/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectId/index.md +0 -41
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectListOptions/index.md +0 -67
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectNamespaceGetDurableObjectOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectNamespaceNewUniqueIdOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectPutOptions/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectSetAlarmOptions/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectState/index.md +0 -237
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectStorage/index.md +0 -387
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectTransaction/index.md +0 -257
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DynamicDispatchLimits/index.md +0 -23
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DynamicDispatchOptions/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Element/index.md +0 -285
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EmailMessage/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EndTag/index.md +0 -67
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ErrorEventErrorEventInit/index.md +0 -43
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventInit/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventListenerObject/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventSourceEventSourceInit/index.md +0 -55
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventTargetAddEventListenerOptions/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventTargetEventListenerOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventTargetHandlerObject/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ExecutionContext/index.md +0 -47
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ExportedHandler/index.md +0 -81
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/FetcherPutOptions/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/FileOptions/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ForwardableEmailMessage/index.md +0 -145
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/GPT_OSS_120B_Responses/index.md +0 -33
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/GPT_OSS_120B_Responses_Async/index.md +0 -33
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/GPT_OSS_20B_Responses/index.md +0 -33
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/GPT_OSS_20B_Responses_Async/index.md +0 -33
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Google_Gemma_3_12B_It_Messages/index.md +0 -167
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Google_Gemma_3_12B_It_Prompt/index.md +0 -123
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/HTMLRewriterDocumentContentHandlers/index.md +0 -75
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/HTMLRewriterElementContentHandlers/index.md +0 -57
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/HelloWorldBinding/index.md +0 -39
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Hyperdrive/index.md +0 -77
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IdentityTransformStreamQueuingStrategy/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ImageTransformationResult/index.md +0 -51
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ImageTransformer/index.md +0 -76
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ImagesBinding/index.md +0 -61
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ImagesError/index.md +0 -63
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesBase/index.md +0 -198
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesBotManagement/index.md +0 -31
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesBotManagementBase/index.md +0 -62
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesBotManagementEnterprise/index.md +0 -48
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesCloudflareAccessOrApiShield/index.md +0 -24
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesCloudflareForSaaSEnterprise/index.md +0 -22
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesExportedAuthenticatorMetadata/index.md +0 -69
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesGeographicInformation/index.md +0 -189
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesTLSClientAuth/index.md +0 -256
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesTLSClientAuthPlaceholder/index.md +0 -141
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/InferenceUpstreamError/index.md +0 -55
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/JSONMode/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/JsonWebKey/index.md +0 -151
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/JsonWebKeyWithKid/index.md +0 -231
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespace/index.md +0 -769
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespaceGetOptions/index.md +0 -25
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespaceGetWithMetadataResult/index.md +0 -37
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespaceListKey/index.md +0 -37
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespaceListOptions/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespacePutOptions/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaBinding/index.md +0 -30
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaError/index.md +0 -66
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaTransformationGenerator/index.md +0 -30
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaTransformationResult/index.md +0 -54
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaTransformer/index.md +0 -30
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Message/index.md +0 -71
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessageBatch/index.md +0 -55
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessageEventInit/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessagePort/index.md +0 -205
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessagePortPostMessageOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessageSendRequest/index.md +0 -33
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Messages/index.md +0 -161
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Messages/index.md +0 -159
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Prompt/index.md +0 -131
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Mistral_Small_3_1_24B_Instruct_Messages/index.md +0 -173
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Mistral_Small_3_1_24B_Instruct_Prompt/index.md +0 -123
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Prompt/index.md +0 -131
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/PubSubMessage/index.md +0 -75
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Queue/index.md +0 -53
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueueEvent/index.md +0 -383
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueueRetryOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueueSendBatchOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueueSendOptions/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueuingStrategy/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueuingStrategyInit/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Qwen2_5_Coder_32B_Instruct_Messages/index.md +0 -159
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Qwen2_5_Coder_32B_Instruct_Prompt/index.md +0 -131
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Qwen_Qwq_32B_Messages/index.md +0 -173
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Qwen_Qwq_32B_Prompt/index.md +0 -123
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2Checksums/index.md +0 -55
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2Conditional/index.md +0 -43
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2Error/index.md +0 -71
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2GetOptions/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2HTTPMetadata/index.md +0 -51
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2ListOptions/index.md +0 -43
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2MultipartOptions/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2MultipartUpload/index.md +0 -75
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2ObjectBody/index.md +0 -267
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2PutOptions/index.md +0 -83
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2StringChecksums/index.md +0 -43
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2UploadPartOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2UploadedPart/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RateLimit/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RateLimitOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RateLimitOutcome/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableByteStreamController/index.md +0 -103
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStream/index.md +0 -195
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamBYOBReaderReadableStreamBYOBReaderReadOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamBYOBRequest/index.md +0 -83
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamDefaultController/index.md +0 -91
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamGetReaderOptions/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamValuesOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableWritablePair/index.md +0 -33
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Request/index.md +0 -263
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInit/index.md +0 -81
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfProperties/index.md +0 -154
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfPropertiesImage/index.md +0 -372
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfPropertiesImageDraw/index.md +0 -222
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfPropertiesImageMinify/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfPropertiesR2/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Response/index.md +0 -253
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ResponseInit/index.md +0 -51
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RsaOtherPrimesInfo/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ScheduledController/index.md +0 -31
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Scheduler/index.md +0 -25
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SchedulerWaitOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ScriptVersion/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SecretsStoreSecret/index.md +0 -18
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SendEmail/index.md +0 -23
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ServiceWorkerGlobalScope/index.md +0 -1042
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Socket/index.md +0 -117
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SocketAddress/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SocketInfo/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SocketOptions/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SqlStorage/index.md +0 -61
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/StreamPipeOptions/index.md +0 -51
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/StructuredSerializeOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoDeriveKeyAlgorithm/index.md +0 -51
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoEncryptAlgorithm/index.md +0 -59
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoGenerateKeyAlgorithm/index.md +0 -51
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoHashAlgorithm/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoImportKeyAlgorithm/index.md +0 -43
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoSignAlgorithm/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SyncKvListOptions/index.md +0 -51
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SyncKvStorage/index.md +0 -97
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TestController/index.md +0 -3
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Text/index.md +0 -105
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TextDecoderConstructorOptions/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TextDecoderDecodeOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TextDecoderStreamTextDecoderStreamInit/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TextEncoderEncodeIntoResult/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TlsOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceDiagnosticChannelEvent/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceException/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItem/index.md +0 -131
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemAlarmEventInfo/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemCustomEventInfo/index.md +0 -3
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemEmailEventInfo/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemFetchEventInfo/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemFetchEventInfoRequest/index.md +0 -47
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemFetchEventInfoResponse/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemHibernatableWebSocketEventInfo/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemHibernatableWebSocketEventInfoClose/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemHibernatableWebSocketEventInfoError/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemHibernatableWebSocketEventInfoMessage/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemJsRpcEventInfo/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemQueueEventInfo/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemScheduledEventInfo/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemTailEventInfo/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemTailEventInfoTailItem/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceLog/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceMetrics/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TransformStreamDefaultController/index.md +0 -91
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Transformer/index.md +0 -113
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/URLPatternComponentResult/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/URLPatternInit/index.md +0 -75
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/URLPatternOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/URLPatternResult/index.md +0 -75
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/UnderlyingByteSource/index.md +0 -73
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/UnderlyingSink/index.md +0 -87
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/UnderlyingSource/index.md +0 -79
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/UnsafeTraceMetrics/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeAsyncMutation/index.md +0 -16
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeError/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeIndexDetails/index.md +0 -58
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeIndexInfo/index.md +0 -45
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeMatches/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeQueryOptions/index.md +0 -43
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeVector/index.md +0 -45
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeVectorMutation/index.md +0 -25
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WebSocket/index.md +0 -255
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerLoader/index.md +0 -25
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerLoaderModule/index.md +0 -59
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerLoaderWorkerCode/index.md +0 -147
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerStub/index.md +0 -31
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerStubEntrypointOptions/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkflowError/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkflowInstanceCreateOptions/index.md +0 -48
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WritableStreamDefaultController/index.md +0 -47
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/interfaces/Env/index.md +0 -3
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/interfaces/GlobalProps/index.md +0 -3
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/type-aliases/Exports/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/type-aliases/GlobalProp/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/type-aliases/MainModule/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/DurableObject/index.md +0 -161
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/RpcTarget/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/WorkerEntrypoint/index.md +0 -195
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/WorkflowEntrypoint/index.md +0 -73
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/WorkflowStep/index.md +0 -151
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/functions/waitUntil/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/RpcStub/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowBackoff/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowDelayDuration/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowDurationLabel/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowEvent/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowRetentionDuration/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowSleepDuration/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowStepConfig/index.md +0 -33
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowStepEvent/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowTimeoutDuration/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/variables/RpcStub/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/variables/env/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/DurableObjectBranded/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/RpcTargetBranded/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/StubBase/index.md +0 -33
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/WorkerEntrypointBranded/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/WorkflowEntrypointBranded/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/BaseType/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/EntrypointBranded/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/MaybeCallableProvider/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/MaybeDisposable/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/MaybeProvider/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/MethodOrProperty/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Provider/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Result/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Serializable/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Stub/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Stubable/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Stubify/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Unstubify/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/UnstubifyAll/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/DURABLE_OBJECT_BRAND/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/RPC_STUB_BRAND/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/RPC_TARGET_BRAND/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/WORKER_ENTRYPOINT_BRAND/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/WORKFLOW_ENTRYPOINT_BRAND/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/AlarmEventInfo/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Attribute/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Attributes/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/CustomEventInfo/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/DiagnosticChannelEvent/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/EmailEventInfo/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Exception/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/FetchEventInfo/index.md +0 -43
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/FetchResponseInfo/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Header/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/HibernatableWebSocketEventInfo/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/HibernatableWebSocketEventInfoClose/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/HibernatableWebSocketEventInfoError/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/HibernatableWebSocketEventInfoMessage/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/JsRpcEventInfo/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Log/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Onset/index.md +0 -83
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Outcome/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/QueueEventInfo/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Return/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/ScheduledEventInfo/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/ScriptVersion/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/SpanClose/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/SpanContext/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/SpanOpen/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/TailEvent/index.md +0 -49
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/TraceEventInfo/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/EventOutcome/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/EventType/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/TailEventHandler/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/TailEventHandlerObject/index.md +0 -69
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/TailEventHandlerType/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/CompileError/index.md +0 -199
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Global/index.md +0 -45
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Instance/index.md +0 -33
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Memory/index.md +0 -47
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Module/index.md +0 -71
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/RuntimeError/index.md +0 -199
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Table/index.md +0 -95
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/functions/instantiate/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/functions/validate/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/GlobalDescriptor/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/MemoryDescriptor/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/ModuleExportDescriptor/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/ModuleImportDescriptor/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/TableDescriptor/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ExportValue/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/Exports/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ImportExportKind/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ImportValue/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/Imports/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ModuleImports/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/TableKind/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ValueType/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AIGatewayHeaders/index.md +0 -113
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AIGatewayProviders/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AIGatewayUniversalRequest/index.md +0 -37
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiAutomaticSpeechRecognitionInput/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiAutomaticSpeechRecognitionOutput/index.md +0 -41
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiGatewayLog/index.md +0 -205
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiGatewayPatchLog/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiIMultimodalEmbeddingsOutput/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageClassificationInput/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageClassificationOutput/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageTextToTextInput/index.md +0 -109
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageTextToTextOutput/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageToTextInput/index.md +0 -101
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageToTextOutput/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiModelListType/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiModelsSearchObject/index.md +0 -81
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiModelsSearchParams/index.md +0 -61
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiMultimodalEmbeddingsInput/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiObjectDetectionInput/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiObjectDetectionOutput/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiOptions/index.md +0 -58
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiSentenceSimilarityInput/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiSentenceSimilarityOutput/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiSummarizationInput/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiSummarizationOutput/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextClassificationInput/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextClassificationOutput/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextEmbeddingsInput/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextEmbeddingsOutput/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationFunctionsInput/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationInput/index.md +0 -125
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationOutput/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationResponseFormat/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationToolInput/index.md +0 -49
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationToolLegacyInput/index.md +0 -45
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationToolLegacyOutput/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationToolOutput/index.md +0 -37
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextToImageInput/index.md +0 -93
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextToImageOutput/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextToSpeechInput/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextToSpeechOutput/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTranslationInput/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTranslationOutput/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Base_En_V1_5_Input/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Base_En_V1_5_Output/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Large_En_V1_5_Input/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Large_En_V1_5_Output/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_M3_Input/index.md +0 -19
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_M3_Output/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Small_En_V1_5_Input/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Small_En_V1_5_Output/index.md +0 -27
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Deepgram_Aura_1_Output/index.md +0 -7
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Google_Gemma_3_12B_It_Input/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Google_Gemma_3_12B_It_Output/index.md +0 -65
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Leonardo_Phoenix_1_0_Output/index.md +0 -7
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Input/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Output/index.md +0 -37
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Input/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Output/index.md +0 -49
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output/index.md +0 -83
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_M2M100_1_2B_Input/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_M2M100_1_2B_Output/index.md +0 -17
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Input/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Output/index.md +0 -65
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Gpt_Oss_120B_Input/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Gpt_Oss_120B_Output/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Gpt_Oss_20B_Input/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Gpt_Oss_20B_Output/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Whisper_Input/index.md +0 -17
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Whisper_Tiny_En_Input/index.md +0 -17
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input/index.md +0 -43
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Input/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Output/index.md +0 -65
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Qwen_Qwq_32B_Input/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Qwen_Qwq_32B_Output/index.md +0 -65
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Input/index.md +0 -69
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagAiSearchRequest/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagAiSearchRequestStreaming/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagAiSearchResponse/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagListResponse/index.md +0 -35
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagSearchRequest/index.md +0 -69
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagSearchResponse/index.md +0 -65
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/BodyInit/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/BufferSource/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/CertVerificationStatus/index.md +0 -7
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/CfProperties/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ComparisonFilter/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/CompoundFilter/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ContinentCode/index.md +0 -7
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ConversionOptions/index.md +0 -59
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ConversionRequestOptions/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ConversionResponse/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/D1Result/index.md +0 -17
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/D1SessionBookmark/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/D1SessionConstraint/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/DurableObjectJurisdiction/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/DurableObjectLocationHint/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/DurableObjectStub/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EmailExportedHandler/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EmbeddedImageConversionOptions/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EventContext/index.md +0 -121
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EventListener/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EventListenerOrEventListenerObject/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EventPluginContext/index.md +0 -133
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerFetchHandler/index.md +0 -33
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerQueueHandler/index.md +0 -33
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerScheduledHandler/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerTailHandler/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerTailStreamHandler/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerTestHandler/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerTraceHandler/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Fetcher/index.md +0 -53
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/GatewayOptions/index.md +0 -77
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/GatewayRetries/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/HeadersInit/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageConversionOptions/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageDrawOptions/index.md +0 -53
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageInfoResponse/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageInputOptions/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageOutputOptions/index.md +0 -37
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageTransform/index.md +0 -133
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageTransformationOutputOptions/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/IncomingRequestCfProperties/index.md +0 -13
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/IncomingRequestCfPropertiesEdgeRequestKeepAliveStatus/index.md +0 -7
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/InstanceStatus/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Iso3166Alpha2Code/index.md +0 -7
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/KVNamespaceListResult/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/LoopbackDurableObjectClass/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/LoopbackForExport/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/LoopbackServiceStub/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/MarkdownDocument/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/MediaTransformationInputOptions/index.md +0 -38
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/MediaTransformationOutputOptions/index.md +0 -68
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/PagesFunction/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/PagesPluginFunction/index.md +0 -33
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Params/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/QueueContentType/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/R2Objects/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/R2Range/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ReadableStreamReadResult/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/RequestInfo/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/RoleScopedChatInput/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Service/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/SqlStorageValue/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/SupportedFileFormat/index.md +0 -21
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/TypedArray/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/UniversalGatewayOptions/index.md +0 -17
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/UsageTags/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorFloatArray/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeDistanceMetric/index.md +0 -8
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeIndexConfig/index.md +0 -7
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeMatch/index.md +0 -15
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeMetadataRetrievalLevel/index.md +0 -9
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadata/index.md +0 -7
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadataFilter/index.md +0 -11
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadataFilterCollectionOp/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadataFilterOp/index.md +0 -9
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadataValue/index.md +0 -7
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WebSocketEventMap/index.md +0 -37
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkerGlobalScopeEventMap/index.md +0 -45
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkerVersionMetadata/index.md +0 -38
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkflowDurationLabel/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkflowRetentionDuration/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkflowSleepDuration/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/Cloudflare/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/ReadableStream/index.md +0 -51
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/Request/index.md +0 -29
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/Response/index.md +0 -73
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/WebSocket/index.md +0 -61
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/WebSocketPair/index.md +0 -17
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/caches/index.md +0 -9
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/console/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/crypto/index.md +0 -12
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/onmessage/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/origin/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/performance/index.md +0 -10
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/scheduler/index.md +0 -5
- package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/self/index.md +0 -5
- package/docs/api/sync-cf/README/index.md +0 -37
- package/docs/api/sync-cf/functions/handleSyncRequest/index.md +0 -117
- package/docs/api/sync-cf/functions/makeWorker/index.md +0 -35
- package/docs/api/sync-cf/functions/matchSyncRequest/index.md +0 -19
- package/docs/api/sync-cf/interfaces/SyncBackendRpcInterface/index.md +0 -31
- package/docs/api/sync-cf/type-aliases/CFWorker/index.md +0 -47
- package/docs/api/sync-cf/type-aliases/DoObject/index.md +0 -11
- package/docs/api/sync-cf/type-aliases/DoState/index.md +0 -5
- package/docs/api/sync-cf/type-aliases/DurableObjectId/index.md +0 -5
- package/docs/api/sync-cf/type-aliases/Env/index.md +0 -5
- package/docs/api/sync-cf/type-aliases/MakeDurableObjectClass/index.md +0 -29
- package/docs/api/sync-cf/type-aliases/MakeDurableObjectClassOptions/index.md +0 -179
- package/docs/api/sync-cf/type-aliases/MakeWorkerOptions/index.md +0 -80
- package/docs/api/sync-cf/type-aliases/RpcSubscription/index.md +0 -55
- package/docs/api/sync-cf/type-aliases/StoreId/index.md +0 -5
- package/docs/api/sync-cf/variables/PERSISTENCE_FORMAT_VERSION/index.md +0 -20
- package/docs/api/sync-cf/variables/WebSocketAttachmentSchema/index.md +0 -5
- package/docs/api/sync-cf/variables/encodeIncomingMessage/index.md +0 -27
- package/docs/api/sync-cf/variables/encodeOutgoingMessage/index.md +0 -19
- package/docs/api/sync-cf/variables/makeDurableObject/index.md +0 -39
- package/docs/api/sync-electric/@livestore/namespaces/ApiSchema/variables/ApiPayload/index.md +0 -5
- package/docs/api/sync-electric/@livestore/namespaces/ApiSchema/variables/ArgsSchema/index.md +0 -5
- package/docs/api/sync-electric/@livestore/namespaces/ApiSchema/variables/PullPayload/index.md +0 -5
- package/docs/api/sync-electric/@livestore/namespaces/ApiSchema/variables/PushPayload/index.md +0 -5
- package/docs/api/sync-electric/README/index.md +0 -29
- package/docs/api/sync-electric/classes/InvalidOperationError/index.md +0 -99
- package/docs/api/sync-electric/functions/makeElectricUrl/index.md +0 -69
- package/docs/api/sync-electric/functions/makeSyncBackend/index.md +0 -15
- package/docs/api/sync-electric/functions/syncBackendOptions/index.md +0 -21
- package/docs/api/sync-electric/functions/toTableName/index.md +0 -15
- package/docs/api/sync-electric/interfaces/SyncBackendOptions/index.md +0 -67
- package/docs/api/sync-electric/type-aliases/SyncMetadata/index.md +0 -5
- package/docs/api/sync-electric/variables/PERSISTENCE_FORMAT_VERSION/index.md +0 -28
- package/docs/api/sync-electric/variables/SyncMetadata/index.md +0 -5
- package/docs/contributing/docs/index.md +0 -19
- package/docs/reference/cli/index.md +0 -57
- package/docs/reference/framework-integrations/vue-integration/index.md +0 -98
- package/docs/reference/opentelemetry/index.md +0 -36
- package/docs/reference/platform-adapters/expo-adapter/index.md +0 -43
- package/docs/reference/store/index.md +0 -253
- package/docs/reference/syncing/server-side-clients/index.md +0 -49
- /package/docs/{data-modeling → building-with-livestore/examples}/ai-agent/index.md +0 -0
- /package/docs/{data-modeling → building-with-livestore/examples}/turnbased-game/index.md +0 -0
- /package/docs/{reference → building-with-livestore}/state/sqlite/index.md +0 -0
- /package/docs/{reference/framework-integrations → framework-integrations}/solid-integration/index.md +0 -0
- /package/docs/{reference/framework-integrations → framework-integrations}/svelte-integration/index.md +0 -0
- /package/docs/{evaluation → misc}/performance/index.md +0 -0
- /package/docs/{evaluation → misc}/state-of-the-project/index.md +0 -0
- /package/docs/{reference/syncing/sync-provider → sync-providers}/custom/index.md +0 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { LogConfig, OtelLiveDummy, provideOtel, UnknownError } from '@livestore/common';
|
|
2
|
+
import { omitUndefineds } from '@livestore/utils';
|
|
3
|
+
import { Cause, Effect, Equal, Exit, Fiber, Hash, Layer, ManagedRuntime, RcMap, Runtime, } from '@livestore/utils/effect';
|
|
4
|
+
import { createStore } from "./create-store.js";
|
|
5
|
+
/**
|
|
6
|
+
* Default time to keep unused stores in cache.
|
|
7
|
+
*
|
|
8
|
+
* - Browser: 60 seconds (60,000 ms)
|
|
9
|
+
* - SSR: Infinity (disables disposal to avoid disposing stores before server render completes)
|
|
10
|
+
*
|
|
11
|
+
* @internal Exported primarily for testing purposes.
|
|
12
|
+
*/
|
|
13
|
+
export const DEFAULT_UNUSED_CACHE_TIME = typeof window === 'undefined' ? Number.POSITIVE_INFINITY : 60_000;
|
|
14
|
+
/**
|
|
15
|
+
* RcMap cache key that uses storeId for equality/hashing but carries full options.
|
|
16
|
+
* This allows RcMap to deduplicate by storeId while the lookup function has access to all options.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Only `storeId` is used for equality and hashing. This means if `getOrLoadPromise` is called
|
|
20
|
+
* with different options (e.g., different `adapter`) but the same `storeId`, the cached store
|
|
21
|
+
* from the first call will be returned. This is intentional - a store's identity is determined
|
|
22
|
+
* solely by its `storeId`, and callers should not expect to get different stores by varying
|
|
23
|
+
* other options while keeping the same `storeId`.
|
|
24
|
+
*/
|
|
25
|
+
class StoreCacheKey {
|
|
26
|
+
options;
|
|
27
|
+
constructor(options) {
|
|
28
|
+
this.options = options;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Equality is based solely on `storeId`. Other options in `RegistryStoreOptions` are ignored
|
|
32
|
+
* for cache key comparison. The first options used for a given `storeId` determine the
|
|
33
|
+
* store's configuration.
|
|
34
|
+
*/
|
|
35
|
+
[Equal.symbol](that) {
|
|
36
|
+
return that instanceof StoreCacheKey && this.options.storeId === that.options.storeId;
|
|
37
|
+
}
|
|
38
|
+
[Hash.symbol]() {
|
|
39
|
+
return Hash.string(this.options.storeId);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Store Registry coordinating store loading, caching, and retention
|
|
44
|
+
*
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
export class StoreRegistry {
|
|
48
|
+
/**
|
|
49
|
+
* Reference-counted cache mapping storeId to Store instances.
|
|
50
|
+
* Stores are created on first access and disposed after `unusedCacheTime` when all references are released.
|
|
51
|
+
*/
|
|
52
|
+
#rcMap;
|
|
53
|
+
/**
|
|
54
|
+
* Effect runtime providing Scope and OtelTracer for all registry operations.
|
|
55
|
+
* When the runtime's scope closes, all managed stores are automatically shut down.
|
|
56
|
+
*/
|
|
57
|
+
#runtime;
|
|
58
|
+
/**
|
|
59
|
+
* In-flight loading promises keyed by storeId.
|
|
60
|
+
* Ensures concurrent `getOrLoadPromise` calls receive the same Promise reference.
|
|
61
|
+
*/
|
|
62
|
+
#loadingPromises = new Map();
|
|
63
|
+
/**
|
|
64
|
+
* Default options merged into all store configurations at load time.
|
|
65
|
+
*/
|
|
66
|
+
#defaultOptions;
|
|
67
|
+
/**
|
|
68
|
+
* Creates a new StoreRegistry instance.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const registry = new StoreRegistry({
|
|
73
|
+
* defaultOptions: {
|
|
74
|
+
* batchUpdates,
|
|
75
|
+
* unusedCacheTime: 30_000,
|
|
76
|
+
* }
|
|
77
|
+
* })
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
constructor(config = {}) {
|
|
81
|
+
this.#defaultOptions = config.defaultOptions;
|
|
82
|
+
this.#runtime =
|
|
83
|
+
config.runtime ??
|
|
84
|
+
ManagedRuntime.make(Layer.mergeAll(Layer.scope, OtelLiveDummy)).runtimeEffect.pipe(Effect.runSync);
|
|
85
|
+
this.#rcMap = RcMap.make({
|
|
86
|
+
lookup: ({ options }) => {
|
|
87
|
+
// Merge registry defaults with call-site options (call-site takes precedence)
|
|
88
|
+
const mergedOptions = { ...this.#defaultOptions, ...options };
|
|
89
|
+
return createStore(mergedOptions).pipe(Effect.catchAllDefect((cause) => UnknownError.make({ cause })), Effect.withSpan(`StoreRegistry.lookup:${mergedOptions.storeId}`), LogConfig.withLoggerConfig(mergedOptions, { threadName: 'window' }), provideOtel(omitUndefineds({
|
|
90
|
+
parentSpanContext: mergedOptions.otelOptions?.rootSpanContext,
|
|
91
|
+
otelTracer: mergedOptions.otelOptions?.tracer,
|
|
92
|
+
})));
|
|
93
|
+
},
|
|
94
|
+
// TODO: Make idleTimeToLive vary for each store when Effect supports per-resource TTL
|
|
95
|
+
// See https://github.com/livestorejs/livestore/issues/917
|
|
96
|
+
idleTimeToLive: config.defaultOptions?.unusedCacheTime ?? DEFAULT_UNUSED_CACHE_TIME,
|
|
97
|
+
}).pipe(Runtime.runSync(this.#runtime));
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Gets a cached store or loads a new one, with the store lifetime scoped to the caller.
|
|
101
|
+
*
|
|
102
|
+
* @typeParam TSchema - The schema type for the store
|
|
103
|
+
* @typeParam TContext - The context type for the store
|
|
104
|
+
* @typeParam TSyncPayloadSchema - The sync payload schema type
|
|
105
|
+
* @returns An Effect that yields the store, scoped to the provided Scope
|
|
106
|
+
*
|
|
107
|
+
* @remarks
|
|
108
|
+
* - Stores are kept in cache and reused while any scope holds them
|
|
109
|
+
* - When the scope closes, the reference is released; the store is disposed after `unusedCacheTime`
|
|
110
|
+
* if no other scopes retain it
|
|
111
|
+
* - Concurrent calls with the same storeId share the same store instance
|
|
112
|
+
*/
|
|
113
|
+
getOrLoad = (options) => Effect.gen(this, function* () {
|
|
114
|
+
// Cast options to satisfy StoreCacheKey's wider type (type safety enforced at API boundary)
|
|
115
|
+
const key = new StoreCacheKey(options);
|
|
116
|
+
const store = yield* RcMap.get(this.#rcMap, key);
|
|
117
|
+
return store;
|
|
118
|
+
}).pipe(Effect.withSpan(`StoreRegistry.getOrLoad:${options.storeId}`));
|
|
119
|
+
/**
|
|
120
|
+
* Get or load a store, returning it directly if already loaded or a promise if loading.
|
|
121
|
+
*
|
|
122
|
+
* @typeParam TSchema - The schema type for the store
|
|
123
|
+
* @typeParam TContext - The context type for the store
|
|
124
|
+
* @typeParam TSyncPayloadSchema - The sync payload schema type
|
|
125
|
+
* @returns The loaded store if available, or a Promise that resolves to the loaded store
|
|
126
|
+
* @throws unknown - store loading error
|
|
127
|
+
*
|
|
128
|
+
* @remarks
|
|
129
|
+
* - Returns the store instance directly (synchronous) when already loaded
|
|
130
|
+
* - Returns a stable Promise reference when loading is in progress or needs to be initiated
|
|
131
|
+
* - Throws with the same error instance on subsequent calls after failure
|
|
132
|
+
* - Applies default options from registry config, with call-site options taking precedence
|
|
133
|
+
* - Concurrent calls with the same storeId share the same store instance
|
|
134
|
+
*/
|
|
135
|
+
getOrLoadPromise = (options) => {
|
|
136
|
+
const exit = this.getOrLoad(options).pipe(Effect.scoped, Runtime.runSyncExit(this.#runtime));
|
|
137
|
+
if (Exit.isSuccess(exit))
|
|
138
|
+
return exit.value;
|
|
139
|
+
// Check if the failure is due to async work
|
|
140
|
+
const defect = Cause.dieOption(exit.cause);
|
|
141
|
+
if (defect._tag === 'Some' && Runtime.isAsyncFiberException(defect.value)) {
|
|
142
|
+
const { storeId } = options;
|
|
143
|
+
// Return cached promise if one exists (ensures concurrent calls get the same Promise reference)
|
|
144
|
+
const cached = this.#loadingPromises.get(storeId);
|
|
145
|
+
if (cached)
|
|
146
|
+
return cached;
|
|
147
|
+
// Create and cache the promise
|
|
148
|
+
const fiber = defect.value.fiber;
|
|
149
|
+
const promise = Fiber.join(fiber)
|
|
150
|
+
.pipe(Runtime.runPromise(this.#runtime))
|
|
151
|
+
.finally(() => this.#loadingPromises.delete(storeId));
|
|
152
|
+
this.#loadingPromises.set(storeId, promise);
|
|
153
|
+
return promise;
|
|
154
|
+
}
|
|
155
|
+
// Handle synchronous failure
|
|
156
|
+
throw Cause.squash(exit.cause);
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Retains the store in cache.
|
|
160
|
+
*
|
|
161
|
+
* @typeParam TSchema - The schema type for the store
|
|
162
|
+
* @typeParam TContext - The context type for the store
|
|
163
|
+
* @typeParam TSyncPayloadSchema - The sync payload schema type
|
|
164
|
+
* @returns A release function that, when called, removes this retention hold
|
|
165
|
+
*
|
|
166
|
+
* @remarks
|
|
167
|
+
* - Multiple retains on the same store are independent; each must be released separately
|
|
168
|
+
* - If the store isn't cached yet, it will be loaded and then retained
|
|
169
|
+
* - The store will remain in cache until all retains are released and after `unusedCacheTime` expires
|
|
170
|
+
*/
|
|
171
|
+
retain = (options) => {
|
|
172
|
+
const release = Effect.gen(this, function* () {
|
|
173
|
+
// Cast options to satisfy StoreCacheKey's wider type (type safety enforced at API boundary)
|
|
174
|
+
const key = new StoreCacheKey(options);
|
|
175
|
+
yield* RcMap.get(this.#rcMap, key);
|
|
176
|
+
// Effect.never suspends indefinitely, keeping the RcMap reference alive.
|
|
177
|
+
// When `release()` is called, the fiber is interrupted, closing the scope
|
|
178
|
+
// and releasing the RcMap entry (which may trigger disposal after idleTimeToLive).
|
|
179
|
+
yield* Effect.never;
|
|
180
|
+
}).pipe(Effect.scoped, Runtime.runCallback(this.#runtime));
|
|
181
|
+
return () => release();
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Loads a store (without suspending) to warm up the cache.
|
|
185
|
+
*
|
|
186
|
+
* @typeParam TSchema - The schema of the store to preload
|
|
187
|
+
* @typeParam TContext - The context type for the store
|
|
188
|
+
* @typeParam TSyncPayloadSchema - The sync payload schema type
|
|
189
|
+
* @returns A promise that resolves when the loading is complete (success or failure)
|
|
190
|
+
*
|
|
191
|
+
* @remarks
|
|
192
|
+
* - We don't return the store or throw as this is a fire-and-forget operation.
|
|
193
|
+
* - If the entry remains unused after preload resolves/rejects, it is scheduled for disposal.
|
|
194
|
+
* - Does not affect the retention of the store in cache.
|
|
195
|
+
*/
|
|
196
|
+
preload = async (options) => {
|
|
197
|
+
try {
|
|
198
|
+
await this.getOrLoadPromise(options);
|
|
199
|
+
}
|
|
200
|
+
catch {
|
|
201
|
+
// Do nothing; preload is best-effort
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Helper for defining reusable store options with full type inference. Returns
|
|
207
|
+
* options that can be passed to `useStore()` or `storeRegistry.preload()`.
|
|
208
|
+
*
|
|
209
|
+
* @remarks
|
|
210
|
+
* At runtime this is an identity function that returns the input unchanged.
|
|
211
|
+
* Its value lies in enabling TypeScript's excess property checking to catch
|
|
212
|
+
* typos and configuration errors, while allowing options to be shared across
|
|
213
|
+
* `useStore()`, `storeRegistry.preload()`, `storeRegistry.getOrLoad()`, etc.
|
|
214
|
+
*
|
|
215
|
+
* @typeParam TSchema - The LiveStore schema type
|
|
216
|
+
* @typeParam TContext - User-defined context attached to the store
|
|
217
|
+
* @typeParam TSyncPayloadSchema - Schema for the sync payload sent to the backend
|
|
218
|
+
* @param options - The store configuration options
|
|
219
|
+
* @returns The same options object, unchanged
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* ```ts
|
|
223
|
+
* export const issueStoreOptions = (issueId: string) =>
|
|
224
|
+
* storeOptions({
|
|
225
|
+
* storeId: `issue-${issueId}`,
|
|
226
|
+
* schema,
|
|
227
|
+
* adapter,
|
|
228
|
+
* unusedCacheTime: 30_000,
|
|
229
|
+
* })
|
|
230
|
+
*
|
|
231
|
+
* // In a component
|
|
232
|
+
* const issueStore = useStore(issueStoreOptions(issueId))
|
|
233
|
+
*
|
|
234
|
+
* // In a route loader or event handler
|
|
235
|
+
* storeRegistry.preload({
|
|
236
|
+
* ...issueStoreOptions(issueId),
|
|
237
|
+
* unusedCacheTime: 10_000,
|
|
238
|
+
* });
|
|
239
|
+
* ```
|
|
240
|
+
*/
|
|
241
|
+
export function storeOptions(options) {
|
|
242
|
+
return options;
|
|
243
|
+
}
|
|
244
|
+
//# sourceMappingURL=StoreRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreRegistry.js","sourceRoot":"","sources":["../../src/store/StoreRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEvF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EACL,KAAK,EACL,MAAM,EACN,KAAK,EACL,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,cAAc,EAEd,KAAK,EACL,OAAO,GAGR,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAA2B,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAIxE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAA;AA4E1G;;;;;;;;;;GAUG;AACH,MAAM,aAAa;IACR,OAAO,CAAqC;IAErD,YAAY,OAA4C;QACtD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED;;;;OAIG;IACH,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAiB;QAC9B,OAAO,IAAI,YAAY,aAAa,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,KAAK,IAAI,CAAC,OAAO,CAAC,OAAO,CAAA;IACvF,CAAC;IAED,CAAC,IAAI,CAAC,MAAM,CAAC;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IAC1C,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,OAAO,aAAa;IACxB;;;OAGG;IACM,MAAM,CAA2D;IAE1E;;;OAGG;IACM,QAAQ,CAAsD;IAEvE;;;OAGG;IACM,gBAAgB,GAA0C,IAAI,GAAG,EAAE,CAAA;IAE5E;;OAEG;IACM,eAAe,CAAuC;IAE/D;;;;;;;;;;;;OAYG;IACH,YAAY,SAA8B,EAAE;QAC1C,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,cAAc,CAAA;QAC5C,IAAI,CAAC,QAAQ;YACX,MAAM,CAAC,OAAO;gBACd,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QAEpG,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC;YACvB,MAAM,EAAE,CAAC,EAAE,OAAO,EAAiB,EAAE,EAAE;gBACrC,8EAA8E;gBAC9E,MAAM,aAAa,GAAG,EAAE,GAAG,IAAI,CAAC,eAAe,EAAE,GAAG,OAAO,EAAE,CAAA;gBAC7D,OAAO,WAAW,CAAC,aAAa,CAAC,CAAC,IAAI,CACpC,MAAM,CAAC,cAAc,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,EAC9D,MAAM,CAAC,QAAQ,CAAC,wBAAwB,aAAa,CAAC,OAAO,EAAE,CAAC,EAChE,SAAS,CAAC,gBAAgB,CAAC,aAAa,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,EACnE,WAAW,CACT,cAAc,CAAC;oBACb,iBAAiB,EAAE,aAAa,CAAC,WAAW,EAAE,eAAe;oBAC7D,UAAU,EAAE,aAAa,CAAC,WAAW,EAAE,MAAM;iBAC9C,CAAC,CACH,CACF,CAAA;YACH,CAAC;YACD,sFAAsF;YACtF,0DAA0D;YAC1D,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,eAAe,IAAI,yBAAyB;SACpF,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAA;IACzC,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,SAAS,GAAG,CAKV,OAAoE,EACA,EAAE,CACtE,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC;QACxB,4FAA4F;QAC5F,MAAM,GAAG,GAAG,IAAI,aAAa,CAAC,OAAO,CAAC,CAAA;QACtC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;QAEhD,OAAO,KAAiC,CAAA;IAC1C,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,2BAA2B,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;IAExE;;;;;;;;;;;;;;;OAeG;IACH,gBAAgB,GAAG,CAKjB,OAAoE,EACN,EAAE;QAChE,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAA;QAE5F,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC,KAAK,CAAA;QAE3C,4CAA4C;QAC5C,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC1C,IAAI,MAAM,CAAC,IAAI,KAAK,MAAM,IAAI,OAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1E,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAA;YAE3B,gGAAgG;YAChG,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;YACjD,IAAI,MAAM;gBAAE,OAAO,MAA2C,CAAA;YAE9D,+BAA+B;YAC/B,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAA;YAChC,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;iBAC9B,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iBACvC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAsC,CAAA;YAE5F,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;YAC3C,OAAO,OAAO,CAAA;QAChB,CAAC;QAED,6BAA6B;QAC7B,MAAM,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAChC,CAAC,CAAA;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,GAAG,CAKP,OAAoE,EACtD,EAAE;QAChB,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC;YACxC,4FAA4F;YAC5F,MAAM,GAAG,GAAG,IAAI,aAAa,CAAC,OAAO,CAAC,CAAA;YACtC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;YAClC,yEAAyE;YACzE,0EAA0E;YAC1E,mFAAmF;YACnF,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAA;QACrB,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAA;QAE1D,OAAO,GAAG,EAAE,CAAC,OAAO,EAAE,CAAA;IACxB,CAAC,CAAA;IAED;;;;;;;;;;;;OAYG;IACH,OAAO,GAAG,KAAK,EAKb,OAAoE,EACrD,EAAE;QACjB,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAA;QACtC,CAAC;QAAC,MAAM,CAAC;YACP,qCAAqC;QACvC,CAAC;IACH,CAAC,CAAA;CACF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,UAAU,YAAY,CAK1B,OAAoE;IAEpE,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreRegistry.test.d.ts","sourceRoot":"","sources":["../../src/store/StoreRegistry.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import { makeInMemoryAdapter } from '@livestore/adapter-web';
|
|
2
|
+
import { UnknownError } from '@livestore/common';
|
|
3
|
+
import { sleep } from '@livestore/utils';
|
|
4
|
+
import { Effect } from '@livestore/utils/effect';
|
|
5
|
+
import { describe, expect, it } from 'vitest';
|
|
6
|
+
import { schema } from "../utils/tests/fixture.js";
|
|
7
|
+
import { StoreRegistry, storeOptions } from "./StoreRegistry.js";
|
|
8
|
+
import { StoreInternalsSymbol } from "./store-types.js";
|
|
9
|
+
describe('StoreRegistry', () => {
|
|
10
|
+
it('returns a promise when the store is loading', async () => {
|
|
11
|
+
const storeRegistry = new StoreRegistry();
|
|
12
|
+
const result = storeRegistry.getOrLoadPromise(testStoreOptions());
|
|
13
|
+
expect(result).toBeInstanceOf(Promise);
|
|
14
|
+
// Clean up
|
|
15
|
+
const store = await result;
|
|
16
|
+
await store.shutdownPromise();
|
|
17
|
+
});
|
|
18
|
+
it('returns cached store synchronously after first load resolves', async () => {
|
|
19
|
+
const storeRegistry = new StoreRegistry();
|
|
20
|
+
const initial = storeRegistry.getOrLoadPromise(testStoreOptions());
|
|
21
|
+
expect(initial).toBeInstanceOf(Promise);
|
|
22
|
+
const store = await initial;
|
|
23
|
+
const cached = storeRegistry.getOrLoadPromise(testStoreOptions());
|
|
24
|
+
expect(cached).toBe(store);
|
|
25
|
+
expect(cached).not.toBeInstanceOf(Promise);
|
|
26
|
+
// Clean up
|
|
27
|
+
await store.shutdownPromise();
|
|
28
|
+
});
|
|
29
|
+
it('reuses the same promise for concurrent getOrLoadPromise calls while loading', async () => {
|
|
30
|
+
const storeRegistry = new StoreRegistry();
|
|
31
|
+
const options = testStoreOptions();
|
|
32
|
+
const first = storeRegistry.getOrLoadPromise(options);
|
|
33
|
+
const second = storeRegistry.getOrLoadPromise(options);
|
|
34
|
+
// Both should be the same promise
|
|
35
|
+
expect(first).toBe(second);
|
|
36
|
+
expect(first).toBeInstanceOf(Promise);
|
|
37
|
+
const store = await first;
|
|
38
|
+
// Both promises should resolve to the same store
|
|
39
|
+
expect(await second).toBe(store);
|
|
40
|
+
// Clean up
|
|
41
|
+
await store.shutdownPromise();
|
|
42
|
+
});
|
|
43
|
+
it('throws synchronously and rethrows on subsequent calls for sync failures', () => {
|
|
44
|
+
const storeRegistry = new StoreRegistry();
|
|
45
|
+
const badOptions = testStoreOptions({
|
|
46
|
+
// @ts-expect-error - intentionally passing invalid adapter to trigger error
|
|
47
|
+
adapter: null,
|
|
48
|
+
});
|
|
49
|
+
// First call throws synchronously
|
|
50
|
+
expect(() => storeRegistry.getOrLoadPromise(badOptions)).toThrow();
|
|
51
|
+
// Subsequent call should also throw synchronously (cached error)
|
|
52
|
+
expect(() => storeRegistry.getOrLoadPromise(badOptions)).toThrow();
|
|
53
|
+
});
|
|
54
|
+
it('caches and rethrows rejection on subsequent calls for async failures', async () => {
|
|
55
|
+
const storeRegistry = new StoreRegistry();
|
|
56
|
+
// Create an adapter that fails asynchronously (after yielding to the event loop)
|
|
57
|
+
const failingAdapter = () => Effect.gen(function* () {
|
|
58
|
+
yield* Effect.sleep(0); // Force async execution
|
|
59
|
+
return yield* UnknownError.make({ cause: new Error('Async failure') });
|
|
60
|
+
});
|
|
61
|
+
const badOptions = testStoreOptions({
|
|
62
|
+
adapter: failingAdapter,
|
|
63
|
+
});
|
|
64
|
+
// First call returns a promise that rejects
|
|
65
|
+
await expect(storeRegistry.getOrLoadPromise(badOptions)).rejects.toThrow();
|
|
66
|
+
// Subsequent call should throw the cached error synchronously (RcMap caches failures)
|
|
67
|
+
expect(() => storeRegistry.getOrLoadPromise(badOptions)).toThrow();
|
|
68
|
+
});
|
|
69
|
+
it('throws the same error instance on multiple calls after failure', async () => {
|
|
70
|
+
const storeRegistry = new StoreRegistry();
|
|
71
|
+
// Create an adapter that fails asynchronously
|
|
72
|
+
const failingAdapter = () => Effect.gen(function* () {
|
|
73
|
+
yield* Effect.sleep(0); // Force async execution
|
|
74
|
+
return yield* UnknownError.make({ cause: new Error('Async failure') });
|
|
75
|
+
});
|
|
76
|
+
const badOptions = testStoreOptions({
|
|
77
|
+
adapter: failingAdapter,
|
|
78
|
+
});
|
|
79
|
+
// Wait for the first failure
|
|
80
|
+
await expect(storeRegistry.getOrLoadPromise(badOptions)).rejects.toThrow();
|
|
81
|
+
// Capture the errors from subsequent calls
|
|
82
|
+
let error1;
|
|
83
|
+
let error2;
|
|
84
|
+
try {
|
|
85
|
+
storeRegistry.getOrLoadPromise(badOptions);
|
|
86
|
+
}
|
|
87
|
+
catch (err) {
|
|
88
|
+
error1 = err;
|
|
89
|
+
}
|
|
90
|
+
try {
|
|
91
|
+
storeRegistry.getOrLoadPromise(badOptions);
|
|
92
|
+
}
|
|
93
|
+
catch (err) {
|
|
94
|
+
error2 = err;
|
|
95
|
+
}
|
|
96
|
+
// Both should be the exact same error instance (cached)
|
|
97
|
+
expect(error1).toBeDefined();
|
|
98
|
+
expect(error1).toBe(error2);
|
|
99
|
+
});
|
|
100
|
+
it('disposes store after unusedCacheTime expires', async () => {
|
|
101
|
+
const unusedCacheTime = 25;
|
|
102
|
+
const storeRegistry = new StoreRegistry({ defaultOptions: { unusedCacheTime } });
|
|
103
|
+
const options = testStoreOptions();
|
|
104
|
+
const store = await storeRegistry.getOrLoadPromise(options);
|
|
105
|
+
// Store should be cached
|
|
106
|
+
expect(storeRegistry.getOrLoadPromise(options)).toBe(store);
|
|
107
|
+
// Wait for disposal
|
|
108
|
+
await sleep(unusedCacheTime + 50);
|
|
109
|
+
// After disposal, store should be removed
|
|
110
|
+
// The store is removed from cache, so next getOrLoadStore creates a new one
|
|
111
|
+
const nextStore = await storeRegistry.getOrLoadPromise(options);
|
|
112
|
+
// Should be a different store instance
|
|
113
|
+
expect(nextStore).not.toBe(store);
|
|
114
|
+
expect(nextStore[StoreInternalsSymbol].clientSession.debugInstanceId).toBeDefined();
|
|
115
|
+
// Clean up the second store (first one was disposed)
|
|
116
|
+
await nextStore.shutdownPromise();
|
|
117
|
+
});
|
|
118
|
+
it('does not dispose when unusedCacheTime is Infinity', async () => {
|
|
119
|
+
const storeRegistry = new StoreRegistry({ defaultOptions: { unusedCacheTime: Number.POSITIVE_INFINITY } });
|
|
120
|
+
const options = testStoreOptions();
|
|
121
|
+
const store = await storeRegistry.getOrLoadPromise(options);
|
|
122
|
+
// Store should be cached
|
|
123
|
+
expect(storeRegistry.getOrLoadPromise(options)).toBe(store);
|
|
124
|
+
// Wait a reasonable duration to verify no disposal
|
|
125
|
+
await sleep(100);
|
|
126
|
+
// Store should still be cached (not disposed)
|
|
127
|
+
expect(storeRegistry.getOrLoadPromise(options)).toBe(store);
|
|
128
|
+
// Clean up manually
|
|
129
|
+
await store.shutdownPromise();
|
|
130
|
+
});
|
|
131
|
+
it('schedules disposal if store becomes unused during loading', async () => {
|
|
132
|
+
const unusedCacheTime = 50;
|
|
133
|
+
const storeRegistry = new StoreRegistry({ defaultOptions: { unusedCacheTime } });
|
|
134
|
+
const options = testStoreOptions();
|
|
135
|
+
// Start loading without any retain
|
|
136
|
+
const storePromise = storeRegistry.getOrLoadPromise(options);
|
|
137
|
+
// Wait for store to load (no retain registered)
|
|
138
|
+
const store = await storePromise;
|
|
139
|
+
// Since there were no retain when loading completed, disposal should be scheduled
|
|
140
|
+
await sleep(unusedCacheTime + 50);
|
|
141
|
+
// Store should be disposed
|
|
142
|
+
const nextStore = await storeRegistry.getOrLoadPromise(options);
|
|
143
|
+
expect(nextStore).not.toBe(store);
|
|
144
|
+
await nextStore.shutdownPromise();
|
|
145
|
+
});
|
|
146
|
+
// This test is skipped because Effect doesn't yet support different `idleTimeToLive` values for each resource in `RcMap`
|
|
147
|
+
// See https://github.com/livestorejs/livestore/issues/917
|
|
148
|
+
it.skip('allows call-site options to override default options', async () => {
|
|
149
|
+
const storeRegistry = new StoreRegistry({
|
|
150
|
+
defaultOptions: {
|
|
151
|
+
unusedCacheTime: 1000, // Default is long
|
|
152
|
+
},
|
|
153
|
+
});
|
|
154
|
+
const options = testStoreOptions({
|
|
155
|
+
unusedCacheTime: 10, // Override with shorter time
|
|
156
|
+
});
|
|
157
|
+
const store = await storeRegistry.getOrLoadPromise(options);
|
|
158
|
+
// Wait for the override time (10ms)
|
|
159
|
+
await sleep(10);
|
|
160
|
+
// Should be disposed according to the override time, not default
|
|
161
|
+
const nextStore = await storeRegistry.getOrLoadPromise(options);
|
|
162
|
+
expect(nextStore).not.toBe(store);
|
|
163
|
+
await nextStore.shutdownPromise();
|
|
164
|
+
});
|
|
165
|
+
// This test is skipped because we don't yet support dynamic `unusedCacheTime` updates for cached stores.
|
|
166
|
+
// See https://github.com/livestorejs/livestore/issues/918
|
|
167
|
+
it.skip('keeps the longest unusedCacheTime seen for a store when options vary across calls', async () => {
|
|
168
|
+
const storeRegistry = new StoreRegistry();
|
|
169
|
+
const options = testStoreOptions({ unusedCacheTime: 10 });
|
|
170
|
+
const release = storeRegistry.retain(options);
|
|
171
|
+
const store = await storeRegistry.getOrLoadPromise(options);
|
|
172
|
+
// Call with longer unusedCacheTime
|
|
173
|
+
await storeRegistry.getOrLoadPromise(testStoreOptions({ unusedCacheTime: 100 }));
|
|
174
|
+
release();
|
|
175
|
+
// After 99ms, store should still be alive (100ms unusedCacheTime used)
|
|
176
|
+
await sleep(99);
|
|
177
|
+
// Store should still be cached
|
|
178
|
+
expect(storeRegistry.getOrLoadPromise(options)).toBe(store);
|
|
179
|
+
// After the full 100ms, store should be disposed
|
|
180
|
+
await sleep(1);
|
|
181
|
+
// Next getOrLoadStore should create a new store
|
|
182
|
+
const nextStore = await storeRegistry.getOrLoadPromise(options);
|
|
183
|
+
expect(nextStore).not.toBe(store);
|
|
184
|
+
// Clean up the second store (first one was disposed)
|
|
185
|
+
await nextStore.shutdownPromise();
|
|
186
|
+
});
|
|
187
|
+
it('preload does not throw', async () => {
|
|
188
|
+
const storeRegistry = new StoreRegistry();
|
|
189
|
+
// Create invalid options that would cause an error
|
|
190
|
+
const badOptions = testStoreOptions({
|
|
191
|
+
// @ts-expect-error - intentionally passing invalid adapter to trigger error
|
|
192
|
+
adapter: null,
|
|
193
|
+
});
|
|
194
|
+
// preload should not throw
|
|
195
|
+
await expect(storeRegistry.preload(badOptions)).resolves.toBeUndefined();
|
|
196
|
+
// But subsequent getOrLoadStore should throw the cached error
|
|
197
|
+
expect(() => storeRegistry.getOrLoadPromise(badOptions)).toThrow();
|
|
198
|
+
});
|
|
199
|
+
it('handles rapid retain/release cycles without errors', async () => {
|
|
200
|
+
const unusedCacheTime = 50;
|
|
201
|
+
const storeRegistry = new StoreRegistry({ defaultOptions: { unusedCacheTime } });
|
|
202
|
+
const options = testStoreOptions();
|
|
203
|
+
const store = await storeRegistry.getOrLoadPromise(options);
|
|
204
|
+
// Rapidly retain and release multiple times
|
|
205
|
+
for (let i = 0; i < 10; i++) {
|
|
206
|
+
const release = storeRegistry.retain(options);
|
|
207
|
+
release();
|
|
208
|
+
}
|
|
209
|
+
// Wait for disposal to trigger
|
|
210
|
+
await sleep(unusedCacheTime + 50);
|
|
211
|
+
// Store should be disposed after the last release
|
|
212
|
+
const nextStore = await storeRegistry.getOrLoadPromise(options);
|
|
213
|
+
expect(nextStore).not.toBe(store);
|
|
214
|
+
await nextStore.shutdownPromise();
|
|
215
|
+
});
|
|
216
|
+
it('cancels disposal when new retain', async () => {
|
|
217
|
+
const unusedCacheTime = 50;
|
|
218
|
+
const storeRegistry = new StoreRegistry({ defaultOptions: { unusedCacheTime } });
|
|
219
|
+
const options = testStoreOptions();
|
|
220
|
+
const store = await storeRegistry.getOrLoadPromise(options);
|
|
221
|
+
// Wait almost to disposal threshold
|
|
222
|
+
await sleep(unusedCacheTime - 5);
|
|
223
|
+
// Add a new retain before disposal triggers
|
|
224
|
+
const release = storeRegistry.retain(options);
|
|
225
|
+
// Complete the original unusedCacheTime
|
|
226
|
+
await sleep(5);
|
|
227
|
+
// Store should not have been disposed because we added a retain
|
|
228
|
+
expect(storeRegistry.getOrLoadPromise(options)).toBe(store);
|
|
229
|
+
// Clean up
|
|
230
|
+
release();
|
|
231
|
+
await sleep(unusedCacheTime + 50);
|
|
232
|
+
// Now it should be disposed
|
|
233
|
+
const nextStore = await storeRegistry.getOrLoadPromise(options);
|
|
234
|
+
expect(nextStore).not.toBe(store);
|
|
235
|
+
await nextStore.shutdownPromise();
|
|
236
|
+
});
|
|
237
|
+
it('aborts loading when disposal fires while store is still loading', async () => {
|
|
238
|
+
const unusedCacheTime = 10;
|
|
239
|
+
const storeRegistry = new StoreRegistry({ defaultOptions: { unusedCacheTime } });
|
|
240
|
+
const options = testStoreOptions();
|
|
241
|
+
// Retain briefly to trigger getOrLoadStore and then release
|
|
242
|
+
const release = storeRegistry.retain(options);
|
|
243
|
+
// Start loading
|
|
244
|
+
const loadPromise = storeRegistry.getOrLoadPromise(options);
|
|
245
|
+
// Attach a catch handler to prevent unhandled rejection when the load is aborted
|
|
246
|
+
const abortedPromise = loadPromise.catch(() => {
|
|
247
|
+
// Expected: load was aborted by disposal
|
|
248
|
+
});
|
|
249
|
+
// Release immediately, which schedules disposal
|
|
250
|
+
release();
|
|
251
|
+
// Wait for disposal to trigger
|
|
252
|
+
await sleep(unusedCacheTime + 50);
|
|
253
|
+
// Wait for the abort to complete
|
|
254
|
+
await abortedPromise;
|
|
255
|
+
// After abort, a new getOrLoadStore should start a fresh load
|
|
256
|
+
const freshLoadPromise = storeRegistry.getOrLoadPromise(options);
|
|
257
|
+
// This should be a new promise (not the aborted one)
|
|
258
|
+
expect(freshLoadPromise).toBeInstanceOf(Promise);
|
|
259
|
+
expect(freshLoadPromise).not.toBe(loadPromise);
|
|
260
|
+
// Wait for fresh load to complete
|
|
261
|
+
const store = await freshLoadPromise;
|
|
262
|
+
expect(store).toBeDefined();
|
|
263
|
+
await store.shutdownPromise();
|
|
264
|
+
});
|
|
265
|
+
it('retain keeps store alive past unusedCacheTime', async () => {
|
|
266
|
+
const unusedCacheTime = 50;
|
|
267
|
+
const storeRegistry = new StoreRegistry({ defaultOptions: { unusedCacheTime } });
|
|
268
|
+
const options = testStoreOptions();
|
|
269
|
+
// Load the store
|
|
270
|
+
const store = await storeRegistry.getOrLoadPromise(options);
|
|
271
|
+
// Retain the store before disposal could fire
|
|
272
|
+
const release = storeRegistry.retain(options);
|
|
273
|
+
// Wait past the unusedCacheTime
|
|
274
|
+
await sleep(unusedCacheTime + 50);
|
|
275
|
+
// Store should still be cached because retain keeps it alive
|
|
276
|
+
const cachedStore = storeRegistry.getOrLoadPromise(options);
|
|
277
|
+
expect(cachedStore).toBe(store);
|
|
278
|
+
release();
|
|
279
|
+
await store.shutdownPromise();
|
|
280
|
+
});
|
|
281
|
+
it('manages multiple stores with different IDs independently', async () => {
|
|
282
|
+
const unusedCacheTime = 50;
|
|
283
|
+
const storeRegistry = new StoreRegistry({ defaultOptions: { unusedCacheTime } });
|
|
284
|
+
const options1 = testStoreOptions({ storeId: 'store-1' });
|
|
285
|
+
const options2 = testStoreOptions({ storeId: 'store-2' });
|
|
286
|
+
const store1 = await storeRegistry.getOrLoadPromise(options1);
|
|
287
|
+
const store2 = await storeRegistry.getOrLoadPromise(options2);
|
|
288
|
+
// Should be different store instances
|
|
289
|
+
expect(store1).not.toBe(store2);
|
|
290
|
+
// Both should be cached independently
|
|
291
|
+
expect(storeRegistry.getOrLoadPromise(options1)).toBe(store1);
|
|
292
|
+
expect(storeRegistry.getOrLoadPromise(options2)).toBe(store2);
|
|
293
|
+
// Wait for both stores to be disposed
|
|
294
|
+
await sleep(unusedCacheTime + 50);
|
|
295
|
+
// Both stores should be disposed, so next getOrLoadStore creates new ones
|
|
296
|
+
const newStore1 = await storeRegistry.getOrLoadPromise(options1);
|
|
297
|
+
expect(newStore1).not.toBe(store1);
|
|
298
|
+
const newStore2 = await storeRegistry.getOrLoadPromise(options2);
|
|
299
|
+
expect(newStore2).not.toBe(store2);
|
|
300
|
+
// Clean up
|
|
301
|
+
await newStore1.shutdownPromise();
|
|
302
|
+
await newStore2.shutdownPromise();
|
|
303
|
+
});
|
|
304
|
+
it('applies default options from constructor', async () => {
|
|
305
|
+
const storeRegistry = new StoreRegistry({
|
|
306
|
+
defaultOptions: {
|
|
307
|
+
unusedCacheTime: 100,
|
|
308
|
+
},
|
|
309
|
+
});
|
|
310
|
+
const options = testStoreOptions();
|
|
311
|
+
const store = await storeRegistry.getOrLoadPromise(options);
|
|
312
|
+
// Verify the store loads successfully
|
|
313
|
+
expect(store).toBeDefined();
|
|
314
|
+
expect(store[StoreInternalsSymbol].clientSession.debugInstanceId).toBeDefined();
|
|
315
|
+
// Verify configured default unusedCacheTime is applied by checking disposal doesn't happen before it
|
|
316
|
+
await sleep(50);
|
|
317
|
+
// Store should still be cached after 50ms (default is 100ms)
|
|
318
|
+
expect(storeRegistry.getOrLoadPromise(options)).toBe(store);
|
|
319
|
+
await store.shutdownPromise();
|
|
320
|
+
});
|
|
321
|
+
it('prevents getOrLoadStore from returning a dying store', async () => {
|
|
322
|
+
const unusedCacheTime = 25;
|
|
323
|
+
const storeRegistry = new StoreRegistry({ defaultOptions: { unusedCacheTime } });
|
|
324
|
+
const options = testStoreOptions();
|
|
325
|
+
// Load the store and wait for it to be ready
|
|
326
|
+
const originalStore = await storeRegistry.getOrLoadPromise(options);
|
|
327
|
+
// Verify store is cached
|
|
328
|
+
expect(storeRegistry.getOrLoadPromise(options)).toBe(originalStore);
|
|
329
|
+
// Wait for disposal to trigger
|
|
330
|
+
await sleep(unusedCacheTime + 50);
|
|
331
|
+
// After disposal, the cache should be cleared
|
|
332
|
+
// Calling getOrLoadStore should start a fresh load (return Promise)
|
|
333
|
+
const storeOrPromise = storeRegistry.getOrLoadPromise(options);
|
|
334
|
+
if (!(storeOrPromise instanceof Promise)) {
|
|
335
|
+
expect.fail('getOrLoadStore returned dying store synchronously instead of starting fresh load');
|
|
336
|
+
}
|
|
337
|
+
const freshStore = await storeOrPromise;
|
|
338
|
+
// A fresh load was triggered because cache was cleared
|
|
339
|
+
expect(freshStore).not.toBe(originalStore);
|
|
340
|
+
await freshStore.shutdownPromise();
|
|
341
|
+
});
|
|
342
|
+
it('warms the cache so subsequent getOrLoadStore is synchronous after preload', async () => {
|
|
343
|
+
const storeRegistry = new StoreRegistry();
|
|
344
|
+
const options = testStoreOptions();
|
|
345
|
+
// Preload the store
|
|
346
|
+
await storeRegistry.preload(options);
|
|
347
|
+
// Subsequent getOrLoadStore should return synchronously (not a Promise)
|
|
348
|
+
const store = storeRegistry.getOrLoadPromise(options);
|
|
349
|
+
expect(store).not.toBeInstanceOf(Promise);
|
|
350
|
+
// TypeScript doesn't narrow the type, so we need to assert
|
|
351
|
+
if (store instanceof Promise) {
|
|
352
|
+
throw new Error('Expected store, got Promise');
|
|
353
|
+
}
|
|
354
|
+
// Clean up
|
|
355
|
+
await store.shutdownPromise();
|
|
356
|
+
});
|
|
357
|
+
it('schedules disposal after preload if no retainers are added', async () => {
|
|
358
|
+
const unusedCacheTime = 50;
|
|
359
|
+
const storeRegistry = new StoreRegistry({ defaultOptions: { unusedCacheTime } });
|
|
360
|
+
const options = testStoreOptions();
|
|
361
|
+
// Preload without retaining
|
|
362
|
+
await storeRegistry.preload(options);
|
|
363
|
+
// Get the store
|
|
364
|
+
const store = storeRegistry.getOrLoadPromise(options);
|
|
365
|
+
expect(store).not.toBeInstanceOf(Promise);
|
|
366
|
+
// Wait for disposal to trigger
|
|
367
|
+
await sleep(unusedCacheTime + 50);
|
|
368
|
+
// Store should be disposed since no retainers were added
|
|
369
|
+
const nextStore = await storeRegistry.getOrLoadPromise(options);
|
|
370
|
+
expect(nextStore).not.toBe(store);
|
|
371
|
+
await nextStore.shutdownPromise();
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
const testStoreOptions = (overrides = {}) => storeOptions({
|
|
375
|
+
storeId: 'test-store',
|
|
376
|
+
schema,
|
|
377
|
+
adapter: makeInMemoryAdapter(),
|
|
378
|
+
...overrides,
|
|
379
|
+
});
|
|
380
|
+
//# sourceMappingURL=StoreRegistry.test.js.map
|